@xyo-network/diviner-jsonpath-aggregate-model 3.0.7 → 3.0.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/neutral/Config.d.ts +13 -0
- package/dist/neutral/Config.d.ts.map +1 -0
- package/dist/neutral/Params.d.ts +5 -0
- package/dist/neutral/Params.d.ts.map +1 -0
- package/dist/neutral/Schema.d.ts +3 -0
- package/dist/neutral/Schema.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +5 -41
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/jsonpath/JsonPathTransformExpression.d.ts +7 -0
- package/dist/neutral/jsonpath/JsonPathTransformExpression.d.ts.map +1 -0
- package/dist/neutral/jsonpath/PayloadTransformer.d.ts +3 -0
- package/dist/neutral/jsonpath/PayloadTransformer.d.ts.map +1 -0
- package/dist/neutral/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.ts +9 -0
- package/dist/neutral/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.ts.map +1 -0
- package/dist/neutral/jsonpath/SchemaToPayloadTransformersDictionary.d.ts +5 -0
- package/dist/neutral/jsonpath/SchemaToPayloadTransformersDictionary.d.ts.map +1 -0
- package/dist/neutral/jsonpath/index.d.ts +5 -0
- package/dist/neutral/jsonpath/index.d.ts.map +1 -0
- package/package.json +7 -7
- package/xy.config.ts +1 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
2
|
+
import type { SchemaToJsonPathTransformExpressionsDictionary } from './jsonpath/index.ts';
|
|
3
|
+
import { JsonPathAggregateDivinerSchema } from './Schema.ts';
|
|
4
|
+
export type JsonPathAggregateDivinerConfigSchema = `${JsonPathAggregateDivinerSchema}.config`;
|
|
5
|
+
export declare const JsonPathAggregateDivinerConfigSchema: JsonPathAggregateDivinerConfigSchema;
|
|
6
|
+
export type JsonPathAggregateDivinerConfig = DivinerConfig<{
|
|
7
|
+
destinationSchema?: string;
|
|
8
|
+
excludeSources?: boolean;
|
|
9
|
+
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
10
|
+
} & {
|
|
11
|
+
schema: JsonPathAggregateDivinerConfigSchema;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qBAAqB,CAAA;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAK5D,MAAM,MAAM,oCAAoC,GAAG,GAAG,8BAA8B,SAAS,CAAA;AAI7F,eAAO,MAAM,oCAAoC,EAAE,oCAAiF,CAAA;AAKpI,MAAM,MAAM,8BAA8B,GAAG,aAAa,CACxD;IAIE,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAI1B,cAAc,CAAC,EAAE,OAAO,CAAA;IAIxB,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,GAAG;IAAE,MAAM,EAAE,oCAAoC,CAAA;CAAE,CACrD,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
+
import type { JsonPathAggregateDivinerConfig } from './Config.ts';
|
|
4
|
+
export type JsonPathAggregateDivinerParams = DivinerParams<AnyConfigSchema<JsonPathAggregateDivinerConfig>>;
|
|
5
|
+
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAKjE,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC,eAAe,CAAC,8BAA8B,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,8BAA8B,0CAAoD,CAAA;AAK/F,MAAM,MAAM,8BAA8B,GAAG,OAAO,8BAA8B,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,41 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
interface JsonPathTransformExpression {
|
|
7
|
-
defaultValue?: JsonValue;
|
|
8
|
-
destinationField: string;
|
|
9
|
-
sourcePathExpression: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type PayloadTransformer = (x: Payload) => Partial<Payload>;
|
|
13
|
-
|
|
14
|
-
type SchemaToJsonPathTransformExpressionsDictionary<T extends {
|
|
15
|
-
[schema: string]: unknown;
|
|
16
|
-
} = {
|
|
17
|
-
[schema: string]: unknown;
|
|
18
|
-
}> = {
|
|
19
|
-
[key in keyof T]: JsonPathTransformExpression[];
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
type SchemaToPayloadTransformersDictionary = {
|
|
23
|
-
[schema: string]: PayloadTransformer[];
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
declare const JsonPathAggregateDivinerSchema: "network.xyo.diviner.jsonpath.aggregate";
|
|
27
|
-
type JsonPathAggregateDivinerSchema = typeof JsonPathAggregateDivinerSchema;
|
|
28
|
-
|
|
29
|
-
type JsonPathAggregateDivinerConfigSchema = `${JsonPathAggregateDivinerSchema}.config`;
|
|
30
|
-
declare const JsonPathAggregateDivinerConfigSchema: JsonPathAggregateDivinerConfigSchema;
|
|
31
|
-
type JsonPathAggregateDivinerConfig = DivinerConfig<{
|
|
32
|
-
destinationSchema?: string;
|
|
33
|
-
excludeSources?: boolean;
|
|
34
|
-
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
35
|
-
} & {
|
|
36
|
-
schema: JsonPathAggregateDivinerConfigSchema;
|
|
37
|
-
}>;
|
|
38
|
-
|
|
39
|
-
type JsonPathAggregateDivinerParams = DivinerParams<AnyConfigSchema<JsonPathAggregateDivinerConfig>>;
|
|
40
|
-
|
|
41
|
-
export { type JsonPathAggregateDivinerConfig, JsonPathAggregateDivinerConfigSchema, type JsonPathAggregateDivinerParams, JsonPathAggregateDivinerSchema, type JsonPathTransformExpression, type PayloadTransformer, type SchemaToJsonPathTransformExpressionsDictionary, type SchemaToPayloadTransformersDictionary };
|
|
1
|
+
export * from './Config.ts';
|
|
2
|
+
export * from './jsonpath/index.ts';
|
|
3
|
+
export * from './Params.ts';
|
|
4
|
+
export * from './Schema.ts';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAM/C,MAAM,WAAW,2BAA2B;IAI1C,YAAY,CAAC,EAAE,SAAS,CAAA;IAIxB,gBAAgB,EAAE,MAAM,CAAA;IAIxB,oBAAoB,EAAE,MAAM,CAAA;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PayloadTransformer.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/PayloadTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { JsonPathTransformExpression } from './JsonPathTransformExpression.ts';
|
|
2
|
+
export type SchemaToJsonPathTransformExpressionsDictionary<T extends {
|
|
3
|
+
[schema: string]: unknown;
|
|
4
|
+
} = {
|
|
5
|
+
[schema: string]: unknown;
|
|
6
|
+
}> = {
|
|
7
|
+
[key in keyof T]: JsonPathTransformExpression[];
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=SchemaToJsonPathTransformExpressionDictionary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaToJsonPathTransformExpressionDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToJsonPathTransformExpressionDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAKnF,MAAM,MAAM,8CAA8C,CAAC,CAAC,SAAS;IAAE,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG;IAAE,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,IAAI;KACnI,GAAG,IAAI,MAAM,CAAC,GAAG,2BAA2B,EAAE;CAChD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaToPayloadTransformersDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToPayloadTransformersDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAKjE,MAAM,MAAM,qCAAqC,GAAG;IAAE,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAAA;CAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA;AAChD,cAAc,yBAAyB,CAAA;AACvC,cAAc,oDAAoD,CAAA;AAClE,cAAc,4CAA4C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-jsonpath-aggregate-model",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/object": "^4.0.
|
|
33
|
-
"@xyo-network/diviner-model": "^3.0.
|
|
34
|
-
"@xyo-network/module-model": "^3.0.
|
|
35
|
-
"@xyo-network/payload-model": "^3.0.
|
|
32
|
+
"@xylabs/object": "^4.0.3",
|
|
33
|
+
"@xyo-network/diviner-model": "^3.0.8",
|
|
34
|
+
"@xyo-network/module-model": "^3.0.8",
|
|
35
|
+
"@xyo-network/payload-model": "^3.0.8"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@xylabs/ts-scripts-yarn3": "^4.0.
|
|
39
|
-
"@xylabs/tsconfig": "^4.0.
|
|
38
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
39
|
+
"@xylabs/tsconfig": "^4.0.7",
|
|
40
40
|
"typescript": "^5.5.4"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|