@xyo-network/diviner-payload-stats-model 5.3.1 → 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.
package/dist/neutral/Query.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type Payload, type Query } from '@xyo-network/payload-model';
|
|
2
|
+
export declare const PayloadStatsQuerySchema: string & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
5
|
+
export type PayloadStatsQuerySchema = typeof PayloadStatsQuerySchema;
|
|
5
6
|
export type PayloadStatsQueryPayload = Query<{
|
|
6
7
|
schema: PayloadStatsQuerySchema;
|
|
7
8
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
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,uBAAuB;;CAAuD,CAAA;AAC3F,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,uBAAuB,CAAA;CAAE,CAAC,CAAA;AACjF,eAAO,MAAM,0BAA0B,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,wBAAiE,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -12,7 +12,10 @@ var PayloadStatsDivinerConfigSchema = asSchema2(`${PayloadStatsDivinerSchema}.co
|
|
|
12
12
|
var isPayloadStatsPayload = (x) => x?.schema === PayloadStatsDivinerSchema;
|
|
13
13
|
|
|
14
14
|
// src/Query.ts
|
|
15
|
-
|
|
15
|
+
import {
|
|
16
|
+
asSchema as asSchema3
|
|
17
|
+
} from "@xyo-network/payload-model";
|
|
18
|
+
var PayloadStatsQuerySchema = asSchema3(`${PayloadStatsDivinerSchema}.query`, true);
|
|
16
19
|
var isPayloadStatsQueryPayload = (x) => x?.schema === PayloadStatsQuerySchema;
|
|
17
20
|
export {
|
|
18
21
|
PayloadStatsDivinerConfigSchema,
|
|
@@ -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 { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport const PayloadStatsDivinerConfigSchema = asSchema(`${PayloadStatsDivinerSchema}.config`, true)\nexport type PayloadStatsDivinerConfigSchema = typeof PayloadStatsDivinerConfigSchema\n\nexport type PayloadStatsDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: PayloadStatsDivinerConfigSchema\n }\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const PayloadStatsDivinerSchema = asSchema('network.xyo.diviner.payload.stats', true)\nexport type PayloadStatsDivinerSchema = typeof PayloadStatsDivinerSchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport type PayloadStatsPayload = Payload<{ count: number; schema: PayloadStatsDivinerSchema }>\nexport const isPayloadStatsPayload = (x?: Payload | null): x is PayloadStatsPayload => x?.schema === PayloadStatsDivinerSchema\n","import type
|
|
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 { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport const PayloadStatsDivinerConfigSchema = asSchema(`${PayloadStatsDivinerSchema}.config`, true)\nexport type PayloadStatsDivinerConfigSchema = typeof PayloadStatsDivinerConfigSchema\n\nexport type PayloadStatsDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: PayloadStatsDivinerConfigSchema\n }\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const PayloadStatsDivinerSchema = asSchema('network.xyo.diviner.payload.stats', true)\nexport type PayloadStatsDivinerSchema = typeof PayloadStatsDivinerSchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport type PayloadStatsPayload = Payload<{ count: number; schema: PayloadStatsDivinerSchema }>\nexport const isPayloadStatsPayload = (x?: Payload | null): x is PayloadStatsPayload => x?.schema === PayloadStatsDivinerSchema\n","import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { PayloadStatsDivinerSchema } from './Schema.ts'\n\nexport const PayloadStatsQuerySchema = asSchema(`${PayloadStatsDivinerSchema}.query`, true)\nexport type PayloadStatsQuerySchema = typeof PayloadStatsQuerySchema\n\nexport type PayloadStatsQueryPayload = Query<{ schema: PayloadStatsQuerySchema }>\nexport const isPayloadStatsQueryPayload = (x?: Payload | null): x is PayloadStatsQueryPayload => x?.schema === PayloadStatsQuerySchema\n"],"mappings":";AACA,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,4BAA4B,SAAS,qCAAqC,IAAI;;;ADGpF,IAAM,kCAAkCC,UAAS,GAAG,yBAAyB,WAAW,IAAI;;;AEA5F,IAAM,wBAAwB,CAAC,MAAiD,GAAG,WAAW;;;ACLrG;AAAA,EACE,YAAAC;AAAA,OACK;AAIA,IAAM,0BAA0BC,UAAS,GAAG,yBAAyB,UAAU,IAAI;AAInF,IAAM,6BAA6B,CAAC,MAAsD,GAAG,WAAW;","names":["asSchema","asSchema","asSchema","asSchema"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-payload-stats-model",
|
|
3
|
-
"version": "5.3.
|
|
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.
|
|
40
|
-
"@xyo-network/module-model": "~5.3.
|
|
41
|
-
"@xyo-network/payload-model": "~5.3.
|
|
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
|
|
1
|
+
import {
|
|
2
|
+
asSchema, type Payload, type Query,
|
|
3
|
+
} from '@xyo-network/payload-model'
|
|
2
4
|
|
|
3
5
|
import { PayloadStatsDivinerSchema } from './Schema.ts'
|
|
4
6
|
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
+
export const PayloadStatsQuerySchema = asSchema(`${PayloadStatsDivinerSchema}.query`, true)
|
|
8
|
+
export type PayloadStatsQuerySchema = typeof PayloadStatsQuerySchema
|
|
7
9
|
|
|
8
10
|
export type PayloadStatsQueryPayload = Query<{ schema: PayloadStatsQuerySchema }>
|
|
9
11
|
export const isPayloadStatsQueryPayload = (x?: Payload | null): x is PayloadStatsQueryPayload => x?.schema === PayloadStatsQuerySchema
|