feat: add wooden fish play template
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_run_checkpoint_input_type::WoodenFishRunCheckpointInput;
|
||||
use super::wooden_fish_run_procedure_result_type::WoodenFishRunProcedureResult;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
struct CheckpointWoodenFishRunArgs {
|
||||
pub input: WoodenFishRunCheckpointInput,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for CheckpointWoodenFishRunArgs {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the procedure `checkpoint_wooden_fish_run`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteProcedures`].
|
||||
pub trait checkpoint_wooden_fish_run {
|
||||
fn checkpoint_wooden_fish_run(&self, input: WoodenFishRunCheckpointInput) {
|
||||
self.checkpoint_wooden_fish_run_then(input, |_, _| {});
|
||||
}
|
||||
|
||||
fn checkpoint_wooden_fish_run_then(
|
||||
&self,
|
||||
input: WoodenFishRunCheckpointInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishRunProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
);
|
||||
}
|
||||
|
||||
impl checkpoint_wooden_fish_run for super::RemoteProcedures {
|
||||
fn checkpoint_wooden_fish_run_then(
|
||||
&self,
|
||||
input: WoodenFishRunCheckpointInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishRunProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
) {
|
||||
self.imp
|
||||
.invoke_procedure_with_callback::<_, WoodenFishRunProcedureResult>(
|
||||
"checkpoint_wooden_fish_run",
|
||||
CheckpointWoodenFishRunArgs { input },
|
||||
__callback,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_agent_session_procedure_result_type::WoodenFishAgentSessionProcedureResult;
|
||||
use super::wooden_fish_draft_compile_input_type::WoodenFishDraftCompileInput;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
struct CompileWoodenFishDraftArgs {
|
||||
pub input: WoodenFishDraftCompileInput,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for CompileWoodenFishDraftArgs {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the procedure `compile_wooden_fish_draft`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteProcedures`].
|
||||
pub trait compile_wooden_fish_draft {
|
||||
fn compile_wooden_fish_draft(&self, input: WoodenFishDraftCompileInput) {
|
||||
self.compile_wooden_fish_draft_then(input, |_, _| {});
|
||||
}
|
||||
|
||||
fn compile_wooden_fish_draft_then(
|
||||
&self,
|
||||
input: WoodenFishDraftCompileInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishAgentSessionProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
);
|
||||
}
|
||||
|
||||
impl compile_wooden_fish_draft for super::RemoteProcedures {
|
||||
fn compile_wooden_fish_draft_then(
|
||||
&self,
|
||||
input: WoodenFishDraftCompileInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishAgentSessionProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
) {
|
||||
self.imp
|
||||
.invoke_procedure_with_callback::<_, WoodenFishAgentSessionProcedureResult>(
|
||||
"compile_wooden_fish_draft",
|
||||
CompileWoodenFishDraftArgs { input },
|
||||
__callback,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_agent_session_create_input_type::WoodenFishAgentSessionCreateInput;
|
||||
use super::wooden_fish_agent_session_procedure_result_type::WoodenFishAgentSessionProcedureResult;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
struct CreateWoodenFishAgentSessionArgs {
|
||||
pub input: WoodenFishAgentSessionCreateInput,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for CreateWoodenFishAgentSessionArgs {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the procedure `create_wooden_fish_agent_session`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteProcedures`].
|
||||
pub trait create_wooden_fish_agent_session {
|
||||
fn create_wooden_fish_agent_session(&self, input: WoodenFishAgentSessionCreateInput) {
|
||||
self.create_wooden_fish_agent_session_then(input, |_, _| {});
|
||||
}
|
||||
|
||||
fn create_wooden_fish_agent_session_then(
|
||||
&self,
|
||||
input: WoodenFishAgentSessionCreateInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishAgentSessionProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
);
|
||||
}
|
||||
|
||||
impl create_wooden_fish_agent_session for super::RemoteProcedures {
|
||||
fn create_wooden_fish_agent_session_then(
|
||||
&self,
|
||||
input: WoodenFishAgentSessionCreateInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishAgentSessionProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
) {
|
||||
self.imp
|
||||
.invoke_procedure_with_callback::<_, WoodenFishAgentSessionProcedureResult>(
|
||||
"create_wooden_fish_agent_session",
|
||||
CreateWoodenFishAgentSessionArgs { input },
|
||||
__callback,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_run_finish_input_type::WoodenFishRunFinishInput;
|
||||
use super::wooden_fish_run_procedure_result_type::WoodenFishRunProcedureResult;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
struct FinishWoodenFishRunArgs {
|
||||
pub input: WoodenFishRunFinishInput,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for FinishWoodenFishRunArgs {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the procedure `finish_wooden_fish_run`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteProcedures`].
|
||||
pub trait finish_wooden_fish_run {
|
||||
fn finish_wooden_fish_run(&self, input: WoodenFishRunFinishInput) {
|
||||
self.finish_wooden_fish_run_then(input, |_, _| {});
|
||||
}
|
||||
|
||||
fn finish_wooden_fish_run_then(
|
||||
&self,
|
||||
input: WoodenFishRunFinishInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishRunProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
);
|
||||
}
|
||||
|
||||
impl finish_wooden_fish_run for super::RemoteProcedures {
|
||||
fn finish_wooden_fish_run_then(
|
||||
&self,
|
||||
input: WoodenFishRunFinishInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishRunProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
) {
|
||||
self.imp
|
||||
.invoke_procedure_with_callback::<_, WoodenFishRunProcedureResult>(
|
||||
"finish_wooden_fish_run",
|
||||
FinishWoodenFishRunArgs { input },
|
||||
__callback,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_agent_session_get_input_type::WoodenFishAgentSessionGetInput;
|
||||
use super::wooden_fish_agent_session_procedure_result_type::WoodenFishAgentSessionProcedureResult;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
struct GetWoodenFishAgentSessionArgs {
|
||||
pub input: WoodenFishAgentSessionGetInput,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for GetWoodenFishAgentSessionArgs {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the procedure `get_wooden_fish_agent_session`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteProcedures`].
|
||||
pub trait get_wooden_fish_agent_session {
|
||||
fn get_wooden_fish_agent_session(&self, input: WoodenFishAgentSessionGetInput) {
|
||||
self.get_wooden_fish_agent_session_then(input, |_, _| {});
|
||||
}
|
||||
|
||||
fn get_wooden_fish_agent_session_then(
|
||||
&self,
|
||||
input: WoodenFishAgentSessionGetInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishAgentSessionProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
);
|
||||
}
|
||||
|
||||
impl get_wooden_fish_agent_session for super::RemoteProcedures {
|
||||
fn get_wooden_fish_agent_session_then(
|
||||
&self,
|
||||
input: WoodenFishAgentSessionGetInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishAgentSessionProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
) {
|
||||
self.imp
|
||||
.invoke_procedure_with_callback::<_, WoodenFishAgentSessionProcedureResult>(
|
||||
"get_wooden_fish_agent_session",
|
||||
GetWoodenFishAgentSessionArgs { input },
|
||||
__callback,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_run_get_input_type::WoodenFishRunGetInput;
|
||||
use super::wooden_fish_run_procedure_result_type::WoodenFishRunProcedureResult;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
struct GetWoodenFishRunArgs {
|
||||
pub input: WoodenFishRunGetInput,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for GetWoodenFishRunArgs {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the procedure `get_wooden_fish_run`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteProcedures`].
|
||||
pub trait get_wooden_fish_run {
|
||||
fn get_wooden_fish_run(&self, input: WoodenFishRunGetInput) {
|
||||
self.get_wooden_fish_run_then(input, |_, _| {});
|
||||
}
|
||||
|
||||
fn get_wooden_fish_run_then(
|
||||
&self,
|
||||
input: WoodenFishRunGetInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishRunProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
);
|
||||
}
|
||||
|
||||
impl get_wooden_fish_run for super::RemoteProcedures {
|
||||
fn get_wooden_fish_run_then(
|
||||
&self,
|
||||
input: WoodenFishRunGetInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishRunProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
) {
|
||||
self.imp
|
||||
.invoke_procedure_with_callback::<_, WoodenFishRunProcedureResult>(
|
||||
"get_wooden_fish_run",
|
||||
GetWoodenFishRunArgs { input },
|
||||
__callback,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_work_get_input_type::WoodenFishWorkGetInput;
|
||||
use super::wooden_fish_work_procedure_result_type::WoodenFishWorkProcedureResult;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
struct GetWoodenFishWorkProfileArgs {
|
||||
pub input: WoodenFishWorkGetInput,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for GetWoodenFishWorkProfileArgs {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the procedure `get_wooden_fish_work_profile`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteProcedures`].
|
||||
pub trait get_wooden_fish_work_profile {
|
||||
fn get_wooden_fish_work_profile(&self, input: WoodenFishWorkGetInput) {
|
||||
self.get_wooden_fish_work_profile_then(input, |_, _| {});
|
||||
}
|
||||
|
||||
fn get_wooden_fish_work_profile_then(
|
||||
&self,
|
||||
input: WoodenFishWorkGetInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishWorkProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
);
|
||||
}
|
||||
|
||||
impl get_wooden_fish_work_profile for super::RemoteProcedures {
|
||||
fn get_wooden_fish_work_profile_then(
|
||||
&self,
|
||||
input: WoodenFishWorkGetInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishWorkProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
) {
|
||||
self.imp
|
||||
.invoke_procedure_with_callback::<_, WoodenFishWorkProcedureResult>(
|
||||
"get_wooden_fish_work_profile",
|
||||
GetWoodenFishWorkProfileArgs { input },
|
||||
__callback,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_works_list_input_type::WoodenFishWorksListInput;
|
||||
use super::wooden_fish_works_procedure_result_type::WoodenFishWorksProcedureResult;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
struct ListWoodenFishWorksArgs {
|
||||
pub input: WoodenFishWorksListInput,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for ListWoodenFishWorksArgs {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the procedure `list_wooden_fish_works`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteProcedures`].
|
||||
pub trait list_wooden_fish_works {
|
||||
fn list_wooden_fish_works(&self, input: WoodenFishWorksListInput) {
|
||||
self.list_wooden_fish_works_then(input, |_, _| {});
|
||||
}
|
||||
|
||||
fn list_wooden_fish_works_then(
|
||||
&self,
|
||||
input: WoodenFishWorksListInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishWorksProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
);
|
||||
}
|
||||
|
||||
impl list_wooden_fish_works for super::RemoteProcedures {
|
||||
fn list_wooden_fish_works_then(
|
||||
&self,
|
||||
input: WoodenFishWorksListInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishWorksProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
) {
|
||||
self.imp
|
||||
.invoke_procedure_with_callback::<_, WoodenFishWorksProcedureResult>(
|
||||
"list_wooden_fish_works",
|
||||
ListWoodenFishWorksArgs { input },
|
||||
__callback,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_work_procedure_result_type::WoodenFishWorkProcedureResult;
|
||||
use super::wooden_fish_work_publish_input_type::WoodenFishWorkPublishInput;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
struct PublishWoodenFishWorkArgs {
|
||||
pub input: WoodenFishWorkPublishInput,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for PublishWoodenFishWorkArgs {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the procedure `publish_wooden_fish_work`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteProcedures`].
|
||||
pub trait publish_wooden_fish_work {
|
||||
fn publish_wooden_fish_work(&self, input: WoodenFishWorkPublishInput) {
|
||||
self.publish_wooden_fish_work_then(input, |_, _| {});
|
||||
}
|
||||
|
||||
fn publish_wooden_fish_work_then(
|
||||
&self,
|
||||
input: WoodenFishWorkPublishInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishWorkProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
);
|
||||
}
|
||||
|
||||
impl publish_wooden_fish_work for super::RemoteProcedures {
|
||||
fn publish_wooden_fish_work_then(
|
||||
&self,
|
||||
input: WoodenFishWorkPublishInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishWorkProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
) {
|
||||
self.imp
|
||||
.invoke_procedure_with_callback::<_, WoodenFishWorkProcedureResult>(
|
||||
"publish_wooden_fish_work",
|
||||
PublishWoodenFishWorkArgs { input },
|
||||
__callback,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_run_procedure_result_type::WoodenFishRunProcedureResult;
|
||||
use super::wooden_fish_run_start_input_type::WoodenFishRunStartInput;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
struct StartWoodenFishRunArgs {
|
||||
pub input: WoodenFishRunStartInput,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for StartWoodenFishRunArgs {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the procedure `start_wooden_fish_run`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteProcedures`].
|
||||
pub trait start_wooden_fish_run {
|
||||
fn start_wooden_fish_run(&self, input: WoodenFishRunStartInput) {
|
||||
self.start_wooden_fish_run_then(input, |_, _| {});
|
||||
}
|
||||
|
||||
fn start_wooden_fish_run_then(
|
||||
&self,
|
||||
input: WoodenFishRunStartInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishRunProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
);
|
||||
}
|
||||
|
||||
impl start_wooden_fish_run for super::RemoteProcedures {
|
||||
fn start_wooden_fish_run_then(
|
||||
&self,
|
||||
input: WoodenFishRunStartInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishRunProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
) {
|
||||
self.imp
|
||||
.invoke_procedure_with_callback::<_, WoodenFishRunProcedureResult>(
|
||||
"start_wooden_fish_run",
|
||||
StartWoodenFishRunArgs { input },
|
||||
__callback,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_work_procedure_result_type::WoodenFishWorkProcedureResult;
|
||||
use super::wooden_fish_work_update_input_type::WoodenFishWorkUpdateInput;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
struct UpdateWoodenFishWorkArgs {
|
||||
pub input: WoodenFishWorkUpdateInput,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for UpdateWoodenFishWorkArgs {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the procedure `update_wooden_fish_work`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteProcedures`].
|
||||
pub trait update_wooden_fish_work {
|
||||
fn update_wooden_fish_work(&self, input: WoodenFishWorkUpdateInput) {
|
||||
self.update_wooden_fish_work_then(input, |_, _| {});
|
||||
}
|
||||
|
||||
fn update_wooden_fish_work_then(
|
||||
&self,
|
||||
input: WoodenFishWorkUpdateInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishWorkProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
);
|
||||
}
|
||||
|
||||
impl update_wooden_fish_work for super::RemoteProcedures {
|
||||
fn update_wooden_fish_work_then(
|
||||
&self,
|
||||
input: WoodenFishWorkUpdateInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<WoodenFishWorkProcedureResult, __sdk::InternalError>,
|
||||
) + Send
|
||||
+ 'static,
|
||||
) {
|
||||
self.imp
|
||||
.invoke_procedure_with_callback::<_, WoodenFishWorkProcedureResult>(
|
||||
"update_wooden_fish_work",
|
||||
UpdateWoodenFishWorkArgs { input },
|
||||
__callback,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishAgentSessionCreateInput {
|
||||
pub session_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub work_title: String,
|
||||
pub work_description: String,
|
||||
pub theme_tags_json: Option<String>,
|
||||
pub config_json: Option<String>,
|
||||
pub draft_json: Option<String>,
|
||||
pub created_at_micros: i64,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishAgentSessionCreateInput {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishAgentSessionGetInput {
|
||||
pub session_id: String,
|
||||
pub owner_user_id: String,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishAgentSessionGetInput {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_agent_session_snapshot_type::WoodenFishAgentSessionSnapshot;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishAgentSessionProcedureResult {
|
||||
pub ok: bool,
|
||||
pub session: Option<WoodenFishAgentSessionSnapshot>,
|
||||
pub error_message: Option<String>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishAgentSessionProcedureResult {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishAgentSessionRow {
|
||||
pub session_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub current_turn: u32,
|
||||
pub progress_percent: u32,
|
||||
pub stage: String,
|
||||
pub config_json: String,
|
||||
pub draft_json: String,
|
||||
pub published_profile_id: String,
|
||||
pub created_at: __sdk::Timestamp,
|
||||
pub updated_at: __sdk::Timestamp,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishAgentSessionRow {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
/// Column accessor struct for the table `WoodenFishAgentSessionRow`.
|
||||
///
|
||||
/// Provides typed access to columns for query building.
|
||||
pub struct WoodenFishAgentSessionRowCols {
|
||||
pub session_id: __sdk::__query_builder::Col<WoodenFishAgentSessionRow, String>,
|
||||
pub owner_user_id: __sdk::__query_builder::Col<WoodenFishAgentSessionRow, String>,
|
||||
pub current_turn: __sdk::__query_builder::Col<WoodenFishAgentSessionRow, u32>,
|
||||
pub progress_percent: __sdk::__query_builder::Col<WoodenFishAgentSessionRow, u32>,
|
||||
pub stage: __sdk::__query_builder::Col<WoodenFishAgentSessionRow, String>,
|
||||
pub config_json: __sdk::__query_builder::Col<WoodenFishAgentSessionRow, String>,
|
||||
pub draft_json: __sdk::__query_builder::Col<WoodenFishAgentSessionRow, String>,
|
||||
pub published_profile_id: __sdk::__query_builder::Col<WoodenFishAgentSessionRow, String>,
|
||||
pub created_at: __sdk::__query_builder::Col<WoodenFishAgentSessionRow, __sdk::Timestamp>,
|
||||
pub updated_at: __sdk::__query_builder::Col<WoodenFishAgentSessionRow, __sdk::Timestamp>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasCols for WoodenFishAgentSessionRow {
|
||||
type Cols = WoodenFishAgentSessionRowCols;
|
||||
fn cols(table_name: &'static str) -> Self::Cols {
|
||||
WoodenFishAgentSessionRowCols {
|
||||
session_id: __sdk::__query_builder::Col::new(table_name, "session_id"),
|
||||
owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"),
|
||||
current_turn: __sdk::__query_builder::Col::new(table_name, "current_turn"),
|
||||
progress_percent: __sdk::__query_builder::Col::new(table_name, "progress_percent"),
|
||||
stage: __sdk::__query_builder::Col::new(table_name, "stage"),
|
||||
config_json: __sdk::__query_builder::Col::new(table_name, "config_json"),
|
||||
draft_json: __sdk::__query_builder::Col::new(table_name, "draft_json"),
|
||||
published_profile_id: __sdk::__query_builder::Col::new(
|
||||
table_name,
|
||||
"published_profile_id",
|
||||
),
|
||||
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Indexed column accessor struct for the table `WoodenFishAgentSessionRow`.
|
||||
///
|
||||
/// Provides typed access to indexed columns for query building.
|
||||
pub struct WoodenFishAgentSessionRowIxCols {
|
||||
pub owner_user_id: __sdk::__query_builder::IxCol<WoodenFishAgentSessionRow, String>,
|
||||
pub session_id: __sdk::__query_builder::IxCol<WoodenFishAgentSessionRow, String>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasIxCols for WoodenFishAgentSessionRow {
|
||||
type IxCols = WoodenFishAgentSessionRowIxCols;
|
||||
fn ix_cols(table_name: &'static str) -> Self::IxCols {
|
||||
WoodenFishAgentSessionRowIxCols {
|
||||
owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"),
|
||||
session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::CanBeLookupTable for WoodenFishAgentSessionRow {}
|
||||
@@ -0,0 +1,27 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_creator_config_snapshot_type::WoodenFishCreatorConfigSnapshot;
|
||||
use super::wooden_fish_draft_snapshot_type::WoodenFishDraftSnapshot;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishAgentSessionSnapshot {
|
||||
pub session_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub current_turn: u32,
|
||||
pub progress_percent: u32,
|
||||
pub stage: String,
|
||||
pub config: WoodenFishCreatorConfigSnapshot,
|
||||
pub draft: Option<WoodenFishDraftSnapshot>,
|
||||
pub published_profile_id: Option<String>,
|
||||
pub created_at_micros: i64,
|
||||
pub updated_at_micros: i64,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishAgentSessionSnapshot {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use super::wooden_fish_agent_session_row_type::WoodenFishAgentSessionRow;
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
/// Table handle for the table `wooden_fish_agent_session`.
|
||||
///
|
||||
/// Obtain a handle from the [`WoodenFishAgentSessionTableAccess::wooden_fish_agent_session`] method on [`super::RemoteTables`],
|
||||
/// like `ctx.db.wooden_fish_agent_session()`.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.wooden_fish_agent_session().on_insert(...)`.
|
||||
pub struct WoodenFishAgentSessionTableHandle<'ctx> {
|
||||
imp: __sdk::TableHandle<WoodenFishAgentSessionRow>,
|
||||
ctx: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the table `wooden_fish_agent_session`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteTables`].
|
||||
pub trait WoodenFishAgentSessionTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Obtain a [`WoodenFishAgentSessionTableHandle`], which mediates access to the table `wooden_fish_agent_session`.
|
||||
fn wooden_fish_agent_session(&self) -> WoodenFishAgentSessionTableHandle<'_>;
|
||||
}
|
||||
|
||||
impl WoodenFishAgentSessionTableAccess for super::RemoteTables {
|
||||
fn wooden_fish_agent_session(&self) -> WoodenFishAgentSessionTableHandle<'_> {
|
||||
WoodenFishAgentSessionTableHandle {
|
||||
imp: self
|
||||
.imp
|
||||
.get_table::<WoodenFishAgentSessionRow>("wooden_fish_agent_session"),
|
||||
ctx: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct WoodenFishAgentSessionInsertCallbackId(__sdk::CallbackId);
|
||||
pub struct WoodenFishAgentSessionDeleteCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::Table for WoodenFishAgentSessionTableHandle<'ctx> {
|
||||
type Row = WoodenFishAgentSessionRow;
|
||||
type EventContext = super::EventContext;
|
||||
|
||||
fn count(&self) -> u64 {
|
||||
self.imp.count()
|
||||
}
|
||||
fn iter(&self) -> impl Iterator<Item = WoodenFishAgentSessionRow> + '_ {
|
||||
self.imp.iter()
|
||||
}
|
||||
|
||||
type InsertCallbackId = WoodenFishAgentSessionInsertCallbackId;
|
||||
|
||||
fn on_insert(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishAgentSessionInsertCallbackId {
|
||||
WoodenFishAgentSessionInsertCallbackId(self.imp.on_insert(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_insert(&self, callback: WoodenFishAgentSessionInsertCallbackId) {
|
||||
self.imp.remove_on_insert(callback.0)
|
||||
}
|
||||
|
||||
type DeleteCallbackId = WoodenFishAgentSessionDeleteCallbackId;
|
||||
|
||||
fn on_delete(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishAgentSessionDeleteCallbackId {
|
||||
WoodenFishAgentSessionDeleteCallbackId(self.imp.on_delete(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_delete(&self, callback: WoodenFishAgentSessionDeleteCallbackId) {
|
||||
self.imp.remove_on_delete(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct WoodenFishAgentSessionUpdateCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::TableWithPrimaryKey for WoodenFishAgentSessionTableHandle<'ctx> {
|
||||
type UpdateCallbackId = WoodenFishAgentSessionUpdateCallbackId;
|
||||
|
||||
fn on_update(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishAgentSessionUpdateCallbackId {
|
||||
WoodenFishAgentSessionUpdateCallbackId(self.imp.on_update(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_update(&self, callback: WoodenFishAgentSessionUpdateCallbackId) {
|
||||
self.imp.remove_on_update(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
/// Access to the `session_id` unique index on the table `wooden_fish_agent_session`,
|
||||
/// which allows point queries on the field of the same name
|
||||
/// via the [`WoodenFishAgentSessionSessionIdUnique::find`] method.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.wooden_fish_agent_session().session_id().find(...)`.
|
||||
pub struct WoodenFishAgentSessionSessionIdUnique<'ctx> {
|
||||
imp: __sdk::UniqueConstraintHandle<WoodenFishAgentSessionRow, String>,
|
||||
phantom: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
impl<'ctx> WoodenFishAgentSessionTableHandle<'ctx> {
|
||||
/// Get a handle on the `session_id` unique index on the table `wooden_fish_agent_session`.
|
||||
pub fn session_id(&self) -> WoodenFishAgentSessionSessionIdUnique<'ctx> {
|
||||
WoodenFishAgentSessionSessionIdUnique {
|
||||
imp: self.imp.get_unique_constraint::<String>("session_id"),
|
||||
phantom: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'ctx> WoodenFishAgentSessionSessionIdUnique<'ctx> {
|
||||
/// Find the subscribed row whose `session_id` column value is equal to `col_val`,
|
||||
/// if such a row is present in the client cache.
|
||||
pub fn find(&self, col_val: &String) -> Option<WoodenFishAgentSessionRow> {
|
||||
self.imp.find(col_val)
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||
let _table =
|
||||
client_cache.get_or_make_table::<WoodenFishAgentSessionRow>("wooden_fish_agent_session");
|
||||
_table.add_unique_constraint::<String>("session_id", |row| &row.session_id);
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn parse_table_update(
|
||||
raw_updates: __ws::v2::TableUpdate,
|
||||
) -> __sdk::Result<__sdk::TableUpdate<WoodenFishAgentSessionRow>> {
|
||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||
__sdk::InternalError::failed_parse("TableUpdate<WoodenFishAgentSessionRow>", "TableUpdate")
|
||||
.with_cause(e)
|
||||
.into()
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for query builder access to the table `WoodenFishAgentSessionRow`.
|
||||
///
|
||||
/// Implemented for [`__sdk::QueryTableAccessor`].
|
||||
pub trait wooden_fish_agent_sessionQueryTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Get a query builder for the table `WoodenFishAgentSessionRow`.
|
||||
fn wooden_fish_agent_session(&self)
|
||||
-> __sdk::__query_builder::Table<WoodenFishAgentSessionRow>;
|
||||
}
|
||||
|
||||
impl wooden_fish_agent_sessionQueryTableAccess for __sdk::QueryTableAccessor {
|
||||
fn wooden_fish_agent_session(
|
||||
&self,
|
||||
) -> __sdk::__query_builder::Table<WoodenFishAgentSessionRow> {
|
||||
__sdk::__query_builder::Table::new("wooden_fish_agent_session")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishAudioAssetSnapshot {
|
||||
pub asset_id: String,
|
||||
pub audio_src: String,
|
||||
pub audio_object_key: String,
|
||||
pub asset_object_id: String,
|
||||
pub source: String,
|
||||
pub prompt: Option<String>,
|
||||
pub duration_ms: Option<u32>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishAudioAssetSnapshot {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishCreatorConfigSnapshot {
|
||||
pub work_title: String,
|
||||
pub work_description: String,
|
||||
pub theme_tags: Vec<String>,
|
||||
pub hit_object_prompt: String,
|
||||
pub hit_object_reference_image_src: Option<String>,
|
||||
pub hit_sound_prompt: Option<String>,
|
||||
pub floating_words: Vec<String>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishCreatorConfigSnapshot {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishDraftCompileInput {
|
||||
pub session_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub profile_id: String,
|
||||
pub author_display_name: String,
|
||||
pub work_title: String,
|
||||
pub work_description: String,
|
||||
pub theme_tags_json: Option<String>,
|
||||
pub hit_object_prompt: String,
|
||||
pub hit_object_reference_image_src: Option<String>,
|
||||
pub hit_sound_prompt: Option<String>,
|
||||
pub hit_object_asset_json: Option<String>,
|
||||
pub hit_sound_asset_json: Option<String>,
|
||||
pub floating_words_json: Option<String>,
|
||||
pub cover_image_src: Option<String>,
|
||||
pub generation_status: Option<String>,
|
||||
pub compiled_at_micros: i64,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishDraftCompileInput {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_audio_asset_snapshot_type::WoodenFishAudioAssetSnapshot;
|
||||
use super::wooden_fish_image_asset_snapshot_type::WoodenFishImageAssetSnapshot;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishDraftSnapshot {
|
||||
pub template_id: String,
|
||||
pub template_name: String,
|
||||
pub profile_id: Option<String>,
|
||||
pub work_title: String,
|
||||
pub work_description: String,
|
||||
pub theme_tags: Vec<String>,
|
||||
pub hit_object_prompt: String,
|
||||
pub hit_object_reference_image_src: Option<String>,
|
||||
pub hit_sound_prompt: Option<String>,
|
||||
pub floating_words: Vec<String>,
|
||||
pub hit_object_asset: Option<WoodenFishImageAssetSnapshot>,
|
||||
pub hit_sound_asset: Option<WoodenFishAudioAssetSnapshot>,
|
||||
pub cover_image_src: Option<String>,
|
||||
pub generation_status: String,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishDraftSnapshot {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishEventRow {
|
||||
pub event_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub profile_id: String,
|
||||
pub run_id: String,
|
||||
pub event_type: String,
|
||||
pub result: String,
|
||||
pub occurred_at: __sdk::Timestamp,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishEventRow {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
/// Column accessor struct for the table `WoodenFishEventRow`.
|
||||
///
|
||||
/// Provides typed access to columns for query building.
|
||||
pub struct WoodenFishEventRowCols {
|
||||
pub event_id: __sdk::__query_builder::Col<WoodenFishEventRow, String>,
|
||||
pub owner_user_id: __sdk::__query_builder::Col<WoodenFishEventRow, String>,
|
||||
pub profile_id: __sdk::__query_builder::Col<WoodenFishEventRow, String>,
|
||||
pub run_id: __sdk::__query_builder::Col<WoodenFishEventRow, String>,
|
||||
pub event_type: __sdk::__query_builder::Col<WoodenFishEventRow, String>,
|
||||
pub result: __sdk::__query_builder::Col<WoodenFishEventRow, String>,
|
||||
pub occurred_at: __sdk::__query_builder::Col<WoodenFishEventRow, __sdk::Timestamp>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasCols for WoodenFishEventRow {
|
||||
type Cols = WoodenFishEventRowCols;
|
||||
fn cols(table_name: &'static str) -> Self::Cols {
|
||||
WoodenFishEventRowCols {
|
||||
event_id: __sdk::__query_builder::Col::new(table_name, "event_id"),
|
||||
owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"),
|
||||
profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"),
|
||||
run_id: __sdk::__query_builder::Col::new(table_name, "run_id"),
|
||||
event_type: __sdk::__query_builder::Col::new(table_name, "event_type"),
|
||||
result: __sdk::__query_builder::Col::new(table_name, "result"),
|
||||
occurred_at: __sdk::__query_builder::Col::new(table_name, "occurred_at"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Indexed column accessor struct for the table `WoodenFishEventRow`.
|
||||
///
|
||||
/// Provides typed access to indexed columns for query building.
|
||||
pub struct WoodenFishEventRowIxCols {
|
||||
pub event_id: __sdk::__query_builder::IxCol<WoodenFishEventRow, String>,
|
||||
pub profile_id: __sdk::__query_builder::IxCol<WoodenFishEventRow, String>,
|
||||
pub run_id: __sdk::__query_builder::IxCol<WoodenFishEventRow, String>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasIxCols for WoodenFishEventRow {
|
||||
type IxCols = WoodenFishEventRowIxCols;
|
||||
fn ix_cols(table_name: &'static str) -> Self::IxCols {
|
||||
WoodenFishEventRowIxCols {
|
||||
event_id: __sdk::__query_builder::IxCol::new(table_name, "event_id"),
|
||||
profile_id: __sdk::__query_builder::IxCol::new(table_name, "profile_id"),
|
||||
run_id: __sdk::__query_builder::IxCol::new(table_name, "run_id"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::CanBeLookupTable for WoodenFishEventRow {}
|
||||
@@ -0,0 +1,161 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use super::wooden_fish_event_row_type::WoodenFishEventRow;
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
/// Table handle for the table `wooden_fish_event`.
|
||||
///
|
||||
/// Obtain a handle from the [`WoodenFishEventTableAccess::wooden_fish_event`] method on [`super::RemoteTables`],
|
||||
/// like `ctx.db.wooden_fish_event()`.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.wooden_fish_event().on_insert(...)`.
|
||||
pub struct WoodenFishEventTableHandle<'ctx> {
|
||||
imp: __sdk::TableHandle<WoodenFishEventRow>,
|
||||
ctx: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the table `wooden_fish_event`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteTables`].
|
||||
pub trait WoodenFishEventTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Obtain a [`WoodenFishEventTableHandle`], which mediates access to the table `wooden_fish_event`.
|
||||
fn wooden_fish_event(&self) -> WoodenFishEventTableHandle<'_>;
|
||||
}
|
||||
|
||||
impl WoodenFishEventTableAccess for super::RemoteTables {
|
||||
fn wooden_fish_event(&self) -> WoodenFishEventTableHandle<'_> {
|
||||
WoodenFishEventTableHandle {
|
||||
imp: self
|
||||
.imp
|
||||
.get_table::<WoodenFishEventRow>("wooden_fish_event"),
|
||||
ctx: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct WoodenFishEventInsertCallbackId(__sdk::CallbackId);
|
||||
pub struct WoodenFishEventDeleteCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::Table for WoodenFishEventTableHandle<'ctx> {
|
||||
type Row = WoodenFishEventRow;
|
||||
type EventContext = super::EventContext;
|
||||
|
||||
fn count(&self) -> u64 {
|
||||
self.imp.count()
|
||||
}
|
||||
fn iter(&self) -> impl Iterator<Item = WoodenFishEventRow> + '_ {
|
||||
self.imp.iter()
|
||||
}
|
||||
|
||||
type InsertCallbackId = WoodenFishEventInsertCallbackId;
|
||||
|
||||
fn on_insert(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishEventInsertCallbackId {
|
||||
WoodenFishEventInsertCallbackId(self.imp.on_insert(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_insert(&self, callback: WoodenFishEventInsertCallbackId) {
|
||||
self.imp.remove_on_insert(callback.0)
|
||||
}
|
||||
|
||||
type DeleteCallbackId = WoodenFishEventDeleteCallbackId;
|
||||
|
||||
fn on_delete(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishEventDeleteCallbackId {
|
||||
WoodenFishEventDeleteCallbackId(self.imp.on_delete(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_delete(&self, callback: WoodenFishEventDeleteCallbackId) {
|
||||
self.imp.remove_on_delete(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct WoodenFishEventUpdateCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::TableWithPrimaryKey for WoodenFishEventTableHandle<'ctx> {
|
||||
type UpdateCallbackId = WoodenFishEventUpdateCallbackId;
|
||||
|
||||
fn on_update(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishEventUpdateCallbackId {
|
||||
WoodenFishEventUpdateCallbackId(self.imp.on_update(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_update(&self, callback: WoodenFishEventUpdateCallbackId) {
|
||||
self.imp.remove_on_update(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
/// Access to the `event_id` unique index on the table `wooden_fish_event`,
|
||||
/// which allows point queries on the field of the same name
|
||||
/// via the [`WoodenFishEventEventIdUnique::find`] method.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.wooden_fish_event().event_id().find(...)`.
|
||||
pub struct WoodenFishEventEventIdUnique<'ctx> {
|
||||
imp: __sdk::UniqueConstraintHandle<WoodenFishEventRow, String>,
|
||||
phantom: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
impl<'ctx> WoodenFishEventTableHandle<'ctx> {
|
||||
/// Get a handle on the `event_id` unique index on the table `wooden_fish_event`.
|
||||
pub fn event_id(&self) -> WoodenFishEventEventIdUnique<'ctx> {
|
||||
WoodenFishEventEventIdUnique {
|
||||
imp: self.imp.get_unique_constraint::<String>("event_id"),
|
||||
phantom: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'ctx> WoodenFishEventEventIdUnique<'ctx> {
|
||||
/// Find the subscribed row whose `event_id` column value is equal to `col_val`,
|
||||
/// if such a row is present in the client cache.
|
||||
pub fn find(&self, col_val: &String) -> Option<WoodenFishEventRow> {
|
||||
self.imp.find(col_val)
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||
let _table = client_cache.get_or_make_table::<WoodenFishEventRow>("wooden_fish_event");
|
||||
_table.add_unique_constraint::<String>("event_id", |row| &row.event_id);
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn parse_table_update(
|
||||
raw_updates: __ws::v2::TableUpdate,
|
||||
) -> __sdk::Result<__sdk::TableUpdate<WoodenFishEventRow>> {
|
||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||
__sdk::InternalError::failed_parse("TableUpdate<WoodenFishEventRow>", "TableUpdate")
|
||||
.with_cause(e)
|
||||
.into()
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for query builder access to the table `WoodenFishEventRow`.
|
||||
///
|
||||
/// Implemented for [`__sdk::QueryTableAccessor`].
|
||||
pub trait wooden_fish_eventQueryTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Get a query builder for the table `WoodenFishEventRow`.
|
||||
fn wooden_fish_event(&self) -> __sdk::__query_builder::Table<WoodenFishEventRow>;
|
||||
}
|
||||
|
||||
impl wooden_fish_eventQueryTableAccess for __sdk::QueryTableAccessor {
|
||||
fn wooden_fish_event(&self) -> __sdk::__query_builder::Table<WoodenFishEventRow> {
|
||||
__sdk::__query_builder::Table::new("wooden_fish_event")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishGalleryCardViewRow {
|
||||
pub public_work_code: String,
|
||||
pub work_id: String,
|
||||
pub profile_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub author_display_name: String,
|
||||
pub work_title: String,
|
||||
pub work_description: String,
|
||||
pub cover_image_src: String,
|
||||
pub theme_tags: Vec<String>,
|
||||
pub publication_status: String,
|
||||
pub play_count: u32,
|
||||
pub updated_at_micros: i64,
|
||||
pub published_at_micros: Option<i64>,
|
||||
pub generation_status: String,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishGalleryCardViewRow {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
/// Column accessor struct for the table `WoodenFishGalleryCardViewRow`.
|
||||
///
|
||||
/// Provides typed access to columns for query building.
|
||||
pub struct WoodenFishGalleryCardViewRowCols {
|
||||
pub public_work_code: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, String>,
|
||||
pub work_id: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, String>,
|
||||
pub profile_id: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, String>,
|
||||
pub owner_user_id: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, String>,
|
||||
pub author_display_name: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, String>,
|
||||
pub work_title: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, String>,
|
||||
pub work_description: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, String>,
|
||||
pub cover_image_src: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, String>,
|
||||
pub theme_tags: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, Vec<String>>,
|
||||
pub publication_status: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, String>,
|
||||
pub play_count: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, u32>,
|
||||
pub updated_at_micros: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, i64>,
|
||||
pub published_at_micros: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, Option<i64>>,
|
||||
pub generation_status: __sdk::__query_builder::Col<WoodenFishGalleryCardViewRow, String>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasCols for WoodenFishGalleryCardViewRow {
|
||||
type Cols = WoodenFishGalleryCardViewRowCols;
|
||||
fn cols(table_name: &'static str) -> Self::Cols {
|
||||
WoodenFishGalleryCardViewRowCols {
|
||||
public_work_code: __sdk::__query_builder::Col::new(table_name, "public_work_code"),
|
||||
work_id: __sdk::__query_builder::Col::new(table_name, "work_id"),
|
||||
profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"),
|
||||
owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"),
|
||||
author_display_name: __sdk::__query_builder::Col::new(
|
||||
table_name,
|
||||
"author_display_name",
|
||||
),
|
||||
work_title: __sdk::__query_builder::Col::new(table_name, "work_title"),
|
||||
work_description: __sdk::__query_builder::Col::new(table_name, "work_description"),
|
||||
cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"),
|
||||
theme_tags: __sdk::__query_builder::Col::new(table_name, "theme_tags"),
|
||||
publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"),
|
||||
play_count: __sdk::__query_builder::Col::new(table_name, "play_count"),
|
||||
updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"),
|
||||
published_at_micros: __sdk::__query_builder::Col::new(
|
||||
table_name,
|
||||
"published_at_micros",
|
||||
),
|
||||
generation_status: __sdk::__query_builder::Col::new(table_name, "generation_status"),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use super::wooden_fish_gallery_card_view_row_type::WoodenFishGalleryCardViewRow;
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
/// Table handle for the table `wooden_fish_gallery_card_view`.
|
||||
///
|
||||
/// Obtain a handle from the [`WoodenFishGalleryCardViewTableAccess::wooden_fish_gallery_card_view`] method on [`super::RemoteTables`],
|
||||
/// like `ctx.db.wooden_fish_gallery_card_view()`.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.wooden_fish_gallery_card_view().on_insert(...)`.
|
||||
pub struct WoodenFishGalleryCardViewTableHandle<'ctx> {
|
||||
imp: __sdk::TableHandle<WoodenFishGalleryCardViewRow>,
|
||||
ctx: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the table `wooden_fish_gallery_card_view`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteTables`].
|
||||
pub trait WoodenFishGalleryCardViewTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Obtain a [`WoodenFishGalleryCardViewTableHandle`], which mediates access to the table `wooden_fish_gallery_card_view`.
|
||||
fn wooden_fish_gallery_card_view(&self) -> WoodenFishGalleryCardViewTableHandle<'_>;
|
||||
}
|
||||
|
||||
impl WoodenFishGalleryCardViewTableAccess for super::RemoteTables {
|
||||
fn wooden_fish_gallery_card_view(&self) -> WoodenFishGalleryCardViewTableHandle<'_> {
|
||||
WoodenFishGalleryCardViewTableHandle {
|
||||
imp: self
|
||||
.imp
|
||||
.get_table::<WoodenFishGalleryCardViewRow>("wooden_fish_gallery_card_view"),
|
||||
ctx: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct WoodenFishGalleryCardViewInsertCallbackId(__sdk::CallbackId);
|
||||
pub struct WoodenFishGalleryCardViewDeleteCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::Table for WoodenFishGalleryCardViewTableHandle<'ctx> {
|
||||
type Row = WoodenFishGalleryCardViewRow;
|
||||
type EventContext = super::EventContext;
|
||||
|
||||
fn count(&self) -> u64 {
|
||||
self.imp.count()
|
||||
}
|
||||
fn iter(&self) -> impl Iterator<Item = WoodenFishGalleryCardViewRow> + '_ {
|
||||
self.imp.iter()
|
||||
}
|
||||
|
||||
type InsertCallbackId = WoodenFishGalleryCardViewInsertCallbackId;
|
||||
|
||||
fn on_insert(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishGalleryCardViewInsertCallbackId {
|
||||
WoodenFishGalleryCardViewInsertCallbackId(self.imp.on_insert(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_insert(&self, callback: WoodenFishGalleryCardViewInsertCallbackId) {
|
||||
self.imp.remove_on_insert(callback.0)
|
||||
}
|
||||
|
||||
type DeleteCallbackId = WoodenFishGalleryCardViewDeleteCallbackId;
|
||||
|
||||
fn on_delete(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishGalleryCardViewDeleteCallbackId {
|
||||
WoodenFishGalleryCardViewDeleteCallbackId(self.imp.on_delete(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_delete(&self, callback: WoodenFishGalleryCardViewDeleteCallbackId) {
|
||||
self.imp.remove_on_delete(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||
let _table = client_cache
|
||||
.get_or_make_table::<WoodenFishGalleryCardViewRow>("wooden_fish_gallery_card_view");
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn parse_table_update(
|
||||
raw_updates: __ws::v2::TableUpdate,
|
||||
) -> __sdk::Result<__sdk::TableUpdate<WoodenFishGalleryCardViewRow>> {
|
||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||
__sdk::InternalError::failed_parse(
|
||||
"TableUpdate<WoodenFishGalleryCardViewRow>",
|
||||
"TableUpdate",
|
||||
)
|
||||
.with_cause(e)
|
||||
.into()
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for query builder access to the table `WoodenFishGalleryCardViewRow`.
|
||||
///
|
||||
/// Implemented for [`__sdk::QueryTableAccessor`].
|
||||
pub trait wooden_fish_gallery_card_viewQueryTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Get a query builder for the table `WoodenFishGalleryCardViewRow`.
|
||||
fn wooden_fish_gallery_card_view(
|
||||
&self,
|
||||
) -> __sdk::__query_builder::Table<WoodenFishGalleryCardViewRow>;
|
||||
}
|
||||
|
||||
impl wooden_fish_gallery_card_viewQueryTableAccess for __sdk::QueryTableAccessor {
|
||||
fn wooden_fish_gallery_card_view(
|
||||
&self,
|
||||
) -> __sdk::__query_builder::Table<WoodenFishGalleryCardViewRow> {
|
||||
__sdk::__query_builder::Table::new("wooden_fish_gallery_card_view")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_audio_asset_snapshot_type::WoodenFishAudioAssetSnapshot;
|
||||
use super::wooden_fish_image_asset_snapshot_type::WoodenFishImageAssetSnapshot;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishGalleryViewRow {
|
||||
pub public_work_code: String,
|
||||
pub work_id: String,
|
||||
pub profile_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub source_session_id: String,
|
||||
pub author_display_name: String,
|
||||
pub work_title: String,
|
||||
pub work_description: String,
|
||||
pub theme_tags: Vec<String>,
|
||||
pub hit_object_prompt: String,
|
||||
pub hit_object_reference_image_src: Option<String>,
|
||||
pub hit_sound_prompt: Option<String>,
|
||||
pub hit_object_asset: Option<WoodenFishImageAssetSnapshot>,
|
||||
pub hit_sound_asset: Option<WoodenFishAudioAssetSnapshot>,
|
||||
pub floating_words: Vec<String>,
|
||||
pub cover_image_src: String,
|
||||
pub publication_status: String,
|
||||
pub publish_ready: bool,
|
||||
pub play_count: u32,
|
||||
pub generation_status: String,
|
||||
pub updated_at_micros: i64,
|
||||
pub published_at_micros: Option<i64>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishGalleryViewRow {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
/// Column accessor struct for the table `WoodenFishGalleryViewRow`.
|
||||
///
|
||||
/// Provides typed access to columns for query building.
|
||||
pub struct WoodenFishGalleryViewRowCols {
|
||||
pub public_work_code: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub work_id: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub profile_id: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub owner_user_id: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub source_session_id: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub author_display_name: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub work_title: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub work_description: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub theme_tags: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, Vec<String>>,
|
||||
pub hit_object_prompt: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub hit_object_reference_image_src:
|
||||
__sdk::__query_builder::Col<WoodenFishGalleryViewRow, Option<String>>,
|
||||
pub hit_sound_prompt: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, Option<String>>,
|
||||
pub hit_object_asset:
|
||||
__sdk::__query_builder::Col<WoodenFishGalleryViewRow, Option<WoodenFishImageAssetSnapshot>>,
|
||||
pub hit_sound_asset:
|
||||
__sdk::__query_builder::Col<WoodenFishGalleryViewRow, Option<WoodenFishAudioAssetSnapshot>>,
|
||||
pub floating_words: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, Vec<String>>,
|
||||
pub cover_image_src: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub publication_status: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub publish_ready: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, bool>,
|
||||
pub play_count: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, u32>,
|
||||
pub generation_status: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, String>,
|
||||
pub updated_at_micros: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, i64>,
|
||||
pub published_at_micros: __sdk::__query_builder::Col<WoodenFishGalleryViewRow, Option<i64>>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasCols for WoodenFishGalleryViewRow {
|
||||
type Cols = WoodenFishGalleryViewRowCols;
|
||||
fn cols(table_name: &'static str) -> Self::Cols {
|
||||
WoodenFishGalleryViewRowCols {
|
||||
public_work_code: __sdk::__query_builder::Col::new(table_name, "public_work_code"),
|
||||
work_id: __sdk::__query_builder::Col::new(table_name, "work_id"),
|
||||
profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"),
|
||||
owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"),
|
||||
source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"),
|
||||
author_display_name: __sdk::__query_builder::Col::new(
|
||||
table_name,
|
||||
"author_display_name",
|
||||
),
|
||||
work_title: __sdk::__query_builder::Col::new(table_name, "work_title"),
|
||||
work_description: __sdk::__query_builder::Col::new(table_name, "work_description"),
|
||||
theme_tags: __sdk::__query_builder::Col::new(table_name, "theme_tags"),
|
||||
hit_object_prompt: __sdk::__query_builder::Col::new(table_name, "hit_object_prompt"),
|
||||
hit_object_reference_image_src: __sdk::__query_builder::Col::new(
|
||||
table_name,
|
||||
"hit_object_reference_image_src",
|
||||
),
|
||||
hit_sound_prompt: __sdk::__query_builder::Col::new(table_name, "hit_sound_prompt"),
|
||||
hit_object_asset: __sdk::__query_builder::Col::new(table_name, "hit_object_asset"),
|
||||
hit_sound_asset: __sdk::__query_builder::Col::new(table_name, "hit_sound_asset"),
|
||||
floating_words: __sdk::__query_builder::Col::new(table_name, "floating_words"),
|
||||
cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"),
|
||||
publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"),
|
||||
publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"),
|
||||
play_count: __sdk::__query_builder::Col::new(table_name, "play_count"),
|
||||
generation_status: __sdk::__query_builder::Col::new(table_name, "generation_status"),
|
||||
updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"),
|
||||
published_at_micros: __sdk::__query_builder::Col::new(
|
||||
table_name,
|
||||
"published_at_micros",
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use super::wooden_fish_audio_asset_snapshot_type::WoodenFishAudioAssetSnapshot;
|
||||
use super::wooden_fish_gallery_view_row_type::WoodenFishGalleryViewRow;
|
||||
use super::wooden_fish_image_asset_snapshot_type::WoodenFishImageAssetSnapshot;
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
/// Table handle for the table `wooden_fish_gallery_view`.
|
||||
///
|
||||
/// Obtain a handle from the [`WoodenFishGalleryViewTableAccess::wooden_fish_gallery_view`] method on [`super::RemoteTables`],
|
||||
/// like `ctx.db.wooden_fish_gallery_view()`.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.wooden_fish_gallery_view().on_insert(...)`.
|
||||
pub struct WoodenFishGalleryViewTableHandle<'ctx> {
|
||||
imp: __sdk::TableHandle<WoodenFishGalleryViewRow>,
|
||||
ctx: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the table `wooden_fish_gallery_view`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteTables`].
|
||||
pub trait WoodenFishGalleryViewTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Obtain a [`WoodenFishGalleryViewTableHandle`], which mediates access to the table `wooden_fish_gallery_view`.
|
||||
fn wooden_fish_gallery_view(&self) -> WoodenFishGalleryViewTableHandle<'_>;
|
||||
}
|
||||
|
||||
impl WoodenFishGalleryViewTableAccess for super::RemoteTables {
|
||||
fn wooden_fish_gallery_view(&self) -> WoodenFishGalleryViewTableHandle<'_> {
|
||||
WoodenFishGalleryViewTableHandle {
|
||||
imp: self
|
||||
.imp
|
||||
.get_table::<WoodenFishGalleryViewRow>("wooden_fish_gallery_view"),
|
||||
ctx: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct WoodenFishGalleryViewInsertCallbackId(__sdk::CallbackId);
|
||||
pub struct WoodenFishGalleryViewDeleteCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::Table for WoodenFishGalleryViewTableHandle<'ctx> {
|
||||
type Row = WoodenFishGalleryViewRow;
|
||||
type EventContext = super::EventContext;
|
||||
|
||||
fn count(&self) -> u64 {
|
||||
self.imp.count()
|
||||
}
|
||||
fn iter(&self) -> impl Iterator<Item = WoodenFishGalleryViewRow> + '_ {
|
||||
self.imp.iter()
|
||||
}
|
||||
|
||||
type InsertCallbackId = WoodenFishGalleryViewInsertCallbackId;
|
||||
|
||||
fn on_insert(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishGalleryViewInsertCallbackId {
|
||||
WoodenFishGalleryViewInsertCallbackId(self.imp.on_insert(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_insert(&self, callback: WoodenFishGalleryViewInsertCallbackId) {
|
||||
self.imp.remove_on_insert(callback.0)
|
||||
}
|
||||
|
||||
type DeleteCallbackId = WoodenFishGalleryViewDeleteCallbackId;
|
||||
|
||||
fn on_delete(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishGalleryViewDeleteCallbackId {
|
||||
WoodenFishGalleryViewDeleteCallbackId(self.imp.on_delete(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_delete(&self, callback: WoodenFishGalleryViewDeleteCallbackId) {
|
||||
self.imp.remove_on_delete(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||
let _table =
|
||||
client_cache.get_or_make_table::<WoodenFishGalleryViewRow>("wooden_fish_gallery_view");
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn parse_table_update(
|
||||
raw_updates: __ws::v2::TableUpdate,
|
||||
) -> __sdk::Result<__sdk::TableUpdate<WoodenFishGalleryViewRow>> {
|
||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||
__sdk::InternalError::failed_parse("TableUpdate<WoodenFishGalleryViewRow>", "TableUpdate")
|
||||
.with_cause(e)
|
||||
.into()
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for query builder access to the table `WoodenFishGalleryViewRow`.
|
||||
///
|
||||
/// Implemented for [`__sdk::QueryTableAccessor`].
|
||||
pub trait wooden_fish_gallery_viewQueryTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Get a query builder for the table `WoodenFishGalleryViewRow`.
|
||||
fn wooden_fish_gallery_view(&self) -> __sdk::__query_builder::Table<WoodenFishGalleryViewRow>;
|
||||
}
|
||||
|
||||
impl wooden_fish_gallery_viewQueryTableAccess for __sdk::QueryTableAccessor {
|
||||
fn wooden_fish_gallery_view(&self) -> __sdk::__query_builder::Table<WoodenFishGalleryViewRow> {
|
||||
__sdk::__query_builder::Table::new("wooden_fish_gallery_view")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishImageAssetSnapshot {
|
||||
pub asset_id: String,
|
||||
pub image_src: String,
|
||||
pub image_object_key: String,
|
||||
pub asset_object_id: String,
|
||||
pub generation_provider: String,
|
||||
pub prompt: String,
|
||||
pub width: u32,
|
||||
pub height: u32,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishImageAssetSnapshot {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishRunCheckpointInput {
|
||||
pub run_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub total_tap_count: u32,
|
||||
pub word_counters_json: String,
|
||||
pub client_event_id: String,
|
||||
pub checkpoint_at_ms: i64,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishRunCheckpointInput {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishRunFinishInput {
|
||||
pub run_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub total_tap_count: u32,
|
||||
pub word_counters_json: String,
|
||||
pub client_event_id: String,
|
||||
pub finished_at_ms: i64,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishRunFinishInput {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishRunGetInput {
|
||||
pub run_id: String,
|
||||
pub owner_user_id: String,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishRunGetInput {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_run_snapshot_type::WoodenFishRunSnapshot;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishRunProcedureResult {
|
||||
pub ok: bool,
|
||||
pub run: Option<WoodenFishRunSnapshot>,
|
||||
pub error_message: Option<String>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishRunProcedureResult {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_run_status_type::WoodenFishRunStatus;
|
||||
use super::wooden_fish_word_counter_type::WoodenFishWordCounter;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishRunSnapshot {
|
||||
pub run_id: String,
|
||||
pub profile_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub status: WoodenFishRunStatus,
|
||||
pub total_tap_count: u32,
|
||||
pub word_counters: Vec<WoodenFishWordCounter>,
|
||||
pub started_at_ms: u64,
|
||||
pub updated_at_ms: u64,
|
||||
pub finished_at_ms: Option<u64>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishRunSnapshot {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishRunStartInput {
|
||||
pub run_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub profile_id: String,
|
||||
pub client_event_id: String,
|
||||
pub started_at_ms: i64,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishRunStartInput {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
#[derive(Copy, Eq, Hash)]
|
||||
pub enum WoodenFishRunStatus {
|
||||
Playing,
|
||||
|
||||
Finished,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishRunStatus {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishRuntimeRunRow {
|
||||
pub run_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub profile_id: String,
|
||||
pub status: String,
|
||||
pub total_tap_count: u32,
|
||||
pub word_counters_json: String,
|
||||
pub started_at_ms: i64,
|
||||
pub updated_at_ms: i64,
|
||||
pub finished_at_ms: i64,
|
||||
pub snapshot_json: String,
|
||||
pub created_at: __sdk::Timestamp,
|
||||
pub updated_at: __sdk::Timestamp,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishRuntimeRunRow {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
/// Column accessor struct for the table `WoodenFishRuntimeRunRow`.
|
||||
///
|
||||
/// Provides typed access to columns for query building.
|
||||
pub struct WoodenFishRuntimeRunRowCols {
|
||||
pub run_id: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, String>,
|
||||
pub owner_user_id: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, String>,
|
||||
pub profile_id: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, String>,
|
||||
pub status: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, String>,
|
||||
pub total_tap_count: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, u32>,
|
||||
pub word_counters_json: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, String>,
|
||||
pub started_at_ms: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, i64>,
|
||||
pub updated_at_ms: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, i64>,
|
||||
pub finished_at_ms: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, i64>,
|
||||
pub snapshot_json: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, String>,
|
||||
pub created_at: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, __sdk::Timestamp>,
|
||||
pub updated_at: __sdk::__query_builder::Col<WoodenFishRuntimeRunRow, __sdk::Timestamp>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasCols for WoodenFishRuntimeRunRow {
|
||||
type Cols = WoodenFishRuntimeRunRowCols;
|
||||
fn cols(table_name: &'static str) -> Self::Cols {
|
||||
WoodenFishRuntimeRunRowCols {
|
||||
run_id: __sdk::__query_builder::Col::new(table_name, "run_id"),
|
||||
owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"),
|
||||
profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"),
|
||||
status: __sdk::__query_builder::Col::new(table_name, "status"),
|
||||
total_tap_count: __sdk::__query_builder::Col::new(table_name, "total_tap_count"),
|
||||
word_counters_json: __sdk::__query_builder::Col::new(table_name, "word_counters_json"),
|
||||
started_at_ms: __sdk::__query_builder::Col::new(table_name, "started_at_ms"),
|
||||
updated_at_ms: __sdk::__query_builder::Col::new(table_name, "updated_at_ms"),
|
||||
finished_at_ms: __sdk::__query_builder::Col::new(table_name, "finished_at_ms"),
|
||||
snapshot_json: __sdk::__query_builder::Col::new(table_name, "snapshot_json"),
|
||||
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Indexed column accessor struct for the table `WoodenFishRuntimeRunRow`.
|
||||
///
|
||||
/// Provides typed access to indexed columns for query building.
|
||||
pub struct WoodenFishRuntimeRunRowIxCols {
|
||||
pub owner_user_id: __sdk::__query_builder::IxCol<WoodenFishRuntimeRunRow, String>,
|
||||
pub profile_id: __sdk::__query_builder::IxCol<WoodenFishRuntimeRunRow, String>,
|
||||
pub run_id: __sdk::__query_builder::IxCol<WoodenFishRuntimeRunRow, String>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasIxCols for WoodenFishRuntimeRunRow {
|
||||
type IxCols = WoodenFishRuntimeRunRowIxCols;
|
||||
fn ix_cols(table_name: &'static str) -> Self::IxCols {
|
||||
WoodenFishRuntimeRunRowIxCols {
|
||||
owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"),
|
||||
profile_id: __sdk::__query_builder::IxCol::new(table_name, "profile_id"),
|
||||
run_id: __sdk::__query_builder::IxCol::new(table_name, "run_id"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::CanBeLookupTable for WoodenFishRuntimeRunRow {}
|
||||
@@ -0,0 +1,162 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use super::wooden_fish_runtime_run_row_type::WoodenFishRuntimeRunRow;
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
/// Table handle for the table `wooden_fish_runtime_run`.
|
||||
///
|
||||
/// Obtain a handle from the [`WoodenFishRuntimeRunTableAccess::wooden_fish_runtime_run`] method on [`super::RemoteTables`],
|
||||
/// like `ctx.db.wooden_fish_runtime_run()`.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.wooden_fish_runtime_run().on_insert(...)`.
|
||||
pub struct WoodenFishRuntimeRunTableHandle<'ctx> {
|
||||
imp: __sdk::TableHandle<WoodenFishRuntimeRunRow>,
|
||||
ctx: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the table `wooden_fish_runtime_run`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteTables`].
|
||||
pub trait WoodenFishRuntimeRunTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Obtain a [`WoodenFishRuntimeRunTableHandle`], which mediates access to the table `wooden_fish_runtime_run`.
|
||||
fn wooden_fish_runtime_run(&self) -> WoodenFishRuntimeRunTableHandle<'_>;
|
||||
}
|
||||
|
||||
impl WoodenFishRuntimeRunTableAccess for super::RemoteTables {
|
||||
fn wooden_fish_runtime_run(&self) -> WoodenFishRuntimeRunTableHandle<'_> {
|
||||
WoodenFishRuntimeRunTableHandle {
|
||||
imp: self
|
||||
.imp
|
||||
.get_table::<WoodenFishRuntimeRunRow>("wooden_fish_runtime_run"),
|
||||
ctx: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct WoodenFishRuntimeRunInsertCallbackId(__sdk::CallbackId);
|
||||
pub struct WoodenFishRuntimeRunDeleteCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::Table for WoodenFishRuntimeRunTableHandle<'ctx> {
|
||||
type Row = WoodenFishRuntimeRunRow;
|
||||
type EventContext = super::EventContext;
|
||||
|
||||
fn count(&self) -> u64 {
|
||||
self.imp.count()
|
||||
}
|
||||
fn iter(&self) -> impl Iterator<Item = WoodenFishRuntimeRunRow> + '_ {
|
||||
self.imp.iter()
|
||||
}
|
||||
|
||||
type InsertCallbackId = WoodenFishRuntimeRunInsertCallbackId;
|
||||
|
||||
fn on_insert(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishRuntimeRunInsertCallbackId {
|
||||
WoodenFishRuntimeRunInsertCallbackId(self.imp.on_insert(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_insert(&self, callback: WoodenFishRuntimeRunInsertCallbackId) {
|
||||
self.imp.remove_on_insert(callback.0)
|
||||
}
|
||||
|
||||
type DeleteCallbackId = WoodenFishRuntimeRunDeleteCallbackId;
|
||||
|
||||
fn on_delete(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishRuntimeRunDeleteCallbackId {
|
||||
WoodenFishRuntimeRunDeleteCallbackId(self.imp.on_delete(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_delete(&self, callback: WoodenFishRuntimeRunDeleteCallbackId) {
|
||||
self.imp.remove_on_delete(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct WoodenFishRuntimeRunUpdateCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::TableWithPrimaryKey for WoodenFishRuntimeRunTableHandle<'ctx> {
|
||||
type UpdateCallbackId = WoodenFishRuntimeRunUpdateCallbackId;
|
||||
|
||||
fn on_update(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishRuntimeRunUpdateCallbackId {
|
||||
WoodenFishRuntimeRunUpdateCallbackId(self.imp.on_update(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_update(&self, callback: WoodenFishRuntimeRunUpdateCallbackId) {
|
||||
self.imp.remove_on_update(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
/// Access to the `run_id` unique index on the table `wooden_fish_runtime_run`,
|
||||
/// which allows point queries on the field of the same name
|
||||
/// via the [`WoodenFishRuntimeRunRunIdUnique::find`] method.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.wooden_fish_runtime_run().run_id().find(...)`.
|
||||
pub struct WoodenFishRuntimeRunRunIdUnique<'ctx> {
|
||||
imp: __sdk::UniqueConstraintHandle<WoodenFishRuntimeRunRow, String>,
|
||||
phantom: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
impl<'ctx> WoodenFishRuntimeRunTableHandle<'ctx> {
|
||||
/// Get a handle on the `run_id` unique index on the table `wooden_fish_runtime_run`.
|
||||
pub fn run_id(&self) -> WoodenFishRuntimeRunRunIdUnique<'ctx> {
|
||||
WoodenFishRuntimeRunRunIdUnique {
|
||||
imp: self.imp.get_unique_constraint::<String>("run_id"),
|
||||
phantom: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'ctx> WoodenFishRuntimeRunRunIdUnique<'ctx> {
|
||||
/// Find the subscribed row whose `run_id` column value is equal to `col_val`,
|
||||
/// if such a row is present in the client cache.
|
||||
pub fn find(&self, col_val: &String) -> Option<WoodenFishRuntimeRunRow> {
|
||||
self.imp.find(col_val)
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||
let _table =
|
||||
client_cache.get_or_make_table::<WoodenFishRuntimeRunRow>("wooden_fish_runtime_run");
|
||||
_table.add_unique_constraint::<String>("run_id", |row| &row.run_id);
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn parse_table_update(
|
||||
raw_updates: __ws::v2::TableUpdate,
|
||||
) -> __sdk::Result<__sdk::TableUpdate<WoodenFishRuntimeRunRow>> {
|
||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||
__sdk::InternalError::failed_parse("TableUpdate<WoodenFishRuntimeRunRow>", "TableUpdate")
|
||||
.with_cause(e)
|
||||
.into()
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for query builder access to the table `WoodenFishRuntimeRunRow`.
|
||||
///
|
||||
/// Implemented for [`__sdk::QueryTableAccessor`].
|
||||
pub trait wooden_fish_runtime_runQueryTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Get a query builder for the table `WoodenFishRuntimeRunRow`.
|
||||
fn wooden_fish_runtime_run(&self) -> __sdk::__query_builder::Table<WoodenFishRuntimeRunRow>;
|
||||
}
|
||||
|
||||
impl wooden_fish_runtime_runQueryTableAccess for __sdk::QueryTableAccessor {
|
||||
fn wooden_fish_runtime_run(&self) -> __sdk::__query_builder::Table<WoodenFishRuntimeRunRow> {
|
||||
__sdk::__query_builder::Table::new("wooden_fish_runtime_run")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishWordCounter {
|
||||
pub text: String,
|
||||
pub count: u32,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishWordCounter {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishWorkGetInput {
|
||||
pub profile_id: String,
|
||||
pub owner_user_id: String,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishWorkGetInput {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_work_snapshot_type::WoodenFishWorkSnapshot;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishWorkProcedureResult {
|
||||
pub ok: bool,
|
||||
pub work: Option<WoodenFishWorkSnapshot>,
|
||||
pub error_message: Option<String>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishWorkProcedureResult {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishWorkProfileRow {
|
||||
pub profile_id: String,
|
||||
pub work_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub source_session_id: String,
|
||||
pub author_display_name: String,
|
||||
pub work_title: String,
|
||||
pub work_description: String,
|
||||
pub theme_tags_json: String,
|
||||
pub hit_object_prompt: String,
|
||||
pub hit_object_reference_image_src: String,
|
||||
pub hit_sound_prompt: String,
|
||||
pub hit_object_asset_json: String,
|
||||
pub hit_sound_asset_json: String,
|
||||
pub floating_words_json: String,
|
||||
pub cover_image_src: String,
|
||||
pub generation_status: String,
|
||||
pub publication_status: String,
|
||||
pub play_count: u32,
|
||||
pub updated_at: __sdk::Timestamp,
|
||||
pub published_at: Option<__sdk::Timestamp>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishWorkProfileRow {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
/// Column accessor struct for the table `WoodenFishWorkProfileRow`.
|
||||
///
|
||||
/// Provides typed access to columns for query building.
|
||||
pub struct WoodenFishWorkProfileRowCols {
|
||||
pub profile_id: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub work_id: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub owner_user_id: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub source_session_id: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub author_display_name: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub work_title: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub work_description: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub theme_tags_json: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub hit_object_prompt: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub hit_object_reference_image_src:
|
||||
__sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub hit_sound_prompt: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub hit_object_asset_json: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub hit_sound_asset_json: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub floating_words_json: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub cover_image_src: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub generation_status: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub publication_status: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, String>,
|
||||
pub play_count: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, u32>,
|
||||
pub updated_at: __sdk::__query_builder::Col<WoodenFishWorkProfileRow, __sdk::Timestamp>,
|
||||
pub published_at:
|
||||
__sdk::__query_builder::Col<WoodenFishWorkProfileRow, Option<__sdk::Timestamp>>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasCols for WoodenFishWorkProfileRow {
|
||||
type Cols = WoodenFishWorkProfileRowCols;
|
||||
fn cols(table_name: &'static str) -> Self::Cols {
|
||||
WoodenFishWorkProfileRowCols {
|
||||
profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"),
|
||||
work_id: __sdk::__query_builder::Col::new(table_name, "work_id"),
|
||||
owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"),
|
||||
source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"),
|
||||
author_display_name: __sdk::__query_builder::Col::new(
|
||||
table_name,
|
||||
"author_display_name",
|
||||
),
|
||||
work_title: __sdk::__query_builder::Col::new(table_name, "work_title"),
|
||||
work_description: __sdk::__query_builder::Col::new(table_name, "work_description"),
|
||||
theme_tags_json: __sdk::__query_builder::Col::new(table_name, "theme_tags_json"),
|
||||
hit_object_prompt: __sdk::__query_builder::Col::new(table_name, "hit_object_prompt"),
|
||||
hit_object_reference_image_src: __sdk::__query_builder::Col::new(
|
||||
table_name,
|
||||
"hit_object_reference_image_src",
|
||||
),
|
||||
hit_sound_prompt: __sdk::__query_builder::Col::new(table_name, "hit_sound_prompt"),
|
||||
hit_object_asset_json: __sdk::__query_builder::Col::new(
|
||||
table_name,
|
||||
"hit_object_asset_json",
|
||||
),
|
||||
hit_sound_asset_json: __sdk::__query_builder::Col::new(
|
||||
table_name,
|
||||
"hit_sound_asset_json",
|
||||
),
|
||||
floating_words_json: __sdk::__query_builder::Col::new(
|
||||
table_name,
|
||||
"floating_words_json",
|
||||
),
|
||||
cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"),
|
||||
generation_status: __sdk::__query_builder::Col::new(table_name, "generation_status"),
|
||||
publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"),
|
||||
play_count: __sdk::__query_builder::Col::new(table_name, "play_count"),
|
||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||
published_at: __sdk::__query_builder::Col::new(table_name, "published_at"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Indexed column accessor struct for the table `WoodenFishWorkProfileRow`.
|
||||
///
|
||||
/// Provides typed access to indexed columns for query building.
|
||||
pub struct WoodenFishWorkProfileRowIxCols {
|
||||
pub owner_user_id: __sdk::__query_builder::IxCol<WoodenFishWorkProfileRow, String>,
|
||||
pub profile_id: __sdk::__query_builder::IxCol<WoodenFishWorkProfileRow, String>,
|
||||
pub publication_status: __sdk::__query_builder::IxCol<WoodenFishWorkProfileRow, String>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasIxCols for WoodenFishWorkProfileRow {
|
||||
type IxCols = WoodenFishWorkProfileRowIxCols;
|
||||
fn ix_cols(table_name: &'static str) -> Self::IxCols {
|
||||
WoodenFishWorkProfileRowIxCols {
|
||||
owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"),
|
||||
profile_id: __sdk::__query_builder::IxCol::new(table_name, "profile_id"),
|
||||
publication_status: __sdk::__query_builder::IxCol::new(
|
||||
table_name,
|
||||
"publication_status",
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::CanBeLookupTable for WoodenFishWorkProfileRow {}
|
||||
@@ -0,0 +1,162 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use super::wooden_fish_work_profile_row_type::WoodenFishWorkProfileRow;
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
/// Table handle for the table `wooden_fish_work_profile`.
|
||||
///
|
||||
/// Obtain a handle from the [`WoodenFishWorkProfileTableAccess::wooden_fish_work_profile`] method on [`super::RemoteTables`],
|
||||
/// like `ctx.db.wooden_fish_work_profile()`.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.wooden_fish_work_profile().on_insert(...)`.
|
||||
pub struct WoodenFishWorkProfileTableHandle<'ctx> {
|
||||
imp: __sdk::TableHandle<WoodenFishWorkProfileRow>,
|
||||
ctx: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the table `wooden_fish_work_profile`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteTables`].
|
||||
pub trait WoodenFishWorkProfileTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Obtain a [`WoodenFishWorkProfileTableHandle`], which mediates access to the table `wooden_fish_work_profile`.
|
||||
fn wooden_fish_work_profile(&self) -> WoodenFishWorkProfileTableHandle<'_>;
|
||||
}
|
||||
|
||||
impl WoodenFishWorkProfileTableAccess for super::RemoteTables {
|
||||
fn wooden_fish_work_profile(&self) -> WoodenFishWorkProfileTableHandle<'_> {
|
||||
WoodenFishWorkProfileTableHandle {
|
||||
imp: self
|
||||
.imp
|
||||
.get_table::<WoodenFishWorkProfileRow>("wooden_fish_work_profile"),
|
||||
ctx: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct WoodenFishWorkProfileInsertCallbackId(__sdk::CallbackId);
|
||||
pub struct WoodenFishWorkProfileDeleteCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::Table for WoodenFishWorkProfileTableHandle<'ctx> {
|
||||
type Row = WoodenFishWorkProfileRow;
|
||||
type EventContext = super::EventContext;
|
||||
|
||||
fn count(&self) -> u64 {
|
||||
self.imp.count()
|
||||
}
|
||||
fn iter(&self) -> impl Iterator<Item = WoodenFishWorkProfileRow> + '_ {
|
||||
self.imp.iter()
|
||||
}
|
||||
|
||||
type InsertCallbackId = WoodenFishWorkProfileInsertCallbackId;
|
||||
|
||||
fn on_insert(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishWorkProfileInsertCallbackId {
|
||||
WoodenFishWorkProfileInsertCallbackId(self.imp.on_insert(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_insert(&self, callback: WoodenFishWorkProfileInsertCallbackId) {
|
||||
self.imp.remove_on_insert(callback.0)
|
||||
}
|
||||
|
||||
type DeleteCallbackId = WoodenFishWorkProfileDeleteCallbackId;
|
||||
|
||||
fn on_delete(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishWorkProfileDeleteCallbackId {
|
||||
WoodenFishWorkProfileDeleteCallbackId(self.imp.on_delete(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_delete(&self, callback: WoodenFishWorkProfileDeleteCallbackId) {
|
||||
self.imp.remove_on_delete(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct WoodenFishWorkProfileUpdateCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::TableWithPrimaryKey for WoodenFishWorkProfileTableHandle<'ctx> {
|
||||
type UpdateCallbackId = WoodenFishWorkProfileUpdateCallbackId;
|
||||
|
||||
fn on_update(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static,
|
||||
) -> WoodenFishWorkProfileUpdateCallbackId {
|
||||
WoodenFishWorkProfileUpdateCallbackId(self.imp.on_update(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_update(&self, callback: WoodenFishWorkProfileUpdateCallbackId) {
|
||||
self.imp.remove_on_update(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
/// Access to the `profile_id` unique index on the table `wooden_fish_work_profile`,
|
||||
/// which allows point queries on the field of the same name
|
||||
/// via the [`WoodenFishWorkProfileProfileIdUnique::find`] method.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.wooden_fish_work_profile().profile_id().find(...)`.
|
||||
pub struct WoodenFishWorkProfileProfileIdUnique<'ctx> {
|
||||
imp: __sdk::UniqueConstraintHandle<WoodenFishWorkProfileRow, String>,
|
||||
phantom: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
impl<'ctx> WoodenFishWorkProfileTableHandle<'ctx> {
|
||||
/// Get a handle on the `profile_id` unique index on the table `wooden_fish_work_profile`.
|
||||
pub fn profile_id(&self) -> WoodenFishWorkProfileProfileIdUnique<'ctx> {
|
||||
WoodenFishWorkProfileProfileIdUnique {
|
||||
imp: self.imp.get_unique_constraint::<String>("profile_id"),
|
||||
phantom: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'ctx> WoodenFishWorkProfileProfileIdUnique<'ctx> {
|
||||
/// Find the subscribed row whose `profile_id` column value is equal to `col_val`,
|
||||
/// if such a row is present in the client cache.
|
||||
pub fn find(&self, col_val: &String) -> Option<WoodenFishWorkProfileRow> {
|
||||
self.imp.find(col_val)
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||
let _table =
|
||||
client_cache.get_or_make_table::<WoodenFishWorkProfileRow>("wooden_fish_work_profile");
|
||||
_table.add_unique_constraint::<String>("profile_id", |row| &row.profile_id);
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn parse_table_update(
|
||||
raw_updates: __ws::v2::TableUpdate,
|
||||
) -> __sdk::Result<__sdk::TableUpdate<WoodenFishWorkProfileRow>> {
|
||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||
__sdk::InternalError::failed_parse("TableUpdate<WoodenFishWorkProfileRow>", "TableUpdate")
|
||||
.with_cause(e)
|
||||
.into()
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for query builder access to the table `WoodenFishWorkProfileRow`.
|
||||
///
|
||||
/// Implemented for [`__sdk::QueryTableAccessor`].
|
||||
pub trait wooden_fish_work_profileQueryTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Get a query builder for the table `WoodenFishWorkProfileRow`.
|
||||
fn wooden_fish_work_profile(&self) -> __sdk::__query_builder::Table<WoodenFishWorkProfileRow>;
|
||||
}
|
||||
|
||||
impl wooden_fish_work_profileQueryTableAccess for __sdk::QueryTableAccessor {
|
||||
fn wooden_fish_work_profile(&self) -> __sdk::__query_builder::Table<WoodenFishWorkProfileRow> {
|
||||
__sdk::__query_builder::Table::new("wooden_fish_work_profile")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishWorkPublishInput {
|
||||
pub profile_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub published_at_micros: i64,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishWorkPublishInput {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_audio_asset_snapshot_type::WoodenFishAudioAssetSnapshot;
|
||||
use super::wooden_fish_image_asset_snapshot_type::WoodenFishImageAssetSnapshot;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishWorkSnapshot {
|
||||
pub work_id: String,
|
||||
pub profile_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub source_session_id: String,
|
||||
pub author_display_name: String,
|
||||
pub work_title: String,
|
||||
pub work_description: String,
|
||||
pub theme_tags: Vec<String>,
|
||||
pub hit_object_prompt: String,
|
||||
pub hit_object_reference_image_src: Option<String>,
|
||||
pub hit_sound_prompt: Option<String>,
|
||||
pub hit_object_asset: Option<WoodenFishImageAssetSnapshot>,
|
||||
pub hit_sound_asset: Option<WoodenFishAudioAssetSnapshot>,
|
||||
pub floating_words: Vec<String>,
|
||||
pub cover_image_src: String,
|
||||
pub publication_status: String,
|
||||
pub publish_ready: bool,
|
||||
pub play_count: u32,
|
||||
pub generation_status: String,
|
||||
pub updated_at_micros: i64,
|
||||
pub published_at_micros: Option<i64>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishWorkSnapshot {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishWorkUpdateInput {
|
||||
pub profile_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub work_title: String,
|
||||
pub work_description: String,
|
||||
pub theme_tags_json: String,
|
||||
pub hit_object_prompt: Option<String>,
|
||||
pub hit_object_reference_image_src: Option<String>,
|
||||
pub hit_sound_prompt: Option<String>,
|
||||
pub hit_object_asset_json: Option<String>,
|
||||
pub hit_sound_asset_json: Option<String>,
|
||||
pub floating_words_json: Option<String>,
|
||||
pub cover_image_src: Option<String>,
|
||||
pub generation_status: Option<String>,
|
||||
pub updated_at_micros: i64,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishWorkUpdateInput {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishWorksListInput {
|
||||
pub owner_user_id: String,
|
||||
pub published_only: bool,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishWorksListInput {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::wooden_fish_work_snapshot_type::WoodenFishWorkSnapshot;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
pub struct WoodenFishWorksProcedureResult {
|
||||
pub ok: bool,
|
||||
pub items: Vec<WoodenFishWorkSnapshot>,
|
||||
pub error_message: Option<String>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for WoodenFishWorksProcedureResult {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
Reference in New Issue
Block a user