@xyo-network/diviner-transform-model 5.2.27 → 5.3.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/neutral/Config/Config.d.ts +4 -3
- package/dist/neutral/Config/Config.d.ts.map +1 -1
- package/dist/neutral/Schema.d.ts +3 -1
- package/dist/neutral/Schema.d.ts.map +1 -1
- package/dist/neutral/index.mjs +6 -2
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/Config/Config.ts +3 -2
- package/src/Schema.ts +3 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
2
2
|
import type { TransformDictionary } from '../Payload/index.ts';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare const TransformDivinerConfigSchema: string & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
};
|
|
6
|
+
export type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema;
|
|
6
7
|
export type TransformDivinerConfig = DivinerConfig<{
|
|
7
8
|
transform?: TransformDictionary;
|
|
8
9
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/Config/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/Config/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAG/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAG9D,eAAO,MAAM,4BAA4B;;CAAqD,CAAA;AAC9F,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAA;AAE9E,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC;IAAE,SAAS,CAAC,EAAE,mBAAmB,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,4BAA4B,CAAA;CAAE,CAAC,CAAA"}
|
package/dist/neutral/Schema.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export declare const TransformDivinerSchema: "network.xyo.diviner.transform"
|
|
1
|
+
export declare const TransformDivinerSchema: "network.xyo.diviner.transform" & {
|
|
2
|
+
readonly __schema: true;
|
|
3
|
+
};
|
|
2
4
|
export type TransformDivinerSchema = typeof TransformDivinerSchema;
|
|
3
5
|
//# 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":"AAEA,eAAO,MAAM,sBAAsB;;CAAkD,CAAA;AACrF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
// src/Config/Config.ts
|
|
2
|
+
import { asSchema as asSchema2 } from "@xyo-network/payload-model";
|
|
3
|
+
|
|
1
4
|
// src/Schema.ts
|
|
2
|
-
|
|
5
|
+
import { asSchema } from "@xyo-network/payload-model";
|
|
6
|
+
var TransformDivinerSchema = asSchema("network.xyo.diviner.transform", true);
|
|
3
7
|
|
|
4
8
|
// src/Config/Config.ts
|
|
5
|
-
var TransformDivinerConfigSchema = `${TransformDivinerSchema}.config
|
|
9
|
+
var TransformDivinerConfigSchema = asSchema2(`${TransformDivinerSchema}.config`, true);
|
|
6
10
|
|
|
7
11
|
// src/Query.ts
|
|
8
12
|
var TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/Config/Config.ts","../../src/Schema.ts","../../src/Query.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport type { TransformDictionary } from '../Payload/index.ts'\nimport { TransformDivinerSchema } from '../Schema.ts'\n\nexport const TransformDivinerConfigSchema = asSchema(`${TransformDivinerSchema}.config`, true)\nexport type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const TransformDivinerSchema = asSchema('network.xyo.diviner.transform', true)\nexport type TransformDivinerSchema = typeof TransformDivinerSchema\n","import type { Payload, Query } from '@xyo-network/payload-model'\n\nimport type { TransformSettings } from './Config/index.ts'\nimport { TransformDivinerSchema } from './Schema.ts'\n\nexport type TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`\nexport const TransformDivinerQuerySchema: TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`\n\nexport type TransformDivinerQueryPayload = Query<{ schema: TransformDivinerQuerySchema } & Partial<TransformSettings>>\nexport const isTransformDivinerQueryPayload = (x?: Payload | null): x is TransformDivinerQueryPayload => x?.schema === TransformDivinerQuerySchema\n"],"mappings":";AACA,SAAS,YAAAA,iBAAgB;;;ACDzB,SAAS,gBAAgB;AAElB,IAAM,yBAAyB,SAAS,iCAAiC,IAAI;;;ADI7E,IAAM,+BAA+BC,UAAS,GAAG,sBAAsB,WAAW,IAAI;;;AEAtF,IAAM,8BAA2D,GAAG,sBAAsB;AAG1F,IAAM,iCAAiC,CAAC,MAA0D,GAAG,WAAW;","names":["asSchema","asSchema"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-transform-model",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@xylabs/sdk-js": "~5.0.64",
|
|
40
|
-
"@xyo-network/diviner-model": "~5.
|
|
41
|
-
"@xyo-network/payload-model": "~5.
|
|
40
|
+
"@xyo-network/diviner-model": "~5.3.1",
|
|
41
|
+
"@xyo-network/payload-model": "~5.3.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
package/src/Config/Config.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
2
|
+
import { asSchema } from '@xyo-network/payload-model'
|
|
2
3
|
|
|
3
4
|
import type { TransformDictionary } from '../Payload/index.ts'
|
|
4
5
|
import { TransformDivinerSchema } from '../Schema.ts'
|
|
5
6
|
|
|
6
|
-
export
|
|
7
|
-
export
|
|
7
|
+
export const TransformDivinerConfigSchema = asSchema(`${TransformDivinerSchema}.config`, true)
|
|
8
|
+
export type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema
|
|
8
9
|
|
|
9
10
|
export type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>
|
package/src/Schema.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
+
|
|
3
|
+
export const TransformDivinerSchema = asSchema('network.xyo.diviner.transform', true)
|
|
2
4
|
export type TransformDivinerSchema = typeof TransformDivinerSchema
|