1
This commit is contained in:
@@ -46,9 +46,7 @@ impl From<module_assets::AssetHistoryListInput> for AssetHistoryListInput {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<module_runtime::CreationEntryTypeAdminUpsertInput>
|
||||
for CreationEntryTypeAdminUpsertInput
|
||||
{
|
||||
impl From<module_runtime::CreationEntryTypeAdminUpsertInput> for CreationEntryTypeAdminUpsertInput {
|
||||
fn from(input: module_runtime::CreationEntryTypeAdminUpsertInput) -> Self {
|
||||
Self {
|
||||
id: input.id,
|
||||
@@ -337,7 +335,6 @@ impl From<module_runtime::RuntimeProfileInviteCodeAdminUpsertInput>
|
||||
admin_user_id: input.admin_user_id,
|
||||
invite_code: input.invite_code,
|
||||
metadata_json: input.metadata_json,
|
||||
granted_user_tags: input.granted_user_tags,
|
||||
starts_at_micros: input.starts_at_micros,
|
||||
expires_at_micros: input.expires_at_micros,
|
||||
updated_at_micros: input.updated_at_micros,
|
||||
@@ -723,7 +720,8 @@ pub(crate) fn map_asset_history_list_result(
|
||||
.collect())
|
||||
}
|
||||
|
||||
pub type CreationEntryConfigRecord = shared_contracts::creation_entry_config::CreationEntryConfigResponse;
|
||||
pub type CreationEntryConfigRecord =
|
||||
shared_contracts::creation_entry_config::CreationEntryConfigResponse;
|
||||
|
||||
pub(crate) fn map_creation_entry_config_procedure_result(
|
||||
result: CreationEntryConfigProcedureResult,
|
||||
@@ -2385,7 +2383,6 @@ pub(crate) fn map_runtime_profile_invite_code_snapshot(
|
||||
user_id: snapshot.user_id,
|
||||
invite_code: snapshot.invite_code,
|
||||
metadata_json: snapshot.metadata_json,
|
||||
granted_user_tags: snapshot.granted_user_tags,
|
||||
starts_at_micros: snapshot.starts_at_micros,
|
||||
expires_at_micros: snapshot.expires_at_micros,
|
||||
created_at_micros: snapshot.created_at_micros,
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::creation_entry_start_card_snapshot_type::CreationEntryStartCardSnapshot;
|
||||
use super::creation_entry_type_config_snapshot_type::CreationEntryTypeSnapshot;
|
||||
use super::creation_entry_type_modal_snapshot_type::CreationEntryTypeModalSnapshot;
|
||||
use super::creation_entry_type_snapshot_type::CreationEntryTypeSnapshot;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
#[sats(crate = __lib)]
|
||||
|
||||
@@ -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::creation_entry_config_type::CreationEntryConfig;
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
/// Table handle for the table `creation_entry_config`.
|
||||
///
|
||||
/// Obtain a handle from the [`CreationEntryConfigTableAccess::creation_entry_config`] method on [`super::RemoteTables`],
|
||||
/// like `ctx.db.creation_entry_config()`.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.creation_entry_config().on_insert(...)`.
|
||||
pub struct CreationEntryConfigTableHandle<'ctx> {
|
||||
imp: __sdk::TableHandle<CreationEntryConfig>,
|
||||
ctx: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the table `creation_entry_config`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteTables`].
|
||||
pub trait CreationEntryConfigTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Obtain a [`CreationEntryConfigTableHandle`], which mediates access to the table `creation_entry_config`.
|
||||
fn creation_entry_config(&self) -> CreationEntryConfigTableHandle<'_>;
|
||||
}
|
||||
|
||||
impl CreationEntryConfigTableAccess for super::RemoteTables {
|
||||
fn creation_entry_config(&self) -> CreationEntryConfigTableHandle<'_> {
|
||||
CreationEntryConfigTableHandle {
|
||||
imp: self
|
||||
.imp
|
||||
.get_table::<CreationEntryConfig>("creation_entry_config"),
|
||||
ctx: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct CreationEntryConfigInsertCallbackId(__sdk::CallbackId);
|
||||
pub struct CreationEntryConfigDeleteCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::Table for CreationEntryConfigTableHandle<'ctx> {
|
||||
type Row = CreationEntryConfig;
|
||||
type EventContext = super::EventContext;
|
||||
|
||||
fn count(&self) -> u64 {
|
||||
self.imp.count()
|
||||
}
|
||||
fn iter(&self) -> impl Iterator<Item = CreationEntryConfig> + '_ {
|
||||
self.imp.iter()
|
||||
}
|
||||
|
||||
type InsertCallbackId = CreationEntryConfigInsertCallbackId;
|
||||
|
||||
fn on_insert(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> CreationEntryConfigInsertCallbackId {
|
||||
CreationEntryConfigInsertCallbackId(self.imp.on_insert(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_insert(&self, callback: CreationEntryConfigInsertCallbackId) {
|
||||
self.imp.remove_on_insert(callback.0)
|
||||
}
|
||||
|
||||
type DeleteCallbackId = CreationEntryConfigDeleteCallbackId;
|
||||
|
||||
fn on_delete(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> CreationEntryConfigDeleteCallbackId {
|
||||
CreationEntryConfigDeleteCallbackId(self.imp.on_delete(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_delete(&self, callback: CreationEntryConfigDeleteCallbackId) {
|
||||
self.imp.remove_on_delete(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct CreationEntryConfigUpdateCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::TableWithPrimaryKey for CreationEntryConfigTableHandle<'ctx> {
|
||||
type UpdateCallbackId = CreationEntryConfigUpdateCallbackId;
|
||||
|
||||
fn on_update(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static,
|
||||
) -> CreationEntryConfigUpdateCallbackId {
|
||||
CreationEntryConfigUpdateCallbackId(self.imp.on_update(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_update(&self, callback: CreationEntryConfigUpdateCallbackId) {
|
||||
self.imp.remove_on_update(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
/// Access to the `config_id` unique index on the table `creation_entry_config`,
|
||||
/// which allows point queries on the field of the same name
|
||||
/// via the [`CreationEntryConfigConfigIdUnique::find`] method.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.creation_entry_config().config_id().find(...)`.
|
||||
pub struct CreationEntryConfigConfigIdUnique<'ctx> {
|
||||
imp: __sdk::UniqueConstraintHandle<CreationEntryConfig, String>,
|
||||
phantom: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
impl<'ctx> CreationEntryConfigTableHandle<'ctx> {
|
||||
/// Get a handle on the `config_id` unique index on the table `creation_entry_config`.
|
||||
pub fn config_id(&self) -> CreationEntryConfigConfigIdUnique<'ctx> {
|
||||
CreationEntryConfigConfigIdUnique {
|
||||
imp: self.imp.get_unique_constraint::<String>("config_id"),
|
||||
phantom: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'ctx> CreationEntryConfigConfigIdUnique<'ctx> {
|
||||
/// Find the subscribed row whose `config_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<CreationEntryConfig> {
|
||||
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::<CreationEntryConfig>("creation_entry_config");
|
||||
_table.add_unique_constraint::<String>("config_id", |row| &row.config_id);
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn parse_table_update(
|
||||
raw_updates: __ws::v2::TableUpdate,
|
||||
) -> __sdk::Result<__sdk::TableUpdate<CreationEntryConfig>> {
|
||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||
__sdk::InternalError::failed_parse("TableUpdate<CreationEntryConfig>", "TableUpdate")
|
||||
.with_cause(e)
|
||||
.into()
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for query builder access to the table `CreationEntryConfig`.
|
||||
///
|
||||
/// Implemented for [`__sdk::QueryTableAccessor`].
|
||||
pub trait creation_entry_configQueryTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Get a query builder for the table `CreationEntryConfig`.
|
||||
fn creation_entry_config(&self) -> __sdk::__query_builder::Table<CreationEntryConfig>;
|
||||
}
|
||||
|
||||
impl creation_entry_configQueryTableAccess for __sdk::QueryTableAccessor {
|
||||
fn creation_entry_config(&self) -> __sdk::__query_builder::Table<CreationEntryConfig> {
|
||||
__sdk::__query_builder::Table::new("creation_entry_config")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
// 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 CreationEntryConfig {
|
||||
pub config_id: String,
|
||||
pub start_title: String,
|
||||
pub start_description: String,
|
||||
pub start_idle_badge: String,
|
||||
pub start_busy_badge: String,
|
||||
pub modal_title: String,
|
||||
pub modal_description: String,
|
||||
pub updated_at: __sdk::Timestamp,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for CreationEntryConfig {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
/// Column accessor struct for the table `CreationEntryConfig`.
|
||||
///
|
||||
/// Provides typed access to columns for query building.
|
||||
pub struct CreationEntryConfigCols {
|
||||
pub config_id: __sdk::__query_builder::Col<CreationEntryConfig, String>,
|
||||
pub start_title: __sdk::__query_builder::Col<CreationEntryConfig, String>,
|
||||
pub start_description: __sdk::__query_builder::Col<CreationEntryConfig, String>,
|
||||
pub start_idle_badge: __sdk::__query_builder::Col<CreationEntryConfig, String>,
|
||||
pub start_busy_badge: __sdk::__query_builder::Col<CreationEntryConfig, String>,
|
||||
pub modal_title: __sdk::__query_builder::Col<CreationEntryConfig, String>,
|
||||
pub modal_description: __sdk::__query_builder::Col<CreationEntryConfig, String>,
|
||||
pub updated_at: __sdk::__query_builder::Col<CreationEntryConfig, __sdk::Timestamp>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasCols for CreationEntryConfig {
|
||||
type Cols = CreationEntryConfigCols;
|
||||
fn cols(table_name: &'static str) -> Self::Cols {
|
||||
CreationEntryConfigCols {
|
||||
config_id: __sdk::__query_builder::Col::new(table_name, "config_id"),
|
||||
start_title: __sdk::__query_builder::Col::new(table_name, "start_title"),
|
||||
start_description: __sdk::__query_builder::Col::new(table_name, "start_description"),
|
||||
start_idle_badge: __sdk::__query_builder::Col::new(table_name, "start_idle_badge"),
|
||||
start_busy_badge: __sdk::__query_builder::Col::new(table_name, "start_busy_badge"),
|
||||
modal_title: __sdk::__query_builder::Col::new(table_name, "modal_title"),
|
||||
modal_description: __sdk::__query_builder::Col::new(table_name, "modal_description"),
|
||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Indexed column accessor struct for the table `CreationEntryConfig`.
|
||||
///
|
||||
/// Provides typed access to indexed columns for query building.
|
||||
pub struct CreationEntryConfigIxCols {
|
||||
pub config_id: __sdk::__query_builder::IxCol<CreationEntryConfig, String>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasIxCols for CreationEntryConfig {
|
||||
type IxCols = CreationEntryConfigIxCols;
|
||||
fn ix_cols(table_name: &'static str) -> Self::IxCols {
|
||||
CreationEntryConfigIxCols {
|
||||
config_id: __sdk::__query_builder::IxCol::new(table_name, "config_id"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::CanBeLookupTable for CreationEntryConfig {}
|
||||
@@ -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::creation_entry_type_config_type::CreationEntryTypeConfig;
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
/// Table handle for the table `creation_entry_type_config`.
|
||||
///
|
||||
/// Obtain a handle from the [`CreationEntryTypeConfigTableAccess::creation_entry_type_config`] method on [`super::RemoteTables`],
|
||||
/// like `ctx.db.creation_entry_type_config()`.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.creation_entry_type_config().on_insert(...)`.
|
||||
pub struct CreationEntryTypeConfigTableHandle<'ctx> {
|
||||
imp: __sdk::TableHandle<CreationEntryTypeConfig>,
|
||||
ctx: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for access to the table `creation_entry_type_config`.
|
||||
///
|
||||
/// Implemented for [`super::RemoteTables`].
|
||||
pub trait CreationEntryTypeConfigTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Obtain a [`CreationEntryTypeConfigTableHandle`], which mediates access to the table `creation_entry_type_config`.
|
||||
fn creation_entry_type_config(&self) -> CreationEntryTypeConfigTableHandle<'_>;
|
||||
}
|
||||
|
||||
impl CreationEntryTypeConfigTableAccess for super::RemoteTables {
|
||||
fn creation_entry_type_config(&self) -> CreationEntryTypeConfigTableHandle<'_> {
|
||||
CreationEntryTypeConfigTableHandle {
|
||||
imp: self
|
||||
.imp
|
||||
.get_table::<CreationEntryTypeConfig>("creation_entry_type_config"),
|
||||
ctx: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct CreationEntryTypeConfigInsertCallbackId(__sdk::CallbackId);
|
||||
pub struct CreationEntryTypeConfigDeleteCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::Table for CreationEntryTypeConfigTableHandle<'ctx> {
|
||||
type Row = CreationEntryTypeConfig;
|
||||
type EventContext = super::EventContext;
|
||||
|
||||
fn count(&self) -> u64 {
|
||||
self.imp.count()
|
||||
}
|
||||
fn iter(&self) -> impl Iterator<Item = CreationEntryTypeConfig> + '_ {
|
||||
self.imp.iter()
|
||||
}
|
||||
|
||||
type InsertCallbackId = CreationEntryTypeConfigInsertCallbackId;
|
||||
|
||||
fn on_insert(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> CreationEntryTypeConfigInsertCallbackId {
|
||||
CreationEntryTypeConfigInsertCallbackId(self.imp.on_insert(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_insert(&self, callback: CreationEntryTypeConfigInsertCallbackId) {
|
||||
self.imp.remove_on_insert(callback.0)
|
||||
}
|
||||
|
||||
type DeleteCallbackId = CreationEntryTypeConfigDeleteCallbackId;
|
||||
|
||||
fn on_delete(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static,
|
||||
) -> CreationEntryTypeConfigDeleteCallbackId {
|
||||
CreationEntryTypeConfigDeleteCallbackId(self.imp.on_delete(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_delete(&self, callback: CreationEntryTypeConfigDeleteCallbackId) {
|
||||
self.imp.remove_on_delete(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct CreationEntryTypeConfigUpdateCallbackId(__sdk::CallbackId);
|
||||
|
||||
impl<'ctx> __sdk::TableWithPrimaryKey for CreationEntryTypeConfigTableHandle<'ctx> {
|
||||
type UpdateCallbackId = CreationEntryTypeConfigUpdateCallbackId;
|
||||
|
||||
fn on_update(
|
||||
&self,
|
||||
callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static,
|
||||
) -> CreationEntryTypeConfigUpdateCallbackId {
|
||||
CreationEntryTypeConfigUpdateCallbackId(self.imp.on_update(Box::new(callback)))
|
||||
}
|
||||
|
||||
fn remove_on_update(&self, callback: CreationEntryTypeConfigUpdateCallbackId) {
|
||||
self.imp.remove_on_update(callback.0)
|
||||
}
|
||||
}
|
||||
|
||||
/// Access to the `id` unique index on the table `creation_entry_type_config`,
|
||||
/// which allows point queries on the field of the same name
|
||||
/// via the [`CreationEntryTypeConfigIdUnique::find`] method.
|
||||
///
|
||||
/// Users are encouraged not to explicitly reference this type,
|
||||
/// but to directly chain method calls,
|
||||
/// like `ctx.db.creation_entry_type_config().id().find(...)`.
|
||||
pub struct CreationEntryTypeConfigIdUnique<'ctx> {
|
||||
imp: __sdk::UniqueConstraintHandle<CreationEntryTypeConfig, String>,
|
||||
phantom: std::marker::PhantomData<&'ctx super::RemoteTables>,
|
||||
}
|
||||
|
||||
impl<'ctx> CreationEntryTypeConfigTableHandle<'ctx> {
|
||||
/// Get a handle on the `id` unique index on the table `creation_entry_type_config`.
|
||||
pub fn id(&self) -> CreationEntryTypeConfigIdUnique<'ctx> {
|
||||
CreationEntryTypeConfigIdUnique {
|
||||
imp: self.imp.get_unique_constraint::<String>("id"),
|
||||
phantom: std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'ctx> CreationEntryTypeConfigIdUnique<'ctx> {
|
||||
/// Find the subscribed row whose `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<CreationEntryTypeConfig> {
|
||||
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::<CreationEntryTypeConfig>("creation_entry_type_config");
|
||||
_table.add_unique_constraint::<String>("id", |row| &row.id);
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub(super) fn parse_table_update(
|
||||
raw_updates: __ws::v2::TableUpdate,
|
||||
) -> __sdk::Result<__sdk::TableUpdate<CreationEntryTypeConfig>> {
|
||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||
__sdk::InternalError::failed_parse("TableUpdate<CreationEntryTypeConfig>", "TableUpdate")
|
||||
.with_cause(e)
|
||||
.into()
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
/// Extension trait for query builder access to the table `CreationEntryTypeConfig`.
|
||||
///
|
||||
/// Implemented for [`__sdk::QueryTableAccessor`].
|
||||
pub trait creation_entry_type_configQueryTableAccess {
|
||||
#[allow(non_snake_case)]
|
||||
/// Get a query builder for the table `CreationEntryTypeConfig`.
|
||||
fn creation_entry_type_config(&self) -> __sdk::__query_builder::Table<CreationEntryTypeConfig>;
|
||||
}
|
||||
|
||||
impl creation_entry_type_configQueryTableAccess for __sdk::QueryTableAccessor {
|
||||
fn creation_entry_type_config(&self) -> __sdk::__query_builder::Table<CreationEntryTypeConfig> {
|
||||
__sdk::__query_builder::Table::new("creation_entry_type_config")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
// 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 CreationEntryTypeConfig {
|
||||
pub id: String,
|
||||
pub title: String,
|
||||
pub subtitle: String,
|
||||
pub badge: String,
|
||||
pub image_src: String,
|
||||
pub visible: bool,
|
||||
pub open: bool,
|
||||
pub sort_order: i32,
|
||||
pub updated_at: __sdk::Timestamp,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for CreationEntryTypeConfig {
|
||||
type Module = super::RemoteModule;
|
||||
}
|
||||
|
||||
/// Column accessor struct for the table `CreationEntryTypeConfig`.
|
||||
///
|
||||
/// Provides typed access to columns for query building.
|
||||
pub struct CreationEntryTypeConfigCols {
|
||||
pub id: __sdk::__query_builder::Col<CreationEntryTypeConfig, String>,
|
||||
pub title: __sdk::__query_builder::Col<CreationEntryTypeConfig, String>,
|
||||
pub subtitle: __sdk::__query_builder::Col<CreationEntryTypeConfig, String>,
|
||||
pub badge: __sdk::__query_builder::Col<CreationEntryTypeConfig, String>,
|
||||
pub image_src: __sdk::__query_builder::Col<CreationEntryTypeConfig, String>,
|
||||
pub visible: __sdk::__query_builder::Col<CreationEntryTypeConfig, bool>,
|
||||
pub open: __sdk::__query_builder::Col<CreationEntryTypeConfig, bool>,
|
||||
pub sort_order: __sdk::__query_builder::Col<CreationEntryTypeConfig, i32>,
|
||||
pub updated_at: __sdk::__query_builder::Col<CreationEntryTypeConfig, __sdk::Timestamp>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasCols for CreationEntryTypeConfig {
|
||||
type Cols = CreationEntryTypeConfigCols;
|
||||
fn cols(table_name: &'static str) -> Self::Cols {
|
||||
CreationEntryTypeConfigCols {
|
||||
id: __sdk::__query_builder::Col::new(table_name, "id"),
|
||||
title: __sdk::__query_builder::Col::new(table_name, "title"),
|
||||
subtitle: __sdk::__query_builder::Col::new(table_name, "subtitle"),
|
||||
badge: __sdk::__query_builder::Col::new(table_name, "badge"),
|
||||
image_src: __sdk::__query_builder::Col::new(table_name, "image_src"),
|
||||
visible: __sdk::__query_builder::Col::new(table_name, "visible"),
|
||||
open: __sdk::__query_builder::Col::new(table_name, "open"),
|
||||
sort_order: __sdk::__query_builder::Col::new(table_name, "sort_order"),
|
||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Indexed column accessor struct for the table `CreationEntryTypeConfig`.
|
||||
///
|
||||
/// Provides typed access to indexed columns for query building.
|
||||
pub struct CreationEntryTypeConfigIxCols {
|
||||
pub id: __sdk::__query_builder::IxCol<CreationEntryTypeConfig, String>,
|
||||
pub sort_order: __sdk::__query_builder::IxCol<CreationEntryTypeConfig, i32>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasIxCols for CreationEntryTypeConfig {
|
||||
type IxCols = CreationEntryTypeConfigIxCols;
|
||||
fn ix_cols(table_name: &'static str) -> Self::IxCols {
|
||||
CreationEntryTypeConfigIxCols {
|
||||
id: __sdk::__query_builder::IxCol::new(table_name, "id"),
|
||||
sort_order: __sdk::__query_builder::IxCol::new(table_name, "sort_order"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::CanBeLookupTable for CreationEntryTypeConfig {}
|
||||
@@ -25,6 +25,7 @@ pub trait get_creation_entry_config {
|
||||
|
||||
fn get_creation_entry_config_then(
|
||||
&self,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<CreationEntryConfigProcedureResult, __sdk::InternalError>,
|
||||
@@ -36,6 +37,7 @@ pub trait get_creation_entry_config {
|
||||
impl get_creation_entry_config for super::RemoteProcedures {
|
||||
fn get_creation_entry_config_then(
|
||||
&self,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<CreationEntryConfigProcedureResult, __sdk::InternalError>,
|
||||
|
||||
@@ -188,6 +188,16 @@ pub mod create_profile_recharge_order_and_return_procedure;
|
||||
pub mod create_puzzle_agent_session_procedure;
|
||||
pub mod create_square_hole_agent_session_procedure;
|
||||
pub mod create_visual_novel_agent_session_procedure;
|
||||
pub mod creation_entry_config_procedure_result_type;
|
||||
pub mod creation_entry_config_snapshot_type;
|
||||
pub mod creation_entry_config_table;
|
||||
pub mod creation_entry_config_type;
|
||||
pub mod creation_entry_start_card_snapshot_type;
|
||||
pub mod creation_entry_type_admin_upsert_input_type;
|
||||
pub mod creation_entry_type_config_table;
|
||||
pub mod creation_entry_type_config_type;
|
||||
pub mod creation_entry_type_modal_snapshot_type;
|
||||
pub mod creation_entry_type_snapshot_type;
|
||||
pub mod custom_world_agent_action_execute_input_type;
|
||||
pub mod custom_world_agent_action_execute_result_type;
|
||||
pub mod custom_world_agent_card_detail_get_input_type;
|
||||
@@ -249,12 +259,6 @@ pub mod custom_world_theme_mode_type;
|
||||
pub mod custom_world_work_summary_snapshot_type;
|
||||
pub mod custom_world_works_list_input_type;
|
||||
pub mod custom_world_works_list_result_type;
|
||||
pub mod creation_entry_config_procedure_result_type;
|
||||
pub mod creation_entry_config_snapshot_type;
|
||||
pub mod creation_entry_start_card_snapshot_type;
|
||||
pub mod creation_entry_type_admin_upsert_input_type;
|
||||
pub mod creation_entry_type_config_snapshot_type;
|
||||
pub mod creation_entry_type_modal_snapshot_type;
|
||||
pub mod database_migration_authorize_operator_input_type;
|
||||
pub mod database_migration_export_input_type;
|
||||
pub mod database_migration_import_chunk_input_type;
|
||||
@@ -296,11 +300,11 @@ pub mod finish_match_3_d_time_up_procedure;
|
||||
pub mod finish_square_hole_time_up_procedure;
|
||||
pub mod generate_big_fish_asset_procedure;
|
||||
pub mod get_auth_store_snapshot_procedure;
|
||||
pub mod get_creation_entry_config_procedure;
|
||||
pub mod get_battle_state_procedure;
|
||||
pub mod get_big_fish_run_procedure;
|
||||
pub mod get_big_fish_session_procedure;
|
||||
pub mod get_chapter_progression_procedure;
|
||||
pub mod get_creation_entry_config_procedure;
|
||||
pub mod get_custom_world_agent_card_detail_procedure;
|
||||
pub mod get_custom_world_agent_operation_procedure;
|
||||
pub mod get_custom_world_agent_session_procedure;
|
||||
@@ -759,8 +763,8 @@ pub mod update_square_hole_work_procedure;
|
||||
pub mod update_visual_novel_work_procedure;
|
||||
pub mod upsert_auth_store_snapshot_procedure;
|
||||
pub mod upsert_chapter_progression_and_return_procedure;
|
||||
pub mod upsert_creation_entry_type_config_procedure;
|
||||
pub mod upsert_chapter_progression_reducer;
|
||||
pub mod upsert_creation_entry_type_config_procedure;
|
||||
pub mod upsert_custom_world_agent_operation_progress_procedure;
|
||||
pub mod upsert_custom_world_profile_and_return_procedure;
|
||||
pub mod upsert_custom_world_profile_reducer;
|
||||
@@ -992,6 +996,16 @@ pub use create_profile_recharge_order_and_return_procedure::create_profile_recha
|
||||
pub use create_puzzle_agent_session_procedure::create_puzzle_agent_session;
|
||||
pub use create_square_hole_agent_session_procedure::create_square_hole_agent_session;
|
||||
pub use create_visual_novel_agent_session_procedure::create_visual_novel_agent_session;
|
||||
pub use creation_entry_config_procedure_result_type::CreationEntryConfigProcedureResult;
|
||||
pub use creation_entry_config_snapshot_type::CreationEntryConfigSnapshot;
|
||||
pub use creation_entry_config_table::*;
|
||||
pub use creation_entry_config_type::CreationEntryConfig;
|
||||
pub use creation_entry_start_card_snapshot_type::CreationEntryStartCardSnapshot;
|
||||
pub use creation_entry_type_admin_upsert_input_type::CreationEntryTypeAdminUpsertInput;
|
||||
pub use creation_entry_type_config_table::*;
|
||||
pub use creation_entry_type_config_type::CreationEntryTypeConfig;
|
||||
pub use creation_entry_type_modal_snapshot_type::CreationEntryTypeModalSnapshot;
|
||||
pub use creation_entry_type_snapshot_type::CreationEntryTypeSnapshot;
|
||||
pub use custom_world_agent_action_execute_input_type::CustomWorldAgentActionExecuteInput;
|
||||
pub use custom_world_agent_action_execute_result_type::CustomWorldAgentActionExecuteResult;
|
||||
pub use custom_world_agent_card_detail_get_input_type::CustomWorldAgentCardDetailGetInput;
|
||||
@@ -1053,12 +1067,6 @@ pub use custom_world_theme_mode_type::CustomWorldThemeMode;
|
||||
pub use custom_world_work_summary_snapshot_type::CustomWorldWorkSummarySnapshot;
|
||||
pub use custom_world_works_list_input_type::CustomWorldWorksListInput;
|
||||
pub use custom_world_works_list_result_type::CustomWorldWorksListResult;
|
||||
pub use creation_entry_config_procedure_result_type::CreationEntryConfigProcedureResult;
|
||||
pub use creation_entry_config_snapshot_type::CreationEntryConfigSnapshot;
|
||||
pub use creation_entry_start_card_snapshot_type::CreationEntryStartCardSnapshot;
|
||||
pub use creation_entry_type_admin_upsert_input_type::CreationEntryTypeAdminUpsertInput;
|
||||
pub use creation_entry_type_config_snapshot_type::CreationEntryTypeSnapshot;
|
||||
pub use creation_entry_type_modal_snapshot_type::CreationEntryTypeModalSnapshot;
|
||||
pub use database_migration_authorize_operator_input_type::DatabaseMigrationAuthorizeOperatorInput;
|
||||
pub use database_migration_export_input_type::DatabaseMigrationExportInput;
|
||||
pub use database_migration_import_chunk_input_type::DatabaseMigrationImportChunkInput;
|
||||
@@ -1100,11 +1108,11 @@ pub use finish_match_3_d_time_up_procedure::finish_match_3_d_time_up;
|
||||
pub use finish_square_hole_time_up_procedure::finish_square_hole_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_creation_entry_config_procedure::get_creation_entry_config;
|
||||
pub use get_battle_state_procedure::get_battle_state;
|
||||
pub use get_big_fish_run_procedure::get_big_fish_run;
|
||||
pub use get_big_fish_session_procedure::get_big_fish_session;
|
||||
pub use get_chapter_progression_procedure::get_chapter_progression;
|
||||
pub use get_creation_entry_config_procedure::get_creation_entry_config;
|
||||
pub use get_custom_world_agent_card_detail_procedure::get_custom_world_agent_card_detail;
|
||||
pub use get_custom_world_agent_operation_procedure::get_custom_world_agent_operation;
|
||||
pub use get_custom_world_agent_session_procedure::get_custom_world_agent_session;
|
||||
@@ -1563,8 +1571,8 @@ pub use update_square_hole_work_procedure::update_square_hole_work;
|
||||
pub use update_visual_novel_work_procedure::update_visual_novel_work;
|
||||
pub use upsert_auth_store_snapshot_procedure::upsert_auth_store_snapshot;
|
||||
pub use upsert_chapter_progression_and_return_procedure::upsert_chapter_progression_and_return;
|
||||
pub use upsert_creation_entry_type_config_procedure::upsert_creation_entry_type_config;
|
||||
pub use upsert_chapter_progression_reducer::upsert_chapter_progression;
|
||||
pub use upsert_creation_entry_type_config_procedure::upsert_creation_entry_type_config;
|
||||
pub use upsert_custom_world_agent_operation_progress_procedure::upsert_custom_world_agent_operation_progress;
|
||||
pub use upsert_custom_world_profile_and_return_procedure::upsert_custom_world_profile_and_return;
|
||||
pub use upsert_custom_world_profile_reducer::upsert_custom_world_profile;
|
||||
@@ -1904,6 +1912,8 @@ pub struct DbUpdate {
|
||||
big_fish_event: __sdk::TableUpdate<BigFishEvent>,
|
||||
big_fish_runtime_run: __sdk::TableUpdate<BigFishRuntimeRun>,
|
||||
chapter_progression: __sdk::TableUpdate<ChapterProgression>,
|
||||
creation_entry_config: __sdk::TableUpdate<CreationEntryConfig>,
|
||||
creation_entry_type_config: __sdk::TableUpdate<CreationEntryTypeConfig>,
|
||||
custom_world_agent_message: __sdk::TableUpdate<CustomWorldAgentMessage>,
|
||||
custom_world_agent_operation: __sdk::TableUpdate<CustomWorldAgentOperation>,
|
||||
custom_world_agent_session: __sdk::TableUpdate<CustomWorldAgentSession>,
|
||||
@@ -2026,6 +2036,12 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate {
|
||||
"chapter_progression" => db_update
|
||||
.chapter_progression
|
||||
.append(chapter_progression_table::parse_table_update(table_update)?),
|
||||
"creation_entry_config" => db_update.creation_entry_config.append(
|
||||
creation_entry_config_table::parse_table_update(table_update)?,
|
||||
),
|
||||
"creation_entry_type_config" => db_update.creation_entry_type_config.append(
|
||||
creation_entry_type_config_table::parse_table_update(table_update)?,
|
||||
),
|
||||
"custom_world_agent_message" => db_update.custom_world_agent_message.append(
|
||||
custom_world_agent_message_table::parse_table_update(table_update)?,
|
||||
),
|
||||
@@ -2311,6 +2327,18 @@ impl __sdk::DbUpdate for DbUpdate {
|
||||
&self.chapter_progression,
|
||||
)
|
||||
.with_updates_by_pk(|row| &row.chapter_progression_id);
|
||||
diff.creation_entry_config = cache
|
||||
.apply_diff_to_table::<CreationEntryConfig>(
|
||||
"creation_entry_config",
|
||||
&self.creation_entry_config,
|
||||
)
|
||||
.with_updates_by_pk(|row| &row.config_id);
|
||||
diff.creation_entry_type_config = cache
|
||||
.apply_diff_to_table::<CreationEntryTypeConfig>(
|
||||
"creation_entry_type_config",
|
||||
&self.creation_entry_type_config,
|
||||
)
|
||||
.with_updates_by_pk(|row| &row.id);
|
||||
diff.custom_world_agent_message = cache
|
||||
.apply_diff_to_table::<CustomWorldAgentMessage>(
|
||||
"custom_world_agent_message",
|
||||
@@ -2683,6 +2711,12 @@ impl __sdk::DbUpdate for DbUpdate {
|
||||
"chapter_progression" => db_update
|
||||
.chapter_progression
|
||||
.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?),
|
||||
"creation_entry_config" => db_update
|
||||
.creation_entry_config
|
||||
.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?),
|
||||
"creation_entry_type_config" => db_update
|
||||
.creation_entry_type_config
|
||||
.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?),
|
||||
"custom_world_agent_message" => db_update
|
||||
.custom_world_agent_message
|
||||
.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?),
|
||||
@@ -2930,6 +2964,12 @@ impl __sdk::DbUpdate for DbUpdate {
|
||||
"chapter_progression" => db_update
|
||||
.chapter_progression
|
||||
.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?),
|
||||
"creation_entry_config" => db_update
|
||||
.creation_entry_config
|
||||
.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?),
|
||||
"creation_entry_type_config" => db_update
|
||||
.creation_entry_type_config
|
||||
.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?),
|
||||
"custom_world_agent_message" => db_update
|
||||
.custom_world_agent_message
|
||||
.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?),
|
||||
@@ -3143,6 +3183,8 @@ pub struct AppliedDiff<'r> {
|
||||
big_fish_event: __sdk::TableAppliedDiff<'r, BigFishEvent>,
|
||||
big_fish_runtime_run: __sdk::TableAppliedDiff<'r, BigFishRuntimeRun>,
|
||||
chapter_progression: __sdk::TableAppliedDiff<'r, ChapterProgression>,
|
||||
creation_entry_config: __sdk::TableAppliedDiff<'r, CreationEntryConfig>,
|
||||
creation_entry_type_config: __sdk::TableAppliedDiff<'r, CreationEntryTypeConfig>,
|
||||
custom_world_agent_message: __sdk::TableAppliedDiff<'r, CustomWorldAgentMessage>,
|
||||
custom_world_agent_operation: __sdk::TableAppliedDiff<'r, CustomWorldAgentOperation>,
|
||||
custom_world_agent_session: __sdk::TableAppliedDiff<'r, CustomWorldAgentSession>,
|
||||
@@ -3299,6 +3341,16 @@ impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> {
|
||||
&self.chapter_progression,
|
||||
event,
|
||||
);
|
||||
callbacks.invoke_table_row_callbacks::<CreationEntryConfig>(
|
||||
"creation_entry_config",
|
||||
&self.creation_entry_config,
|
||||
event,
|
||||
);
|
||||
callbacks.invoke_table_row_callbacks::<CreationEntryTypeConfig>(
|
||||
"creation_entry_type_config",
|
||||
&self.creation_entry_type_config,
|
||||
event,
|
||||
);
|
||||
callbacks.invoke_table_row_callbacks::<CustomWorldAgentMessage>(
|
||||
"custom_world_agent_message",
|
||||
&self.custom_world_agent_message,
|
||||
@@ -4265,6 +4317,8 @@ impl __sdk::SpacetimeModule for RemoteModule {
|
||||
big_fish_event_table::register_table(client_cache);
|
||||
big_fish_runtime_run_table::register_table(client_cache);
|
||||
chapter_progression_table::register_table(client_cache);
|
||||
creation_entry_config_table::register_table(client_cache);
|
||||
creation_entry_type_config_table::register_table(client_cache);
|
||||
custom_world_agent_message_table::register_table(client_cache);
|
||||
custom_world_agent_operation_table::register_table(client_cache);
|
||||
custom_world_agent_session_table::register_table(client_cache);
|
||||
@@ -4345,6 +4399,8 @@ impl __sdk::SpacetimeModule for RemoteModule {
|
||||
"big_fish_event",
|
||||
"big_fish_runtime_run",
|
||||
"chapter_progression",
|
||||
"creation_entry_config",
|
||||
"creation_entry_type_config",
|
||||
"custom_world_agent_message",
|
||||
"custom_world_agent_operation",
|
||||
"custom_world_agent_session",
|
||||
|
||||
@@ -14,7 +14,6 @@ pub struct ProfileInviteCode {
|
||||
pub updated_at: __sdk::Timestamp,
|
||||
pub starts_at: Option<__sdk::Timestamp>,
|
||||
pub expires_at: Option<__sdk::Timestamp>,
|
||||
pub granted_user_tags: Vec<String>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for ProfileInviteCode {
|
||||
@@ -32,7 +31,6 @@ pub struct ProfileInviteCodeCols {
|
||||
pub updated_at: __sdk::__query_builder::Col<ProfileInviteCode, __sdk::Timestamp>,
|
||||
pub starts_at: __sdk::__query_builder::Col<ProfileInviteCode, Option<__sdk::Timestamp>>,
|
||||
pub expires_at: __sdk::__query_builder::Col<ProfileInviteCode, Option<__sdk::Timestamp>>,
|
||||
pub granted_user_tags: __sdk::__query_builder::Col<ProfileInviteCode, Vec<String>>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasCols for ProfileInviteCode {
|
||||
@@ -46,7 +44,6 @@ impl __sdk::__query_builder::HasCols for ProfileInviteCode {
|
||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||
starts_at: __sdk::__query_builder::Col::new(table_name, "starts_at"),
|
||||
expires_at: __sdk::__query_builder::Col::new(table_name, "expires_at"),
|
||||
granted_user_tags: __sdk::__query_builder::Col::new(table_name, "granted_user_tags"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@ pub struct RuntimeProfileInviteCodeAdminUpsertInput {
|
||||
pub admin_user_id: String,
|
||||
pub invite_code: String,
|
||||
pub metadata_json: String,
|
||||
pub granted_user_tags: Vec<String>,
|
||||
pub starts_at_micros: Option<i64>,
|
||||
pub expires_at_micros: Option<i64>,
|
||||
pub updated_at_micros: i64,
|
||||
|
||||
@@ -10,7 +10,6 @@ pub struct RuntimeProfileInviteCodeSnapshot {
|
||||
pub user_id: String,
|
||||
pub invite_code: String,
|
||||
pub metadata_json: String,
|
||||
pub granted_user_tags: Vec<String>,
|
||||
pub starts_at_micros: Option<i64>,
|
||||
pub expires_at_micros: Option<i64>,
|
||||
pub created_at_micros: i64,
|
||||
|
||||
@@ -29,6 +29,7 @@ pub trait upsert_creation_entry_type_config {
|
||||
fn upsert_creation_entry_type_config_then(
|
||||
&self,
|
||||
input: CreationEntryTypeAdminUpsertInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<CreationEntryConfigProcedureResult, __sdk::InternalError>,
|
||||
@@ -41,6 +42,7 @@ impl upsert_creation_entry_type_config for super::RemoteProcedures {
|
||||
fn upsert_creation_entry_type_config_then(
|
||||
&self,
|
||||
input: CreationEntryTypeAdminUpsertInput,
|
||||
|
||||
__callback: impl FnOnce(
|
||||
&super::ProcedureEventContext,
|
||||
Result<CreationEntryConfigProcedureResult, __sdk::InternalError>,
|
||||
|
||||
@@ -20,7 +20,7 @@ pub struct UserAccount {
|
||||
pub password_hash: String,
|
||||
pub password_login_enabled: bool,
|
||||
pub token_version: u64,
|
||||
pub user_tags: Vec<String>,
|
||||
pub user_tags: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
impl __sdk::InModule for UserAccount {
|
||||
@@ -44,7 +44,7 @@ pub struct UserAccountCols {
|
||||
pub password_hash: __sdk::__query_builder::Col<UserAccount, String>,
|
||||
pub password_login_enabled: __sdk::__query_builder::Col<UserAccount, bool>,
|
||||
pub token_version: __sdk::__query_builder::Col<UserAccount, u64>,
|
||||
pub user_tags: __sdk::__query_builder::Col<UserAccount, Vec<String>>,
|
||||
pub user_tags: __sdk::__query_builder::Col<UserAccount, Option<Vec<String>>>,
|
||||
}
|
||||
|
||||
impl __sdk::__query_builder::HasCols for UserAccount {
|
||||
|
||||
@@ -23,15 +23,14 @@ impl SpacetimeClient {
|
||||
) -> Result<CreationEntryConfigRecord, SpacetimeClientError> {
|
||||
let procedure_input: CreationEntryTypeAdminUpsertInput = input.into();
|
||||
self.call_after_connect(move |connection, sender| {
|
||||
connection.procedures().upsert_creation_entry_type_config_then(
|
||||
procedure_input,
|
||||
move |_, result| {
|
||||
connection
|
||||
.procedures()
|
||||
.upsert_creation_entry_type_config_then(procedure_input, move |_, result| {
|
||||
let mapped = result
|
||||
.map_err(SpacetimeClientError::from_sdk_error)
|
||||
.and_then(map_creation_entry_config_procedure_result);
|
||||
send_once(&sender, mapped);
|
||||
},
|
||||
);
|
||||
});
|
||||
})
|
||||
.await
|
||||
}
|
||||
@@ -687,7 +686,6 @@ impl SpacetimeClient {
|
||||
admin_user_id: String,
|
||||
invite_code: String,
|
||||
metadata_json: String,
|
||||
granted_user_tags: Vec<String>,
|
||||
starts_at_micros: Option<i64>,
|
||||
expires_at_micros: Option<i64>,
|
||||
updated_at_micros: i64,
|
||||
@@ -696,7 +694,6 @@ impl SpacetimeClient {
|
||||
admin_user_id,
|
||||
invite_code,
|
||||
metadata_json,
|
||||
granted_user_tags,
|
||||
starts_at_micros,
|
||||
expires_at_micros,
|
||||
updated_at_micros,
|
||||
|
||||
Reference in New Issue
Block a user