@xyo-network/diviner-schema-list-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,7 +1,8 @@
1
- import type { Payload, Query } from '@xyo-network/payload-model';
2
- import { SchemaListDivinerSchema } from './Schema.ts';
3
- export type SchemaListQuerySchema = `${SchemaListDivinerSchema}.query`;
4
- export declare const SchemaListQuerySchema: SchemaListQuerySchema;
1
+ import { type Payload, type Query } from '@xyo-network/payload-model';
2
+ export declare const SchemaListQuerySchema: string & {
3
+ readonly __schema: true;
4
+ };
5
+ export type SchemaListQuerySchema = typeof SchemaListQuerySchema;
5
6
  export type SchemaListQueryPayload = Query<{
6
7
  schema: SchemaListQuerySchema;
7
8
  }>;
@@ -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,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,MAAM,qBAAqB,GAAG,GAAG,uBAAuB,QAAQ,CAAA;AACtE,eAAO,MAAM,qBAAqB,EAAE,qBAA0D,CAAA;AAE9F,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,qBAAqB,CAAA;CAAE,CAAC,CAAA;AAC7E,eAAO,MAAM,wBAAwB,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,sBAA6D,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;AAInC,eAAO,MAAM,qBAAqB;;CAAqD,CAAA;AACvF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,qBAAqB,CAAA;CAAE,CAAC,CAAA;AAC7E,eAAO,MAAM,wBAAwB,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,sBAA6D,CAAA"}
@@ -12,7 +12,10 @@ var SchemaListDivinerConfigSchema = asSchema2(`${SchemaListDivinerSchema}.config
12
12
  var isSchemaListPayload = (x) => x?.schema === SchemaListDivinerSchema;
13
13
 
14
14
  // src/Query.ts
15
- var SchemaListQuerySchema = `${SchemaListDivinerSchema}.query`;
15
+ import {
16
+ asSchema as asSchema3
17
+ } from "@xyo-network/payload-model";
18
+ var SchemaListQuerySchema = asSchema3(`${SchemaListDivinerSchema}.query`, true);
16
19
  var isSchemaListQueryPayload = (x) => x?.schema === SchemaListQuerySchema;
17
20
  export {
18
21
  SchemaListDivinerConfigSchema,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema = asSchema(`${SchemaListDivinerSchema}.config`, true)\nexport type SchemaListDivinerConfigSchema = typeof SchemaListDivinerConfigSchema\n\nexport type SchemaListDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: SchemaListDivinerConfigSchema\n }\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const SchemaListDivinerSchema = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport type SchemaListPayload = Payload<{\n schema: SchemaListDivinerSchema\n schemas: string[]\n}>\n\nexport const isSchemaListPayload = (x?: Payload | null): x is SchemaListPayload => x?.schema === SchemaListDivinerSchema\n","import type { Payload, Query } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport type SchemaListQuerySchema = `${SchemaListDivinerSchema}.query`\nexport const SchemaListQuerySchema: SchemaListQuerySchema = `${SchemaListDivinerSchema}.query`\n\nexport type SchemaListQueryPayload = Query<{ schema: SchemaListQuerySchema }>\nexport const isSchemaListQueryPayload = (x?: Payload | null): x is SchemaListQueryPayload => x?.schema === SchemaListQuerySchema\n"],"mappings":";AACA,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,0BAA0B,SAAS,mCAAmC,IAAI;;;ADGhF,IAAM,gCAAgCC,UAAS,GAAG,uBAAuB,WAAW,IAAI;;;AEIxF,IAAM,sBAAsB,CAAC,MAA+C,GAAG,WAAW;;;ACJ1F,IAAM,wBAA+C,GAAG,uBAAuB;AAG/E,IAAM,2BAA2B,CAAC,MAAoD,GAAG,WAAW;","names":["asSchema","asSchema"]}
1
+ {"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema = asSchema(`${SchemaListDivinerSchema}.config`, true)\nexport type SchemaListDivinerConfigSchema = typeof SchemaListDivinerConfigSchema\n\nexport type SchemaListDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: SchemaListDivinerConfigSchema\n }\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const SchemaListDivinerSchema = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport type SchemaListPayload = Payload<{\n schema: SchemaListDivinerSchema\n schemas: string[]\n}>\n\nexport const isSchemaListPayload = (x?: Payload | null): x is SchemaListPayload => x?.schema === SchemaListDivinerSchema\n","import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListQuerySchema = asSchema(`${SchemaListDivinerSchema}.query`, true)\nexport type SchemaListQuerySchema = typeof SchemaListQuerySchema\n\nexport type SchemaListQueryPayload = Query<{ schema: SchemaListQuerySchema }>\nexport const isSchemaListQueryPayload = (x?: Payload | null): x is SchemaListQueryPayload => x?.schema === SchemaListQuerySchema\n"],"mappings":";AACA,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,0BAA0B,SAAS,mCAAmC,IAAI;;;ADGhF,IAAM,gCAAgCC,UAAS,GAAG,uBAAuB,WAAW,IAAI;;;AEIxF,IAAM,sBAAsB,CAAC,MAA+C,GAAG,WAAW;;;ACTjG;AAAA,EACE,YAAAC;AAAA,OACK;AAIA,IAAM,wBAAwBC,UAAS,GAAG,uBAAuB,UAAU,IAAI;AAI/E,IAAM,2BAA2B,CAAC,MAAoD,GAAG,WAAW;","names":["asSchema","asSchema","asSchema","asSchema"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-schema-list-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
- "@xyo-network/diviner-model": "~5.3.1",
40
- "@xyo-network/module-model": "~5.3.1",
41
- "@xyo-network/payload-model": "~5.3.1"
39
+ "@xyo-network/diviner-model": "~5.3.3",
40
+ "@xyo-network/module-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,9 +1,11 @@
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 { SchemaListDivinerSchema } from './Schema.ts'
4
6
 
5
- export type SchemaListQuerySchema = `${SchemaListDivinerSchema}.query`
6
- export const SchemaListQuerySchema: SchemaListQuerySchema = `${SchemaListDivinerSchema}.query`
7
+ export const SchemaListQuerySchema = asSchema(`${SchemaListDivinerSchema}.query`, true)
8
+ export type SchemaListQuerySchema = typeof SchemaListQuerySchema
7
9
 
8
10
  export type SchemaListQueryPayload = Query<{ schema: SchemaListQuerySchema }>
9
11
  export const isSchemaListQueryPayload = (x?: Payload | null): x is SchemaListQueryPayload => x?.schema === SchemaListQuerySchema