@trust0/ridb-core 1.7.36 → 1.7.38

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.
@@ -1,27 +1,12 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- */
5
- declare function main_js(): void;
6
- /**
7
4
  * @returns {boolean}
8
5
  */
9
6
  declare function is_debug_mode(): boolean;
10
7
  /**
11
- * Handler for `console.log` invocations.
12
- *
13
- * If a test is currently running it takes the `args` array and stringifies
14
- * it and appends it to the current output of the test. Otherwise it passes
15
- * the arguments to the original `console.log` function, psased as
16
- * `original`.
17
- * @param {Array<any>} args
18
- */
19
- declare function __wbgtest_console_log(args: Array<any>): void;
20
- /**
21
- * Handler for `console.debug` invocations. See above.
22
- * @param {Array<any>} args
23
8
  */
24
- declare function __wbgtest_console_debug(args: Array<any>): void;
9
+ declare function main_js(): void;
25
10
  /**
26
11
  * Handler for `console.info` invocations. See above.
27
12
  * @param {Array<any>} args
@@ -33,6 +18,21 @@ declare function __wbgtest_console_info(args: Array<any>): void;
33
18
  */
34
19
  declare function __wbgtest_console_warn(args: Array<any>): void;
35
20
  /**
21
+ * Handler for `console.debug` invocations. See above.
22
+ * @param {Array<any>} args
23
+ */
24
+ declare function __wbgtest_console_debug(args: Array<any>): void;
25
+ /**
26
+ * Handler for `console.log` invocations.
27
+ *
28
+ * If a test is currently running it takes the `args` array and stringifies
29
+ * it and appends it to the current output of the test. Otherwise it passes
30
+ * the arguments to the original `console.log` function, psased as
31
+ * `original`.
32
+ * @param {Array<any>} args
33
+ */
34
+ declare function __wbgtest_console_log(args: Array<any>): void;
35
+ /**
36
36
  * Handler for `console.error` invocations. See above.
37
37
  * @param {Array<any>} args
38
38
  */
@@ -73,6 +73,42 @@ declare enum Errors {
73
73
  AuthenticationError = 5,
74
74
  }
75
75
 
76
+ type Operators<T> = {
77
+ $gte?: number,
78
+ $gt?: number
79
+ $lt?: number,
80
+ $lte?: number,
81
+ $eq?: T,
82
+ $ne?: T
83
+ };
84
+
85
+ type InOperator<T> = { $in?: T[] };
86
+ type NInOperator<T> = { $nin?: T[] };
87
+
88
+ type OperatorOrType<T> = T extends number ?
89
+ T | Operators<T> | InOperator<T> | NInOperator<T> :
90
+ T | InOperator<T> | NInOperator<T>;
91
+
92
+ type LogicalOperators<T extends SchemaType> = {
93
+ $and?: Partial<QueryType<T>>[];
94
+ $or?: Partial<QueryType<T>>[];
95
+ };
96
+
97
+ type QueryType<T extends SchemaType> = ({
98
+ [K in keyof T['properties']as ExtractType<T['properties'][K]['type']> extends undefined ? never : K]?: OperatorOrType<
99
+ ExtractType<
100
+ T['properties'][K]['type']
101
+ >
102
+ >
103
+ } & LogicalOperators<T>) | LogicalOperators<T>[];
104
+
105
+ declare class Query<T extends SchemaType> {
106
+ constructor(query: QueryType<T>, schema:Schema<T>);
107
+ readonly query: QueryType<T>;
108
+ }
109
+
110
+
111
+
76
112
  declare const SchemaFieldType = {
77
113
  /**
78
114
  * String type for text data
@@ -210,25 +246,15 @@ declare class Schema<T extends SchemaType> {
210
246
 
211
247
 
212
248
 
213
- /**
214
- * Represents an in-memory storage system extending the base storage functionality.
215
- *
216
- * @template T - The schema type.
217
- */
218
- declare class InMemory<T extends SchemaTypeRecord> extends BaseStorage<T> {
249
+ declare class CoreStorage {
219
250
  /**
220
- * Frees the resources used by the in-memory storage.
221
- */
222
- free(): void;
223
-
224
- static create<SchemasCreate extends SchemaTypeRecord>(
225
- dbName: string,
226
- schemas: SchemasCreate,
227
- ): Promise<
228
- InMemory<
229
- SchemasCreate
230
- >
231
- >;
251
+ * @param {any} document
252
+ * @param {Query} query
253
+ * @returns {boolean}
254
+ */
255
+ matchesQuery(document: any, query: Query<any>): boolean;
256
+ getPrimaryKeyTyped(value: any): string | number;
257
+ getIndexes(schema: Schema<any>, op: Operation): string[];
232
258
  }
233
259
 
234
260
 
@@ -374,6 +400,118 @@ type RIDBModule = {
374
400
 
375
401
 
376
402
 
403
+ /**
404
+ * Represents a property within a schema, including various constraints and nested properties.
405
+ */
406
+ declare class Property {
407
+ /**
408
+ * The type of the property.
409
+ */
410
+ readonly type: SchemaFieldType;
411
+
412
+ /**
413
+ * The version of the property, if applicable.
414
+ */
415
+ readonly version?: number;
416
+
417
+ /**
418
+ * The primary key of the property, if applicable.
419
+ */
420
+ readonly primaryKey?: string;
421
+
422
+ /**
423
+ * An optional array of nested properties for array-type properties.
424
+ */
425
+ readonly items?: Property;
426
+
427
+ /**
428
+ * The maximum number of items for array-type properties, if applicable.
429
+ */
430
+ readonly maxItems?: number;
431
+
432
+ /**
433
+ * The minimum number of items for array-type properties, if applicable.
434
+ */
435
+ readonly minItems?: number;
436
+
437
+ /**
438
+ * The maximum length for string-type properties, if applicable.
439
+ */
440
+ readonly maxLength?: number;
441
+
442
+ /**
443
+ * The minimum length for string-type properties, if applicable.
444
+ */
445
+ readonly minLength?: number;
446
+
447
+ /**
448
+ * An optional array of required fields for object-type properties.
449
+ */
450
+ readonly required?: boolean;
451
+
452
+ /**
453
+ * An optional default value for the property.
454
+ */
455
+ readonly default?: any;
456
+
457
+ /**
458
+ * An optional map of nested properties for object-type properties.
459
+ */
460
+ readonly properties?: {
461
+ [name: string]: Property;
462
+ };
463
+ }
464
+
465
+
466
+
467
+ type EnumerateUpTo<
468
+ N extends number,
469
+ Acc extends number[] = []
470
+ > = Acc['length'] extends N ?
471
+ Acc[number]:
472
+ EnumerateUpTo<N, [...Acc, Acc['length']]> ;
473
+
474
+ type EnumerateFrom1To<
475
+ N extends number
476
+ > = Exclude<EnumerateUpTo<N>,0> | (N extends 0 ? never : N);
477
+
478
+ type IsVersionGreaterThan0<
479
+ V extends number
480
+ > = V extends 0 ? false : true;
481
+
482
+ type AnyVersionGreaterThan1<
483
+ T extends Record<string, SchemaType>
484
+ > = true extends {
485
+ [K in keyof T]: IsVersionGreaterThan0<T[K]['version']>;
486
+ } [keyof T] ? true : false;
487
+
488
+ type MigrationFunction<T extends SchemaType> = (doc: Doc <T> ) => Doc <T>
489
+
490
+ type MigrationPathsForSchema<
491
+ T extends SchemaType
492
+ > = T['version'] extends 0 ? {}: // No migrations needed for version 1
493
+ {
494
+ [K in EnumerateFrom1To < T['version'] > ]: MigrationFunction<T> ;
495
+ };
496
+
497
+ type MigrationPathsForSchemas<
498
+ T extends SchemaTypeRecord
499
+ > = {
500
+ [K in keyof T]: MigrationPathsForSchema<T[K]>;
501
+ };
502
+
503
+ type MigrationsParameter<
504
+ T extends SchemaTypeRecord
505
+ > = AnyVersionGreaterThan1<T> extends true ?
506
+ {
507
+ migrations: MigrationPathsForSchemas<T>
508
+ }:
509
+ {
510
+ migrations?: never
511
+ };
512
+
513
+
514
+
377
515
  type Hook = (
378
516
  schema: Schema<SchemaType>,
379
517
  migration: MigrationPathsForSchema<SchemaType>,
@@ -392,42 +530,6 @@ declare class BasePlugin implements BasePluginOptions {
392
530
 
393
531
 
394
532
 
395
- /**
396
- * Represents an IndexDB storage system extending the base storage functionality.
397
- *
398
- * @template T - The schema type.
399
- */
400
- declare class IndexDB<T extends SchemaTypeRecord> extends BaseStorage<T> {
401
- /**
402
- * Frees the resources used by the in-memory storage.
403
- */
404
- free(): void;
405
-
406
- static create<SchemasCreate extends SchemaTypeRecord>(
407
- dbName: string,
408
- schemas: SchemasCreate,
409
- ): Promise<
410
- IndexDB<
411
- SchemasCreate
412
- >
413
- >;
414
- }
415
-
416
-
417
-
418
- declare class CoreStorage {
419
- /**
420
- * @param {any} document
421
- * @param {Query} query
422
- * @returns {boolean}
423
- */
424
- matchesQuery(document: any, query: Query<any>): boolean;
425
- getPrimaryKeyTyped(value: any): string | number;
426
- getIndexes(schema: Schema<any>, op: Operation): string[];
427
- }
428
-
429
-
430
-
431
533
  type InternalsRecord = {
432
534
  [name: string]: BaseStorage<SchemaTypeRecord>
433
535
  };
@@ -547,102 +649,25 @@ declare class Collection<T extends SchemaType> {
547
649
 
548
650
 
549
651
 
550
- type Operators<T> = {
551
- $gte?: number,
552
- $gt?: number
553
- $lt?: number,
554
- $lte?: number,
555
- $eq?: T,
556
- $ne?: T
557
- };
558
-
559
- type InOperator<T> = { $in?: T[] };
560
- type NInOperator<T> = { $nin?: T[] };
561
-
562
- type OperatorOrType<T> = T extends number ?
563
- T | Operators<T> | InOperator<T> | NInOperator<T> :
564
- T | InOperator<T> | NInOperator<T>;
565
-
566
- type LogicalOperators<T extends SchemaType> = {
567
- $and?: Partial<QueryType<T>>[];
568
- $or?: Partial<QueryType<T>>[];
569
- };
570
-
571
- type QueryType<T extends SchemaType> = ({
572
- [K in keyof T['properties']as ExtractType<T['properties'][K]['type']> extends undefined ? never : K]?: OperatorOrType<
573
- ExtractType<
574
- T['properties'][K]['type']
575
- >
576
- >
577
- } & LogicalOperators<T>) | LogicalOperators<T>[];
578
-
579
- declare class Query<T extends SchemaType> {
580
- constructor(query: QueryType<T>, schema:Schema<T>);
581
- readonly query: QueryType<T>;
582
- }
583
-
584
-
585
-
586
652
  /**
587
- * Represents a property within a schema, including various constraints and nested properties.
653
+ * Represents an in-memory storage system extending the base storage functionality.
654
+ *
655
+ * @template T - The schema type.
588
656
  */
589
- declare class Property {
590
- /**
591
- * The type of the property.
592
- */
593
- readonly type: SchemaFieldType;
594
-
595
- /**
596
- * The version of the property, if applicable.
597
- */
598
- readonly version?: number;
599
-
600
- /**
601
- * The primary key of the property, if applicable.
602
- */
603
- readonly primaryKey?: string;
604
-
605
- /**
606
- * An optional array of nested properties for array-type properties.
607
- */
608
- readonly items?: Property;
609
-
610
- /**
611
- * The maximum number of items for array-type properties, if applicable.
612
- */
613
- readonly maxItems?: number;
614
-
615
- /**
616
- * The minimum number of items for array-type properties, if applicable.
617
- */
618
- readonly minItems?: number;
619
-
620
- /**
621
- * The maximum length for string-type properties, if applicable.
622
- */
623
- readonly maxLength?: number;
624
-
625
- /**
626
- * The minimum length for string-type properties, if applicable.
627
- */
628
- readonly minLength?: number;
629
-
630
- /**
631
- * An optional array of required fields for object-type properties.
632
- */
633
- readonly required?: boolean;
634
-
657
+ declare class InMemory<T extends SchemaTypeRecord> extends BaseStorage<T> {
635
658
  /**
636
- * An optional default value for the property.
659
+ * Frees the resources used by the in-memory storage.
637
660
  */
638
- readonly default?: any;
661
+ free(): void;
639
662
 
640
- /**
641
- * An optional map of nested properties for object-type properties.
642
- */
643
- readonly properties?: {
644
- [name: string]: Property;
645
- };
663
+ static create<SchemasCreate extends SchemaTypeRecord>(
664
+ dbName: string,
665
+ schemas: SchemasCreate,
666
+ ): Promise<
667
+ InMemory<
668
+ SchemasCreate
669
+ >
670
+ >;
646
671
  }
647
672
 
648
673
 
@@ -709,51 +734,26 @@ declare abstract class StorageInternal<Schemas extends SchemaTypeRecord> {
709
734
  }
710
735
 
711
736
 
712
- type EnumerateUpTo<
713
- N extends number,
714
- Acc extends number[] = []
715
- > = Acc['length'] extends N ?
716
- Acc[number]:
717
- EnumerateUpTo<N, [...Acc, Acc['length']]> ;
718
-
719
- type EnumerateFrom1To<
720
- N extends number
721
- > = Exclude<EnumerateUpTo<N>,0> | (N extends 0 ? never : N);
722
-
723
- type IsVersionGreaterThan0<
724
- V extends number
725
- > = V extends 0 ? false : true;
726
-
727
- type AnyVersionGreaterThan1<
728
- T extends Record<string, SchemaType>
729
- > = true extends {
730
- [K in keyof T]: IsVersionGreaterThan0<T[K]['version']>;
731
- } [keyof T] ? true : false;
732
-
733
- type MigrationFunction<T extends SchemaType> = (doc: Doc <T> ) => Doc <T>
734
-
735
- type MigrationPathsForSchema<
736
- T extends SchemaType
737
- > = T['version'] extends 0 ? {}: // No migrations needed for version 1
738
- {
739
- [K in EnumerateFrom1To < T['version'] > ]: MigrationFunction<T> ;
740
- };
741
-
742
- type MigrationPathsForSchemas<
743
- T extends SchemaTypeRecord
744
- > = {
745
- [K in keyof T]: MigrationPathsForSchema<T[K]>;
746
- };
737
+ /**
738
+ * Represents an IndexDB storage system extending the base storage functionality.
739
+ *
740
+ * @template T - The schema type.
741
+ */
742
+ declare class IndexDB<T extends SchemaTypeRecord> extends BaseStorage<T> {
743
+ /**
744
+ * Frees the resources used by the in-memory storage.
745
+ */
746
+ free(): void;
747
747
 
748
- type MigrationsParameter<
749
- T extends SchemaTypeRecord
750
- > = AnyVersionGreaterThan1<T> extends true ?
751
- {
752
- migrations: MigrationPathsForSchemas<T>
753
- }:
754
- {
755
- migrations?: never
756
- };
748
+ static create<SchemasCreate extends SchemaTypeRecord>(
749
+ dbName: string,
750
+ schemas: SchemasCreate,
751
+ ): Promise<
752
+ IndexDB<
753
+ SchemasCreate
754
+ >
755
+ >;
756
+ }
757
757
 
758
758
 
759
759
  /**
@@ -769,52 +769,52 @@ declare class RIDBError {
769
769
  toString(): string;
770
770
  free(): void;
771
771
  /**
772
- * @param {string} err_type
773
- * @param {string} message
772
+ * @param {string} err
774
773
  * @param {number} code
775
- */
776
- constructor(err_type: string, message: string, code: number);
777
- /**
778
- * @param {any} err
779
774
  * @returns {RIDBError}
780
775
  */
781
- static from(err: any): RIDBError;
776
+ static validation(err: string, code: number): RIDBError;
782
777
  /**
783
778
  * @param {string} err
784
779
  * @param {number} code
785
780
  * @returns {RIDBError}
786
781
  */
787
- static error(err: string, code: number): RIDBError;
782
+ static serialisation(err: string, code: number): RIDBError;
788
783
  /**
789
784
  * @param {string} err
790
785
  * @param {number} code
791
786
  * @returns {RIDBError}
792
787
  */
793
- static query(err: string, code: number): RIDBError;
788
+ static authentication(err: string, code: number): RIDBError;
794
789
  /**
795
- * @param {string} err
790
+ * @param {string} err_type
791
+ * @param {string} message
796
792
  * @param {number} code
797
- * @returns {RIDBError}
798
793
  */
799
- static authentication(err: string, code: number): RIDBError;
794
+ constructor(err_type: string, message: string, code: number);
800
795
  /**
801
796
  * @param {string} err
802
797
  * @param {number} code
803
798
  * @returns {RIDBError}
804
799
  */
805
- static serialisation(err: string, code: number): RIDBError;
800
+ static hook(err: string, code: number): RIDBError;
806
801
  /**
807
802
  * @param {string} err
808
803
  * @param {number} code
809
804
  * @returns {RIDBError}
810
805
  */
811
- static validation(err: string, code: number): RIDBError;
806
+ static error(err: string, code: number): RIDBError;
812
807
  /**
813
808
  * @param {string} err
814
809
  * @param {number} code
815
810
  * @returns {RIDBError}
816
811
  */
817
- static hook(err: string, code: number): RIDBError;
812
+ static query(err: string, code: number): RIDBError;
813
+ /**
814
+ * @param {any} err
815
+ * @returns {RIDBError}
816
+ */
817
+ static from(err: any): RIDBError;
818
818
  /**
819
819
  */
820
820
  readonly code: any;
@@ -842,12 +842,6 @@ declare class WasmBindgenTestContext {
842
842
  */
843
843
  constructor();
844
844
  /**
845
- * Inform this context about runtime arguments passed to the test
846
- * harness.
847
- * @param {any[]} args
848
- */
849
- args(args: any[]): void;
850
- /**
851
845
  * Executes a list of tests, returning a promise representing their
852
846
  * eventual completion.
853
847
  *
@@ -861,173 +855,179 @@ declare class WasmBindgenTestContext {
861
855
  * @returns {Promise<any>}
862
856
  */
863
857
  run(tests: any[]): Promise<any>;
858
+ /**
859
+ * Inform this context about runtime arguments passed to the test
860
+ * harness.
861
+ * @param {any[]} args
862
+ */
863
+ args(args: any[]): void;
864
864
  }
865
865
 
866
866
  type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
867
867
 
868
868
  interface InitOutput {
869
869
  readonly memory: WebAssembly.Memory;
870
- readonly __wbg_ridberror_free: (a: number) => void;
871
- readonly ridberror_new: (a: number, b: number, c: number, d: number, e: number) => number;
872
- readonly ridberror_type: (a: number, b: number) => void;
873
- readonly ridberror_code: (a: number) => number;
874
- readonly ridberror_message: (a: number, b: number) => void;
875
- readonly ridberror_from: (a: number) => number;
876
- readonly ridberror_error: (a: number, b: number, c: number) => number;
877
- readonly ridberror_query: (a: number, b: number, c: number) => number;
878
- readonly ridberror_authentication: (a: number, b: number, c: number) => number;
879
- readonly ridberror_serialisation: (a: number, b: number, c: number) => number;
880
- readonly ridberror_validation: (a: number, b: number, c: number) => number;
881
- readonly ridberror_hook: (a: number, b: number, c: number) => number;
882
- readonly __wbg_schema_free: (a: number) => void;
883
- readonly schema_validate: (a: number, b: number, c: number) => void;
884
- readonly schema_is_valid: (a: number, b: number) => void;
885
- readonly schema_create: (a: number, b: number) => void;
886
- readonly schema_version: (a: number) => number;
887
- readonly schema_primaryKey: (a: number, b: number) => void;
888
- readonly schema_type: (a: number, b: number) => void;
889
- readonly schema_indexes: (a: number, b: number) => void;
890
- readonly schema_encrypted: (a: number, b: number) => void;
891
- readonly schema_properties: (a: number, b: number) => void;
892
- readonly __wbgt_test_schema_creation_3: (a: number) => void;
893
- readonly __wbgt_test_schema_validation_4: (a: number) => void;
894
- readonly __wbgt_test_invalid_schema_5: (a: number) => void;
895
- readonly main_js: () => void;
896
- readonly is_debug_mode: () => number;
897
- readonly __wbg_inmemory_free: (a: number) => void;
898
- readonly inmemory_create: (a: number, b: number, c: number) => number;
899
- readonly inmemory_write: (a: number, b: number) => number;
900
- readonly inmemory_find: (a: number, b: number, c: number, d: number, e: number) => number;
901
- readonly inmemory_findDocumentById: (a: number, b: number, c: number, d: number) => number;
902
- readonly inmemory_count: (a: number, b: number, c: number, d: number, e: number) => number;
903
- readonly inmemory_close: (a: number) => number;
904
- readonly inmemory_start: (a: number) => number;
905
- readonly __wbg_basestorage_free: (a: number) => void;
906
- readonly basestorage_new: (a: number, b: number, c: number, d: number, e: number) => void;
907
- readonly basestorage_addIndexSchemas: (a: number, b: number) => void;
908
- readonly basestorage_getOption: (a: number, b: number, c: number, d: number) => void;
909
- readonly basestorage_getSchema: (a: number, b: number, c: number, d: number) => void;
910
- readonly basestorage_core: (a: number, b: number) => void;
911
- readonly __wbg_database_free: (a: number) => void;
912
- readonly database_start: (a: number) => number;
913
- readonly database_close: (a: number) => number;
914
- readonly database_started: (a: number) => number;
915
- readonly database_authenticate: (a: number, b: number, c: number) => number;
916
- readonly database_collections: (a: number, b: number) => void;
917
- readonly database_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
918
- readonly __wbg_baseplugin_free: (a: number) => void;
919
- readonly baseplugin_new: (a: number, b: number, c: number) => void;
920
- readonly baseplugin_name: (a: number) => number;
921
- readonly baseplugin_get_doc_create_hook: (a: number) => number;
922
- readonly baseplugin_get_doc_recover_hook: (a: number) => number;
923
- readonly baseplugin_set_doc_create_hook: (a: number, b: number) => void;
924
- readonly baseplugin_set_doc_recover_hook: (a: number, b: number) => void;
925
- readonly __wbg_indexdb_free: (a: number) => void;
926
- readonly indexdb_get_stores: (a: number, b: number) => void;
927
- readonly indexdb_get_store: (a: number, b: number, c: number, d: number) => void;
928
- readonly indexdb_get_store_readonly: (a: number, b: number, c: number, d: number) => void;
929
- readonly indexdb_create: (a: number, b: number, c: number) => number;
930
- readonly indexdb_write: (a: number, b: number) => number;
931
- readonly indexdb_find: (a: number, b: number, c: number, d: number, e: number) => number;
932
- readonly indexdb_findDocumentById: (a: number, b: number, c: number, d: number) => number;
933
- readonly indexdb_count: (a: number, b: number, c: number, d: number, e: number) => number;
934
- readonly indexdb_close: (a: number) => number;
935
- readonly indexdb_start: (a: number) => number;
936
- readonly corestorage_getPrimaryKeyTyped: (a: number, b: number, c: number) => void;
937
- readonly corestorage_getIndexes: (a: number, b: number, c: number, d: number) => void;
938
- readonly corestorage_matchesQuery: (a: number, b: number, c: number, d: number) => void;
939
- readonly __wbg_queryoptions_free: (a: number) => void;
940
- readonly queryoptions_limit: (a: number, b: number) => void;
941
- readonly queryoptions_offset: (a: number, b: number) => void;
942
- readonly corestorage_new: () => number;
943
- readonly __wbg_corestorage_free: (a: number) => void;
944
- readonly __wbg_collection_free: (a: number) => void;
945
- readonly collection_name: (a: number, b: number) => void;
946
- readonly collection_schema: (a: number, b: number) => void;
947
- readonly collection_find: (a: number, b: number, c: number) => number;
948
- readonly collection_parse_query_options: (a: number, b: number, c: number) => void;
949
- readonly collection_count: (a: number, b: number, c: number) => number;
950
- readonly collection_findById: (a: number, b: number) => number;
951
- readonly collection_update: (a: number, b: number) => number;
952
- readonly collection_create: (a: number, b: number) => number;
953
- readonly collection_delete: (a: number, b: number) => number;
954
870
  readonly __wbg_query_free: (a: number) => void;
955
- readonly query_new: (a: number, b: number, c: number) => void;
956
- readonly query_query: (a: number, b: number) => void;
957
- readonly query_get_properties: (a: number, b: number) => void;
958
- readonly query_parse: (a: number, b: number) => void;
959
- readonly query_process_query: (a: number, b: number, c: number) => void;
960
- readonly query_get: (a: number, b: number, c: number, d: number) => void;
961
- readonly query_has_or_operator: (a: number) => number;
962
- readonly __wbgt_test_get_properties_simple_fields_6: (a: number) => void;
963
- readonly __wbgt_test_get_properties_with_operators_7: (a: number) => void;
964
- readonly __wbgt_test_get_properties_with_logical_operators_8: (a: number) => void;
965
- readonly __wbgt_test_get_properties_nested_operators_9: (a: number) => void;
966
871
  readonly __wbgt_test_get_properties_array_values_10: (a: number) => void;
967
- readonly __wbgt_test_get_properties_empty_query_11: (a: number) => void;
968
872
  readonly __wbgt_test_get_properties_deeply_nested_12: (a: number) => void;
969
- readonly __wbgt_test_get_properties_with_multiple_same_props_13: (a: number) => void;
873
+ readonly __wbgt_test_get_properties_empty_query_11: (a: number) => void;
874
+ readonly __wbgt_test_get_properties_nested_operators_9: (a: number) => void;
875
+ readonly __wbgt_test_get_properties_simple_fields_6: (a: number) => void;
970
876
  readonly __wbgt_test_get_properties_with_array_at_top_level_14: (a: number) => void;
971
- readonly __wbgt_test_query_parse_operator_wrong_type_15: (a: number) => void;
972
- readonly __wbgt_test_query_parse_in_operator_16: (a: number) => void;
973
- readonly __wbgt_test_query_parse_in_operator_wrong_type_17: (a: number) => void;
974
- readonly __wbgt_test_query_get_query_normalization_simple_attributes_18: (a: number) => void;
975
- readonly __wbgt_test_query_get_query_normalization_with_logical_operator_19: (a: number) => void;
877
+ readonly __wbgt_test_get_properties_with_logical_operators_8: (a: number) => void;
878
+ readonly __wbgt_test_get_properties_with_multiple_same_props_13: (a: number) => void;
879
+ readonly __wbgt_test_get_properties_with_operators_7: (a: number) => void;
880
+ readonly __wbgt_test_query_get_query_normalization_complex_mixed_22: (a: number) => void;
976
881
  readonly __wbgt_test_query_get_query_normalization_nested_logical_operators_20: (a: number) => void;
977
882
  readonly __wbgt_test_query_get_query_normalization_only_logical_operator_21: (a: number) => void;
978
- readonly __wbgt_test_query_get_query_normalization_complex_mixed_22: (a: number) => void;
979
- readonly __wbgt_test_query_parse_empty_query_23: (a: number) => void;
883
+ readonly __wbgt_test_query_get_query_normalization_simple_attributes_18: (a: number) => void;
884
+ readonly __wbgt_test_query_get_query_normalization_with_logical_operator_19: (a: number) => void;
980
885
  readonly __wbgt_test_query_parse_age_query_24: (a: number) => void;
981
- readonly __wbgt_test_query_parse_non_object_query_25: (a: number) => void;
982
- readonly __wbgt_test_query_parse_multiple_operators_26: (a: number) => void;
983
- readonly __wbgt_test_query_parse_invalid_in_operator_27: (a: number) => void;
984
886
  readonly __wbgt_test_query_parse_empty_logical_operators_28: (a: number) => void;
985
- readonly __wbgt_test_query_parse_nin_operator_29: (a: number) => void;
986
- readonly __wbgt_test_query_parse_nin_operator_wrong_type_30: (a: number) => void;
887
+ readonly __wbgt_test_query_parse_empty_query_23: (a: number) => void;
987
888
  readonly __wbgt_test_query_parse_eq_operator_31: (a: number) => void;
988
889
  readonly __wbgt_test_query_parse_eq_operator_wrong_type_32: (a: number) => void;
890
+ readonly __wbgt_test_query_parse_in_operator_16: (a: number) => void;
891
+ readonly __wbgt_test_query_parse_in_operator_wrong_type_17: (a: number) => void;
892
+ readonly __wbgt_test_query_parse_invalid_in_operator_27: (a: number) => void;
893
+ readonly __wbgt_test_query_parse_multiple_operators_26: (a: number) => void;
989
894
  readonly __wbgt_test_query_parse_ne_operator_33: (a: number) => void;
990
895
  readonly __wbgt_test_query_parse_ne_operator_wrong_type_34: (a: number) => void;
896
+ readonly __wbgt_test_query_parse_nin_operator_29: (a: number) => void;
897
+ readonly __wbgt_test_query_parse_nin_operator_wrong_type_30: (a: number) => void;
898
+ readonly __wbgt_test_query_parse_non_object_query_25: (a: number) => void;
899
+ readonly __wbgt_test_query_parse_operator_wrong_type_15: (a: number) => void;
900
+ readonly query_get: (a: number, b: number, c: number, d: number) => void;
901
+ readonly query_get_properties: (a: number, b: number) => void;
902
+ readonly query_has_or_operator: (a: number) => number;
903
+ readonly query_new: (a: number, b: number, c: number) => void;
904
+ readonly query_parse: (a: number, b: number) => void;
905
+ readonly query_process_query: (a: number, b: number, c: number) => void;
906
+ readonly query_query: (a: number, b: number) => void;
907
+ readonly __wbg_queryoptions_free: (a: number) => void;
908
+ readonly __wbg_schema_free: (a: number) => void;
909
+ readonly __wbgt_test_invalid_schema_5: (a: number) => void;
910
+ readonly __wbgt_test_schema_creation_3: (a: number) => void;
911
+ readonly __wbgt_test_schema_validation_4: (a: number) => void;
912
+ readonly corestorage_getIndexes: (a: number, b: number, c: number, d: number) => void;
913
+ readonly corestorage_getPrimaryKeyTyped: (a: number, b: number, c: number) => void;
914
+ readonly corestorage_matchesQuery: (a: number, b: number, c: number, d: number) => void;
915
+ readonly queryoptions_limit: (a: number, b: number) => void;
916
+ readonly queryoptions_offset: (a: number, b: number) => void;
917
+ readonly schema_create: (a: number, b: number) => void;
918
+ readonly schema_encrypted: (a: number, b: number) => void;
919
+ readonly schema_indexes: (a: number, b: number) => void;
920
+ readonly schema_is_valid: (a: number, b: number) => void;
921
+ readonly schema_primaryKey: (a: number, b: number) => void;
922
+ readonly schema_properties: (a: number, b: number) => void;
923
+ readonly schema_type: (a: number, b: number) => void;
924
+ readonly schema_validate: (a: number, b: number, c: number) => void;
925
+ readonly schema_version: (a: number) => number;
926
+ readonly corestorage_new: () => number;
927
+ readonly __wbg_corestorage_free: (a: number) => void;
928
+ readonly __wbg_basestorage_free: (a: number) => void;
929
+ readonly __wbg_database_free: (a: number) => void;
930
+ readonly basestorage_addIndexSchemas: (a: number, b: number) => void;
931
+ readonly basestorage_core: (a: number, b: number) => void;
932
+ readonly basestorage_getOption: (a: number, b: number, c: number, d: number) => void;
933
+ readonly basestorage_getSchema: (a: number, b: number, c: number, d: number) => void;
934
+ readonly basestorage_new: (a: number, b: number, c: number, d: number, e: number) => void;
935
+ readonly database_authenticate: (a: number, b: number, c: number) => number;
936
+ readonly database_close: (a: number) => number;
937
+ readonly database_collections: (a: number, b: number) => void;
938
+ readonly database_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
939
+ readonly database_start: (a: number) => number;
940
+ readonly database_started: (a: number) => number;
941
+ readonly is_debug_mode: () => number;
942
+ readonly main_js: () => void;
991
943
  readonly __wbg_property_free: (a: number) => void;
944
+ readonly __wbgt_test_invalid_property_2: (a: number) => void;
945
+ readonly __wbgt_test_property_creation_0: (a: number) => void;
946
+ readonly __wbgt_test_property_validation_1: (a: number) => void;
992
947
  readonly property_is_valid: (a: number, b: number) => void;
993
- readonly property_type: (a: number) => number;
994
948
  readonly property_items: (a: number, b: number) => void;
995
949
  readonly property_maxItems: (a: number, b: number) => void;
996
- readonly property_minItems: (a: number, b: number) => void;
997
950
  readonly property_maxLength: (a: number, b: number) => void;
951
+ readonly property_minItems: (a: number, b: number) => void;
998
952
  readonly property_minLength: (a: number, b: number) => void;
999
953
  readonly property_properties: (a: number, b: number) => void;
1000
- readonly __wbgt_test_property_creation_0: (a: number) => void;
1001
- readonly __wbgt_test_property_validation_1: (a: number) => void;
1002
- readonly __wbgt_test_invalid_property_2: (a: number) => void;
954
+ readonly property_type: (a: number) => number;
955
+ readonly __wbg_baseplugin_free: (a: number) => void;
956
+ readonly baseplugin_get_doc_create_hook: (a: number) => number;
957
+ readonly baseplugin_get_doc_recover_hook: (a: number) => number;
958
+ readonly baseplugin_name: (a: number) => number;
959
+ readonly baseplugin_new: (a: number, b: number, c: number) => void;
960
+ readonly baseplugin_set_doc_create_hook: (a: number, b: number) => void;
961
+ readonly baseplugin_set_doc_recover_hook: (a: number, b: number) => void;
962
+ readonly __wbg_collection_free: (a: number) => void;
963
+ readonly __wbg_inmemory_free: (a: number) => void;
1003
964
  readonly __wbg_operation_free: (a: number) => void;
965
+ readonly __wbg_ridberror_free: (a: number) => void;
966
+ readonly collection_count: (a: number, b: number, c: number) => number;
967
+ readonly collection_create: (a: number, b: number) => number;
968
+ readonly collection_delete: (a: number, b: number) => number;
969
+ readonly collection_find: (a: number, b: number, c: number) => number;
970
+ readonly collection_findById: (a: number, b: number) => number;
971
+ readonly collection_name: (a: number, b: number) => void;
972
+ readonly collection_parse_query_options: (a: number, b: number, c: number) => void;
973
+ readonly collection_schema: (a: number, b: number) => void;
974
+ readonly collection_update: (a: number, b: number) => number;
975
+ readonly inmemory_close: (a: number) => number;
976
+ readonly inmemory_count: (a: number, b: number, c: number, d: number, e: number) => number;
977
+ readonly inmemory_create: (a: number, b: number, c: number) => number;
978
+ readonly inmemory_find: (a: number, b: number, c: number, d: number, e: number) => number;
979
+ readonly inmemory_findDocumentById: (a: number, b: number, c: number, d: number) => number;
980
+ readonly inmemory_start: (a: number) => number;
981
+ readonly inmemory_write: (a: number, b: number) => number;
1004
982
  readonly operation_collection: (a: number, b: number) => void;
1005
- readonly operation_opType: (a: number) => number;
1006
983
  readonly operation_data: (a: number) => number;
1007
- readonly operation_primaryKeyField: (a: number) => number;
984
+ readonly operation_opType: (a: number) => number;
1008
985
  readonly operation_primaryKey: (a: number) => number;
986
+ readonly operation_primaryKeyField: (a: number) => number;
1009
987
  readonly operation_primaryKeyIndex: (a: number, b: number) => void;
988
+ readonly ridberror_authentication: (a: number, b: number, c: number) => number;
989
+ readonly ridberror_code: (a: number) => number;
990
+ readonly ridberror_error: (a: number, b: number, c: number) => number;
991
+ readonly ridberror_from: (a: number) => number;
992
+ readonly ridberror_hook: (a: number, b: number, c: number) => number;
993
+ readonly ridberror_message: (a: number, b: number) => void;
994
+ readonly ridberror_new: (a: number, b: number, c: number, d: number, e: number) => number;
995
+ readonly ridberror_query: (a: number, b: number, c: number) => number;
996
+ readonly ridberror_serialisation: (a: number, b: number, c: number) => number;
997
+ readonly ridberror_type: (a: number, b: number) => void;
998
+ readonly ridberror_validation: (a: number, b: number, c: number) => number;
999
+ readonly __wbg_indexdb_free: (a: number) => void;
1000
+ readonly indexdb_close: (a: number) => number;
1001
+ readonly indexdb_count: (a: number, b: number, c: number, d: number, e: number) => number;
1002
+ readonly indexdb_create: (a: number, b: number, c: number) => number;
1003
+ readonly indexdb_find: (a: number, b: number, c: number, d: number, e: number) => number;
1004
+ readonly indexdb_findDocumentById: (a: number, b: number, c: number, d: number) => number;
1005
+ readonly indexdb_get_store: (a: number, b: number, c: number, d: number) => void;
1006
+ readonly indexdb_get_store_readonly: (a: number, b: number, c: number, d: number) => void;
1007
+ readonly indexdb_get_stores: (a: number, b: number) => void;
1008
+ readonly indexdb_start: (a: number) => number;
1009
+ readonly indexdb_write: (a: number, b: number) => number;
1010
1010
  readonly __wbg_wasmbindgentestcontext_free: (a: number) => void;
1011
- readonly wasmbindgentestcontext_new: () => number;
1012
- readonly wasmbindgentestcontext_args: (a: number, b: number, c: number) => void;
1013
- readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => number;
1014
- readonly __wbgtest_console_log: (a: number) => void;
1015
1011
  readonly __wbgtest_console_debug: (a: number) => void;
1012
+ readonly __wbgtest_console_error: (a: number) => void;
1016
1013
  readonly __wbgtest_console_info: (a: number) => void;
1014
+ readonly __wbgtest_console_log: (a: number) => void;
1017
1015
  readonly __wbgtest_console_warn: (a: number) => void;
1018
- readonly __wbgtest_console_error: (a: number) => void;
1016
+ readonly wasmbindgentestcontext_args: (a: number, b: number, c: number) => void;
1017
+ readonly wasmbindgentestcontext_new: () => number;
1018
+ readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => number;
1019
1019
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1020
1020
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1021
1021
  readonly __wbindgen_export_2: WebAssembly.Table;
1022
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hcf4fe6fd0b7ccc8d: (a: number, b: number, c: number) => void;
1022
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha7bc4bff3dafa2ad: (a: number, b: number, c: number) => void;
1023
1023
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
1024
- readonly _dyn_core__ops__function__Fn__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he6024291054ff5aa: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1025
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb6eb1f8e3b5e56e9: (a: number, b: number, c: number) => void;
1024
+ readonly _dyn_core__ops__function__Fn__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h804a1f09b692c771: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1025
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd4647cb021495324: (a: number, b: number, c: number) => void;
1026
1026
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1027
1027
  readonly __wbindgen_exn_store: (a: number) => void;
1028
- readonly wasm_bindgen__convert__closures__invoke0_mut__hff00333f3d941090: (a: number, b: number) => void;
1029
- readonly wasm_bindgen__convert__closures__invoke3_mut__h703f9c33fd3008bf: (a: number, b: number, c: number, d: number, e: number) => void;
1030
- readonly wasm_bindgen__convert__closures__invoke2_mut__h97988f5fa0547d24: (a: number, b: number, c: number, d: number) => void;
1028
+ readonly wasm_bindgen__convert__closures__invoke0_mut__hc6452fdbb8c4addc: (a: number, b: number) => void;
1029
+ readonly wasm_bindgen__convert__closures__invoke3_mut__h2f203dbfa61ca113: (a: number, b: number, c: number, d: number, e: number) => void;
1030
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h42aa995f02b6fdcb: (a: number, b: number, c: number, d: number) => void;
1031
1031
  readonly __wbindgen_start: () => void;
1032
1032
  }
1033
1033