@xyo-network/archivist-firebase 5.3.29 → 5.4.0

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/README.md CHANGED
@@ -38,3719 +38,6 @@ bun add {{name}}
38
38
 
39
39
  See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
40
 
41
- ## Reference
42
-
43
- ### packages
44
-
45
- ### modules
46
-
47
- ### packages
48
-
49
- ### archivist
50
-
51
- ### packages
52
-
53
- ### firebase
54
-
55
- ### .temp-typedoc
56
-
57
- ### classes
58
-
59
- ### <a id="FirebaseArchivist"></a>FirebaseArchivist
60
-
61
- [**@xyo-network/archivist-firebase**](#../README)
62
-
63
- ***
64
-
65
- ## Extends
66
-
67
- - `AbstractArchivist`\<`TParams`, `TEventData`\>
68
-
69
- ## Type Parameters
70
-
71
- ### TParams
72
-
73
- `TParams` *extends* [`FirebaseArchivistParams`](#../interfaces/FirebaseArchivistParams) = [`FirebaseArchivistParams`](#../interfaces/FirebaseArchivistParams)
74
-
75
- ### TEventData
76
-
77
- `TEventData` *extends* `ArchivistModuleEventData` = `ArchivistModuleEventData`
78
-
79
- ## Constructors
80
-
81
- ### Constructor
82
-
83
- ```ts
84
- new FirebaseArchivist<TParams, TEventData>(key, params): FirebaseArchivist<TParams, TEventData>;
85
- ```
86
-
87
- ### Parameters
88
-
89
- #### key
90
-
91
- `unknown`
92
-
93
- #### params
94
-
95
- `Partial`\<`TParams` & `RequiredCreatableParams`\>
96
-
97
- ### Returns
98
-
99
- `FirebaseArchivist`\<`TParams`, `TEventData`\>
100
-
101
- ### Inherited from
102
-
103
- ```ts
104
- AbstractArchivist<TParams, TEventData>.constructor
105
- ```
106
-
107
- ## Properties
108
-
109
- ### uniqueName
110
-
111
- ```ts
112
- readonly static uniqueName: string;
113
- ```
114
-
115
- ### Inherited from
116
-
117
- ```ts
118
- AbstractArchivist.uniqueName
119
- ```
120
-
121
- ***
122
-
123
- ### defaultNextLimitSetting
124
-
125
- ```ts
126
- protected static defaultNextLimitSetting: number;
127
- ```
128
-
129
- ### Inherited from
130
-
131
- ```ts
132
- AbstractArchivist.defaultNextLimitSetting
133
- ```
134
-
135
- ***
136
-
137
- ### configSchemas
138
-
139
- ```ts
140
- readonly static configSchemas: Schema[];
141
- ```
142
-
143
- ### Overrides
144
-
145
- ```ts
146
- AbstractArchivist.configSchemas
147
- ```
148
-
149
- ***
150
-
151
- ### defaultConfigSchema
152
-
153
- ```ts
154
- readonly static defaultConfigSchema: Schema = FirebaseArchivistConfigSchema;
155
- ```
156
-
157
- ### Overrides
158
-
159
- ```ts
160
- AbstractArchivist.defaultConfigSchema
161
- ```
162
-
163
- ***
164
-
165
- ### labels
166
-
167
- ```ts
168
- readonly static labels: object;
169
- ```
170
-
171
- #### network.xyo.storage.class
172
-
173
- ```ts
174
- network.xyo.storage.class: string = 'network';
175
- ```
176
-
177
- ### Overrides
178
-
179
- ```ts
180
- AbstractArchivist.labels
181
- ```
182
-
183
- ***
184
-
185
- ### allowRandomAccount
186
-
187
- ```ts
188
- readonly static allowRandomAccount: boolean;
189
- ```
190
-
191
- ### Inherited from
192
-
193
- ```ts
194
- AbstractArchivist.allowRandomAccount
195
- ```
196
-
197
- ***
198
-
199
- ### defaultLogger
200
-
201
- ```ts
202
- static defaultLogger: Logger;
203
- ```
204
-
205
- ### Inherited from
206
-
207
- ```ts
208
- AbstractArchivist.defaultLogger
209
- ```
210
-
211
- ***
212
-
213
- ### enableLazyLoad
214
-
215
- ```ts
216
- static enableLazyLoad: boolean;
217
- ```
218
-
219
- ### Inherited from
220
-
221
- ```ts
222
- AbstractArchivist.enableLazyLoad
223
- ```
224
-
225
- ***
226
-
227
- ### privateConstructorKey
228
-
229
- ```ts
230
- protected static privateConstructorKey: string;
231
- ```
232
-
233
- ### Inherited from
234
-
235
- ```ts
236
- AbstractArchivist.privateConstructorKey
237
- ```
238
-
239
- ***
240
-
241
- ### \_account
242
-
243
- ```ts
244
- protected _account: AccountInstance | undefined;
245
- ```
246
-
247
- ### Inherited from
248
-
249
- ```ts
250
- AbstractArchivist._account
251
- ```
252
-
253
- ***
254
-
255
- ### \_cachedManifests
256
-
257
- ```ts
258
- protected _cachedManifests: LRUCache<number, ModuleManifestPayload, unknown>;
259
- ```
260
-
261
- ### Inherited from
262
-
263
- ```ts
264
- AbstractArchivist._cachedManifests
265
- ```
266
-
267
- ***
268
-
269
- ### \_globalReentrancyMutex
270
-
271
- ```ts
272
- protected _globalReentrancyMutex: Mutex | undefined;
273
- ```
274
-
275
- ### Inherited from
276
-
277
- ```ts
278
- AbstractArchivist._globalReentrancyMutex
279
- ```
280
-
281
- ***
282
-
283
- ### \_lastError?
284
-
285
- ```ts
286
- protected optional _lastError?: ModuleDetailsError;
287
- ```
288
-
289
- ### Inherited from
290
-
291
- ```ts
292
- AbstractArchivist._lastError
293
- ```
294
-
295
- ***
296
-
297
- ### \_moduleConfigQueryValidator
298
-
299
- ```ts
300
- protected _moduleConfigQueryValidator: Queryable | undefined;
301
- ```
302
-
303
- ### Inherited from
304
-
305
- ```ts
306
- AbstractArchivist._moduleConfigQueryValidator
307
- ```
308
-
309
- ***
310
-
311
- ### \_supportedQueryValidator
312
-
313
- ```ts
314
- protected _supportedQueryValidator: Queryable | undefined;
315
- ```
316
-
317
- ### Inherited from
318
-
319
- ```ts
320
- AbstractArchivist._supportedQueryValidator
321
- ```
322
-
323
- ***
324
-
325
- ### useNewResolver
326
-
327
- ```ts
328
- readonly static useNewResolver: false = false;
329
- ```
330
-
331
- ### Inherited from
332
-
333
- ```ts
334
- AbstractArchivist.useNewResolver
335
- ```
336
-
337
- ## Accessors
338
-
339
- ### defaultNextLimit
340
-
341
- ### Get Signature
342
-
343
- ```ts
344
- get static defaultNextLimit(): number;
345
- ```
346
-
347
- #### Returns
348
-
349
- `number`
350
-
351
- ### Inherited from
352
-
353
- ```ts
354
- AbstractArchivist.defaultNextLimit
355
- ```
356
-
357
- ***
358
-
359
- ### requireAllParents
360
-
361
- ### Get Signature
362
-
363
- ```ts
364
- get requireAllParents(): boolean;
365
- ```
366
-
367
- #### Returns
368
-
369
- `boolean`
370
-
371
- ### Inherited from
372
-
373
- ```ts
374
- AbstractArchivist.requireAllParents
375
- ```
376
-
377
- ***
378
-
379
- ### payloadCountGauge
380
-
381
- ### Get Signature
382
-
383
- ```ts
384
- get protected payloadCountGauge(): Gauge<Attributes> | null | undefined;
385
- ```
386
-
387
- #### Returns
388
-
389
- `Gauge`\<`Attributes`\> \| `null` \| `undefined`
390
-
391
- ### Inherited from
392
-
393
- ```ts
394
- AbstractArchivist.payloadCountGauge
395
- ```
396
-
397
- ***
398
-
399
- ### payloadCountMeter
400
-
401
- ### Get Signature
402
-
403
- ```ts
404
- get protected payloadCountMeter(): Meter | null;
405
- ```
406
-
407
- #### Returns
408
-
409
- `Meter` \| `null`
410
-
411
- ### Inherited from
412
-
413
- ```ts
414
- AbstractArchivist.payloadCountMeter
415
- ```
416
-
417
- ***
418
-
419
- ### storeParentReads
420
-
421
- ### Get Signature
422
-
423
- ```ts
424
- get protected storeParentReads(): boolean;
425
- ```
426
-
427
- #### Returns
428
-
429
- `boolean`
430
-
431
- ### Inherited from
432
-
433
- ```ts
434
- AbstractArchivist.storeParentReads
435
- ```
436
-
437
- ***
438
-
439
- ### queries
440
-
441
- ### Get Signature
442
-
443
- ```ts
444
- get queries(): Schema[];
445
- ```
446
-
447
- #### Returns
448
-
449
- `Schema`[]
450
-
451
- ### Overrides
452
-
453
- ```ts
454
- AbstractArchivist.queries
455
- ```
456
-
457
- ***
458
-
459
- ### account
460
-
461
- ### Get Signature
462
-
463
- ```ts
464
- get account(): AccountInstance;
465
- ```
466
-
467
- #### Returns
468
-
469
- `AccountInstance`
470
-
471
- ### Inherited from
472
-
473
- ```ts
474
- AbstractArchivist.account
475
- ```
476
-
477
- ***
478
-
479
- ### additionalSigners
480
-
481
- ### Get Signature
482
-
483
- ```ts
484
- get additionalSigners(): AccountInstance[];
485
- ```
486
-
487
- #### Returns
488
-
489
- `AccountInstance`[]
490
-
491
- ### Inherited from
492
-
493
- ```ts
494
- AbstractArchivist.additionalSigners
495
- ```
496
-
497
- ***
498
-
499
- ### address
500
-
501
- ### Get Signature
502
-
503
- ```ts
504
- get address(): Lowercase<string> & object & object;
505
- ```
506
-
507
- #### Returns
508
-
509
- `Lowercase`\<`string`\> & `object` & `object`
510
-
511
- ### Inherited from
512
-
513
- ```ts
514
- AbstractArchivist.address
515
- ```
516
-
517
- ***
518
-
519
- ### allowAnonymous
520
-
521
- ### Get Signature
522
-
523
- ```ts
524
- get allowAnonymous(): boolean;
525
- ```
526
-
527
- #### Returns
528
-
529
- `boolean`
530
-
531
- ### Inherited from
532
-
533
- ```ts
534
- AbstractArchivist.allowAnonymous
535
- ```
536
-
537
- ***
538
-
539
- ### allowNameResolution
540
-
541
- ### Get Signature
542
-
543
- ```ts
544
- get allowNameResolution(): boolean;
545
- ```
546
-
547
- #### Returns
548
-
549
- `boolean`
550
-
551
- ### Inherited from
552
-
553
- ```ts
554
- AbstractArchivist.allowNameResolution
555
- ```
556
-
557
- ***
558
-
559
- ### archiving
560
-
561
- ### Get Signature
562
-
563
- ```ts
564
- get archiving():
565
- | {
566
- archivists?: ModuleIdentifier[];
567
- queries?: Schema[];
568
- }
569
- | undefined;
570
- ```
571
-
572
- #### Returns
573
-
574
- \| \{
575
- `archivists?`: `ModuleIdentifier`[];
576
- `queries?`: `Schema`[];
577
- \}
578
- \| `undefined`
579
-
580
- ### Inherited from
581
-
582
- ```ts
583
- AbstractArchivist.archiving
584
- ```
585
-
586
- ***
587
-
588
- ### archivist
589
-
590
- ### Get Signature
591
-
592
- ```ts
593
- get archivist(): ModuleIdentifier | undefined;
594
- ```
595
-
596
- #### Returns
597
-
598
- `ModuleIdentifier` \| `undefined`
599
-
600
- ### Inherited from
601
-
602
- ```ts
603
- AbstractArchivist.archivist
604
- ```
605
-
606
- ***
607
-
608
- ### config
609
-
610
- ### Get Signature
611
-
612
- ```ts
613
- get config(): TParams["config"] & object;
614
- ```
615
-
616
- #### Returns
617
-
618
- `TParams`\[`"config"`\] & `object`
619
-
620
- ### Inherited from
621
-
622
- ```ts
623
- AbstractArchivist.config
624
- ```
625
-
626
- ***
627
-
628
- ### dead
629
-
630
- ### Get Signature
631
-
632
- ```ts
633
- get dead(): boolean;
634
- ```
635
-
636
- #### Returns
637
-
638
- `boolean`
639
-
640
- ### Inherited from
641
-
642
- ```ts
643
- AbstractArchivist.dead
644
- ```
645
-
646
- ***
647
-
648
- ### ephemeralQueryAccountEnabled
649
-
650
- ### Get Signature
651
-
652
- ```ts
653
- get ephemeralQueryAccountEnabled(): boolean;
654
- ```
655
-
656
- #### Returns
657
-
658
- `boolean`
659
-
660
- ### Inherited from
661
-
662
- ```ts
663
- AbstractArchivist.ephemeralQueryAccountEnabled
664
- ```
665
-
666
- ***
667
-
668
- ### globalReentrancyMutex
669
-
670
- ### Get Signature
671
-
672
- ```ts
673
- get globalReentrancyMutex(): Mutex | undefined;
674
- ```
675
-
676
- #### Returns
677
-
678
- `Mutex` \| `undefined`
679
-
680
- ### Inherited from
681
-
682
- ```ts
683
- AbstractArchivist.globalReentrancyMutex
684
- ```
685
-
686
- ***
687
-
688
- ### id
689
-
690
- ### Get Signature
691
-
692
- ```ts
693
- get id(): string;
694
- ```
695
-
696
- The name (if specified) or address of the module
697
-
698
- #### Returns
699
-
700
- `string`
701
-
702
- ### Inherited from
703
-
704
- ```ts
705
- AbstractArchivist.id
706
- ```
707
-
708
- ***
709
-
710
- ### logger
711
-
712
- ### Get Signature
713
-
714
- ```ts
715
- get logger(): Logger | undefined;
716
- ```
717
-
718
- #### Returns
719
-
720
- `Logger` \| `undefined`
721
-
722
- ### Inherited from
723
-
724
- ```ts
725
- AbstractArchivist.logger
726
- ```
727
-
728
- ***
729
-
730
- ### priority
731
-
732
- ### Get Signature
733
-
734
- ```ts
735
- get priority(): 2;
736
- ```
737
-
738
- #### Returns
739
-
740
- `2`
741
-
742
- ### Inherited from
743
-
744
- ```ts
745
- AbstractArchivist.priority
746
- ```
747
-
748
- ***
749
-
750
- ### reentrancy
751
-
752
- ### Get Signature
753
-
754
- ```ts
755
- get reentrancy():
756
- | {
757
- action: "skip" | "wait";
758
- scope: "global";
759
- }
760
- | undefined;
761
- ```
762
-
763
- #### Returns
764
-
765
- \| \{
766
- `action`: `"skip"` \| `"wait"`;
767
- `scope`: `"global"`;
768
- \}
769
- \| `undefined`
770
-
771
- ### Inherited from
772
-
773
- ```ts
774
- AbstractArchivist.reentrancy
775
- ```
776
-
777
- ***
778
-
779
- ### statusReporter
780
-
781
- ### Get Signature
782
-
783
- ```ts
784
- get statusReporter():
785
- | ModuleStatusReporter & CreatableStatusReporter<void>
786
- | undefined;
787
- ```
788
-
789
- The status reporter used to broadcast lifecycle changes.
790
-
791
- #### Returns
792
-
793
- \| `ModuleStatusReporter` & `CreatableStatusReporter`\<`void`\>
794
- \| `undefined`
795
-
796
- ### Inherited from
797
-
798
- ```ts
799
- AbstractArchivist.statusReporter
800
- ```
801
-
802
- ***
803
-
804
- ### timestamp
805
-
806
- ### Get Signature
807
-
808
- ```ts
809
- get timestamp(): boolean;
810
- ```
811
-
812
- #### Returns
813
-
814
- `boolean`
815
-
816
- ### Inherited from
817
-
818
- ```ts
819
- AbstractArchivist.timestamp
820
- ```
821
-
822
- ***
823
-
824
- ### moduleConfigQueryValidator
825
-
826
- ### Get Signature
827
-
828
- ```ts
829
- get protected moduleConfigQueryValidator(): Queryable;
830
- ```
831
-
832
- #### Returns
833
-
834
- `Queryable`
835
-
836
- ### Inherited from
837
-
838
- ```ts
839
- AbstractArchivist.moduleConfigQueryValidator
840
- ```
841
-
842
- ***
843
-
844
- ### supportedQueryValidator
845
-
846
- ### Get Signature
847
-
848
- ```ts
849
- get protected supportedQueryValidator(): Queryable;
850
- ```
851
-
852
- #### Returns
853
-
854
- `Queryable`
855
-
856
- ### Inherited from
857
-
858
- ```ts
859
- AbstractArchivist.supportedQueryValidator
860
- ```
861
-
862
- ***
863
-
864
- ### downResolver
865
-
866
- ### Get Signature
867
-
868
- ```ts
869
- get downResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
870
- ```
871
-
872
- #### Returns
873
-
874
- `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
875
-
876
- ### Inherited from
877
-
878
- ```ts
879
- AbstractArchivist.downResolver
880
- ```
881
-
882
- ***
883
-
884
- ### modName
885
-
886
- ### Get Signature
887
-
888
- ```ts
889
- get modName(): string | undefined;
890
- ```
891
-
892
- #### Returns
893
-
894
- `string` \| `undefined`
895
-
896
- ### Inherited from
897
-
898
- ```ts
899
- AbstractArchivist.modName
900
- ```
901
-
902
- ***
903
-
904
- ### moduleIdentifierTransformers
905
-
906
- ### Get Signature
907
-
908
- ```ts
909
- get moduleIdentifierTransformers(): ModuleIdentifierTransformer[];
910
- ```
911
-
912
- #### Returns
913
-
914
- `ModuleIdentifierTransformer`[]
915
-
916
- ### Inherited from
917
-
918
- ```ts
919
- AbstractArchivist.moduleIdentifierTransformers
920
- ```
921
-
922
- ***
923
-
924
- ### privateResolver
925
-
926
- ### Get Signature
927
-
928
- ```ts
929
- get privateResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
930
- ```
931
-
932
- #### Returns
933
-
934
- `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
935
-
936
- ### Inherited from
937
-
938
- ```ts
939
- AbstractArchivist.privateResolver
940
- ```
941
-
942
- ***
943
-
944
- ### root
945
-
946
- ### Get Signature
947
-
948
- ```ts
949
- get root(): this;
950
- ```
951
-
952
- #### Returns
953
-
954
- `this`
955
-
956
- ### Inherited from
957
-
958
- ```ts
959
- AbstractArchivist.root
960
- ```
961
-
962
- ***
963
-
964
- ### timeBudget
965
-
966
- ### Get Signature
967
-
968
- ```ts
969
- get timeBudget(): number | undefined;
970
- ```
971
-
972
- #### Returns
973
-
974
- `number` \| `undefined`
975
-
976
- ### Inherited from
977
-
978
- ```ts
979
- AbstractArchivist.timeBudget
980
- ```
981
-
982
- ***
983
-
984
- ### upResolver
985
-
986
- ### Get Signature
987
-
988
- ```ts
989
- get upResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
990
- ```
991
-
992
- #### Returns
993
-
994
- `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
995
-
996
- ### Inherited from
997
-
998
- ```ts
999
- AbstractArchivist.upResolver
1000
- ```
1001
-
1002
- ## Methods
1003
-
1004
- ### ~~all()~~
1005
-
1006
- ```ts
1007
- all(): Promise<WithStorageMeta<Payload>[]>;
1008
- ```
1009
-
1010
- ### Returns
1011
-
1012
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1013
-
1014
- ### Deprecated
1015
-
1016
- use next or snapshot instead
1017
-
1018
- ### Inherited from
1019
-
1020
- ```ts
1021
- AbstractArchivist.all
1022
- ```
1023
-
1024
- ***
1025
-
1026
- ### allQuery()
1027
-
1028
- ```ts
1029
- allQuery(account): Promise<ModuleQueryResult>;
1030
- ```
1031
-
1032
- deprecated use nextQuery or snapshotQuery instead
1033
-
1034
- ### Parameters
1035
-
1036
- #### account
1037
-
1038
- `AccountInstance`
1039
-
1040
- ### Returns
1041
-
1042
- `Promise`\<`ModuleQueryResult`\>
1043
-
1044
- ### Inherited from
1045
-
1046
- ```ts
1047
- AbstractArchivist.allQuery
1048
- ```
1049
-
1050
- ***
1051
-
1052
- ### clear()
1053
-
1054
- ```ts
1055
- clear(): Promise<void>;
1056
- ```
1057
-
1058
- ### Returns
1059
-
1060
- `Promise`\<`void`\>
1061
-
1062
- ### Inherited from
1063
-
1064
- ```ts
1065
- AbstractArchivist.clear
1066
- ```
1067
-
1068
- ***
1069
-
1070
- ### clearQuery()
1071
-
1072
- ```ts
1073
- clearQuery(account): Promise<ModuleQueryResult>;
1074
- ```
1075
-
1076
- ### Parameters
1077
-
1078
- #### account
1079
-
1080
- `AccountInstance`
1081
-
1082
- ### Returns
1083
-
1084
- `Promise`\<`ModuleQueryResult`\>
1085
-
1086
- ### Inherited from
1087
-
1088
- ```ts
1089
- AbstractArchivist.clearQuery
1090
- ```
1091
-
1092
- ***
1093
-
1094
- ### commit()
1095
-
1096
- ```ts
1097
- commit(): Promise<object[]>;
1098
- ```
1099
-
1100
- ### Returns
1101
-
1102
- `Promise`\<`object`[]\>
1103
-
1104
- ### Inherited from
1105
-
1106
- ```ts
1107
- AbstractArchivist.commit
1108
- ```
1109
-
1110
- ***
1111
-
1112
- ### commitQuery()
1113
-
1114
- ```ts
1115
- commitQuery(account): Promise<ModuleQueryResult>;
1116
- ```
1117
-
1118
- ### Parameters
1119
-
1120
- #### account
1121
-
1122
- `AccountInstance`
1123
-
1124
- ### Returns
1125
-
1126
- `Promise`\<`ModuleQueryResult`\>
1127
-
1128
- ### Inherited from
1129
-
1130
- ```ts
1131
- AbstractArchivist.commitQuery
1132
- ```
1133
-
1134
- ***
1135
-
1136
- ### delete()
1137
-
1138
- ```ts
1139
- delete(hashes): Promise<WithStorageMeta<Payload>[]>;
1140
- ```
1141
-
1142
- ### Parameters
1143
-
1144
- #### hashes
1145
-
1146
- `BrandedHash`[]
1147
-
1148
- ### Returns
1149
-
1150
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1151
-
1152
- ### Inherited from
1153
-
1154
- ```ts
1155
- AbstractArchivist.delete
1156
- ```
1157
-
1158
- ***
1159
-
1160
- ### deleteQuery()
1161
-
1162
- ```ts
1163
- deleteQuery(hashes, account?): Promise<ModuleQueryResult>;
1164
- ```
1165
-
1166
- ### Parameters
1167
-
1168
- #### hashes
1169
-
1170
- `BrandedHash`[]
1171
-
1172
- #### account?
1173
-
1174
- `AccountInstance`
1175
-
1176
- ### Returns
1177
-
1178
- `Promise`\<`ModuleQueryResult`\>
1179
-
1180
- ### Inherited from
1181
-
1182
- ```ts
1183
- AbstractArchivist.deleteQuery
1184
- ```
1185
-
1186
- ***
1187
-
1188
- ### get()
1189
-
1190
- ```ts
1191
- get(hashes): Promise<WithStorageMeta<Payload>[]>;
1192
- ```
1193
-
1194
- ### Parameters
1195
-
1196
- #### hashes
1197
-
1198
- `BrandedHash`[]
1199
-
1200
- ### Returns
1201
-
1202
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1203
-
1204
- ### Inherited from
1205
-
1206
- ```ts
1207
- AbstractArchivist.get
1208
- ```
1209
-
1210
- ***
1211
-
1212
- ### getQuery()
1213
-
1214
- ```ts
1215
- getQuery(hashes, account?): Promise<ModuleQueryResult>;
1216
- ```
1217
-
1218
- ### Parameters
1219
-
1220
- #### hashes
1221
-
1222
- `BrandedHash`[]
1223
-
1224
- #### account?
1225
-
1226
- `AccountInstance`
1227
-
1228
- ### Returns
1229
-
1230
- `Promise`\<`ModuleQueryResult`\>
1231
-
1232
- ### Inherited from
1233
-
1234
- ```ts
1235
- AbstractArchivist.getQuery
1236
- ```
1237
-
1238
- ***
1239
-
1240
- ### insert()
1241
-
1242
- ```ts
1243
- insert(payloads): Promise<WithStorageMeta<Payload>[]>;
1244
- ```
1245
-
1246
- ### Parameters
1247
-
1248
- #### payloads
1249
-
1250
- `Payload`[]
1251
-
1252
- ### Returns
1253
-
1254
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1255
-
1256
- ### Inherited from
1257
-
1258
- ```ts
1259
- AbstractArchivist.insert
1260
- ```
1261
-
1262
- ***
1263
-
1264
- ### insertQuery()
1265
-
1266
- ```ts
1267
- insertQuery(payloads, account?): Promise<ModuleQueryResult>;
1268
- ```
1269
-
1270
- ### Parameters
1271
-
1272
- #### payloads
1273
-
1274
- `Payload`[]
1275
-
1276
- #### account?
1277
-
1278
- `AccountInstance`
1279
-
1280
- ### Returns
1281
-
1282
- `Promise`\<`ModuleQueryResult`\>
1283
-
1284
- ### Inherited from
1285
-
1286
- ```ts
1287
- AbstractArchivist.insertQuery
1288
- ```
1289
-
1290
- ***
1291
-
1292
- ### next()
1293
-
1294
- ```ts
1295
- next(options?): Promise<WithStorageMeta<Payload>[]>;
1296
- ```
1297
-
1298
- ### Parameters
1299
-
1300
- #### options?
1301
-
1302
- `ArchivistNextOptions`
1303
-
1304
- ### Returns
1305
-
1306
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1307
-
1308
- ### Inherited from
1309
-
1310
- ```ts
1311
- AbstractArchivist.next
1312
- ```
1313
-
1314
- ***
1315
-
1316
- ### nextQuery()
1317
-
1318
- ```ts
1319
- nextQuery(options?, account?): Promise<ModuleQueryResult>;
1320
- ```
1321
-
1322
- ### Parameters
1323
-
1324
- #### options?
1325
-
1326
- `ArchivistNextOptions`
1327
-
1328
- #### account?
1329
-
1330
- `AccountInstance`
1331
-
1332
- ### Returns
1333
-
1334
- `Promise`\<`ModuleQueryResult`\>
1335
-
1336
- ### Inherited from
1337
-
1338
- ```ts
1339
- AbstractArchivist.nextQuery
1340
- ```
1341
-
1342
- ***
1343
-
1344
- ### snapshot()
1345
-
1346
- ```ts
1347
- snapshot(): Promise<ArchivistSnapshotPayload<WithStorageMeta<Payload>, BrandedHash>[]>;
1348
- ```
1349
-
1350
- ### Returns
1351
-
1352
- `Promise`\<`ArchivistSnapshotPayload`\<`WithStorageMeta`\<`Payload`\>, `BrandedHash`\>[]\>
1353
-
1354
- ### Inherited from
1355
-
1356
- ```ts
1357
- AbstractArchivist.snapshot
1358
- ```
1359
-
1360
- ***
1361
-
1362
- ### snapshotQuery()
1363
-
1364
- ```ts
1365
- snapshotQuery(account?): Promise<ModuleQueryResult>;
1366
- ```
1367
-
1368
- ### Parameters
1369
-
1370
- #### account?
1371
-
1372
- `AccountInstance`
1373
-
1374
- ### Returns
1375
-
1376
- `Promise`\<`ModuleQueryResult`\>
1377
-
1378
- ### Inherited from
1379
-
1380
- ```ts
1381
- AbstractArchivist.snapshotQuery
1382
- ```
1383
-
1384
- ***
1385
-
1386
- ### allHandler()
1387
-
1388
- ```ts
1389
- protected allHandler(): PromisableArray<WithStorageMeta<Payload>>;
1390
- ```
1391
-
1392
- ### Returns
1393
-
1394
- `PromisableArray`\<`WithStorageMeta`\<`Payload`\>\>
1395
-
1396
- ### Inherited from
1397
-
1398
- ```ts
1399
- AbstractArchivist.allHandler
1400
- ```
1401
-
1402
- ***
1403
-
1404
- ### clearHandler()
1405
-
1406
- ```ts
1407
- protected clearHandler(): Promisable<void>;
1408
- ```
1409
-
1410
- ### Returns
1411
-
1412
- `Promisable`\<`void`\>
1413
-
1414
- ### Inherited from
1415
-
1416
- ```ts
1417
- AbstractArchivist.clearHandler
1418
- ```
1419
-
1420
- ***
1421
-
1422
- ### commitHandler()
1423
-
1424
- ```ts
1425
- protected commitHandler(): Promisable<object[]>;
1426
- ```
1427
-
1428
- ### Returns
1429
-
1430
- `Promisable`\<`object`[]\>
1431
-
1432
- ### Inherited from
1433
-
1434
- ```ts
1435
- AbstractArchivist.commitHandler
1436
- ```
1437
-
1438
- ***
1439
-
1440
- ### deleteHandler()
1441
-
1442
- ```ts
1443
- protected deleteHandler(_hashes): PromisableArray<WithStorageMeta<Payload>>;
1444
- ```
1445
-
1446
- ### Parameters
1447
-
1448
- #### \_hashes
1449
-
1450
- `BrandedHash`[]
1451
-
1452
- ### Returns
1453
-
1454
- `PromisableArray`\<`WithStorageMeta`\<`Payload`\>\>
1455
-
1456
- ### Inherited from
1457
-
1458
- ```ts
1459
- AbstractArchivist.deleteHandler
1460
- ```
1461
-
1462
- ***
1463
-
1464
- ### deleteWithConfig()
1465
-
1466
- ```ts
1467
- protected deleteWithConfig(hashes, config?): Promise<WithStorageMeta<Payload>[]>;
1468
- ```
1469
-
1470
- ### Parameters
1471
-
1472
- #### hashes
1473
-
1474
- `BrandedHash`[]
1475
-
1476
- #### config?
1477
-
1478
- `ActionConfig`
1479
-
1480
- ### Returns
1481
-
1482
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1483
-
1484
- ### Inherited from
1485
-
1486
- ```ts
1487
- AbstractArchivist.deleteWithConfig
1488
- ```
1489
-
1490
- ***
1491
-
1492
- ### generateStats()
1493
-
1494
- ```ts
1495
- protected generateStats(): Promisable<ArchivistStatsPayload>;
1496
- ```
1497
-
1498
- ### Returns
1499
-
1500
- `Promisable`\<`ArchivistStatsPayload`\>
1501
-
1502
- ### Inherited from
1503
-
1504
- ```ts
1505
- AbstractArchivist.generateStats
1506
- ```
1507
-
1508
- ***
1509
-
1510
- ### getFromParent()
1511
-
1512
- ```ts
1513
- protected getFromParent(hashes, archivist): Promise<[WithStorageMeta<Payload>[], BrandedHash[]]>;
1514
- ```
1515
-
1516
- ### Parameters
1517
-
1518
- #### hashes
1519
-
1520
- `BrandedHash`[]
1521
-
1522
- #### archivist
1523
-
1524
- `ReadArchivist`
1525
-
1526
- ### Returns
1527
-
1528
- `Promise`\<\[`WithStorageMeta`\<`Payload`\>[], `BrandedHash`[]\]\>
1529
-
1530
- ### Inherited from
1531
-
1532
- ```ts
1533
- AbstractArchivist.getFromParent
1534
- ```
1535
-
1536
- ***
1537
-
1538
- ### getFromParents()
1539
-
1540
- ```ts
1541
- protected getFromParents(hashes): Promise<[WithStorageMeta<Payload>[], BrandedHash[]]>;
1542
- ```
1543
-
1544
- ### Parameters
1545
-
1546
- #### hashes
1547
-
1548
- `BrandedHash`[]
1549
-
1550
- ### Returns
1551
-
1552
- `Promise`\<\[`WithStorageMeta`\<`Payload`\>[], `BrandedHash`[]\]\>
1553
-
1554
- ### Inherited from
1555
-
1556
- ```ts
1557
- AbstractArchivist.getFromParents
1558
- ```
1559
-
1560
- ***
1561
-
1562
- ### getWithConfig()
1563
-
1564
- ```ts
1565
- protected getWithConfig(hashes, _config?): Promise<WithStorageMeta<Payload>[]>;
1566
- ```
1567
-
1568
- ### Parameters
1569
-
1570
- #### hashes
1571
-
1572
- `BrandedHash`[]
1573
-
1574
- #### \_config?
1575
-
1576
- `InsertConfig`
1577
-
1578
- ### Returns
1579
-
1580
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1581
-
1582
- ### Inherited from
1583
-
1584
- ```ts
1585
- AbstractArchivist.getWithConfig
1586
- ```
1587
-
1588
- ***
1589
-
1590
- ### insertQueryHandler()
1591
-
1592
- ```ts
1593
- protected insertQueryHandler<T>(query, payloads?): Promise<WithStorageMeta<Payload>[]>;
1594
- ```
1595
-
1596
- ### Type Parameters
1597
-
1598
- #### T
1599
-
1600
- `T` *extends* `QueryBoundWitnessWrapper`\<`Query`\> = `QueryBoundWitnessWrapper`\<`Query`\>
1601
-
1602
- ### Parameters
1603
-
1604
- #### query
1605
-
1606
- `T`
1607
-
1608
- #### payloads?
1609
-
1610
- `Payload`[]
1611
-
1612
- ### Returns
1613
-
1614
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1615
-
1616
- ### Inherited from
1617
-
1618
- ```ts
1619
- AbstractArchivist.insertQueryHandler
1620
- ```
1621
-
1622
- ***
1623
-
1624
- ### insertWithConfig()
1625
-
1626
- ```ts
1627
- protected insertWithConfig(payloads, config?): Promise<WithStorageMeta<Payload>[]>;
1628
- ```
1629
-
1630
- ### Parameters
1631
-
1632
- #### payloads
1633
-
1634
- `Payload`[]
1635
-
1636
- #### config?
1637
-
1638
- `InsertConfig`
1639
-
1640
- ### Returns
1641
-
1642
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1643
-
1644
- ### Inherited from
1645
-
1646
- ```ts
1647
- AbstractArchivist.insertWithConfig
1648
- ```
1649
-
1650
- ***
1651
-
1652
- ### nextHandler()
1653
-
1654
- ```ts
1655
- protected nextHandler(_options?): Promisable<WithStorageMeta<Payload>[]>;
1656
- ```
1657
-
1658
- ### Parameters
1659
-
1660
- #### \_options?
1661
-
1662
- `ArchivistNextOptions`
1663
-
1664
- ### Returns
1665
-
1666
- `Promisable`\<`WithStorageMeta`\<`Payload`\>[]\>
1667
-
1668
- ### Inherited from
1669
-
1670
- ```ts
1671
- AbstractArchivist.nextHandler
1672
- ```
1673
-
1674
- ***
1675
-
1676
- ### nextWithConfig()
1677
-
1678
- ```ts
1679
- protected nextWithConfig(options?, _config?): Promise<WithStorageMeta<Payload>[]>;
1680
- ```
1681
-
1682
- ### Parameters
1683
-
1684
- #### options?
1685
-
1686
- `ArchivistNextOptions`
1687
-
1688
- #### \_config?
1689
-
1690
- `InsertConfig`
1691
-
1692
- ### Returns
1693
-
1694
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1695
-
1696
- ### Inherited from
1697
-
1698
- ```ts
1699
- AbstractArchivist.nextWithConfig
1700
- ```
1701
-
1702
- ***
1703
-
1704
- ### parentArchivists()
1705
-
1706
- ```ts
1707
- protected parentArchivists(): Promise<ArchivistParentInstanceMap>;
1708
- ```
1709
-
1710
- ### Returns
1711
-
1712
- `Promise`\<`ArchivistParentInstanceMap`\>
1713
-
1714
- ### Inherited from
1715
-
1716
- ```ts
1717
- AbstractArchivist.parentArchivists
1718
- ```
1719
-
1720
- ***
1721
-
1722
- ### payloadCountHandler()
1723
-
1724
- ```ts
1725
- protected payloadCountHandler(): number;
1726
- ```
1727
-
1728
- ### Returns
1729
-
1730
- `number`
1731
-
1732
- ### Inherited from
1733
-
1734
- ```ts
1735
- AbstractArchivist.payloadCountHandler
1736
- ```
1737
-
1738
- ***
1739
-
1740
- ### queryHandler()
1741
-
1742
- ```ts
1743
- protected queryHandler<T, TConfig>(
1744
- query,
1745
- payloads,
1746
- queryConfig?): Promise<ModuleQueryHandlerResult>;
1747
- ```
1748
-
1749
- ### Type Parameters
1750
-
1751
- #### T
1752
-
1753
- `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1754
-
1755
- #### TConfig
1756
-
1757
- `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
1758
-
1759
- ### Parameters
1760
-
1761
- #### query
1762
-
1763
- `T`
1764
-
1765
- #### payloads
1766
-
1767
- `Payload`[]
1768
-
1769
- #### queryConfig?
1770
-
1771
- `TConfig`
1772
-
1773
- ### Returns
1774
-
1775
- `Promise`\<`ModuleQueryHandlerResult`\>
1776
-
1777
- ### Inherited from
1778
-
1779
- ```ts
1780
- AbstractArchivist.queryHandler
1781
- ```
1782
-
1783
- ***
1784
-
1785
- ### reportPayloadCount()
1786
-
1787
- ```ts
1788
- protected reportPayloadCount(): void;
1789
- ```
1790
-
1791
- ### Returns
1792
-
1793
- `void`
1794
-
1795
- ### Inherited from
1796
-
1797
- ```ts
1798
- AbstractArchivist.reportPayloadCount
1799
- ```
1800
-
1801
- ***
1802
-
1803
- ### snapshotHandler()
1804
-
1805
- ```ts
1806
- protected snapshotHandler(): PromisableArray<ArchivistSnapshotPayload<WithStorageMeta<Payload>, BrandedHash>>;
1807
- ```
1808
-
1809
- ### Returns
1810
-
1811
- `PromisableArray`\<`ArchivistSnapshotPayload`\<`WithStorageMeta`\<`Payload`\>, `BrandedHash`\>\>
1812
-
1813
- ### Inherited from
1814
-
1815
- ```ts
1816
- AbstractArchivist.snapshotHandler
1817
- ```
1818
-
1819
- ***
1820
-
1821
- ### startHandler()
1822
-
1823
- ```ts
1824
- protected startHandler(): Promise<void>;
1825
- ```
1826
-
1827
- ### Returns
1828
-
1829
- `Promise`\<`void`\>
1830
-
1831
- ### Inherited from
1832
-
1833
- ```ts
1834
- AbstractArchivist.startHandler
1835
- ```
1836
-
1837
- ***
1838
-
1839
- ### stateHandler()
1840
-
1841
- ```ts
1842
- protected stateHandler(): Promise<Payload[]>;
1843
- ```
1844
-
1845
- ### Returns
1846
-
1847
- `Promise`\<`Payload`[]\>
1848
-
1849
- ### Inherited from
1850
-
1851
- ```ts
1852
- AbstractArchivist.stateHandler
1853
- ```
1854
-
1855
- ***
1856
-
1857
- ### writeToParent()
1858
-
1859
- ```ts
1860
- protected writeToParent(parent, payloads): Promise<Payload[]>;
1861
- ```
1862
-
1863
- ### Parameters
1864
-
1865
- #### parent
1866
-
1867
- `ArchivistInstance`
1868
-
1869
- #### payloads
1870
-
1871
- `Payload`[]
1872
-
1873
- ### Returns
1874
-
1875
- `Promise`\<`Payload`[]\>
1876
-
1877
- ### Inherited from
1878
-
1879
- ```ts
1880
- AbstractArchivist.writeToParent
1881
- ```
1882
-
1883
- ***
1884
-
1885
- ### writeToParents()
1886
-
1887
- ```ts
1888
- protected writeToParents(payloads): Promise<Payload[]>;
1889
- ```
1890
-
1891
- ### Parameters
1892
-
1893
- #### payloads
1894
-
1895
- `Payload`[]
1896
-
1897
- ### Returns
1898
-
1899
- `Promise`\<`Payload`[]\>
1900
-
1901
- ### Inherited from
1902
-
1903
- ```ts
1904
- AbstractArchivist.writeToParents
1905
- ```
1906
-
1907
- ***
1908
-
1909
- ### getHandler()
1910
-
1911
- ```ts
1912
- protected getHandler(hashes): Promise<WithStorageMeta<Payload>[]>;
1913
- ```
1914
-
1915
- ### Parameters
1916
-
1917
- #### hashes
1918
-
1919
- `BrandedHash`[]
1920
-
1921
- ### Returns
1922
-
1923
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1924
-
1925
- ### Overrides
1926
-
1927
- ```ts
1928
- AbstractArchivist.getHandler
1929
- ```
1930
-
1931
- ***
1932
-
1933
- ### insertHandler()
1934
-
1935
- ```ts
1936
- protected insertHandler(payloads): Promise<WithStorageMeta<Payload>[]>;
1937
- ```
1938
-
1939
- ### Parameters
1940
-
1941
- #### payloads
1942
-
1943
- `WithStorageMeta`\<`Payload`\>[]
1944
-
1945
- ### Returns
1946
-
1947
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1948
-
1949
- ### Overrides
1950
-
1951
- ```ts
1952
- AbstractArchivist.insertHandler
1953
- ```
1954
-
1955
- ***
1956
-
1957
- ### \_getRootFunction()
1958
-
1959
- ```ts
1960
- static _getRootFunction(funcName): any;
1961
- ```
1962
-
1963
- ### Parameters
1964
-
1965
- #### funcName
1966
-
1967
- `string`
1968
-
1969
- ### Returns
1970
-
1971
- `any`
1972
-
1973
- ### Inherited from
1974
-
1975
- ```ts
1976
- AbstractArchivist._getRootFunction
1977
- ```
1978
-
1979
- ***
1980
-
1981
- ### \_noOverride()
1982
-
1983
- ```ts
1984
- static _noOverride(functionName): void;
1985
- ```
1986
-
1987
- ### Parameters
1988
-
1989
- #### functionName
1990
-
1991
- `string`
1992
-
1993
- ### Returns
1994
-
1995
- `void`
1996
-
1997
- ### Inherited from
1998
-
1999
- ```ts
2000
- AbstractArchivist._noOverride
2001
- ```
2002
-
2003
- ***
2004
-
2005
- ### createHandler()
2006
-
2007
- ```ts
2008
- static createHandler<T>(inInstance): Promise<T & AbstractModule<any, any>>;
2009
- ```
2010
-
2011
- Static hook called during creation to perform additional initialization.
2012
- Override in subclasses to customize post-construction setup.
2013
-
2014
- ### Type Parameters
2015
-
2016
- #### T
2017
-
2018
- `T` *extends* `CreatableInstance`\<`CreatableParams`, `EventData`\>
2019
-
2020
- ### Parameters
2021
-
2022
- #### inInstance
2023
-
2024
- `T`
2025
-
2026
- ### Returns
2027
-
2028
- `Promise`\<`T` & `AbstractModule`\<`any`, `any`\>\>
2029
-
2030
- The instance, potentially modified
2031
-
2032
- ### Inherited from
2033
-
2034
- ```ts
2035
- AbstractArchivist.createHandler
2036
- ```
2037
-
2038
- ***
2039
-
2040
- ### determineAccount()
2041
-
2042
- ```ts
2043
- static determineAccount(params): Promise<AccountInstance>;
2044
- ```
2045
-
2046
- ### Parameters
2047
-
2048
- #### params
2049
-
2050
- ##### account?
2051
-
2052
- `AccountInstance` \| `"random"`
2053
-
2054
- ##### accountPath?
2055
-
2056
- `string`
2057
-
2058
- ##### wallet?
2059
-
2060
- `WalletInstance`
2061
-
2062
- ### Returns
2063
-
2064
- `Promise`\<`AccountInstance`\>
2065
-
2066
- ### Inherited from
2067
-
2068
- ```ts
2069
- AbstractArchivist.determineAccount
2070
- ```
2071
-
2072
- ***
2073
-
2074
- ### factory()
2075
-
2076
- ```ts
2077
- static factory<TModule>(this, params?): CreatableModuleFactory<TModule>;
2078
- ```
2079
-
2080
- ### Type Parameters
2081
-
2082
- #### TModule
2083
-
2084
- `TModule` *extends* `CreatableModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2085
-
2086
- ### Parameters
2087
-
2088
- #### this
2089
-
2090
- `CreatableModule`\<`TModule`\>
2091
-
2092
- #### params?
2093
-
2094
- `Partial`\<`TModule`\[`"params"`\]\>
2095
-
2096
- ### Returns
2097
-
2098
- `CreatableModuleFactory`\<`TModule`\>
2099
-
2100
- ### Inherited from
2101
-
2102
- ```ts
2103
- AbstractArchivist.factory
2104
- ```
2105
-
2106
- ***
2107
-
2108
- ### isAllowedSchema()
2109
-
2110
- ```ts
2111
- static isAllowedSchema(schema): boolean;
2112
- ```
2113
-
2114
- ### Parameters
2115
-
2116
- #### schema
2117
-
2118
- `Schema`
2119
-
2120
- ### Returns
2121
-
2122
- `boolean`
2123
-
2124
- ### Inherited from
2125
-
2126
- ```ts
2127
- AbstractArchivist.isAllowedSchema
2128
- ```
2129
-
2130
- ***
2131
-
2132
- ### paramsHandler()
2133
-
2134
- ```ts
2135
- static paramsHandler<T>(inParams?): Promise<T["params"]>;
2136
- ```
2137
-
2138
- Static hook called during creation to validate and transform params.
2139
- Override in subclasses to add default values or validation.
2140
-
2141
- ### Type Parameters
2142
-
2143
- #### T
2144
-
2145
- `T` *extends* `AttachableModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2146
-
2147
- ### Parameters
2148
-
2149
- #### inParams?
2150
-
2151
- `Partial`\<`T`\[`"params"`\]\>
2152
-
2153
- ### Returns
2154
-
2155
- `Promise`\<`T`\[`"params"`\]\>
2156
-
2157
- The processed params ready for construction
2158
-
2159
- ### Inherited from
2160
-
2161
- ```ts
2162
- AbstractArchivist.paramsHandler
2163
- ```
2164
-
2165
- ***
2166
-
2167
- ### \_getRootFunction()
2168
-
2169
- ```ts
2170
- _getRootFunction(funcName): any;
2171
- ```
2172
-
2173
- ### Parameters
2174
-
2175
- #### funcName
2176
-
2177
- `string`
2178
-
2179
- ### Returns
2180
-
2181
- `any`
2182
-
2183
- ### Inherited from
2184
-
2185
- ```ts
2186
- AbstractArchivist._getRootFunction
2187
- ```
2188
-
2189
- ***
2190
-
2191
- ### busy()
2192
-
2193
- ```ts
2194
- busy<R>(closure): Promise<R>;
2195
- ```
2196
-
2197
- ### Type Parameters
2198
-
2199
- #### R
2200
-
2201
- `R`
2202
-
2203
- ### Parameters
2204
-
2205
- #### closure
2206
-
2207
- () => `Promise`\<`R`\>
2208
-
2209
- ### Returns
2210
-
2211
- `Promise`\<`R`\>
2212
-
2213
- ### Inherited from
2214
-
2215
- ```ts
2216
- AbstractArchivist.busy
2217
- ```
2218
-
2219
- ***
2220
-
2221
- ### emit()
2222
-
2223
- ```ts
2224
- emit<TEventName, TEventArgs>(eventName, eventArgs): Promise<void>;
2225
- ```
2226
-
2227
- Emits an event, invoking all registered listeners concurrently.
2228
-
2229
- ### Type Parameters
2230
-
2231
- #### TEventName
2232
-
2233
- `TEventName` *extends* `string` \| `number` \| `symbol` = keyof `TEventData`
2234
-
2235
- #### TEventArgs
2236
-
2237
- `TEventArgs` *extends* `EventArgs` = `TEventData`\[`TEventName`\]
2238
-
2239
- ### Parameters
2240
-
2241
- #### eventName
2242
-
2243
- `TEventName`
2244
-
2245
- The event to emit.
2246
-
2247
- #### eventArgs
2248
-
2249
- `TEventArgs`
2250
-
2251
- The data to pass to listeners.
2252
-
2253
- ### Returns
2254
-
2255
- `Promise`\<`void`\>
2256
-
2257
- ### Inherited from
2258
-
2259
- ```ts
2260
- AbstractArchivist.emit
2261
- ```
2262
-
2263
- ***
2264
-
2265
- ### isSupportedQuery()
2266
-
2267
- ```ts
2268
- isSupportedQuery(query, assert?): boolean;
2269
- ```
2270
-
2271
- ### Parameters
2272
-
2273
- #### query
2274
-
2275
- `Schema`
2276
-
2277
- #### assert?
2278
-
2279
- `string` \| `boolean`
2280
-
2281
- ### Returns
2282
-
2283
- `boolean`
2284
-
2285
- ### Inherited from
2286
-
2287
- ```ts
2288
- AbstractArchivist.isSupportedQuery
2289
- ```
2290
-
2291
- ***
2292
-
2293
- ### previousHash()
2294
-
2295
- ```ts
2296
- previousHash(): Promisable<string | undefined>;
2297
- ```
2298
-
2299
- ### Returns
2300
-
2301
- `Promisable`\<`string` \| `undefined`\>
2302
-
2303
- ### Inherited from
2304
-
2305
- ```ts
2306
- AbstractArchivist.previousHash
2307
- ```
2308
-
2309
- ***
2310
-
2311
- ### query()
2312
-
2313
- ```ts
2314
- query<T, TConfig>(
2315
- query,
2316
- payloads?,
2317
- queryConfig?): Promise<ModuleQueryResult>;
2318
- ```
2319
-
2320
- ### Type Parameters
2321
-
2322
- #### T
2323
-
2324
- `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
2325
-
2326
- #### TConfig
2327
-
2328
- `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
2329
-
2330
- ### Parameters
2331
-
2332
- #### query
2333
-
2334
- `T`
2335
-
2336
- #### payloads?
2337
-
2338
- `Payload`[]
2339
-
2340
- #### queryConfig?
2341
-
2342
- `TConfig`
2343
-
2344
- ### Returns
2345
-
2346
- `Promise`\<`ModuleQueryResult`\>
2347
-
2348
- ### Inherited from
2349
-
2350
- ```ts
2351
- AbstractArchivist.query
2352
- ```
2353
-
2354
- ***
2355
-
2356
- ### queryable()
2357
-
2358
- ```ts
2359
- queryable<T, TConfig>(
2360
- query,
2361
- payloads?,
2362
- queryConfig?): Promise<boolean>;
2363
- ```
2364
-
2365
- ### Type Parameters
2366
-
2367
- #### T
2368
-
2369
- `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
2370
-
2371
- #### TConfig
2372
-
2373
- `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
2374
-
2375
- ### Parameters
2376
-
2377
- #### query
2378
-
2379
- `T`
2380
-
2381
- #### payloads?
2382
-
2383
- `Payload`[]
2384
-
2385
- #### queryConfig?
2386
-
2387
- `TConfig`
2388
-
2389
- ### Returns
2390
-
2391
- `Promise`\<`boolean`\>
2392
-
2393
- ### Inherited from
2394
-
2395
- ```ts
2396
- AbstractArchivist.queryable
2397
- ```
2398
-
2399
- ***
2400
-
2401
- ### \_checkDead()
2402
-
2403
- ```ts
2404
- protected _checkDead(): void;
2405
- ```
2406
-
2407
- ### Returns
2408
-
2409
- `void`
2410
-
2411
- ### Inherited from
2412
-
2413
- ```ts
2414
- AbstractArchivist._checkDead
2415
- ```
2416
-
2417
- ***
2418
-
2419
- ### archivistInstance()
2420
-
2421
- ### Call Signature
2422
-
2423
- ```ts
2424
- protected archivistInstance(): Promise<
2425
- | ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
2426
- | undefined>;
2427
- ```
2428
-
2429
- #### Returns
2430
-
2431
- `Promise`\<
2432
- \| `ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>
2433
- \| `undefined`\>
2434
-
2435
- #### Inherited from
2436
-
2437
- ```ts
2438
- AbstractArchivist.archivistInstance
2439
- ```
2440
-
2441
- ### Call Signature
2442
-
2443
- ```ts
2444
- protected archivistInstance(required): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>>;
2445
- ```
2446
-
2447
- #### Parameters
2448
-
2449
- ##### required
2450
-
2451
- `true`
2452
-
2453
- #### Returns
2454
-
2455
- `Promise`\<`ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>\>
2456
-
2457
- #### Inherited from
2458
-
2459
- ```ts
2460
- AbstractArchivist.archivistInstance
2461
- ```
2462
-
2463
- ***
2464
-
2465
- ### bindHashes()
2466
-
2467
- ```ts
2468
- protected bindHashes(
2469
- hashes,
2470
- schema,
2471
- account?): PromiseEx<unknown, AccountInstance>;
2472
- ```
2473
-
2474
- ### Parameters
2475
-
2476
- #### hashes
2477
-
2478
- `BrandedHash`[]
2479
-
2480
- #### schema
2481
-
2482
- `Schema`[]
2483
-
2484
- #### account?
2485
-
2486
- `AccountInstance`
2487
-
2488
- ### Returns
2489
-
2490
- `PromiseEx`\<`unknown`, `AccountInstance`\>
2491
-
2492
- ### Inherited from
2493
-
2494
- ```ts
2495
- AbstractArchivist.bindHashes
2496
- ```
2497
-
2498
- ***
2499
-
2500
- ### bindHashesInternal()
2501
-
2502
- ```ts
2503
- protected bindHashesInternal(
2504
- hashes,
2505
- schema,
2506
- account?): Promise<{
2507
- schema: "network.xyo.boundwitness" & object;
2508
- addresses: Lowercase<string> & object & object[];
2509
- payload_hashes: BrandedHash[];
2510
- payload_schemas: BrandedSchema<string>[];
2511
- previous_hashes: (BrandedHash | null)[];
2512
- $destination?: Lowercase<string> & object & object;
2513
- $sourceQuery?: BrandedHash;
2514
- $signatures: (BrandedHex | null)[];
2515
- }>;
2516
- ```
2517
-
2518
- ### Parameters
2519
-
2520
- #### hashes
2521
-
2522
- `BrandedHash`[]
2523
-
2524
- #### schema
2525
-
2526
- `Schema`[]
2527
-
2528
- #### account?
2529
-
2530
- `AccountInstance`
2531
-
2532
- ### Returns
2533
-
2534
- `Promise`\<\{
2535
- `schema`: `"network.xyo.boundwitness"` & `object`;
2536
- `addresses`: `Lowercase`\<`string`\> & `object` & `object`[];
2537
- `payload_hashes`: `BrandedHash`[];
2538
- `payload_schemas`: `BrandedSchema`\<`string`\>[];
2539
- `previous_hashes`: (`BrandedHash` \| `null`)[];
2540
- `$destination?`: `Lowercase`\<`string`\> & `object` & `object`;
2541
- `$sourceQuery?`: `BrandedHash`;
2542
- `$signatures`: (`BrandedHex` \| `null`)[];
2543
- \}\>
2544
-
2545
- ### Inherited from
2546
-
2547
- ```ts
2548
- AbstractArchivist.bindHashesInternal
2549
- ```
2550
-
2551
- ***
2552
-
2553
- ### bindQuery()
2554
-
2555
- ```ts
2556
- protected bindQuery<T>(
2557
- query,
2558
- payloads?,
2559
- account?,
2560
- additionalSigners?): PromiseEx<[UnsignedQueryBoundWitness, Payload[], Payload[]], AccountInstance>;
2561
- ```
2562
-
2563
- ### Type Parameters
2564
-
2565
- #### T
2566
-
2567
- `T` *extends* `Query`
2568
-
2569
- ### Parameters
2570
-
2571
- #### query
2572
-
2573
- `T`
2574
-
2575
- #### payloads?
2576
-
2577
- `Payload`[]
2578
-
2579
- #### account?
2580
-
2581
- `AccountInstance`
2582
-
2583
- #### additionalSigners?
2584
-
2585
- `AccountInstance`[]
2586
-
2587
- ### Returns
2588
-
2589
- `PromiseEx`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `Payload`[]\], `AccountInstance`\>
2590
-
2591
- ### Inherited from
2592
-
2593
- ```ts
2594
- AbstractArchivist.bindQuery
2595
- ```
2596
-
2597
- ***
2598
-
2599
- ### bindQueryInternal()
2600
-
2601
- ```ts
2602
- protected bindQueryInternal<T>(
2603
- query,
2604
- payloads?,
2605
- account?,
2606
- additionalSigners?): Promise<[UnsignedQueryBoundWitness, Payload[], Payload[]]>;
2607
- ```
2608
-
2609
- ### Type Parameters
2610
-
2611
- #### T
2612
-
2613
- `T` *extends* `Query`
2614
-
2615
- ### Parameters
2616
-
2617
- #### query
2618
-
2619
- `T`
2620
-
2621
- #### payloads?
2622
-
2623
- `Payload`[]
2624
-
2625
- #### account?
2626
-
2627
- `AccountInstance`
2628
-
2629
- #### additionalSigners?
2630
-
2631
- `AccountInstance`[]
2632
-
2633
- ### Returns
2634
-
2635
- `Promise`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `Payload`[]\]\>
2636
-
2637
- ### Inherited from
2638
-
2639
- ```ts
2640
- AbstractArchivist.bindQueryInternal
2641
- ```
2642
-
2643
- ***
2644
-
2645
- ### bindQueryResult()
2646
-
2647
- ```ts
2648
- protected bindQueryResult<T>(
2649
- query,
2650
- payloads,
2651
- additionalWitnesses?,
2652
- errors?): Promise<ModuleQueryResult>;
2653
- ```
2654
-
2655
- ### Type Parameters
2656
-
2657
- #### T
2658
-
2659
- `T` *extends* `Query`
2660
-
2661
- ### Parameters
2662
-
2663
- #### query
2664
-
2665
- `T`
2666
-
2667
- #### payloads
2668
-
2669
- `Payload`[]
2670
-
2671
- #### additionalWitnesses?
2672
-
2673
- `AccountInstance`[]
2674
-
2675
- #### errors?
2676
-
2677
- `ModuleError`[]
2678
-
2679
- ### Returns
2680
-
2681
- `Promise`\<`ModuleQueryResult`\>
2682
-
2683
- ### Inherited from
2684
-
2685
- ```ts
2686
- AbstractArchivist.bindQueryResult
2687
- ```
2688
-
2689
- ***
2690
-
2691
- ### generateConfigAndAddress()
2692
-
2693
- ```ts
2694
- protected generateConfigAndAddress(_maxDepth?): Promisable<Payload[]>;
2695
- ```
2696
-
2697
- ### Parameters
2698
-
2699
- #### \_maxDepth?
2700
-
2701
- `number`
2702
-
2703
- ### Returns
2704
-
2705
- `Promisable`\<`Payload`[]\>
2706
-
2707
- ### Inherited from
2708
-
2709
- ```ts
2710
- AbstractArchivist.generateConfigAndAddress
2711
- ```
2712
-
2713
- ***
2714
-
2715
- ### generateDescribe()
2716
-
2717
- ```ts
2718
- protected generateDescribe(): Promise<ModuleDescriptionPayload>;
2719
- ```
2720
-
2721
- ### Returns
2722
-
2723
- `Promise`\<`ModuleDescriptionPayload`\>
2724
-
2725
- ### Inherited from
2726
-
2727
- ```ts
2728
- AbstractArchivist.generateDescribe
2729
- ```
2730
-
2731
- ***
2732
-
2733
- ### ~~getArchivist()~~
2734
-
2735
- ```ts
2736
- protected getArchivist(): Promise<
2737
- | ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
2738
- | undefined>;
2739
- ```
2740
-
2741
- ### Returns
2742
-
2743
- `Promise`\<
2744
- \| `ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>
2745
- \| `undefined`\>
2746
-
2747
- ### Deprecated
2748
-
2749
- use archivistInstance() instead
2750
-
2751
- ### Inherited from
2752
-
2753
- ```ts
2754
- AbstractArchivist.getArchivist
2755
- ```
2756
-
2757
- ***
2758
-
2759
- ### isAllowedArchivingQuery()
2760
-
2761
- ```ts
2762
- protected isAllowedArchivingQuery(schema): boolean;
2763
- ```
2764
-
2765
- ### Parameters
2766
-
2767
- #### schema
2768
-
2769
- `Schema`
2770
-
2771
- ### Returns
2772
-
2773
- `boolean`
2774
-
2775
- ### Inherited from
2776
-
2777
- ```ts
2778
- AbstractArchivist.isAllowedArchivingQuery
2779
- ```
2780
-
2781
- ***
2782
-
2783
- ### moduleAddressHandler()
2784
-
2785
- ```ts
2786
- protected moduleAddressHandler(): Promisable<(AddressPayload | AddressPreviousHashPayload)[]>;
2787
- ```
2788
-
2789
- ### Returns
2790
-
2791
- `Promisable`\<(`AddressPayload` \| `AddressPreviousHashPayload`)[]\>
2792
-
2793
- ### Inherited from
2794
-
2795
- ```ts
2796
- AbstractArchivist.moduleAddressHandler
2797
- ```
2798
-
2799
- ***
2800
-
2801
- ### stopHandler()
2802
-
2803
- ```ts
2804
- protected stopHandler(): Promise<void>;
2805
- ```
2806
-
2807
- Override in subclasses to define stop behavior. Throw an error on failure.
2808
-
2809
- ### Returns
2810
-
2811
- `Promise`\<`void`\>
2812
-
2813
- ### Inherited from
2814
-
2815
- ```ts
2816
- AbstractArchivist.stopHandler
2817
- ```
2818
-
2819
- ***
2820
-
2821
- ### subscribeHandler()
2822
-
2823
- ```ts
2824
- protected subscribeHandler(): void;
2825
- ```
2826
-
2827
- ### Returns
2828
-
2829
- `void`
2830
-
2831
- ### Inherited from
2832
-
2833
- ```ts
2834
- AbstractArchivist.subscribeHandler
2835
- ```
2836
-
2837
- ***
2838
-
2839
- ### validateConfig()
2840
-
2841
- ```ts
2842
- protected validateConfig(config?, parents?): boolean;
2843
- ```
2844
-
2845
- ### Parameters
2846
-
2847
- #### config?
2848
-
2849
- `unknown`
2850
-
2851
- #### parents?
2852
-
2853
- `string`[]
2854
-
2855
- ### Returns
2856
-
2857
- `boolean`
2858
-
2859
- ### Inherited from
2860
-
2861
- ```ts
2862
- AbstractArchivist.validateConfig
2863
- ```
2864
-
2865
- ***
2866
-
2867
- ### addParent()
2868
-
2869
- ```ts
2870
- addParent(mod): void;
2871
- ```
2872
-
2873
- ### Parameters
2874
-
2875
- #### mod
2876
-
2877
- `ModuleInstance`
2878
-
2879
- ### Returns
2880
-
2881
- `void`
2882
-
2883
- ### Inherited from
2884
-
2885
- ```ts
2886
- AbstractArchivist.addParent
2887
- ```
2888
-
2889
- ***
2890
-
2891
- ### certifyParents()
2892
-
2893
- ```ts
2894
- certifyParents(): Promise<Payload[]>;
2895
- ```
2896
-
2897
- ### Returns
2898
-
2899
- `Promise`\<`Payload`[]\>
2900
-
2901
- ### Inherited from
2902
-
2903
- ```ts
2904
- AbstractArchivist.certifyParents
2905
- ```
2906
-
2907
- ***
2908
-
2909
- ### createHandler()
2910
-
2911
- ```ts
2912
- createHandler(): Promise<void>;
2913
- ```
2914
-
2915
- ### Returns
2916
-
2917
- `Promise`\<`void`\>
2918
-
2919
- ### Inherited from
2920
-
2921
- ```ts
2922
- AbstractArchivist.createHandler
2923
- ```
2924
-
2925
- ***
2926
-
2927
- ### manifest()
2928
-
2929
- ```ts
2930
- manifest(maxDepth?): Promise<ModuleManifestPayload>;
2931
- ```
2932
-
2933
- ### Parameters
2934
-
2935
- #### maxDepth?
2936
-
2937
- `number`
2938
-
2939
- ### Returns
2940
-
2941
- `Promise`\<`ModuleManifestPayload`\>
2942
-
2943
- ### Inherited from
2944
-
2945
- ```ts
2946
- AbstractArchivist.manifest
2947
- ```
2948
-
2949
- ***
2950
-
2951
- ### manifestQuery()
2952
-
2953
- ```ts
2954
- manifestQuery(account, maxDepth?): Promise<ModuleQueryResult<ModuleManifestPayload>>;
2955
- ```
2956
-
2957
- ### Parameters
2958
-
2959
- #### account
2960
-
2961
- `AccountInstance`
2962
-
2963
- #### maxDepth?
2964
-
2965
- `number`
2966
-
2967
- ### Returns
2968
-
2969
- `Promise`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
2970
-
2971
- ### Inherited from
2972
-
2973
- ```ts
2974
- AbstractArchivist.manifestQuery
2975
- ```
2976
-
2977
- ***
2978
-
2979
- ### moduleAddress()
2980
-
2981
- ```ts
2982
- moduleAddress(): Promise<(AddressPayload | AddressPreviousHashPayload)[]>;
2983
- ```
2984
-
2985
- ### Returns
2986
-
2987
- `Promise`\<(`AddressPayload` \| `AddressPreviousHashPayload`)[]\>
2988
-
2989
- ### Inherited from
2990
-
2991
- ```ts
2992
- AbstractArchivist.moduleAddress
2993
- ```
2994
-
2995
- ***
2996
-
2997
- ### parents()
2998
-
2999
- ```ts
3000
- parents(): Promisable<NodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>[]>;
3001
- ```
3002
-
3003
- ### Returns
3004
-
3005
- `Promisable`\<`NodeInstance`\<`NodeParams`\<`AnyConfigSchema`\<`NodeConfig`\>\>, `NodeModuleEventData`\>[]\>
3006
-
3007
- ### Inherited from
3008
-
3009
- ```ts
3010
- AbstractArchivist.parents
3011
- ```
3012
-
3013
- ***
3014
-
3015
- ### privateChildren()
3016
-
3017
- ```ts
3018
- privateChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
3019
- ```
3020
-
3021
- ### Returns
3022
-
3023
- `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
3024
-
3025
- ### Inherited from
3026
-
3027
- ```ts
3028
- AbstractArchivist.privateChildren
3029
- ```
3030
-
3031
- ***
3032
-
3033
- ### publicChildren()
3034
-
3035
- ```ts
3036
- publicChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
3037
- ```
3038
-
3039
- ### Returns
3040
-
3041
- `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
3042
-
3043
- ### Inherited from
3044
-
3045
- ```ts
3046
- AbstractArchivist.publicChildren
3047
- ```
3048
-
3049
- ***
3050
-
3051
- ### removeParent()
3052
-
3053
- ```ts
3054
- removeParent(address): void;
3055
- ```
3056
-
3057
- ### Parameters
3058
-
3059
- #### address
3060
-
3061
- `BrandedAddress`
3062
-
3063
- ### Returns
3064
-
3065
- `void`
3066
-
3067
- ### Inherited from
3068
-
3069
- ```ts
3070
- AbstractArchivist.removeParent
3071
- ```
3072
-
3073
- ***
3074
-
3075
- ### resolve()
3076
-
3077
- ### Call Signature
3078
-
3079
- ```ts
3080
- resolve(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
3081
- ```
3082
-
3083
- #### Returns
3084
-
3085
- `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
3086
-
3087
- #### Inherited from
3088
-
3089
- ```ts
3090
- AbstractArchivist.resolve
3091
- ```
3092
-
3093
- ### Call Signature
3094
-
3095
- ```ts
3096
- resolve<T>(all, options?): Promise<T[]>;
3097
- ```
3098
-
3099
- #### Type Parameters
3100
-
3101
- ##### T
3102
-
3103
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
3104
-
3105
- #### Parameters
3106
-
3107
- ##### all
3108
-
3109
- `"*"`
3110
-
3111
- ##### options?
3112
-
3113
- `ModuleFilterOptions`\<`T`\>
3114
-
3115
- #### Returns
3116
-
3117
- `Promise`\<`T`[]\>
3118
-
3119
- #### Inherited from
3120
-
3121
- ```ts
3122
- AbstractArchivist.resolve
3123
- ```
3124
-
3125
- ### Call Signature
3126
-
3127
- ```ts
3128
- resolve<T>(id, options?): Promise<T | undefined>;
3129
- ```
3130
-
3131
- #### Type Parameters
3132
-
3133
- ##### T
3134
-
3135
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
3136
-
3137
- #### Parameters
3138
-
3139
- ##### id
3140
-
3141
- `ModuleIdentifier`
3142
-
3143
- ##### options?
3144
-
3145
- `ModuleFilterOptions`\<`T`\>
3146
-
3147
- #### Returns
3148
-
3149
- `Promise`\<`T` \| `undefined`\>
3150
-
3151
- #### Inherited from
3152
-
3153
- ```ts
3154
- AbstractArchivist.resolve
3155
- ```
3156
-
3157
- ***
3158
-
3159
- ### resolveIdentifier()
3160
-
3161
- ```ts
3162
- resolveIdentifier(id, options?): Promise<BrandedAddress | undefined>;
3163
- ```
3164
-
3165
- ### Parameters
3166
-
3167
- #### id
3168
-
3169
- `ModuleIdentifier`
3170
-
3171
- #### options?
3172
-
3173
- `ObjectFilterOptions`\<`AnyObject`\>
3174
-
3175
- ### Returns
3176
-
3177
- `Promise`\<`BrandedAddress` \| `undefined`\>
3178
-
3179
- ### Inherited from
3180
-
3181
- ```ts
3182
- AbstractArchivist.resolveIdentifier
3183
- ```
3184
-
3185
- ***
3186
-
3187
- ### resolvePrivate()
3188
-
3189
- ### Call Signature
3190
-
3191
- ```ts
3192
- resolvePrivate<T>(all, options?): Promise<T[]>;
3193
- ```
3194
-
3195
- #### Type Parameters
3196
-
3197
- ##### T
3198
-
3199
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
3200
-
3201
- #### Parameters
3202
-
3203
- ##### all
3204
-
3205
- `"*"`
3206
-
3207
- ##### options?
3208
-
3209
- `ModuleFilterOptions`\<`T`\>
3210
-
3211
- #### Returns
3212
-
3213
- `Promise`\<`T`[]\>
3214
-
3215
- #### Inherited from
3216
-
3217
- ```ts
3218
- AbstractArchivist.resolvePrivate
3219
- ```
3220
-
3221
- ### Call Signature
3222
-
3223
- ```ts
3224
- resolvePrivate<T>(id, options?): Promise<T | undefined>;
3225
- ```
3226
-
3227
- #### Type Parameters
3228
-
3229
- ##### T
3230
-
3231
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
3232
-
3233
- #### Parameters
3234
-
3235
- ##### id
3236
-
3237
- `ModuleIdentifier`
3238
-
3239
- ##### options?
3240
-
3241
- `ModuleFilterOptions`\<`T`\>
3242
-
3243
- #### Returns
3244
-
3245
- `Promise`\<`T` \| `undefined`\>
3246
-
3247
- #### Inherited from
3248
-
3249
- ```ts
3250
- AbstractArchivist.resolvePrivate
3251
- ```
3252
-
3253
- ***
3254
-
3255
- ### siblings()
3256
-
3257
- ```ts
3258
- siblings(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
3259
- ```
3260
-
3261
- ### Returns
3262
-
3263
- `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
3264
-
3265
- ### Inherited from
3266
-
3267
- ```ts
3268
- AbstractArchivist.siblings
3269
- ```
3270
-
3271
- ***
3272
-
3273
- ### state()
3274
-
3275
- ```ts
3276
- state(): Promise<Payload[]>;
3277
- ```
3278
-
3279
- ### Returns
3280
-
3281
- `Promise`\<`Payload`[]\>
3282
-
3283
- ### Inherited from
3284
-
3285
- ```ts
3286
- AbstractArchivist.state
3287
- ```
3288
-
3289
- ***
3290
-
3291
- ### stateQuery()
3292
-
3293
- ```ts
3294
- stateQuery(account): Promise<ModuleQueryResult>;
3295
- ```
3296
-
3297
- ### Parameters
3298
-
3299
- #### account
3300
-
3301
- `AccountInstance`
3302
-
3303
- ### Returns
3304
-
3305
- `Promise`\<`ModuleQueryResult`\>
3306
-
3307
- ### Inherited from
3308
-
3309
- ```ts
3310
- AbstractArchivist.stateQuery
3311
- ```
3312
-
3313
- ***
3314
-
3315
- ### subscribe()
3316
-
3317
- ```ts
3318
- subscribe(_queryAccount?): void;
3319
- ```
3320
-
3321
- ### Parameters
3322
-
3323
- #### \_queryAccount?
3324
-
3325
- `AccountInstance`
3326
-
3327
- ### Returns
3328
-
3329
- `void`
3330
-
3331
- ### Inherited from
3332
-
3333
- ```ts
3334
- AbstractArchivist.subscribe
3335
- ```
3336
-
3337
- ***
3338
-
3339
- ### manifestHandler()
3340
-
3341
- ```ts
3342
- protected manifestHandler(maxDepth?, _ignoreAddresses?): Promise<ModuleManifestPayload>;
3343
- ```
3344
-
3345
- ### Parameters
3346
-
3347
- #### maxDepth?
3348
-
3349
- `number`
3350
-
3351
- #### \_ignoreAddresses?
3352
-
3353
- `BrandedAddress`[]
3354
-
3355
- ### Returns
3356
-
3357
- `Promise`\<`ModuleManifestPayload`\>
3358
-
3359
- ### Inherited from
3360
-
3361
- ```ts
3362
- AbstractArchivist.manifestHandler
3363
- ```
3364
-
3365
- ***
3366
-
3367
- ### resolveArchivingArchivists()
3368
-
3369
- ```ts
3370
- protected resolveArchivingArchivists(): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>[]>;
3371
- ```
3372
-
3373
- ### Returns
3374
-
3375
- `Promise`\<`ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>[]\>
3376
-
3377
- ### Inherited from
3378
-
3379
- ```ts
3380
- AbstractArchivist.resolveArchivingArchivists
3381
- ```
3382
-
3383
- ***
3384
-
3385
- ### sendQuery()
3386
-
3387
- ```ts
3388
- protected sendQuery<T, P, R>(
3389
- queryPayload,
3390
- payloads?,
3391
- account?): Promise<R[]>;
3392
- ```
3393
-
3394
- ### Type Parameters
3395
-
3396
- #### T
3397
-
3398
- `T` *extends* `Query`
3399
-
3400
- #### P
3401
-
3402
- `P` *extends* `Payload` = `Payload`
3403
-
3404
- #### R
3405
-
3406
- `R` *extends* `Payload` = `Payload`
3407
-
3408
- ### Parameters
3409
-
3410
- #### queryPayload
3411
-
3412
- `T`
3413
-
3414
- #### payloads?
3415
-
3416
- `P`[]
3417
-
3418
- #### account?
3419
-
3420
- `AccountInstance`
3421
-
3422
- ### Returns
3423
-
3424
- `Promise`\<`R`[]\>
3425
-
3426
- ### Inherited from
3427
-
3428
- ```ts
3429
- AbstractArchivist.sendQuery
3430
- ```
3431
-
3432
- ***
3433
-
3434
- ### sendQueryRaw()
3435
-
3436
- ```ts
3437
- protected sendQueryRaw<T, P, R>(
3438
- queryPayload,
3439
- payloads?,
3440
- account?): Promise<ModuleQueryResult<R>>;
3441
- ```
3442
-
3443
- ### Type Parameters
3444
-
3445
- #### T
3446
-
3447
- `T` *extends* `Query`
3448
-
3449
- #### P
3450
-
3451
- `P` *extends* `Payload` = `Payload`
3452
-
3453
- #### R
3454
-
3455
- `R` *extends* `Payload` = `Payload`
3456
-
3457
- ### Parameters
3458
-
3459
- #### queryPayload
3460
-
3461
- `T`
3462
-
3463
- #### payloads?
3464
-
3465
- `P`[]
3466
-
3467
- #### account?
3468
-
3469
- `AccountInstance`
3470
-
3471
- ### Returns
3472
-
3473
- `Promise`\<`ModuleQueryResult`\<`R`\>\>
3474
-
3475
- ### Inherited from
3476
-
3477
- ```ts
3478
- AbstractArchivist.sendQueryRaw
3479
- ```
3480
-
3481
- ***
3482
-
3483
- ### storeToArchivists()
3484
-
3485
- ```ts
3486
- protected storeToArchivists(payloads): Promise<Payload[]>;
3487
- ```
3488
-
3489
- ### Parameters
3490
-
3491
- #### payloads
3492
-
3493
- `Payload`[]
3494
-
3495
- ### Returns
3496
-
3497
- `Promise`\<`Payload`[]\>
3498
-
3499
- ### Inherited from
3500
-
3501
- ```ts
3502
- AbstractArchivist.storeToArchivists
3503
- ```
3504
-
3505
- ### interfaces
3506
-
3507
- ### <a id="FirebaseArchivistParams"></a>FirebaseArchivistParams
3508
-
3509
- [**@xyo-network/archivist-firebase**](#../README)
3510
-
3511
- ***
3512
-
3513
- ## Extends
3514
-
3515
- - `ArchivistParams`\<`AnyConfigSchema`\<[`FirebaseArchivistConfig`](#../type-aliases/FirebaseArchivistConfig)\>\>
3516
-
3517
- ## Properties
3518
-
3519
- ### firebaseApp?
3520
-
3521
- ```ts
3522
- optional firebaseApp?: FirebaseApp;
3523
- ```
3524
-
3525
- ***
3526
-
3527
- ### keys?
3528
-
3529
- ```ts
3530
- optional keys?: ArchivistKeyParams<BrandedHash, Payload, BrandedHash>;
3531
- ```
3532
-
3533
- ### Inherited from
3534
-
3535
- ```ts
3536
- ArchivistParams.keys
3537
- ```
3538
-
3539
- ***
3540
-
3541
- ### parents?
3542
-
3543
- ```ts
3544
- optional parents?: ArchivistParentInstances;
3545
- ```
3546
-
3547
- ### Inherited from
3548
-
3549
- ```ts
3550
- ArchivistParams.parents
3551
- ```
3552
-
3553
- ***
3554
-
3555
- ### values?
3556
-
3557
- ```ts
3558
- optional values?: ArchivistValueParams<Payload, Payload>;
3559
- ```
3560
-
3561
- ### Inherited from
3562
-
3563
- ```ts
3564
- ArchivistParams.values
3565
- ```
3566
-
3567
- ***
3568
-
3569
- ### account?
3570
-
3571
- ```ts
3572
- optional account?: AccountInstance | "random";
3573
- ```
3574
-
3575
- ### Inherited from
3576
-
3577
- ```ts
3578
- ArchivistParams.account
3579
- ```
3580
-
3581
- ***
3582
-
3583
- ### addToResolvers?
3584
-
3585
- ```ts
3586
- optional addToResolvers?: boolean;
3587
- ```
3588
-
3589
- ### Inherited from
3590
-
3591
- ```ts
3592
- ArchivistParams.addToResolvers
3593
- ```
3594
-
3595
- ***
3596
-
3597
- ### additionalSigners?
3598
-
3599
- ```ts
3600
- optional additionalSigners?: AccountInstance[];
3601
- ```
3602
-
3603
- ### Inherited from
3604
-
3605
- ```ts
3606
- ArchivistParams.additionalSigners
3607
- ```
3608
-
3609
- ***
3610
-
3611
- ### allowNameResolution?
3612
-
3613
- ```ts
3614
- optional allowNameResolution?: boolean;
3615
- ```
3616
-
3617
- ### Inherited from
3618
-
3619
- ```ts
3620
- ArchivistParams.allowNameResolution
3621
- ```
3622
-
3623
- ***
3624
-
3625
- ### config
3626
-
3627
- ```ts
3628
- config: Partial<TConfig>;
3629
- ```
3630
-
3631
- ### Inherited from
3632
-
3633
- ```ts
3634
- ArchivistParams.config
3635
- ```
3636
-
3637
- ***
3638
-
3639
- ### ephemeralQueryAccountEnabled?
3640
-
3641
- ```ts
3642
- optional ephemeralQueryAccountEnabled?: boolean;
3643
- ```
3644
-
3645
- ### Inherited from
3646
-
3647
- ```ts
3648
- ArchivistParams.ephemeralQueryAccountEnabled
3649
- ```
3650
-
3651
- ***
3652
-
3653
- ### moduleIdentifierTransformers?
3654
-
3655
- ```ts
3656
- optional moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
3657
- ```
3658
-
3659
- ### Inherited from
3660
-
3661
- ```ts
3662
- ArchivistParams.moduleIdentifierTransformers
3663
- ```
3664
-
3665
- ***
3666
-
3667
- ### statusReporter?
3668
-
3669
- ```ts
3670
- optional statusReporter?: ModuleStatusReporter;
3671
- ```
3672
-
3673
- Optional reporter for broadcasting status changes.
3674
-
3675
- ### Inherited from
3676
-
3677
- ```ts
3678
- ArchivistParams.statusReporter
3679
- ```
3680
-
3681
- ### type-aliases
3682
-
3683
- ### <a id="FirebaseArchivistConfig"></a>FirebaseArchivistConfig
3684
-
3685
- [**@xyo-network/archivist-firebase**](#../README)
3686
-
3687
- ***
3688
-
3689
- ```ts
3690
- type FirebaseArchivistConfig = ArchivistConfig<{
3691
- collection?: string;
3692
- dbId?: string;
3693
- schema: FirebaseArchivistConfigSchema;
3694
- }>;
3695
- ```
3696
-
3697
- ### <a id="FirebaseArchivistConfigSchema"></a>FirebaseArchivistConfigSchema
3698
-
3699
- [**@xyo-network/archivist-firebase**](#../README)
3700
-
3701
- ***
3702
-
3703
- ```ts
3704
- type FirebaseArchivistConfigSchema = typeof FirebaseArchivistConfigSchema;
3705
- ```
3706
-
3707
- ### <a id="FirebaseArchivistSchema"></a>FirebaseArchivistSchema
3708
-
3709
- [**@xyo-network/archivist-firebase**](#../README)
3710
-
3711
- ***
3712
-
3713
- ```ts
3714
- type FirebaseArchivistSchema = typeof FirebaseArchivistSchema;
3715
- ```
3716
-
3717
- ### variables
3718
-
3719
- ### <a id="FirebaseArchivistConfigSchema"></a>FirebaseArchivistConfigSchema
3720
-
3721
- [**@xyo-network/archivist-firebase**](#../README)
3722
-
3723
- ***
3724
-
3725
- ```ts
3726
- const FirebaseArchivistConfigSchema: string & object;
3727
- ```
3728
-
3729
- ## Type Declaration
3730
-
3731
- ### \_\_schema
3732
-
3733
- ```ts
3734
- readonly __schema: true;
3735
- ```
3736
-
3737
- ### <a id="FirebaseArchivistSchema"></a>FirebaseArchivistSchema
3738
-
3739
- [**@xyo-network/archivist-firebase**](#../README)
3740
-
3741
- ***
3742
-
3743
- ```ts
3744
- const FirebaseArchivistSchema: "network.xyo.archivist.firebase" & object;
3745
- ```
3746
-
3747
- ## Type Declaration
3748
-
3749
- ### \_\_schema
3750
-
3751
- ```ts
3752
- readonly __schema: true;
3753
- ```
3754
41
 
3755
42
 
3756
43
  [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png