spacetimedb 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/react/index.mjs.map +1 -1
- package/dist/index.browser.mjs +18 -4
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.cjs +18 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +18 -16
- package/dist/index.mjs.map +1 -1
- package/dist/lib/algebraic_type.d.ts +115 -0
- package/dist/lib/algebraic_type.d.ts.map +1 -0
- package/dist/lib/algebraic_value.d.ts +6 -0
- package/dist/lib/algebraic_value.d.ts.map +1 -0
- package/dist/lib/autogen/algebraic_type_type.d.ts +64 -0
- package/dist/lib/autogen/algebraic_type_type.d.ts.map +1 -0
- package/dist/lib/autogen/algebraic_type_variants.d.ts +68 -0
- package/dist/lib/autogen/algebraic_type_variants.d.ts.map +1 -0
- package/dist/lib/autogen/index_type_type.d.ts +16 -0
- package/dist/lib/autogen/index_type_type.d.ts.map +1 -0
- package/dist/lib/autogen/index_type_variants.d.ts +7 -0
- package/dist/lib/autogen/index_type_variants.d.ts.map +1 -0
- package/dist/lib/autogen/lifecycle_type.d.ts +19 -0
- package/dist/lib/autogen/lifecycle_type.d.ts.map +1 -0
- package/dist/lib/autogen/lifecycle_variants.d.ts +10 -0
- package/dist/lib/autogen/lifecycle_variants.d.ts.map +1 -0
- package/dist/lib/autogen/misc_module_export_type.d.ts +12 -0
- package/dist/lib/autogen/misc_module_export_type.d.ts.map +1 -0
- package/dist/lib/autogen/misc_module_export_variants.d.ts +6 -0
- package/dist/lib/autogen/misc_module_export_variants.d.ts.map +1 -0
- package/dist/lib/autogen/product_type_element_type.d.ts +20 -0
- package/dist/lib/autogen/product_type_element_type.d.ts.map +1 -0
- package/dist/lib/autogen/product_type_type.d.ts +19 -0
- package/dist/lib/autogen/product_type_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_column_def_v_8_type.d.ts +20 -0
- package/dist/lib/autogen/raw_column_def_v_8_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_column_default_value_v_9_type.d.ts +20 -0
- package/dist/lib/autogen/raw_column_default_value_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_constraint_data_v_9_type.d.ts +12 -0
- package/dist/lib/autogen/raw_constraint_data_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_constraint_data_v_9_variants.d.ts +6 -0
- package/dist/lib/autogen/raw_constraint_data_v_9_variants.d.ts.map +1 -0
- package/dist/lib/autogen/raw_constraint_def_v_8_type.d.ts +20 -0
- package/dist/lib/autogen/raw_constraint_def_v_8_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_constraint_def_v_9_type.d.ts +20 -0
- package/dist/lib/autogen/raw_constraint_def_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_index_algorithm_type.d.ts +13 -0
- package/dist/lib/autogen/raw_index_algorithm_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_index_algorithm_variants.d.ts +13 -0
- package/dist/lib/autogen/raw_index_algorithm_variants.d.ts.map +1 -0
- package/dist/lib/autogen/raw_index_def_v_8_type.d.ts +22 -0
- package/dist/lib/autogen/raw_index_def_v_8_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_index_def_v_9_type.d.ts +21 -0
- package/dist/lib/autogen/raw_index_def_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_misc_module_export_v_9_type.d.ts +12 -0
- package/dist/lib/autogen/raw_misc_module_export_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_misc_module_export_v_9_variants.d.ts +6 -0
- package/dist/lib/autogen/raw_misc_module_export_v_9_variants.d.ts.map +1 -0
- package/dist/lib/autogen/raw_module_def_type.d.ts +14 -0
- package/dist/lib/autogen/raw_module_def_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_module_def_v_8_type.d.ts +25 -0
- package/dist/lib/autogen/raw_module_def_v_8_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_module_def_v_9_type.d.ts +29 -0
- package/dist/lib/autogen/raw_module_def_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_module_def_variants.d.ts +11 -0
- package/dist/lib/autogen/raw_module_def_variants.d.ts.map +1 -0
- package/dist/lib/autogen/raw_reducer_def_v_9_type.d.ts +22 -0
- package/dist/lib/autogen/raw_reducer_def_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_row_level_security_def_v_9_type.d.ts +18 -0
- package/dist/lib/autogen/raw_row_level_security_def_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_schedule_def_v_9_type.d.ts +20 -0
- package/dist/lib/autogen/raw_schedule_def_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_scoped_type_name_v_9_type.d.ts +19 -0
- package/dist/lib/autogen/raw_scoped_type_name_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_sequence_def_v_8_type.d.ts +24 -0
- package/dist/lib/autogen/raw_sequence_def_v_8_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_sequence_def_v_9_type.d.ts +23 -0
- package/dist/lib/autogen/raw_sequence_def_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_table_def_v_8_type.d.ts +29 -0
- package/dist/lib/autogen/raw_table_def_v_8_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_table_def_v_9_type.d.ts +32 -0
- package/dist/lib/autogen/raw_table_def_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_type_def_v_9_type.d.ts +21 -0
- package/dist/lib/autogen/raw_type_def_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/raw_unique_constraint_data_v_9_type.d.ts +18 -0
- package/dist/lib/autogen/raw_unique_constraint_data_v_9_type.d.ts.map +1 -0
- package/dist/lib/autogen/reducer_def_type.d.ts +20 -0
- package/dist/lib/autogen/reducer_def_type.d.ts.map +1 -0
- package/dist/lib/autogen/sum_type_type.d.ts +19 -0
- package/dist/lib/autogen/sum_type_type.d.ts.map +1 -0
- package/dist/lib/autogen/sum_type_variant_type.d.ts +20 -0
- package/dist/lib/autogen/sum_type_variant_type.d.ts.map +1 -0
- package/dist/lib/autogen/table_access_type.d.ts +16 -0
- package/dist/lib/autogen/table_access_type.d.ts.map +1 -0
- package/dist/lib/autogen/table_access_variants.d.ts +7 -0
- package/dist/lib/autogen/table_access_variants.d.ts.map +1 -0
- package/dist/lib/autogen/table_desc_type.d.ts +20 -0
- package/dist/lib/autogen/table_desc_type.d.ts.map +1 -0
- package/dist/lib/autogen/table_type_type.d.ts +16 -0
- package/dist/lib/autogen/table_type_type.d.ts.map +1 -0
- package/dist/lib/autogen/table_type_variants.d.ts +7 -0
- package/dist/lib/autogen/table_type_variants.d.ts.map +1 -0
- package/dist/lib/autogen/type_alias_type.d.ts +19 -0
- package/dist/lib/autogen/type_alias_type.d.ts.map +1 -0
- package/dist/lib/autogen/typespace_type.d.ts +19 -0
- package/dist/lib/autogen/typespace_type.d.ts.map +1 -0
- package/dist/lib/binary_reader.d.ts +25 -0
- package/dist/lib/binary_reader.d.ts.map +1 -0
- package/dist/lib/binary_writer.d.ts +25 -0
- package/dist/lib/binary_writer.d.ts.map +1 -0
- package/dist/lib/connection_id.d.ts +37 -0
- package/dist/lib/connection_id.d.ts.map +1 -0
- package/dist/lib/identity.d.ts +39 -0
- package/dist/lib/identity.d.ts.map +1 -0
- package/dist/lib/schedule_at.d.ts +23 -0
- package/dist/lib/schedule_at.d.ts.map +1 -0
- package/dist/lib/time_duration.d.ts +18 -0
- package/dist/lib/time_duration.d.ts.map +1 -0
- package/dist/lib/timestamp.d.ts +35 -0
- package/dist/lib/timestamp.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +13 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/min/index.browser.mjs +1 -1
- package/dist/min/index.browser.mjs.map +1 -1
- package/dist/min/react/index.mjs.map +1 -1
- package/dist/min/sdk/index.browser.mjs +1 -1
- package/dist/min/sdk/index.browser.mjs.map +1 -1
- package/dist/react/SpacetimeDBProvider.d.ts +8 -0
- package/dist/react/SpacetimeDBProvider.d.ts.map +1 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.ts +4 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.mjs.map +1 -1
- package/dist/react/useSpacetimeDB.d.ts +5 -0
- package/dist/react/useSpacetimeDB.d.ts.map +1 -0
- package/dist/react/useTable.d.ts +120 -0
- package/dist/react/useTable.d.ts.map +1 -0
- package/dist/sdk/client_api/bsatn_row_list_type.d.ts +20 -0
- package/dist/sdk/client_api/bsatn_row_list_type.d.ts.map +1 -0
- package/dist/sdk/client_api/call_reducer_type.d.ts +21 -0
- package/dist/sdk/client_api/call_reducer_type.d.ts.map +1 -0
- package/dist/sdk/client_api/client_message_type.d.ts +24 -0
- package/dist/sdk/client_api/client_message_type.d.ts.map +1 -0
- package/dist/sdk/client_api/client_message_variants.d.ts +36 -0
- package/dist/sdk/client_api/client_message_variants.d.ts.map +1 -0
- package/dist/sdk/client_api/compressable_query_update_type.d.ts +14 -0
- package/dist/sdk/client_api/compressable_query_update_type.d.ts.map +1 -0
- package/dist/sdk/client_api/compressable_query_update_variants.d.ts +14 -0
- package/dist/sdk/client_api/compressable_query_update_variants.d.ts.map +1 -0
- package/dist/sdk/client_api/database_update_type.d.ts +19 -0
- package/dist/sdk/client_api/database_update_type.d.ts.map +1 -0
- package/dist/sdk/client_api/energy_quanta_type.d.ts +18 -0
- package/dist/sdk/client_api/energy_quanta_type.d.ts.map +1 -0
- package/dist/sdk/client_api/identity_token_type.d.ts +20 -0
- package/dist/sdk/client_api/identity_token_type.d.ts.map +1 -0
- package/dist/sdk/client_api/index.d.ts +86 -0
- package/dist/sdk/client_api/index.d.ts.map +1 -0
- package/dist/sdk/client_api/initial_subscription_type.d.ts +21 -0
- package/dist/sdk/client_api/initial_subscription_type.d.ts.map +1 -0
- package/dist/sdk/client_api/one_off_query_response_type.d.ts +22 -0
- package/dist/sdk/client_api/one_off_query_response_type.d.ts.map +1 -0
- package/dist/sdk/client_api/one_off_query_type.d.ts +19 -0
- package/dist/sdk/client_api/one_off_query_type.d.ts.map +1 -0
- package/dist/sdk/client_api/one_off_table_type.d.ts +20 -0
- package/dist/sdk/client_api/one_off_table_type.d.ts.map +1 -0
- package/dist/sdk/client_api/query_id_type.d.ts +18 -0
- package/dist/sdk/client_api/query_id_type.d.ts.map +1 -0
- package/dist/sdk/client_api/query_update_type.d.ts +20 -0
- package/dist/sdk/client_api/query_update_type.d.ts.map +1 -0
- package/dist/sdk/client_api/reducer_call_info_type.d.ts +21 -0
- package/dist/sdk/client_api/reducer_call_info_type.d.ts.map +1 -0
- package/dist/sdk/client_api/row_size_hint_type.d.ts +12 -0
- package/dist/sdk/client_api/row_size_hint_type.d.ts.map +1 -0
- package/dist/sdk/client_api/row_size_hint_variants.d.ts +9 -0
- package/dist/sdk/client_api/row_size_hint_variants.d.ts.map +1 -0
- package/dist/sdk/client_api/server_message_type.d.ts +30 -0
- package/dist/sdk/client_api/server_message_type.d.ts.map +1 -0
- package/dist/sdk/client_api/server_message_variants.d.ts +51 -0
- package/dist/sdk/client_api/server_message_variants.d.ts.map +1 -0
- package/dist/sdk/client_api/subscribe_applied_type.d.ts +23 -0
- package/dist/sdk/client_api/subscribe_applied_type.d.ts.map +1 -0
- package/dist/sdk/client_api/subscribe_multi_applied_type.d.ts +23 -0
- package/dist/sdk/client_api/subscribe_multi_applied_type.d.ts.map +1 -0
- package/dist/sdk/client_api/subscribe_multi_type.d.ts +21 -0
- package/dist/sdk/client_api/subscribe_multi_type.d.ts.map +1 -0
- package/dist/sdk/client_api/subscribe_rows_type.d.ts +21 -0
- package/dist/sdk/client_api/subscribe_rows_type.d.ts.map +1 -0
- package/dist/sdk/client_api/subscribe_single_type.d.ts +21 -0
- package/dist/sdk/client_api/subscribe_single_type.d.ts.map +1 -0
- package/dist/sdk/client_api/subscribe_type.d.ts +19 -0
- package/dist/sdk/client_api/subscribe_type.d.ts.map +1 -0
- package/dist/sdk/client_api/subscription_error_type.d.ts +22 -0
- package/dist/sdk/client_api/subscription_error_type.d.ts.map +1 -0
- package/dist/sdk/client_api/table_update_type.d.ts +22 -0
- package/dist/sdk/client_api/table_update_type.d.ts.map +1 -0
- package/dist/sdk/client_api/transaction_update_light_type.d.ts +20 -0
- package/dist/sdk/client_api/transaction_update_light_type.d.ts.map +1 -0
- package/dist/sdk/client_api/transaction_update_type.d.ts +27 -0
- package/dist/sdk/client_api/transaction_update_type.d.ts.map +1 -0
- package/dist/sdk/client_api/unsubscribe_applied_type.d.ts +23 -0
- package/dist/sdk/client_api/unsubscribe_applied_type.d.ts.map +1 -0
- package/dist/sdk/client_api/unsubscribe_multi_applied_type.d.ts +23 -0
- package/dist/sdk/client_api/unsubscribe_multi_applied_type.d.ts.map +1 -0
- package/dist/sdk/client_api/unsubscribe_multi_type.d.ts +20 -0
- package/dist/sdk/client_api/unsubscribe_multi_type.d.ts.map +1 -0
- package/dist/sdk/client_api/unsubscribe_type.d.ts +20 -0
- package/dist/sdk/client_api/unsubscribe_type.d.ts.map +1 -0
- package/dist/sdk/client_api/update_status_type.d.ts +16 -0
- package/dist/sdk/client_api/update_status_type.d.ts.map +1 -0
- package/dist/sdk/client_api/update_status_variants.d.ts +13 -0
- package/dist/sdk/client_api/update_status_variants.d.ts.map +1 -0
- package/dist/sdk/client_cache.d.ts +17 -0
- package/dist/sdk/client_cache.d.ts.map +1 -0
- package/dist/sdk/db_connection_builder.d.ts +145 -0
- package/dist/sdk/db_connection_builder.d.ts.map +1 -0
- package/dist/sdk/db_connection_impl.d.ts +102 -0
- package/dist/sdk/db_connection_impl.d.ts.map +1 -0
- package/dist/sdk/db_context.d.ts +25 -0
- package/dist/sdk/db_context.d.ts.map +1 -0
- package/dist/sdk/decompress.d.ts +2 -0
- package/dist/sdk/decompress.d.ts.map +1 -0
- package/dist/sdk/event.d.ts +15 -0
- package/dist/sdk/event.d.ts.map +1 -0
- package/dist/sdk/event_context.d.ts +18 -0
- package/dist/sdk/event_context.d.ts.map +1 -0
- package/dist/sdk/event_emitter.d.ts +7 -0
- package/dist/sdk/event_emitter.d.ts.map +1 -0
- package/dist/sdk/index.browser.mjs +18 -4
- package/dist/sdk/index.browser.mjs.map +1 -1
- package/dist/sdk/index.cjs +18 -16
- package/dist/sdk/index.cjs.map +1 -1
- package/dist/sdk/index.d.ts +4 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.mjs +18 -16
- package/dist/sdk/index.mjs.map +1 -1
- package/dist/sdk/json_api.d.ts +40 -0
- package/dist/sdk/json_api.d.ts.map +1 -0
- package/dist/sdk/logger.d.ts +4 -0
- package/dist/sdk/logger.d.ts.map +1 -0
- package/dist/sdk/message_types.d.ts +50 -0
- package/dist/sdk/message_types.d.ts.map +1 -0
- package/dist/sdk/reducer_event.d.ts +42 -0
- package/dist/sdk/reducer_event.d.ts.map +1 -0
- package/dist/sdk/spacetime_module.d.ts +31 -0
- package/dist/sdk/spacetime_module.d.ts.map +1 -0
- package/dist/sdk/subscription_builder_impl.d.ts +126 -0
- package/dist/sdk/subscription_builder_impl.d.ts.map +1 -0
- package/dist/sdk/table_cache.d.ts +111 -0
- package/dist/sdk/table_cache.d.ts.map +1 -0
- package/dist/sdk/version.d.ts +18 -0
- package/dist/sdk/version.d.ts.map +1 -0
- package/dist/sdk/websocket_decompress_adapter.d.ts +21 -0
- package/dist/sdk/websocket_decompress_adapter.d.ts.map +1 -0
- package/dist/sdk/websocket_test_adapter.d.ts +22 -0
- package/dist/sdk/websocket_test_adapter.d.ts.map +1 -0
- package/dist/sdk/ws.d.ts +2 -0
- package/dist/sdk/ws.d.ts.map +1 -0
- package/dist/server/index.d.ts +3 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/type_builders.d.ts +656 -0
- package/dist/server/type_builders.d.ts.map +1 -0
- package/dist/server/type_builders.test-d.d.ts +2 -0
- package/dist/server/type_builders.test-d.d.ts.map +1 -0
- package/dist/server/type_util.d.ts +18 -0
- package/dist/server/type_util.d.ts.map +1 -0
- package/package.json +30 -27
- package/src/react/SpacetimeDBProvider.ts +4 -1
- package/src/react/useSpacetimeDB.ts +1 -1
- package/src/react/useTable.ts +1 -1
- package/src/sdk/db_connection_builder.ts +1 -1
- package/src/sdk/db_connection_impl.ts +6 -6
- package/src/sdk/message_types.ts +3 -3
- package/src/sdk/reducer_event.ts +3 -3
- package/src/sdk/spacetime_module.ts +1 -1
- package/src/sdk/table_cache.ts +1 -1
- package/src/sdk/websocket_decompress_adapter.ts +2 -30
- package/src/sdk/websocket_test_adapter.ts +1 -1
- package/src/sdk/ws.ts +24 -0
- package/LICENSE.txt +0 -759
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface Message {
|
|
2
|
+
IdentityToken?: IdentityToken | undefined;
|
|
3
|
+
SubscriptionUpdate?: SubscriptionUpdate | undefined;
|
|
4
|
+
TransactionUpdate?: TransactionUpdate | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface IdentityToken {
|
|
7
|
+
identity: string;
|
|
8
|
+
token: string;
|
|
9
|
+
address: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SubscriptionUpdate {
|
|
12
|
+
table_updates: TableUpdate[];
|
|
13
|
+
}
|
|
14
|
+
export interface TableUpdate {
|
|
15
|
+
table_id: number;
|
|
16
|
+
table_name: string;
|
|
17
|
+
table_row_operations: TableRowOperation[];
|
|
18
|
+
}
|
|
19
|
+
export interface TableRowOperation {
|
|
20
|
+
op: 'insert' | 'delete';
|
|
21
|
+
row: any[];
|
|
22
|
+
}
|
|
23
|
+
export interface TransactionUpdate {
|
|
24
|
+
event: Event;
|
|
25
|
+
subscription_update: SubscriptionUpdate;
|
|
26
|
+
}
|
|
27
|
+
export interface Event {
|
|
28
|
+
timestamp: number;
|
|
29
|
+
status: 'committed' | 'failed' | 'out_of_energy';
|
|
30
|
+
caller_identity: string;
|
|
31
|
+
caller_address: string;
|
|
32
|
+
function_call: FunctionCall;
|
|
33
|
+
energy_quanta_used: number;
|
|
34
|
+
message: string;
|
|
35
|
+
}
|
|
36
|
+
export interface FunctionCall {
|
|
37
|
+
reducer: string;
|
|
38
|
+
args: string;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=json_api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json_api.d.ts","sourceRoot":"","sources":["../../src/sdk/json_api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACpD,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACnD;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,iBAAiB,EAAE,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACxB,GAAG,EAAE,GAAG,EAAE,CAAC;CACZ;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,mBAAmB,EAAE,kBAAkB,CAAC;CACzC;AAED,MAAM,WAAW,KAAK;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,eAAe,CAAC;IACjD,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,YAAY,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/sdk/logger.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AA6BpD,eAAO,MAAM,UAAU,GAAI,OAAO,QAAQ,EAAE,SAAS,GAAG,KAAG,IAM1D,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ConnectionId } from '../';
|
|
2
|
+
import type { UpdateStatus } from './client_api/index.ts';
|
|
3
|
+
import { Identity } from '../';
|
|
4
|
+
import type { TableUpdate } from './table_cache.ts';
|
|
5
|
+
import { Timestamp } from '../';
|
|
6
|
+
export type InitialSubscriptionMessage<RowType extends Record<string, any>> = {
|
|
7
|
+
tag: 'InitialSubscription';
|
|
8
|
+
tableUpdates: TableUpdate<RowType>[];
|
|
9
|
+
};
|
|
10
|
+
export type TransactionUpdateMessage<RowType extends Record<string, any>> = {
|
|
11
|
+
tag: 'TransactionUpdate';
|
|
12
|
+
tableUpdates: TableUpdate<RowType>[];
|
|
13
|
+
identity: Identity;
|
|
14
|
+
connectionId: ConnectionId | null;
|
|
15
|
+
reducerInfo?: {
|
|
16
|
+
reducerName: string;
|
|
17
|
+
args: Uint8Array;
|
|
18
|
+
};
|
|
19
|
+
status: UpdateStatus;
|
|
20
|
+
message: string;
|
|
21
|
+
timestamp: Timestamp;
|
|
22
|
+
energyConsumed: bigint;
|
|
23
|
+
};
|
|
24
|
+
export type TransactionUpdateLightMessage<RowType extends Record<string, any>> = {
|
|
25
|
+
tag: 'TransactionUpdateLight';
|
|
26
|
+
tableUpdates: TableUpdate<RowType>[];
|
|
27
|
+
};
|
|
28
|
+
export type IdentityTokenMessage = {
|
|
29
|
+
tag: 'IdentityToken';
|
|
30
|
+
identity: Identity;
|
|
31
|
+
token: string;
|
|
32
|
+
connectionId: ConnectionId;
|
|
33
|
+
};
|
|
34
|
+
export type SubscribeAppliedMessage<RowType extends Record<string, any>> = {
|
|
35
|
+
tag: 'SubscribeApplied';
|
|
36
|
+
queryId: number;
|
|
37
|
+
tableUpdates: TableUpdate<RowType>[];
|
|
38
|
+
};
|
|
39
|
+
export type UnsubscribeAppliedMessage<RowType extends Record<string, any>> = {
|
|
40
|
+
tag: 'UnsubscribeApplied';
|
|
41
|
+
queryId: number;
|
|
42
|
+
tableUpdates: TableUpdate<RowType>[];
|
|
43
|
+
};
|
|
44
|
+
export type SubscriptionError = {
|
|
45
|
+
tag: 'SubscriptionError';
|
|
46
|
+
queryId?: number;
|
|
47
|
+
error: string;
|
|
48
|
+
};
|
|
49
|
+
export type Message<RowType extends Record<string, any> = Record<string, any>> = InitialSubscriptionMessage<RowType> | TransactionUpdateMessage<RowType> | TransactionUpdateLightMessage<RowType> | IdentityTokenMessage | SubscribeAppliedMessage<RowType> | UnsubscribeAppliedMessage<RowType> | SubscriptionError;
|
|
50
|
+
//# sourceMappingURL=message_types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message_types.d.ts","sourceRoot":"","sources":["../../src/sdk/message_types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAEhC,MAAM,MAAM,0BAA0B,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IAC5E,GAAG,EAAE,qBAAqB,CAAC;IAC3B,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IAC1E,GAAG,EAAE,mBAAmB,CAAC;IACzB,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;IACrC,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE;QACZ,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,UAAU,CAAC;KAClB,CAAC;IACF,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,6BAA6B,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAC3E;IACE,GAAG,EAAE,wBAAwB,CAAC;IAC9B,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;CACtC,CAAC;AAEJ,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,eAAe,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IACzE,GAAG,EAAE,kBAAkB,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,yBAAyB,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IAC3E,GAAG,EAAE,oBAAoB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,mBAAmB,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,OAAO,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAEvE,0BAA0B,CAAC,OAAO,CAAC,GACnC,wBAAwB,CAAC,OAAO,CAAC,GACjC,6BAA6B,CAAC,OAAO,CAAC,GACtC,oBAAoB,GACpB,uBAAuB,CAAC,OAAO,CAAC,GAChC,yBAAyB,CAAC,OAAO,CAAC,GAClC,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ConnectionId } from '../';
|
|
2
|
+
import { Timestamp } from '../';
|
|
3
|
+
import type { UpdateStatus } from './client_api/index.ts';
|
|
4
|
+
import { Identity } from '../';
|
|
5
|
+
export type ReducerInfoType = {
|
|
6
|
+
name: string;
|
|
7
|
+
args?: any;
|
|
8
|
+
} | never;
|
|
9
|
+
export type ReducerEvent<Reducer extends ReducerInfoType> = {
|
|
10
|
+
/**
|
|
11
|
+
* The time when the reducer started running.
|
|
12
|
+
*
|
|
13
|
+
* @internal This is a number and not Date, as JSON.stringify with date in it gives number, but JSON.parse of the same string does not give date. TO avoid
|
|
14
|
+
* confusion in typing we'll keep it a number
|
|
15
|
+
*/
|
|
16
|
+
timestamp: Timestamp;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the reducer committed, was aborted due to insufficient energy, or failed with an error message.
|
|
19
|
+
*/
|
|
20
|
+
status: UpdateStatus;
|
|
21
|
+
/**
|
|
22
|
+
* The identity of the caller.
|
|
23
|
+
* TODO: Revise these to reflect the forthcoming Identity proposal.
|
|
24
|
+
*/
|
|
25
|
+
callerIdentity: Identity;
|
|
26
|
+
/**
|
|
27
|
+
* The connection ID of the caller.
|
|
28
|
+
*
|
|
29
|
+
* May be `null`, e.g. for scheduled reducers.
|
|
30
|
+
*/
|
|
31
|
+
callerConnectionId?: ConnectionId;
|
|
32
|
+
/**
|
|
33
|
+
* The amount of energy consumed by the reducer run, in eV.
|
|
34
|
+
* (Not literal eV, but our SpacetimeDB energy unit eV.)
|
|
35
|
+
* May be present or undefined at the implementor's discretion;
|
|
36
|
+
* future work may determine an interface for module developers
|
|
37
|
+
* to request this value be published or hidden.
|
|
38
|
+
*/
|
|
39
|
+
energyConsumed?: bigint;
|
|
40
|
+
reducer: Reducer;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=reducer_event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reducer_event.d.ts","sourceRoot":"","sources":["../../src/sdk/reducer_event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE/B,MAAM,MAAM,eAAe,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,GAAG,KAAK,CAAC;AAEnE,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,eAAe,IAAI;IAC1D;;;;;OAKG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC;IAErB;;;OAGG;IACH,cAAc,EAAE,QAAQ,CAAC;IAEzB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,YAAY,CAAC;IAElC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { AlgebraicType } from '../';
|
|
2
|
+
import type { DbConnectionImpl } from './db_connection_impl';
|
|
3
|
+
export interface TableRuntimeTypeInfo {
|
|
4
|
+
tableName: string;
|
|
5
|
+
rowType: AlgebraicType;
|
|
6
|
+
primaryKeyInfo?: PrimaryKeyInfo;
|
|
7
|
+
}
|
|
8
|
+
export interface PrimaryKeyInfo {
|
|
9
|
+
colName: string;
|
|
10
|
+
colType: AlgebraicType;
|
|
11
|
+
}
|
|
12
|
+
export interface ReducerRuntimeTypeInfo {
|
|
13
|
+
reducerName: string;
|
|
14
|
+
argsType: AlgebraicType;
|
|
15
|
+
}
|
|
16
|
+
export default interface RemoteModule {
|
|
17
|
+
tables: {
|
|
18
|
+
[name: string]: TableRuntimeTypeInfo;
|
|
19
|
+
};
|
|
20
|
+
reducers: {
|
|
21
|
+
[name: string]: ReducerRuntimeTypeInfo;
|
|
22
|
+
};
|
|
23
|
+
eventContextConstructor: (imp: DbConnectionImpl, event: any) => any;
|
|
24
|
+
dbViewConstructor: (connection: DbConnectionImpl) => any;
|
|
25
|
+
reducersConstructor: (connection: DbConnectionImpl, setReducerFlags: any) => any;
|
|
26
|
+
setReducerFlagsConstructor: () => any;
|
|
27
|
+
versionInfo?: {
|
|
28
|
+
cliVersion: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=spacetime_module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spacetime_module.d.ts","sourceRoot":"","sources":["../../src/sdk/spacetime_module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;IACvB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY;IACnC,MAAM,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;IACjD,QAAQ,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,sBAAsB,CAAA;KAAE,CAAC;IACrD,uBAAuB,EAAE,CAAC,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;IACpE,iBAAiB,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,GAAG,CAAC;IACzD,mBAAmB,EAAE,CACnB,UAAU,EAAE,gBAAgB,EAC5B,eAAe,EAAE,GAAG,KACjB,GAAG,CAAC;IACT,0BAA0B,EAAE,MAAM,GAAG,CAAC;IACtC,WAAW,CAAC,EAAE;QACZ,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type { DbConnectionImpl } from './db_connection_impl';
|
|
2
|
+
import type { ErrorContextInterface, SubscriptionEventContextInterface } from './event_context';
|
|
3
|
+
import { EventEmitter } from './event_emitter';
|
|
4
|
+
export declare class SubscriptionBuilderImpl<DBView = any, Reducers = any, SetReducerFlags = any> {
|
|
5
|
+
#private;
|
|
6
|
+
private db;
|
|
7
|
+
constructor(db: DbConnectionImpl<DBView, Reducers, SetReducerFlags>);
|
|
8
|
+
/**
|
|
9
|
+
* Registers `callback` to run when this query is successfully added to our subscribed set,
|
|
10
|
+
* I.e. when its `SubscriptionApplied` message is received.
|
|
11
|
+
*
|
|
12
|
+
* The database state exposed via the `&EventContext` argument
|
|
13
|
+
* includes all the rows added to the client cache as a result of the new subscription.
|
|
14
|
+
*
|
|
15
|
+
* The event in the `&EventContext` argument is `Event::SubscribeApplied`.
|
|
16
|
+
*
|
|
17
|
+
* Multiple `on_applied` callbacks for the same query may coexist.
|
|
18
|
+
* No mechanism for un-registering `on_applied` callbacks is exposed.
|
|
19
|
+
*
|
|
20
|
+
* @param cb - Callback to run when the subscription is applied.
|
|
21
|
+
* @returns The current `SubscriptionBuilder` instance.
|
|
22
|
+
*/
|
|
23
|
+
onApplied(cb: (ctx: SubscriptionEventContextInterface<DBView, Reducers, SetReducerFlags>) => void): SubscriptionBuilderImpl<DBView, Reducers, SetReducerFlags>;
|
|
24
|
+
/**
|
|
25
|
+
* Registers `callback` to run when this query either:
|
|
26
|
+
* - Fails to be added to our subscribed set.
|
|
27
|
+
* - Is unexpectedly removed from our subscribed set.
|
|
28
|
+
*
|
|
29
|
+
* If the subscription had previously started and has been unexpectedly removed,
|
|
30
|
+
* the database state exposed via the `&EventContext` argument contains no rows
|
|
31
|
+
* from any subscriptions removed within the same error event.
|
|
32
|
+
* As proposed, it must therefore contain no rows.
|
|
33
|
+
*
|
|
34
|
+
* The event in the `&EventContext` argument is `Event::SubscribeError`,
|
|
35
|
+
* containing a dynamic error object with a human-readable description of the error
|
|
36
|
+
* for diagnostic purposes.
|
|
37
|
+
*
|
|
38
|
+
* Multiple `on_error` callbacks for the same query may coexist.
|
|
39
|
+
* No mechanism for un-registering `on_error` callbacks is exposed.
|
|
40
|
+
*
|
|
41
|
+
* @param cb - Callback to run when there is an error in subscription.
|
|
42
|
+
* @returns The current `SubscriptionBuilder` instance.
|
|
43
|
+
*/
|
|
44
|
+
onError(cb: (ctx: ErrorContextInterface<DBView, Reducers, SetReducerFlags>) => void): SubscriptionBuilderImpl<DBView, Reducers, SetReducerFlags>;
|
|
45
|
+
/**
|
|
46
|
+
* Subscribe to a single query. The results of the query will be merged into the client
|
|
47
|
+
* cache and deduplicated on the client.
|
|
48
|
+
*
|
|
49
|
+
* @param query_sql A `SQL` query to subscribe to.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
*
|
|
53
|
+
* ```ts
|
|
54
|
+
* const subscription = connection.subscriptionBuilder().onApplied(() => {
|
|
55
|
+
* console.log("SDK client cache initialized.");
|
|
56
|
+
* }).subscribe("SELECT * FROM User");
|
|
57
|
+
*
|
|
58
|
+
* subscription.unsubscribe();
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
subscribe(query_sql: string | string[]): SubscriptionHandleImpl<DBView, Reducers, SetReducerFlags>;
|
|
62
|
+
/**
|
|
63
|
+
* Subscribes to all rows from all tables.
|
|
64
|
+
*
|
|
65
|
+
* This method is intended as a convenience
|
|
66
|
+
* for applications where client-side memory use and network bandwidth are not concerns.
|
|
67
|
+
* Applications where these resources are a constraint
|
|
68
|
+
* should register more precise queries via `subscribe`
|
|
69
|
+
* in order to replicate only the subset of data which the client needs to function.
|
|
70
|
+
*
|
|
71
|
+
* This method should not be combined with `subscribe` on the same `DbConnection`.
|
|
72
|
+
* A connection may either `subscribe` to particular queries,
|
|
73
|
+
* or `subscribeToAllTables`, but not both.
|
|
74
|
+
* Attempting to call `subscribe`
|
|
75
|
+
* on a `DbConnection` that has previously used `subscribeToAllTables`,
|
|
76
|
+
* or vice versa, may misbehave in any number of ways,
|
|
77
|
+
* including dropping subscriptions, corrupting the client cache, or throwing errors.
|
|
78
|
+
*/
|
|
79
|
+
subscribeToAllTables(): void;
|
|
80
|
+
}
|
|
81
|
+
export type SubscribeEvent = 'applied' | 'error' | 'end';
|
|
82
|
+
export declare class SubscriptionManager {
|
|
83
|
+
subscriptions: Map<number, {
|
|
84
|
+
handle: SubscriptionHandleImpl;
|
|
85
|
+
emitter: EventEmitter<SubscribeEvent>;
|
|
86
|
+
}>;
|
|
87
|
+
}
|
|
88
|
+
export declare class SubscriptionHandleImpl<DBView = any, Reducers = any, SetReducerFlags = any> {
|
|
89
|
+
#private;
|
|
90
|
+
private db;
|
|
91
|
+
constructor(db: DbConnectionImpl<DBView, Reducers, SetReducerFlags>, querySql: string[], onApplied?: (ctx: SubscriptionEventContextInterface<DBView, Reducers, SetReducerFlags>) => void, onError?: (ctx: ErrorContextInterface<DBView, Reducers, SetReducerFlags>, error: Error) => void);
|
|
92
|
+
/**
|
|
93
|
+
* Consumes self and issues an `Unsubscribe` message,
|
|
94
|
+
* removing this query from the client's set of subscribed queries.
|
|
95
|
+
* It is only valid to call this method if `is_active()` is `true`.
|
|
96
|
+
*/
|
|
97
|
+
unsubscribe(): void;
|
|
98
|
+
/**
|
|
99
|
+
* Unsubscribes and also registers a callback to run upon success.
|
|
100
|
+
* I.e. when an `UnsubscribeApplied` message is received.
|
|
101
|
+
*
|
|
102
|
+
* If `Unsubscribe` returns an error,
|
|
103
|
+
* or if the `on_error` callback(s) are invoked before this subscription would end normally,
|
|
104
|
+
* the `on_end` callback is not invoked.
|
|
105
|
+
*
|
|
106
|
+
* @param onEnd - Callback to run upon successful unsubscribe.
|
|
107
|
+
*/
|
|
108
|
+
unsubscribeThen(onEnd: (ctx: SubscriptionEventContextInterface<DBView, Reducers, SetReducerFlags>) => void): void;
|
|
109
|
+
/**
|
|
110
|
+
* True if this `SubscriptionHandle` has ended,
|
|
111
|
+
* either due to an error or a call to `unsubscribe`.
|
|
112
|
+
*
|
|
113
|
+
* This is initially false, and becomes true when either the `on_end` or `on_error` callback is invoked.
|
|
114
|
+
* A subscription which has not yet been applied is not active, but is also not ended.
|
|
115
|
+
*/
|
|
116
|
+
isEnded(): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* True if this `SubscriptionHandle` is active, meaning it has been successfully applied
|
|
119
|
+
* and has not since ended, either due to an error or a complete `unsubscribe` request-response pair.
|
|
120
|
+
*
|
|
121
|
+
* This corresponds exactly to the interval bounded at the start by the `on_applied` callback
|
|
122
|
+
* and at the end by either the `on_end` or `on_error` callback.
|
|
123
|
+
*/
|
|
124
|
+
isActive(): boolean;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=subscription_builder_impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_builder_impl.d.ts","sourceRoot":"","sources":["../../src/sdk/subscription_builder_impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EACV,qBAAqB,EACrB,iCAAiC,EAClC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,uBAAuB,CAClC,MAAM,GAAG,GAAG,EACZ,QAAQ,GAAG,GAAG,EACd,eAAe,GAAG,GAAG;;IASnB,OAAO,CAAC,EAAE;gBAAF,EAAE,EAAE,gBAAgB,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC;IAGjE;;;;;;;;;;;;;;OAcG;IACH,SAAS,CACP,EAAE,EAAE,CACF,GAAG,EAAE,iCAAiC,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC,KACtE,IAAI,GACR,uBAAuB,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC;IAK7D;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CACL,EAAE,EAAE,CAAC,GAAG,EAAE,qBAAqB,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC,KAAK,IAAI,GAC1E,uBAAuB,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC;IAK7D;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CACP,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,GAC3B,sBAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC;IAa5D;;;;;;;;;;;;;;;;OAgBG;IACH,oBAAoB,IAAI,IAAI;CAG7B;AAED,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;AAEzD,qBAAa,mBAAmB;IAC9B,aAAa,EAAE,GAAG,CAChB,MAAM,EACN;QAAE,MAAM,EAAE,sBAAsB,CAAC;QAAC,OAAO,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;KAAE,CAC1E,CAAa;CACf;AAED,qBAAa,sBAAsB,CACjC,MAAM,GAAG,GAAG,EACZ,QAAQ,GAAG,GAAG,EACd,eAAe,GAAG,GAAG;;IAUnB,OAAO,CAAC,EAAE;gBAAF,EAAE,EAAE,gBAAgB,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC,EAC/D,QAAQ,EAAE,MAAM,EAAE,EAClB,SAAS,CAAC,EAAE,CACV,GAAG,EAAE,iCAAiC,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC,KACtE,IAAI,EACT,OAAO,CAAC,EAAE,CACR,GAAG,EAAE,qBAAqB,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC,EAC7D,KAAK,EAAE,KAAK,KACT,IAAI;IAiCX;;;;OAIG;IACH,WAAW,IAAI,IAAI;IAqBnB;;;;;;;;;OASG;IACH,eAAe,CACb,KAAK,EAAE,CACL,GAAG,EAAE,iCAAiC,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC,KACtE,IAAI,GACR,IAAI;IAyBP;;;;;;OAMG;IACH,OAAO,IAAI,OAAO;IAIlB;;;;;;OAMG;IACH,QAAQ,IAAI,OAAO;CAGpB"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { TableRuntimeTypeInfo } from './spacetime_module.ts';
|
|
2
|
+
import type { ComparablePrimitive } from '../';
|
|
3
|
+
import type { EventContextInterface } from './index.ts';
|
|
4
|
+
export type Operation<RowType extends Record<string, any> = Record<string, any>> = {
|
|
5
|
+
type: 'insert' | 'delete';
|
|
6
|
+
rowId: ComparablePrimitive;
|
|
7
|
+
row: RowType;
|
|
8
|
+
};
|
|
9
|
+
export type TableUpdate<RowType extends Record<string, any> = Record<string, any>> = {
|
|
10
|
+
tableName: string;
|
|
11
|
+
operations: Operation<RowType>[];
|
|
12
|
+
};
|
|
13
|
+
export type PendingCallback = {
|
|
14
|
+
type: 'insert' | 'delete' | 'update';
|
|
15
|
+
table: string;
|
|
16
|
+
cb: () => void;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Builder to generate calls to query a `table` in the database
|
|
20
|
+
*/
|
|
21
|
+
export declare class TableCache<RowType extends Record<string, any> = Record<string, any>> {
|
|
22
|
+
private rows;
|
|
23
|
+
private tableTypeInfo;
|
|
24
|
+
private emitter;
|
|
25
|
+
/**
|
|
26
|
+
* @param name the table name
|
|
27
|
+
* @param primaryKeyCol column index designated as `#[primarykey]`
|
|
28
|
+
* @param primaryKey column name designated as `#[primarykey]`
|
|
29
|
+
* @param entityClass the entityClass
|
|
30
|
+
*/
|
|
31
|
+
constructor(tableTypeInfo: TableRuntimeTypeInfo);
|
|
32
|
+
/**
|
|
33
|
+
* @returns number of rows in the table
|
|
34
|
+
*/
|
|
35
|
+
count(): number;
|
|
36
|
+
/**
|
|
37
|
+
* @returns The values of the rows in the table
|
|
38
|
+
*/
|
|
39
|
+
iter(): RowType[];
|
|
40
|
+
applyOperations: (operations: Operation<RowType>[], ctx: EventContextInterface) => PendingCallback[];
|
|
41
|
+
update: (ctx: EventContextInterface, rowId: ComparablePrimitive, newRow: RowType, refCountDelta?: number) => PendingCallback | undefined;
|
|
42
|
+
insert: (ctx: EventContextInterface, operation: Operation<RowType>, count?: number) => PendingCallback | undefined;
|
|
43
|
+
delete: (ctx: EventContextInterface, operation: Operation<RowType>, count?: number) => PendingCallback | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Register a callback for when a row is newly inserted into the database.
|
|
46
|
+
*
|
|
47
|
+
* ```ts
|
|
48
|
+
* User.onInsert((user, reducerEvent) => {
|
|
49
|
+
* if (reducerEvent) {
|
|
50
|
+
* console.log("New user on reducer", reducerEvent, user);
|
|
51
|
+
* } else {
|
|
52
|
+
* console.log("New user received during subscription update on insert", user);
|
|
53
|
+
* }
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param cb Callback to be called when a new row is inserted
|
|
58
|
+
*/
|
|
59
|
+
onInsert: <EventContext>(cb: (ctx: EventContext, row: RowType) => void) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Register a callback for when a row is deleted from the database.
|
|
62
|
+
*
|
|
63
|
+
* ```ts
|
|
64
|
+
* User.onDelete((user, reducerEvent) => {
|
|
65
|
+
* if (reducerEvent) {
|
|
66
|
+
* console.log("Deleted user on reducer", reducerEvent, user);
|
|
67
|
+
* } else {
|
|
68
|
+
* console.log("Deleted user received during subscription update on update", user);
|
|
69
|
+
* }
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @param cb Callback to be called when a new row is inserted
|
|
74
|
+
*/
|
|
75
|
+
onDelete: <EventContext>(cb: (ctx: EventContext, row: RowType) => void) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Register a callback for when a row is updated into the database.
|
|
78
|
+
*
|
|
79
|
+
* ```ts
|
|
80
|
+
* User.onInsert((user, reducerEvent) => {
|
|
81
|
+
* if (reducerEvent) {
|
|
82
|
+
* console.log("Updated user on reducer", reducerEvent, user);
|
|
83
|
+
* } else {
|
|
84
|
+
* console.log("Updated user received during subscription update on delete", user);
|
|
85
|
+
* }
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @param cb Callback to be called when a new row is inserted
|
|
90
|
+
*/
|
|
91
|
+
onUpdate: <EventContext>(cb: (ctx: EventContext, oldRow: RowType, row: RowType) => void) => void;
|
|
92
|
+
/**
|
|
93
|
+
* Remove a callback for when a row is newly inserted into the database.
|
|
94
|
+
*
|
|
95
|
+
* @param cb Callback to be removed
|
|
96
|
+
*/
|
|
97
|
+
removeOnInsert: <EventContext>(cb: (ctx: EventContext, row: RowType) => void) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Remove a callback for when a row is deleted from the database.
|
|
100
|
+
*
|
|
101
|
+
* @param cb Callback to be removed
|
|
102
|
+
*/
|
|
103
|
+
removeOnDelete: <EventContext>(cb: (ctx: EventContext, row: RowType) => void) => void;
|
|
104
|
+
/**
|
|
105
|
+
* Remove a callback for when a row is updated into the database.
|
|
106
|
+
*
|
|
107
|
+
* @param cb Callback to be removed
|
|
108
|
+
*/
|
|
109
|
+
removeOnUpdate: <EventContext>(cb: (ctx: EventContext, oldRow: RowType, row: RowType) => void) => void;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=table_cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table_cache.d.ts","sourceRoot":"","sources":["../../src/sdk/table_cache.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type PrereleaseId = string | number;
|
|
2
|
+
export type PreRelease = PrereleaseId[];
|
|
3
|
+
export type BuildInfo = string;
|
|
4
|
+
export declare class SemanticVersion {
|
|
5
|
+
major: number;
|
|
6
|
+
minor: number;
|
|
7
|
+
patch: number;
|
|
8
|
+
preRelease: PreRelease | null;
|
|
9
|
+
buildInfo: BuildInfo | null;
|
|
10
|
+
constructor(major: number, minor: number, patch: number, preRelease?: PreRelease | null, buildInfo?: BuildInfo | null);
|
|
11
|
+
toString(): string;
|
|
12
|
+
compare(other: SemanticVersion): number;
|
|
13
|
+
clone(): SemanticVersion;
|
|
14
|
+
static parseVersionString(version: string): SemanticVersion;
|
|
15
|
+
}
|
|
16
|
+
export declare const _MINIMUM_CLI_VERSION: SemanticVersion;
|
|
17
|
+
export declare function ensureMinimumVersionOrThrow(versionString?: string): void;
|
|
18
|
+
//# sourceMappingURL=version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/sdk/version.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG,YAAY,EAAE,CAAC;AAwBxC,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAG/B,qBAAa,eAAe;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;gBAG1B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,UAAU,GAAE,UAAU,GAAG,IAAW,EACpC,SAAS,GAAE,SAAS,GAAG,IAAW;IASpC,QAAQ,IAAI,MAAM;IAWlB,OAAO,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM;IAsBvC,KAAK,IAAI,eAAe;IAUxB,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe;CAkB5D;AAGD,eAAO,MAAM,oBAAoB,EAAE,eAIlC,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAQxE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class WebsocketDecompressAdapter {
|
|
2
|
+
#private;
|
|
3
|
+
onclose?: (...ev: any[]) => void;
|
|
4
|
+
onopen?: (...ev: any[]) => void;
|
|
5
|
+
onmessage?: (msg: {
|
|
6
|
+
data: Uint8Array;
|
|
7
|
+
}) => void;
|
|
8
|
+
onerror?: (msg: ErrorEvent) => void;
|
|
9
|
+
send(msg: any): void;
|
|
10
|
+
close(): void;
|
|
11
|
+
constructor(ws: WebSocket);
|
|
12
|
+
static createWebSocketFn({ url, nameOrAddress, wsProtocol, authToken, compression, lightMode, }: {
|
|
13
|
+
url: URL;
|
|
14
|
+
wsProtocol: string;
|
|
15
|
+
nameOrAddress: string;
|
|
16
|
+
authToken?: string;
|
|
17
|
+
compression: 'gzip' | 'none';
|
|
18
|
+
lightMode: boolean;
|
|
19
|
+
}): Promise<WebsocketDecompressAdapter>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=websocket_decompress_adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"websocket_decompress_adapter.d.ts","sourceRoot":"","sources":["../../src/sdk/websocket_decompress_adapter.ts"],"names":[],"mappings":"AAGA,qBAAa,0BAA0B;;IACrC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,KAAK,IAAI,CAAC;IAChD,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI,CAAC;IAqCpC,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAIpB,KAAK,IAAI,IAAI;gBAID,EAAE,EAAE,SAAS;WAgBZ,iBAAiB,CAAC,EAC7B,GAAG,EACH,aAAa,EACb,UAAU,EACV,SAAS,EACT,WAAW,EACX,SAAS,GACV,EAAE;QACD,GAAG,EAAE,GAAG,CAAC;QACT,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;QAC7B,SAAS,EAAE,OAAO,CAAC;KACpB,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAwCxC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ServerMessage } from './client_api/index.ts';
|
|
2
|
+
declare class WebsocketTestAdapter {
|
|
3
|
+
onclose: any;
|
|
4
|
+
onopen: Function;
|
|
5
|
+
onmessage: any;
|
|
6
|
+
onerror: any;
|
|
7
|
+
messageQueue: any[];
|
|
8
|
+
closed: boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
send(message: any): void;
|
|
11
|
+
close(): void;
|
|
12
|
+
acceptConnection(): void;
|
|
13
|
+
sendToClient(message: ServerMessage): void;
|
|
14
|
+
createWebSocketFn(_args: {
|
|
15
|
+
url: URL;
|
|
16
|
+
wsProtocol: string;
|
|
17
|
+
authToken?: string;
|
|
18
|
+
}): Promise<WebsocketTestAdapter>;
|
|
19
|
+
}
|
|
20
|
+
export type { WebsocketTestAdapter };
|
|
21
|
+
export default WebsocketTestAdapter;
|
|
22
|
+
//# sourceMappingURL=websocket_test_adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"websocket_test_adapter.d.ts","sourceRoot":"","sources":["../../src/sdk/websocket_test_adapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,cAAM,oBAAoB;IACxB,OAAO,EAAE,GAAG,CAAC;IAEb,MAAM,EAAG,QAAQ,CAAC;IAClB,SAAS,EAAE,GAAG,CAAC;IACf,OAAO,EAAE,GAAG,CAAC;IAEb,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;;IAOhB,IAAI,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI;IAIxB,KAAK,IAAI,IAAI;IAIb,gBAAgB,IAAI,IAAI;IAIxB,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAgBpC,iBAAiB,CAAC,KAAK,EAAE;QAC7B,GAAG,EAAE,GAAG,CAAC;QACT,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAGlC;AAED,YAAY,EAAE,oBAAoB,EAAE,CAAC;AACrC,eAAe,oBAAoB,CAAC"}
|
package/dist/sdk/ws.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../../src/sdk/ws.ts"],"names":[],"mappings":"AAAA,wBAAsB,SAAS,IAAI,OAAO,CAAC,OAAO,SAAS,CAAC,CAuB3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
|