This commit is contained in:
2026-05-01 01:30:02 +08:00
parent aabad6407f
commit 2e9d0f4640
92 changed files with 4548 additions and 248 deletions

View File

@@ -39,9 +39,9 @@ pub use mapper::{
PuzzleResultPreviewRecord, PuzzleRunDragRecordInput, PuzzleRunNextLevelRecordInput,
PuzzleRunPauseRecordInput, PuzzleRunPropRecordInput, PuzzleRunRecord,
PuzzleRunStartRecordInput, PuzzleRunSwapRecordInput, PuzzleRuntimeLevelRecord,
PuzzleSelectCoverImageRecordInput, PuzzleWorkLikeReportRecordInput, PuzzleWorkProfileRecord,
PuzzleWorkRemixRecordInput, PuzzleWorkUpsertRecordInput, ResolveCombatActionRecord,
ResolveNpcBattleInteractionInput,
PuzzleSelectCoverImageRecordInput, PuzzleWorkLikeReportRecordInput,
PuzzleWorkPointIncentiveClaimRecordInput, PuzzleWorkProfileRecord, PuzzleWorkRemixRecordInput,
PuzzleWorkUpsertRecordInput, ResolveCombatActionRecord, ResolveNpcBattleInteractionInput,
};
pub mod ai;

View File

@@ -2436,6 +2436,8 @@ pub(crate) fn map_puzzle_work_profile(
remix_count: snapshot.remix_count,
like_count: snapshot.like_count,
recent_play_count_7d: snapshot.recent_play_count_7d,
point_incentive_total_half_points: snapshot.point_incentive_total_half_points,
point_incentive_claimed_points: snapshot.point_incentive_claimed_points,
publish_ready: snapshot.publish_ready,
anchor_pack: map_puzzle_anchor_pack(snapshot.anchor_pack),
levels: snapshot
@@ -2491,6 +2493,13 @@ fn map_puzzle_recommended_next_work(
pub(crate) fn map_puzzle_runtime_level_snapshot(
snapshot: DomainPuzzleRuntimeLevelSnapshot,
) -> PuzzleRuntimeLevelRecord {
// 中文注释:历史 run_json 可能缺 started_at_ms领域 serde 会回填为 0API 层继续补成 1避免前端计时器拿到无效开局时间。
let started_at_ms = if snapshot.started_at_ms == 0 {
1
} else {
snapshot.started_at_ms
};
PuzzleRuntimeLevelRecord {
run_id: snapshot.run_id,
level_index: snapshot.level_index,
@@ -2503,7 +2512,7 @@ pub(crate) fn map_puzzle_runtime_level_snapshot(
cover_image_src: snapshot.cover_image_src,
board: map_puzzle_board_snapshot(snapshot.board),
status: snapshot.status.as_str().to_string(),
started_at_ms: snapshot.started_at_ms,
started_at_ms,
cleared_at_ms: snapshot.cleared_at_ms,
elapsed_ms: snapshot.elapsed_ms,
time_limit_ms: snapshot.time_limit_ms,
@@ -3485,6 +3494,9 @@ pub(crate) fn map_runtime_profile_wallet_ledger_source_type_back(
crate::module_bindings::RuntimeProfileWalletLedgerSourceType::RedeemCodeReward => {
module_runtime::RuntimeProfileWalletLedgerSourceType::RedeemCodeReward
}
crate::module_bindings::RuntimeProfileWalletLedgerSourceType::PuzzleAuthorIncentiveClaim => {
module_runtime::RuntimeProfileWalletLedgerSourceType::PuzzleAuthorIncentiveClaim
}
}
}
@@ -4535,6 +4547,7 @@ pub struct PuzzleRunPropRecordInput {
pub owner_user_id: String,
pub prop_kind: String,
pub used_at_micros: i64,
pub spent_points: u64,
}
#[derive(Clone, Debug, PartialEq, Eq)]
@@ -4716,11 +4729,20 @@ pub struct PuzzleWorkProfileRecord {
pub remix_count: u32,
pub like_count: u32,
pub recent_play_count_7d: u32,
pub point_incentive_total_half_points: u64,
pub point_incentive_claimed_points: u64,
pub publish_ready: bool,
pub anchor_pack: PuzzleAnchorPackRecord,
pub levels: Vec<PuzzleDraftLevelRecord>,
}
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct PuzzleWorkPointIncentiveClaimRecordInput {
pub profile_id: String,
pub owner_user_id: String,
pub claimed_at_micros: i64,
}
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct PuzzleCellPositionRecord {
pub row: u32,

View File

@@ -0,0 +1,58 @@
// 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::puzzle_work_point_incentive_claim_input_type::PuzzleWorkPointIncentiveClaimInput;
use super::puzzle_work_procedure_result_type::PuzzleWorkProcedureResult;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct ClaimPuzzleWorkPointIncentiveArgs {
pub input: PuzzleWorkPointIncentiveClaimInput,
}
impl __sdk::InModule for ClaimPuzzleWorkPointIncentiveArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `claim_puzzle_work_point_incentive`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait claim_puzzle_work_point_incentive {
fn claim_puzzle_work_point_incentive(&self, input: PuzzleWorkPointIncentiveClaimInput,
) {
self.claim_puzzle_work_point_incentive_then(input, |_, _| {});
}
fn claim_puzzle_work_point_incentive_then(
&self,
input: PuzzleWorkPointIncentiveClaimInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<PuzzleWorkProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl claim_puzzle_work_point_incentive for super::RemoteProcedures {
fn claim_puzzle_work_point_incentive_then(
&self,
input: PuzzleWorkPointIncentiveClaimInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<PuzzleWorkProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>(
"claim_puzzle_work_point_incentive",
ClaimPuzzleWorkPointIncentiveArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_run_click_input_type::Match3DRunClickInput;
use super::match_3_d_click_item_procedure_result_type::Match3DClickItemProcedureResult;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct ClickMatch3DItemArgs {
pub input: Match3DRunClickInput,
}
impl __sdk::InModule for ClickMatch3DItemArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `click_match_3_d_item`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait click_match_3_d_item {
fn click_match_3_d_item(&self, input: Match3DRunClickInput,
) {
self.click_match_3_d_item_then(input, |_, _| {});
}
fn click_match_3_d_item_then(
&self,
input: Match3DRunClickInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DClickItemProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl click_match_3_d_item for super::RemoteProcedures {
fn click_match_3_d_item_then(
&self,
input: Match3DRunClickInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DClickItemProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DClickItemProcedureResult>(
"click_match_3_d_item",
ClickMatch3DItemArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_draft_compile_input_type::Match3DDraftCompileInput;
use super::match_3_d_agent_session_procedure_result_type::Match3DAgentSessionProcedureResult;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct CompileMatch3DDraftArgs {
pub input: Match3DDraftCompileInput,
}
impl __sdk::InModule for CompileMatch3DDraftArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `compile_match_3_d_draft`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait compile_match_3_d_draft {
fn compile_match_3_d_draft(&self, input: Match3DDraftCompileInput,
) {
self.compile_match_3_d_draft_then(input, |_, _| {});
}
fn compile_match_3_d_draft_then(
&self,
input: Match3DDraftCompileInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DAgentSessionProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl compile_match_3_d_draft for super::RemoteProcedures {
fn compile_match_3_d_draft_then(
&self,
input: Match3DDraftCompileInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DAgentSessionProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DAgentSessionProcedureResult>(
"compile_match_3_d_draft",
CompileMatch3DDraftArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_agent_session_procedure_result_type::Match3DAgentSessionProcedureResult;
use super::match_3_d_agent_session_create_input_type::Match3DAgentSessionCreateInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct CreateMatch3DAgentSessionArgs {
pub input: Match3DAgentSessionCreateInput,
}
impl __sdk::InModule for CreateMatch3DAgentSessionArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `create_match_3_d_agent_session`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait create_match_3_d_agent_session {
fn create_match_3_d_agent_session(&self, input: Match3DAgentSessionCreateInput,
) {
self.create_match_3_d_agent_session_then(input, |_, _| {});
}
fn create_match_3_d_agent_session_then(
&self,
input: Match3DAgentSessionCreateInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DAgentSessionProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl create_match_3_d_agent_session for super::RemoteProcedures {
fn create_match_3_d_agent_session_then(
&self,
input: Match3DAgentSessionCreateInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DAgentSessionProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DAgentSessionProcedureResult>(
"create_match_3_d_agent_session",
CreateMatch3DAgentSessionArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_work_delete_input_type::Match3DWorkDeleteInput;
use super::match_3_d_works_procedure_result_type::Match3DWorksProcedureResult;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct DeleteMatch3DWorkArgs {
pub input: Match3DWorkDeleteInput,
}
impl __sdk::InModule for DeleteMatch3DWorkArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `delete_match_3_d_work`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait delete_match_3_d_work {
fn delete_match_3_d_work(&self, input: Match3DWorkDeleteInput,
) {
self.delete_match_3_d_work_then(input, |_, _| {});
}
fn delete_match_3_d_work_then(
&self,
input: Match3DWorkDeleteInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DWorksProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl delete_match_3_d_work for super::RemoteProcedures {
fn delete_match_3_d_work_then(
&self,
input: Match3DWorkDeleteInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DWorksProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DWorksProcedureResult>(
"delete_match_3_d_work",
DeleteMatch3DWorkArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_agent_session_procedure_result_type::Match3DAgentSessionProcedureResult;
use super::match_3_d_agent_message_finalize_input_type::Match3DAgentMessageFinalizeInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct FinalizeMatch3DAgentMessageTurnArgs {
pub input: Match3DAgentMessageFinalizeInput,
}
impl __sdk::InModule for FinalizeMatch3DAgentMessageTurnArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `finalize_match_3_d_agent_message_turn`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait finalize_match_3_d_agent_message_turn {
fn finalize_match_3_d_agent_message_turn(&self, input: Match3DAgentMessageFinalizeInput,
) {
self.finalize_match_3_d_agent_message_turn_then(input, |_, _| {});
}
fn finalize_match_3_d_agent_message_turn_then(
&self,
input: Match3DAgentMessageFinalizeInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DAgentSessionProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl finalize_match_3_d_agent_message_turn for super::RemoteProcedures {
fn finalize_match_3_d_agent_message_turn_then(
&self,
input: Match3DAgentMessageFinalizeInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DAgentSessionProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DAgentSessionProcedureResult>(
"finalize_match_3_d_agent_message_turn",
FinalizeMatch3DAgentMessageTurnArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_run_time_up_input_type::Match3DRunTimeUpInput;
use super::match_3_d_run_procedure_result_type::Match3DRunProcedureResult;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct FinishMatch3DTimeUpArgs {
pub input: Match3DRunTimeUpInput,
}
impl __sdk::InModule for FinishMatch3DTimeUpArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `finish_match_3_d_time_up`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait finish_match_3_d_time_up {
fn finish_match_3_d_time_up(&self, input: Match3DRunTimeUpInput,
) {
self.finish_match_3_d_time_up_then(input, |_, _| {});
}
fn finish_match_3_d_time_up_then(
&self,
input: Match3DRunTimeUpInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DRunProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl finish_match_3_d_time_up for super::RemoteProcedures {
fn finish_match_3_d_time_up_then(
&self,
input: Match3DRunTimeUpInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DRunProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DRunProcedureResult>(
"finish_match_3_d_time_up",
FinishMatch3DTimeUpArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_agent_session_procedure_result_type::Match3DAgentSessionProcedureResult;
use super::match_3_d_agent_session_get_input_type::Match3DAgentSessionGetInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct GetMatch3DAgentSessionArgs {
pub input: Match3DAgentSessionGetInput,
}
impl __sdk::InModule for GetMatch3DAgentSessionArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `get_match_3_d_agent_session`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait get_match_3_d_agent_session {
fn get_match_3_d_agent_session(&self, input: Match3DAgentSessionGetInput,
) {
self.get_match_3_d_agent_session_then(input, |_, _| {});
}
fn get_match_3_d_agent_session_then(
&self,
input: Match3DAgentSessionGetInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DAgentSessionProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl get_match_3_d_agent_session for super::RemoteProcedures {
fn get_match_3_d_agent_session_then(
&self,
input: Match3DAgentSessionGetInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DAgentSessionProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DAgentSessionProcedureResult>(
"get_match_3_d_agent_session",
GetMatch3DAgentSessionArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_run_procedure_result_type::Match3DRunProcedureResult;
use super::match_3_d_run_get_input_type::Match3DRunGetInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct GetMatch3DRunArgs {
pub input: Match3DRunGetInput,
}
impl __sdk::InModule for GetMatch3DRunArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `get_match_3_d_run`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait get_match_3_d_run {
fn get_match_3_d_run(&self, input: Match3DRunGetInput,
) {
self.get_match_3_d_run_then(input, |_, _| {});
}
fn get_match_3_d_run_then(
&self,
input: Match3DRunGetInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DRunProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl get_match_3_d_run for super::RemoteProcedures {
fn get_match_3_d_run_then(
&self,
input: Match3DRunGetInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DRunProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DRunProcedureResult>(
"get_match_3_d_run",
GetMatch3DRunArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_work_get_input_type::Match3DWorkGetInput;
use super::match_3_d_work_procedure_result_type::Match3DWorkProcedureResult;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct GetMatch3DWorkDetailArgs {
pub input: Match3DWorkGetInput,
}
impl __sdk::InModule for GetMatch3DWorkDetailArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `get_match_3_d_work_detail`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait get_match_3_d_work_detail {
fn get_match_3_d_work_detail(&self, input: Match3DWorkGetInput,
) {
self.get_match_3_d_work_detail_then(input, |_, _| {});
}
fn get_match_3_d_work_detail_then(
&self,
input: Match3DWorkGetInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DWorkProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl get_match_3_d_work_detail for super::RemoteProcedures {
fn get_match_3_d_work_detail_then(
&self,
input: Match3DWorkGetInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DWorkProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DWorkProcedureResult>(
"get_match_3_d_work_detail",
GetMatch3DWorkDetailArgs { input, },
__callback,
);
}
}

View File

@@ -9,8 +9,8 @@ use spacetimedb_sdk::__codegen::{
__ws,
};
use super::puzzle_work_get_input_type::PuzzleWorkGetInput;
use super::puzzle_work_procedure_result_type::PuzzleWorkProcedureResult;
use super::puzzle_work_get_input_type::PuzzleWorkGetInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]

View File

@@ -9,8 +9,8 @@ use spacetimedb_sdk::__codegen::{
__ws,
};
use super::puzzle_work_get_input_type::PuzzleWorkGetInput;
use super::puzzle_work_procedure_result_type::PuzzleWorkProcedureResult;
use super::puzzle_work_get_input_type::PuzzleWorkGetInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_works_procedure_result_type::Match3DWorksProcedureResult;
use super::match_3_d_works_list_input_type::Match3DWorksListInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct ListMatch3DWorksArgs {
pub input: Match3DWorksListInput,
}
impl __sdk::InModule for ListMatch3DWorksArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `list_match_3_d_works`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait list_match_3_d_works {
fn list_match_3_d_works(&self, input: Match3DWorksListInput,
) {
self.list_match_3_d_works_then(input, |_, _| {});
}
fn list_match_3_d_works_then(
&self,
input: Match3DWorksListInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DWorksProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl list_match_3_d_works for super::RemoteProcedures {
fn list_match_3_d_works_then(
&self,
input: Match3DWorksListInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DWorksProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DWorksProcedureResult>(
"list_match_3_d_works",
ListMatch3DWorksArgs { input, },
__callback,
);
}
}

View File

@@ -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,
};
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
pub struct Match3DAgentMessageFinalizeInput {
pub session_id: String,
pub owner_user_id: String,
pub assistant_message_id: Option::<String>,
pub assistant_reply_text: Option::<String>,
pub config_json: Option::<String>,
pub progress_percent: u32,
pub stage: String,
pub updated_at_micros: i64,
pub error_message: Option::<String>,
}
impl __sdk::InModule for Match3DAgentMessageFinalizeInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,77 @@
// 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 Match3DAgentMessageRow {
pub message_id: String,
pub session_id: String,
pub role: String,
pub kind: String,
pub text: String,
pub created_at: __sdk::Timestamp,
}
impl __sdk::InModule for Match3DAgentMessageRow {
type Module = super::RemoteModule;
}
/// Column accessor struct for the table `Match3DAgentMessageRow`.
///
/// Provides typed access to columns for query building.
pub struct Match3DAgentMessageRowCols {
pub message_id: __sdk::__query_builder::Col<Match3DAgentMessageRow, String>,
pub session_id: __sdk::__query_builder::Col<Match3DAgentMessageRow, String>,
pub role: __sdk::__query_builder::Col<Match3DAgentMessageRow, String>,
pub kind: __sdk::__query_builder::Col<Match3DAgentMessageRow, String>,
pub text: __sdk::__query_builder::Col<Match3DAgentMessageRow, String>,
pub created_at: __sdk::__query_builder::Col<Match3DAgentMessageRow, __sdk::Timestamp>,
}
impl __sdk::__query_builder::HasCols for Match3DAgentMessageRow {
type Cols = Match3DAgentMessageRowCols;
fn cols(table_name: &'static str) -> Self::Cols {
Match3DAgentMessageRowCols {
message_id: __sdk::__query_builder::Col::new(table_name, "message_id"),
session_id: __sdk::__query_builder::Col::new(table_name, "session_id"),
role: __sdk::__query_builder::Col::new(table_name, "role"),
kind: __sdk::__query_builder::Col::new(table_name, "kind"),
text: __sdk::__query_builder::Col::new(table_name, "text"),
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
}
}
}
/// Indexed column accessor struct for the table `Match3DAgentMessageRow`.
///
/// Provides typed access to indexed columns for query building.
pub struct Match3DAgentMessageRowIxCols {
pub message_id: __sdk::__query_builder::IxCol<Match3DAgentMessageRow, String>,
pub session_id: __sdk::__query_builder::IxCol<Match3DAgentMessageRow, String>,
}
impl __sdk::__query_builder::HasIxCols for Match3DAgentMessageRow {
type IxCols = Match3DAgentMessageRowIxCols;
fn ix_cols(table_name: &'static str) -> Self::IxCols {
Match3DAgentMessageRowIxCols {
message_id: __sdk::__query_builder::IxCol::new(table_name, "message_id"),
session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"),
}
}
}
impl __sdk::__query_builder::CanBeLookupTable for Match3DAgentMessageRow {}

View File

@@ -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,
};
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
pub struct Match3DAgentMessageSubmitInput {
pub session_id: String,
pub owner_user_id: String,
pub user_message_id: String,
pub user_message_text: String,
pub submitted_at_micros: i64,
}
impl __sdk::InModule for Match3DAgentMessageSubmitInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,29 @@
// 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 Match3DAgentSessionCreateInput {
pub session_id: String,
pub owner_user_id: String,
pub seed_text: String,
pub welcome_message_id: String,
pub welcome_message_text: String,
pub config_json: Option::<String>,
pub created_at_micros: i64,
}
impl __sdk::InModule for Match3DAgentSessionCreateInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,24 @@
// 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 Match3DAgentSessionGetInput {
pub session_id: String,
pub owner_user_id: String,
}
impl __sdk::InModule for Match3DAgentSessionGetInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,25 @@
// 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 Match3DAgentSessionProcedureResult {
pub ok: bool,
pub session_json: Option::<String>,
pub error_message: Option::<String>,
}
impl __sdk::InModule for Match3DAgentSessionProcedureResult {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,95 @@
// 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 Match3DAgentSessionRow {
pub session_id: String,
pub owner_user_id: String,
pub seed_text: String,
pub current_turn: u32,
pub progress_percent: u32,
pub stage: String,
pub config_json: String,
pub draft_json: String,
pub last_assistant_reply: String,
pub published_profile_id: String,
pub created_at: __sdk::Timestamp,
pub updated_at: __sdk::Timestamp,
}
impl __sdk::InModule for Match3DAgentSessionRow {
type Module = super::RemoteModule;
}
/// Column accessor struct for the table `Match3DAgentSessionRow`.
///
/// Provides typed access to columns for query building.
pub struct Match3DAgentSessionRowCols {
pub session_id: __sdk::__query_builder::Col<Match3DAgentSessionRow, String>,
pub owner_user_id: __sdk::__query_builder::Col<Match3DAgentSessionRow, String>,
pub seed_text: __sdk::__query_builder::Col<Match3DAgentSessionRow, String>,
pub current_turn: __sdk::__query_builder::Col<Match3DAgentSessionRow, u32>,
pub progress_percent: __sdk::__query_builder::Col<Match3DAgentSessionRow, u32>,
pub stage: __sdk::__query_builder::Col<Match3DAgentSessionRow, String>,
pub config_json: __sdk::__query_builder::Col<Match3DAgentSessionRow, String>,
pub draft_json: __sdk::__query_builder::Col<Match3DAgentSessionRow, String>,
pub last_assistant_reply: __sdk::__query_builder::Col<Match3DAgentSessionRow, String>,
pub published_profile_id: __sdk::__query_builder::Col<Match3DAgentSessionRow, String>,
pub created_at: __sdk::__query_builder::Col<Match3DAgentSessionRow, __sdk::Timestamp>,
pub updated_at: __sdk::__query_builder::Col<Match3DAgentSessionRow, __sdk::Timestamp>,
}
impl __sdk::__query_builder::HasCols for Match3DAgentSessionRow {
type Cols = Match3DAgentSessionRowCols;
fn cols(table_name: &'static str) -> Self::Cols {
Match3DAgentSessionRowCols {
session_id: __sdk::__query_builder::Col::new(table_name, "session_id"),
owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"),
seed_text: __sdk::__query_builder::Col::new(table_name, "seed_text"),
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"),
last_assistant_reply: __sdk::__query_builder::Col::new(table_name, "last_assistant_reply"),
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 `Match3DAgentSessionRow`.
///
/// Provides typed access to indexed columns for query building.
pub struct Match3DAgentSessionRowIxCols {
pub owner_user_id: __sdk::__query_builder::IxCol<Match3DAgentSessionRow, String>,
pub session_id: __sdk::__query_builder::IxCol<Match3DAgentSessionRow, String>,
}
impl __sdk::__query_builder::HasIxCols for Match3DAgentSessionRow {
type IxCols = Match3DAgentSessionRowIxCols;
fn ix_cols(table_name: &'static str) -> Self::IxCols {
Match3DAgentSessionRowIxCols {
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 Match3DAgentSessionRow {}

View File

@@ -0,0 +1,29 @@
// 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 Match3DClickItemProcedureResult {
pub ok: bool,
pub status: String,
pub run_json: Option::<String>,
pub accepted_item_instance_id: Option::<String>,
pub cleared_item_instance_ids: Vec::<String>,
pub failure_reason: Option::<String>,
pub error_message: Option::<String>,
}
impl __sdk::InModule for Match3DClickItemProcedureResult {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,32 @@
// 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 Match3DDraftCompileInput {
pub session_id: String,
pub owner_user_id: String,
pub profile_id: String,
pub author_display_name: String,
pub game_name: Option::<String>,
pub summary_text: Option::<String>,
pub tags_json: Option::<String>,
pub cover_image_src: Option::<String>,
pub cover_asset_id: Option::<String>,
pub compiled_at_micros: i64,
}
impl __sdk::InModule for Match3DDraftCompileInput {
type Module = super::RemoteModule;
}

View File

@@ -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 Match3DRunClickInput {
pub run_id: String,
pub owner_user_id: String,
pub item_instance_id: String,
pub client_snapshot_version: u32,
pub client_event_id: String,
pub clicked_at_ms: i64,
}
impl __sdk::InModule for Match3DRunClickInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,24 @@
// 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 Match3DRunGetInput {
pub run_id: String,
pub owner_user_id: String,
}
impl __sdk::InModule for Match3DRunGetInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,25 @@
// 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 Match3DRunProcedureResult {
pub ok: bool,
pub run_json: Option::<String>,
pub error_message: Option::<String>,
}
impl __sdk::InModule for Match3DRunProcedureResult {
type Module = super::RemoteModule;
}

View File

@@ -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,
};
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
pub struct Match3DRunRestartInput {
pub source_run_id: String,
pub next_run_id: String,
pub owner_user_id: String,
pub restarted_at_ms: i64,
}
impl __sdk::InModule for Match3DRunRestartInput {
type Module = super::RemoteModule;
}

View File

@@ -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,
};
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
pub struct Match3DRunStartInput {
pub run_id: String,
pub owner_user_id: String,
pub profile_id: String,
pub started_at_ms: i64,
}
impl __sdk::InModule for Match3DRunStartInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,25 @@
// 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 Match3DRunStopInput {
pub run_id: String,
pub owner_user_id: String,
pub stopped_at_ms: i64,
}
impl __sdk::InModule for Match3DRunStopInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,25 @@
// 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 Match3DRunTimeUpInput {
pub run_id: String,
pub owner_user_id: String,
pub finished_at_ms: i64,
}
impl __sdk::InModule for Match3DRunTimeUpInput {
type Module = super::RemoteModule;
}

View File

@@ -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,
};
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
pub struct Match3DRuntimeRunRow {
pub run_id: String,
pub owner_user_id: String,
pub profile_id: String,
pub status: String,
pub snapshot_version: u32,
pub started_at_ms: i64,
pub duration_limit_ms: i64,
pub finished_at_ms: i64,
pub elapsed_ms: i64,
pub clear_count: u32,
pub total_item_count: u32,
pub cleared_item_count: u32,
pub failure_reason: String,
pub snapshot_json: String,
pub created_at: __sdk::Timestamp,
pub updated_at: __sdk::Timestamp,
}
impl __sdk::InModule for Match3DRuntimeRunRow {
type Module = super::RemoteModule;
}
/// Column accessor struct for the table `Match3DRuntimeRunRow`.
///
/// Provides typed access to columns for query building.
pub struct Match3DRuntimeRunRowCols {
pub run_id: __sdk::__query_builder::Col<Match3DRuntimeRunRow, String>,
pub owner_user_id: __sdk::__query_builder::Col<Match3DRuntimeRunRow, String>,
pub profile_id: __sdk::__query_builder::Col<Match3DRuntimeRunRow, String>,
pub status: __sdk::__query_builder::Col<Match3DRuntimeRunRow, String>,
pub snapshot_version: __sdk::__query_builder::Col<Match3DRuntimeRunRow, u32>,
pub started_at_ms: __sdk::__query_builder::Col<Match3DRuntimeRunRow, i64>,
pub duration_limit_ms: __sdk::__query_builder::Col<Match3DRuntimeRunRow, i64>,
pub finished_at_ms: __sdk::__query_builder::Col<Match3DRuntimeRunRow, i64>,
pub elapsed_ms: __sdk::__query_builder::Col<Match3DRuntimeRunRow, i64>,
pub clear_count: __sdk::__query_builder::Col<Match3DRuntimeRunRow, u32>,
pub total_item_count: __sdk::__query_builder::Col<Match3DRuntimeRunRow, u32>,
pub cleared_item_count: __sdk::__query_builder::Col<Match3DRuntimeRunRow, u32>,
pub failure_reason: __sdk::__query_builder::Col<Match3DRuntimeRunRow, String>,
pub snapshot_json: __sdk::__query_builder::Col<Match3DRuntimeRunRow, String>,
pub created_at: __sdk::__query_builder::Col<Match3DRuntimeRunRow, __sdk::Timestamp>,
pub updated_at: __sdk::__query_builder::Col<Match3DRuntimeRunRow, __sdk::Timestamp>,
}
impl __sdk::__query_builder::HasCols for Match3DRuntimeRunRow {
type Cols = Match3DRuntimeRunRowCols;
fn cols(table_name: &'static str) -> Self::Cols {
Match3DRuntimeRunRowCols {
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"),
snapshot_version: __sdk::__query_builder::Col::new(table_name, "snapshot_version"),
started_at_ms: __sdk::__query_builder::Col::new(table_name, "started_at_ms"),
duration_limit_ms: __sdk::__query_builder::Col::new(table_name, "duration_limit_ms"),
finished_at_ms: __sdk::__query_builder::Col::new(table_name, "finished_at_ms"),
elapsed_ms: __sdk::__query_builder::Col::new(table_name, "elapsed_ms"),
clear_count: __sdk::__query_builder::Col::new(table_name, "clear_count"),
total_item_count: __sdk::__query_builder::Col::new(table_name, "total_item_count"),
cleared_item_count: __sdk::__query_builder::Col::new(table_name, "cleared_item_count"),
failure_reason: __sdk::__query_builder::Col::new(table_name, "failure_reason"),
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 `Match3DRuntimeRunRow`.
///
/// Provides typed access to indexed columns for query building.
pub struct Match3DRuntimeRunRowIxCols {
pub owner_user_id: __sdk::__query_builder::IxCol<Match3DRuntimeRunRow, String>,
pub profile_id: __sdk::__query_builder::IxCol<Match3DRuntimeRunRow, String>,
pub run_id: __sdk::__query_builder::IxCol<Match3DRuntimeRunRow, String>,
}
impl __sdk::__query_builder::HasIxCols for Match3DRuntimeRunRow {
type IxCols = Match3DRuntimeRunRowIxCols;
fn ix_cols(table_name: &'static str) -> Self::IxCols {
Match3DRuntimeRunRowIxCols {
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 Match3DRuntimeRunRow {}

View File

@@ -0,0 +1,24 @@
// 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 Match3DWorkDeleteInput {
pub profile_id: String,
pub owner_user_id: String,
}
impl __sdk::InModule for Match3DWorkDeleteInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,24 @@
// 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 Match3DWorkGetInput {
pub profile_id: String,
pub owner_user_id: String,
}
impl __sdk::InModule for Match3DWorkGetInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,25 @@
// 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 Match3DWorkProcedureResult {
pub ok: bool,
pub work_json: Option::<String>,
pub error_message: Option::<String>,
}
impl __sdk::InModule for Match3DWorkProcedureResult {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,112 @@
// 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 Match3DWorkProfileRow {
pub profile_id: String,
pub owner_user_id: String,
pub source_session_id: String,
pub author_display_name: String,
pub game_name: String,
pub theme_text: String,
pub summary_text: String,
pub tags_json: String,
pub cover_image_src: String,
pub cover_asset_id: String,
pub clear_count: u32,
pub difficulty: u32,
pub config_json: String,
pub publication_status: String,
pub play_count: u32,
pub updated_at: __sdk::Timestamp,
pub published_at: Option::<__sdk::Timestamp>,
}
impl __sdk::InModule for Match3DWorkProfileRow {
type Module = super::RemoteModule;
}
/// Column accessor struct for the table `Match3DWorkProfileRow`.
///
/// Provides typed access to columns for query building.
pub struct Match3DWorkProfileRowCols {
pub profile_id: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub owner_user_id: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub source_session_id: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub author_display_name: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub game_name: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub theme_text: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub summary_text: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub tags_json: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub cover_image_src: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub cover_asset_id: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub clear_count: __sdk::__query_builder::Col<Match3DWorkProfileRow, u32>,
pub difficulty: __sdk::__query_builder::Col<Match3DWorkProfileRow, u32>,
pub config_json: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub publication_status: __sdk::__query_builder::Col<Match3DWorkProfileRow, String>,
pub play_count: __sdk::__query_builder::Col<Match3DWorkProfileRow, u32>,
pub updated_at: __sdk::__query_builder::Col<Match3DWorkProfileRow, __sdk::Timestamp>,
pub published_at: __sdk::__query_builder::Col<Match3DWorkProfileRow, Option::<__sdk::Timestamp>>,
}
impl __sdk::__query_builder::HasCols for Match3DWorkProfileRow {
type Cols = Match3DWorkProfileRowCols;
fn cols(table_name: &'static str) -> Self::Cols {
Match3DWorkProfileRowCols {
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"),
game_name: __sdk::__query_builder::Col::new(table_name, "game_name"),
theme_text: __sdk::__query_builder::Col::new(table_name, "theme_text"),
summary_text: __sdk::__query_builder::Col::new(table_name, "summary_text"),
tags_json: __sdk::__query_builder::Col::new(table_name, "tags_json"),
cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"),
cover_asset_id: __sdk::__query_builder::Col::new(table_name, "cover_asset_id"),
clear_count: __sdk::__query_builder::Col::new(table_name, "clear_count"),
difficulty: __sdk::__query_builder::Col::new(table_name, "difficulty"),
config_json: __sdk::__query_builder::Col::new(table_name, "config_json"),
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 `Match3DWorkProfileRow`.
///
/// Provides typed access to indexed columns for query building.
pub struct Match3DWorkProfileRowIxCols {
pub owner_user_id: __sdk::__query_builder::IxCol<Match3DWorkProfileRow, String>,
pub profile_id: __sdk::__query_builder::IxCol<Match3DWorkProfileRow, String>,
pub publication_status: __sdk::__query_builder::IxCol<Match3DWorkProfileRow, String>,
}
impl __sdk::__query_builder::HasIxCols for Match3DWorkProfileRow {
type IxCols = Match3DWorkProfileRowIxCols;
fn ix_cols(table_name: &'static str) -> Self::IxCols {
Match3DWorkProfileRowIxCols {
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 Match3DWorkProfileRow {}

View File

@@ -0,0 +1,25 @@
// 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 Match3DWorkPublishInput {
pub profile_id: String,
pub owner_user_id: String,
pub published_at_micros: i64,
}
impl __sdk::InModule for Match3DWorkPublishInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,33 @@
// 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 Match3DWorkUpdateInput {
pub profile_id: String,
pub owner_user_id: String,
pub game_name: String,
pub theme_text: String,
pub summary_text: String,
pub tags_json: String,
pub cover_image_src: String,
pub cover_asset_id: String,
pub clear_count: u32,
pub difficulty: u32,
pub updated_at_micros: i64,
}
impl __sdk::InModule for Match3DWorkUpdateInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,24 @@
// 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 Match3DWorksListInput {
pub owner_user_id: String,
pub published_only: bool,
}
impl __sdk::InModule for Match3DWorksListInput {
type Module = super::RemoteModule;
}

View File

@@ -0,0 +1,25 @@
// 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 Match3DWorksProcedureResult {
pub ok: bool,
pub items_json: Option::<String>,
pub error_message: Option::<String>,
}
impl __sdk::InModule for Match3DWorksProcedureResult {
type Module = super::RemoteModule;
}

View File

@@ -183,6 +183,31 @@ pub mod inventory_mutation_type;
pub mod inventory_mutation_input_type;
pub mod inventory_slot_type;
pub mod inventory_slot_snapshot_type;
pub mod match_3_d_agent_message_finalize_input_type;
pub mod match_3_d_agent_message_row_type;
pub mod match_3_d_agent_message_submit_input_type;
pub mod match_3_d_agent_session_create_input_type;
pub mod match_3_d_agent_session_get_input_type;
pub mod match_3_d_agent_session_procedure_result_type;
pub mod match_3_d_agent_session_row_type;
pub mod match_3_d_click_item_procedure_result_type;
pub mod match_3_d_draft_compile_input_type;
pub mod match_3_d_run_click_input_type;
pub mod match_3_d_run_get_input_type;
pub mod match_3_d_run_procedure_result_type;
pub mod match_3_d_run_restart_input_type;
pub mod match_3_d_run_start_input_type;
pub mod match_3_d_run_stop_input_type;
pub mod match_3_d_run_time_up_input_type;
pub mod match_3_d_runtime_run_row_type;
pub mod match_3_d_work_delete_input_type;
pub mod match_3_d_work_get_input_type;
pub mod match_3_d_work_procedure_result_type;
pub mod match_3_d_work_profile_row_type;
pub mod match_3_d_work_publish_input_type;
pub mod match_3_d_work_update_input_type;
pub mod match_3_d_works_list_input_type;
pub mod match_3_d_works_procedure_result_type;
pub mod npc_battle_interaction_procedure_result_type;
pub mod npc_battle_interaction_result_type;
pub mod npc_interaction_battle_mode_type;
@@ -245,6 +270,7 @@ pub mod puzzle_select_cover_image_input_type;
pub mod puzzle_work_delete_input_type;
pub mod puzzle_work_get_input_type;
pub mod puzzle_work_like_record_input_type;
pub mod puzzle_work_point_incentive_claim_input_type;
pub mod puzzle_work_procedure_result_type;
pub mod puzzle_work_profile_row_type;
pub mod puzzle_work_remix_input_type;
@@ -414,10 +440,13 @@ pub mod authorize_database_migration_operator_procedure;
pub mod begin_story_session_and_return_procedure;
pub mod bind_asset_object_to_entity_and_return_procedure;
pub mod cancel_ai_task_and_return_procedure;
pub mod claim_puzzle_work_point_incentive_procedure;
pub mod clear_database_migration_import_chunks_procedure;
pub mod clear_platform_browse_history_and_return_procedure;
pub mod click_match_3_d_item_procedure;
pub mod compile_big_fish_draft_procedure;
pub mod compile_custom_world_published_profile_procedure;
pub mod compile_match_3_d_draft_procedure;
pub mod compile_puzzle_agent_draft_procedure;
pub mod complete_ai_stage_and_return_procedure;
pub mod complete_ai_task_and_return_procedure;
@@ -428,11 +457,13 @@ pub mod create_ai_task_and_return_procedure;
pub mod create_battle_state_and_return_procedure;
pub mod create_big_fish_session_procedure;
pub mod create_custom_world_agent_session_procedure;
pub mod create_match_3_d_agent_session_procedure;
pub mod create_profile_recharge_order_and_return_procedure;
pub mod create_puzzle_agent_session_procedure;
pub mod delete_big_fish_work_procedure;
pub mod delete_custom_world_agent_session_procedure;
pub mod delete_custom_world_profile_and_return_procedure;
pub mod delete_match_3_d_work_procedure;
pub mod delete_puzzle_work_procedure;
pub mod delete_runtime_snapshot_and_return_procedure;
pub mod drag_puzzle_piece_or_group_procedure;
@@ -442,7 +473,9 @@ pub mod export_database_migration_to_file_procedure;
pub mod fail_ai_task_and_return_procedure;
pub mod finalize_big_fish_agent_message_turn_procedure;
pub mod finalize_custom_world_agent_message_turn_procedure;
pub mod finalize_match_3_d_agent_message_turn_procedure;
pub mod finalize_puzzle_agent_message_turn_procedure;
pub mod finish_match_3_d_time_up_procedure;
pub mod generate_big_fish_asset_procedure;
pub mod get_auth_store_snapshot_procedure;
pub mod get_battle_state_procedure;
@@ -454,6 +487,9 @@ pub mod get_custom_world_agent_session_procedure;
pub mod get_custom_world_gallery_detail_procedure;
pub mod get_custom_world_gallery_detail_by_code_procedure;
pub mod get_custom_world_library_detail_procedure;
pub mod get_match_3_d_agent_session_procedure;
pub mod get_match_3_d_run_procedure;
pub mod get_match_3_d_work_detail_procedure;
pub mod get_player_progression_or_default_procedure;
pub mod get_profile_dashboard_procedure;
pub mod get_profile_play_stats_procedure;
@@ -478,6 +514,7 @@ pub mod list_big_fish_works_procedure;
pub mod list_custom_world_gallery_entries_procedure;
pub mod list_custom_world_profiles_procedure;
pub mod list_custom_world_works_procedure;
pub mod list_match_3_d_works_procedure;
pub mod list_platform_browse_history_procedure;
pub mod list_profile_save_archives_procedure;
pub mod list_profile_wallet_ledger_procedure;
@@ -486,6 +523,7 @@ pub mod list_puzzle_works_procedure;
pub mod publish_big_fish_game_procedure;
pub mod publish_custom_world_profile_and_return_procedure;
pub mod publish_custom_world_world_procedure;
pub mod publish_match_3_d_work_procedure;
pub mod publish_puzzle_work_procedure;
pub mod put_database_migration_import_chunk_procedure;
pub mod record_big_fish_like_procedure;
@@ -504,18 +542,23 @@ pub mod resolve_npc_battle_interaction_and_return_procedure;
pub mod resolve_npc_interaction_and_return_procedure;
pub mod resolve_npc_social_action_and_return_procedure;
pub mod resolve_treasure_interaction_and_return_procedure;
pub mod restart_match_3_d_run_procedure;
pub mod resume_profile_save_archive_and_return_procedure;
pub mod revoke_database_migration_operator_procedure;
pub mod save_puzzle_form_draft_procedure;
pub mod save_puzzle_generated_images_procedure;
pub mod select_puzzle_cover_image_procedure;
pub mod start_match_3_d_run_procedure;
pub mod start_puzzle_run_procedure;
pub mod stop_match_3_d_run_procedure;
pub mod submit_big_fish_message_procedure;
pub mod submit_custom_world_agent_message_procedure;
pub mod submit_match_3_d_agent_message_procedure;
pub mod submit_puzzle_agent_message_procedure;
pub mod submit_puzzle_leaderboard_entry_procedure;
pub mod swap_puzzle_pieces_procedure;
pub mod unpublish_custom_world_profile_and_return_procedure;
pub mod update_match_3_d_work_procedure;
pub mod update_puzzle_run_pause_procedure;
pub mod update_puzzle_work_procedure;
pub mod upsert_auth_store_snapshot_procedure;
@@ -700,6 +743,31 @@ pub use inventory_mutation_type::InventoryMutation;
pub use inventory_mutation_input_type::InventoryMutationInput;
pub use inventory_slot_type::InventorySlot;
pub use inventory_slot_snapshot_type::InventorySlotSnapshot;
pub use match_3_d_agent_message_finalize_input_type::Match3DAgentMessageFinalizeInput;
pub use match_3_d_agent_message_row_type::Match3DAgentMessageRow;
pub use match_3_d_agent_message_submit_input_type::Match3DAgentMessageSubmitInput;
pub use match_3_d_agent_session_create_input_type::Match3DAgentSessionCreateInput;
pub use match_3_d_agent_session_get_input_type::Match3DAgentSessionGetInput;
pub use match_3_d_agent_session_procedure_result_type::Match3DAgentSessionProcedureResult;
pub use match_3_d_agent_session_row_type::Match3DAgentSessionRow;
pub use match_3_d_click_item_procedure_result_type::Match3DClickItemProcedureResult;
pub use match_3_d_draft_compile_input_type::Match3DDraftCompileInput;
pub use match_3_d_run_click_input_type::Match3DRunClickInput;
pub use match_3_d_run_get_input_type::Match3DRunGetInput;
pub use match_3_d_run_procedure_result_type::Match3DRunProcedureResult;
pub use match_3_d_run_restart_input_type::Match3DRunRestartInput;
pub use match_3_d_run_start_input_type::Match3DRunStartInput;
pub use match_3_d_run_stop_input_type::Match3DRunStopInput;
pub use match_3_d_run_time_up_input_type::Match3DRunTimeUpInput;
pub use match_3_d_runtime_run_row_type::Match3DRuntimeRunRow;
pub use match_3_d_work_delete_input_type::Match3DWorkDeleteInput;
pub use match_3_d_work_get_input_type::Match3DWorkGetInput;
pub use match_3_d_work_procedure_result_type::Match3DWorkProcedureResult;
pub use match_3_d_work_profile_row_type::Match3DWorkProfileRow;
pub use match_3_d_work_publish_input_type::Match3DWorkPublishInput;
pub use match_3_d_work_update_input_type::Match3DWorkUpdateInput;
pub use match_3_d_works_list_input_type::Match3DWorksListInput;
pub use match_3_d_works_procedure_result_type::Match3DWorksProcedureResult;
pub use npc_battle_interaction_procedure_result_type::NpcBattleInteractionProcedureResult;
pub use npc_battle_interaction_result_type::NpcBattleInteractionResult;
pub use npc_interaction_battle_mode_type::NpcInteractionBattleMode;
@@ -762,6 +830,7 @@ pub use puzzle_select_cover_image_input_type::PuzzleSelectCoverImageInput;
pub use puzzle_work_delete_input_type::PuzzleWorkDeleteInput;
pub use puzzle_work_get_input_type::PuzzleWorkGetInput;
pub use puzzle_work_like_record_input_type::PuzzleWorkLikeRecordInput;
pub use puzzle_work_point_incentive_claim_input_type::PuzzleWorkPointIncentiveClaimInput;
pub use puzzle_work_procedure_result_type::PuzzleWorkProcedureResult;
pub use puzzle_work_profile_row_type::PuzzleWorkProfileRow;
pub use puzzle_work_remix_input_type::PuzzleWorkRemixInput;
@@ -931,10 +1000,13 @@ pub use authorize_database_migration_operator_procedure::authorize_database_migr
pub use begin_story_session_and_return_procedure::begin_story_session_and_return;
pub use bind_asset_object_to_entity_and_return_procedure::bind_asset_object_to_entity_and_return;
pub use cancel_ai_task_and_return_procedure::cancel_ai_task_and_return;
pub use claim_puzzle_work_point_incentive_procedure::claim_puzzle_work_point_incentive;
pub use clear_database_migration_import_chunks_procedure::clear_database_migration_import_chunks;
pub use clear_platform_browse_history_and_return_procedure::clear_platform_browse_history_and_return;
pub use click_match_3_d_item_procedure::click_match_3_d_item;
pub use compile_big_fish_draft_procedure::compile_big_fish_draft;
pub use compile_custom_world_published_profile_procedure::compile_custom_world_published_profile;
pub use compile_match_3_d_draft_procedure::compile_match_3_d_draft;
pub use compile_puzzle_agent_draft_procedure::compile_puzzle_agent_draft;
pub use complete_ai_stage_and_return_procedure::complete_ai_stage_and_return;
pub use complete_ai_task_and_return_procedure::complete_ai_task_and_return;
@@ -945,11 +1017,13 @@ pub use create_ai_task_and_return_procedure::create_ai_task_and_return;
pub use create_battle_state_and_return_procedure::create_battle_state_and_return;
pub use create_big_fish_session_procedure::create_big_fish_session;
pub use create_custom_world_agent_session_procedure::create_custom_world_agent_session;
pub use create_match_3_d_agent_session_procedure::create_match_3_d_agent_session;
pub use create_profile_recharge_order_and_return_procedure::create_profile_recharge_order_and_return;
pub use create_puzzle_agent_session_procedure::create_puzzle_agent_session;
pub use delete_big_fish_work_procedure::delete_big_fish_work;
pub use delete_custom_world_agent_session_procedure::delete_custom_world_agent_session;
pub use delete_custom_world_profile_and_return_procedure::delete_custom_world_profile_and_return;
pub use delete_match_3_d_work_procedure::delete_match_3_d_work;
pub use delete_puzzle_work_procedure::delete_puzzle_work;
pub use delete_runtime_snapshot_and_return_procedure::delete_runtime_snapshot_and_return;
pub use drag_puzzle_piece_or_group_procedure::drag_puzzle_piece_or_group;
@@ -959,7 +1033,9 @@ pub use export_database_migration_to_file_procedure::export_database_migration_t
pub use fail_ai_task_and_return_procedure::fail_ai_task_and_return;
pub use finalize_big_fish_agent_message_turn_procedure::finalize_big_fish_agent_message_turn;
pub use finalize_custom_world_agent_message_turn_procedure::finalize_custom_world_agent_message_turn;
pub use finalize_match_3_d_agent_message_turn_procedure::finalize_match_3_d_agent_message_turn;
pub use finalize_puzzle_agent_message_turn_procedure::finalize_puzzle_agent_message_turn;
pub use finish_match_3_d_time_up_procedure::finish_match_3_d_time_up;
pub use generate_big_fish_asset_procedure::generate_big_fish_asset;
pub use get_auth_store_snapshot_procedure::get_auth_store_snapshot;
pub use get_battle_state_procedure::get_battle_state;
@@ -971,6 +1047,9 @@ pub use get_custom_world_agent_session_procedure::get_custom_world_agent_session
pub use get_custom_world_gallery_detail_procedure::get_custom_world_gallery_detail;
pub use get_custom_world_gallery_detail_by_code_procedure::get_custom_world_gallery_detail_by_code;
pub use get_custom_world_library_detail_procedure::get_custom_world_library_detail;
pub use get_match_3_d_agent_session_procedure::get_match_3_d_agent_session;
pub use get_match_3_d_run_procedure::get_match_3_d_run;
pub use get_match_3_d_work_detail_procedure::get_match_3_d_work_detail;
pub use get_player_progression_or_default_procedure::get_player_progression_or_default;
pub use get_profile_dashboard_procedure::get_profile_dashboard;
pub use get_profile_play_stats_procedure::get_profile_play_stats;
@@ -995,6 +1074,7 @@ pub use list_big_fish_works_procedure::list_big_fish_works;
pub use list_custom_world_gallery_entries_procedure::list_custom_world_gallery_entries;
pub use list_custom_world_profiles_procedure::list_custom_world_profiles;
pub use list_custom_world_works_procedure::list_custom_world_works;
pub use list_match_3_d_works_procedure::list_match_3_d_works;
pub use list_platform_browse_history_procedure::list_platform_browse_history;
pub use list_profile_save_archives_procedure::list_profile_save_archives;
pub use list_profile_wallet_ledger_procedure::list_profile_wallet_ledger;
@@ -1003,6 +1083,7 @@ pub use list_puzzle_works_procedure::list_puzzle_works;
pub use publish_big_fish_game_procedure::publish_big_fish_game;
pub use publish_custom_world_profile_and_return_procedure::publish_custom_world_profile_and_return;
pub use publish_custom_world_world_procedure::publish_custom_world_world;
pub use publish_match_3_d_work_procedure::publish_match_3_d_work;
pub use publish_puzzle_work_procedure::publish_puzzle_work;
pub use put_database_migration_import_chunk_procedure::put_database_migration_import_chunk;
pub use record_big_fish_like_procedure::record_big_fish_like;
@@ -1021,18 +1102,23 @@ pub use resolve_npc_battle_interaction_and_return_procedure::resolve_npc_battle_
pub use resolve_npc_interaction_and_return_procedure::resolve_npc_interaction_and_return;
pub use resolve_npc_social_action_and_return_procedure::resolve_npc_social_action_and_return;
pub use resolve_treasure_interaction_and_return_procedure::resolve_treasure_interaction_and_return;
pub use restart_match_3_d_run_procedure::restart_match_3_d_run;
pub use resume_profile_save_archive_and_return_procedure::resume_profile_save_archive_and_return;
pub use revoke_database_migration_operator_procedure::revoke_database_migration_operator;
pub use save_puzzle_form_draft_procedure::save_puzzle_form_draft;
pub use save_puzzle_generated_images_procedure::save_puzzle_generated_images;
pub use select_puzzle_cover_image_procedure::select_puzzle_cover_image;
pub use start_match_3_d_run_procedure::start_match_3_d_run;
pub use start_puzzle_run_procedure::start_puzzle_run;
pub use stop_match_3_d_run_procedure::stop_match_3_d_run;
pub use submit_big_fish_message_procedure::submit_big_fish_message;
pub use submit_custom_world_agent_message_procedure::submit_custom_world_agent_message;
pub use submit_match_3_d_agent_message_procedure::submit_match_3_d_agent_message;
pub use submit_puzzle_agent_message_procedure::submit_puzzle_agent_message;
pub use submit_puzzle_leaderboard_entry_procedure::submit_puzzle_leaderboard_entry;
pub use swap_puzzle_pieces_procedure::swap_puzzle_pieces;
pub use unpublish_custom_world_profile_and_return_procedure::unpublish_custom_world_profile_and_return;
pub use update_match_3_d_work_procedure::update_match_3_d_work;
pub use update_puzzle_run_pause_procedure::update_puzzle_run_pause;
pub use update_puzzle_work_procedure::update_puzzle_work;
pub use upsert_auth_store_snapshot_procedure::upsert_auth_store_snapshot;

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_work_procedure_result_type::Match3DWorkProcedureResult;
use super::match_3_d_work_publish_input_type::Match3DWorkPublishInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct PublishMatch3DWorkArgs {
pub input: Match3DWorkPublishInput,
}
impl __sdk::InModule for PublishMatch3DWorkArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `publish_match_3_d_work`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait publish_match_3_d_work {
fn publish_match_3_d_work(&self, input: Match3DWorkPublishInput,
) {
self.publish_match_3_d_work_then(input, |_, _| {});
}
fn publish_match_3_d_work_then(
&self,
input: Match3DWorkPublishInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DWorkProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl publish_match_3_d_work for super::RemoteProcedures {
fn publish_match_3_d_work_then(
&self,
input: Match3DWorkPublishInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DWorkProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DWorkProcedureResult>(
"publish_match_3_d_work",
PublishMatch3DWorkArgs { input, },
__callback,
);
}
}

View File

@@ -17,6 +17,7 @@ pub struct PuzzleRunPropInput {
pub owner_user_id: String,
pub prop_kind: String,
pub used_at_micros: i64,
pub spent_points: u64,
}

View File

@@ -0,0 +1,25 @@
// 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 PuzzleWorkPointIncentiveClaimInput {
pub profile_id: String,
pub owner_user_id: String,
pub claimed_at_micros: i64,
}
impl __sdk::InModule for PuzzleWorkPointIncentiveClaimInput {
type Module = super::RemoteModule;
}

View File

@@ -36,6 +36,8 @@ pub struct PuzzleWorkProfileRow {
pub published_at: Option::<__sdk::Timestamp>,
pub remix_count: u32,
pub like_count: u32,
pub point_incentive_total_half_points: u64,
pub point_incentive_claimed_points: u64,
}
@@ -70,6 +72,8 @@ pub struct PuzzleWorkProfileRowCols {
pub published_at: __sdk::__query_builder::Col<PuzzleWorkProfileRow, Option::<__sdk::Timestamp>>,
pub remix_count: __sdk::__query_builder::Col<PuzzleWorkProfileRow, u32>,
pub like_count: __sdk::__query_builder::Col<PuzzleWorkProfileRow, u32>,
pub point_incentive_total_half_points: __sdk::__query_builder::Col<PuzzleWorkProfileRow, u64>,
pub point_incentive_claimed_points: __sdk::__query_builder::Col<PuzzleWorkProfileRow, u64>,
}
impl __sdk::__query_builder::HasCols for PuzzleWorkProfileRow {
@@ -98,6 +102,8 @@ impl __sdk::__query_builder::HasCols for PuzzleWorkProfileRow {
published_at: __sdk::__query_builder::Col::new(table_name, "published_at"),
remix_count: __sdk::__query_builder::Col::new(table_name, "remix_count"),
like_count: __sdk::__query_builder::Col::new(table_name, "like_count"),
point_incentive_total_half_points: __sdk::__query_builder::Col::new(table_name, "point_incentive_total_half_points"),
point_incentive_claimed_points: __sdk::__query_builder::Col::new(table_name, "point_incentive_claimed_points"),
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_run_procedure_result_type::Match3DRunProcedureResult;
use super::match_3_d_run_restart_input_type::Match3DRunRestartInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct RestartMatch3DRunArgs {
pub input: Match3DRunRestartInput,
}
impl __sdk::InModule for RestartMatch3DRunArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `restart_match_3_d_run`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait restart_match_3_d_run {
fn restart_match_3_d_run(&self, input: Match3DRunRestartInput,
) {
self.restart_match_3_d_run_then(input, |_, _| {});
}
fn restart_match_3_d_run_then(
&self,
input: Match3DRunRestartInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DRunProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl restart_match_3_d_run for super::RemoteProcedures {
fn restart_match_3_d_run_then(
&self,
input: Match3DRunRestartInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DRunProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DRunProcedureResult>(
"restart_match_3_d_run",
RestartMatch3DRunArgs { input, },
__callback,
);
}
}

View File

@@ -27,6 +27,8 @@ pub enum RuntimeProfileWalletLedgerSourceType {
RedeemCodeReward,
PuzzleAuthorIncentiveClaim,
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_run_procedure_result_type::Match3DRunProcedureResult;
use super::match_3_d_run_start_input_type::Match3DRunStartInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct StartMatch3DRunArgs {
pub input: Match3DRunStartInput,
}
impl __sdk::InModule for StartMatch3DRunArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `start_match_3_d_run`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait start_match_3_d_run {
fn start_match_3_d_run(&self, input: Match3DRunStartInput,
) {
self.start_match_3_d_run_then(input, |_, _| {});
}
fn start_match_3_d_run_then(
&self,
input: Match3DRunStartInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DRunProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl start_match_3_d_run for super::RemoteProcedures {
fn start_match_3_d_run_then(
&self,
input: Match3DRunStartInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DRunProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DRunProcedureResult>(
"start_match_3_d_run",
StartMatch3DRunArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_run_procedure_result_type::Match3DRunProcedureResult;
use super::match_3_d_run_stop_input_type::Match3DRunStopInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct StopMatch3DRunArgs {
pub input: Match3DRunStopInput,
}
impl __sdk::InModule for StopMatch3DRunArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `stop_match_3_d_run`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait stop_match_3_d_run {
fn stop_match_3_d_run(&self, input: Match3DRunStopInput,
) {
self.stop_match_3_d_run_then(input, |_, _| {});
}
fn stop_match_3_d_run_then(
&self,
input: Match3DRunStopInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DRunProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl stop_match_3_d_run for super::RemoteProcedures {
fn stop_match_3_d_run_then(
&self,
input: Match3DRunStopInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DRunProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DRunProcedureResult>(
"stop_match_3_d_run",
StopMatch3DRunArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_agent_session_procedure_result_type::Match3DAgentSessionProcedureResult;
use super::match_3_d_agent_message_submit_input_type::Match3DAgentMessageSubmitInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct SubmitMatch3DAgentMessageArgs {
pub input: Match3DAgentMessageSubmitInput,
}
impl __sdk::InModule for SubmitMatch3DAgentMessageArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `submit_match_3_d_agent_message`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait submit_match_3_d_agent_message {
fn submit_match_3_d_agent_message(&self, input: Match3DAgentMessageSubmitInput,
) {
self.submit_match_3_d_agent_message_then(input, |_, _| {});
}
fn submit_match_3_d_agent_message_then(
&self,
input: Match3DAgentMessageSubmitInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DAgentSessionProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl submit_match_3_d_agent_message for super::RemoteProcedures {
fn submit_match_3_d_agent_message_then(
&self,
input: Match3DAgentMessageSubmitInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DAgentSessionProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DAgentSessionProcedureResult>(
"submit_match_3_d_agent_message",
SubmitMatch3DAgentMessageArgs { input, },
__callback,
);
}
}

View File

@@ -0,0 +1,58 @@
// 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::match_3_d_work_procedure_result_type::Match3DWorkProcedureResult;
use super::match_3_d_work_update_input_type::Match3DWorkUpdateInput;
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct UpdateMatch3DWorkArgs {
pub input: Match3DWorkUpdateInput,
}
impl __sdk::InModule for UpdateMatch3DWorkArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `update_match_3_d_work`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait update_match_3_d_work {
fn update_match_3_d_work(&self, input: Match3DWorkUpdateInput,
) {
self.update_match_3_d_work_then(input, |_, _| {});
}
fn update_match_3_d_work_then(
&self,
input: Match3DWorkUpdateInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DWorkProcedureResult, __sdk::InternalError>) + Send + 'static,
);
}
impl update_match_3_d_work for super::RemoteProcedures {
fn update_match_3_d_work_then(
&self,
input: Match3DWorkUpdateInput,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<Match3DWorkProcedureResult, __sdk::InternalError>) + Send + 'static,
) {
self.imp.invoke_procedure_with_callback::<_, Match3DWorkProcedureResult>(
"update_match_3_d_work",
UpdateMatch3DWorkArgs { input, },
__callback,
);
}
}

View File

@@ -1,5 +1,6 @@
use super::*;
use crate::mapper::*;
use crate::module_bindings::claim_puzzle_work_point_incentive_procedure::claim_puzzle_work_point_incentive;
use crate::module_bindings::delete_puzzle_work_procedure::delete_puzzle_work;
use crate::module_bindings::record_puzzle_work_like_procedure::record_puzzle_work_like;
use crate::module_bindings::remix_puzzle_work_procedure::remix_puzzle_work;
@@ -340,6 +341,29 @@ impl SpacetimeClient {
.await
}
pub async fn claim_puzzle_work_point_incentive(
&self,
input: PuzzleWorkPointIncentiveClaimRecordInput,
) -> Result<PuzzleWorkProfileRecord, SpacetimeClientError> {
let procedure_input = PuzzleWorkPointIncentiveClaimInput {
profile_id: input.profile_id,
owner_user_id: input.owner_user_id,
claimed_at_micros: input.claimed_at_micros,
};
self.call_after_connect(move |connection, sender| {
connection
.procedures()
.claim_puzzle_work_point_incentive_then(procedure_input, move |_, result| {
let mapped = result
.map_err(|error| SpacetimeClientError::Procedure(error.to_string()))
.and_then(map_puzzle_work_procedure_result);
send_once(&sender, mapped);
});
})
.await
}
pub async fn list_puzzle_gallery(
&self,
) -> Result<Vec<PuzzleWorkProfileRecord>, SpacetimeClientError> {
@@ -586,6 +610,7 @@ impl SpacetimeClient {
owner_user_id: input.owner_user_id,
prop_kind: input.prop_kind,
used_at_micros: input.used_at_micros,
spent_points: input.spent_points,
};
self.call_after_connect(move |connection, sender| {