@xyo-network/diviner-temporal-indexing-memory 2.84.7 → 2.84.8
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/DivinerQueryToIndexQueryDiviner/Diviner.d.cts.map +1 -1
- package/dist/browser/DivinerQueryToIndexQueryDiviner/Diviner.d.mts.map +1 -1
- package/dist/browser/DivinerQueryToIndexQueryDiviner/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 +14 -61
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +12 -49
- package/dist/browser/index.js.map +1 -1
- package/dist/node/DivinerQueryToIndexQueryDiviner/Diviner.d.cts.map +1 -1
- package/dist/node/DivinerQueryToIndexQueryDiviner/Diviner.d.mts.map +1 -1
- package/dist/node/DivinerQueryToIndexQueryDiviner/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.cjs +14 -61
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +12 -49
- package/dist/node/index.js.map +1 -1
- package/package.json +25 -26
- package/src/DivinerQueryToIndexQueryDiviner/Diviner.ts +2 -3
- package/src/IndexCandidateToIndexDiviner/Diviner.ts +1 -2
- package/dist/browser/IndexCandidateToIndexDiviner/_Diviner.d.cts +0 -47
- package/dist/browser/IndexCandidateToIndexDiviner/_Diviner.d.cts.map +0 -1
- package/dist/browser/IndexCandidateToIndexDiviner/_Diviner.d.mts +0 -47
- package/dist/browser/IndexCandidateToIndexDiviner/_Diviner.d.mts.map +0 -1
- package/dist/browser/IndexCandidateToIndexDiviner/_Diviner.d.ts +0 -47
- package/dist/browser/IndexCandidateToIndexDiviner/_Diviner.d.ts.map +0 -1
- package/dist/browser/jsonpath/index.d.cts +0 -4
- package/dist/browser/jsonpath/index.d.cts.map +0 -1
- package/dist/browser/jsonpath/index.d.mts +0 -4
- package/dist/browser/jsonpath/index.d.mts.map +0 -1
- package/dist/browser/jsonpath/index.d.ts +0 -4
- package/dist/browser/jsonpath/index.d.ts.map +0 -1
- package/dist/browser/jsonpath/jsonPathToTransformersDictionary.d.cts +0 -10
- package/dist/browser/jsonpath/jsonPathToTransformersDictionary.d.cts.map +0 -1
- package/dist/browser/jsonpath/jsonPathToTransformersDictionary.d.mts +0 -10
- package/dist/browser/jsonpath/jsonPathToTransformersDictionary.d.mts.map +0 -1
- package/dist/browser/jsonpath/jsonPathToTransformersDictionary.d.ts +0 -10
- package/dist/browser/jsonpath/jsonPathToTransformersDictionary.d.ts.map +0 -1
- package/dist/browser/jsonpath/reducePayloads.d.cts +0 -27
- package/dist/browser/jsonpath/reducePayloads.d.cts.map +0 -1
- package/dist/browser/jsonpath/reducePayloads.d.mts +0 -27
- package/dist/browser/jsonpath/reducePayloads.d.mts.map +0 -1
- package/dist/browser/jsonpath/reducePayloads.d.ts +0 -27
- package/dist/browser/jsonpath/reducePayloads.d.ts.map +0 -1
- package/dist/browser/jsonpath/toPayloadTransformer.d.cts +0 -8
- package/dist/browser/jsonpath/toPayloadTransformer.d.cts.map +0 -1
- package/dist/browser/jsonpath/toPayloadTransformer.d.mts +0 -8
- package/dist/browser/jsonpath/toPayloadTransformer.d.mts.map +0 -1
- package/dist/browser/jsonpath/toPayloadTransformer.d.ts +0 -8
- package/dist/browser/jsonpath/toPayloadTransformer.d.ts.map +0 -1
- package/dist/node/IndexCandidateToIndexDiviner/_Diviner.d.cts +0 -47
- package/dist/node/IndexCandidateToIndexDiviner/_Diviner.d.cts.map +0 -1
- package/dist/node/IndexCandidateToIndexDiviner/_Diviner.d.mts +0 -47
- package/dist/node/IndexCandidateToIndexDiviner/_Diviner.d.mts.map +0 -1
- package/dist/node/IndexCandidateToIndexDiviner/_Diviner.d.ts +0 -47
- package/dist/node/IndexCandidateToIndexDiviner/_Diviner.d.ts.map +0 -1
- package/dist/node/jsonpath/index.d.cts +0 -4
- package/dist/node/jsonpath/index.d.cts.map +0 -1
- package/dist/node/jsonpath/index.d.mts +0 -4
- package/dist/node/jsonpath/index.d.mts.map +0 -1
- package/dist/node/jsonpath/index.d.ts +0 -4
- package/dist/node/jsonpath/index.d.ts.map +0 -1
- package/dist/node/jsonpath/jsonPathToTransformersDictionary.d.cts +0 -10
- package/dist/node/jsonpath/jsonPathToTransformersDictionary.d.cts.map +0 -1
- package/dist/node/jsonpath/jsonPathToTransformersDictionary.d.mts +0 -10
- package/dist/node/jsonpath/jsonPathToTransformersDictionary.d.mts.map +0 -1
- package/dist/node/jsonpath/jsonPathToTransformersDictionary.d.ts +0 -10
- package/dist/node/jsonpath/jsonPathToTransformersDictionary.d.ts.map +0 -1
- package/dist/node/jsonpath/reducePayloads.d.cts +0 -27
- package/dist/node/jsonpath/reducePayloads.d.cts.map +0 -1
- package/dist/node/jsonpath/reducePayloads.d.mts +0 -27
- package/dist/node/jsonpath/reducePayloads.d.mts.map +0 -1
- package/dist/node/jsonpath/reducePayloads.d.ts +0 -27
- package/dist/node/jsonpath/reducePayloads.d.ts.map +0 -1
- package/dist/node/jsonpath/toPayloadTransformer.d.cts +0 -8
- package/dist/node/jsonpath/toPayloadTransformer.d.cts.map +0 -1
- package/dist/node/jsonpath/toPayloadTransformer.d.mts +0 -8
- package/dist/node/jsonpath/toPayloadTransformer.d.mts.map +0 -1
- package/dist/node/jsonpath/toPayloadTransformer.d.ts +0 -8
- package/dist/node/jsonpath/toPayloadTransformer.d.ts.map +0 -1
- package/src/IndexCandidateToIndexDiviner/_Diviner.ts +0 -134
- package/src/jsonpath/index.ts +0 -3
- package/src/jsonpath/jsonPathToTransformersDictionary.ts +0 -21
- package/src/jsonpath/reducePayloads.ts +0 -48
- package/src/jsonpath/toPayloadTransformer.ts +0 -23
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
/**
|
|
3
|
-
* Materializes the JSON-path expressions into memoized functions by converting a
|
|
4
|
-
* dictionary of schema to JSON Path transform expressions to a dictionary
|
|
5
|
-
* of schema to payload transformers
|
|
6
|
-
* @param schemaTransforms The schema transforms to convert
|
|
7
|
-
* @returns A dictionary of schema to payload transformers
|
|
8
|
-
*/
|
|
9
|
-
export declare const jsonPathToTransformersDictionary: (schemaTransforms: SchemaToJsonPathTransformExpressionsDictionary) => SchemaToPayloadTransformersDictionary;
|
|
10
|
-
//# sourceMappingURL=jsonPathToTransformersDictionary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonPathToTransformersDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/jsonPathToTransformersDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8CAA8C,EAAE,qCAAqC,EAAE,MAAM,8CAA8C,CAAA;AAIpJ;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,qBACzB,8CAA8C,KAC/D,qCAOF,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
import { Payload, PayloadFields } from '@xyo-network/payload-model';
|
|
3
|
-
/**
|
|
4
|
-
* Reduces the payloads to a single payload using the supplied transformers
|
|
5
|
-
* @param payloads The payloads to reduce
|
|
6
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payload
|
|
7
|
-
* @param destinationSchema The schema of the destination payload
|
|
8
|
-
* @returns The reduced payload
|
|
9
|
-
*/
|
|
10
|
-
export declare const reducePayloads: <T extends {
|
|
11
|
-
schema: string;
|
|
12
|
-
} & PayloadFields = {
|
|
13
|
-
schema: string;
|
|
14
|
-
} & PayloadFields>(payloads: Payload[], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T>;
|
|
15
|
-
/**
|
|
16
|
-
* Reduces the arrays of payload arrays to an array of payloads using the supplied transformers
|
|
17
|
-
* @param payloadsArray The arrays of payloads to reduce
|
|
18
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payloads
|
|
19
|
-
* @param destinationSchema The schema of the destination payloads
|
|
20
|
-
* @returns The reduced payloads
|
|
21
|
-
*/
|
|
22
|
-
export declare const reducePayloadsArray: <T extends {
|
|
23
|
-
schema: string;
|
|
24
|
-
} & PayloadFields = {
|
|
25
|
-
schema: string;
|
|
26
|
-
} & PayloadFields>(payloadsArray: Payload[][], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T[]>;
|
|
27
|
-
//# sourceMappingURL=reducePayloads.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reducePayloads.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/reducePayloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,8CAA8C,CAAA;AAGpG,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;6BACf,OAAO,EAAE,uBACE,qCAAqC,qBACvC,MAAM,eAa1B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;kCACf,OAAO,EAAE,EAAE,uBACL,qCAAqC,qBACvC,MAAM,iBAO1B,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
import { Payload, PayloadFields } from '@xyo-network/payload-model';
|
|
3
|
-
/**
|
|
4
|
-
* Reduces the payloads to a single payload using the supplied transformers
|
|
5
|
-
* @param payloads The payloads to reduce
|
|
6
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payload
|
|
7
|
-
* @param destinationSchema The schema of the destination payload
|
|
8
|
-
* @returns The reduced payload
|
|
9
|
-
*/
|
|
10
|
-
export declare const reducePayloads: <T extends {
|
|
11
|
-
schema: string;
|
|
12
|
-
} & PayloadFields = {
|
|
13
|
-
schema: string;
|
|
14
|
-
} & PayloadFields>(payloads: Payload[], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T>;
|
|
15
|
-
/**
|
|
16
|
-
* Reduces the arrays of payload arrays to an array of payloads using the supplied transformers
|
|
17
|
-
* @param payloadsArray The arrays of payloads to reduce
|
|
18
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payloads
|
|
19
|
-
* @param destinationSchema The schema of the destination payloads
|
|
20
|
-
* @returns The reduced payloads
|
|
21
|
-
*/
|
|
22
|
-
export declare const reducePayloadsArray: <T extends {
|
|
23
|
-
schema: string;
|
|
24
|
-
} & PayloadFields = {
|
|
25
|
-
schema: string;
|
|
26
|
-
} & PayloadFields>(payloadsArray: Payload[][], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T[]>;
|
|
27
|
-
//# sourceMappingURL=reducePayloads.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reducePayloads.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/reducePayloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,8CAA8C,CAAA;AAGpG,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;6BACf,OAAO,EAAE,uBACE,qCAAqC,qBACvC,MAAM,eAa1B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;kCACf,OAAO,EAAE,EAAE,uBACL,qCAAqC,qBACvC,MAAM,iBAO1B,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
import { Payload, PayloadFields } from '@xyo-network/payload-model';
|
|
3
|
-
/**
|
|
4
|
-
* Reduces the payloads to a single payload using the supplied transformers
|
|
5
|
-
* @param payloads The payloads to reduce
|
|
6
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payload
|
|
7
|
-
* @param destinationSchema The schema of the destination payload
|
|
8
|
-
* @returns The reduced payload
|
|
9
|
-
*/
|
|
10
|
-
export declare const reducePayloads: <T extends {
|
|
11
|
-
schema: string;
|
|
12
|
-
} & PayloadFields = {
|
|
13
|
-
schema: string;
|
|
14
|
-
} & PayloadFields>(payloads: Payload[], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T>;
|
|
15
|
-
/**
|
|
16
|
-
* Reduces the arrays of payload arrays to an array of payloads using the supplied transformers
|
|
17
|
-
* @param payloadsArray The arrays of payloads to reduce
|
|
18
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payloads
|
|
19
|
-
* @param destinationSchema The schema of the destination payloads
|
|
20
|
-
* @returns The reduced payloads
|
|
21
|
-
*/
|
|
22
|
-
export declare const reducePayloadsArray: <T extends {
|
|
23
|
-
schema: string;
|
|
24
|
-
} & PayloadFields = {
|
|
25
|
-
schema: string;
|
|
26
|
-
} & PayloadFields>(payloadsArray: Payload[][], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T[]>;
|
|
27
|
-
//# sourceMappingURL=reducePayloads.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reducePayloads.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/reducePayloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,8CAA8C,CAAA;AAGpG,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;6BACf,OAAO,EAAE,uBACE,qCAAqC,qBACvC,MAAM,eAa1B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;kCACf,OAAO,EAAE,EAAE,uBACL,qCAAqC,qBACvC,MAAM,iBAO1B,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { JsonPathTransformExpression, PayloadTransformer } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
/**
|
|
3
|
-
* Converts a JSON Path transform expression to a payload transformer
|
|
4
|
-
* @param transformExpression The transform expression to convert
|
|
5
|
-
* @returns The payload transformer for the JSON Path transform expression
|
|
6
|
-
*/
|
|
7
|
-
export declare const toPayloadTransformer: (transformExpression: JsonPathTransformExpression) => PayloadTransformer;
|
|
8
|
-
//# sourceMappingURL=toPayloadTransformer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toPayloadTransformer.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/toPayloadTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AAI9G;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,wBAAyB,2BAA2B,uBAapF,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { JsonPathTransformExpression, PayloadTransformer } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
/**
|
|
3
|
-
* Converts a JSON Path transform expression to a payload transformer
|
|
4
|
-
* @param transformExpression The transform expression to convert
|
|
5
|
-
* @returns The payload transformer for the JSON Path transform expression
|
|
6
|
-
*/
|
|
7
|
-
export declare const toPayloadTransformer: (transformExpression: JsonPathTransformExpression) => PayloadTransformer;
|
|
8
|
-
//# sourceMappingURL=toPayloadTransformer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toPayloadTransformer.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/toPayloadTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AAI9G;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,wBAAyB,2BAA2B,uBAapF,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { JsonPathTransformExpression, PayloadTransformer } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
/**
|
|
3
|
-
* Converts a JSON Path transform expression to a payload transformer
|
|
4
|
-
* @param transformExpression The transform expression to convert
|
|
5
|
-
* @returns The payload transformer for the JSON Path transform expression
|
|
6
|
-
*/
|
|
7
|
-
export declare const toPayloadTransformer: (transformExpression: JsonPathTransformExpression) => PayloadTransformer;
|
|
8
|
-
//# sourceMappingURL=toPayloadTransformer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toPayloadTransformer.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/toPayloadTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AAI9G;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,wBAAyB,2BAA2B,uBAapF,CAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { AbstractDiviner } from '@xyo-network/abstract-diviner';
|
|
2
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
-
import { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary, TemporalIndexingDivinerIndexCandidateToIndexDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
|
|
4
|
-
import { Labels } from '@xyo-network/module-model';
|
|
5
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
-
import { TimeStamp } from '@xyo-network/witness-timestamp';
|
|
7
|
-
export type IndexablePayloads = [BoundWitness, TimeStamp, ...Payload[]];
|
|
8
|
-
/**
|
|
9
|
-
* Diviner which transforms index candidates to indexes using JSON Path to map
|
|
10
|
-
* source properties in the supplied payloads to destination fields in the
|
|
11
|
-
* resultant index
|
|
12
|
-
*/
|
|
13
|
-
export declare class TemporalIndexingDivinerIndexCandidateToIndexDiviner<TParams extends TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = TemporalIndexingDivinerIndexCandidateToIndexDivinerParams> extends AbstractDiviner<TParams> {
|
|
14
|
-
static configSchema: "network.xyo.diviner.indexing.temporal.stage.indexCandidateToIndexDiviner.config";
|
|
15
|
-
static configSchemas: ("network.xyo.diviner.config" | "network.xyo.diviner.indexing.temporal.stage.indexCandidateToIndexDiviner.config")[];
|
|
16
|
-
static labels: Labels;
|
|
17
|
-
private _indexableSchemas;
|
|
18
|
-
private _payloadTransformers;
|
|
19
|
-
/**
|
|
20
|
-
* List of indexable schemas for this diviner
|
|
21
|
-
*/
|
|
22
|
-
protected get indexableSchemas(): string[];
|
|
23
|
-
/**
|
|
24
|
-
* Dictionary of schemas to payload transformers for creating indexes
|
|
25
|
-
* from the payloads within a Bound Witness
|
|
26
|
-
*/
|
|
27
|
-
protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
|
|
28
|
-
/**
|
|
29
|
-
* The dictionary of schemas to JSON Path transform expressions for creating indexes
|
|
30
|
-
* from the payloads within a Bound Witness
|
|
31
|
-
*/
|
|
32
|
-
protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
|
|
33
|
-
protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
|
|
34
|
-
/**
|
|
35
|
-
* Identifies if a payload is one that is indexed by this diviner
|
|
36
|
-
* @param x The candidate payload
|
|
37
|
-
* @returns True if the payload is one indexed by this diviner, false otherwise
|
|
38
|
-
*/
|
|
39
|
-
protected isIndexablePayload: (x: Payload) => boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Identifies if a schema is one that is indexed by this diviner
|
|
42
|
-
* @param schema The candidate schema
|
|
43
|
-
* @returns True if this schema is one indexed by this diviner, false otherwise
|
|
44
|
-
*/
|
|
45
|
-
protected isIndexableSchema: (schema?: string | null) => boolean;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=_Diviner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;IAgDpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,MAAO,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,YAAa,MAAM,GAAG,IAAI,aAEpD;CACF"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { AbstractDiviner } from '@xyo-network/abstract-diviner';
|
|
2
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
-
import { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary, TemporalIndexingDivinerIndexCandidateToIndexDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
|
|
4
|
-
import { Labels } from '@xyo-network/module-model';
|
|
5
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
-
import { TimeStamp } from '@xyo-network/witness-timestamp';
|
|
7
|
-
export type IndexablePayloads = [BoundWitness, TimeStamp, ...Payload[]];
|
|
8
|
-
/**
|
|
9
|
-
* Diviner which transforms index candidates to indexes using JSON Path to map
|
|
10
|
-
* source properties in the supplied payloads to destination fields in the
|
|
11
|
-
* resultant index
|
|
12
|
-
*/
|
|
13
|
-
export declare class TemporalIndexingDivinerIndexCandidateToIndexDiviner<TParams extends TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = TemporalIndexingDivinerIndexCandidateToIndexDivinerParams> extends AbstractDiviner<TParams> {
|
|
14
|
-
static configSchema: "network.xyo.diviner.indexing.temporal.stage.indexCandidateToIndexDiviner.config";
|
|
15
|
-
static configSchemas: ("network.xyo.diviner.config" | "network.xyo.diviner.indexing.temporal.stage.indexCandidateToIndexDiviner.config")[];
|
|
16
|
-
static labels: Labels;
|
|
17
|
-
private _indexableSchemas;
|
|
18
|
-
private _payloadTransformers;
|
|
19
|
-
/**
|
|
20
|
-
* List of indexable schemas for this diviner
|
|
21
|
-
*/
|
|
22
|
-
protected get indexableSchemas(): string[];
|
|
23
|
-
/**
|
|
24
|
-
* Dictionary of schemas to payload transformers for creating indexes
|
|
25
|
-
* from the payloads within a Bound Witness
|
|
26
|
-
*/
|
|
27
|
-
protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
|
|
28
|
-
/**
|
|
29
|
-
* The dictionary of schemas to JSON Path transform expressions for creating indexes
|
|
30
|
-
* from the payloads within a Bound Witness
|
|
31
|
-
*/
|
|
32
|
-
protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
|
|
33
|
-
protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
|
|
34
|
-
/**
|
|
35
|
-
* Identifies if a payload is one that is indexed by this diviner
|
|
36
|
-
* @param x The candidate payload
|
|
37
|
-
* @returns True if the payload is one indexed by this diviner, false otherwise
|
|
38
|
-
*/
|
|
39
|
-
protected isIndexablePayload: (x: Payload) => boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Identifies if a schema is one that is indexed by this diviner
|
|
42
|
-
* @param schema The candidate schema
|
|
43
|
-
* @returns True if this schema is one indexed by this diviner, false otherwise
|
|
44
|
-
*/
|
|
45
|
-
protected isIndexableSchema: (schema?: string | null) => boolean;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=_Diviner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;IAgDpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,MAAO,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,YAAa,MAAM,GAAG,IAAI,aAEpD;CACF"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { AbstractDiviner } from '@xyo-network/abstract-diviner';
|
|
2
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
-
import { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary, TemporalIndexingDivinerIndexCandidateToIndexDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
|
|
4
|
-
import { Labels } from '@xyo-network/module-model';
|
|
5
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
-
import { TimeStamp } from '@xyo-network/witness-timestamp';
|
|
7
|
-
export type IndexablePayloads = [BoundWitness, TimeStamp, ...Payload[]];
|
|
8
|
-
/**
|
|
9
|
-
* Diviner which transforms index candidates to indexes using JSON Path to map
|
|
10
|
-
* source properties in the supplied payloads to destination fields in the
|
|
11
|
-
* resultant index
|
|
12
|
-
*/
|
|
13
|
-
export declare class TemporalIndexingDivinerIndexCandidateToIndexDiviner<TParams extends TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = TemporalIndexingDivinerIndexCandidateToIndexDivinerParams> extends AbstractDiviner<TParams> {
|
|
14
|
-
static configSchema: "network.xyo.diviner.indexing.temporal.stage.indexCandidateToIndexDiviner.config";
|
|
15
|
-
static configSchemas: ("network.xyo.diviner.config" | "network.xyo.diviner.indexing.temporal.stage.indexCandidateToIndexDiviner.config")[];
|
|
16
|
-
static labels: Labels;
|
|
17
|
-
private _indexableSchemas;
|
|
18
|
-
private _payloadTransformers;
|
|
19
|
-
/**
|
|
20
|
-
* List of indexable schemas for this diviner
|
|
21
|
-
*/
|
|
22
|
-
protected get indexableSchemas(): string[];
|
|
23
|
-
/**
|
|
24
|
-
* Dictionary of schemas to payload transformers for creating indexes
|
|
25
|
-
* from the payloads within a Bound Witness
|
|
26
|
-
*/
|
|
27
|
-
protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
|
|
28
|
-
/**
|
|
29
|
-
* The dictionary of schemas to JSON Path transform expressions for creating indexes
|
|
30
|
-
* from the payloads within a Bound Witness
|
|
31
|
-
*/
|
|
32
|
-
protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
|
|
33
|
-
protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
|
|
34
|
-
/**
|
|
35
|
-
* Identifies if a payload is one that is indexed by this diviner
|
|
36
|
-
* @param x The candidate payload
|
|
37
|
-
* @returns True if the payload is one indexed by this diviner, false otherwise
|
|
38
|
-
*/
|
|
39
|
-
protected isIndexablePayload: (x: Payload) => boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Identifies if a schema is one that is indexed by this diviner
|
|
42
|
-
* @param schema The candidate schema
|
|
43
|
-
* @returns True if this schema is one indexed by this diviner, false otherwise
|
|
44
|
-
*/
|
|
45
|
-
protected isIndexableSchema: (schema?: string | null) => boolean;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=_Diviner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;IAgDpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,MAAO,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,YAAa,MAAM,GAAG,IAAI,aAEpD;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA;AAClD,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA;AAClD,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA;AAClD,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
/**
|
|
3
|
-
* Materializes the JSON-path expressions into memoized functions by converting a
|
|
4
|
-
* dictionary of schema to JSON Path transform expressions to a dictionary
|
|
5
|
-
* of schema to payload transformers
|
|
6
|
-
* @param schemaTransforms The schema transforms to convert
|
|
7
|
-
* @returns A dictionary of schema to payload transformers
|
|
8
|
-
*/
|
|
9
|
-
export declare const jsonPathToTransformersDictionary: (schemaTransforms: SchemaToJsonPathTransformExpressionsDictionary) => SchemaToPayloadTransformersDictionary;
|
|
10
|
-
//# sourceMappingURL=jsonPathToTransformersDictionary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonPathToTransformersDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/jsonPathToTransformersDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8CAA8C,EAAE,qCAAqC,EAAE,MAAM,8CAA8C,CAAA;AAIpJ;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,qBACzB,8CAA8C,KAC/D,qCAOF,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
/**
|
|
3
|
-
* Materializes the JSON-path expressions into memoized functions by converting a
|
|
4
|
-
* dictionary of schema to JSON Path transform expressions to a dictionary
|
|
5
|
-
* of schema to payload transformers
|
|
6
|
-
* @param schemaTransforms The schema transforms to convert
|
|
7
|
-
* @returns A dictionary of schema to payload transformers
|
|
8
|
-
*/
|
|
9
|
-
export declare const jsonPathToTransformersDictionary: (schemaTransforms: SchemaToJsonPathTransformExpressionsDictionary) => SchemaToPayloadTransformersDictionary;
|
|
10
|
-
//# sourceMappingURL=jsonPathToTransformersDictionary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonPathToTransformersDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/jsonPathToTransformersDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8CAA8C,EAAE,qCAAqC,EAAE,MAAM,8CAA8C,CAAA;AAIpJ;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,qBACzB,8CAA8C,KAC/D,qCAOF,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
/**
|
|
3
|
-
* Materializes the JSON-path expressions into memoized functions by converting a
|
|
4
|
-
* dictionary of schema to JSON Path transform expressions to a dictionary
|
|
5
|
-
* of schema to payload transformers
|
|
6
|
-
* @param schemaTransforms The schema transforms to convert
|
|
7
|
-
* @returns A dictionary of schema to payload transformers
|
|
8
|
-
*/
|
|
9
|
-
export declare const jsonPathToTransformersDictionary: (schemaTransforms: SchemaToJsonPathTransformExpressionsDictionary) => SchemaToPayloadTransformersDictionary;
|
|
10
|
-
//# sourceMappingURL=jsonPathToTransformersDictionary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonPathToTransformersDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/jsonPathToTransformersDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8CAA8C,EAAE,qCAAqC,EAAE,MAAM,8CAA8C,CAAA;AAIpJ;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,qBACzB,8CAA8C,KAC/D,qCAOF,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
import { Payload, PayloadFields } from '@xyo-network/payload-model';
|
|
3
|
-
/**
|
|
4
|
-
* Reduces the payloads to a single payload using the supplied transformers
|
|
5
|
-
* @param payloads The payloads to reduce
|
|
6
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payload
|
|
7
|
-
* @param destinationSchema The schema of the destination payload
|
|
8
|
-
* @returns The reduced payload
|
|
9
|
-
*/
|
|
10
|
-
export declare const reducePayloads: <T extends {
|
|
11
|
-
schema: string;
|
|
12
|
-
} & PayloadFields = {
|
|
13
|
-
schema: string;
|
|
14
|
-
} & PayloadFields>(payloads: Payload[], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T>;
|
|
15
|
-
/**
|
|
16
|
-
* Reduces the arrays of payload arrays to an array of payloads using the supplied transformers
|
|
17
|
-
* @param payloadsArray The arrays of payloads to reduce
|
|
18
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payloads
|
|
19
|
-
* @param destinationSchema The schema of the destination payloads
|
|
20
|
-
* @returns The reduced payloads
|
|
21
|
-
*/
|
|
22
|
-
export declare const reducePayloadsArray: <T extends {
|
|
23
|
-
schema: string;
|
|
24
|
-
} & PayloadFields = {
|
|
25
|
-
schema: string;
|
|
26
|
-
} & PayloadFields>(payloadsArray: Payload[][], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T[]>;
|
|
27
|
-
//# sourceMappingURL=reducePayloads.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reducePayloads.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/reducePayloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,8CAA8C,CAAA;AAGpG,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;6BACf,OAAO,EAAE,uBACE,qCAAqC,qBACvC,MAAM,eAa1B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;kCACf,OAAO,EAAE,EAAE,uBACL,qCAAqC,qBACvC,MAAM,iBAO1B,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
import { Payload, PayloadFields } from '@xyo-network/payload-model';
|
|
3
|
-
/**
|
|
4
|
-
* Reduces the payloads to a single payload using the supplied transformers
|
|
5
|
-
* @param payloads The payloads to reduce
|
|
6
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payload
|
|
7
|
-
* @param destinationSchema The schema of the destination payload
|
|
8
|
-
* @returns The reduced payload
|
|
9
|
-
*/
|
|
10
|
-
export declare const reducePayloads: <T extends {
|
|
11
|
-
schema: string;
|
|
12
|
-
} & PayloadFields = {
|
|
13
|
-
schema: string;
|
|
14
|
-
} & PayloadFields>(payloads: Payload[], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T>;
|
|
15
|
-
/**
|
|
16
|
-
* Reduces the arrays of payload arrays to an array of payloads using the supplied transformers
|
|
17
|
-
* @param payloadsArray The arrays of payloads to reduce
|
|
18
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payloads
|
|
19
|
-
* @param destinationSchema The schema of the destination payloads
|
|
20
|
-
* @returns The reduced payloads
|
|
21
|
-
*/
|
|
22
|
-
export declare const reducePayloadsArray: <T extends {
|
|
23
|
-
schema: string;
|
|
24
|
-
} & PayloadFields = {
|
|
25
|
-
schema: string;
|
|
26
|
-
} & PayloadFields>(payloadsArray: Payload[][], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T[]>;
|
|
27
|
-
//# sourceMappingURL=reducePayloads.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reducePayloads.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/reducePayloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,8CAA8C,CAAA;AAGpG,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;6BACf,OAAO,EAAE,uBACE,qCAAqC,qBACvC,MAAM,eAa1B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;kCACf,OAAO,EAAE,EAAE,uBACL,qCAAqC,qBACvC,MAAM,iBAO1B,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
import { Payload, PayloadFields } from '@xyo-network/payload-model';
|
|
3
|
-
/**
|
|
4
|
-
* Reduces the payloads to a single payload using the supplied transformers
|
|
5
|
-
* @param payloads The payloads to reduce
|
|
6
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payload
|
|
7
|
-
* @param destinationSchema The schema of the destination payload
|
|
8
|
-
* @returns The reduced payload
|
|
9
|
-
*/
|
|
10
|
-
export declare const reducePayloads: <T extends {
|
|
11
|
-
schema: string;
|
|
12
|
-
} & PayloadFields = {
|
|
13
|
-
schema: string;
|
|
14
|
-
} & PayloadFields>(payloads: Payload[], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T>;
|
|
15
|
-
/**
|
|
16
|
-
* Reduces the arrays of payload arrays to an array of payloads using the supplied transformers
|
|
17
|
-
* @param payloadsArray The arrays of payloads to reduce
|
|
18
|
-
* @param payloadTransformers The transformers to use to convert the payloads to the destination payloads
|
|
19
|
-
* @param destinationSchema The schema of the destination payloads
|
|
20
|
-
* @returns The reduced payloads
|
|
21
|
-
*/
|
|
22
|
-
export declare const reducePayloadsArray: <T extends {
|
|
23
|
-
schema: string;
|
|
24
|
-
} & PayloadFields = {
|
|
25
|
-
schema: string;
|
|
26
|
-
} & PayloadFields>(payloadsArray: Payload[][], payloadTransformers: SchemaToPayloadTransformersDictionary, destinationSchema: string) => Promise<T[]>;
|
|
27
|
-
//# sourceMappingURL=reducePayloads.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reducePayloads.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/reducePayloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,8CAA8C,CAAA;AAGpG,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;6BACf,OAAO,EAAE,uBACE,qCAAqC,qBACvC,MAAM,eAa1B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;kCACf,OAAO,EAAE,EAAE,uBACL,qCAAqC,qBACvC,MAAM,iBAO1B,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { JsonPathTransformExpression, PayloadTransformer } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
/**
|
|
3
|
-
* Converts a JSON Path transform expression to a payload transformer
|
|
4
|
-
* @param transformExpression The transform expression to convert
|
|
5
|
-
* @returns The payload transformer for the JSON Path transform expression
|
|
6
|
-
*/
|
|
7
|
-
export declare const toPayloadTransformer: (transformExpression: JsonPathTransformExpression) => PayloadTransformer;
|
|
8
|
-
//# sourceMappingURL=toPayloadTransformer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toPayloadTransformer.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/toPayloadTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AAI9G;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,wBAAyB,2BAA2B,uBAapF,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { JsonPathTransformExpression, PayloadTransformer } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
/**
|
|
3
|
-
* Converts a JSON Path transform expression to a payload transformer
|
|
4
|
-
* @param transformExpression The transform expression to convert
|
|
5
|
-
* @returns The payload transformer for the JSON Path transform expression
|
|
6
|
-
*/
|
|
7
|
-
export declare const toPayloadTransformer: (transformExpression: JsonPathTransformExpression) => PayloadTransformer;
|
|
8
|
-
//# sourceMappingURL=toPayloadTransformer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toPayloadTransformer.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/toPayloadTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AAI9G;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,wBAAyB,2BAA2B,uBAapF,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { JsonPathTransformExpression, PayloadTransformer } from '@xyo-network/diviner-temporal-indexing-model';
|
|
2
|
-
/**
|
|
3
|
-
* Converts a JSON Path transform expression to a payload transformer
|
|
4
|
-
* @param transformExpression The transform expression to convert
|
|
5
|
-
* @returns The payload transformer for the JSON Path transform expression
|
|
6
|
-
*/
|
|
7
|
-
export declare const toPayloadTransformer: (transformExpression: JsonPathTransformExpression) => PayloadTransformer;
|
|
8
|
-
//# sourceMappingURL=toPayloadTransformer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toPayloadTransformer.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/toPayloadTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AAI9G;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,wBAAyB,2BAA2B,uBAapF,CAAA"}
|