@xyo-network/diviner-jsonpath-model 2.106.0 → 2.107.1
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/browser/Config.d.cts +0 -15
- package/dist/browser/Config.d.cts.map +1 -1
- package/dist/browser/Config.d.mts +0 -15
- package/dist/browser/Config.d.mts.map +1 -1
- package/dist/browser/Config.d.ts +0 -15
- package/dist/browser/Config.d.ts.map +1 -1
- package/dist/browser/Params.d.cts +0 -3
- package/dist/browser/Params.d.cts.map +1 -1
- package/dist/browser/Params.d.mts +0 -3
- package/dist/browser/Params.d.mts.map +1 -1
- package/dist/browser/Params.d.ts +0 -3
- package/dist/browser/Params.d.ts.map +1 -1
- package/dist/browser/Schema.d.cts +0 -6
- package/dist/browser/Schema.d.cts.map +1 -1
- package/dist/browser/Schema.d.mts +0 -6
- package/dist/browser/Schema.d.mts.map +1 -1
- package/dist/browser/Schema.d.ts +0 -6
- package/dist/browser/Schema.d.ts.map +1 -1
- package/dist/browser/index.cjs +1 -32
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +1 -9
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/jsonpath/JsonPathTransformExpression.d.cts +0 -13
- package/dist/browser/jsonpath/JsonPathTransformExpression.d.cts.map +1 -1
- package/dist/browser/jsonpath/JsonPathTransformExpression.d.mts +0 -13
- package/dist/browser/jsonpath/JsonPathTransformExpression.d.mts.map +1 -1
- package/dist/browser/jsonpath/JsonPathTransformExpression.d.ts +0 -13
- package/dist/browser/jsonpath/JsonPathTransformExpression.d.ts.map +1 -1
- package/dist/browser/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.cts +0 -3
- package/dist/browser/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.cts.map +1 -1
- package/dist/browser/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.mts +0 -3
- package/dist/browser/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.mts.map +1 -1
- package/dist/browser/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.ts +0 -3
- package/dist/browser/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.ts.map +1 -1
- package/dist/browser/jsonpath/SchemaToPayloadTransformersDictionary.d.cts +0 -3
- package/dist/browser/jsonpath/SchemaToPayloadTransformersDictionary.d.cts.map +1 -1
- package/dist/browser/jsonpath/SchemaToPayloadTransformersDictionary.d.mts +0 -3
- package/dist/browser/jsonpath/SchemaToPayloadTransformersDictionary.d.mts.map +1 -1
- package/dist/browser/jsonpath/SchemaToPayloadTransformersDictionary.d.ts +0 -3
- package/dist/browser/jsonpath/SchemaToPayloadTransformersDictionary.d.ts.map +1 -1
- package/dist/neutral/Config.d.cts +0 -15
- package/dist/neutral/Config.d.cts.map +1 -1
- package/dist/neutral/Config.d.mts +0 -15
- package/dist/neutral/Config.d.mts.map +1 -1
- package/dist/neutral/Config.d.ts +0 -15
- package/dist/neutral/Config.d.ts.map +1 -1
- package/dist/neutral/Params.d.cts +0 -3
- package/dist/neutral/Params.d.cts.map +1 -1
- package/dist/neutral/Params.d.mts +0 -3
- package/dist/neutral/Params.d.mts.map +1 -1
- package/dist/neutral/Params.d.ts +0 -3
- package/dist/neutral/Params.d.ts.map +1 -1
- package/dist/neutral/Schema.d.cts +0 -6
- package/dist/neutral/Schema.d.cts.map +1 -1
- package/dist/neutral/Schema.d.mts +0 -6
- package/dist/neutral/Schema.d.mts.map +1 -1
- package/dist/neutral/Schema.d.ts +0 -6
- package/dist/neutral/Schema.d.ts.map +1 -1
- package/dist/neutral/index.cjs +1 -32
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +1 -9
- package/dist/neutral/index.js.map +1 -1
- package/dist/neutral/jsonpath/JsonPathTransformExpression.d.cts +0 -13
- package/dist/neutral/jsonpath/JsonPathTransformExpression.d.cts.map +1 -1
- package/dist/neutral/jsonpath/JsonPathTransformExpression.d.mts +0 -13
- package/dist/neutral/jsonpath/JsonPathTransformExpression.d.mts.map +1 -1
- package/dist/neutral/jsonpath/JsonPathTransformExpression.d.ts +0 -13
- package/dist/neutral/jsonpath/JsonPathTransformExpression.d.ts.map +1 -1
- package/dist/neutral/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.cts +0 -3
- package/dist/neutral/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.cts.map +1 -1
- package/dist/neutral/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.mts +0 -3
- package/dist/neutral/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.mts.map +1 -1
- package/dist/neutral/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.ts +0 -3
- package/dist/neutral/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.ts.map +1 -1
- package/dist/neutral/jsonpath/SchemaToPayloadTransformersDictionary.d.cts +0 -3
- package/dist/neutral/jsonpath/SchemaToPayloadTransformersDictionary.d.cts.map +1 -1
- package/dist/neutral/jsonpath/SchemaToPayloadTransformersDictionary.d.mts +0 -3
- package/dist/neutral/jsonpath/SchemaToPayloadTransformersDictionary.d.mts.map +1 -1
- package/dist/neutral/jsonpath/SchemaToPayloadTransformersDictionary.d.ts +0 -3
- package/dist/neutral/jsonpath/SchemaToPayloadTransformersDictionary.d.ts.map +1 -1
- package/dist/node/Config.d.cts +0 -15
- package/dist/node/Config.d.cts.map +1 -1
- package/dist/node/Config.d.mts +0 -15
- package/dist/node/Config.d.mts.map +1 -1
- package/dist/node/Config.d.ts +0 -15
- package/dist/node/Config.d.ts.map +1 -1
- package/dist/node/Params.d.cts +0 -3
- package/dist/node/Params.d.cts.map +1 -1
- package/dist/node/Params.d.mts +0 -3
- package/dist/node/Params.d.mts.map +1 -1
- package/dist/node/Params.d.ts +0 -3
- package/dist/node/Params.d.ts.map +1 -1
- package/dist/node/Schema.d.cts +0 -6
- package/dist/node/Schema.d.cts.map +1 -1
- package/dist/node/Schema.d.mts +0 -6
- package/dist/node/Schema.d.mts.map +1 -1
- package/dist/node/Schema.d.ts +0 -6
- package/dist/node/Schema.d.ts.map +1 -1
- package/dist/node/index.cjs +1 -37
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -9
- package/dist/node/index.js.map +1 -1
- package/dist/node/jsonpath/JsonPathTransformExpression.d.cts +0 -13
- package/dist/node/jsonpath/JsonPathTransformExpression.d.cts.map +1 -1
- package/dist/node/jsonpath/JsonPathTransformExpression.d.mts +0 -13
- package/dist/node/jsonpath/JsonPathTransformExpression.d.mts.map +1 -1
- package/dist/node/jsonpath/JsonPathTransformExpression.d.ts +0 -13
- package/dist/node/jsonpath/JsonPathTransformExpression.d.ts.map +1 -1
- package/dist/node/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.cts +0 -3
- package/dist/node/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.cts.map +1 -1
- package/dist/node/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.mts +0 -3
- package/dist/node/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.mts.map +1 -1
- package/dist/node/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.ts +0 -3
- package/dist/node/jsonpath/SchemaToJsonPathTransformExpressionDictionary.d.ts.map +1 -1
- package/dist/node/jsonpath/SchemaToPayloadTransformersDictionary.d.cts +0 -3
- package/dist/node/jsonpath/SchemaToPayloadTransformersDictionary.d.cts.map +1 -1
- package/dist/node/jsonpath/SchemaToPayloadTransformersDictionary.d.mts +0 -3
- package/dist/node/jsonpath/SchemaToPayloadTransformersDictionary.d.mts.map +1 -1
- package/dist/node/jsonpath/SchemaToPayloadTransformersDictionary.d.ts +0 -3
- package/dist/node/jsonpath/SchemaToPayloadTransformersDictionary.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,qBAAqB,GAAG,8BAA8B,CAAA;AAIlE,eAAO,MAAM,qBAAqB,EAAE,qBAAsD,CAAA"}
|
package/dist/neutral/Schema.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The schema type used for the JSONPath Diviner.
|
|
3
|
-
*/
|
|
4
1
|
export type JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath';
|
|
5
|
-
/**
|
|
6
|
-
* The schema used for the JSONPath Diviner.
|
|
7
|
-
*/
|
|
8
2
|
export declare const JsonPathDivinerSchema: JsonPathDivinerSchema;
|
|
9
3
|
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,qBAAqB,GAAG,8BAA8B,CAAA;AAIlE,eAAO,MAAM,qBAAqB,EAAE,qBAAsD,CAAA"}
|
package/dist/neutral/index.cjs
CHANGED
|
@@ -1,33 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
JsonPathDivinerConfigSchema: () => JsonPathDivinerConfigSchema,
|
|
24
|
-
JsonPathDivinerSchema: () => JsonPathDivinerSchema
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(src_exports);
|
|
27
|
-
|
|
28
|
-
// src/Schema.ts
|
|
29
|
-
var JsonPathDivinerSchema = "network.xyo.diviner.jsonpath";
|
|
30
|
-
|
|
31
|
-
// src/Config.ts
|
|
32
|
-
var JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`;
|
|
1
|
+
"use strict";var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var h=(r,o)=>{for(var t in o)n(r,t,{get:o[t],enumerable:!0})},x=(r,o,t,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of a(o))!f.call(r,e)&&e!==t&&n(r,e,{get:()=>o[e],enumerable:!(m=p(o,e))||m.enumerable});return r};var c=r=>x(n({},"__esModule",{value:!0}),r);var v={};h(v,{JsonPathDivinerConfigSchema:()=>s,JsonPathDivinerSchema:()=>i});module.exports=c(v);var i="network.xyo.diviner.jsonpath";var s=`${i}.config`;
|
|
33
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts"],"sourcesContent":["export * from './Config'\nexport * from './jsonpath'\nexport * from './Params'\nexport * from './Schema'\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","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { JsonPathTransformExpression } from './jsonpath'\nimport { JsonPathDivinerSchema } from './Schema'\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\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?: string\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts"],"sourcesContent":["export * from './Config'\nexport * from './jsonpath'\nexport * from './Params'\nexport * from './Schema'\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","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { JsonPathTransformExpression } from './jsonpath'\nimport { JsonPathDivinerSchema } from './Schema'\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\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?: string\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,iCAAAE,EAAA,0BAAAC,IAAA,eAAAC,EAAAJ,GCOO,IAAMK,EAA+C,+BCKrD,IAAMC,EAA2D,GAAGC,CAAAA","names":["src_exports","__export","JsonPathDivinerConfigSchema","JsonPathDivinerSchema","__toCommonJS","JsonPathDivinerSchema","JsonPathDivinerConfigSchema","JsonPathDivinerSchema"]}
|
package/dist/neutral/index.js
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var JsonPathDivinerSchema = "network.xyo.diviner.jsonpath";
|
|
3
|
-
|
|
4
|
-
// src/Config.ts
|
|
5
|
-
var JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`;
|
|
6
|
-
export {
|
|
7
|
-
JsonPathDivinerConfigSchema,
|
|
8
|
-
JsonPathDivinerSchema
|
|
9
|
-
};
|
|
1
|
+
var o="network.xyo.diviner.jsonpath";var t=`${o}.config`;export{t as JsonPathDivinerConfigSchema,o as JsonPathDivinerSchema};
|
|
10
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts"],"sourcesContent":["/**\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","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { JsonPathTransformExpression } from './jsonpath'\nimport { JsonPathDivinerSchema } from './Schema'\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\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?: string\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts"],"sourcesContent":["/**\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","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { JsonPathTransformExpression } from './jsonpath'\nimport { JsonPathDivinerSchema } from './Schema'\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\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?: string\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n"],"mappings":"AAOO,IAAMA,EAA+C,+BCKrD,IAAMC,EAA2D,GAAGC,CAAAA","names":["JsonPathDivinerSchema","JsonPathDivinerConfigSchema","JsonPathDivinerSchema"]}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { JsonValue } from '@xylabs/object';
|
|
2
|
-
/**
|
|
3
|
-
* Describes the JSON-path transformation to retrieve a field on a source object
|
|
4
|
-
* and the target field to store the value to on a destination object
|
|
5
|
-
*/
|
|
6
2
|
export interface JsonPathTransformExpression {
|
|
7
|
-
/**
|
|
8
|
-
* The default value to use if the source field does not exist
|
|
9
|
-
*/
|
|
10
3
|
defaultValue?: JsonValue;
|
|
11
|
-
/**
|
|
12
|
-
* The target field to store the source field into on the destination object
|
|
13
|
-
*/
|
|
14
4
|
destinationField: string;
|
|
15
|
-
/**
|
|
16
|
-
* The JSON path expressions for the source field on the source object
|
|
17
|
-
*/
|
|
18
5
|
sourcePathExpression: string;
|
|
19
6
|
}
|
|
20
7
|
//# sourceMappingURL=JsonPathTransformExpression.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAM1C,MAAM,WAAW,2BAA2B;IAI1C,YAAY,CAAC,EAAE,SAAS,CAAA;IAIxB,gBAAgB,EAAE,MAAM,CAAA;IAIxB,oBAAoB,EAAE,MAAM,CAAA;CAC7B"}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { JsonValue } from '@xylabs/object';
|
|
2
|
-
/**
|
|
3
|
-
* Describes the JSON-path transformation to retrieve a field on a source object
|
|
4
|
-
* and the target field to store the value to on a destination object
|
|
5
|
-
*/
|
|
6
2
|
export interface JsonPathTransformExpression {
|
|
7
|
-
/**
|
|
8
|
-
* The default value to use if the source field does not exist
|
|
9
|
-
*/
|
|
10
3
|
defaultValue?: JsonValue;
|
|
11
|
-
/**
|
|
12
|
-
* The target field to store the source field into on the destination object
|
|
13
|
-
*/
|
|
14
4
|
destinationField: string;
|
|
15
|
-
/**
|
|
16
|
-
* The JSON path expressions for the source field on the source object
|
|
17
|
-
*/
|
|
18
5
|
sourcePathExpression: string;
|
|
19
6
|
}
|
|
20
7
|
//# sourceMappingURL=JsonPathTransformExpression.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAM1C,MAAM,WAAW,2BAA2B;IAI1C,YAAY,CAAC,EAAE,SAAS,CAAA;IAIxB,gBAAgB,EAAE,MAAM,CAAA;IAIxB,oBAAoB,EAAE,MAAM,CAAA;CAC7B"}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { JsonValue } from '@xylabs/object';
|
|
2
|
-
/**
|
|
3
|
-
* Describes the JSON-path transformation to retrieve a field on a source object
|
|
4
|
-
* and the target field to store the value to on a destination object
|
|
5
|
-
*/
|
|
6
2
|
export interface JsonPathTransformExpression {
|
|
7
|
-
/**
|
|
8
|
-
* The default value to use if the source field does not exist
|
|
9
|
-
*/
|
|
10
3
|
defaultValue?: JsonValue;
|
|
11
|
-
/**
|
|
12
|
-
* The target field to store the source field into on the destination object
|
|
13
|
-
*/
|
|
14
4
|
destinationField: string;
|
|
15
|
-
/**
|
|
16
|
-
* The JSON path expressions for the source field on the source object
|
|
17
|
-
*/
|
|
18
5
|
sourcePathExpression: string;
|
|
19
6
|
}
|
|
20
7
|
//# sourceMappingURL=JsonPathTransformExpression.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAM1C,MAAM,WAAW,2BAA2B;IAI1C,YAAY,CAAC,EAAE,SAAS,CAAA;IAIxB,gBAAgB,EAAE,MAAM,CAAA;IAIxB,oBAAoB,EAAE,MAAM,CAAA;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaToJsonPathTransformExpressionDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToJsonPathTransformExpressionDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"SchemaToJsonPathTransformExpressionDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToJsonPathTransformExpressionDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAK3E,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaToJsonPathTransformExpressionDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToJsonPathTransformExpressionDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"SchemaToJsonPathTransformExpressionDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToJsonPathTransformExpressionDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAK3E,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaToJsonPathTransformExpressionDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToJsonPathTransformExpressionDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"SchemaToJsonPathTransformExpressionDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToJsonPathTransformExpressionDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAK3E,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaToPayloadTransformersDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToPayloadTransformersDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"SchemaToPayloadTransformersDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToPayloadTransformersDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAKzD,MAAM,MAAM,qCAAqC,GAAG;IAAE,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAAA;CAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaToPayloadTransformersDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToPayloadTransformersDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"SchemaToPayloadTransformersDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToPayloadTransformersDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAKzD,MAAM,MAAM,qCAAqC,GAAG;IAAE,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAAA;CAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaToPayloadTransformersDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToPayloadTransformersDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"SchemaToPayloadTransformersDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToPayloadTransformersDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAKzD,MAAM,MAAM,qCAAqC,GAAG;IAAE,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAAA;CAAE,CAAA"}
|
package/dist/node/Config.d.cts
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
import { DivinerConfig } from '@xyo-network/diviner-model';
|
|
2
2
|
import { JsonPathTransformExpression } from './jsonpath';
|
|
3
3
|
import { JsonPathDivinerSchema } from './Schema';
|
|
4
|
-
/**
|
|
5
|
-
* The config schema type for the JSON Path diviner
|
|
6
|
-
*/
|
|
7
4
|
export type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`;
|
|
8
|
-
/**
|
|
9
|
-
* The config schema for the JSON Path diviner
|
|
10
|
-
*/
|
|
11
5
|
export declare const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema;
|
|
12
|
-
/**
|
|
13
|
-
* The configuration for the JSON Path diviner
|
|
14
|
-
*/
|
|
15
6
|
export type JsonPathDivinerConfig = DivinerConfig<{
|
|
16
|
-
/**
|
|
17
|
-
* The schema to use for the destination payloads
|
|
18
|
-
*/
|
|
19
7
|
destinationSchema?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The JSON Path transform expressions to apply to the payloads
|
|
22
|
-
*/
|
|
23
8
|
transforms?: JsonPathTransformExpression[];
|
|
24
9
|
} & {
|
|
25
10
|
schema: JsonPathDivinerConfigSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAKhD,MAAM,MAAM,2BAA2B,GAAG,GAAG,qBAAqB,SAAS,CAAA;AAI3E,eAAO,MAAM,2BAA2B,EAAE,2BAA+D,CAAA;AAKzG,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAC/C;IAIE,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAI1B,UAAU,CAAC,EAAE,2BAA2B,EAAE,CAAA;CAC3C,GAAG;IAAE,MAAM,EAAE,2BAA2B,CAAA;CAAE,CAC5C,CAAA"}
|
package/dist/node/Config.d.mts
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
import { DivinerConfig } from '@xyo-network/diviner-model';
|
|
2
2
|
import { JsonPathTransformExpression } from './jsonpath';
|
|
3
3
|
import { JsonPathDivinerSchema } from './Schema';
|
|
4
|
-
/**
|
|
5
|
-
* The config schema type for the JSON Path diviner
|
|
6
|
-
*/
|
|
7
4
|
export type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`;
|
|
8
|
-
/**
|
|
9
|
-
* The config schema for the JSON Path diviner
|
|
10
|
-
*/
|
|
11
5
|
export declare const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema;
|
|
12
|
-
/**
|
|
13
|
-
* The configuration for the JSON Path diviner
|
|
14
|
-
*/
|
|
15
6
|
export type JsonPathDivinerConfig = DivinerConfig<{
|
|
16
|
-
/**
|
|
17
|
-
* The schema to use for the destination payloads
|
|
18
|
-
*/
|
|
19
7
|
destinationSchema?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The JSON Path transform expressions to apply to the payloads
|
|
22
|
-
*/
|
|
23
8
|
transforms?: JsonPathTransformExpression[];
|
|
24
9
|
} & {
|
|
25
10
|
schema: JsonPathDivinerConfigSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAKhD,MAAM,MAAM,2BAA2B,GAAG,GAAG,qBAAqB,SAAS,CAAA;AAI3E,eAAO,MAAM,2BAA2B,EAAE,2BAA+D,CAAA;AAKzG,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAC/C;IAIE,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAI1B,UAAU,CAAC,EAAE,2BAA2B,EAAE,CAAA;CAC3C,GAAG;IAAE,MAAM,EAAE,2BAA2B,CAAA;CAAE,CAC5C,CAAA"}
|
package/dist/node/Config.d.ts
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
import { DivinerConfig } from '@xyo-network/diviner-model';
|
|
2
2
|
import { JsonPathTransformExpression } from './jsonpath';
|
|
3
3
|
import { JsonPathDivinerSchema } from './Schema';
|
|
4
|
-
/**
|
|
5
|
-
* The config schema type for the JSON Path diviner
|
|
6
|
-
*/
|
|
7
4
|
export type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`;
|
|
8
|
-
/**
|
|
9
|
-
* The config schema for the JSON Path diviner
|
|
10
|
-
*/
|
|
11
5
|
export declare const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema;
|
|
12
|
-
/**
|
|
13
|
-
* The configuration for the JSON Path diviner
|
|
14
|
-
*/
|
|
15
6
|
export type JsonPathDivinerConfig = DivinerConfig<{
|
|
16
|
-
/**
|
|
17
|
-
* The schema to use for the destination payloads
|
|
18
|
-
*/
|
|
19
7
|
destinationSchema?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The JSON Path transform expressions to apply to the payloads
|
|
22
|
-
*/
|
|
23
8
|
transforms?: JsonPathTransformExpression[];
|
|
24
9
|
} & {
|
|
25
10
|
schema: JsonPathDivinerConfigSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAKhD,MAAM,MAAM,2BAA2B,GAAG,GAAG,qBAAqB,SAAS,CAAA;AAI3E,eAAO,MAAM,2BAA2B,EAAE,2BAA+D,CAAA;AAKzG,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAC/C;IAIE,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAI1B,UAAU,CAAC,EAAE,2BAA2B,EAAE,CAAA;CAC3C,GAAG;IAAE,MAAM,EAAE,2BAA2B,CAAA;CAAE,CAC5C,CAAA"}
|
package/dist/node/Params.d.cts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { JsonPathDivinerConfig } from './Config';
|
|
4
|
-
/**
|
|
5
|
-
* The params type the JSON Path diviner
|
|
6
|
-
**/
|
|
7
4
|
export type JsonPathDivinerParams = DivinerParams<AnyConfigSchema<JsonPathDivinerConfig>>;
|
|
8
5
|
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAKhD,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC,CAAA"}
|
package/dist/node/Params.d.mts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { JsonPathDivinerConfig } from './Config';
|
|
4
|
-
/**
|
|
5
|
-
* The params type the JSON Path diviner
|
|
6
|
-
**/
|
|
7
4
|
export type JsonPathDivinerParams = DivinerParams<AnyConfigSchema<JsonPathDivinerConfig>>;
|
|
8
5
|
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAKhD,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC,CAAA"}
|
package/dist/node/Params.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
3
|
import { JsonPathDivinerConfig } from './Config';
|
|
4
|
-
/**
|
|
5
|
-
* The params type the JSON Path diviner
|
|
6
|
-
**/
|
|
7
4
|
export type JsonPathDivinerParams = DivinerParams<AnyConfigSchema<JsonPathDivinerConfig>>;
|
|
8
5
|
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAKhD,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC,CAAA"}
|
package/dist/node/Schema.d.cts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The schema type used for the JSONPath Diviner.
|
|
3
|
-
*/
|
|
4
1
|
export type JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath';
|
|
5
|
-
/**
|
|
6
|
-
* The schema used for the JSONPath Diviner.
|
|
7
|
-
*/
|
|
8
2
|
export declare const JsonPathDivinerSchema: JsonPathDivinerSchema;
|
|
9
3
|
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,qBAAqB,GAAG,8BAA8B,CAAA;AAIlE,eAAO,MAAM,qBAAqB,EAAE,qBAAsD,CAAA"}
|
package/dist/node/Schema.d.mts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The schema type used for the JSONPath Diviner.
|
|
3
|
-
*/
|
|
4
1
|
export type JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath';
|
|
5
|
-
/**
|
|
6
|
-
* The schema used for the JSONPath Diviner.
|
|
7
|
-
*/
|
|
8
2
|
export declare const JsonPathDivinerSchema: JsonPathDivinerSchema;
|
|
9
3
|
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,qBAAqB,GAAG,8BAA8B,CAAA;AAIlE,eAAO,MAAM,qBAAqB,EAAE,qBAAsD,CAAA"}
|
package/dist/node/Schema.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The schema type used for the JSONPath Diviner.
|
|
3
|
-
*/
|
|
4
1
|
export type JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath';
|
|
5
|
-
/**
|
|
6
|
-
* The schema used for the JSONPath Diviner.
|
|
7
|
-
*/
|
|
8
2
|
export declare const JsonPathDivinerSchema: JsonPathDivinerSchema;
|
|
9
3
|
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,qBAAqB,GAAG,8BAA8B,CAAA;AAIlE,eAAO,MAAM,qBAAqB,EAAE,qBAAsD,CAAA"}
|
package/dist/node/index.cjs
CHANGED
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
JsonPathDivinerConfigSchema: () => JsonPathDivinerConfigSchema,
|
|
24
|
-
JsonPathDivinerSchema: () => JsonPathDivinerSchema
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(src_exports);
|
|
27
|
-
|
|
28
|
-
// src/Schema.ts
|
|
29
|
-
var JsonPathDivinerSchema = "network.xyo.diviner.jsonpath";
|
|
30
|
-
|
|
31
|
-
// src/Config.ts
|
|
32
|
-
var JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`;
|
|
33
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
-
0 && (module.exports = {
|
|
35
|
-
JsonPathDivinerConfigSchema,
|
|
36
|
-
JsonPathDivinerSchema
|
|
37
|
-
});
|
|
1
|
+
"use strict";var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var h=(r,o)=>{for(var t in o)n(r,t,{get:o[t],enumerable:!0})},x=(r,o,t,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of a(o))!f.call(r,e)&&e!==t&&n(r,e,{get:()=>o[e],enumerable:!(m=p(o,e))||m.enumerable});return r};var c=r=>x(n({},"__esModule",{value:!0}),r);var v={};h(v,{JsonPathDivinerConfigSchema:()=>s,JsonPathDivinerSchema:()=>i});module.exports=c(v);var i="network.xyo.diviner.jsonpath";var s=`${i}.config`;0&&(module.exports={JsonPathDivinerConfigSchema,JsonPathDivinerSchema});
|
|
38
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts"],"sourcesContent":["export * from './Config'\nexport * from './jsonpath'\nexport * from './Params'\nexport * from './Schema'\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","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { JsonPathTransformExpression } from './jsonpath'\nimport { JsonPathDivinerSchema } from './Schema'\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\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?: string\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts"],"sourcesContent":["export * from './Config'\nexport * from './jsonpath'\nexport * from './Params'\nexport * from './Schema'\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","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { JsonPathTransformExpression } from './jsonpath'\nimport { JsonPathDivinerSchema } from './Schema'\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\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?: string\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,iCAAAE,EAAA,0BAAAC,IAAA,eAAAC,EAAAJ,GCOO,IAAMK,EAA+C,+BCKrD,IAAMC,EAA2D,GAAGC,CAAAA","names":["src_exports","__export","JsonPathDivinerConfigSchema","JsonPathDivinerSchema","__toCommonJS","JsonPathDivinerSchema","JsonPathDivinerConfigSchema","JsonPathDivinerSchema"]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var JsonPathDivinerSchema = "network.xyo.diviner.jsonpath";
|
|
3
|
-
|
|
4
|
-
// src/Config.ts
|
|
5
|
-
var JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`;
|
|
6
|
-
export {
|
|
7
|
-
JsonPathDivinerConfigSchema,
|
|
8
|
-
JsonPathDivinerSchema
|
|
9
|
-
};
|
|
1
|
+
var o="network.xyo.diviner.jsonpath";var t=`${o}.config`;export{t as JsonPathDivinerConfigSchema,o as JsonPathDivinerSchema};
|
|
10
2
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts"],"sourcesContent":["/**\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","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { JsonPathTransformExpression } from './jsonpath'\nimport { JsonPathDivinerSchema } from './Schema'\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\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?: string\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts"],"sourcesContent":["/**\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","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { JsonPathTransformExpression } from './jsonpath'\nimport { JsonPathDivinerSchema } from './Schema'\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\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?: string\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n"],"mappings":"AAOO,IAAMA,EAA+C,+BCKrD,IAAMC,EAA2D,GAAGC,CAAAA","names":["JsonPathDivinerSchema","JsonPathDivinerConfigSchema","JsonPathDivinerSchema"]}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { JsonValue } from '@xylabs/object';
|
|
2
|
-
/**
|
|
3
|
-
* Describes the JSON-path transformation to retrieve a field on a source object
|
|
4
|
-
* and the target field to store the value to on a destination object
|
|
5
|
-
*/
|
|
6
2
|
export interface JsonPathTransformExpression {
|
|
7
|
-
/**
|
|
8
|
-
* The default value to use if the source field does not exist
|
|
9
|
-
*/
|
|
10
3
|
defaultValue?: JsonValue;
|
|
11
|
-
/**
|
|
12
|
-
* The target field to store the source field into on the destination object
|
|
13
|
-
*/
|
|
14
4
|
destinationField: string;
|
|
15
|
-
/**
|
|
16
|
-
* The JSON path expressions for the source field on the source object
|
|
17
|
-
*/
|
|
18
5
|
sourcePathExpression: string;
|
|
19
6
|
}
|
|
20
7
|
//# sourceMappingURL=JsonPathTransformExpression.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAM1C,MAAM,WAAW,2BAA2B;IAI1C,YAAY,CAAC,EAAE,SAAS,CAAA;IAIxB,gBAAgB,EAAE,MAAM,CAAA;IAIxB,oBAAoB,EAAE,MAAM,CAAA;CAC7B"}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { JsonValue } from '@xylabs/object';
|
|
2
|
-
/**
|
|
3
|
-
* Describes the JSON-path transformation to retrieve a field on a source object
|
|
4
|
-
* and the target field to store the value to on a destination object
|
|
5
|
-
*/
|
|
6
2
|
export interface JsonPathTransformExpression {
|
|
7
|
-
/**
|
|
8
|
-
* The default value to use if the source field does not exist
|
|
9
|
-
*/
|
|
10
3
|
defaultValue?: JsonValue;
|
|
11
|
-
/**
|
|
12
|
-
* The target field to store the source field into on the destination object
|
|
13
|
-
*/
|
|
14
4
|
destinationField: string;
|
|
15
|
-
/**
|
|
16
|
-
* The JSON path expressions for the source field on the source object
|
|
17
|
-
*/
|
|
18
5
|
sourcePathExpression: string;
|
|
19
6
|
}
|
|
20
7
|
//# sourceMappingURL=JsonPathTransformExpression.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAM1C,MAAM,WAAW,2BAA2B;IAI1C,YAAY,CAAC,EAAE,SAAS,CAAA;IAIxB,gBAAgB,EAAE,MAAM,CAAA;IAIxB,oBAAoB,EAAE,MAAM,CAAA;CAC7B"}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { JsonValue } from '@xylabs/object';
|
|
2
|
-
/**
|
|
3
|
-
* Describes the JSON-path transformation to retrieve a field on a source object
|
|
4
|
-
* and the target field to store the value to on a destination object
|
|
5
|
-
*/
|
|
6
2
|
export interface JsonPathTransformExpression {
|
|
7
|
-
/**
|
|
8
|
-
* The default value to use if the source field does not exist
|
|
9
|
-
*/
|
|
10
3
|
defaultValue?: JsonValue;
|
|
11
|
-
/**
|
|
12
|
-
* The target field to store the source field into on the destination object
|
|
13
|
-
*/
|
|
14
4
|
destinationField: string;
|
|
15
|
-
/**
|
|
16
|
-
* The JSON path expressions for the source field on the source object
|
|
17
|
-
*/
|
|
18
5
|
sourcePathExpression: string;
|
|
19
6
|
}
|
|
20
7
|
//# sourceMappingURL=JsonPathTransformExpression.d.ts.map
|