@xyo-network/diviner-schema-stats-model 5.3.0 → 5.3.2

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 { SchemaStatsDivinerSchema } from './Schema.ts';
3
- export type SchemaStatsQuerySchema = `${SchemaStatsDivinerSchema}.query`;
4
- export declare const SchemaStatsQuerySchema: SchemaStatsQuerySchema;
1
+ import { type Payload, type Query } from '@xyo-network/payload-model';
2
+ export declare const SchemaStatsQuerySchema: string & {
3
+ readonly __schema: true;
4
+ };
5
+ export type SchemaStatsQuerySchema = typeof SchemaStatsQuerySchema;
5
6
  export type SchemaStatsQueryPayload = Query<{
6
7
  schema: SchemaStatsQuerySchema;
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,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAEtD,MAAM,MAAM,sBAAsB,GAAG,GAAG,wBAAwB,QAAQ,CAAA;AACxE,eAAO,MAAM,sBAAsB,EAAE,sBAA4D,CAAA;AAEjG,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,sBAAsB,CAAA;CAAE,CAAC,CAAA;AAC/E,eAAO,MAAM,yBAAyB,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,uBAA+D,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,sBAAsB;;CAAsD,CAAA;AACzF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,sBAAsB,CAAA;CAAE,CAAC,CAAA;AAC/E,eAAO,MAAM,yBAAyB,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,uBAA+D,CAAA"}
@@ -12,7 +12,10 @@ var SchemaStatsDivinerConfigSchema = asSchema2(`${SchemaStatsDivinerSchema}.conf
12
12
  var isSchemaStatsPayload = (x) => x?.schema === SchemaStatsDivinerSchema;
13
13
 
14
14
  // src/Query.ts
15
- var SchemaStatsQuerySchema = `${SchemaStatsDivinerSchema}.query`;
15
+ import {
16
+ asSchema as asSchema3
17
+ } from "@xyo-network/payload-model";
18
+ var SchemaStatsQuerySchema = asSchema3(`${SchemaStatsDivinerSchema}.query`, true);
16
19
  var isSchemaStatsQueryPayload = (x) => x?.schema === SchemaStatsQuerySchema;
17
20
  export {
18
21
  SchemaStatsDivinerConfigSchema,
@@ -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 { SchemaStatsDivinerSchema } from './Schema.ts'\n\nexport const SchemaStatsDivinerConfigSchema = asSchema(`${SchemaStatsDivinerSchema}.config`, true)\nexport type SchemaStatsDivinerConfigSchema = typeof SchemaStatsDivinerConfigSchema\n\nexport type SchemaStatsDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: SchemaStatsDivinerConfigSchema\n }\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const SchemaStatsDivinerSchema = asSchema('network.xyo.diviner.schema.stats', true)\nexport type SchemaStatsDivinerSchema = typeof SchemaStatsDivinerSchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema.ts'\n\nexport type SchemaStatsPayload = Payload<{\n count: Record<string, number>\n // the name of the schema that the count is for. If name is undefined, then it is the count for all schemas\n name?: string\n schema: SchemaStatsDivinerSchema\n}>\n\nexport const isSchemaStatsPayload = (x?: Payload | null): x is SchemaStatsPayload => x?.schema === SchemaStatsDivinerSchema\n","import type { Payload, Query } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema.ts'\n\nexport type SchemaStatsQuerySchema = `${SchemaStatsDivinerSchema}.query`\nexport const SchemaStatsQuerySchema: SchemaStatsQuerySchema = `${SchemaStatsDivinerSchema}.query`\n\nexport type SchemaStatsQueryPayload = Query<{ schema: SchemaStatsQuerySchema }>\nexport const isSchemaStatsQueryPayload = (x?: Payload | null): x is SchemaStatsQueryPayload => x?.schema === SchemaStatsQuerySchema\n"],"mappings":";AACA,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,2BAA2B,SAAS,oCAAoC,IAAI;;;ADGlF,IAAM,iCAAiCC,UAAS,GAAG,wBAAwB,WAAW,IAAI;;;AEM1F,IAAM,uBAAuB,CAAC,MAAgD,GAAG,WAAW;;;ACN5F,IAAM,yBAAiD,GAAG,wBAAwB;AAGlF,IAAM,4BAA4B,CAAC,MAAqD,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 { SchemaStatsDivinerSchema } from './Schema.ts'\n\nexport const SchemaStatsDivinerConfigSchema = asSchema(`${SchemaStatsDivinerSchema}.config`, true)\nexport type SchemaStatsDivinerConfigSchema = typeof SchemaStatsDivinerConfigSchema\n\nexport type SchemaStatsDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: SchemaStatsDivinerConfigSchema\n }\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const SchemaStatsDivinerSchema = asSchema('network.xyo.diviner.schema.stats', true)\nexport type SchemaStatsDivinerSchema = typeof SchemaStatsDivinerSchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema.ts'\n\nexport type SchemaStatsPayload = Payload<{\n count: Record<string, number>\n // the name of the schema that the count is for. If name is undefined, then it is the count for all schemas\n name?: string\n schema: SchemaStatsDivinerSchema\n}>\n\nexport const isSchemaStatsPayload = (x?: Payload | null): x is SchemaStatsPayload => x?.schema === SchemaStatsDivinerSchema\n","import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema.ts'\n\nexport const SchemaStatsQuerySchema = asSchema(`${SchemaStatsDivinerSchema}.query`, true)\nexport type SchemaStatsQuerySchema = typeof SchemaStatsQuerySchema\n\nexport type SchemaStatsQueryPayload = Query<{ schema: SchemaStatsQuerySchema }>\nexport const isSchemaStatsQueryPayload = (x?: Payload | null): x is SchemaStatsQueryPayload => x?.schema === SchemaStatsQuerySchema\n"],"mappings":";AACA,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,2BAA2B,SAAS,oCAAoC,IAAI;;;ADGlF,IAAM,iCAAiCC,UAAS,GAAG,wBAAwB,WAAW,IAAI;;;AEM1F,IAAM,uBAAuB,CAAC,MAAgD,GAAG,WAAW;;;ACXnG;AAAA,EACE,YAAAC;AAAA,OACK;AAIA,IAAM,yBAAyBC,UAAS,GAAG,wBAAwB,UAAU,IAAI;AAIjF,IAAM,4BAA4B,CAAC,MAAqD,GAAG,WAAW;","names":["asSchema","asSchema","asSchema","asSchema"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-schema-stats-model",
3
- "version": "5.3.0",
3
+ "version": "5.3.2",
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.0",
40
- "@xyo-network/module-model": "~5.3.0",
41
- "@xyo-network/payload-model": "~5.3.0"
39
+ "@xyo-network/diviner-model": "~5.3.2",
40
+ "@xyo-network/module-model": "~5.3.2",
41
+ "@xyo-network/payload-model": "~5.3.2"
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 { SchemaStatsDivinerSchema } from './Schema.ts'
4
6
 
5
- export type SchemaStatsQuerySchema = `${SchemaStatsDivinerSchema}.query`
6
- export const SchemaStatsQuerySchema: SchemaStatsQuerySchema = `${SchemaStatsDivinerSchema}.query`
7
+ export const SchemaStatsQuerySchema = asSchema(`${SchemaStatsDivinerSchema}.query`, true)
8
+ export type SchemaStatsQuerySchema = typeof SchemaStatsQuerySchema
7
9
 
8
10
  export type SchemaStatsQueryPayload = Query<{ schema: SchemaStatsQuerySchema }>
9
11
  export const isSchemaStatsQueryPayload = (x?: Payload | null): x is SchemaStatsQueryPayload => x?.schema === SchemaStatsQuerySchema