@xyo-network/diviner-transform-model 5.3.1 → 5.3.3

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
- import type { Payload, Query } from '@xyo-network/payload-model';
1
+ import { type Payload, type Query } from '@xyo-network/payload-model';
2
2
  import type { TransformSettings } from './Config/index.ts';
3
- import { TransformDivinerSchema } from './Schema.ts';
4
- export type TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`;
5
- export declare const TransformDivinerQuerySchema: TransformDivinerQuerySchema;
3
+ export declare const TransformDivinerQuerySchema: string & {
4
+ readonly __schema: true;
5
+ };
6
+ export type TransformDivinerQuerySchema = typeof TransformDivinerQuerySchema;
6
7
  export type TransformDivinerQueryPayload = Query<{
7
8
  schema: TransformDivinerQuerySchema;
8
9
  } & Partial<TransformSettings>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEpD,MAAM,MAAM,2BAA2B,GAAG,GAAG,sBAAsB,QAAQ,CAAA;AAC3E,eAAO,MAAM,2BAA2B,EAAE,2BAA+D,CAAA;AAEzG,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,2BAA2B,CAAA;CAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAA;AACtH,eAAO,MAAM,8BAA8B,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,4BAAyE,CAAA"}
1
+ {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EACK,KAAK,OAAO,EAAE,KAAK,KAAK,EACnC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAG1D,eAAO,MAAM,2BAA2B;;CAAoD,CAAA;AAC5F,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,2BAA2B,CAAA;CAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAA;AACtH,eAAO,MAAM,8BAA8B,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,4BAAyE,CAAA"}
@@ -9,7 +9,10 @@ var TransformDivinerSchema = asSchema("network.xyo.diviner.transform", true);
9
9
  var TransformDivinerConfigSchema = asSchema2(`${TransformDivinerSchema}.config`, true);
10
10
 
11
11
  // src/Query.ts
12
- var TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`;
12
+ import {
13
+ asSchema as asSchema3
14
+ } from "@xyo-network/payload-model";
15
+ var TransformDivinerQuerySchema = asSchema3(`${TransformDivinerSchema}.query`, true);
13
16
  var isTransformDivinerQueryPayload = (x) => x?.schema === TransformDivinerQuerySchema;
14
17
  export {
15
18
  TransformDivinerConfigSchema,
@@ -1 +1 @@
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"]}
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 {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport type { TransformSettings } from './Config/index.ts'\nimport { TransformDivinerSchema } from './Schema.ts'\n\nexport const TransformDivinerQuerySchema = asSchema(`${TransformDivinerSchema}.query`, true)\nexport type TransformDivinerQuerySchema = typeof TransformDivinerQuerySchema\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;;;AEN7F;AAAA,EACE,YAAAC;AAAA,OACK;AAKA,IAAM,8BAA8BC,UAAS,GAAG,sBAAsB,UAAU,IAAI;AAIpF,IAAM,iCAAiC,CAAC,MAA0D,GAAG,WAAW;","names":["asSchema","asSchema","asSchema","asSchema"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-transform-model",
3
- "version": "5.3.1",
3
+ "version": "5.3.3",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -36,9 +36,9 @@
36
36
  "!**/*.test.*"
37
37
  ],
38
38
  "dependencies": {
39
- "@xylabs/sdk-js": "~5.0.64",
40
- "@xyo-network/diviner-model": "~5.3.1",
41
- "@xyo-network/payload-model": "~5.3.1"
39
+ "@xylabs/sdk-js": "~5.0.79",
40
+ "@xyo-network/diviner-model": "~5.3.3",
41
+ "@xyo-network/payload-model": "~5.3.3"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@xylabs/ts-scripts-yarn3": "~7.3.2",
package/src/Query.ts CHANGED
@@ -1,10 +1,12 @@
1
- import type { Payload, Query } from '@xyo-network/payload-model'
1
+ import {
2
+ asSchema, type Payload, type Query,
3
+ } from '@xyo-network/payload-model'
2
4
 
3
5
  import type { TransformSettings } from './Config/index.ts'
4
6
  import { TransformDivinerSchema } from './Schema.ts'
5
7
 
6
- export type TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`
7
- export const TransformDivinerQuerySchema: TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`
8
+ export const TransformDivinerQuerySchema = asSchema(`${TransformDivinerSchema}.query`, true)
9
+ export type TransformDivinerQuerySchema = typeof TransformDivinerQuerySchema
8
10
 
9
11
  export type TransformDivinerQueryPayload = Query<{ schema: TransformDivinerQuerySchema } & Partial<TransformSettings>>
10
12
  export const isTransformDivinerQueryPayload = (x?: Payload | null): x is TransformDivinerQueryPayload => x?.schema === TransformDivinerQuerySchema