@xyo-network/diviner-jsonpath-aggregate-model 5.2.25 → 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.
@@ -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 type for the JSON Path diviner
5
+ * The config schema for the JSON Path diviner
6
6
  */
7
- export type JsonPathAggregateDivinerConfigSchema = `${JsonPathAggregateDivinerSchema}.config`;
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 declare const JsonPathAggregateDivinerConfigSchema: JsonPathAggregateDivinerConfigSchema;
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?: string;
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;AAE/D,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qBAAqB,CAAA;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,GAAG,8BAA8B,SAAS,CAAA;AAC7F;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,oCAAiF,CAAA;AAEpI;;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"}
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"}
@@ -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/Schema.ts","../../src/Config.ts"],"sourcesContent":["/**\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","import type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from './jsonpath/index.ts'\nimport { JsonPathAggregateDivinerSchema } from './Schema.ts'\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathAggregateDivinerConfigSchema = `${JsonPathAggregateDivinerSchema}.config`\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathAggregateDivinerConfigSchema: JsonPathAggregateDivinerConfigSchema = `${JsonPathAggregateDivinerSchema}.config`\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?: string\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"],"mappings":";AAGO,IAAM,iCAAiC;;;ACSvC,IAAM,uCAA6E,GAAG,8BAA8B;","names":[]}
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.2.25",
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": {
@@ -36,14 +36,14 @@
36
36
  "!**/*.test.*"
37
37
  ],
38
38
  "dependencies": {
39
- "@xylabs/sdk-js": "~5.0.63",
40
- "@xyo-network/diviner-model": "~5.2.25",
41
- "@xyo-network/module-model": "~5.2.25",
42
- "@xyo-network/payload-model": "~5.2.25"
39
+ "@xylabs/sdk-js": "~5.0.64",
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
- "@xylabs/ts-scripts-yarn3": "~7.2.32",
46
- "@xylabs/tsconfig": "~7.2.32",
45
+ "@xylabs/ts-scripts-yarn3": "~7.3.2",
46
+ "@xylabs/tsconfig": "~7.3.2",
47
47
  "typescript": "~5.9.3"
48
48
  },
49
49
  "publishConfig": {
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 type for the JSON Path diviner
9
+ * The config schema for the JSON Path diviner
8
10
  */
9
- export type JsonPathAggregateDivinerConfigSchema = `${JsonPathAggregateDivinerSchema}.config`
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 const JsonPathAggregateDivinerConfigSchema: JsonPathAggregateDivinerConfigSchema = `${JsonPathAggregateDivinerSchema}.config`
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?: string
26
+ destinationSchema?: Schema
24
27
  /**
25
28
  * Exclude the source hashes from the destination payload.
26
29
  */