@xyo-network/diviner-temporal-indexing-memory 2.81.0 → 2.82.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/dist/browser/Diviner.d.cts +1 -22
- package/dist/browser/Diviner.d.cts.map +1 -1
- package/dist/browser/Diviner.d.mts +1 -22
- package/dist/browser/Diviner.d.mts.map +1 -1
- package/dist/browser/Diviner.d.ts +1 -22
- package/dist/browser/Diviner.d.ts.map +1 -1
- package/dist/browser/DivinerQueryToIndexQueryDiviner/Diviner.d.cts +1 -1
- package/dist/browser/DivinerQueryToIndexQueryDiviner/Diviner.d.mts +1 -1
- package/dist/browser/DivinerQueryToIndexQueryDiviner/Diviner.d.ts +1 -1
- package/dist/browser/IndexCandidateToIndexDiviner/Diviner.d.cts.map +1 -1
- package/dist/browser/IndexCandidateToIndexDiviner/Diviner.d.mts.map +1 -1
- package/dist/browser/IndexCandidateToIndexDiviner/Diviner.d.ts.map +1 -1
- package/dist/browser/IndexCandidateToIndexDiviner/_Diviner.d.cts.map +1 -1
- package/dist/browser/IndexCandidateToIndexDiviner/_Diviner.d.mts.map +1 -1
- package/dist/browser/IndexCandidateToIndexDiviner/_Diviner.d.ts.map +1 -1
- package/dist/browser/index.cjs +33 -154
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +20 -147
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/jsonpath/reducePayloads.d.cts +5 -5
- package/dist/browser/jsonpath/reducePayloads.d.cts.map +1 -1
- package/dist/browser/jsonpath/reducePayloads.d.mts +5 -5
- package/dist/browser/jsonpath/reducePayloads.d.mts.map +1 -1
- package/dist/browser/jsonpath/reducePayloads.d.ts +5 -5
- package/dist/browser/jsonpath/reducePayloads.d.ts.map +1 -1
- package/dist/node/Diviner.d.cts +1 -22
- package/dist/node/Diviner.d.cts.map +1 -1
- package/dist/node/Diviner.d.mts +1 -22
- package/dist/node/Diviner.d.mts.map +1 -1
- package/dist/node/Diviner.d.ts +1 -22
- package/dist/node/Diviner.d.ts.map +1 -1
- package/dist/node/DivinerQueryToIndexQueryDiviner/Diviner.d.cts +1 -1
- package/dist/node/DivinerQueryToIndexQueryDiviner/Diviner.d.mts +1 -1
- package/dist/node/DivinerQueryToIndexQueryDiviner/Diviner.d.ts +1 -1
- package/dist/node/IndexCandidateToIndexDiviner/Diviner.d.cts.map +1 -1
- package/dist/node/IndexCandidateToIndexDiviner/Diviner.d.mts.map +1 -1
- package/dist/node/IndexCandidateToIndexDiviner/Diviner.d.ts.map +1 -1
- package/dist/node/IndexCandidateToIndexDiviner/_Diviner.d.cts.map +1 -1
- package/dist/node/IndexCandidateToIndexDiviner/_Diviner.d.mts.map +1 -1
- package/dist/node/IndexCandidateToIndexDiviner/_Diviner.d.ts.map +1 -1
- package/dist/node/index.js +33 -158
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +20 -151
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/jsonpath/reducePayloads.d.cts +5 -5
- package/dist/node/jsonpath/reducePayloads.d.cts.map +1 -1
- package/dist/node/jsonpath/reducePayloads.d.mts +5 -5
- package/dist/node/jsonpath/reducePayloads.d.mts.map +1 -1
- package/dist/node/jsonpath/reducePayloads.d.ts +5 -5
- package/dist/node/jsonpath/reducePayloads.d.ts.map +1 -1
- package/package.json +24 -25
- package/src/Diviner.ts +3 -140
- package/src/IndexCandidateToIndexDiviner/Diviner.ts +1 -1
- package/src/IndexCandidateToIndexDiviner/_Diviner.ts +1 -1
- package/src/jsonpath/reducePayloads.ts +1 -1
- package/src/spec/TemporalDiviner.json +63 -71
|
@@ -1,31 +1,10 @@
|
|
|
1
1
|
import { IndexingDiviner } from '@xyo-network/diviner-indexing-memory';
|
|
2
|
-
import {
|
|
3
|
-
import { DivinerInstance, DivinerModule, DivinerModuleEventData } from '@xyo-network/diviner-model';
|
|
2
|
+
import { DivinerModule, DivinerModuleEventData } from '@xyo-network/diviner-model';
|
|
4
3
|
import { TemporalIndexingDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
|
|
5
4
|
import { Payload } from '@xyo-network/payload-model';
|
|
6
5
|
export declare class TemporalIndexingDiviner<TParams extends TemporalIndexingDivinerParams = TemporalIndexingDivinerParams, TIn extends Payload = Payload, TOut extends Payload = Payload, TEventData extends DivinerModuleEventData<DivinerModule<TParams>, TIn, TOut> = DivinerModuleEventData<DivinerModule<TParams>, TIn, TOut>> extends IndexingDiviner<TParams, TIn, TOut, TEventData> {
|
|
7
6
|
static readonly configSchema: "network.xyo.diviner.indexing.temporal.config";
|
|
8
7
|
static readonly configSchemas: string[];
|
|
9
|
-
private _divinerQueryToIndexQueryDiviner;
|
|
10
|
-
private _indexCandidateToIndexDiviner;
|
|
11
|
-
private _indexQueryResponseToDivinerQueryResponseDiviner;
|
|
12
|
-
private _stateToIndexCandidateDiviner;
|
|
13
|
-
/**
|
|
14
|
-
* Gets the Diviner for the supplied Indexing Diviner stage
|
|
15
|
-
* @param transform The Indexing Diviner stage
|
|
16
|
-
* @returns The diviner corresponding to the Indexing Diviner stage
|
|
17
|
-
*/
|
|
18
|
-
protected getIndexingDivinerStage(transform: IndexingDivinerStage): Promise<DivinerInstance>;
|
|
19
8
|
protected startHandler(): Promise<boolean>;
|
|
20
|
-
/**
|
|
21
|
-
* Adds the supplied module to the parent Node of this Diviner
|
|
22
|
-
* @param mod The module to add to the parent Node of this Diviner
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
private attachModuleToParentNode;
|
|
26
|
-
private getDivinerQueryToIndexQueryDiviner;
|
|
27
|
-
private getIndexCandidateToIndexDiviner;
|
|
28
|
-
private getIndexQueryResponseToDivinerQueryResponseDiviner;
|
|
29
|
-
private getStateToIndexCandidateDiviner;
|
|
30
9
|
}
|
|
31
10
|
//# sourceMappingURL=Diviner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AAEtE,OAAO,EAAuB,aAAa,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACvG,OAAO,EAAuC,6BAA6B,EAAE,MAAM,8CAA8C,CAAA;AACjI,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,qBAAa,uBAAuB,CAClC,OAAO,SAAS,6BAA6B,GAAG,6BAA6B,EAC7E,GAAG,SAAS,OAAO,GAAG,OAAO,EAC7B,IAAI,SAAS,OAAO,GAAG,OAAO,EAC9B,UAAU,SAAS,sBAAsB,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,sBAAsB,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,CACxI,SAAQ,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,CAAC;IACvD,gBAAyB,YAAY,iDAAsC;IAC3E,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA0F;cAEjH,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC;CAI1D"}
|
|
@@ -1,31 +1,10 @@
|
|
|
1
1
|
import { IndexingDiviner } from '@xyo-network/diviner-indexing-memory';
|
|
2
|
-
import {
|
|
3
|
-
import { DivinerInstance, DivinerModule, DivinerModuleEventData } from '@xyo-network/diviner-model';
|
|
2
|
+
import { DivinerModule, DivinerModuleEventData } from '@xyo-network/diviner-model';
|
|
4
3
|
import { TemporalIndexingDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
|
|
5
4
|
import { Payload } from '@xyo-network/payload-model';
|
|
6
5
|
export declare class TemporalIndexingDiviner<TParams extends TemporalIndexingDivinerParams = TemporalIndexingDivinerParams, TIn extends Payload = Payload, TOut extends Payload = Payload, TEventData extends DivinerModuleEventData<DivinerModule<TParams>, TIn, TOut> = DivinerModuleEventData<DivinerModule<TParams>, TIn, TOut>> extends IndexingDiviner<TParams, TIn, TOut, TEventData> {
|
|
7
6
|
static readonly configSchema: "network.xyo.diviner.indexing.temporal.config";
|
|
8
7
|
static readonly configSchemas: string[];
|
|
9
|
-
private _divinerQueryToIndexQueryDiviner;
|
|
10
|
-
private _indexCandidateToIndexDiviner;
|
|
11
|
-
private _indexQueryResponseToDivinerQueryResponseDiviner;
|
|
12
|
-
private _stateToIndexCandidateDiviner;
|
|
13
|
-
/**
|
|
14
|
-
* Gets the Diviner for the supplied Indexing Diviner stage
|
|
15
|
-
* @param transform The Indexing Diviner stage
|
|
16
|
-
* @returns The diviner corresponding to the Indexing Diviner stage
|
|
17
|
-
*/
|
|
18
|
-
protected getIndexingDivinerStage(transform: IndexingDivinerStage): Promise<DivinerInstance>;
|
|
19
8
|
protected startHandler(): Promise<boolean>;
|
|
20
|
-
/**
|
|
21
|
-
* Adds the supplied module to the parent Node of this Diviner
|
|
22
|
-
* @param mod The module to add to the parent Node of this Diviner
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
private attachModuleToParentNode;
|
|
26
|
-
private getDivinerQueryToIndexQueryDiviner;
|
|
27
|
-
private getIndexCandidateToIndexDiviner;
|
|
28
|
-
private getIndexQueryResponseToDivinerQueryResponseDiviner;
|
|
29
|
-
private getStateToIndexCandidateDiviner;
|
|
30
9
|
}
|
|
31
10
|
//# sourceMappingURL=Diviner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AAEtE,OAAO,EAAuB,aAAa,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACvG,OAAO,EAAuC,6BAA6B,EAAE,MAAM,8CAA8C,CAAA;AACjI,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,qBAAa,uBAAuB,CAClC,OAAO,SAAS,6BAA6B,GAAG,6BAA6B,EAC7E,GAAG,SAAS,OAAO,GAAG,OAAO,EAC7B,IAAI,SAAS,OAAO,GAAG,OAAO,EAC9B,UAAU,SAAS,sBAAsB,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,sBAAsB,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,CACxI,SAAQ,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,CAAC;IACvD,gBAAyB,YAAY,iDAAsC;IAC3E,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA0F;cAEjH,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC;CAI1D"}
|
|
@@ -1,31 +1,10 @@
|
|
|
1
1
|
import { IndexingDiviner } from '@xyo-network/diviner-indexing-memory';
|
|
2
|
-
import {
|
|
3
|
-
import { DivinerInstance, DivinerModule, DivinerModuleEventData } from '@xyo-network/diviner-model';
|
|
2
|
+
import { DivinerModule, DivinerModuleEventData } from '@xyo-network/diviner-model';
|
|
4
3
|
import { TemporalIndexingDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
|
|
5
4
|
import { Payload } from '@xyo-network/payload-model';
|
|
6
5
|
export declare class TemporalIndexingDiviner<TParams extends TemporalIndexingDivinerParams = TemporalIndexingDivinerParams, TIn extends Payload = Payload, TOut extends Payload = Payload, TEventData extends DivinerModuleEventData<DivinerModule<TParams>, TIn, TOut> = DivinerModuleEventData<DivinerModule<TParams>, TIn, TOut>> extends IndexingDiviner<TParams, TIn, TOut, TEventData> {
|
|
7
6
|
static readonly configSchema: "network.xyo.diviner.indexing.temporal.config";
|
|
8
7
|
static readonly configSchemas: string[];
|
|
9
|
-
private _divinerQueryToIndexQueryDiviner;
|
|
10
|
-
private _indexCandidateToIndexDiviner;
|
|
11
|
-
private _indexQueryResponseToDivinerQueryResponseDiviner;
|
|
12
|
-
private _stateToIndexCandidateDiviner;
|
|
13
|
-
/**
|
|
14
|
-
* Gets the Diviner for the supplied Indexing Diviner stage
|
|
15
|
-
* @param transform The Indexing Diviner stage
|
|
16
|
-
* @returns The diviner corresponding to the Indexing Diviner stage
|
|
17
|
-
*/
|
|
18
|
-
protected getIndexingDivinerStage(transform: IndexingDivinerStage): Promise<DivinerInstance>;
|
|
19
8
|
protected startHandler(): Promise<boolean>;
|
|
20
|
-
/**
|
|
21
|
-
* Adds the supplied module to the parent Node of this Diviner
|
|
22
|
-
* @param mod The module to add to the parent Node of this Diviner
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
private attachModuleToParentNode;
|
|
26
|
-
private getDivinerQueryToIndexQueryDiviner;
|
|
27
|
-
private getIndexCandidateToIndexDiviner;
|
|
28
|
-
private getIndexQueryResponseToDivinerQueryResponseDiviner;
|
|
29
|
-
private getStateToIndexCandidateDiviner;
|
|
30
9
|
}
|
|
31
10
|
//# sourceMappingURL=Diviner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AAEtE,OAAO,EAAuB,aAAa,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACvG,OAAO,EAAuC,6BAA6B,EAAE,MAAM,8CAA8C,CAAA;AACjI,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,qBAAa,uBAAuB,CAClC,OAAO,SAAS,6BAA6B,GAAG,6BAA6B,EAC7E,GAAG,SAAS,OAAO,GAAG,OAAO,EAC7B,IAAI,SAAS,OAAO,GAAG,OAAO,EAC9B,UAAU,SAAS,sBAAsB,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,sBAAsB,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,CACxI,SAAQ,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,CAAC;IACvD,gBAAyB,YAAY,iDAAsC;IAC3E,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA0F;cAEjH,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC;CAI1D"}
|
|
@@ -7,7 +7,7 @@ import { Payload } from '@xyo-network/payload-model';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner<TParams extends TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams> extends AbstractDiviner<TParams> {
|
|
9
9
|
static readonly configSchema: "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config";
|
|
10
|
-
static configSchemas: ("network.xyo.diviner.
|
|
10
|
+
static configSchemas: ("network.xyo.diviner.config" | "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config")[];
|
|
11
11
|
static labels: Labels;
|
|
12
12
|
private _indexableSchemas;
|
|
13
13
|
private _payloadTransformers;
|
|
@@ -7,7 +7,7 @@ import { Payload } from '@xyo-network/payload-model';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner<TParams extends TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams> extends AbstractDiviner<TParams> {
|
|
9
9
|
static readonly configSchema: "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config";
|
|
10
|
-
static configSchemas: ("network.xyo.diviner.
|
|
10
|
+
static configSchemas: ("network.xyo.diviner.config" | "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config")[];
|
|
11
11
|
static labels: Labels;
|
|
12
12
|
private _indexableSchemas;
|
|
13
13
|
private _payloadTransformers;
|
|
@@ -7,7 +7,7 @@ import { Payload } from '@xyo-network/payload-model';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner<TParams extends TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams> extends AbstractDiviner<TParams> {
|
|
9
9
|
static readonly configSchema: "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config";
|
|
10
|
-
static configSchemas: ("network.xyo.diviner.
|
|
10
|
+
static configSchemas: ("network.xyo.diviner.config" | "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config")[];
|
|
11
11
|
static labels: Labels;
|
|
12
12
|
private _indexableSchemas;
|
|
13
13
|
private _payloadTransformers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AAE9E,OAAO,EACL,8CAA8C,EAC9C,qCAAqC,EAErC,yDAAyD,EAG1D,MAAM,8CAA8C,CAAA;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAiB,MAAM,4BAA4B,CAAA;AAInE,MAAM,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,GAAG,OAAO,EAAE,CAAC,CAAA;AAI5D;;;;GAIG;AACH,qBAAa,mDAAmD,CAC9D,OAAO,SAAS,yDAAyD,GAAG,yDAAyD,CACrI,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,OAAgB,YAAY,oFAAkE;IAC9F,OAAgB,aAAa,uHAAyF;IACtH,MAAM,CAAC,MAAM,EAAE,MAAM,CAEpB;IAED,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,oBAAoB,CAAmD;IAE/E;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,EAAE,CAGzC;IAED;;;OAGG;IACH,SAAS,KAAK,mBAAmB,IAAI,qCAAqC,CAGzE;IAED;;;OAGG;IACH,SAAS,KAAK,gBAAgB,IAAI,8CAA8C,CAE/E;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IA0CpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,MAAO,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,YAAa,MAAM,GAAG,IAAI,aAEpD;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AAE9E,OAAO,EACL,8CAA8C,EAC9C,qCAAqC,EAErC,yDAAyD,EAG1D,MAAM,8CAA8C,CAAA;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAiB,MAAM,4BAA4B,CAAA;AAInE,MAAM,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,GAAG,OAAO,EAAE,CAAC,CAAA;AAI5D;;;;GAIG;AACH,qBAAa,mDAAmD,CAC9D,OAAO,SAAS,yDAAyD,GAAG,yDAAyD,CACrI,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,OAAgB,YAAY,oFAAkE;IAC9F,OAAgB,aAAa,uHAAyF;IACtH,MAAM,CAAC,MAAM,EAAE,MAAM,CAEpB;IAED,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,oBAAoB,CAAmD;IAE/E;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,EAAE,CAGzC;IAED;;;OAGG;IACH,SAAS,KAAK,mBAAmB,IAAI,qCAAqC,CAGzE;IAED;;;OAGG;IACH,SAAS,KAAK,gBAAgB,IAAI,8CAA8C,CAE/E;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IA0CpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,MAAO,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,YAAa,MAAM,GAAG,IAAI,aAEpD;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AAE9E,OAAO,EACL,8CAA8C,EAC9C,qCAAqC,EAErC,yDAAyD,EAG1D,MAAM,8CAA8C,CAAA;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAiB,MAAM,4BAA4B,CAAA;AAInE,MAAM,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,GAAG,OAAO,EAAE,CAAC,CAAA;AAI5D;;;;GAIG;AACH,qBAAa,mDAAmD,CAC9D,OAAO,SAAS,yDAAyD,GAAG,yDAAyD,CACrI,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,OAAgB,YAAY,oFAAkE;IAC9F,OAAgB,aAAa,uHAAyF;IACtH,MAAM,CAAC,MAAM,EAAE,MAAM,CAEpB;IAED,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,oBAAoB,CAAmD;IAE/E;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,EAAE,CAGzC;IAED;;;OAGG;IACH,SAAS,KAAK,mBAAmB,IAAI,qCAAqC,CAGzE;IAED;;;OAGG;IACH,SAAS,KAAK,gBAAgB,IAAI,8CAA8C,CAE/E;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IA0CpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,MAAO,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,YAAa,MAAM,GAAG,IAAI,aAEpD;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/_Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"_Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/_Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AAE9E,OAAO,EACL,8CAA8C,EAC9C,qCAAqC,EAErC,yDAAyD,EAG1D,MAAM,8CAA8C,CAAA;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAiB,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAe,SAAS,EAAmB,MAAM,gCAAgC,CAAA;AAIxF,MAAM,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CAAA;AAIvE;;;;GAIG;AACH,qBAAa,mDAAmD,CAC9D,OAAO,SAAS,yDAAyD,GAAG,yDAAyD,CACrI,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,OAAgB,YAAY,oFAAkE;IAC9F,OAAgB,aAAa,uHAAyF;IACtH,MAAM,CAAC,MAAM,EAAE,MAAM,CAEpB;IAED,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,oBAAoB,CAAmD;IAE/E;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,EAAE,CAGzC;IAED;;;OAGG;IACH,SAAS,KAAK,mBAAmB,IAAI,qCAAqC,CAGzE;IAED;;;OAGG;IACH,SAAS,KAAK,gBAAgB,IAAI,8CAA8C,CAE/E;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAiDpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,MAAO,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,YAAa,MAAM,GAAG,IAAI,aAEpD;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/_Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"_Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/_Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AAE9E,OAAO,EACL,8CAA8C,EAC9C,qCAAqC,EAErC,yDAAyD,EAG1D,MAAM,8CAA8C,CAAA;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAiB,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAe,SAAS,EAAmB,MAAM,gCAAgC,CAAA;AAIxF,MAAM,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CAAA;AAIvE;;;;GAIG;AACH,qBAAa,mDAAmD,CAC9D,OAAO,SAAS,yDAAyD,GAAG,yDAAyD,CACrI,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,OAAgB,YAAY,oFAAkE;IAC9F,OAAgB,aAAa,uHAAyF;IACtH,MAAM,CAAC,MAAM,EAAE,MAAM,CAEpB;IAED,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,oBAAoB,CAAmD;IAE/E;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,EAAE,CAGzC;IAED;;;OAGG;IACH,SAAS,KAAK,mBAAmB,IAAI,qCAAqC,CAGzE;IAED;;;OAGG;IACH,SAAS,KAAK,gBAAgB,IAAI,8CAA8C,CAE/E;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAiDpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,MAAO,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,YAAa,MAAM,GAAG,IAAI,aAEpD;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/_Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"_Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/_Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AAE9E,OAAO,EACL,8CAA8C,EAC9C,qCAAqC,EAErC,yDAAyD,EAG1D,MAAM,8CAA8C,CAAA;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAiB,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAe,SAAS,EAAmB,MAAM,gCAAgC,CAAA;AAIxF,MAAM,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CAAA;AAIvE;;;;GAIG;AACH,qBAAa,mDAAmD,CAC9D,OAAO,SAAS,yDAAyD,GAAG,yDAAyD,CACrI,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,OAAgB,YAAY,oFAAkE;IAC9F,OAAgB,aAAa,uHAAyF;IACtH,MAAM,CAAC,MAAM,EAAE,MAAM,CAEpB;IAED,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,oBAAoB,CAAmD;IAE/E;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,EAAE,CAGzC;IAED;;;OAGG;IACH,SAAS,KAAK,mBAAmB,IAAI,qCAAqC,CAGzE;IAED;;;OAGG;IACH,SAAS,KAAK,gBAAgB,IAAI,8CAA8C,CAE/E;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAiDpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,MAAO,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,YAAa,MAAM,GAAG,IAAI,aAEpD;CACF"}
|
package/dist/browser/index.cjs
CHANGED
|
@@ -39,18 +39,24 @@ __export(src_exports, {
|
|
|
39
39
|
module.exports = __toCommonJS(src_exports);
|
|
40
40
|
|
|
41
41
|
// src/Diviner.ts
|
|
42
|
-
var import_assert3 = require("@xylabs/assert");
|
|
43
42
|
var import_diviner_indexing_memory = require("@xyo-network/diviner-indexing-memory");
|
|
44
43
|
var import_diviner_indexing_model = require("@xyo-network/diviner-indexing-model");
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
44
|
+
var import_diviner_model = require("@xyo-network/diviner-model");
|
|
45
|
+
var import_diviner_temporal_indexing_model = require("@xyo-network/diviner-temporal-indexing-model");
|
|
46
|
+
var TemporalIndexingDiviner = class extends import_diviner_indexing_memory.IndexingDiviner {
|
|
47
|
+
static configSchema = import_diviner_temporal_indexing_model.TemporalIndexingDivinerConfigSchema;
|
|
48
|
+
static configSchemas = [import_diviner_temporal_indexing_model.TemporalIndexingDivinerConfigSchema, import_diviner_indexing_model.IndexingDivinerConfigSchema, import_diviner_model.DivinerConfigSchema];
|
|
49
|
+
async startHandler() {
|
|
50
|
+
await super.startHandler();
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
48
54
|
|
|
49
55
|
// src/DivinerQueryToIndexQueryDiviner/Diviner.ts
|
|
50
56
|
var import_abstract_diviner = require("@xyo-network/abstract-diviner");
|
|
51
|
-
var
|
|
57
|
+
var import_diviner_model2 = require("@xyo-network/diviner-model");
|
|
52
58
|
var import_diviner_payload_model = require("@xyo-network/diviner-payload-model");
|
|
53
|
-
var
|
|
59
|
+
var import_diviner_temporal_indexing_model2 = require("@xyo-network/diviner-temporal-indexing-model");
|
|
54
60
|
var import_payload_builder2 = require("@xyo-network/payload-builder");
|
|
55
61
|
var import_payload_model = require("@xyo-network/payload-model");
|
|
56
62
|
|
|
@@ -80,21 +86,21 @@ var jsonPathToTransformersDictionary = (schemaTransforms) => {
|
|
|
80
86
|
};
|
|
81
87
|
|
|
82
88
|
// src/jsonpath/reducePayloads.ts
|
|
83
|
-
var
|
|
89
|
+
var import_hash = require("@xyo-network/hash");
|
|
84
90
|
var import_payload_builder = require("@xyo-network/payload-builder");
|
|
85
91
|
var reducePayloads = async (payloads, payloadTransformers, destinationSchema) => {
|
|
86
92
|
const indexFields = payloads.map((payload) => {
|
|
87
93
|
const transformers = payloadTransformers[payload.schema];
|
|
88
94
|
return transformers ? transformers.map((transform) => transform(payload)) : [];
|
|
89
95
|
}).flat();
|
|
90
|
-
const sources = (await
|
|
96
|
+
const sources = (await import_hash.PayloadHasher.hashPairs([...payloads])).map(([, hash]) => hash);
|
|
91
97
|
return new import_payload_builder.PayloadBuilder({ schema: destinationSchema }).fields(Object.assign({ sources }, ...indexFields)).build();
|
|
92
98
|
};
|
|
93
99
|
|
|
94
100
|
// src/DivinerQueryToIndexQueryDiviner/Diviner.ts
|
|
95
101
|
var TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner = class extends import_abstract_diviner.AbstractDiviner {
|
|
96
|
-
static configSchema =
|
|
97
|
-
static configSchemas = [
|
|
102
|
+
static configSchema = import_diviner_temporal_indexing_model2.TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema;
|
|
103
|
+
static configSchemas = [import_diviner_model2.DivinerConfigSchema, import_diviner_temporal_indexing_model2.TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema];
|
|
98
104
|
static labels = {
|
|
99
105
|
"network.xyo.diviner.stage": "divinerQueryToIndexQueryDiviner"
|
|
100
106
|
};
|
|
@@ -116,7 +122,7 @@ var TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner = class extends impor
|
|
|
116
122
|
* The schema of the index payloads
|
|
117
123
|
*/
|
|
118
124
|
get indexSchema() {
|
|
119
|
-
return this.config.indexSchema ??
|
|
125
|
+
return this.config.indexSchema ?? import_diviner_temporal_indexing_model2.TemporalIndexingDivinerResultIndexSchema;
|
|
120
126
|
}
|
|
121
127
|
/**
|
|
122
128
|
* List of indexable schemas for this diviner
|
|
@@ -187,14 +193,14 @@ var import_assert = require("@xylabs/assert");
|
|
|
187
193
|
var import_exists = require("@xylabs/exists");
|
|
188
194
|
var import_abstract_diviner2 = require("@xyo-network/abstract-diviner");
|
|
189
195
|
var import_boundwitness_model = require("@xyo-network/boundwitness-model");
|
|
190
|
-
var
|
|
191
|
-
var
|
|
192
|
-
var
|
|
196
|
+
var import_diviner_model3 = require("@xyo-network/diviner-model");
|
|
197
|
+
var import_diviner_temporal_indexing_model3 = require("@xyo-network/diviner-temporal-indexing-model");
|
|
198
|
+
var import_hash2 = require("@xyo-network/hash");
|
|
193
199
|
var import_payload_builder3 = require("@xyo-network/payload-builder");
|
|
194
200
|
var moduleName = "TemporalIndexingDivinerIndexCandidateToIndexDiviner";
|
|
195
201
|
var TemporalIndexingDivinerIndexCandidateToIndexDiviner = class extends import_abstract_diviner2.AbstractDiviner {
|
|
196
|
-
static configSchema =
|
|
197
|
-
static configSchemas = [
|
|
202
|
+
static configSchema = import_diviner_temporal_indexing_model3.TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema;
|
|
203
|
+
static configSchemas = [import_diviner_model3.DivinerConfigSchema, import_diviner_temporal_indexing_model3.TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema];
|
|
198
204
|
static labels = {
|
|
199
205
|
"network.xyo.diviner.stage": "indexCandidateToIndexDiviner"
|
|
200
206
|
};
|
|
@@ -228,7 +234,7 @@ var TemporalIndexingDivinerIndexCandidateToIndexDiviner = class extends import_a
|
|
|
228
234
|
const bws = payloads.filter(import_boundwitness_model.isBoundWitness);
|
|
229
235
|
const indexablePayloads = payloads.filter((p) => this.isIndexablePayload(p));
|
|
230
236
|
if (bws.length && indexablePayloads.length) {
|
|
231
|
-
const payloadDictionary = await
|
|
237
|
+
const payloadDictionary = await import_hash2.PayloadHasher.toMap(payloads);
|
|
232
238
|
const validIndexableTuples = bws.reduce((indexableTuples, bw) => {
|
|
233
239
|
if (!(0, import_array.containsAll)(bw.payload_schemas, this.indexableSchemas))
|
|
234
240
|
return indexableTuples;
|
|
@@ -245,8 +251,8 @@ var TemporalIndexingDivinerIndexCandidateToIndexDiviner = class extends import_a
|
|
|
245
251
|
const transformers = this.payloadTransformers[payload.schema];
|
|
246
252
|
return transformers ? transformers.map((transform) => transform(payload)) : [];
|
|
247
253
|
}).flat();
|
|
248
|
-
const sources = Object.keys(await
|
|
249
|
-
return new import_payload_builder3.PayloadBuilder({ schema:
|
|
254
|
+
const sources = Object.keys(await import_hash2.PayloadHasher.toMap([bw, ...sourcePayloads]));
|
|
255
|
+
return new import_payload_builder3.PayloadBuilder({ schema: import_diviner_temporal_indexing_model3.TemporalIndexingDivinerResultIndexSchema }).fields(Object.assign({ sources }, ...indexFields)).build();
|
|
250
256
|
})
|
|
251
257
|
);
|
|
252
258
|
return indexes.flat();
|
|
@@ -273,12 +279,12 @@ var TemporalIndexingDivinerIndexCandidateToIndexDiviner = class extends import_a
|
|
|
273
279
|
|
|
274
280
|
// src/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.ts
|
|
275
281
|
var import_abstract_diviner3 = require("@xyo-network/abstract-diviner");
|
|
276
|
-
var
|
|
282
|
+
var import_diviner_model4 = require("@xyo-network/diviner-model");
|
|
277
283
|
var import_diviner_payload_model2 = require("@xyo-network/diviner-payload-model");
|
|
278
|
-
var
|
|
284
|
+
var import_diviner_temporal_indexing_model4 = require("@xyo-network/diviner-temporal-indexing-model");
|
|
279
285
|
var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner = class extends import_abstract_diviner3.AbstractDiviner {
|
|
280
|
-
static configSchema =
|
|
281
|
-
static configSchemas = [
|
|
286
|
+
static configSchema = import_diviner_temporal_indexing_model4.TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema;
|
|
287
|
+
static configSchemas = [import_diviner_model4.DivinerConfigSchema, import_diviner_temporal_indexing_model4.TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema];
|
|
282
288
|
static labels = {
|
|
283
289
|
"network.xyo.diviner.stage": "indexQueryResponseToDivinerQueryResponseDiviner"
|
|
284
290
|
};
|
|
@@ -295,8 +301,8 @@ var import_abstract_diviner4 = require("@xyo-network/abstract-diviner");
|
|
|
295
301
|
var import_archivist_wrapper = require("@xyo-network/archivist-wrapper");
|
|
296
302
|
var import_boundwitness_model2 = require("@xyo-network/boundwitness-model");
|
|
297
303
|
var import_diviner_boundwitness_model = require("@xyo-network/diviner-boundwitness-model");
|
|
298
|
-
var
|
|
299
|
-
var
|
|
304
|
+
var import_diviner_model5 = require("@xyo-network/diviner-model");
|
|
305
|
+
var import_diviner_temporal_indexing_model5 = require("@xyo-network/diviner-temporal-indexing-model");
|
|
300
306
|
var import_diviner_wrapper = require("@xyo-network/diviner-wrapper");
|
|
301
307
|
var import_module_model = require("@xyo-network/module-model");
|
|
302
308
|
var import_payload_builder4 = require("@xyo-network/payload-builder");
|
|
@@ -305,8 +311,8 @@ var import_witness_timestamp = require("@xyo-network/witness-timestamp");
|
|
|
305
311
|
var order = "asc";
|
|
306
312
|
var moduleName2 = "TemporalIndexingDivinerStateToIndexCandidateDiviner";
|
|
307
313
|
var TemporalIndexingDivinerStateToIndexCandidateDiviner = class extends import_abstract_diviner4.AbstractDiviner {
|
|
308
|
-
static configSchema =
|
|
309
|
-
static configSchemas = [
|
|
314
|
+
static configSchema = import_diviner_temporal_indexing_model5.TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema;
|
|
315
|
+
static configSchemas = [import_diviner_model5.DivinerConfigSchema, import_diviner_temporal_indexing_model5.TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema];
|
|
310
316
|
static labels = {
|
|
311
317
|
"network.xyo.diviner.stage": "stateToIndexCandidateDiviner"
|
|
312
318
|
};
|
|
@@ -376,131 +382,4 @@ var TemporalIndexingDivinerStateToIndexCandidateDiviner = class extends import_a
|
|
|
376
382
|
return [bw, ...indexCandidates];
|
|
377
383
|
}
|
|
378
384
|
};
|
|
379
|
-
|
|
380
|
-
// src/Diviner.ts
|
|
381
|
-
var moduleName3 = "TemporalIndexingDiviner";
|
|
382
|
-
var TemporalIndexingDiviner = class extends import_diviner_indexing_memory.IndexingDiviner {
|
|
383
|
-
static configSchema = import_diviner_temporal_indexing_model5.TemporalIndexingDivinerConfigSchema;
|
|
384
|
-
static configSchemas = [import_diviner_temporal_indexing_model5.TemporalIndexingDivinerConfigSchema, import_diviner_indexing_model.IndexingDivinerConfigSchema, import_diviner_model5.DivinerConfigSchema];
|
|
385
|
-
_divinerQueryToIndexQueryDiviner;
|
|
386
|
-
_indexCandidateToIndexDiviner;
|
|
387
|
-
_indexQueryResponseToDivinerQueryResponseDiviner;
|
|
388
|
-
_stateToIndexCandidateDiviner;
|
|
389
|
-
/**
|
|
390
|
-
* Gets the Diviner for the supplied Indexing Diviner stage
|
|
391
|
-
* @param transform The Indexing Diviner stage
|
|
392
|
-
* @returns The diviner corresponding to the Indexing Diviner stage
|
|
393
|
-
*/
|
|
394
|
-
getIndexingDivinerStage(transform) {
|
|
395
|
-
switch (transform) {
|
|
396
|
-
case "divinerQueryToIndexQueryDiviner":
|
|
397
|
-
return this.getDivinerQueryToIndexQueryDiviner();
|
|
398
|
-
case "indexCandidateToIndexDiviner":
|
|
399
|
-
return this.getIndexCandidateToIndexDiviner();
|
|
400
|
-
case "indexQueryResponseToDivinerQueryResponseDiviner":
|
|
401
|
-
return this.getIndexQueryResponseToDivinerQueryResponseDiviner();
|
|
402
|
-
case "stateToIndexCandidateDiviner":
|
|
403
|
-
return this.getStateToIndexCandidateDiviner();
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
async startHandler() {
|
|
407
|
-
await super.startHandler();
|
|
408
|
-
return true;
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* Adds the supplied module to the parent Node of this Diviner
|
|
412
|
-
* @param mod The module to add to the parent Node of this Diviner
|
|
413
|
-
* @returns
|
|
414
|
-
*/
|
|
415
|
-
async attachModuleToParentNode(mod) {
|
|
416
|
-
const parent = (await this.resolve({ maxDepth: 1, query: [["network.xyo.query.node.attach"]] })).shift();
|
|
417
|
-
if (parent) {
|
|
418
|
-
const node = (0, import_node_model.asNodeInstance)(parent);
|
|
419
|
-
if (node) {
|
|
420
|
-
await node.register(mod);
|
|
421
|
-
await node.attach(mod.address, false);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
async getDivinerQueryToIndexQueryDiviner() {
|
|
426
|
-
if (!this._divinerQueryToIndexQueryDiviner) {
|
|
427
|
-
const name = this.config.indexingDivinerStages?.divinerQueryToIndexQueryDiviner;
|
|
428
|
-
if (name) {
|
|
429
|
-
this._divinerQueryToIndexQueryDiviner = await this.resolve(name);
|
|
430
|
-
} else {
|
|
431
|
-
const stageConfig = this.config.stageConfigs?.divinerQueryToIndexQueryDiviner;
|
|
432
|
-
if (stageConfig) {
|
|
433
|
-
const config = { schema: import_diviner_temporal_indexing_model5.TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema, ...stageConfig };
|
|
434
|
-
const stage = await TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner.create({ config });
|
|
435
|
-
await this.attachModuleToParentNode(stage);
|
|
436
|
-
this._divinerQueryToIndexQueryDiviner = stage;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
return (0, import_assert3.assertEx)(
|
|
441
|
-
this._divinerQueryToIndexQueryDiviner,
|
|
442
|
-
() => `${moduleName3}: Failed to resolve indexing diviner stage for divinerQueryToIndexQueryDiviner`
|
|
443
|
-
);
|
|
444
|
-
}
|
|
445
|
-
async getIndexCandidateToIndexDiviner() {
|
|
446
|
-
if (!this._indexCandidateToIndexDiviner) {
|
|
447
|
-
const name = this.config.indexingDivinerStages?.indexCandidateToIndexDiviner;
|
|
448
|
-
if (name) {
|
|
449
|
-
this._indexCandidateToIndexDiviner = await this.resolve(name);
|
|
450
|
-
} else {
|
|
451
|
-
const stageConfig = this.config.stageConfigs?.indexCandidateToIndexDiviner;
|
|
452
|
-
if (stageConfig) {
|
|
453
|
-
const config = { schema: import_diviner_temporal_indexing_model5.TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema, ...stageConfig };
|
|
454
|
-
const stage = await TemporalIndexingDivinerIndexCandidateToIndexDiviner.create({ config });
|
|
455
|
-
await this.attachModuleToParentNode(stage);
|
|
456
|
-
this._indexCandidateToIndexDiviner = stage;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
return (0, import_assert3.assertEx)(
|
|
461
|
-
this._indexCandidateToIndexDiviner,
|
|
462
|
-
() => `${moduleName3}: Failed to resolve indexing diviner stage for indexCandidateToIndexDiviner`
|
|
463
|
-
);
|
|
464
|
-
}
|
|
465
|
-
async getIndexQueryResponseToDivinerQueryResponseDiviner() {
|
|
466
|
-
if (!this._indexQueryResponseToDivinerQueryResponseDiviner) {
|
|
467
|
-
const name = this.config.indexingDivinerStages?.indexQueryResponseToDivinerQueryResponseDiviner;
|
|
468
|
-
if (name) {
|
|
469
|
-
this._indexQueryResponseToDivinerQueryResponseDiviner = await this.resolve(name);
|
|
470
|
-
} else {
|
|
471
|
-
const stageConfig = this.config.stageConfigs?.indexQueryResponseToDivinerQueryResponseDiviner;
|
|
472
|
-
if (stageConfig) {
|
|
473
|
-
const config = { schema: import_diviner_temporal_indexing_model5.TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema, ...stageConfig };
|
|
474
|
-
const stage = await TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner.create({ config });
|
|
475
|
-
await this.attachModuleToParentNode(stage);
|
|
476
|
-
this._indexQueryResponseToDivinerQueryResponseDiviner = stage;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
return (0, import_assert3.assertEx)(
|
|
481
|
-
this._indexQueryResponseToDivinerQueryResponseDiviner,
|
|
482
|
-
() => `${moduleName3}: Failed to resolve indexing diviner stage for indexQueryResponseToDivinerQueryResponseDiviner`
|
|
483
|
-
);
|
|
484
|
-
}
|
|
485
|
-
async getStateToIndexCandidateDiviner() {
|
|
486
|
-
if (!this._stateToIndexCandidateDiviner) {
|
|
487
|
-
const name = this.config.indexingDivinerStages?.stateToIndexCandidateDiviner;
|
|
488
|
-
if (name) {
|
|
489
|
-
this._stateToIndexCandidateDiviner = await this.resolve(name);
|
|
490
|
-
} else {
|
|
491
|
-
const stageConfig = this.config.stageConfigs?.stateToIndexCandidateDiviner;
|
|
492
|
-
if (stageConfig) {
|
|
493
|
-
const config = { schema: import_diviner_temporal_indexing_model5.TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema, ...stageConfig };
|
|
494
|
-
const stage = await TemporalIndexingDivinerStateToIndexCandidateDiviner.create({ config });
|
|
495
|
-
await this.attachModuleToParentNode(stage);
|
|
496
|
-
this._stateToIndexCandidateDiviner = stage;
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
return (0, import_assert3.assertEx)(
|
|
501
|
-
this._stateToIndexCandidateDiviner,
|
|
502
|
-
() => `${moduleName3}: Failed to resolve indexing diviner stage for stateToIndexCandidateDiviner`
|
|
503
|
-
);
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
385
|
//# sourceMappingURL=index.cjs.map
|