@xyo-network/diviner-jsonpath-model 5.3.0 → 5.3.2

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,9 +1,11 @@
1
1
  /**
2
- * The schema type used for the JSONPath Diviner.
2
+ * The schema used for the JSONPath Diviner.
3
3
  */
4
- export type JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath';
4
+ export declare const JsonPathDivinerSchema: "network.xyo.diviner.jsonpath" & {
5
+ readonly __schema: true;
6
+ };
5
7
  /**
6
- * The schema used for the JSONPath Diviner.
8
+ * The schema type used for the JSONPath Diviner.
7
9
  */
8
- export declare const JsonPathDivinerSchema: JsonPathDivinerSchema;
10
+ export type JsonPathDivinerSchema = typeof JsonPathDivinerSchema;
9
11
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,8BAA8B,CAAA;AAClE;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,qBAAsD,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;CAAiD,CAAA;AAEnF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA"}
@@ -1,11 +1,12 @@
1
1
  // src/Config.ts
2
- import { asSchema } from "@xyo-network/payload-model";
2
+ import { asSchema as asSchema2 } from "@xyo-network/payload-model";
3
3
 
4
4
  // src/Schema.ts
5
- var JsonPathDivinerSchema = "network.xyo.diviner.jsonpath";
5
+ import { asSchema } from "@xyo-network/payload-model";
6
+ var JsonPathDivinerSchema = asSchema("network.xyo.diviner.jsonpath", true);
6
7
 
7
8
  // src/Config.ts
8
- var JsonPathDivinerConfigSchema = asSchema(`${JsonPathDivinerSchema}.config`, true);
9
+ var JsonPathDivinerConfigSchema = asSchema2(`${JsonPathDivinerSchema}.config`, true);
9
10
  export {
10
11
  JsonPathDivinerConfigSchema,
11
12
  JsonPathDivinerSchema
@@ -1 +1 @@
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 { JsonPathTransformExpression } from './jsonpath/index.ts'\nimport { JsonPathDivinerSchema } from './Schema.ts'\n\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema = asSchema(`${JsonPathDivinerSchema}.config`, true)\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = typeof JsonPathDivinerConfigSchema\n\n/**\n * The configuration for the JSON Path diviner\n */\nexport type JsonPathDivinerConfig = DivinerConfig<\n {\n /**\n * The schema to use for the destination payloads\n */\n destinationSchema?: Schema\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n","/**\n * The schema type used for the JSONPath Diviner.\n */\nexport type JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath'\n/**\n * The schema used for the JSONPath Diviner.\n */\nexport const JsonPathDivinerSchema: JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath'\n"],"mappings":";AAEA,SAAS,gBAAgB;;;ACKlB,IAAM,wBAA+C;;;ADGrD,IAAM,8BAA8B,SAAS,GAAG,qBAAqB,WAAW,IAAI;","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 { JsonPathTransformExpression } from './jsonpath/index.ts'\nimport { JsonPathDivinerSchema } from './Schema.ts'\n\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema = asSchema(`${JsonPathDivinerSchema}.config`, true)\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = typeof JsonPathDivinerConfigSchema\n\n/**\n * The configuration for the JSON Path diviner\n */\nexport type JsonPathDivinerConfig = DivinerConfig<\n {\n /**\n * The schema to use for the destination payloads\n */\n destinationSchema?: Schema\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n","import { asSchema } from '@xyo-network/payload-model'\n/**\n * The schema used for the JSONPath Diviner.\n */\nexport const JsonPathDivinerSchema = asSchema('network.xyo.diviner.jsonpath', true)\n\n/**\n * The schema type used for the JSONPath Diviner.\n */\nexport type JsonPathDivinerSchema = typeof JsonPathDivinerSchema\n"],"mappings":";AAEA,SAAS,YAAAA,iBAAgB;;;ACFzB,SAAS,gBAAgB;AAIlB,IAAM,wBAAwB,SAAS,gCAAgC,IAAI;;;ADM3E,IAAM,8BAA8BC,UAAS,GAAG,qBAAqB,WAAW,IAAI;","names":["asSchema","asSchema"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-jsonpath-model",
3
- "version": "5.3.0",
3
+ "version": "5.3.2",
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.3.0",
41
- "@xyo-network/module-model": "~5.3.0",
42
- "@xyo-network/payload-model": "~5.3.0"
40
+ "@xyo-network/diviner-model": "~5.3.2",
41
+ "@xyo-network/module-model": "~5.3.2",
42
+ "@xyo-network/payload-model": "~5.3.2"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@xylabs/ts-scripts-yarn3": "~7.3.2",
package/src/Schema.ts CHANGED
@@ -1,8 +1,10 @@
1
+ import { asSchema } from '@xyo-network/payload-model'
1
2
  /**
2
- * The schema type used for the JSONPath Diviner.
3
+ * The schema used for the JSONPath Diviner.
3
4
  */
4
- export type JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath'
5
+ export const JsonPathDivinerSchema = asSchema('network.xyo.diviner.jsonpath', true)
6
+
5
7
  /**
6
- * The schema used for the JSONPath Diviner.
8
+ * The schema type used for the JSONPath Diviner.
7
9
  */
8
- export const JsonPathDivinerSchema: JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath'
10
+ export type JsonPathDivinerSchema = typeof JsonPathDivinerSchema