@xyo-network/diviner-jsonpath-aggregate-model 5.2.27 → 5.3.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/neutral/Config.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
2
|
+
import type { Schema } from '@xyo-network/payload-model';
|
|
2
3
|
import type { SchemaToJsonPathTransformExpressionsDictionary } from './jsonpath/index.ts';
|
|
3
|
-
import { JsonPathAggregateDivinerSchema } from './Schema.ts';
|
|
4
4
|
/**
|
|
5
|
-
* The config schema
|
|
5
|
+
* The config schema for the JSON Path diviner
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export declare const JsonPathAggregateDivinerConfigSchema: string & {
|
|
8
|
+
readonly __schema: true;
|
|
9
|
+
};
|
|
8
10
|
/**
|
|
9
|
-
* The config schema for the JSON Path diviner
|
|
11
|
+
* The config schema type for the JSON Path diviner
|
|
10
12
|
*/
|
|
11
|
-
export
|
|
13
|
+
export type JsonPathAggregateDivinerConfigSchema = typeof JsonPathAggregateDivinerConfigSchema;
|
|
12
14
|
/**
|
|
13
15
|
* The configuration for the JSON Path diviner
|
|
14
16
|
*/
|
|
@@ -16,7 +18,7 @@ export type JsonPathAggregateDivinerConfig = DivinerConfig<{
|
|
|
16
18
|
/**
|
|
17
19
|
* The schema to use for the destination payloads
|
|
18
20
|
*/
|
|
19
|
-
destinationSchema?:
|
|
21
|
+
destinationSchema?: Schema;
|
|
20
22
|
/**
|
|
21
23
|
* Exclude the source hashes from the destination payload.
|
|
22
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAGxD,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qBAAqB,CAAA;AAGzF;;GAEG;AACH,eAAO,MAAM,oCAAoC;;CAA6D,CAAA;AAE9G;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,aAAa,CACxD;IACE;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,GAAG;IAAE,MAAM,EAAE,oCAAoC,CAAA;CAAE,CACrD,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
// src/Config.ts
|
|
2
|
+
import { asSchema } from "@xyo-network/payload-model";
|
|
3
|
+
|
|
1
4
|
// src/Schema.ts
|
|
2
5
|
var JsonPathAggregateDivinerSchema = "network.xyo.diviner.jsonpath.aggregate";
|
|
3
6
|
|
|
4
7
|
// src/Config.ts
|
|
5
|
-
var JsonPathAggregateDivinerConfigSchema = `${JsonPathAggregateDivinerSchema}.config
|
|
8
|
+
var JsonPathAggregateDivinerConfigSchema = asSchema(`${JsonPathAggregateDivinerSchema}.config`, true);
|
|
6
9
|
export {
|
|
7
10
|
JsonPathAggregateDivinerConfigSchema,
|
|
8
11
|
JsonPathAggregateDivinerSchema
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { Schema } from '@xyo-network/payload-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from './jsonpath/index.ts'\nimport { JsonPathAggregateDivinerSchema } from './Schema.ts'\n\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathAggregateDivinerConfigSchema = asSchema(`${JsonPathAggregateDivinerSchema}.config`, true)\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathAggregateDivinerConfigSchema = typeof JsonPathAggregateDivinerConfigSchema\n\n/**\n * The configuration for the JSON Path diviner\n */\nexport type JsonPathAggregateDivinerConfig = DivinerConfig<\n {\n /**\n * The schema to use for the destination payloads\n */\n destinationSchema?: Schema\n /**\n * Exclude the source hashes from the destination payload.\n */\n excludeSources?: boolean\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n } & { schema: JsonPathAggregateDivinerConfigSchema }\n>\n","/**\n * The schema used for the JSONPath Diviner.\n */\nexport const JsonPathAggregateDivinerSchema = 'network.xyo.diviner.jsonpath.aggregate' as const\n\n/**\n * The schema type used for the JSONPath Diviner.\n */\nexport type JsonPathAggregateDivinerSchema = typeof JsonPathAggregateDivinerSchema\n"],"mappings":";AAEA,SAAS,gBAAgB;;;ACClB,IAAM,iCAAiC;;;ADOvC,IAAM,uCAAuC,SAAS,GAAG,8BAA8B,WAAW,IAAI;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-jsonpath-aggregate-model",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@xylabs/sdk-js": "~5.0.64",
|
|
40
|
-
"@xyo-network/diviner-model": "~5.
|
|
41
|
-
"@xyo-network/module-model": "~5.
|
|
42
|
-
"@xyo-network/payload-model": "~5.
|
|
40
|
+
"@xyo-network/diviner-model": "~5.3.0",
|
|
41
|
+
"@xyo-network/module-model": "~5.3.0",
|
|
42
|
+
"@xyo-network/payload-model": "~5.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
package/src/Config.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
2
|
+
import type { Schema } from '@xyo-network/payload-model'
|
|
3
|
+
import { asSchema } from '@xyo-network/payload-model'
|
|
2
4
|
|
|
3
5
|
import type { SchemaToJsonPathTransformExpressionsDictionary } from './jsonpath/index.ts'
|
|
4
6
|
import { JsonPathAggregateDivinerSchema } from './Schema.ts'
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
|
-
* The config schema
|
|
9
|
+
* The config schema for the JSON Path diviner
|
|
8
10
|
*/
|
|
9
|
-
export
|
|
11
|
+
export const JsonPathAggregateDivinerConfigSchema = asSchema(`${JsonPathAggregateDivinerSchema}.config`, true)
|
|
12
|
+
|
|
10
13
|
/**
|
|
11
|
-
* The config schema for the JSON Path diviner
|
|
14
|
+
* The config schema type for the JSON Path diviner
|
|
12
15
|
*/
|
|
13
|
-
export
|
|
16
|
+
export type JsonPathAggregateDivinerConfigSchema = typeof JsonPathAggregateDivinerConfigSchema
|
|
14
17
|
|
|
15
18
|
/**
|
|
16
19
|
* The configuration for the JSON Path diviner
|
|
@@ -20,7 +23,7 @@ export type JsonPathAggregateDivinerConfig = DivinerConfig<
|
|
|
20
23
|
/**
|
|
21
24
|
* The schema to use for the destination payloads
|
|
22
25
|
*/
|
|
23
|
-
destinationSchema?:
|
|
26
|
+
destinationSchema?: Schema
|
|
24
27
|
/**
|
|
25
28
|
* Exclude the source hashes from the destination payload.
|
|
26
29
|
*/
|