@xyo-network/diviner-jsonpath-aggregate 5.3.25 → 5.3.27
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 +3067 -10
- package/package.json +24 -32
package/README.md
CHANGED
|
@@ -1,23 +1,3080 @@
|
|
|
1
|
+
[![logo][]](https://xyo.network)
|
|
2
|
+
|
|
1
3
|
# @xyo-network/diviner-jsonpath-aggregate
|
|
2
4
|
|
|
3
|
-
[![
|
|
5
|
+
[![npm][npm-badge]][npm-link]
|
|
6
|
+
[![license][license-badge]][license-link]
|
|
7
|
+
|
|
8
|
+
> Primary SDK for using XYO Protocol 2.0
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
Using npm:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install {{name}}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Using yarn:
|
|
4
19
|
|
|
5
|
-
|
|
20
|
+
```sh
|
|
21
|
+
yarn add {{name}}
|
|
22
|
+
```
|
|
6
23
|
|
|
7
|
-
|
|
24
|
+
Using pnpm:
|
|
8
25
|
|
|
9
|
-
|
|
26
|
+
```sh
|
|
27
|
+
pnpm add {{name}}
|
|
28
|
+
```
|
|
10
29
|
|
|
11
|
-
|
|
30
|
+
Using bun:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
bun add {{name}}
|
|
34
|
+
```
|
|
12
35
|
|
|
13
|
-
Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
|
|
14
36
|
|
|
15
37
|
## License
|
|
16
38
|
|
|
17
|
-
|
|
39
|
+
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
40
|
+
|
|
41
|
+
## Reference
|
|
42
|
+
|
|
43
|
+
### packages
|
|
44
|
+
|
|
45
|
+
### modules
|
|
46
|
+
|
|
47
|
+
### packages
|
|
48
|
+
|
|
49
|
+
### diviner
|
|
50
|
+
|
|
51
|
+
### packages
|
|
52
|
+
|
|
53
|
+
### jsonpath
|
|
54
|
+
|
|
55
|
+
### packages
|
|
56
|
+
|
|
57
|
+
### aggregate
|
|
58
|
+
|
|
59
|
+
### .temp-typedoc
|
|
60
|
+
|
|
61
|
+
### classes
|
|
62
|
+
|
|
63
|
+
### <a id="JsonPathAggregateDiviner"></a>JsonPathAggregateDiviner
|
|
64
|
+
|
|
65
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
## Extends
|
|
70
|
+
|
|
71
|
+
- `AbstractDiviner`\<`TParams`, `TIn`, `TOut`, `TEventData`\>
|
|
72
|
+
|
|
73
|
+
## Type Parameters
|
|
74
|
+
|
|
75
|
+
### TParams
|
|
76
|
+
|
|
77
|
+
`TParams` *extends* [`JsonPathAggregateDivinerParams`](#../type-aliases/JsonPathAggregateDivinerParams) = [`JsonPathAggregateDivinerParams`](#../type-aliases/JsonPathAggregateDivinerParams)
|
|
78
|
+
|
|
79
|
+
### TIn
|
|
80
|
+
|
|
81
|
+
`TIn` *extends* `Payload` = `Payload`
|
|
82
|
+
|
|
83
|
+
### TOut
|
|
84
|
+
|
|
85
|
+
`TOut` *extends* `Payload` = `Payload`
|
|
86
|
+
|
|
87
|
+
### TEventData
|
|
88
|
+
|
|
89
|
+
`TEventData` *extends* `DivinerModuleEventData`\<`DivinerInstance`\<`TParams`, `TIn`, `TOut`\>, `TIn`, `TOut`\> = `DivinerModuleEventData`\<`DivinerInstance`\<`TParams`, `TIn`, `TOut`\>, `TIn`, `TOut`\>
|
|
90
|
+
|
|
91
|
+
## Constructors
|
|
92
|
+
|
|
93
|
+
### Constructor
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
new JsonPathAggregateDiviner<TParams, TIn, TOut, TEventData>(key, params): JsonPathAggregateDiviner<TParams, TIn, TOut, TEventData>;
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Parameters
|
|
100
|
+
|
|
101
|
+
#### key
|
|
102
|
+
|
|
103
|
+
`unknown`
|
|
104
|
+
|
|
105
|
+
#### params
|
|
106
|
+
|
|
107
|
+
`Partial`\<`TParams` & `RequiredCreatableParams`\>
|
|
108
|
+
|
|
109
|
+
### Returns
|
|
110
|
+
|
|
111
|
+
`JsonPathAggregateDiviner`\<`TParams`, `TIn`, `TOut`, `TEventData`\>
|
|
112
|
+
|
|
113
|
+
### Inherited from
|
|
114
|
+
|
|
115
|
+
```ts
|
|
116
|
+
AbstractDiviner<TParams, TIn, TOut, TEventData>.constructor
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Properties
|
|
120
|
+
|
|
121
|
+
### targetSchema
|
|
122
|
+
|
|
123
|
+
```ts
|
|
124
|
+
readonly static targetSchema: Schema;
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Inherited from
|
|
128
|
+
|
|
129
|
+
```ts
|
|
130
|
+
AbstractDiviner.targetSchema
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
***
|
|
134
|
+
|
|
135
|
+
### uniqueName
|
|
136
|
+
|
|
137
|
+
```ts
|
|
138
|
+
readonly static uniqueName: string;
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Inherited from
|
|
142
|
+
|
|
143
|
+
```ts
|
|
144
|
+
AbstractDiviner.uniqueName
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
***
|
|
148
|
+
|
|
149
|
+
### configSchemas
|
|
150
|
+
|
|
151
|
+
```ts
|
|
152
|
+
readonly static configSchemas: Schema[];
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Overrides
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
AbstractDiviner.configSchemas
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
***
|
|
162
|
+
|
|
163
|
+
### defaultConfigSchema
|
|
164
|
+
|
|
165
|
+
```ts
|
|
166
|
+
readonly static defaultConfigSchema: Schema;
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Overrides
|
|
170
|
+
|
|
171
|
+
```ts
|
|
172
|
+
AbstractDiviner.defaultConfigSchema
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
***
|
|
176
|
+
|
|
177
|
+
### \_transforms
|
|
178
|
+
|
|
179
|
+
```ts
|
|
180
|
+
protected _transforms:
|
|
181
|
+
| PayloadTransformer[]
|
|
182
|
+
| undefined;
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
***
|
|
186
|
+
|
|
187
|
+
### isTransformablePayload
|
|
188
|
+
|
|
189
|
+
```ts
|
|
190
|
+
protected isTransformablePayload: (x) => boolean;
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Identifies if a payload is one that is transformed by this diviner
|
|
194
|
+
|
|
195
|
+
### Parameters
|
|
196
|
+
|
|
197
|
+
#### x
|
|
198
|
+
|
|
199
|
+
`Payload`
|
|
200
|
+
|
|
201
|
+
The candidate payload
|
|
202
|
+
|
|
203
|
+
### Returns
|
|
204
|
+
|
|
205
|
+
`boolean`
|
|
206
|
+
|
|
207
|
+
True if the payload is one transformed by this diviner, false otherwise
|
|
208
|
+
|
|
209
|
+
***
|
|
210
|
+
|
|
211
|
+
### isTransformableSchema
|
|
212
|
+
|
|
213
|
+
```ts
|
|
214
|
+
protected isTransformableSchema: (schema?) => boolean;
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Identifies if a schema is one that is transformed by this diviner
|
|
218
|
+
|
|
219
|
+
### Parameters
|
|
220
|
+
|
|
221
|
+
#### schema?
|
|
222
|
+
|
|
223
|
+
`string` \| `null`
|
|
224
|
+
|
|
225
|
+
The candidate schema
|
|
226
|
+
|
|
227
|
+
### Returns
|
|
228
|
+
|
|
229
|
+
`boolean`
|
|
230
|
+
|
|
231
|
+
True if this schema is one transformed by this diviner, false otherwise
|
|
232
|
+
|
|
233
|
+
***
|
|
234
|
+
|
|
235
|
+
### allowRandomAccount
|
|
236
|
+
|
|
237
|
+
```ts
|
|
238
|
+
readonly static allowRandomAccount: boolean;
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Inherited from
|
|
242
|
+
|
|
243
|
+
```ts
|
|
244
|
+
AbstractDiviner.allowRandomAccount
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
***
|
|
248
|
+
|
|
249
|
+
### defaultLogger
|
|
250
|
+
|
|
251
|
+
```ts
|
|
252
|
+
static defaultLogger: Logger;
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Inherited from
|
|
256
|
+
|
|
257
|
+
```ts
|
|
258
|
+
AbstractDiviner.defaultLogger
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
***
|
|
262
|
+
|
|
263
|
+
### enableLazyLoad
|
|
264
|
+
|
|
265
|
+
```ts
|
|
266
|
+
static enableLazyLoad: boolean;
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### Inherited from
|
|
270
|
+
|
|
271
|
+
```ts
|
|
272
|
+
AbstractDiviner.enableLazyLoad
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
***
|
|
276
|
+
|
|
277
|
+
### labels
|
|
278
|
+
|
|
279
|
+
```ts
|
|
280
|
+
readonly static labels: Labels;
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
### Inherited from
|
|
284
|
+
|
|
285
|
+
```ts
|
|
286
|
+
AbstractDiviner.labels
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
***
|
|
290
|
+
|
|
291
|
+
### privateConstructorKey
|
|
292
|
+
|
|
293
|
+
```ts
|
|
294
|
+
protected static privateConstructorKey: string;
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### Inherited from
|
|
298
|
+
|
|
299
|
+
```ts
|
|
300
|
+
AbstractDiviner.privateConstructorKey
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
***
|
|
304
|
+
|
|
305
|
+
### \_account
|
|
306
|
+
|
|
307
|
+
```ts
|
|
308
|
+
protected _account: AccountInstance | undefined;
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
### Inherited from
|
|
312
|
+
|
|
313
|
+
```ts
|
|
314
|
+
AbstractDiviner._account
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
***
|
|
318
|
+
|
|
319
|
+
### \_cachedManifests
|
|
320
|
+
|
|
321
|
+
```ts
|
|
322
|
+
protected _cachedManifests: LRUCache<number, ModuleManifestPayload, unknown>;
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
### Inherited from
|
|
326
|
+
|
|
327
|
+
```ts
|
|
328
|
+
AbstractDiviner._cachedManifests
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
***
|
|
332
|
+
|
|
333
|
+
### \_globalReentrancyMutex
|
|
334
|
+
|
|
335
|
+
```ts
|
|
336
|
+
protected _globalReentrancyMutex: Mutex | undefined;
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
### Inherited from
|
|
340
|
+
|
|
341
|
+
```ts
|
|
342
|
+
AbstractDiviner._globalReentrancyMutex
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
***
|
|
346
|
+
|
|
347
|
+
### \_lastError?
|
|
348
|
+
|
|
349
|
+
```ts
|
|
350
|
+
protected optional _lastError?: ModuleDetailsError;
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### Inherited from
|
|
354
|
+
|
|
355
|
+
```ts
|
|
356
|
+
AbstractDiviner._lastError
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
***
|
|
360
|
+
|
|
361
|
+
### \_moduleConfigQueryValidator
|
|
362
|
+
|
|
363
|
+
```ts
|
|
364
|
+
protected _moduleConfigQueryValidator: Queryable | undefined;
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
### Inherited from
|
|
368
|
+
|
|
369
|
+
```ts
|
|
370
|
+
AbstractDiviner._moduleConfigQueryValidator
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
***
|
|
374
|
+
|
|
375
|
+
### \_supportedQueryValidator
|
|
376
|
+
|
|
377
|
+
```ts
|
|
378
|
+
protected _supportedQueryValidator: Queryable | undefined;
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
### Inherited from
|
|
382
|
+
|
|
383
|
+
```ts
|
|
384
|
+
AbstractDiviner._supportedQueryValidator
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
***
|
|
388
|
+
|
|
389
|
+
### useNewResolver
|
|
390
|
+
|
|
391
|
+
```ts
|
|
392
|
+
readonly static useNewResolver: false = false;
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
### Inherited from
|
|
396
|
+
|
|
397
|
+
```ts
|
|
398
|
+
AbstractDiviner.useNewResolver
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
## Accessors
|
|
402
|
+
|
|
403
|
+
### queries
|
|
404
|
+
|
|
405
|
+
### Get Signature
|
|
406
|
+
|
|
407
|
+
```ts
|
|
408
|
+
get queries(): Schema[];
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
#### Returns
|
|
412
|
+
|
|
413
|
+
`Schema`[]
|
|
414
|
+
|
|
415
|
+
### Inherited from
|
|
416
|
+
|
|
417
|
+
```ts
|
|
418
|
+
AbstractDiviner.queries
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
***
|
|
422
|
+
|
|
423
|
+
### destinationSchema
|
|
424
|
+
|
|
425
|
+
### Get Signature
|
|
426
|
+
|
|
427
|
+
```ts
|
|
428
|
+
get protected destinationSchema(): Schema;
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
The schema to use for the destination payloads
|
|
432
|
+
|
|
433
|
+
#### Returns
|
|
434
|
+
|
|
435
|
+
`Schema`
|
|
436
|
+
|
|
437
|
+
***
|
|
438
|
+
|
|
439
|
+
### payloadTransformers
|
|
440
|
+
|
|
441
|
+
### Get Signature
|
|
442
|
+
|
|
443
|
+
```ts
|
|
444
|
+
get protected payloadTransformers(): SchemaToPayloadTransformersDictionary;
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
Dictionary of schemas to payload transformers
|
|
448
|
+
|
|
449
|
+
#### Returns
|
|
450
|
+
|
|
451
|
+
[`SchemaToPayloadTransformersDictionary`](#../type-aliases/SchemaToPayloadTransformersDictionary)
|
|
452
|
+
|
|
453
|
+
***
|
|
454
|
+
|
|
455
|
+
### schemaTransforms
|
|
456
|
+
|
|
457
|
+
### Get Signature
|
|
458
|
+
|
|
459
|
+
```ts
|
|
460
|
+
get protected schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
The dictionary of schemas to JSON Path transform expressions
|
|
464
|
+
|
|
465
|
+
#### Returns
|
|
466
|
+
|
|
467
|
+
[`SchemaToJsonPathTransformExpressionsDictionary`](#../type-aliases/SchemaToJsonPathTransformExpressionsDictionary)
|
|
468
|
+
|
|
469
|
+
***
|
|
470
|
+
|
|
471
|
+
### transformableSchemas
|
|
472
|
+
|
|
473
|
+
### Get Signature
|
|
474
|
+
|
|
475
|
+
```ts
|
|
476
|
+
get protected transformableSchemas(): string[];
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
List of transformable schemas for this diviner
|
|
480
|
+
|
|
481
|
+
#### Returns
|
|
482
|
+
|
|
483
|
+
`string`[]
|
|
484
|
+
|
|
485
|
+
***
|
|
486
|
+
|
|
487
|
+
### account
|
|
488
|
+
|
|
489
|
+
### Get Signature
|
|
490
|
+
|
|
491
|
+
```ts
|
|
492
|
+
get account(): AccountInstance;
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
#### Returns
|
|
496
|
+
|
|
497
|
+
`AccountInstance`
|
|
498
|
+
|
|
499
|
+
### Inherited from
|
|
500
|
+
|
|
501
|
+
```ts
|
|
502
|
+
AbstractDiviner.account
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
***
|
|
506
|
+
|
|
507
|
+
### additionalSigners
|
|
508
|
+
|
|
509
|
+
### Get Signature
|
|
510
|
+
|
|
511
|
+
```ts
|
|
512
|
+
get additionalSigners(): AccountInstance[];
|
|
513
|
+
```
|
|
514
|
+
|
|
515
|
+
#### Returns
|
|
516
|
+
|
|
517
|
+
`AccountInstance`[]
|
|
518
|
+
|
|
519
|
+
### Inherited from
|
|
520
|
+
|
|
521
|
+
```ts
|
|
522
|
+
AbstractDiviner.additionalSigners
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
***
|
|
526
|
+
|
|
527
|
+
### address
|
|
528
|
+
|
|
529
|
+
### Get Signature
|
|
530
|
+
|
|
531
|
+
```ts
|
|
532
|
+
get address(): Lowercase<string> & object & object;
|
|
533
|
+
```
|
|
534
|
+
|
|
535
|
+
#### Returns
|
|
536
|
+
|
|
537
|
+
`Lowercase`\<`string`\> & `object` & `object`
|
|
538
|
+
|
|
539
|
+
### Inherited from
|
|
540
|
+
|
|
541
|
+
```ts
|
|
542
|
+
AbstractDiviner.address
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
***
|
|
546
|
+
|
|
547
|
+
### allowAnonymous
|
|
548
|
+
|
|
549
|
+
### Get Signature
|
|
550
|
+
|
|
551
|
+
```ts
|
|
552
|
+
get allowAnonymous(): boolean;
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
#### Returns
|
|
556
|
+
|
|
557
|
+
`boolean`
|
|
558
|
+
|
|
559
|
+
### Inherited from
|
|
560
|
+
|
|
561
|
+
```ts
|
|
562
|
+
AbstractDiviner.allowAnonymous
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
***
|
|
566
|
+
|
|
567
|
+
### allowNameResolution
|
|
568
|
+
|
|
569
|
+
### Get Signature
|
|
570
|
+
|
|
571
|
+
```ts
|
|
572
|
+
get allowNameResolution(): boolean;
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
#### Returns
|
|
576
|
+
|
|
577
|
+
`boolean`
|
|
578
|
+
|
|
579
|
+
### Inherited from
|
|
580
|
+
|
|
581
|
+
```ts
|
|
582
|
+
AbstractDiviner.allowNameResolution
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
***
|
|
586
|
+
|
|
587
|
+
### archiving
|
|
588
|
+
|
|
589
|
+
### Get Signature
|
|
590
|
+
|
|
591
|
+
```ts
|
|
592
|
+
get archiving():
|
|
593
|
+
| {
|
|
594
|
+
archivists?: ModuleIdentifier[];
|
|
595
|
+
queries?: Schema[];
|
|
596
|
+
}
|
|
597
|
+
| undefined;
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
#### Returns
|
|
601
|
+
|
|
602
|
+
\| \{
|
|
603
|
+
`archivists?`: `ModuleIdentifier`[];
|
|
604
|
+
`queries?`: `Schema`[];
|
|
605
|
+
\}
|
|
606
|
+
\| `undefined`
|
|
607
|
+
|
|
608
|
+
### Inherited from
|
|
609
|
+
|
|
610
|
+
```ts
|
|
611
|
+
AbstractDiviner.archiving
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
***
|
|
615
|
+
|
|
616
|
+
### archivist
|
|
617
|
+
|
|
618
|
+
### Get Signature
|
|
619
|
+
|
|
620
|
+
```ts
|
|
621
|
+
get archivist(): ModuleIdentifier | undefined;
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
#### Returns
|
|
625
|
+
|
|
626
|
+
`ModuleIdentifier` \| `undefined`
|
|
627
|
+
|
|
628
|
+
### Inherited from
|
|
629
|
+
|
|
630
|
+
```ts
|
|
631
|
+
AbstractDiviner.archivist
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
***
|
|
635
|
+
|
|
636
|
+
### config
|
|
637
|
+
|
|
638
|
+
### Get Signature
|
|
639
|
+
|
|
640
|
+
```ts
|
|
641
|
+
get config(): TParams["config"] & object;
|
|
642
|
+
```
|
|
643
|
+
|
|
644
|
+
#### Returns
|
|
645
|
+
|
|
646
|
+
`TParams`\[`"config"`\] & `object`
|
|
647
|
+
|
|
648
|
+
### Inherited from
|
|
649
|
+
|
|
650
|
+
```ts
|
|
651
|
+
AbstractDiviner.config
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
***
|
|
655
|
+
|
|
656
|
+
### dead
|
|
657
|
+
|
|
658
|
+
### Get Signature
|
|
659
|
+
|
|
660
|
+
```ts
|
|
661
|
+
get dead(): boolean;
|
|
662
|
+
```
|
|
663
|
+
|
|
664
|
+
#### Returns
|
|
665
|
+
|
|
666
|
+
`boolean`
|
|
667
|
+
|
|
668
|
+
### Inherited from
|
|
669
|
+
|
|
670
|
+
```ts
|
|
671
|
+
AbstractDiviner.dead
|
|
672
|
+
```
|
|
673
|
+
|
|
674
|
+
***
|
|
675
|
+
|
|
676
|
+
### ephemeralQueryAccountEnabled
|
|
677
|
+
|
|
678
|
+
### Get Signature
|
|
679
|
+
|
|
680
|
+
```ts
|
|
681
|
+
get ephemeralQueryAccountEnabled(): boolean;
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
#### Returns
|
|
685
|
+
|
|
686
|
+
`boolean`
|
|
687
|
+
|
|
688
|
+
### Inherited from
|
|
689
|
+
|
|
690
|
+
```ts
|
|
691
|
+
AbstractDiviner.ephemeralQueryAccountEnabled
|
|
692
|
+
```
|
|
693
|
+
|
|
694
|
+
***
|
|
695
|
+
|
|
696
|
+
### globalReentrancyMutex
|
|
697
|
+
|
|
698
|
+
### Get Signature
|
|
699
|
+
|
|
700
|
+
```ts
|
|
701
|
+
get globalReentrancyMutex(): Mutex | undefined;
|
|
702
|
+
```
|
|
703
|
+
|
|
704
|
+
#### Returns
|
|
705
|
+
|
|
706
|
+
`Mutex` \| `undefined`
|
|
707
|
+
|
|
708
|
+
### Inherited from
|
|
709
|
+
|
|
710
|
+
```ts
|
|
711
|
+
AbstractDiviner.globalReentrancyMutex
|
|
712
|
+
```
|
|
713
|
+
|
|
714
|
+
***
|
|
715
|
+
|
|
716
|
+
### id
|
|
717
|
+
|
|
718
|
+
### Get Signature
|
|
719
|
+
|
|
720
|
+
```ts
|
|
721
|
+
get id(): string;
|
|
722
|
+
```
|
|
723
|
+
|
|
724
|
+
The name (if specified) or address of the module
|
|
725
|
+
|
|
726
|
+
#### Returns
|
|
727
|
+
|
|
728
|
+
`string`
|
|
729
|
+
|
|
730
|
+
### Inherited from
|
|
731
|
+
|
|
732
|
+
```ts
|
|
733
|
+
AbstractDiviner.id
|
|
734
|
+
```
|
|
735
|
+
|
|
736
|
+
***
|
|
737
|
+
|
|
738
|
+
### logger
|
|
739
|
+
|
|
740
|
+
### Get Signature
|
|
741
|
+
|
|
742
|
+
```ts
|
|
743
|
+
get logger(): Logger | undefined;
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
#### Returns
|
|
747
|
+
|
|
748
|
+
`Logger` \| `undefined`
|
|
749
|
+
|
|
750
|
+
### Inherited from
|
|
751
|
+
|
|
752
|
+
```ts
|
|
753
|
+
AbstractDiviner.logger
|
|
754
|
+
```
|
|
755
|
+
|
|
756
|
+
***
|
|
757
|
+
|
|
758
|
+
### priority
|
|
759
|
+
|
|
760
|
+
### Get Signature
|
|
761
|
+
|
|
762
|
+
```ts
|
|
763
|
+
get priority(): 2;
|
|
764
|
+
```
|
|
765
|
+
|
|
766
|
+
#### Returns
|
|
767
|
+
|
|
768
|
+
`2`
|
|
769
|
+
|
|
770
|
+
### Inherited from
|
|
771
|
+
|
|
772
|
+
```ts
|
|
773
|
+
AbstractDiviner.priority
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
***
|
|
777
|
+
|
|
778
|
+
### reentrancy
|
|
779
|
+
|
|
780
|
+
### Get Signature
|
|
781
|
+
|
|
782
|
+
```ts
|
|
783
|
+
get reentrancy():
|
|
784
|
+
| {
|
|
785
|
+
action: "skip" | "wait";
|
|
786
|
+
scope: "global";
|
|
787
|
+
}
|
|
788
|
+
| undefined;
|
|
789
|
+
```
|
|
790
|
+
|
|
791
|
+
#### Returns
|
|
792
|
+
|
|
793
|
+
\| \{
|
|
794
|
+
`action`: `"skip"` \| `"wait"`;
|
|
795
|
+
`scope`: `"global"`;
|
|
796
|
+
\}
|
|
797
|
+
\| `undefined`
|
|
798
|
+
|
|
799
|
+
### Inherited from
|
|
800
|
+
|
|
801
|
+
```ts
|
|
802
|
+
AbstractDiviner.reentrancy
|
|
803
|
+
```
|
|
804
|
+
|
|
805
|
+
***
|
|
806
|
+
|
|
807
|
+
### statusReporter
|
|
808
|
+
|
|
809
|
+
### Get Signature
|
|
810
|
+
|
|
811
|
+
```ts
|
|
812
|
+
get statusReporter():
|
|
813
|
+
| ModuleStatusReporter & CreatableStatusReporter<void>
|
|
814
|
+
| undefined;
|
|
815
|
+
```
|
|
816
|
+
|
|
817
|
+
The status reporter used to broadcast lifecycle changes.
|
|
818
|
+
|
|
819
|
+
#### Returns
|
|
820
|
+
|
|
821
|
+
\| `ModuleStatusReporter` & `CreatableStatusReporter`\<`void`\>
|
|
822
|
+
\| `undefined`
|
|
823
|
+
|
|
824
|
+
### Inherited from
|
|
825
|
+
|
|
826
|
+
```ts
|
|
827
|
+
AbstractDiviner.statusReporter
|
|
828
|
+
```
|
|
829
|
+
|
|
830
|
+
***
|
|
831
|
+
|
|
832
|
+
### timestamp
|
|
833
|
+
|
|
834
|
+
### Get Signature
|
|
835
|
+
|
|
836
|
+
```ts
|
|
837
|
+
get timestamp(): boolean;
|
|
838
|
+
```
|
|
839
|
+
|
|
840
|
+
#### Returns
|
|
841
|
+
|
|
842
|
+
`boolean`
|
|
843
|
+
|
|
844
|
+
### Inherited from
|
|
845
|
+
|
|
846
|
+
```ts
|
|
847
|
+
AbstractDiviner.timestamp
|
|
848
|
+
```
|
|
849
|
+
|
|
850
|
+
***
|
|
851
|
+
|
|
852
|
+
### moduleConfigQueryValidator
|
|
853
|
+
|
|
854
|
+
### Get Signature
|
|
855
|
+
|
|
856
|
+
```ts
|
|
857
|
+
get protected moduleConfigQueryValidator(): Queryable;
|
|
858
|
+
```
|
|
859
|
+
|
|
860
|
+
#### Returns
|
|
861
|
+
|
|
862
|
+
`Queryable`
|
|
863
|
+
|
|
864
|
+
### Inherited from
|
|
865
|
+
|
|
866
|
+
```ts
|
|
867
|
+
AbstractDiviner.moduleConfigQueryValidator
|
|
868
|
+
```
|
|
869
|
+
|
|
870
|
+
***
|
|
871
|
+
|
|
872
|
+
### supportedQueryValidator
|
|
873
|
+
|
|
874
|
+
### Get Signature
|
|
875
|
+
|
|
876
|
+
```ts
|
|
877
|
+
get protected supportedQueryValidator(): Queryable;
|
|
878
|
+
```
|
|
879
|
+
|
|
880
|
+
#### Returns
|
|
881
|
+
|
|
882
|
+
`Queryable`
|
|
883
|
+
|
|
884
|
+
### Inherited from
|
|
885
|
+
|
|
886
|
+
```ts
|
|
887
|
+
AbstractDiviner.supportedQueryValidator
|
|
888
|
+
```
|
|
889
|
+
|
|
890
|
+
***
|
|
891
|
+
|
|
892
|
+
### downResolver
|
|
893
|
+
|
|
894
|
+
### Get Signature
|
|
895
|
+
|
|
896
|
+
```ts
|
|
897
|
+
get downResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
|
|
898
|
+
```
|
|
899
|
+
|
|
900
|
+
#### Returns
|
|
901
|
+
|
|
902
|
+
`CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
|
|
903
|
+
|
|
904
|
+
### Inherited from
|
|
905
|
+
|
|
906
|
+
```ts
|
|
907
|
+
AbstractDiviner.downResolver
|
|
908
|
+
```
|
|
909
|
+
|
|
910
|
+
***
|
|
911
|
+
|
|
912
|
+
### modName
|
|
913
|
+
|
|
914
|
+
### Get Signature
|
|
915
|
+
|
|
916
|
+
```ts
|
|
917
|
+
get modName(): string | undefined;
|
|
918
|
+
```
|
|
919
|
+
|
|
920
|
+
#### Returns
|
|
921
|
+
|
|
922
|
+
`string` \| `undefined`
|
|
923
|
+
|
|
924
|
+
### Inherited from
|
|
925
|
+
|
|
926
|
+
```ts
|
|
927
|
+
AbstractDiviner.modName
|
|
928
|
+
```
|
|
929
|
+
|
|
930
|
+
***
|
|
931
|
+
|
|
932
|
+
### moduleIdentifierTransformers
|
|
933
|
+
|
|
934
|
+
### Get Signature
|
|
935
|
+
|
|
936
|
+
```ts
|
|
937
|
+
get moduleIdentifierTransformers(): ModuleIdentifierTransformer[];
|
|
938
|
+
```
|
|
939
|
+
|
|
940
|
+
#### Returns
|
|
941
|
+
|
|
942
|
+
`ModuleIdentifierTransformer`[]
|
|
943
|
+
|
|
944
|
+
### Inherited from
|
|
945
|
+
|
|
946
|
+
```ts
|
|
947
|
+
AbstractDiviner.moduleIdentifierTransformers
|
|
948
|
+
```
|
|
949
|
+
|
|
950
|
+
***
|
|
951
|
+
|
|
952
|
+
### privateResolver
|
|
953
|
+
|
|
954
|
+
### Get Signature
|
|
955
|
+
|
|
956
|
+
```ts
|
|
957
|
+
get privateResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
|
|
958
|
+
```
|
|
959
|
+
|
|
960
|
+
#### Returns
|
|
961
|
+
|
|
962
|
+
`CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
|
|
963
|
+
|
|
964
|
+
### Inherited from
|
|
965
|
+
|
|
966
|
+
```ts
|
|
967
|
+
AbstractDiviner.privateResolver
|
|
968
|
+
```
|
|
969
|
+
|
|
970
|
+
***
|
|
971
|
+
|
|
972
|
+
### root
|
|
973
|
+
|
|
974
|
+
### Get Signature
|
|
975
|
+
|
|
976
|
+
```ts
|
|
977
|
+
get root(): this;
|
|
978
|
+
```
|
|
979
|
+
|
|
980
|
+
#### Returns
|
|
981
|
+
|
|
982
|
+
`this`
|
|
983
|
+
|
|
984
|
+
### Inherited from
|
|
985
|
+
|
|
986
|
+
```ts
|
|
987
|
+
AbstractDiviner.root
|
|
988
|
+
```
|
|
989
|
+
|
|
990
|
+
***
|
|
991
|
+
|
|
992
|
+
### timeBudget
|
|
993
|
+
|
|
994
|
+
### Get Signature
|
|
995
|
+
|
|
996
|
+
```ts
|
|
997
|
+
get timeBudget(): number | undefined;
|
|
998
|
+
```
|
|
999
|
+
|
|
1000
|
+
#### Returns
|
|
1001
|
+
|
|
1002
|
+
`number` \| `undefined`
|
|
1003
|
+
|
|
1004
|
+
### Inherited from
|
|
1005
|
+
|
|
1006
|
+
```ts
|
|
1007
|
+
AbstractDiviner.timeBudget
|
|
1008
|
+
```
|
|
1009
|
+
|
|
1010
|
+
***
|
|
1011
|
+
|
|
1012
|
+
### upResolver
|
|
1013
|
+
|
|
1014
|
+
### Get Signature
|
|
1015
|
+
|
|
1016
|
+
```ts
|
|
1017
|
+
get upResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
|
|
1018
|
+
```
|
|
1019
|
+
|
|
1020
|
+
#### Returns
|
|
1021
|
+
|
|
1022
|
+
`CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
|
|
1023
|
+
|
|
1024
|
+
### Inherited from
|
|
1025
|
+
|
|
1026
|
+
```ts
|
|
1027
|
+
AbstractDiviner.upResolver
|
|
1028
|
+
```
|
|
1029
|
+
|
|
1030
|
+
## Methods
|
|
1031
|
+
|
|
1032
|
+
### divine()
|
|
1033
|
+
|
|
1034
|
+
```ts
|
|
1035
|
+
divine(payloads?, retryConfigIn?): Promise<DivinerDivineResult<TOut>[]>;
|
|
1036
|
+
```
|
|
1037
|
+
|
|
1038
|
+
**`Function`**
|
|
1039
|
+
|
|
1040
|
+
divine The main entry point for a diviner. Do not override this function. Implement/override divineHandler for custom functionality
|
|
1041
|
+
|
|
1042
|
+
### Parameters
|
|
1043
|
+
|
|
1044
|
+
#### payloads?
|
|
1045
|
+
|
|
1046
|
+
`TIn`[]
|
|
1047
|
+
|
|
1048
|
+
#### retryConfigIn?
|
|
1049
|
+
|
|
1050
|
+
`RetryConfigWithComplete`\<`unknown`\>
|
|
1051
|
+
|
|
1052
|
+
### Returns
|
|
1053
|
+
|
|
1054
|
+
`Promise`\<`DivinerDivineResult`\<`TOut`\>[]\>
|
|
1055
|
+
|
|
1056
|
+
### Inherited from
|
|
1057
|
+
|
|
1058
|
+
```ts
|
|
1059
|
+
AbstractDiviner.divine
|
|
1060
|
+
```
|
|
1061
|
+
|
|
1062
|
+
***
|
|
1063
|
+
|
|
1064
|
+
### divineQuery()
|
|
1065
|
+
|
|
1066
|
+
```ts
|
|
1067
|
+
divineQuery(
|
|
1068
|
+
payloads?,
|
|
1069
|
+
account?,
|
|
1070
|
+
_retry?): Promise<ModuleQueryResult<TOut>>;
|
|
1071
|
+
```
|
|
1072
|
+
|
|
1073
|
+
### Parameters
|
|
1074
|
+
|
|
1075
|
+
#### payloads?
|
|
1076
|
+
|
|
1077
|
+
`TIn`[]
|
|
1078
|
+
|
|
1079
|
+
#### account?
|
|
1080
|
+
|
|
1081
|
+
`AccountInstance`
|
|
1082
|
+
|
|
1083
|
+
#### \_retry?
|
|
1084
|
+
|
|
1085
|
+
`RetryConfig`
|
|
1086
|
+
|
|
1087
|
+
### Returns
|
|
1088
|
+
|
|
1089
|
+
`Promise`\<`ModuleQueryResult`\<`TOut`\>\>
|
|
1090
|
+
|
|
1091
|
+
### Inherited from
|
|
1092
|
+
|
|
1093
|
+
```ts
|
|
1094
|
+
AbstractDiviner.divineQuery
|
|
1095
|
+
```
|
|
1096
|
+
|
|
1097
|
+
***
|
|
1098
|
+
|
|
1099
|
+
### queryHandler()
|
|
1100
|
+
|
|
1101
|
+
```ts
|
|
1102
|
+
protected queryHandler<T, TConfig>(
|
|
1103
|
+
query,
|
|
1104
|
+
payloads?,
|
|
1105
|
+
queryConfig?): Promise<ModuleQueryHandlerResult>;
|
|
1106
|
+
```
|
|
1107
|
+
|
|
1108
|
+
**`Function`**
|
|
1109
|
+
|
|
1110
|
+
queryHandler Calls divine for a divine query. Override to support additional queries.
|
|
1111
|
+
|
|
1112
|
+
### Type Parameters
|
|
1113
|
+
|
|
1114
|
+
#### T
|
|
1115
|
+
|
|
1116
|
+
`T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
|
|
1117
|
+
|
|
1118
|
+
#### TConfig
|
|
1119
|
+
|
|
1120
|
+
`TConfig` *extends* `ModuleConfig` = `ModuleConfig`
|
|
1121
|
+
|
|
1122
|
+
### Parameters
|
|
1123
|
+
|
|
1124
|
+
#### query
|
|
1125
|
+
|
|
1126
|
+
`T`
|
|
1127
|
+
|
|
1128
|
+
#### payloads?
|
|
1129
|
+
|
|
1130
|
+
`Payload`[]
|
|
1131
|
+
|
|
1132
|
+
#### queryConfig?
|
|
1133
|
+
|
|
1134
|
+
`TConfig`
|
|
1135
|
+
|
|
1136
|
+
### Returns
|
|
1137
|
+
|
|
1138
|
+
`Promise`\<`ModuleQueryHandlerResult`\>
|
|
1139
|
+
|
|
1140
|
+
### Inherited from
|
|
1141
|
+
|
|
1142
|
+
```ts
|
|
1143
|
+
AbstractDiviner.queryHandler
|
|
1144
|
+
```
|
|
1145
|
+
|
|
1146
|
+
***
|
|
1147
|
+
|
|
1148
|
+
### startHandler()
|
|
1149
|
+
|
|
1150
|
+
```ts
|
|
1151
|
+
protected startHandler(): Promise<void>;
|
|
1152
|
+
```
|
|
1153
|
+
|
|
1154
|
+
### Returns
|
|
1155
|
+
|
|
1156
|
+
`Promise`\<`void`\>
|
|
1157
|
+
|
|
1158
|
+
### Inherited from
|
|
1159
|
+
|
|
1160
|
+
```ts
|
|
1161
|
+
AbstractDiviner.startHandler
|
|
1162
|
+
```
|
|
1163
|
+
|
|
1164
|
+
***
|
|
1165
|
+
|
|
1166
|
+
### stopHandler()
|
|
1167
|
+
|
|
1168
|
+
```ts
|
|
1169
|
+
protected stopHandler(): Promise<void>;
|
|
1170
|
+
```
|
|
1171
|
+
|
|
1172
|
+
### Returns
|
|
1173
|
+
|
|
1174
|
+
`Promise`\<`void`\>
|
|
1175
|
+
|
|
1176
|
+
### Inherited from
|
|
1177
|
+
|
|
1178
|
+
```ts
|
|
1179
|
+
AbstractDiviner.stopHandler
|
|
1180
|
+
```
|
|
1181
|
+
|
|
1182
|
+
***
|
|
1183
|
+
|
|
1184
|
+
### divineHandler()
|
|
1185
|
+
|
|
1186
|
+
```ts
|
|
1187
|
+
protected divineHandler(payloads?): Promise<TOut[]>;
|
|
1188
|
+
```
|
|
1189
|
+
|
|
1190
|
+
**`Function`**
|
|
1191
|
+
|
|
1192
|
+
divineHandler Implement or override to add custom functionality to a diviner
|
|
1193
|
+
|
|
1194
|
+
### Parameters
|
|
1195
|
+
|
|
1196
|
+
#### payloads?
|
|
1197
|
+
|
|
1198
|
+
`TIn`[]
|
|
1199
|
+
|
|
1200
|
+
### Returns
|
|
1201
|
+
|
|
1202
|
+
`Promise`\<`TOut`[]\>
|
|
1203
|
+
|
|
1204
|
+
### Overrides
|
|
1205
|
+
|
|
1206
|
+
```ts
|
|
1207
|
+
AbstractDiviner.divineHandler
|
|
1208
|
+
```
|
|
1209
|
+
|
|
1210
|
+
***
|
|
1211
|
+
|
|
1212
|
+
### \_getRootFunction()
|
|
1213
|
+
|
|
1214
|
+
```ts
|
|
1215
|
+
static _getRootFunction(funcName): any;
|
|
1216
|
+
```
|
|
1217
|
+
|
|
1218
|
+
### Parameters
|
|
1219
|
+
|
|
1220
|
+
#### funcName
|
|
1221
|
+
|
|
1222
|
+
`string`
|
|
1223
|
+
|
|
1224
|
+
### Returns
|
|
1225
|
+
|
|
1226
|
+
`any`
|
|
1227
|
+
|
|
1228
|
+
### Inherited from
|
|
1229
|
+
|
|
1230
|
+
```ts
|
|
1231
|
+
AbstractDiviner._getRootFunction
|
|
1232
|
+
```
|
|
1233
|
+
|
|
1234
|
+
***
|
|
1235
|
+
|
|
1236
|
+
### \_noOverride()
|
|
1237
|
+
|
|
1238
|
+
```ts
|
|
1239
|
+
static _noOverride(functionName): void;
|
|
1240
|
+
```
|
|
1241
|
+
|
|
1242
|
+
### Parameters
|
|
1243
|
+
|
|
1244
|
+
#### functionName
|
|
1245
|
+
|
|
1246
|
+
`string`
|
|
1247
|
+
|
|
1248
|
+
### Returns
|
|
1249
|
+
|
|
1250
|
+
`void`
|
|
1251
|
+
|
|
1252
|
+
### Inherited from
|
|
1253
|
+
|
|
1254
|
+
```ts
|
|
1255
|
+
AbstractDiviner._noOverride
|
|
1256
|
+
```
|
|
1257
|
+
|
|
1258
|
+
***
|
|
1259
|
+
|
|
1260
|
+
### createHandler()
|
|
1261
|
+
|
|
1262
|
+
```ts
|
|
1263
|
+
static createHandler<T>(inInstance): Promise<T & AbstractModule<any, any>>;
|
|
1264
|
+
```
|
|
1265
|
+
|
|
1266
|
+
Static hook called during creation to perform additional initialization.
|
|
1267
|
+
Override in subclasses to customize post-construction setup.
|
|
1268
|
+
|
|
1269
|
+
### Type Parameters
|
|
1270
|
+
|
|
1271
|
+
#### T
|
|
1272
|
+
|
|
1273
|
+
`T` *extends* `CreatableInstance`\<`CreatableParams`, `EventData`\>
|
|
1274
|
+
|
|
1275
|
+
### Parameters
|
|
1276
|
+
|
|
1277
|
+
#### inInstance
|
|
1278
|
+
|
|
1279
|
+
`T`
|
|
1280
|
+
|
|
1281
|
+
### Returns
|
|
1282
|
+
|
|
1283
|
+
`Promise`\<`T` & `AbstractModule`\<`any`, `any`\>\>
|
|
1284
|
+
|
|
1285
|
+
The instance, potentially modified
|
|
1286
|
+
|
|
1287
|
+
### Inherited from
|
|
1288
|
+
|
|
1289
|
+
```ts
|
|
1290
|
+
AbstractDiviner.createHandler
|
|
1291
|
+
```
|
|
1292
|
+
|
|
1293
|
+
***
|
|
1294
|
+
|
|
1295
|
+
### determineAccount()
|
|
1296
|
+
|
|
1297
|
+
```ts
|
|
1298
|
+
static determineAccount(params): Promise<AccountInstance>;
|
|
1299
|
+
```
|
|
1300
|
+
|
|
1301
|
+
### Parameters
|
|
1302
|
+
|
|
1303
|
+
#### params
|
|
1304
|
+
|
|
1305
|
+
##### account?
|
|
1306
|
+
|
|
1307
|
+
`AccountInstance` \| `"random"`
|
|
1308
|
+
|
|
1309
|
+
##### accountPath?
|
|
1310
|
+
|
|
1311
|
+
`string`
|
|
1312
|
+
|
|
1313
|
+
##### wallet?
|
|
1314
|
+
|
|
1315
|
+
`WalletInstance`
|
|
1316
|
+
|
|
1317
|
+
### Returns
|
|
1318
|
+
|
|
1319
|
+
`Promise`\<`AccountInstance`\>
|
|
1320
|
+
|
|
1321
|
+
### Inherited from
|
|
1322
|
+
|
|
1323
|
+
```ts
|
|
1324
|
+
AbstractDiviner.determineAccount
|
|
1325
|
+
```
|
|
1326
|
+
|
|
1327
|
+
***
|
|
1328
|
+
|
|
1329
|
+
### factory()
|
|
1330
|
+
|
|
1331
|
+
```ts
|
|
1332
|
+
static factory<TModule>(this, params?): CreatableModuleFactory<TModule>;
|
|
1333
|
+
```
|
|
1334
|
+
|
|
1335
|
+
### Type Parameters
|
|
1336
|
+
|
|
1337
|
+
#### TModule
|
|
1338
|
+
|
|
1339
|
+
`TModule` *extends* `CreatableModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
|
|
1340
|
+
|
|
1341
|
+
### Parameters
|
|
1342
|
+
|
|
1343
|
+
#### this
|
|
1344
|
+
|
|
1345
|
+
`CreatableModule`\<`TModule`\>
|
|
1346
|
+
|
|
1347
|
+
#### params?
|
|
1348
|
+
|
|
1349
|
+
`Partial`\<`TModule`\[`"params"`\]\>
|
|
1350
|
+
|
|
1351
|
+
### Returns
|
|
1352
|
+
|
|
1353
|
+
`CreatableModuleFactory`\<`TModule`\>
|
|
1354
|
+
|
|
1355
|
+
### Inherited from
|
|
1356
|
+
|
|
1357
|
+
```ts
|
|
1358
|
+
AbstractDiviner.factory
|
|
1359
|
+
```
|
|
1360
|
+
|
|
1361
|
+
***
|
|
1362
|
+
|
|
1363
|
+
### isAllowedSchema()
|
|
1364
|
+
|
|
1365
|
+
```ts
|
|
1366
|
+
static isAllowedSchema(schema): boolean;
|
|
1367
|
+
```
|
|
1368
|
+
|
|
1369
|
+
### Parameters
|
|
1370
|
+
|
|
1371
|
+
#### schema
|
|
1372
|
+
|
|
1373
|
+
`Schema`
|
|
1374
|
+
|
|
1375
|
+
### Returns
|
|
1376
|
+
|
|
1377
|
+
`boolean`
|
|
1378
|
+
|
|
1379
|
+
### Inherited from
|
|
1380
|
+
|
|
1381
|
+
```ts
|
|
1382
|
+
AbstractDiviner.isAllowedSchema
|
|
1383
|
+
```
|
|
1384
|
+
|
|
1385
|
+
***
|
|
1386
|
+
|
|
1387
|
+
### paramsHandler()
|
|
1388
|
+
|
|
1389
|
+
```ts
|
|
1390
|
+
static paramsHandler<T>(inParams?): Promise<T["params"]>;
|
|
1391
|
+
```
|
|
1392
|
+
|
|
1393
|
+
Static hook called during creation to validate and transform params.
|
|
1394
|
+
Override in subclasses to add default values or validation.
|
|
1395
|
+
|
|
1396
|
+
### Type Parameters
|
|
1397
|
+
|
|
1398
|
+
#### T
|
|
1399
|
+
|
|
1400
|
+
`T` *extends* `AttachableModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
|
|
1401
|
+
|
|
1402
|
+
### Parameters
|
|
1403
|
+
|
|
1404
|
+
#### inParams?
|
|
1405
|
+
|
|
1406
|
+
`Partial`\<`T`\[`"params"`\]\>
|
|
1407
|
+
|
|
1408
|
+
### Returns
|
|
1409
|
+
|
|
1410
|
+
`Promise`\<`T`\[`"params"`\]\>
|
|
1411
|
+
|
|
1412
|
+
The processed params ready for construction
|
|
1413
|
+
|
|
1414
|
+
### Inherited from
|
|
1415
|
+
|
|
1416
|
+
```ts
|
|
1417
|
+
AbstractDiviner.paramsHandler
|
|
1418
|
+
```
|
|
1419
|
+
|
|
1420
|
+
***
|
|
1421
|
+
|
|
1422
|
+
### \_getRootFunction()
|
|
1423
|
+
|
|
1424
|
+
```ts
|
|
1425
|
+
_getRootFunction(funcName): any;
|
|
1426
|
+
```
|
|
1427
|
+
|
|
1428
|
+
### Parameters
|
|
1429
|
+
|
|
1430
|
+
#### funcName
|
|
1431
|
+
|
|
1432
|
+
`string`
|
|
1433
|
+
|
|
1434
|
+
### Returns
|
|
1435
|
+
|
|
1436
|
+
`any`
|
|
1437
|
+
|
|
1438
|
+
### Inherited from
|
|
1439
|
+
|
|
1440
|
+
```ts
|
|
1441
|
+
AbstractDiviner._getRootFunction
|
|
1442
|
+
```
|
|
1443
|
+
|
|
1444
|
+
***
|
|
1445
|
+
|
|
1446
|
+
### busy()
|
|
1447
|
+
|
|
1448
|
+
```ts
|
|
1449
|
+
busy<R>(closure): Promise<R>;
|
|
1450
|
+
```
|
|
1451
|
+
|
|
1452
|
+
### Type Parameters
|
|
1453
|
+
|
|
1454
|
+
#### R
|
|
1455
|
+
|
|
1456
|
+
`R`
|
|
1457
|
+
|
|
1458
|
+
### Parameters
|
|
1459
|
+
|
|
1460
|
+
#### closure
|
|
1461
|
+
|
|
1462
|
+
() => `Promise`\<`R`\>
|
|
1463
|
+
|
|
1464
|
+
### Returns
|
|
1465
|
+
|
|
1466
|
+
`Promise`\<`R`\>
|
|
1467
|
+
|
|
1468
|
+
### Inherited from
|
|
1469
|
+
|
|
1470
|
+
```ts
|
|
1471
|
+
AbstractDiviner.busy
|
|
1472
|
+
```
|
|
1473
|
+
|
|
1474
|
+
***
|
|
1475
|
+
|
|
1476
|
+
### emit()
|
|
1477
|
+
|
|
1478
|
+
```ts
|
|
1479
|
+
emit<TEventName, TEventArgs>(eventName, eventArgs): Promise<void>;
|
|
1480
|
+
```
|
|
1481
|
+
|
|
1482
|
+
Emits an event, invoking all registered listeners concurrently.
|
|
1483
|
+
|
|
1484
|
+
### Type Parameters
|
|
1485
|
+
|
|
1486
|
+
#### TEventName
|
|
1487
|
+
|
|
1488
|
+
`TEventName` *extends* `string` \| `number` \| `symbol` = keyof `TEventData`
|
|
1489
|
+
|
|
1490
|
+
#### TEventArgs
|
|
1491
|
+
|
|
1492
|
+
`TEventArgs` *extends* `EventArgs` = `TEventData`\[`TEventName`\]
|
|
1493
|
+
|
|
1494
|
+
### Parameters
|
|
1495
|
+
|
|
1496
|
+
#### eventName
|
|
1497
|
+
|
|
1498
|
+
`TEventName`
|
|
1499
|
+
|
|
1500
|
+
The event to emit.
|
|
1501
|
+
|
|
1502
|
+
#### eventArgs
|
|
1503
|
+
|
|
1504
|
+
`TEventArgs`
|
|
1505
|
+
|
|
1506
|
+
The data to pass to listeners.
|
|
1507
|
+
|
|
1508
|
+
### Returns
|
|
1509
|
+
|
|
1510
|
+
`Promise`\<`void`\>
|
|
1511
|
+
|
|
1512
|
+
### Inherited from
|
|
1513
|
+
|
|
1514
|
+
```ts
|
|
1515
|
+
AbstractDiviner.emit
|
|
1516
|
+
```
|
|
1517
|
+
|
|
1518
|
+
***
|
|
1519
|
+
|
|
1520
|
+
### isSupportedQuery()
|
|
1521
|
+
|
|
1522
|
+
```ts
|
|
1523
|
+
isSupportedQuery(query, assert?): boolean;
|
|
1524
|
+
```
|
|
1525
|
+
|
|
1526
|
+
### Parameters
|
|
1527
|
+
|
|
1528
|
+
#### query
|
|
1529
|
+
|
|
1530
|
+
`Schema`
|
|
1531
|
+
|
|
1532
|
+
#### assert?
|
|
1533
|
+
|
|
1534
|
+
`string` \| `boolean`
|
|
1535
|
+
|
|
1536
|
+
### Returns
|
|
1537
|
+
|
|
1538
|
+
`boolean`
|
|
1539
|
+
|
|
1540
|
+
### Inherited from
|
|
1541
|
+
|
|
1542
|
+
```ts
|
|
1543
|
+
AbstractDiviner.isSupportedQuery
|
|
1544
|
+
```
|
|
1545
|
+
|
|
1546
|
+
***
|
|
1547
|
+
|
|
1548
|
+
### previousHash()
|
|
1549
|
+
|
|
1550
|
+
```ts
|
|
1551
|
+
previousHash(): Promisable<string | undefined>;
|
|
1552
|
+
```
|
|
1553
|
+
|
|
1554
|
+
### Returns
|
|
1555
|
+
|
|
1556
|
+
`Promisable`\<`string` \| `undefined`\>
|
|
1557
|
+
|
|
1558
|
+
### Inherited from
|
|
1559
|
+
|
|
1560
|
+
```ts
|
|
1561
|
+
AbstractDiviner.previousHash
|
|
1562
|
+
```
|
|
1563
|
+
|
|
1564
|
+
***
|
|
1565
|
+
|
|
1566
|
+
### query()
|
|
1567
|
+
|
|
1568
|
+
```ts
|
|
1569
|
+
query<T, TConfig>(
|
|
1570
|
+
query,
|
|
1571
|
+
payloads?,
|
|
1572
|
+
queryConfig?): Promise<ModuleQueryResult>;
|
|
1573
|
+
```
|
|
1574
|
+
|
|
1575
|
+
### Type Parameters
|
|
1576
|
+
|
|
1577
|
+
#### T
|
|
1578
|
+
|
|
1579
|
+
`T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
|
|
1580
|
+
|
|
1581
|
+
#### TConfig
|
|
1582
|
+
|
|
1583
|
+
`TConfig` *extends* `ModuleConfig` = `ModuleConfig`
|
|
1584
|
+
|
|
1585
|
+
### Parameters
|
|
1586
|
+
|
|
1587
|
+
#### query
|
|
1588
|
+
|
|
1589
|
+
`T`
|
|
1590
|
+
|
|
1591
|
+
#### payloads?
|
|
1592
|
+
|
|
1593
|
+
`Payload`[]
|
|
1594
|
+
|
|
1595
|
+
#### queryConfig?
|
|
1596
|
+
|
|
1597
|
+
`TConfig`
|
|
1598
|
+
|
|
1599
|
+
### Returns
|
|
1600
|
+
|
|
1601
|
+
`Promise`\<`ModuleQueryResult`\>
|
|
1602
|
+
|
|
1603
|
+
### Inherited from
|
|
1604
|
+
|
|
1605
|
+
```ts
|
|
1606
|
+
AbstractDiviner.query
|
|
1607
|
+
```
|
|
1608
|
+
|
|
1609
|
+
***
|
|
1610
|
+
|
|
1611
|
+
### queryable()
|
|
1612
|
+
|
|
1613
|
+
```ts
|
|
1614
|
+
queryable<T, TConfig>(
|
|
1615
|
+
query,
|
|
1616
|
+
payloads?,
|
|
1617
|
+
queryConfig?): Promise<boolean>;
|
|
1618
|
+
```
|
|
1619
|
+
|
|
1620
|
+
### Type Parameters
|
|
1621
|
+
|
|
1622
|
+
#### T
|
|
1623
|
+
|
|
1624
|
+
`T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
|
|
1625
|
+
|
|
1626
|
+
#### TConfig
|
|
1627
|
+
|
|
1628
|
+
`TConfig` *extends* `ModuleConfig` = `ModuleConfig`
|
|
1629
|
+
|
|
1630
|
+
### Parameters
|
|
1631
|
+
|
|
1632
|
+
#### query
|
|
1633
|
+
|
|
1634
|
+
`T`
|
|
1635
|
+
|
|
1636
|
+
#### payloads?
|
|
1637
|
+
|
|
1638
|
+
`Payload`[]
|
|
1639
|
+
|
|
1640
|
+
#### queryConfig?
|
|
1641
|
+
|
|
1642
|
+
`TConfig`
|
|
1643
|
+
|
|
1644
|
+
### Returns
|
|
1645
|
+
|
|
1646
|
+
`Promise`\<`boolean`\>
|
|
1647
|
+
|
|
1648
|
+
### Inherited from
|
|
1649
|
+
|
|
1650
|
+
```ts
|
|
1651
|
+
AbstractDiviner.queryable
|
|
1652
|
+
```
|
|
1653
|
+
|
|
1654
|
+
***
|
|
1655
|
+
|
|
1656
|
+
### \_checkDead()
|
|
1657
|
+
|
|
1658
|
+
```ts
|
|
1659
|
+
protected _checkDead(): void;
|
|
1660
|
+
```
|
|
1661
|
+
|
|
1662
|
+
### Returns
|
|
1663
|
+
|
|
1664
|
+
`void`
|
|
1665
|
+
|
|
1666
|
+
### Inherited from
|
|
1667
|
+
|
|
1668
|
+
```ts
|
|
1669
|
+
AbstractDiviner._checkDead
|
|
1670
|
+
```
|
|
1671
|
+
|
|
1672
|
+
***
|
|
1673
|
+
|
|
1674
|
+
### archivistInstance()
|
|
1675
|
+
|
|
1676
|
+
### Call Signature
|
|
1677
|
+
|
|
1678
|
+
```ts
|
|
1679
|
+
protected archivistInstance(): Promise<
|
|
1680
|
+
| ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
|
|
1681
|
+
| undefined>;
|
|
1682
|
+
```
|
|
1683
|
+
|
|
1684
|
+
#### Returns
|
|
1685
|
+
|
|
1686
|
+
`Promise`\<
|
|
1687
|
+
\| `ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>
|
|
1688
|
+
\| `undefined`\>
|
|
1689
|
+
|
|
1690
|
+
#### Inherited from
|
|
1691
|
+
|
|
1692
|
+
```ts
|
|
1693
|
+
AbstractDiviner.archivistInstance
|
|
1694
|
+
```
|
|
1695
|
+
|
|
1696
|
+
### Call Signature
|
|
1697
|
+
|
|
1698
|
+
```ts
|
|
1699
|
+
protected archivistInstance(required): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>>;
|
|
1700
|
+
```
|
|
1701
|
+
|
|
1702
|
+
#### Parameters
|
|
1703
|
+
|
|
1704
|
+
##### required
|
|
1705
|
+
|
|
1706
|
+
`true`
|
|
1707
|
+
|
|
1708
|
+
#### Returns
|
|
1709
|
+
|
|
1710
|
+
`Promise`\<`ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>\>
|
|
1711
|
+
|
|
1712
|
+
#### Inherited from
|
|
1713
|
+
|
|
1714
|
+
```ts
|
|
1715
|
+
AbstractDiviner.archivistInstance
|
|
1716
|
+
```
|
|
1717
|
+
|
|
1718
|
+
***
|
|
1719
|
+
|
|
1720
|
+
### bindHashes()
|
|
1721
|
+
|
|
1722
|
+
```ts
|
|
1723
|
+
protected bindHashes(
|
|
1724
|
+
hashes,
|
|
1725
|
+
schema,
|
|
1726
|
+
account?): PromiseEx<unknown, AccountInstance>;
|
|
1727
|
+
```
|
|
1728
|
+
|
|
1729
|
+
### Parameters
|
|
1730
|
+
|
|
1731
|
+
#### hashes
|
|
1732
|
+
|
|
1733
|
+
`BrandedHash`[]
|
|
1734
|
+
|
|
1735
|
+
#### schema
|
|
1736
|
+
|
|
1737
|
+
`Schema`[]
|
|
1738
|
+
|
|
1739
|
+
#### account?
|
|
1740
|
+
|
|
1741
|
+
`AccountInstance`
|
|
1742
|
+
|
|
1743
|
+
### Returns
|
|
1744
|
+
|
|
1745
|
+
`PromiseEx`\<`unknown`, `AccountInstance`\>
|
|
1746
|
+
|
|
1747
|
+
### Inherited from
|
|
1748
|
+
|
|
1749
|
+
```ts
|
|
1750
|
+
AbstractDiviner.bindHashes
|
|
1751
|
+
```
|
|
1752
|
+
|
|
1753
|
+
***
|
|
1754
|
+
|
|
1755
|
+
### bindHashesInternal()
|
|
1756
|
+
|
|
1757
|
+
```ts
|
|
1758
|
+
protected bindHashesInternal(
|
|
1759
|
+
hashes,
|
|
1760
|
+
schema,
|
|
1761
|
+
account?): Promise<{
|
|
1762
|
+
schema: "network.xyo.boundwitness" & object;
|
|
1763
|
+
addresses: Lowercase<string> & object & object[];
|
|
1764
|
+
payload_hashes: BrandedHash[];
|
|
1765
|
+
payload_schemas: BrandedSchema<string>[];
|
|
1766
|
+
previous_hashes: (BrandedHash | null)[];
|
|
1767
|
+
$destination?: Lowercase<string> & object & object;
|
|
1768
|
+
$sourceQuery?: BrandedHash;
|
|
1769
|
+
$signatures: (BrandedHex | null)[];
|
|
1770
|
+
}>;
|
|
1771
|
+
```
|
|
1772
|
+
|
|
1773
|
+
### Parameters
|
|
1774
|
+
|
|
1775
|
+
#### hashes
|
|
1776
|
+
|
|
1777
|
+
`BrandedHash`[]
|
|
1778
|
+
|
|
1779
|
+
#### schema
|
|
1780
|
+
|
|
1781
|
+
`Schema`[]
|
|
1782
|
+
|
|
1783
|
+
#### account?
|
|
1784
|
+
|
|
1785
|
+
`AccountInstance`
|
|
1786
|
+
|
|
1787
|
+
### Returns
|
|
1788
|
+
|
|
1789
|
+
`Promise`\<\{
|
|
1790
|
+
`schema`: `"network.xyo.boundwitness"` & `object`;
|
|
1791
|
+
`addresses`: `Lowercase`\<`string`\> & `object` & `object`[];
|
|
1792
|
+
`payload_hashes`: `BrandedHash`[];
|
|
1793
|
+
`payload_schemas`: `BrandedSchema`\<`string`\>[];
|
|
1794
|
+
`previous_hashes`: (`BrandedHash` \| `null`)[];
|
|
1795
|
+
`$destination?`: `Lowercase`\<`string`\> & `object` & `object`;
|
|
1796
|
+
`$sourceQuery?`: `BrandedHash`;
|
|
1797
|
+
`$signatures`: (`BrandedHex` \| `null`)[];
|
|
1798
|
+
\}\>
|
|
1799
|
+
|
|
1800
|
+
### Inherited from
|
|
1801
|
+
|
|
1802
|
+
```ts
|
|
1803
|
+
AbstractDiviner.bindHashesInternal
|
|
1804
|
+
```
|
|
1805
|
+
|
|
1806
|
+
***
|
|
1807
|
+
|
|
1808
|
+
### bindQuery()
|
|
1809
|
+
|
|
1810
|
+
```ts
|
|
1811
|
+
protected bindQuery<T>(
|
|
1812
|
+
query,
|
|
1813
|
+
payloads?,
|
|
1814
|
+
account?,
|
|
1815
|
+
additionalSigners?): PromiseEx<[UnsignedQueryBoundWitness, Payload[], Payload[]], AccountInstance>;
|
|
1816
|
+
```
|
|
1817
|
+
|
|
1818
|
+
### Type Parameters
|
|
1819
|
+
|
|
1820
|
+
#### T
|
|
1821
|
+
|
|
1822
|
+
`T` *extends* `Query`
|
|
1823
|
+
|
|
1824
|
+
### Parameters
|
|
1825
|
+
|
|
1826
|
+
#### query
|
|
1827
|
+
|
|
1828
|
+
`T`
|
|
1829
|
+
|
|
1830
|
+
#### payloads?
|
|
1831
|
+
|
|
1832
|
+
`Payload`[]
|
|
1833
|
+
|
|
1834
|
+
#### account?
|
|
1835
|
+
|
|
1836
|
+
`AccountInstance`
|
|
1837
|
+
|
|
1838
|
+
#### additionalSigners?
|
|
1839
|
+
|
|
1840
|
+
`AccountInstance`[]
|
|
1841
|
+
|
|
1842
|
+
### Returns
|
|
1843
|
+
|
|
1844
|
+
`PromiseEx`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `Payload`[]\], `AccountInstance`\>
|
|
1845
|
+
|
|
1846
|
+
### Inherited from
|
|
1847
|
+
|
|
1848
|
+
```ts
|
|
1849
|
+
AbstractDiviner.bindQuery
|
|
1850
|
+
```
|
|
1851
|
+
|
|
1852
|
+
***
|
|
1853
|
+
|
|
1854
|
+
### bindQueryInternal()
|
|
1855
|
+
|
|
1856
|
+
```ts
|
|
1857
|
+
protected bindQueryInternal<T>(
|
|
1858
|
+
query,
|
|
1859
|
+
payloads?,
|
|
1860
|
+
account?,
|
|
1861
|
+
additionalSigners?): Promise<[UnsignedQueryBoundWitness, Payload[], Payload[]]>;
|
|
1862
|
+
```
|
|
1863
|
+
|
|
1864
|
+
### Type Parameters
|
|
1865
|
+
|
|
1866
|
+
#### T
|
|
1867
|
+
|
|
1868
|
+
`T` *extends* `Query`
|
|
1869
|
+
|
|
1870
|
+
### Parameters
|
|
1871
|
+
|
|
1872
|
+
#### query
|
|
1873
|
+
|
|
1874
|
+
`T`
|
|
1875
|
+
|
|
1876
|
+
#### payloads?
|
|
1877
|
+
|
|
1878
|
+
`Payload`[]
|
|
1879
|
+
|
|
1880
|
+
#### account?
|
|
1881
|
+
|
|
1882
|
+
`AccountInstance`
|
|
1883
|
+
|
|
1884
|
+
#### additionalSigners?
|
|
1885
|
+
|
|
1886
|
+
`AccountInstance`[]
|
|
1887
|
+
|
|
1888
|
+
### Returns
|
|
1889
|
+
|
|
1890
|
+
`Promise`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `Payload`[]\]\>
|
|
1891
|
+
|
|
1892
|
+
### Inherited from
|
|
1893
|
+
|
|
1894
|
+
```ts
|
|
1895
|
+
AbstractDiviner.bindQueryInternal
|
|
1896
|
+
```
|
|
1897
|
+
|
|
1898
|
+
***
|
|
1899
|
+
|
|
1900
|
+
### bindQueryResult()
|
|
1901
|
+
|
|
1902
|
+
```ts
|
|
1903
|
+
protected bindQueryResult<T>(
|
|
1904
|
+
query,
|
|
1905
|
+
payloads,
|
|
1906
|
+
additionalWitnesses?,
|
|
1907
|
+
errors?): Promise<ModuleQueryResult>;
|
|
1908
|
+
```
|
|
1909
|
+
|
|
1910
|
+
### Type Parameters
|
|
1911
|
+
|
|
1912
|
+
#### T
|
|
1913
|
+
|
|
1914
|
+
`T` *extends* `Query`
|
|
1915
|
+
|
|
1916
|
+
### Parameters
|
|
1917
|
+
|
|
1918
|
+
#### query
|
|
1919
|
+
|
|
1920
|
+
`T`
|
|
1921
|
+
|
|
1922
|
+
#### payloads
|
|
1923
|
+
|
|
1924
|
+
`Payload`[]
|
|
1925
|
+
|
|
1926
|
+
#### additionalWitnesses?
|
|
1927
|
+
|
|
1928
|
+
`AccountInstance`[]
|
|
1929
|
+
|
|
1930
|
+
#### errors?
|
|
1931
|
+
|
|
1932
|
+
`ModuleError`[]
|
|
1933
|
+
|
|
1934
|
+
### Returns
|
|
1935
|
+
|
|
1936
|
+
`Promise`\<`ModuleQueryResult`\>
|
|
1937
|
+
|
|
1938
|
+
### Inherited from
|
|
1939
|
+
|
|
1940
|
+
```ts
|
|
1941
|
+
AbstractDiviner.bindQueryResult
|
|
1942
|
+
```
|
|
1943
|
+
|
|
1944
|
+
***
|
|
1945
|
+
|
|
1946
|
+
### generateConfigAndAddress()
|
|
1947
|
+
|
|
1948
|
+
```ts
|
|
1949
|
+
protected generateConfigAndAddress(_maxDepth?): Promisable<Payload[]>;
|
|
1950
|
+
```
|
|
1951
|
+
|
|
1952
|
+
### Parameters
|
|
1953
|
+
|
|
1954
|
+
#### \_maxDepth?
|
|
1955
|
+
|
|
1956
|
+
`number`
|
|
1957
|
+
|
|
1958
|
+
### Returns
|
|
1959
|
+
|
|
1960
|
+
`Promisable`\<`Payload`[]\>
|
|
1961
|
+
|
|
1962
|
+
### Inherited from
|
|
1963
|
+
|
|
1964
|
+
```ts
|
|
1965
|
+
AbstractDiviner.generateConfigAndAddress
|
|
1966
|
+
```
|
|
1967
|
+
|
|
1968
|
+
***
|
|
1969
|
+
|
|
1970
|
+
### generateDescribe()
|
|
1971
|
+
|
|
1972
|
+
```ts
|
|
1973
|
+
protected generateDescribe(): Promise<ModuleDescriptionPayload>;
|
|
1974
|
+
```
|
|
1975
|
+
|
|
1976
|
+
### Returns
|
|
1977
|
+
|
|
1978
|
+
`Promise`\<`ModuleDescriptionPayload`\>
|
|
1979
|
+
|
|
1980
|
+
### Inherited from
|
|
1981
|
+
|
|
1982
|
+
```ts
|
|
1983
|
+
AbstractDiviner.generateDescribe
|
|
1984
|
+
```
|
|
1985
|
+
|
|
1986
|
+
***
|
|
1987
|
+
|
|
1988
|
+
### ~~getArchivist()~~
|
|
1989
|
+
|
|
1990
|
+
```ts
|
|
1991
|
+
protected getArchivist(): Promise<
|
|
1992
|
+
| ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
|
|
1993
|
+
| undefined>;
|
|
1994
|
+
```
|
|
1995
|
+
|
|
1996
|
+
### Returns
|
|
1997
|
+
|
|
1998
|
+
`Promise`\<
|
|
1999
|
+
\| `ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>
|
|
2000
|
+
\| `undefined`\>
|
|
2001
|
+
|
|
2002
|
+
### Deprecated
|
|
2003
|
+
|
|
2004
|
+
use archivistInstance() instead
|
|
2005
|
+
|
|
2006
|
+
### Inherited from
|
|
2007
|
+
|
|
2008
|
+
```ts
|
|
2009
|
+
AbstractDiviner.getArchivist
|
|
2010
|
+
```
|
|
2011
|
+
|
|
2012
|
+
***
|
|
2013
|
+
|
|
2014
|
+
### isAllowedArchivingQuery()
|
|
2015
|
+
|
|
2016
|
+
```ts
|
|
2017
|
+
protected isAllowedArchivingQuery(schema): boolean;
|
|
2018
|
+
```
|
|
2019
|
+
|
|
2020
|
+
### Parameters
|
|
2021
|
+
|
|
2022
|
+
#### schema
|
|
2023
|
+
|
|
2024
|
+
`Schema`
|
|
2025
|
+
|
|
2026
|
+
### Returns
|
|
2027
|
+
|
|
2028
|
+
`boolean`
|
|
2029
|
+
|
|
2030
|
+
### Inherited from
|
|
2031
|
+
|
|
2032
|
+
```ts
|
|
2033
|
+
AbstractDiviner.isAllowedArchivingQuery
|
|
2034
|
+
```
|
|
2035
|
+
|
|
2036
|
+
***
|
|
2037
|
+
|
|
2038
|
+
### moduleAddressHandler()
|
|
2039
|
+
|
|
2040
|
+
```ts
|
|
2041
|
+
protected moduleAddressHandler(): Promisable<(AddressPayload | AddressPreviousHashPayload)[]>;
|
|
2042
|
+
```
|
|
2043
|
+
|
|
2044
|
+
### Returns
|
|
2045
|
+
|
|
2046
|
+
`Promisable`\<(`AddressPayload` \| `AddressPreviousHashPayload`)[]\>
|
|
2047
|
+
|
|
2048
|
+
### Inherited from
|
|
2049
|
+
|
|
2050
|
+
```ts
|
|
2051
|
+
AbstractDiviner.moduleAddressHandler
|
|
2052
|
+
```
|
|
2053
|
+
|
|
2054
|
+
***
|
|
2055
|
+
|
|
2056
|
+
### stateHandler()
|
|
2057
|
+
|
|
2058
|
+
```ts
|
|
2059
|
+
protected stateHandler(): Promise<Payload[]>;
|
|
2060
|
+
```
|
|
2061
|
+
|
|
2062
|
+
### Returns
|
|
2063
|
+
|
|
2064
|
+
`Promise`\<`Payload`[]\>
|
|
2065
|
+
|
|
2066
|
+
### Inherited from
|
|
2067
|
+
|
|
2068
|
+
```ts
|
|
2069
|
+
AbstractDiviner.stateHandler
|
|
2070
|
+
```
|
|
2071
|
+
|
|
2072
|
+
***
|
|
2073
|
+
|
|
2074
|
+
### subscribeHandler()
|
|
2075
|
+
|
|
2076
|
+
```ts
|
|
2077
|
+
protected subscribeHandler(): void;
|
|
2078
|
+
```
|
|
2079
|
+
|
|
2080
|
+
### Returns
|
|
2081
|
+
|
|
2082
|
+
`void`
|
|
2083
|
+
|
|
2084
|
+
### Inherited from
|
|
2085
|
+
|
|
2086
|
+
```ts
|
|
2087
|
+
AbstractDiviner.subscribeHandler
|
|
2088
|
+
```
|
|
2089
|
+
|
|
2090
|
+
***
|
|
2091
|
+
|
|
2092
|
+
### validateConfig()
|
|
2093
|
+
|
|
2094
|
+
```ts
|
|
2095
|
+
protected validateConfig(config?, parents?): boolean;
|
|
2096
|
+
```
|
|
2097
|
+
|
|
2098
|
+
### Parameters
|
|
2099
|
+
|
|
2100
|
+
#### config?
|
|
2101
|
+
|
|
2102
|
+
`unknown`
|
|
2103
|
+
|
|
2104
|
+
#### parents?
|
|
2105
|
+
|
|
2106
|
+
`string`[]
|
|
2107
|
+
|
|
2108
|
+
### Returns
|
|
2109
|
+
|
|
2110
|
+
`boolean`
|
|
2111
|
+
|
|
2112
|
+
### Inherited from
|
|
2113
|
+
|
|
2114
|
+
```ts
|
|
2115
|
+
AbstractDiviner.validateConfig
|
|
2116
|
+
```
|
|
2117
|
+
|
|
2118
|
+
***
|
|
2119
|
+
|
|
2120
|
+
### addParent()
|
|
2121
|
+
|
|
2122
|
+
```ts
|
|
2123
|
+
addParent(mod): void;
|
|
2124
|
+
```
|
|
2125
|
+
|
|
2126
|
+
### Parameters
|
|
2127
|
+
|
|
2128
|
+
#### mod
|
|
2129
|
+
|
|
2130
|
+
`ModuleInstance`
|
|
2131
|
+
|
|
2132
|
+
### Returns
|
|
2133
|
+
|
|
2134
|
+
`void`
|
|
2135
|
+
|
|
2136
|
+
### Inherited from
|
|
2137
|
+
|
|
2138
|
+
```ts
|
|
2139
|
+
AbstractDiviner.addParent
|
|
2140
|
+
```
|
|
2141
|
+
|
|
2142
|
+
***
|
|
2143
|
+
|
|
2144
|
+
### certifyParents()
|
|
2145
|
+
|
|
2146
|
+
```ts
|
|
2147
|
+
certifyParents(): Promise<Payload[]>;
|
|
2148
|
+
```
|
|
2149
|
+
|
|
2150
|
+
### Returns
|
|
2151
|
+
|
|
2152
|
+
`Promise`\<`Payload`[]\>
|
|
2153
|
+
|
|
2154
|
+
### Inherited from
|
|
2155
|
+
|
|
2156
|
+
```ts
|
|
2157
|
+
AbstractDiviner.certifyParents
|
|
2158
|
+
```
|
|
2159
|
+
|
|
2160
|
+
***
|
|
2161
|
+
|
|
2162
|
+
### createHandler()
|
|
2163
|
+
|
|
2164
|
+
```ts
|
|
2165
|
+
createHandler(): Promise<void>;
|
|
2166
|
+
```
|
|
2167
|
+
|
|
2168
|
+
### Returns
|
|
2169
|
+
|
|
2170
|
+
`Promise`\<`void`\>
|
|
2171
|
+
|
|
2172
|
+
### Inherited from
|
|
2173
|
+
|
|
2174
|
+
```ts
|
|
2175
|
+
AbstractDiviner.createHandler
|
|
2176
|
+
```
|
|
2177
|
+
|
|
2178
|
+
***
|
|
2179
|
+
|
|
2180
|
+
### manifest()
|
|
2181
|
+
|
|
2182
|
+
```ts
|
|
2183
|
+
manifest(maxDepth?): Promise<ModuleManifestPayload>;
|
|
2184
|
+
```
|
|
2185
|
+
|
|
2186
|
+
### Parameters
|
|
2187
|
+
|
|
2188
|
+
#### maxDepth?
|
|
2189
|
+
|
|
2190
|
+
`number`
|
|
2191
|
+
|
|
2192
|
+
### Returns
|
|
2193
|
+
|
|
2194
|
+
`Promise`\<`ModuleManifestPayload`\>
|
|
2195
|
+
|
|
2196
|
+
### Inherited from
|
|
2197
|
+
|
|
2198
|
+
```ts
|
|
2199
|
+
AbstractDiviner.manifest
|
|
2200
|
+
```
|
|
2201
|
+
|
|
2202
|
+
***
|
|
2203
|
+
|
|
2204
|
+
### manifestQuery()
|
|
2205
|
+
|
|
2206
|
+
```ts
|
|
2207
|
+
manifestQuery(account, maxDepth?): Promise<ModuleQueryResult<ModuleManifestPayload>>;
|
|
2208
|
+
```
|
|
2209
|
+
|
|
2210
|
+
### Parameters
|
|
2211
|
+
|
|
2212
|
+
#### account
|
|
2213
|
+
|
|
2214
|
+
`AccountInstance`
|
|
2215
|
+
|
|
2216
|
+
#### maxDepth?
|
|
2217
|
+
|
|
2218
|
+
`number`
|
|
2219
|
+
|
|
2220
|
+
### Returns
|
|
2221
|
+
|
|
2222
|
+
`Promise`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
|
|
2223
|
+
|
|
2224
|
+
### Inherited from
|
|
2225
|
+
|
|
2226
|
+
```ts
|
|
2227
|
+
AbstractDiviner.manifestQuery
|
|
2228
|
+
```
|
|
2229
|
+
|
|
2230
|
+
***
|
|
2231
|
+
|
|
2232
|
+
### moduleAddress()
|
|
2233
|
+
|
|
2234
|
+
```ts
|
|
2235
|
+
moduleAddress(): Promise<(AddressPayload | AddressPreviousHashPayload)[]>;
|
|
2236
|
+
```
|
|
2237
|
+
|
|
2238
|
+
### Returns
|
|
2239
|
+
|
|
2240
|
+
`Promise`\<(`AddressPayload` \| `AddressPreviousHashPayload`)[]\>
|
|
2241
|
+
|
|
2242
|
+
### Inherited from
|
|
2243
|
+
|
|
2244
|
+
```ts
|
|
2245
|
+
AbstractDiviner.moduleAddress
|
|
2246
|
+
```
|
|
2247
|
+
|
|
2248
|
+
***
|
|
2249
|
+
|
|
2250
|
+
### parents()
|
|
2251
|
+
|
|
2252
|
+
```ts
|
|
2253
|
+
parents(): Promisable<NodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>[]>;
|
|
2254
|
+
```
|
|
2255
|
+
|
|
2256
|
+
### Returns
|
|
2257
|
+
|
|
2258
|
+
`Promisable`\<`NodeInstance`\<`NodeParams`\<`AnyConfigSchema`\<`NodeConfig`\>\>, `NodeModuleEventData`\>[]\>
|
|
2259
|
+
|
|
2260
|
+
### Inherited from
|
|
2261
|
+
|
|
2262
|
+
```ts
|
|
2263
|
+
AbstractDiviner.parents
|
|
2264
|
+
```
|
|
2265
|
+
|
|
2266
|
+
***
|
|
2267
|
+
|
|
2268
|
+
### privateChildren()
|
|
2269
|
+
|
|
2270
|
+
```ts
|
|
2271
|
+
privateChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
|
|
2272
|
+
```
|
|
2273
|
+
|
|
2274
|
+
### Returns
|
|
2275
|
+
|
|
2276
|
+
`Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
|
|
2277
|
+
|
|
2278
|
+
### Inherited from
|
|
2279
|
+
|
|
2280
|
+
```ts
|
|
2281
|
+
AbstractDiviner.privateChildren
|
|
2282
|
+
```
|
|
2283
|
+
|
|
2284
|
+
***
|
|
2285
|
+
|
|
2286
|
+
### publicChildren()
|
|
2287
|
+
|
|
2288
|
+
```ts
|
|
2289
|
+
publicChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
|
|
2290
|
+
```
|
|
2291
|
+
|
|
2292
|
+
### Returns
|
|
2293
|
+
|
|
2294
|
+
`Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
|
|
2295
|
+
|
|
2296
|
+
### Inherited from
|
|
2297
|
+
|
|
2298
|
+
```ts
|
|
2299
|
+
AbstractDiviner.publicChildren
|
|
2300
|
+
```
|
|
2301
|
+
|
|
2302
|
+
***
|
|
2303
|
+
|
|
2304
|
+
### removeParent()
|
|
2305
|
+
|
|
2306
|
+
```ts
|
|
2307
|
+
removeParent(address): void;
|
|
2308
|
+
```
|
|
2309
|
+
|
|
2310
|
+
### Parameters
|
|
2311
|
+
|
|
2312
|
+
#### address
|
|
2313
|
+
|
|
2314
|
+
`BrandedAddress`
|
|
2315
|
+
|
|
2316
|
+
### Returns
|
|
2317
|
+
|
|
2318
|
+
`void`
|
|
2319
|
+
|
|
2320
|
+
### Inherited from
|
|
2321
|
+
|
|
2322
|
+
```ts
|
|
2323
|
+
AbstractDiviner.removeParent
|
|
2324
|
+
```
|
|
2325
|
+
|
|
2326
|
+
***
|
|
2327
|
+
|
|
2328
|
+
### resolve()
|
|
2329
|
+
|
|
2330
|
+
### Call Signature
|
|
2331
|
+
|
|
2332
|
+
```ts
|
|
2333
|
+
resolve(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
|
|
2334
|
+
```
|
|
2335
|
+
|
|
2336
|
+
#### Returns
|
|
2337
|
+
|
|
2338
|
+
`Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
|
|
2339
|
+
|
|
2340
|
+
#### Inherited from
|
|
2341
|
+
|
|
2342
|
+
```ts
|
|
2343
|
+
AbstractDiviner.resolve
|
|
2344
|
+
```
|
|
2345
|
+
|
|
2346
|
+
### Call Signature
|
|
2347
|
+
|
|
2348
|
+
```ts
|
|
2349
|
+
resolve<T>(all, options?): Promise<T[]>;
|
|
2350
|
+
```
|
|
2351
|
+
|
|
2352
|
+
#### Type Parameters
|
|
2353
|
+
|
|
2354
|
+
##### T
|
|
2355
|
+
|
|
2356
|
+
`T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
|
|
2357
|
+
|
|
2358
|
+
#### Parameters
|
|
2359
|
+
|
|
2360
|
+
##### all
|
|
2361
|
+
|
|
2362
|
+
`"*"`
|
|
2363
|
+
|
|
2364
|
+
##### options?
|
|
2365
|
+
|
|
2366
|
+
`ModuleFilterOptions`\<`T`\>
|
|
2367
|
+
|
|
2368
|
+
#### Returns
|
|
2369
|
+
|
|
2370
|
+
`Promise`\<`T`[]\>
|
|
2371
|
+
|
|
2372
|
+
#### Inherited from
|
|
2373
|
+
|
|
2374
|
+
```ts
|
|
2375
|
+
AbstractDiviner.resolve
|
|
2376
|
+
```
|
|
2377
|
+
|
|
2378
|
+
### Call Signature
|
|
2379
|
+
|
|
2380
|
+
```ts
|
|
2381
|
+
resolve<T>(id, options?): Promise<T | undefined>;
|
|
2382
|
+
```
|
|
2383
|
+
|
|
2384
|
+
#### Type Parameters
|
|
2385
|
+
|
|
2386
|
+
##### T
|
|
2387
|
+
|
|
2388
|
+
`T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
|
|
2389
|
+
|
|
2390
|
+
#### Parameters
|
|
2391
|
+
|
|
2392
|
+
##### id
|
|
2393
|
+
|
|
2394
|
+
`ModuleIdentifier`
|
|
2395
|
+
|
|
2396
|
+
##### options?
|
|
2397
|
+
|
|
2398
|
+
`ModuleFilterOptions`\<`T`\>
|
|
2399
|
+
|
|
2400
|
+
#### Returns
|
|
2401
|
+
|
|
2402
|
+
`Promise`\<`T` \| `undefined`\>
|
|
2403
|
+
|
|
2404
|
+
#### Inherited from
|
|
2405
|
+
|
|
2406
|
+
```ts
|
|
2407
|
+
AbstractDiviner.resolve
|
|
2408
|
+
```
|
|
2409
|
+
|
|
2410
|
+
***
|
|
2411
|
+
|
|
2412
|
+
### resolveIdentifier()
|
|
2413
|
+
|
|
2414
|
+
```ts
|
|
2415
|
+
resolveIdentifier(id, options?): Promise<BrandedAddress | undefined>;
|
|
2416
|
+
```
|
|
2417
|
+
|
|
2418
|
+
### Parameters
|
|
2419
|
+
|
|
2420
|
+
#### id
|
|
2421
|
+
|
|
2422
|
+
`ModuleIdentifier`
|
|
2423
|
+
|
|
2424
|
+
#### options?
|
|
2425
|
+
|
|
2426
|
+
`ObjectFilterOptions`\<`AnyObject`\>
|
|
2427
|
+
|
|
2428
|
+
### Returns
|
|
2429
|
+
|
|
2430
|
+
`Promise`\<`BrandedAddress` \| `undefined`\>
|
|
2431
|
+
|
|
2432
|
+
### Inherited from
|
|
2433
|
+
|
|
2434
|
+
```ts
|
|
2435
|
+
AbstractDiviner.resolveIdentifier
|
|
2436
|
+
```
|
|
2437
|
+
|
|
2438
|
+
***
|
|
2439
|
+
|
|
2440
|
+
### resolvePrivate()
|
|
2441
|
+
|
|
2442
|
+
### Call Signature
|
|
2443
|
+
|
|
2444
|
+
```ts
|
|
2445
|
+
resolvePrivate<T>(all, options?): Promise<T[]>;
|
|
2446
|
+
```
|
|
2447
|
+
|
|
2448
|
+
#### Type Parameters
|
|
2449
|
+
|
|
2450
|
+
##### T
|
|
2451
|
+
|
|
2452
|
+
`T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
|
|
2453
|
+
|
|
2454
|
+
#### Parameters
|
|
2455
|
+
|
|
2456
|
+
##### all
|
|
2457
|
+
|
|
2458
|
+
`"*"`
|
|
2459
|
+
|
|
2460
|
+
##### options?
|
|
2461
|
+
|
|
2462
|
+
`ModuleFilterOptions`\<`T`\>
|
|
2463
|
+
|
|
2464
|
+
#### Returns
|
|
2465
|
+
|
|
2466
|
+
`Promise`\<`T`[]\>
|
|
2467
|
+
|
|
2468
|
+
#### Inherited from
|
|
2469
|
+
|
|
2470
|
+
```ts
|
|
2471
|
+
AbstractDiviner.resolvePrivate
|
|
2472
|
+
```
|
|
2473
|
+
|
|
2474
|
+
### Call Signature
|
|
2475
|
+
|
|
2476
|
+
```ts
|
|
2477
|
+
resolvePrivate<T>(id, options?): Promise<T | undefined>;
|
|
2478
|
+
```
|
|
2479
|
+
|
|
2480
|
+
#### Type Parameters
|
|
2481
|
+
|
|
2482
|
+
##### T
|
|
2483
|
+
|
|
2484
|
+
`T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
|
|
2485
|
+
|
|
2486
|
+
#### Parameters
|
|
2487
|
+
|
|
2488
|
+
##### id
|
|
2489
|
+
|
|
2490
|
+
`ModuleIdentifier`
|
|
2491
|
+
|
|
2492
|
+
##### options?
|
|
2493
|
+
|
|
2494
|
+
`ModuleFilterOptions`\<`T`\>
|
|
2495
|
+
|
|
2496
|
+
#### Returns
|
|
2497
|
+
|
|
2498
|
+
`Promise`\<`T` \| `undefined`\>
|
|
2499
|
+
|
|
2500
|
+
#### Inherited from
|
|
2501
|
+
|
|
2502
|
+
```ts
|
|
2503
|
+
AbstractDiviner.resolvePrivate
|
|
2504
|
+
```
|
|
2505
|
+
|
|
2506
|
+
***
|
|
2507
|
+
|
|
2508
|
+
### siblings()
|
|
2509
|
+
|
|
2510
|
+
```ts
|
|
2511
|
+
siblings(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
|
|
2512
|
+
```
|
|
2513
|
+
|
|
2514
|
+
### Returns
|
|
2515
|
+
|
|
2516
|
+
`Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
|
|
2517
|
+
|
|
2518
|
+
### Inherited from
|
|
2519
|
+
|
|
2520
|
+
```ts
|
|
2521
|
+
AbstractDiviner.siblings
|
|
2522
|
+
```
|
|
2523
|
+
|
|
2524
|
+
***
|
|
2525
|
+
|
|
2526
|
+
### state()
|
|
2527
|
+
|
|
2528
|
+
```ts
|
|
2529
|
+
state(): Promise<Payload[]>;
|
|
2530
|
+
```
|
|
2531
|
+
|
|
2532
|
+
### Returns
|
|
2533
|
+
|
|
2534
|
+
`Promise`\<`Payload`[]\>
|
|
2535
|
+
|
|
2536
|
+
### Inherited from
|
|
2537
|
+
|
|
2538
|
+
```ts
|
|
2539
|
+
AbstractDiviner.state
|
|
2540
|
+
```
|
|
2541
|
+
|
|
2542
|
+
***
|
|
2543
|
+
|
|
2544
|
+
### stateQuery()
|
|
2545
|
+
|
|
2546
|
+
```ts
|
|
2547
|
+
stateQuery(account): Promise<ModuleQueryResult>;
|
|
2548
|
+
```
|
|
2549
|
+
|
|
2550
|
+
### Parameters
|
|
2551
|
+
|
|
2552
|
+
#### account
|
|
2553
|
+
|
|
2554
|
+
`AccountInstance`
|
|
2555
|
+
|
|
2556
|
+
### Returns
|
|
2557
|
+
|
|
2558
|
+
`Promise`\<`ModuleQueryResult`\>
|
|
2559
|
+
|
|
2560
|
+
### Inherited from
|
|
2561
|
+
|
|
2562
|
+
```ts
|
|
2563
|
+
AbstractDiviner.stateQuery
|
|
2564
|
+
```
|
|
2565
|
+
|
|
2566
|
+
***
|
|
2567
|
+
|
|
2568
|
+
### subscribe()
|
|
2569
|
+
|
|
2570
|
+
```ts
|
|
2571
|
+
subscribe(_queryAccount?): void;
|
|
2572
|
+
```
|
|
2573
|
+
|
|
2574
|
+
### Parameters
|
|
2575
|
+
|
|
2576
|
+
#### \_queryAccount?
|
|
2577
|
+
|
|
2578
|
+
`AccountInstance`
|
|
2579
|
+
|
|
2580
|
+
### Returns
|
|
2581
|
+
|
|
2582
|
+
`void`
|
|
2583
|
+
|
|
2584
|
+
### Inherited from
|
|
2585
|
+
|
|
2586
|
+
```ts
|
|
2587
|
+
AbstractDiviner.subscribe
|
|
2588
|
+
```
|
|
2589
|
+
|
|
2590
|
+
***
|
|
2591
|
+
|
|
2592
|
+
### manifestHandler()
|
|
2593
|
+
|
|
2594
|
+
```ts
|
|
2595
|
+
protected manifestHandler(maxDepth?, _ignoreAddresses?): Promise<ModuleManifestPayload>;
|
|
2596
|
+
```
|
|
2597
|
+
|
|
2598
|
+
### Parameters
|
|
2599
|
+
|
|
2600
|
+
#### maxDepth?
|
|
2601
|
+
|
|
2602
|
+
`number`
|
|
2603
|
+
|
|
2604
|
+
#### \_ignoreAddresses?
|
|
2605
|
+
|
|
2606
|
+
`BrandedAddress`[]
|
|
2607
|
+
|
|
2608
|
+
### Returns
|
|
2609
|
+
|
|
2610
|
+
`Promise`\<`ModuleManifestPayload`\>
|
|
2611
|
+
|
|
2612
|
+
### Inherited from
|
|
2613
|
+
|
|
2614
|
+
```ts
|
|
2615
|
+
AbstractDiviner.manifestHandler
|
|
2616
|
+
```
|
|
2617
|
+
|
|
2618
|
+
***
|
|
2619
|
+
|
|
2620
|
+
### resolveArchivingArchivists()
|
|
2621
|
+
|
|
2622
|
+
```ts
|
|
2623
|
+
protected resolveArchivingArchivists(): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>[]>;
|
|
2624
|
+
```
|
|
2625
|
+
|
|
2626
|
+
### Returns
|
|
2627
|
+
|
|
2628
|
+
`Promise`\<`ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>[]\>
|
|
2629
|
+
|
|
2630
|
+
### Inherited from
|
|
2631
|
+
|
|
2632
|
+
```ts
|
|
2633
|
+
AbstractDiviner.resolveArchivingArchivists
|
|
2634
|
+
```
|
|
2635
|
+
|
|
2636
|
+
***
|
|
2637
|
+
|
|
2638
|
+
### sendQuery()
|
|
2639
|
+
|
|
2640
|
+
```ts
|
|
2641
|
+
protected sendQuery<T, P, R>(
|
|
2642
|
+
queryPayload,
|
|
2643
|
+
payloads?,
|
|
2644
|
+
account?): Promise<R[]>;
|
|
2645
|
+
```
|
|
2646
|
+
|
|
2647
|
+
### Type Parameters
|
|
2648
|
+
|
|
2649
|
+
#### T
|
|
2650
|
+
|
|
2651
|
+
`T` *extends* `Query`
|
|
2652
|
+
|
|
2653
|
+
#### P
|
|
2654
|
+
|
|
2655
|
+
`P` *extends* `Payload` = `Payload`
|
|
2656
|
+
|
|
2657
|
+
#### R
|
|
2658
|
+
|
|
2659
|
+
`R` *extends* `Payload` = `Payload`
|
|
2660
|
+
|
|
2661
|
+
### Parameters
|
|
2662
|
+
|
|
2663
|
+
#### queryPayload
|
|
2664
|
+
|
|
2665
|
+
`T`
|
|
2666
|
+
|
|
2667
|
+
#### payloads?
|
|
2668
|
+
|
|
2669
|
+
`P`[]
|
|
2670
|
+
|
|
2671
|
+
#### account?
|
|
2672
|
+
|
|
2673
|
+
`AccountInstance`
|
|
2674
|
+
|
|
2675
|
+
### Returns
|
|
2676
|
+
|
|
2677
|
+
`Promise`\<`R`[]\>
|
|
2678
|
+
|
|
2679
|
+
### Inherited from
|
|
2680
|
+
|
|
2681
|
+
```ts
|
|
2682
|
+
AbstractDiviner.sendQuery
|
|
2683
|
+
```
|
|
2684
|
+
|
|
2685
|
+
***
|
|
2686
|
+
|
|
2687
|
+
### sendQueryRaw()
|
|
2688
|
+
|
|
2689
|
+
```ts
|
|
2690
|
+
protected sendQueryRaw<T, P, R>(
|
|
2691
|
+
queryPayload,
|
|
2692
|
+
payloads?,
|
|
2693
|
+
account?): Promise<ModuleQueryResult<R>>;
|
|
2694
|
+
```
|
|
2695
|
+
|
|
2696
|
+
### Type Parameters
|
|
2697
|
+
|
|
2698
|
+
#### T
|
|
2699
|
+
|
|
2700
|
+
`T` *extends* `Query`
|
|
2701
|
+
|
|
2702
|
+
#### P
|
|
2703
|
+
|
|
2704
|
+
`P` *extends* `Payload` = `Payload`
|
|
2705
|
+
|
|
2706
|
+
#### R
|
|
2707
|
+
|
|
2708
|
+
`R` *extends* `Payload` = `Payload`
|
|
2709
|
+
|
|
2710
|
+
### Parameters
|
|
2711
|
+
|
|
2712
|
+
#### queryPayload
|
|
2713
|
+
|
|
2714
|
+
`T`
|
|
2715
|
+
|
|
2716
|
+
#### payloads?
|
|
2717
|
+
|
|
2718
|
+
`P`[]
|
|
2719
|
+
|
|
2720
|
+
#### account?
|
|
2721
|
+
|
|
2722
|
+
`AccountInstance`
|
|
2723
|
+
|
|
2724
|
+
### Returns
|
|
2725
|
+
|
|
2726
|
+
`Promise`\<`ModuleQueryResult`\<`R`\>\>
|
|
2727
|
+
|
|
2728
|
+
### Inherited from
|
|
2729
|
+
|
|
2730
|
+
```ts
|
|
2731
|
+
AbstractDiviner.sendQueryRaw
|
|
2732
|
+
```
|
|
2733
|
+
|
|
2734
|
+
***
|
|
2735
|
+
|
|
2736
|
+
### storeToArchivists()
|
|
2737
|
+
|
|
2738
|
+
```ts
|
|
2739
|
+
protected storeToArchivists(payloads): Promise<Payload[]>;
|
|
2740
|
+
```
|
|
2741
|
+
|
|
2742
|
+
### Parameters
|
|
2743
|
+
|
|
2744
|
+
#### payloads
|
|
2745
|
+
|
|
2746
|
+
`Payload`[]
|
|
2747
|
+
|
|
2748
|
+
### Returns
|
|
2749
|
+
|
|
2750
|
+
`Promise`\<`Payload`[]\>
|
|
2751
|
+
|
|
2752
|
+
### Inherited from
|
|
2753
|
+
|
|
2754
|
+
```ts
|
|
2755
|
+
AbstractDiviner.storeToArchivists
|
|
2756
|
+
```
|
|
2757
|
+
|
|
2758
|
+
### interfaces
|
|
2759
|
+
|
|
2760
|
+
### <a id="JsonPathTransformExpression"></a>JsonPathTransformExpression
|
|
2761
|
+
|
|
2762
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2763
|
+
|
|
2764
|
+
***
|
|
2765
|
+
|
|
2766
|
+
Describes the JSON-path transformation to retrieve a field on a source object
|
|
2767
|
+
and the target field to store the value to on a destination object
|
|
2768
|
+
|
|
2769
|
+
## Properties
|
|
2770
|
+
|
|
2771
|
+
### defaultValue?
|
|
2772
|
+
|
|
2773
|
+
```ts
|
|
2774
|
+
optional defaultValue?: unknown;
|
|
2775
|
+
```
|
|
2776
|
+
|
|
2777
|
+
The default value to use if the source field does not exist
|
|
2778
|
+
|
|
2779
|
+
***
|
|
2780
|
+
|
|
2781
|
+
### destinationField
|
|
2782
|
+
|
|
2783
|
+
```ts
|
|
2784
|
+
destinationField: string;
|
|
2785
|
+
```
|
|
2786
|
+
|
|
2787
|
+
The target field to store the source field into on the destination object
|
|
2788
|
+
|
|
2789
|
+
***
|
|
2790
|
+
|
|
2791
|
+
### sourcePathExpression
|
|
2792
|
+
|
|
2793
|
+
```ts
|
|
2794
|
+
sourcePathExpression: string;
|
|
2795
|
+
```
|
|
2796
|
+
|
|
2797
|
+
The JSON path expressions for the source field on the source object
|
|
2798
|
+
|
|
2799
|
+
### type-aliases
|
|
2800
|
+
|
|
2801
|
+
### <a id="JsonPathAggregateDivinerConfig"></a>JsonPathAggregateDivinerConfig
|
|
2802
|
+
|
|
2803
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2804
|
+
|
|
2805
|
+
***
|
|
2806
|
+
|
|
2807
|
+
```ts
|
|
2808
|
+
type JsonPathAggregateDivinerConfig = DivinerConfig<object & object>;
|
|
2809
|
+
```
|
|
2810
|
+
|
|
2811
|
+
The configuration for the JSON Path diviner
|
|
2812
|
+
|
|
2813
|
+
### <a id="JsonPathAggregateDivinerConfigSchema"></a>JsonPathAggregateDivinerConfigSchema
|
|
2814
|
+
|
|
2815
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2816
|
+
|
|
2817
|
+
***
|
|
2818
|
+
|
|
2819
|
+
```ts
|
|
2820
|
+
type JsonPathAggregateDivinerConfigSchema = typeof JsonPathAggregateDivinerConfigSchema;
|
|
2821
|
+
```
|
|
2822
|
+
|
|
2823
|
+
The config schema type for the JSON Path diviner
|
|
2824
|
+
|
|
2825
|
+
### <a id="JsonPathAggregateDivinerParams"></a>JsonPathAggregateDivinerParams
|
|
2826
|
+
|
|
2827
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2828
|
+
|
|
2829
|
+
***
|
|
2830
|
+
|
|
2831
|
+
```ts
|
|
2832
|
+
type JsonPathAggregateDivinerParams = DivinerParams<AnyConfigSchema<JsonPathAggregateDivinerConfig>>;
|
|
2833
|
+
```
|
|
2834
|
+
|
|
2835
|
+
The params type the JSON Path diviner
|
|
2836
|
+
|
|
2837
|
+
### <a id="JsonPathAggregateDivinerSchema"></a>JsonPathAggregateDivinerSchema
|
|
2838
|
+
|
|
2839
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2840
|
+
|
|
2841
|
+
***
|
|
2842
|
+
|
|
2843
|
+
```ts
|
|
2844
|
+
type JsonPathAggregateDivinerSchema = typeof JsonPathAggregateDivinerSchema;
|
|
2845
|
+
```
|
|
2846
|
+
|
|
2847
|
+
The schema type used for the JSONPath Diviner.
|
|
2848
|
+
|
|
2849
|
+
### <a id="PayloadTransformer"></a>PayloadTransformer
|
|
2850
|
+
|
|
2851
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2852
|
+
|
|
2853
|
+
***
|
|
2854
|
+
|
|
2855
|
+
```ts
|
|
2856
|
+
type PayloadTransformer = (x) => Partial<Payload>;
|
|
2857
|
+
```
|
|
2858
|
+
|
|
2859
|
+
## Parameters
|
|
2860
|
+
|
|
2861
|
+
### x
|
|
2862
|
+
|
|
2863
|
+
`Payload`
|
|
2864
|
+
|
|
2865
|
+
## Returns
|
|
2866
|
+
|
|
2867
|
+
`Partial`\<`Payload`\>
|
|
2868
|
+
|
|
2869
|
+
### <a id="SchemaToJsonPathTransformExpressionsDictionary"></a>SchemaToJsonPathTransformExpressionsDictionary
|
|
2870
|
+
|
|
2871
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2872
|
+
|
|
2873
|
+
***
|
|
2874
|
+
|
|
2875
|
+
```ts
|
|
2876
|
+
type SchemaToJsonPathTransformExpressionsDictionary<T> = { [key in keyof T]: JsonPathTransformExpression[] };
|
|
2877
|
+
```
|
|
2878
|
+
|
|
2879
|
+
A dictionary of schema to JSON Path transform expressions.
|
|
2880
|
+
|
|
2881
|
+
## Type Parameters
|
|
2882
|
+
|
|
2883
|
+
### T
|
|
2884
|
+
|
|
2885
|
+
`T` *extends* `object` = \{
|
|
2886
|
+
\[`schema`: `string`\]: `unknown`;
|
|
2887
|
+
\}
|
|
2888
|
+
|
|
2889
|
+
### <a id="SchemaToPayloadTransformersDictionary"></a>SchemaToPayloadTransformersDictionary
|
|
2890
|
+
|
|
2891
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2892
|
+
|
|
2893
|
+
***
|
|
2894
|
+
|
|
2895
|
+
```ts
|
|
2896
|
+
type SchemaToPayloadTransformersDictionary = object;
|
|
2897
|
+
```
|
|
2898
|
+
|
|
2899
|
+
A dictionary of schema to payload transformers
|
|
2900
|
+
|
|
2901
|
+
## Index Signature
|
|
2902
|
+
|
|
2903
|
+
```ts
|
|
2904
|
+
[schema: string]: PayloadTransformer[]
|
|
2905
|
+
```
|
|
2906
|
+
|
|
2907
|
+
### variables
|
|
2908
|
+
|
|
2909
|
+
### <a id="JsonPathAggregateDivinerConfigSchema"></a>JsonPathAggregateDivinerConfigSchema
|
|
2910
|
+
|
|
2911
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2912
|
+
|
|
2913
|
+
***
|
|
2914
|
+
|
|
2915
|
+
```ts
|
|
2916
|
+
const JsonPathAggregateDivinerConfigSchema: string & object;
|
|
2917
|
+
```
|
|
2918
|
+
|
|
2919
|
+
The config schema for the JSON Path diviner
|
|
2920
|
+
|
|
2921
|
+
## Type Declaration
|
|
2922
|
+
|
|
2923
|
+
### \_\_schema
|
|
2924
|
+
|
|
2925
|
+
```ts
|
|
2926
|
+
readonly __schema: true;
|
|
2927
|
+
```
|
|
2928
|
+
|
|
2929
|
+
### <a id="JsonPathAggregateDivinerSchema"></a>JsonPathAggregateDivinerSchema
|
|
2930
|
+
|
|
2931
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2932
|
+
|
|
2933
|
+
***
|
|
2934
|
+
|
|
2935
|
+
```ts
|
|
2936
|
+
const JsonPathAggregateDivinerSchema: "network.xyo.diviner.jsonpath.aggregate" & object;
|
|
2937
|
+
```
|
|
2938
|
+
|
|
2939
|
+
The schema used for the JSONPath Diviner.
|
|
2940
|
+
|
|
2941
|
+
## Type Declaration
|
|
2942
|
+
|
|
2943
|
+
### \_\_schema
|
|
2944
|
+
|
|
2945
|
+
```ts
|
|
2946
|
+
readonly __schema: true;
|
|
2947
|
+
```
|
|
2948
|
+
|
|
2949
|
+
### <a id="jsonPathToTransformersDictionary"></a>jsonPathToTransformersDictionary
|
|
2950
|
+
|
|
2951
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2952
|
+
|
|
2953
|
+
***
|
|
2954
|
+
|
|
2955
|
+
```ts
|
|
2956
|
+
const jsonPathToTransformersDictionary: (schemaTransforms) => SchemaToPayloadTransformersDictionary;
|
|
2957
|
+
```
|
|
2958
|
+
|
|
2959
|
+
Materializes the JSON-path expressions into memoized functions by converting a
|
|
2960
|
+
dictionary of schema to JSON Path transform expressions to a dictionary
|
|
2961
|
+
of schema to payload transformers
|
|
2962
|
+
|
|
2963
|
+
## Parameters
|
|
2964
|
+
|
|
2965
|
+
### schemaTransforms
|
|
2966
|
+
|
|
2967
|
+
[`SchemaToJsonPathTransformExpressionsDictionary`](#../type-aliases/SchemaToJsonPathTransformExpressionsDictionary)
|
|
2968
|
+
|
|
2969
|
+
The schema transforms to convert
|
|
2970
|
+
|
|
2971
|
+
## Returns
|
|
2972
|
+
|
|
2973
|
+
[`SchemaToPayloadTransformersDictionary`](#../type-aliases/SchemaToPayloadTransformersDictionary)
|
|
2974
|
+
|
|
2975
|
+
A dictionary of schema to payload transformers
|
|
2976
|
+
|
|
2977
|
+
### <a id="reducePayloads"></a>reducePayloads
|
|
2978
|
+
|
|
2979
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
2980
|
+
|
|
2981
|
+
***
|
|
2982
|
+
|
|
2983
|
+
```ts
|
|
2984
|
+
const reducePayloads: <T>(payloads, payloadTransformers, destinationSchema, excludeSources?) => Promise<T>;
|
|
2985
|
+
```
|
|
2986
|
+
|
|
2987
|
+
Reduces the payloads to a single payload using the supplied transformers
|
|
2988
|
+
|
|
2989
|
+
## Type Parameters
|
|
2990
|
+
|
|
2991
|
+
### T
|
|
2992
|
+
|
|
2993
|
+
`T` *extends* `Payload` = `Payload`
|
|
2994
|
+
|
|
2995
|
+
## Parameters
|
|
2996
|
+
|
|
2997
|
+
### payloads
|
|
2998
|
+
|
|
2999
|
+
`Payload`[]
|
|
3000
|
+
|
|
3001
|
+
The payloads to reduce
|
|
3002
|
+
|
|
3003
|
+
### payloadTransformers
|
|
3004
|
+
|
|
3005
|
+
[`SchemaToPayloadTransformersDictionary`](#../type-aliases/SchemaToPayloadTransformersDictionary)
|
|
3006
|
+
|
|
3007
|
+
The transformers to use to convert the payloads to the destination payload
|
|
3008
|
+
|
|
3009
|
+
### destinationSchema
|
|
3010
|
+
|
|
3011
|
+
`Schema`
|
|
3012
|
+
|
|
3013
|
+
The schema of the destination payload
|
|
3014
|
+
|
|
3015
|
+
### excludeSources?
|
|
3016
|
+
|
|
3017
|
+
`boolean`
|
|
3018
|
+
|
|
3019
|
+
Exclude the source hashes from the destination payload
|
|
3020
|
+
|
|
3021
|
+
## Returns
|
|
3022
|
+
|
|
3023
|
+
`Promise`\<`T`\>
|
|
3024
|
+
|
|
3025
|
+
The reduced payload
|
|
3026
|
+
|
|
3027
|
+
### <a id="reducePayloadsArray"></a>reducePayloadsArray
|
|
3028
|
+
|
|
3029
|
+
[**@xyo-network/diviner-jsonpath-aggregate**](#../README)
|
|
3030
|
+
|
|
3031
|
+
***
|
|
3032
|
+
|
|
3033
|
+
```ts
|
|
3034
|
+
const reducePayloadsArray: <T>(payloadsArray, payloadTransformers, destinationSchema, excludeSources?) => Promise<T[]>;
|
|
3035
|
+
```
|
|
3036
|
+
|
|
3037
|
+
Reduces the arrays of payload arrays to an array of payloads using the supplied transformers
|
|
3038
|
+
|
|
3039
|
+
## Type Parameters
|
|
3040
|
+
|
|
3041
|
+
### T
|
|
3042
|
+
|
|
3043
|
+
`T` *extends* `Payload` = `Payload`
|
|
3044
|
+
|
|
3045
|
+
## Parameters
|
|
3046
|
+
|
|
3047
|
+
### payloadsArray
|
|
3048
|
+
|
|
3049
|
+
`Payload`[][]
|
|
3050
|
+
|
|
3051
|
+
The arrays of payloads to reduce
|
|
3052
|
+
|
|
3053
|
+
### payloadTransformers
|
|
3054
|
+
|
|
3055
|
+
[`SchemaToPayloadTransformersDictionary`](#../type-aliases/SchemaToPayloadTransformersDictionary)
|
|
3056
|
+
|
|
3057
|
+
The transformers to use to convert the payloads to the destination payloads
|
|
3058
|
+
|
|
3059
|
+
### destinationSchema
|
|
3060
|
+
|
|
3061
|
+
`Schema`
|
|
3062
|
+
|
|
3063
|
+
### excludeSources?
|
|
3064
|
+
|
|
3065
|
+
`boolean`
|
|
3066
|
+
|
|
3067
|
+
Exclude the source hashes from the destination payload
|
|
3068
|
+
|
|
3069
|
+
## Returns
|
|
3070
|
+
|
|
3071
|
+
`Promise`\<`T`[]\>
|
|
18
3072
|
|
|
19
|
-
|
|
3073
|
+
The reduced payloads
|
|
20
3074
|
|
|
21
|
-
[Made with 🔥 and ❄️ by XYO](https://xyo.network)
|
|
22
3075
|
|
|
23
|
-
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
3076
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
3077
|
+
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/diviner-jsonpath-aggregate.svg
|
|
3078
|
+
[npm-link]: https://www.npmjs.com/package/@xyo-network/diviner-jsonpath-aggregate
|
|
3079
|
+
[license-badge]: https://img.shields.io/npm/l/@xyo-network/diviner-jsonpath-aggregate.svg
|
|
3080
|
+
[license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
|