@xyo-network/diviner-jsonpath-aggregate-model 4.1.2 → 4.1.4
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/index.d.ts +5 -88
- package/package.json +7 -7
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,88 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Describes the JSON-path transformation to retrieve a field on a source object
|
|
8
|
-
* and the target field to store the value to on a destination object
|
|
9
|
-
*/
|
|
10
|
-
interface JsonPathTransformExpression {
|
|
11
|
-
/**
|
|
12
|
-
* The default value to use if the source field does not exist
|
|
13
|
-
*/
|
|
14
|
-
defaultValue?: JsonValue;
|
|
15
|
-
/**
|
|
16
|
-
* The target field to store the source field into on the destination object
|
|
17
|
-
*/
|
|
18
|
-
destinationField: string;
|
|
19
|
-
/**
|
|
20
|
-
* The JSON path expressions for the source field on the source object
|
|
21
|
-
*/
|
|
22
|
-
sourcePathExpression: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
type PayloadTransformer = (x: Payload) => Partial<Payload>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* A dictionary of schema to JSON Path transform expressions.
|
|
29
|
-
*/
|
|
30
|
-
type SchemaToJsonPathTransformExpressionsDictionary<T extends {
|
|
31
|
-
[schema: string]: unknown;
|
|
32
|
-
} = {
|
|
33
|
-
[schema: string]: unknown;
|
|
34
|
-
}> = {
|
|
35
|
-
[key in keyof T]: JsonPathTransformExpression[];
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* A dictionary of schema to payload transformers
|
|
40
|
-
*/
|
|
41
|
-
type SchemaToPayloadTransformersDictionary = {
|
|
42
|
-
[schema: string]: PayloadTransformer[];
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* The schema used for the JSONPath Diviner.
|
|
47
|
-
*/
|
|
48
|
-
declare const JsonPathAggregateDivinerSchema: "network.xyo.diviner.jsonpath.aggregate";
|
|
49
|
-
/**
|
|
50
|
-
* The schema type used for the JSONPath Diviner.
|
|
51
|
-
*/
|
|
52
|
-
type JsonPathAggregateDivinerSchema = typeof JsonPathAggregateDivinerSchema;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* The config schema type for the JSON Path diviner
|
|
56
|
-
*/
|
|
57
|
-
type JsonPathAggregateDivinerConfigSchema = `${JsonPathAggregateDivinerSchema}.config`;
|
|
58
|
-
/**
|
|
59
|
-
* The config schema for the JSON Path diviner
|
|
60
|
-
*/
|
|
61
|
-
declare const JsonPathAggregateDivinerConfigSchema: JsonPathAggregateDivinerConfigSchema;
|
|
62
|
-
/**
|
|
63
|
-
* The configuration for the JSON Path diviner
|
|
64
|
-
*/
|
|
65
|
-
type JsonPathAggregateDivinerConfig = DivinerConfig<{
|
|
66
|
-
/**
|
|
67
|
-
* The schema to use for the destination payloads
|
|
68
|
-
*/
|
|
69
|
-
destinationSchema?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Exclude the source hashes from the destination payload.
|
|
72
|
-
*/
|
|
73
|
-
excludeSources?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* The JSON Path transform expressions to apply to the payloads
|
|
76
|
-
*/
|
|
77
|
-
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
78
|
-
} & {
|
|
79
|
-
schema: JsonPathAggregateDivinerConfigSchema;
|
|
80
|
-
}>;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* The params type the JSON Path diviner
|
|
84
|
-
**/
|
|
85
|
-
type JsonPathAggregateDivinerParams = DivinerParams<AnyConfigSchema<JsonPathAggregateDivinerConfig>>;
|
|
86
|
-
|
|
87
|
-
export { JsonPathAggregateDivinerConfigSchema, JsonPathAggregateDivinerSchema };
|
|
88
|
-
export type { JsonPathAggregateDivinerConfig, JsonPathAggregateDivinerParams, JsonPathTransformExpression, PayloadTransformer, SchemaToJsonPathTransformExpressionsDictionary, 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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-jsonpath-aggregate-model",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
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.13.
|
|
33
|
-
"@xyo-network/diviner-model": "^4.1.
|
|
34
|
-
"@xyo-network/module-model": "^4.1.
|
|
35
|
-
"@xyo-network/payload-model": "^4.1.
|
|
32
|
+
"@xylabs/object": "^4.13.16",
|
|
33
|
+
"@xyo-network/diviner-model": "^4.1.4",
|
|
34
|
+
"@xyo-network/module-model": "^4.1.4",
|
|
35
|
+
"@xyo-network/payload-model": "^4.1.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
39
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
38
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
39
|
+
"@xylabs/tsconfig": "^7.0.0-rc.27",
|
|
40
40
|
"typescript": "^5.8.3"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|