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,115 @@
|
|
|
1
|
+
import type BinaryReader from './binary_reader';
|
|
2
|
+
import BinaryWriter from './binary_writer';
|
|
3
|
+
import { AlgebraicType as AlgebraicTypeType, AlgebraicType as AlgebraicTypeValue } from './autogen/algebraic_type_type';
|
|
4
|
+
import { type ProductType as ProductTypeType } from './autogen/product_type_type';
|
|
5
|
+
import { type SumType as SumTypeType } from './autogen/sum_type_type';
|
|
6
|
+
/**
|
|
7
|
+
* A factor / element of a product type.
|
|
8
|
+
*
|
|
9
|
+
* An element consist of an optional name and a type.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: Each element has an implicit element tag based on its order.
|
|
12
|
+
* Uniquely identifies an element similarly to protobuf tags.
|
|
13
|
+
*/
|
|
14
|
+
export * from './autogen/product_type_element_type';
|
|
15
|
+
/**
|
|
16
|
+
* A variant of a sum type.
|
|
17
|
+
*
|
|
18
|
+
* NOTE: Each element has an implicit element tag based on its order.
|
|
19
|
+
* Uniquely identifies an element similarly to protobuf tags.
|
|
20
|
+
*/
|
|
21
|
+
export * from './autogen/sum_type_variant_type';
|
|
22
|
+
/**
|
|
23
|
+
* The variant types of the Algebraic Type tagged union.
|
|
24
|
+
*/
|
|
25
|
+
export type * as AlgebraicTypeVariants from './autogen/algebraic_type_variants';
|
|
26
|
+
/**
|
|
27
|
+
* The SpacetimeDB Algebraic Type System (SATS) is a structural type system in
|
|
28
|
+
* which a nominal type system can be constructed.
|
|
29
|
+
*
|
|
30
|
+
* The type system unifies the concepts sum types, product types, and built-in
|
|
31
|
+
* primitive types into a single type system.
|
|
32
|
+
*/
|
|
33
|
+
export type AlgebraicType = AlgebraicTypeType;
|
|
34
|
+
/**
|
|
35
|
+
* Algebraic Type utilities.
|
|
36
|
+
*/
|
|
37
|
+
export declare const AlgebraicType: {
|
|
38
|
+
createOptionType(innerType: AlgebraicTypeType): AlgebraicTypeType;
|
|
39
|
+
createIdentityType(): AlgebraicTypeType;
|
|
40
|
+
createConnectionIdType(): AlgebraicTypeType;
|
|
41
|
+
createScheduleAtType(): AlgebraicTypeType;
|
|
42
|
+
createTimestampType(): AlgebraicTypeType;
|
|
43
|
+
createTimeDurationType(): AlgebraicTypeType;
|
|
44
|
+
serializeValue(writer: BinaryWriter, ty: AlgebraicTypeType, value: any): void;
|
|
45
|
+
deserializeValue(reader: BinaryReader, ty: AlgebraicTypeType): any;
|
|
46
|
+
/**
|
|
47
|
+
* Convert a value of the algebraic type into something that can be used as a key in a map.
|
|
48
|
+
* There are no guarantees about being able to order it.
|
|
49
|
+
* This is only guaranteed to be comparable to other values of the same type.
|
|
50
|
+
* @param value A value of the algebraic type
|
|
51
|
+
* @returns Something that can be used as a key in a map.
|
|
52
|
+
*/
|
|
53
|
+
intoMapKey(ty: AlgebraicTypeType, value: any): ComparablePrimitive;
|
|
54
|
+
} & typeof AlgebraicTypeValue;
|
|
55
|
+
/**
|
|
56
|
+
* A structural product type of the factors given by `elements`.
|
|
57
|
+
*
|
|
58
|
+
* This is also known as `struct` and `tuple` in many languages,
|
|
59
|
+
* but note that unlike most languages, products in SATs are *[structural]* and not nominal.
|
|
60
|
+
* When checking whether two nominal types are the same,
|
|
61
|
+
* their names and/or declaration sites (e.g., module / namespace) are considered.
|
|
62
|
+
* Meanwhile, a structural type system would only check the structure of the type itself,
|
|
63
|
+
* e.g., the names of its fields and their types in the case of a record.
|
|
64
|
+
* The name "product" comes from category theory.
|
|
65
|
+
*
|
|
66
|
+
* See also: https://ncatlab.org/nlab/show/product+type.
|
|
67
|
+
*
|
|
68
|
+
* These structures are known as product types because the number of possible values in product
|
|
69
|
+
* ```ignore
|
|
70
|
+
* { N_0: T_0, N_1: T_1, ..., N_n: T_n }
|
|
71
|
+
* ```
|
|
72
|
+
* is:
|
|
73
|
+
* ```ignore
|
|
74
|
+
* Π (i ∈ 0..n). values(T_i)
|
|
75
|
+
* ```
|
|
76
|
+
* so for example, `values({ A: U64, B: Bool }) = values(U64) * values(Bool)`.
|
|
77
|
+
*
|
|
78
|
+
* [structural]: https://en.wikipedia.org/wiki/Structural_type_system
|
|
79
|
+
*/
|
|
80
|
+
export type ProductType = ProductTypeType;
|
|
81
|
+
export declare const ProductType: {
|
|
82
|
+
serializeValue(writer: BinaryWriter, ty: ProductTypeType, value: any): void;
|
|
83
|
+
deserializeValue(reader: BinaryReader, ty: ProductTypeType): any;
|
|
84
|
+
intoMapKey(ty: ProductTypeType, value: any): ComparablePrimitive;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Unlike most languages, sums in SATS are *[structural]* and not nominal.
|
|
88
|
+
* When checking whether two nominal types are the same,
|
|
89
|
+
* their names and/or declaration sites (e.g., module / namespace) are considered.
|
|
90
|
+
* Meanwhile, a structural type system would only check the structure of the type itself,
|
|
91
|
+
* e.g., the names of its variants and their inner data types in the case of a sum.
|
|
92
|
+
*
|
|
93
|
+
* This is also known as a discriminated union (implementation) or disjoint union.
|
|
94
|
+
* Another name is [coproduct (category theory)](https://ncatlab.org/nlab/show/coproduct).
|
|
95
|
+
*
|
|
96
|
+
* These structures are known as sum types because the number of possible values a sum
|
|
97
|
+
* ```ignore
|
|
98
|
+
* { N_0(T_0), N_1(T_1), ..., N_n(T_n) }
|
|
99
|
+
* ```
|
|
100
|
+
* is:
|
|
101
|
+
* ```ignore
|
|
102
|
+
* Σ (i ∈ 0..n). values(T_i)
|
|
103
|
+
* ```
|
|
104
|
+
* so for example, `values({ A(U64), B(Bool) }) = values(U64) + values(Bool)`.
|
|
105
|
+
*
|
|
106
|
+
* See also: https://ncatlab.org/nlab/show/sum+type.
|
|
107
|
+
*
|
|
108
|
+
* [structural]: https://en.wikipedia.org/wiki/Structural_type_system
|
|
109
|
+
*/
|
|
110
|
+
export declare const SumType: {
|
|
111
|
+
serializeValue(writer: BinaryWriter, ty: SumTypeType, value: any): void;
|
|
112
|
+
deserializeValue(reader: BinaryReader, ty: SumTypeType): any;
|
|
113
|
+
};
|
|
114
|
+
export type ComparablePrimitive = number | string | boolean | bigint;
|
|
115
|
+
//# sourceMappingURL=algebraic_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"algebraic_type.d.ts","sourceRoot":"","sources":["../../src/lib/algebraic_type.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;AAChD,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EACL,aAAa,IAAI,iBAAiB,EAClC,aAAa,IAAI,kBAAkB,EACpC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,WAAW,IAAI,eAAe,EAEpC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,OAAO,IAAI,WAAW,EAE5B,MAAM,yBAAyB,CAAC;AAGjC;;;;;;;GAOG;AACH,cAAc,qCAAqC,CAAC;AAEpD;;;;;GAKG;AACH,cAAc,iCAAiC,CAAC;AAEhD;;GAEG;AACH,YAAY,KAAK,qBAAqB,MAAM,mCAAmC,CAAC;AAEhF;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE;IAC1B,gBAAgB,CAAC,SAAS,EAAE,iBAAiB,GAAG,iBAAiB,CAAC;IAClE,kBAAkB,IAAI,iBAAiB,CAAC;IACxC,sBAAsB,IAAI,iBAAiB,CAAC;IAC5C,oBAAoB,IAAI,iBAAiB,CAAC;IAC1C,mBAAmB,IAAI,iBAAiB,CAAC;IACzC,sBAAsB,IAAI,iBAAiB,CAAC;IAC5C,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;IAC9E,gBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,iBAAiB,GAAG,GAAG,CAAC;IACnE;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,GAAG,mBAAmB,CAAC;CACpE,GAAG,OAAO,kBAoMV,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;AAE1C,eAAO,MAAM,WAAW,EAAE;IACxB,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;IAC5E,gBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,eAAe,GAAG,GAAG,CAAC;IACjE,UAAU,CAAC,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,GAAG,mBAAmB,CAAC;CA+DlE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,OAAO,EAAE;IACpB,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;IACxE,gBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,GAAG,GAAG,CAAC;CAkE9D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"algebraic_value.d.ts","sourceRoot":"","sources":["../../src/lib/algebraic_value.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,WAAW,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,CAAC,CAAC;CAC1C;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,GAAG,CAAC,CAGtE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
import { SumType } from './sum_type_type';
|
|
3
|
+
import { ProductType } from './product_type_type';
|
|
4
|
+
import * as AlgebraicTypeVariants from './algebraic_type_variants';
|
|
5
|
+
export type AlgebraicType = AlgebraicTypeVariants.Ref | AlgebraicTypeVariants.Sum | AlgebraicTypeVariants.Product | AlgebraicTypeVariants.Array | AlgebraicTypeVariants.String | AlgebraicTypeVariants.Bool | AlgebraicTypeVariants.I8 | AlgebraicTypeVariants.U8 | AlgebraicTypeVariants.I16 | AlgebraicTypeVariants.U16 | AlgebraicTypeVariants.I32 | AlgebraicTypeVariants.U32 | AlgebraicTypeVariants.I64 | AlgebraicTypeVariants.U64 | AlgebraicTypeVariants.I128 | AlgebraicTypeVariants.U128 | AlgebraicTypeVariants.I256 | AlgebraicTypeVariants.U256 | AlgebraicTypeVariants.F32 | AlgebraicTypeVariants.F64;
|
|
6
|
+
export declare const AlgebraicType: {
|
|
7
|
+
Ref: (value: number) => AlgebraicType;
|
|
8
|
+
Sum: (value: SumType) => AlgebraicType;
|
|
9
|
+
Product: (value: ProductType) => AlgebraicType;
|
|
10
|
+
Array: (value: AlgebraicType) => AlgebraicType;
|
|
11
|
+
String: {
|
|
12
|
+
readonly tag: "String";
|
|
13
|
+
};
|
|
14
|
+
Bool: {
|
|
15
|
+
readonly tag: "Bool";
|
|
16
|
+
};
|
|
17
|
+
I8: {
|
|
18
|
+
readonly tag: "I8";
|
|
19
|
+
};
|
|
20
|
+
U8: {
|
|
21
|
+
readonly tag: "U8";
|
|
22
|
+
};
|
|
23
|
+
I16: {
|
|
24
|
+
readonly tag: "I16";
|
|
25
|
+
};
|
|
26
|
+
U16: {
|
|
27
|
+
readonly tag: "U16";
|
|
28
|
+
};
|
|
29
|
+
I32: {
|
|
30
|
+
readonly tag: "I32";
|
|
31
|
+
};
|
|
32
|
+
U32: {
|
|
33
|
+
readonly tag: "U32";
|
|
34
|
+
};
|
|
35
|
+
I64: {
|
|
36
|
+
readonly tag: "I64";
|
|
37
|
+
};
|
|
38
|
+
U64: {
|
|
39
|
+
readonly tag: "U64";
|
|
40
|
+
};
|
|
41
|
+
I128: {
|
|
42
|
+
readonly tag: "I128";
|
|
43
|
+
};
|
|
44
|
+
U128: {
|
|
45
|
+
readonly tag: "U128";
|
|
46
|
+
};
|
|
47
|
+
I256: {
|
|
48
|
+
readonly tag: "I256";
|
|
49
|
+
};
|
|
50
|
+
U256: {
|
|
51
|
+
readonly tag: "U256";
|
|
52
|
+
};
|
|
53
|
+
F32: {
|
|
54
|
+
readonly tag: "F32";
|
|
55
|
+
};
|
|
56
|
+
F64: {
|
|
57
|
+
readonly tag: "F64";
|
|
58
|
+
};
|
|
59
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
60
|
+
serialize(writer: __BinaryWriter, value: AlgebraicType): void;
|
|
61
|
+
deserialize(reader: __BinaryReader): AlgebraicType;
|
|
62
|
+
};
|
|
63
|
+
export default AlgebraicType;
|
|
64
|
+
//# sourceMappingURL=algebraic_type_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"algebraic_type_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/algebraic_type_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG1C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIlD,OAAO,KAAK,qBAAqB,MAAM,2BAA2B,CAAC;AAGnE,MAAM,MAAM,aAAa,GACrB,qBAAqB,CAAC,GAAG,GACzB,qBAAqB,CAAC,GAAG,GACzB,qBAAqB,CAAC,OAAO,GAC7B,qBAAqB,CAAC,KAAK,GAC3B,qBAAqB,CAAC,MAAM,GAC5B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,EAAE,GACxB,qBAAqB,CAAC,EAAE,GACxB,qBAAqB,CAAC,GAAG,GACzB,qBAAqB,CAAC,GAAG,GACzB,qBAAqB,CAAC,GAAG,GACzB,qBAAqB,CAAC,GAAG,GACzB,qBAAqB,CAAC,GAAG,GACzB,qBAAqB,CAAC,GAAG,GACzB,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,IAAI,GAC1B,qBAAqB,CAAC,GAAG,GACzB,qBAAqB,CAAC,GAAG,CAAC;AAG9B,eAAO,MAAM,aAAa;iBAOX,MAAM,KAAG,aAAa;iBACtB,OAAO,KAAG,aAAa;qBACnB,WAAW,KAAG,aAAa;mBAC7B,aAAa,KAAG,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAkBd,mBAAmB;sBAiF/B,cAAc,SAAS,aAAa,GAAG,IAAI;wBAQzC,cAAc,GAAG,aAAa;CAMnD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { AlgebraicType as AlgebraicTypeType } from './algebraic_type_type';
|
|
2
|
+
import { SumType as SumTypeType } from './sum_type_type';
|
|
3
|
+
import { ProductType as ProductTypeType } from './product_type_type';
|
|
4
|
+
export type Ref = {
|
|
5
|
+
tag: 'Ref';
|
|
6
|
+
value: number;
|
|
7
|
+
};
|
|
8
|
+
export type Sum = {
|
|
9
|
+
tag: 'Sum';
|
|
10
|
+
value: SumTypeType;
|
|
11
|
+
};
|
|
12
|
+
export type Product = {
|
|
13
|
+
tag: 'Product';
|
|
14
|
+
value: ProductTypeType;
|
|
15
|
+
};
|
|
16
|
+
export type Array = {
|
|
17
|
+
tag: 'Array';
|
|
18
|
+
value: AlgebraicTypeType;
|
|
19
|
+
};
|
|
20
|
+
export type String = {
|
|
21
|
+
tag: 'String';
|
|
22
|
+
};
|
|
23
|
+
export type Bool = {
|
|
24
|
+
tag: 'Bool';
|
|
25
|
+
};
|
|
26
|
+
export type I8 = {
|
|
27
|
+
tag: 'I8';
|
|
28
|
+
};
|
|
29
|
+
export type U8 = {
|
|
30
|
+
tag: 'U8';
|
|
31
|
+
};
|
|
32
|
+
export type I16 = {
|
|
33
|
+
tag: 'I16';
|
|
34
|
+
};
|
|
35
|
+
export type U16 = {
|
|
36
|
+
tag: 'U16';
|
|
37
|
+
};
|
|
38
|
+
export type I32 = {
|
|
39
|
+
tag: 'I32';
|
|
40
|
+
};
|
|
41
|
+
export type U32 = {
|
|
42
|
+
tag: 'U32';
|
|
43
|
+
};
|
|
44
|
+
export type I64 = {
|
|
45
|
+
tag: 'I64';
|
|
46
|
+
};
|
|
47
|
+
export type U64 = {
|
|
48
|
+
tag: 'U64';
|
|
49
|
+
};
|
|
50
|
+
export type I128 = {
|
|
51
|
+
tag: 'I128';
|
|
52
|
+
};
|
|
53
|
+
export type U128 = {
|
|
54
|
+
tag: 'U128';
|
|
55
|
+
};
|
|
56
|
+
export type I256 = {
|
|
57
|
+
tag: 'I256';
|
|
58
|
+
};
|
|
59
|
+
export type U256 = {
|
|
60
|
+
tag: 'U256';
|
|
61
|
+
};
|
|
62
|
+
export type F32 = {
|
|
63
|
+
tag: 'F32';
|
|
64
|
+
};
|
|
65
|
+
export type F64 = {
|
|
66
|
+
tag: 'F64';
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=algebraic_type_variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"algebraic_type_variants.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/algebraic_type_variants.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG3E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGzD,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAIrE,MAAM,MAAM,GAAG,GAAG;IAAE,GAAG,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAChD,MAAM,MAAM,GAAG,GAAG;IAAE,GAAG,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,WAAW,CAAA;CAAE,CAAC;AACrD,MAAM,MAAM,OAAO,GAAG;IAAE,GAAG,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,eAAe,CAAA;CAAE,CAAC;AACjE,MAAM,MAAM,KAAK,GAAG;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAC/D,MAAM,MAAM,MAAM,GAAG;IAAE,GAAG,EAAE,QAAQ,CAAA;CAAE,CAAC;AACvC,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AACnC,MAAM,MAAM,EAAE,GAAG;IAAE,GAAG,EAAE,IAAI,CAAA;CAAE,CAAC;AAC/B,MAAM,MAAM,EAAE,GAAG;IAAE,GAAG,EAAE,IAAI,CAAA;CAAE,CAAC;AAC/B,MAAM,MAAM,GAAG,GAAG;IAAE,GAAG,EAAE,KAAK,CAAA;CAAE,CAAC;AACjC,MAAM,MAAM,GAAG,GAAG;IAAE,GAAG,EAAE,KAAK,CAAA;CAAE,CAAC;AACjC,MAAM,MAAM,GAAG,GAAG;IAAE,GAAG,EAAE,KAAK,CAAA;CAAE,CAAC;AACjC,MAAM,MAAM,GAAG,GAAG;IAAE,GAAG,EAAE,KAAK,CAAA;CAAE,CAAC;AACjC,MAAM,MAAM,GAAG,GAAG;IAAE,GAAG,EAAE,KAAK,CAAA;CAAE,CAAC;AACjC,MAAM,MAAM,GAAG,GAAG;IAAE,GAAG,EAAE,KAAK,CAAA;CAAE,CAAC;AACjC,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AACnC,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AACnC,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AACnC,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AACnC,MAAM,MAAM,GAAG,GAAG;IAAE,GAAG,EAAE,KAAK,CAAA;CAAE,CAAC;AACjC,MAAM,MAAM,GAAG,GAAG;IAAE,GAAG,EAAE,KAAK,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
import * as IndexTypeVariants from './index_type_variants';
|
|
3
|
+
export type IndexType = IndexTypeVariants.BTree | IndexTypeVariants.Hash;
|
|
4
|
+
export declare const IndexType: {
|
|
5
|
+
BTree: {
|
|
6
|
+
readonly tag: "BTree";
|
|
7
|
+
};
|
|
8
|
+
Hash: {
|
|
9
|
+
readonly tag: "Hash";
|
|
10
|
+
};
|
|
11
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
12
|
+
serialize(writer: __BinaryWriter, value: IndexType): void;
|
|
13
|
+
deserialize(reader: __BinaryReader): IndexType;
|
|
14
|
+
};
|
|
15
|
+
export default IndexType;
|
|
16
|
+
//# sourceMappingURL=index_type_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index_type_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/index_type_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,iBAAiB,MAAM,uBAAuB,CAAC;AAG3D,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC,KAAK,GAAG,iBAAiB,CAAC,IAAI,CAAC;AAGzE,eAAO,MAAM,SAAS;;;;;;;kCAUU,mBAAmB;sBAe/B,cAAc,SAAS,SAAS,GAAG,IAAI;wBAQrC,cAAc,GAAG,SAAS;CAM/C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index_type_variants.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/index_type_variants.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,KAAK,GAAG;IAAE,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC;AACrC,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
import * as LifecycleVariants from './lifecycle_variants';
|
|
3
|
+
export type Lifecycle = LifecycleVariants.Init | LifecycleVariants.OnConnect | LifecycleVariants.OnDisconnect;
|
|
4
|
+
export declare const Lifecycle: {
|
|
5
|
+
Init: {
|
|
6
|
+
readonly tag: "Init";
|
|
7
|
+
};
|
|
8
|
+
OnConnect: {
|
|
9
|
+
readonly tag: "OnConnect";
|
|
10
|
+
};
|
|
11
|
+
OnDisconnect: {
|
|
12
|
+
readonly tag: "OnDisconnect";
|
|
13
|
+
};
|
|
14
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
15
|
+
serialize(writer: __BinaryWriter, value: Lifecycle): void;
|
|
16
|
+
deserialize(reader: __BinaryReader): Lifecycle;
|
|
17
|
+
};
|
|
18
|
+
export default Lifecycle;
|
|
19
|
+
//# sourceMappingURL=lifecycle_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/lifecycle_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,iBAAiB,MAAM,sBAAsB,CAAC;AAG1D,MAAM,MAAM,SAAS,GACjB,iBAAiB,CAAC,IAAI,GACtB,iBAAiB,CAAC,SAAS,GAC3B,iBAAiB,CAAC,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;kCAWU,mBAAmB;sBAmB/B,cAAc,SAAS,SAAS,GAAG,IAAI;wBAQrC,cAAc,GAAG,SAAS;CAM/C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle_variants.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/lifecycle_variants.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AACnC,MAAM,MAAM,SAAS,GAAG;IAAE,GAAG,EAAE,WAAW,CAAA;CAAE,CAAC;AAC7C,MAAM,MAAM,YAAY,GAAG;IAAE,GAAG,EAAE,cAAc,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
import { TypeAlias } from './type_alias_type';
|
|
3
|
+
import * as MiscModuleExportVariants from './misc_module_export_variants';
|
|
4
|
+
export type MiscModuleExport = MiscModuleExportVariants.TypeAlias;
|
|
5
|
+
export declare const MiscModuleExport: {
|
|
6
|
+
TypeAlias: (value: TypeAlias) => MiscModuleExport;
|
|
7
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
8
|
+
serialize(writer: __BinaryWriter, value: MiscModuleExport): void;
|
|
9
|
+
deserialize(reader: __BinaryReader): MiscModuleExport;
|
|
10
|
+
};
|
|
11
|
+
export default MiscModuleExport;
|
|
12
|
+
//# sourceMappingURL=misc_module_export_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misc_module_export_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/misc_module_export_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI9C,OAAO,KAAK,wBAAwB,MAAM,+BAA+B,CAAC;AAG1E,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,CAAC,SAAS,CAAC;AAGlE,eAAO,MAAM,gBAAgB;uBAOR,SAAS,KAAG,gBAAgB;kCAKjB,mBAAmB;sBAW/B,cAAc,SAAS,gBAAgB,GAAG,IAAI;wBAQ5C,cAAc,GAAG,gBAAgB;CAMtD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misc_module_export_variants.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/misc_module_export_variants.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAI/D,MAAM,MAAM,SAAS,GAAG;IAAE,GAAG,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,aAAa,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
import { AlgebraicType } from './algebraic_type_type';
|
|
3
|
+
export type ProductTypeElement = {
|
|
4
|
+
name: string | undefined;
|
|
5
|
+
algebraicType: AlgebraicType;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* An object for generated helper functions.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ProductTypeElement: {
|
|
11
|
+
/**
|
|
12
|
+
* A function which returns this type represented as an AlgebraicType.
|
|
13
|
+
* This function is derived from the AlgebraicType used to generate this type.
|
|
14
|
+
*/
|
|
15
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
16
|
+
serialize(writer: __BinaryWriter, value: ProductTypeElement): void;
|
|
17
|
+
deserialize(reader: __BinaryReader): ProductTypeElement;
|
|
18
|
+
};
|
|
19
|
+
export default ProductTypeElement;
|
|
20
|
+
//# sourceMappingURL=product_type_element_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product_type_element_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/product_type_element_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAItD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC7B;;;OAGG;kCAC2B,mBAAmB;sBAiB/B,cAAc,SAAS,kBAAkB,GAAG,IAAI;wBAQ9C,cAAc,GAAG,kBAAkB;CAMxD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
import { ProductTypeElement } from './product_type_element_type';
|
|
3
|
+
export type ProductType = {
|
|
4
|
+
elements: ProductTypeElement[];
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* An object for generated helper functions.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ProductType: {
|
|
10
|
+
/**
|
|
11
|
+
* A function which returns this type represented as an AlgebraicType.
|
|
12
|
+
* This function is derived from the AlgebraicType used to generate this type.
|
|
13
|
+
*/
|
|
14
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
15
|
+
serialize(writer: __BinaryWriter, value: ProductType): void;
|
|
16
|
+
deserialize(reader: __BinaryReader): ProductType;
|
|
17
|
+
};
|
|
18
|
+
export default ProductType;
|
|
19
|
+
//# sourceMappingURL=product_type_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product_type_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/product_type_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAIjE,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,kBAAkB,EAAE,CAAC;CAChC,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,WAAW;IACtB;;;OAGG;kCAC2B,mBAAmB;sBAa/B,cAAc,SAAS,WAAW,GAAG,IAAI;wBAQvC,cAAc,GAAG,WAAW;CAMjD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
import { AlgebraicType } from './algebraic_type_type';
|
|
3
|
+
export type RawColumnDefV8 = {
|
|
4
|
+
colName: string;
|
|
5
|
+
colType: AlgebraicType;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* An object for generated helper functions.
|
|
9
|
+
*/
|
|
10
|
+
export declare const RawColumnDefV8: {
|
|
11
|
+
/**
|
|
12
|
+
* A function which returns this type represented as an AlgebraicType.
|
|
13
|
+
* This function is derived from the AlgebraicType used to generate this type.
|
|
14
|
+
*/
|
|
15
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
16
|
+
serialize(writer: __BinaryWriter, value: RawColumnDefV8): void;
|
|
17
|
+
deserialize(reader: __BinaryReader): RawColumnDefV8;
|
|
18
|
+
};
|
|
19
|
+
export default RawColumnDefV8;
|
|
20
|
+
//# sourceMappingURL=raw_column_def_v_8_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw_column_def_v_8_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/raw_column_def_v_8_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAItD,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,cAAc;IACzB;;;OAGG;kCAC2B,mBAAmB;sBAY/B,cAAc,SAAS,cAAc,GAAG,IAAI;wBAQ1C,cAAc,GAAG,cAAc;CAMpD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
export type RawColumnDefaultValueV9 = {
|
|
3
|
+
table: string;
|
|
4
|
+
colId: number;
|
|
5
|
+
value: Uint8Array;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* An object for generated helper functions.
|
|
9
|
+
*/
|
|
10
|
+
export declare const RawColumnDefaultValueV9: {
|
|
11
|
+
/**
|
|
12
|
+
* A function which returns this type represented as an AlgebraicType.
|
|
13
|
+
* This function is derived from the AlgebraicType used to generate this type.
|
|
14
|
+
*/
|
|
15
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
16
|
+
serialize(writer: __BinaryWriter, value: RawColumnDefaultValueV9): void;
|
|
17
|
+
deserialize(reader: __BinaryReader): RawColumnDefaultValueV9;
|
|
18
|
+
};
|
|
19
|
+
export default RawColumnDefaultValueV9;
|
|
20
|
+
//# sourceMappingURL=raw_column_default_value_v_9_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw_column_default_value_v_9_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/raw_column_default_value_v_9_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,uBAAuB;IAClC;;;OAGG;kCAC2B,mBAAmB;sBAa/B,cAAc,SAAS,uBAAuB,GAAG,IAAI;wBAQnD,cAAc,GAAG,uBAAuB;CAM7D,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
import { RawUniqueConstraintDataV9 } from './raw_unique_constraint_data_v_9_type';
|
|
3
|
+
import * as RawConstraintDataV9Variants from './raw_constraint_data_v_9_variants';
|
|
4
|
+
export type RawConstraintDataV9 = RawConstraintDataV9Variants.Unique;
|
|
5
|
+
export declare const RawConstraintDataV9: {
|
|
6
|
+
Unique: (value: RawUniqueConstraintDataV9) => RawConstraintDataV9;
|
|
7
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
8
|
+
serialize(writer: __BinaryWriter, value: RawConstraintDataV9): void;
|
|
9
|
+
deserialize(reader: __BinaryReader): RawConstraintDataV9;
|
|
10
|
+
};
|
|
11
|
+
export default RawConstraintDataV9;
|
|
12
|
+
//# sourceMappingURL=raw_constraint_data_v_9_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw_constraint_data_v_9_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/raw_constraint_data_v_9_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAIlF,OAAO,KAAK,2BAA2B,MAAM,oCAAoC,CAAC;AAGlF,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,CAAC,MAAM,CAAC;AAGrE,eAAO,MAAM,mBAAmB;oBAOd,yBAAyB,KAAG,mBAAmB;kCAKjC,mBAAmB;sBAW/B,cAAc,SAAS,mBAAmB,GAAG,IAAI;wBAQ/C,cAAc,GAAG,mBAAmB;CAMzD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw_constraint_data_v_9_variants.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/raw_constraint_data_v_9_variants.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,yBAAyB,IAAI,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAKnH,MAAM,MAAM,MAAM,GAAG;IAAE,GAAG,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,6BAA6B,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
export type RawConstraintDefV8 = {
|
|
3
|
+
constraintName: string;
|
|
4
|
+
constraints: number;
|
|
5
|
+
columns: number[];
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* An object for generated helper functions.
|
|
9
|
+
*/
|
|
10
|
+
export declare const RawConstraintDefV8: {
|
|
11
|
+
/**
|
|
12
|
+
* A function which returns this type represented as an AlgebraicType.
|
|
13
|
+
* This function is derived from the AlgebraicType used to generate this type.
|
|
14
|
+
*/
|
|
15
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
16
|
+
serialize(writer: __BinaryWriter, value: RawConstraintDefV8): void;
|
|
17
|
+
deserialize(reader: __BinaryReader): RawConstraintDefV8;
|
|
18
|
+
};
|
|
19
|
+
export default RawConstraintDefV8;
|
|
20
|
+
//# sourceMappingURL=raw_constraint_def_v_8_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw_constraint_def_v_8_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/raw_constraint_def_v_8_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC7B;;;OAGG;kCAC2B,mBAAmB;sBAa/B,cAAc,SAAS,kBAAkB,GAAG,IAAI;wBAQ9C,cAAc,GAAG,kBAAkB;CAMxD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
import { RawConstraintDataV9 } from './raw_constraint_data_v_9_type';
|
|
3
|
+
export type RawConstraintDefV9 = {
|
|
4
|
+
name: string | undefined;
|
|
5
|
+
data: RawConstraintDataV9;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* An object for generated helper functions.
|
|
9
|
+
*/
|
|
10
|
+
export declare const RawConstraintDefV9: {
|
|
11
|
+
/**
|
|
12
|
+
* A function which returns this type represented as an AlgebraicType.
|
|
13
|
+
* This function is derived from the AlgebraicType used to generate this type.
|
|
14
|
+
*/
|
|
15
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
16
|
+
serialize(writer: __BinaryWriter, value: RawConstraintDefV9): void;
|
|
17
|
+
deserialize(reader: __BinaryReader): RawConstraintDefV9;
|
|
18
|
+
};
|
|
19
|
+
export default RawConstraintDefV9;
|
|
20
|
+
//# sourceMappingURL=raw_constraint_def_v_9_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw_constraint_def_v_9_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/raw_constraint_def_v_9_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAIrE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,IAAI,EAAE,mBAAmB,CAAC;CAC3B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC7B;;;OAGG;kCAC2B,mBAAmB;sBAiB/B,cAAc,SAAS,kBAAkB,GAAG,IAAI;wBAQ9C,cAAc,GAAG,kBAAkB;CAMxD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
import * as RawIndexAlgorithmVariants from './raw_index_algorithm_variants';
|
|
3
|
+
export type RawIndexAlgorithm = RawIndexAlgorithmVariants.BTree | RawIndexAlgorithmVariants.Hash | RawIndexAlgorithmVariants.Direct;
|
|
4
|
+
export declare const RawIndexAlgorithm: {
|
|
5
|
+
BTree: (value: number[]) => RawIndexAlgorithm;
|
|
6
|
+
Hash: (value: number[]) => RawIndexAlgorithm;
|
|
7
|
+
Direct: (value: number) => RawIndexAlgorithm;
|
|
8
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
9
|
+
serialize(writer: __BinaryWriter, value: RawIndexAlgorithm): void;
|
|
10
|
+
deserialize(reader: __BinaryReader): RawIndexAlgorithm;
|
|
11
|
+
};
|
|
12
|
+
export default RawIndexAlgorithm;
|
|
13
|
+
//# sourceMappingURL=raw_index_algorithm_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw_index_algorithm_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/raw_index_algorithm_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,yBAAyB,MAAM,gCAAgC,CAAC;AAG5E,MAAM,MAAM,iBAAiB,GACzB,yBAAyB,CAAC,KAAK,GAC/B,yBAAyB,CAAC,IAAI,GAC9B,yBAAyB,CAAC,MAAM,CAAC;AAGrC,eAAO,MAAM,iBAAiB;mBAOb,MAAM,EAAE,KAAG,iBAAiB;kBAC7B,MAAM,EAAE,KAAG,iBAAiB;oBAC1B,MAAM,KAAG,iBAAiB;kCAEZ,mBAAmB;sBAgB/B,cAAc,SAAS,iBAAiB,GAAG,IAAI;wBAQ7C,cAAc,GAAG,iBAAiB;CAMvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw_index_algorithm_variants.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/raw_index_algorithm_variants.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,KAAK,GAAG;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AACtD,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AACpD,MAAM,MAAM,MAAM,GAAG;IAAE,GAAG,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BinaryReader as __BinaryReader, BinaryWriter as __BinaryWriter, type AlgebraicType as __AlgebraicTypeType } from '../../index';
|
|
2
|
+
import { IndexType } from './index_type_type';
|
|
3
|
+
export type RawIndexDefV8 = {
|
|
4
|
+
indexName: string;
|
|
5
|
+
isUnique: boolean;
|
|
6
|
+
indexType: IndexType;
|
|
7
|
+
columns: number[];
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* An object for generated helper functions.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RawIndexDefV8: {
|
|
13
|
+
/**
|
|
14
|
+
* A function which returns this type represented as an AlgebraicType.
|
|
15
|
+
* This function is derived from the AlgebraicType used to generate this type.
|
|
16
|
+
*/
|
|
17
|
+
getTypeScriptAlgebraicType(): __AlgebraicTypeType;
|
|
18
|
+
serialize(writer: __BinaryWriter, value: RawIndexDefV8): void;
|
|
19
|
+
deserialize(reader: __BinaryReader): RawIndexDefV8;
|
|
20
|
+
};
|
|
21
|
+
export default RawIndexDefV8;
|
|
22
|
+
//# sourceMappingURL=raw_index_def_v_8_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw_index_def_v_8_type.d.ts","sourceRoot":"","sources":["../../../src/lib/autogen/raw_index_def_v_8_type.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAM9B,KAAK,aAAa,IAAI,mBAAmB,EAE1C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI9C,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,aAAa;IACxB;;;OAGG;kCAC2B,mBAAmB;sBAiB/B,cAAc,SAAS,aAAa,GAAG,IAAI;wBAQzC,cAAc,GAAG,aAAa;CAMnD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|