@xyo-network/diviner-payload-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 +46 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +2 -32
- package/dist/node/index.js.map +1 -1
- package/package.json +13 -13
- package/dist/node/index.mjs +0 -16
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
PayloadDivinerConfigSchema: () => PayloadDivinerConfigSchema,
|
|
24
|
+
PayloadDivinerQuerySchema: () => PayloadDivinerQuerySchema,
|
|
25
|
+
PayloadDivinerSchema: () => PayloadDivinerSchema,
|
|
26
|
+
isPayloadDivinerQueryPayload: () => isPayloadDivinerQueryPayload
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(src_exports);
|
|
29
|
+
|
|
30
|
+
// src/Schema.ts
|
|
31
|
+
var PayloadDivinerSchema = "network.xyo.diviner.payload";
|
|
32
|
+
|
|
33
|
+
// src/Config.ts
|
|
34
|
+
var PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`;
|
|
35
|
+
|
|
36
|
+
// src/Query.ts
|
|
37
|
+
var PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`;
|
|
38
|
+
var isPayloadDivinerQueryPayload = (x) => (x == null ? void 0 : x.schema) === PayloadDivinerQuerySchema;
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
PayloadDivinerConfigSchema,
|
|
42
|
+
PayloadDivinerQuerySchema,
|
|
43
|
+
PayloadDivinerSchema,
|
|
44
|
+
isPayloadDivinerQueryPayload
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts","../../src/Query.ts"],"sourcesContent":["export * from './Config'\nexport * from './Params'\nexport * from './Predicate'\nexport * from './Query'\nexport * from './Schema'\nexport * from './SortDirection'\n","export type PayloadDivinerSchema = 'network.xyo.diviner.payload'\nexport const PayloadDivinerSchema: PayloadDivinerSchema = 'network.xyo.diviner.payload'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { PayloadDivinerSchema } from './Schema'\n\nexport type PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\nexport const PayloadDivinerConfigSchema: PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\n\nexport type PayloadDivinerConfig = DivinerConfig<{\n schema: PayloadDivinerConfigSchema\n}>\n","import { EmptyObject } from '@xyo-network/object'\nimport { Payload, Query } from '@xyo-network/payload-model'\n\nimport { PayloadDivinerPredicate } from './Predicate'\nimport { PayloadDivinerSchema } from './Schema'\n\nexport type PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\nexport const PayloadDivinerQuerySchema: PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\n\nexport type PayloadDivinerQueryPayload<T extends EmptyObject = EmptyObject> = Query<\n { schema: PayloadDivinerQuerySchema } & PayloadDivinerPredicate<T>\n>\nexport const isPayloadDivinerQueryPayload = <T extends EmptyObject = EmptyObject>(x?: Payload | null): x is PayloadDivinerQueryPayload<T> =>\n x?.schema === PayloadDivinerQuerySchema\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCO,IAAM,uBAA6C;;;ACInD,IAAM,6BAAyD,GAAG,oBAAoB;;;ACEtF,IAAM,4BAAuD,GAAG,oBAAoB;AAKpF,IAAM,+BAA+B,CAAsC,OAChF,uBAAG,YAAW;","names":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,32 +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
|
-
PayloadDivinerConfigSchema: () => PayloadDivinerConfigSchema,
|
|
24
|
-
PayloadDivinerQuerySchema: () => PayloadDivinerQuerySchema,
|
|
25
|
-
PayloadDivinerSchema: () => PayloadDivinerSchema,
|
|
26
|
-
isPayloadDivinerQueryPayload: () => isPayloadDivinerQueryPayload
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(src_exports);
|
|
29
|
-
|
|
30
1
|
// src/Schema.ts
|
|
31
2
|
var PayloadDivinerSchema = "network.xyo.diviner.payload";
|
|
32
3
|
|
|
@@ -36,11 +7,10 @@ var PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`;
|
|
|
36
7
|
// src/Query.ts
|
|
37
8
|
var PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`;
|
|
38
9
|
var isPayloadDivinerQueryPayload = (x) => (x == null ? void 0 : x.schema) === PayloadDivinerQuerySchema;
|
|
39
|
-
|
|
40
|
-
0 && (module.exports = {
|
|
10
|
+
export {
|
|
41
11
|
PayloadDivinerConfigSchema,
|
|
42
12
|
PayloadDivinerQuerySchema,
|
|
43
13
|
PayloadDivinerSchema,
|
|
44
14
|
isPayloadDivinerQueryPayload
|
|
45
|
-
}
|
|
15
|
+
};
|
|
46
16
|
//# 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/Query.ts"],"sourcesContent":["export type PayloadDivinerSchema = 'network.xyo.diviner.payload'\nexport const PayloadDivinerSchema: PayloadDivinerSchema = 'network.xyo.diviner.payload'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { PayloadDivinerSchema } from './Schema'\n\nexport type PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\nexport const PayloadDivinerConfigSchema: PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\n\nexport type PayloadDivinerConfig = DivinerConfig<{\n schema: PayloadDivinerConfigSchema\n}>\n","import { EmptyObject } from '@xyo-network/object'\nimport { Payload, Query } from '@xyo-network/payload-model'\n\nimport { PayloadDivinerPredicate } from './Predicate'\nimport { PayloadDivinerSchema } from './Schema'\n\nexport type PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\nexport const PayloadDivinerQuerySchema: PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\n\nexport type PayloadDivinerQueryPayload<T extends EmptyObject = EmptyObject> = Query<\n { schema: PayloadDivinerQuerySchema } & PayloadDivinerPredicate<T>\n>\nexport const isPayloadDivinerQueryPayload = <T extends EmptyObject = EmptyObject>(x?: Payload | null): x is PayloadDivinerQueryPayload<T> =>\n x?.schema === PayloadDivinerQuerySchema\n"],"mappings":";AACO,IAAM,uBAA6C;;;ACInD,IAAM,6BAAyD,GAAG,oBAAoB;;;ACEtF,IAAM,4BAAuD,GAAG,oBAAoB;AAKpF,IAAM,+BAA+B,CAAsC,OAChF,uBAAG,YAAW;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,18 +10,17 @@
|
|
|
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/object": "~2.84.
|
|
16
|
-
"@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/object": "~2.84.3",
|
|
16
|
+
"@xyo-network/payload-model": "~2.84.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@xylabs/ts-scripts-yarn3": "^3.2.
|
|
20
|
-
"@xylabs/tsconfig": "^3.2.
|
|
19
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.19",
|
|
20
|
+
"@xylabs/tsconfig": "^3.2.19",
|
|
21
21
|
"typescript": "^5.3.3"
|
|
22
22
|
},
|
|
23
23
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
24
|
-
"docs": "dist/docs.json",
|
|
25
24
|
"types": "dist/node/index.d.ts",
|
|
26
25
|
"exports": {
|
|
27
26
|
".": {
|
|
@@ -37,19 +36,19 @@
|
|
|
37
36
|
},
|
|
38
37
|
"node": {
|
|
39
38
|
"require": {
|
|
40
|
-
"types": "./dist/node/index.d.
|
|
41
|
-
"default": "./dist/node/index.
|
|
39
|
+
"types": "./dist/node/index.d.cts",
|
|
40
|
+
"default": "./dist/node/index.cjs"
|
|
42
41
|
},
|
|
43
42
|
"import": {
|
|
44
43
|
"types": "./dist/node/index.d.mts",
|
|
45
|
-
"default": "./dist/node/index.
|
|
44
|
+
"default": "./dist/node/index.js"
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
},
|
|
49
48
|
"./package.json": "./package.json"
|
|
50
49
|
},
|
|
51
|
-
"main": "dist/node/index.
|
|
52
|
-
"module": "dist/node/index.
|
|
50
|
+
"main": "dist/node/index.cjs",
|
|
51
|
+
"module": "dist/node/index.js",
|
|
53
52
|
"homepage": "https://xyo.network",
|
|
54
53
|
"license": "LGPL-3.0-only",
|
|
55
54
|
"publishConfig": {
|
|
@@ -60,5 +59,6 @@
|
|
|
60
59
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
61
60
|
},
|
|
62
61
|
"sideEffects": false,
|
|
63
|
-
"version": "2.84.
|
|
62
|
+
"version": "2.84.3",
|
|
63
|
+
"type": "module"
|
|
64
64
|
}
|
package/dist/node/index.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// src/Schema.ts
|
|
2
|
-
var PayloadDivinerSchema = "network.xyo.diviner.payload";
|
|
3
|
-
|
|
4
|
-
// src/Config.ts
|
|
5
|
-
var PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`;
|
|
6
|
-
|
|
7
|
-
// src/Query.ts
|
|
8
|
-
var PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`;
|
|
9
|
-
var isPayloadDivinerQueryPayload = (x) => (x == null ? void 0 : x.schema) === PayloadDivinerQuerySchema;
|
|
10
|
-
export {
|
|
11
|
-
PayloadDivinerConfigSchema,
|
|
12
|
-
PayloadDivinerQuerySchema,
|
|
13
|
-
PayloadDivinerSchema,
|
|
14
|
-
isPayloadDivinerQueryPayload
|
|
15
|
-
};
|
|
16
|
-
//# 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/Query.ts"],"sourcesContent":["export type PayloadDivinerSchema = 'network.xyo.diviner.payload'\nexport const PayloadDivinerSchema: PayloadDivinerSchema = 'network.xyo.diviner.payload'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { PayloadDivinerSchema } from './Schema'\n\nexport type PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\nexport const PayloadDivinerConfigSchema: PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\n\nexport type PayloadDivinerConfig = DivinerConfig<{\n schema: PayloadDivinerConfigSchema\n}>\n","import { EmptyObject } from '@xyo-network/object'\nimport { Payload, Query } from '@xyo-network/payload-model'\n\nimport { PayloadDivinerPredicate } from './Predicate'\nimport { PayloadDivinerSchema } from './Schema'\n\nexport type PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\nexport const PayloadDivinerQuerySchema: PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\n\nexport type PayloadDivinerQueryPayload<T extends EmptyObject = EmptyObject> = Query<\n { schema: PayloadDivinerQuerySchema } & PayloadDivinerPredicate<T>\n>\nexport const isPayloadDivinerQueryPayload = <T extends EmptyObject = EmptyObject>(x?: Payload | null): x is PayloadDivinerQueryPayload<T> =>\n x?.schema === PayloadDivinerQuerySchema\n"],"mappings":";AACO,IAAM,uBAA6C;;;ACInD,IAAM,6BAAyD,GAAG,oBAAoB;;;ACEtF,IAAM,4BAAuD,GAAG,oBAAoB;AAKpF,IAAM,+BAA+B,CAAsC,OAChF,uBAAG,YAAW;","names":[]}
|