@xyo-network/diviner-schema-stats-model 2.84.2 → 2.84.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.
- package/dist/node/index.cjs +51 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +2 -33
- package/dist/node/index.js.map +1 -1
- package/package.json +12 -12
- package/dist/node/index.mjs +0 -20
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
SchemaStatsDivinerConfigSchema: () => SchemaStatsDivinerConfigSchema,
|
|
24
|
+
SchemaStatsDivinerSchema: () => SchemaStatsDivinerSchema,
|
|
25
|
+
SchemaStatsQuerySchema: () => SchemaStatsQuerySchema,
|
|
26
|
+
isSchemaStatsPayload: () => isSchemaStatsPayload,
|
|
27
|
+
isSchemaStatsQueryPayload: () => isSchemaStatsQueryPayload
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(src_exports);
|
|
30
|
+
|
|
31
|
+
// src/Schema.ts
|
|
32
|
+
var SchemaStatsDivinerSchema = "network.xyo.diviner.schema.stats";
|
|
33
|
+
|
|
34
|
+
// src/Config.ts
|
|
35
|
+
var SchemaStatsDivinerConfigSchema = `${SchemaStatsDivinerSchema}.config`;
|
|
36
|
+
|
|
37
|
+
// src/Payload.ts
|
|
38
|
+
var isSchemaStatsPayload = (x) => (x == null ? void 0 : x.schema) === SchemaStatsDivinerSchema;
|
|
39
|
+
|
|
40
|
+
// src/Query.ts
|
|
41
|
+
var SchemaStatsQuerySchema = `${SchemaStatsDivinerSchema}.query`;
|
|
42
|
+
var isSchemaStatsQueryPayload = (x) => (x == null ? void 0 : x.schema) === SchemaStatsQuerySchema;
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
SchemaStatsDivinerConfigSchema,
|
|
46
|
+
SchemaStatsDivinerSchema,
|
|
47
|
+
SchemaStatsQuerySchema,
|
|
48
|
+
isSchemaStatsPayload,
|
|
49
|
+
isSchemaStatsQueryPayload
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["export * from './Config'\nexport * from './Params'\nexport * from './Payload'\nexport * from './Query'\nexport * from './Schema'\n","export type SchemaStatsDivinerSchema = 'network.xyo.diviner.schema.stats'\nexport const SchemaStatsDivinerSchema: SchemaStatsDivinerSchema = 'network.xyo.diviner.schema.stats'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema'\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 { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema'\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 { Payload, Query } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema'\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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCO,IAAM,2BAAqD;;;ACK3D,IAAM,iCAAiE,GAAG,wBAAwB;;;ACKlG,IAAM,uBAAuB,CAAC,OAAgD,uBAAG,YAAW;;;ACN5F,IAAM,yBAAiD,GAAG,wBAAwB;AAGlF,IAAM,4BAA4B,CAAC,OAAqD,uBAAG,YAAW;","names":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,33 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
SchemaStatsDivinerConfigSchema: () => SchemaStatsDivinerConfigSchema,
|
|
24
|
-
SchemaStatsDivinerSchema: () => SchemaStatsDivinerSchema,
|
|
25
|
-
SchemaStatsQuerySchema: () => SchemaStatsQuerySchema,
|
|
26
|
-
isSchemaStatsPayload: () => isSchemaStatsPayload,
|
|
27
|
-
isSchemaStatsQueryPayload: () => isSchemaStatsQueryPayload
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(src_exports);
|
|
30
|
-
|
|
31
1
|
// src/Schema.ts
|
|
32
2
|
var SchemaStatsDivinerSchema = "network.xyo.diviner.schema.stats";
|
|
33
3
|
|
|
@@ -40,12 +10,11 @@ var isSchemaStatsPayload = (x) => (x == null ? void 0 : x.schema) === SchemaStat
|
|
|
40
10
|
// src/Query.ts
|
|
41
11
|
var SchemaStatsQuerySchema = `${SchemaStatsDivinerSchema}.query`;
|
|
42
12
|
var isSchemaStatsQueryPayload = (x) => (x == null ? void 0 : x.schema) === SchemaStatsQuerySchema;
|
|
43
|
-
|
|
44
|
-
0 && (module.exports = {
|
|
13
|
+
export {
|
|
45
14
|
SchemaStatsDivinerConfigSchema,
|
|
46
15
|
SchemaStatsDivinerSchema,
|
|
47
16
|
SchemaStatsQuerySchema,
|
|
48
17
|
isSchemaStatsPayload,
|
|
49
18
|
isSchemaStatsQueryPayload
|
|
50
|
-
}
|
|
19
|
+
};
|
|
51
20
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["export type SchemaStatsDivinerSchema = 'network.xyo.diviner.schema.stats'\nexport const SchemaStatsDivinerSchema: SchemaStatsDivinerSchema = 'network.xyo.diviner.schema.stats'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema'\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 { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema'\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 { Payload, Query } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema'\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":";AACO,IAAM,2BAAqD;;;ACK3D,IAAM,iCAAiE,GAAG,wBAAwB;;;ACKlG,IAAM,uBAAuB,CAAC,OAAgD,uBAAG,YAAW;;;ACN5F,IAAM,yBAAiD,GAAG,wBAAwB;AAGlF,IAAM,4BAA4B,CAAC,OAAqD,uBAAG,YAAW;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,17 +10,16 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/diviner-model": "~2.84.
|
|
14
|
-
"@xyo-network/module-model": "~2.84.
|
|
15
|
-
"@xyo-network/payload-model": "~2.84.
|
|
13
|
+
"@xyo-network/diviner-model": "~2.84.3",
|
|
14
|
+
"@xyo-network/module-model": "~2.84.3",
|
|
15
|
+
"@xyo-network/payload-model": "~2.84.3"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@xylabs/ts-scripts-yarn3": "^3.2.
|
|
19
|
-
"@xylabs/tsconfig": "^3.2.
|
|
18
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.19",
|
|
19
|
+
"@xylabs/tsconfig": "^3.2.19",
|
|
20
20
|
"typescript": "^5.3.3"
|
|
21
21
|
},
|
|
22
22
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
23
|
-
"docs": "dist/docs.json",
|
|
24
23
|
"types": "dist/node/index.d.ts",
|
|
25
24
|
"exports": {
|
|
26
25
|
".": {
|
|
@@ -36,19 +35,19 @@
|
|
|
36
35
|
},
|
|
37
36
|
"node": {
|
|
38
37
|
"require": {
|
|
39
|
-
"types": "./dist/node/index.d.
|
|
40
|
-
"default": "./dist/node/index.
|
|
38
|
+
"types": "./dist/node/index.d.cts",
|
|
39
|
+
"default": "./dist/node/index.cjs"
|
|
41
40
|
},
|
|
42
41
|
"import": {
|
|
43
42
|
"types": "./dist/node/index.d.mts",
|
|
44
|
-
"default": "./dist/node/index.
|
|
43
|
+
"default": "./dist/node/index.js"
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
},
|
|
48
47
|
"./package.json": "./package.json"
|
|
49
48
|
},
|
|
50
|
-
"main": "dist/node/index.
|
|
51
|
-
"module": "dist/node/index.
|
|
49
|
+
"main": "dist/node/index.cjs",
|
|
50
|
+
"module": "dist/node/index.js",
|
|
52
51
|
"homepage": "https://xyo.network",
|
|
53
52
|
"license": "LGPL-3.0-only",
|
|
54
53
|
"publishConfig": {
|
|
@@ -59,5 +58,6 @@
|
|
|
59
58
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
60
59
|
},
|
|
61
60
|
"sideEffects": false,
|
|
62
|
-
"version": "2.84.
|
|
61
|
+
"version": "2.84.3",
|
|
62
|
+
"type": "module"
|
|
63
63
|
}
|
package/dist/node/index.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// src/Schema.ts
|
|
2
|
-
var SchemaStatsDivinerSchema = "network.xyo.diviner.schema.stats";
|
|
3
|
-
|
|
4
|
-
// src/Config.ts
|
|
5
|
-
var SchemaStatsDivinerConfigSchema = `${SchemaStatsDivinerSchema}.config`;
|
|
6
|
-
|
|
7
|
-
// src/Payload.ts
|
|
8
|
-
var isSchemaStatsPayload = (x) => (x == null ? void 0 : x.schema) === SchemaStatsDivinerSchema;
|
|
9
|
-
|
|
10
|
-
// src/Query.ts
|
|
11
|
-
var SchemaStatsQuerySchema = `${SchemaStatsDivinerSchema}.query`;
|
|
12
|
-
var isSchemaStatsQueryPayload = (x) => (x == null ? void 0 : x.schema) === SchemaStatsQuerySchema;
|
|
13
|
-
export {
|
|
14
|
-
SchemaStatsDivinerConfigSchema,
|
|
15
|
-
SchemaStatsDivinerSchema,
|
|
16
|
-
SchemaStatsQuerySchema,
|
|
17
|
-
isSchemaStatsPayload,
|
|
18
|
-
isSchemaStatsQueryPayload
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["export type SchemaStatsDivinerSchema = 'network.xyo.diviner.schema.stats'\nexport const SchemaStatsDivinerSchema: SchemaStatsDivinerSchema = 'network.xyo.diviner.schema.stats'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema'\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 { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema'\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 { Payload, Query } from '@xyo-network/payload-model'\n\nimport { SchemaStatsDivinerSchema } from './Schema'\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":";AACO,IAAM,2BAAqD;;;ACK3D,IAAM,iCAAiE,GAAG,wBAAwB;;;ACKlG,IAAM,uBAAuB,CAAC,OAAgD,uBAAG,YAAW;;;ACN5F,IAAM,yBAAiD,GAAG,wBAAwB;AAGlF,IAAM,4BAA4B,CAAC,OAAqD,uBAAG,YAAW;","names":[]}
|