@xyo-network/diviner-transform-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,8 +1,9 @@
1
1
  import type { DivinerConfig } from '@xyo-network/diviner-model';
2
2
  import type { TransformDictionary } from '../Payload/index.ts';
3
- import { TransformDivinerSchema } from '../Schema.ts';
4
- export type TransformDivinerConfigSchema = `${TransformDivinerSchema}.config`;
5
- export declare const TransformDivinerConfigSchema: TransformDivinerConfigSchema;
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;AAE/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAErD,MAAM,MAAM,4BAA4B,GAAG,GAAG,sBAAsB,SAAS,CAAA;AAC7E,eAAO,MAAM,4BAA4B,EAAE,4BAAiE,CAAA;AAE5G,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC;IAAE,SAAS,CAAC,EAAE,mBAAmB,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,4BAA4B,CAAA;CAAE,CAAC,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"}
@@ -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":"AAAA,eAAO,MAAM,sBAAsB,EAAG,+BAAwC,CAAA;AAC9E,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA"}
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"}
@@ -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
- var TransformDivinerSchema = "network.xyo.diviner.transform";
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/Schema.ts","../../src/Config/Config.ts","../../src/Query.ts"],"sourcesContent":["export const TransformDivinerSchema = 'network.xyo.diviner.transform' as const\nexport type TransformDivinerSchema = typeof TransformDivinerSchema\n","import type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport type { TransformDictionary } from '../Payload/index.ts'\nimport { TransformDivinerSchema } from '../Schema.ts'\n\nexport type TransformDivinerConfigSchema = `${TransformDivinerSchema}.config`\nexport const TransformDivinerConfigSchema: TransformDivinerConfigSchema = `${TransformDivinerSchema}.config`\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\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":";AAAO,IAAM,yBAAyB;;;ACM/B,IAAM,+BAA6D,GAAG,sBAAsB;;;ACA5F,IAAM,8BAA2D,GAAG,sBAAsB;AAG1F,IAAM,iCAAiC,CAAC,MAA0D,GAAG,WAAW;","names":[]}
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.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,13 +36,13 @@
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/payload-model": "~5.2.25"
39
+ "@xylabs/sdk-js": "~5.0.64",
40
+ "@xyo-network/diviner-model": "~5.3.0",
41
+ "@xyo-network/payload-model": "~5.3.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@xylabs/ts-scripts-yarn3": "~7.2.32",
45
- "@xylabs/tsconfig": "~7.2.32",
44
+ "@xylabs/ts-scripts-yarn3": "~7.3.2",
45
+ "@xylabs/tsconfig": "~7.3.2",
46
46
  "typescript": "~5.9.3"
47
47
  },
48
48
  "publishConfig": {
@@ -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 type TransformDivinerConfigSchema = `${TransformDivinerSchema}.config`
7
- export const TransformDivinerConfigSchema: TransformDivinerConfigSchema = `${TransformDivinerSchema}.config`
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
- export const TransformDivinerSchema = 'network.xyo.diviner.transform' as const
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