@xyo-network/diviner-schema-stats-model 3.6.9 → 3.6.11
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/Schema.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export declare const SchemaStatsDivinerSchema: "network.xyo.diviner.schema.stats";
|
|
2
|
+
export type SchemaStatsDivinerSchema = typeof SchemaStatsDivinerSchema;
|
|
3
3
|
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,kCAA2C,CAAA;AACnF,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
1
|
// src/Schema.ts
|
|
5
2
|
var SchemaStatsDivinerSchema = "network.xyo.diviner.schema.stats";
|
|
6
3
|
|
|
@@ -8,11 +5,11 @@ var SchemaStatsDivinerSchema = "network.xyo.diviner.schema.stats";
|
|
|
8
5
|
var SchemaStatsDivinerConfigSchema = `${SchemaStatsDivinerSchema}.config`;
|
|
9
6
|
|
|
10
7
|
// src/Payload.ts
|
|
11
|
-
var isSchemaStatsPayload =
|
|
8
|
+
var isSchemaStatsPayload = (x) => x?.schema === SchemaStatsDivinerSchema;
|
|
12
9
|
|
|
13
10
|
// src/Query.ts
|
|
14
11
|
var SchemaStatsQuerySchema = `${SchemaStatsDivinerSchema}.query`;
|
|
15
|
-
var isSchemaStatsQueryPayload =
|
|
12
|
+
var isSchemaStatsQueryPayload = (x) => x?.schema === SchemaStatsQuerySchema;
|
|
16
13
|
export {
|
|
17
14
|
SchemaStatsDivinerConfigSchema,
|
|
18
15
|
SchemaStatsDivinerSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["export const SchemaStatsDivinerSchema = 'network.xyo.diviner.schema.stats' as const\nexport type SchemaStatsDivinerSchema = typeof SchemaStatsDivinerSchema\n","import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema.ts'\n\nexport type SchemaStatsDivinerConfigSchema = `${SchemaStatsDivinerSchema}.config`\nexport const SchemaStatsDivinerConfigSchema: SchemaStatsDivinerConfigSchema = `${SchemaStatsDivinerSchema}.config`\n\nexport type SchemaStatsDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: SchemaStatsDivinerConfigSchema\n }\n>\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":";AAAO,IAAM,2BAA2B;;;ACMjC,IAAM,iCAAiE,GAAG,wBAAwB;;;ACKlG,IAAM,uBAAuB,CAAC,MAAgD,GAAG,WAAW;;;ACN5F,IAAM,yBAAiD,GAAG,wBAAwB;AAGlF,IAAM,4BAA4B,CAAC,MAAqD,GAAG,WAAW;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-schema-stats-model",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.11",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/diviner-model": "^3.6.
|
|
33
|
-
"@xyo-network/module-model": "^3.6.
|
|
34
|
-
"@xyo-network/payload-model": "^3.6.
|
|
32
|
+
"@xyo-network/diviner-model": "^3.6.11",
|
|
33
|
+
"@xyo-network/module-model": "^3.6.11",
|
|
34
|
+
"@xyo-network/payload-model": "^3.6.11"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@xylabs/ts-scripts-yarn3": "^4.2.6",
|
|
38
38
|
"@xylabs/tsconfig": "^4.2.6",
|
|
39
|
-
"typescript": "^5.7.
|
|
39
|
+
"typescript": "^5.7.3"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
package/src/Schema.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export const SchemaStatsDivinerSchema = 'network.xyo.diviner.schema.stats' as const
|
|
2
|
+
export type SchemaStatsDivinerSchema = typeof SchemaStatsDivinerSchema
|