@xyo-network/diviner-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 +60 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +10 -44
- package/dist/node/index.js.map +1 -1
- package/package.json +13 -13
- package/dist/node/index.mjs +0 -26
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
DivinerConfigSchema: () => DivinerConfigSchema,
|
|
24
|
+
DivinerDivineQuerySchema: () => DivinerDivineQuerySchema,
|
|
25
|
+
asDivinerInstance: () => asDivinerInstance,
|
|
26
|
+
asDivinerModule: () => asDivinerModule,
|
|
27
|
+
isDivinerInstance: () => isDivinerInstance,
|
|
28
|
+
isDivinerModule: () => isDivinerModule,
|
|
29
|
+
withDivinerInstance: () => withDivinerInstance,
|
|
30
|
+
withDivinerModule: () => withDivinerModule
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(src_exports);
|
|
33
|
+
|
|
34
|
+
// src/Config.ts
|
|
35
|
+
var DivinerConfigSchema = "network.xyo.diviner.config";
|
|
36
|
+
|
|
37
|
+
// src/Queries/Divine.ts
|
|
38
|
+
var DivinerDivineQuerySchema = "network.xyo.query.diviner.divine";
|
|
39
|
+
|
|
40
|
+
// src/typeChecks.ts
|
|
41
|
+
var import_module_model = require("@xyo-network/module-model");
|
|
42
|
+
var import_object = require("@xyo-network/object");
|
|
43
|
+
var isDivinerInstance = new import_module_model.IsInstanceFactory().create({ divine: "function" }, [import_module_model.isModuleInstance]);
|
|
44
|
+
var isDivinerModule = new import_module_model.IsModuleFactory().create([DivinerDivineQuerySchema]);
|
|
45
|
+
var asDivinerModule = import_object.AsObjectFactory.create(isDivinerModule);
|
|
46
|
+
var asDivinerInstance = import_object.AsObjectFactory.create(isDivinerInstance);
|
|
47
|
+
var withDivinerModule = import_module_model.WithFactory.create(isDivinerModule);
|
|
48
|
+
var withDivinerInstance = import_module_model.WithFactory.create(isDivinerInstance);
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
DivinerConfigSchema,
|
|
52
|
+
DivinerDivineQuerySchema,
|
|
53
|
+
asDivinerInstance,
|
|
54
|
+
asDivinerModule,
|
|
55
|
+
isDivinerInstance,
|
|
56
|
+
isDivinerModule,
|
|
57
|
+
withDivinerInstance,
|
|
58
|
+
withDivinerModule
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Queries/Divine.ts","../../src/typeChecks.ts"],"sourcesContent":["export * from './Config'\nexport * from './DivinerQueryFunctions'\nexport * from './EventData'\nexport * from './EventsModels'\nexport * from './Instance'\nexport * from './Module'\nexport * from './Params'\nexport * from './Queries'\nexport * from './SearchableStorage'\nexport * from './typeChecks'\n","import { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type DivinerConfigSchema = 'network.xyo.diviner.config'\nexport const DivinerConfigSchema: DivinerConfigSchema = 'network.xyo.diviner.config'\n\nexport type DivinerConfig<TConfig extends Payload | undefined = undefined> = ModuleConfig<\n {\n schema: TConfig extends Payload ? TConfig['schema'] : DivinerConfigSchema\n } & Omit<TConfig, 'schema'>\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type DivinerDivineQuerySchema = 'network.xyo.query.diviner.divine'\nexport const DivinerDivineQuerySchema: DivinerDivineQuerySchema = 'network.xyo.query.diviner.divine'\n\nexport type DivinerDivineQuery = Query<{\n schema: DivinerDivineQuerySchema\n}>\n","import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\nimport { AsObjectFactory } from '@xyo-network/object'\n\nimport { DivinerInstance } from './Instance'\nimport { DivinerModule } from './Module'\nimport { DivinerDivineQuerySchema } from './Queries'\n\nexport const isDivinerInstance = new IsInstanceFactory<DivinerInstance>().create({ divine: 'function' }, [isModuleInstance])\nexport const isDivinerModule = new IsModuleFactory<DivinerModule>().create([DivinerDivineQuerySchema])\n\nexport const asDivinerModule = AsObjectFactory.create(isDivinerModule)\nexport const asDivinerInstance = AsObjectFactory.create(isDivinerInstance)\nexport const withDivinerModule = WithFactory.create(isDivinerModule)\nexport const withDivinerInstance = WithFactory.create(isDivinerInstance)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAM,sBAA2C;;;ACDjD,IAAM,2BAAqD;;;ACHlE,0BAAkF;AAClF,oBAAgC;AAMzB,IAAM,oBAAoB,IAAI,sCAAmC,EAAE,OAAO,EAAE,QAAQ,WAAW,GAAG,CAAC,oCAAgB,CAAC;AACpH,IAAM,kBAAkB,IAAI,oCAA+B,EAAE,OAAO,CAAC,wBAAwB,CAAC;AAE9F,IAAM,kBAAkB,8BAAgB,OAAO,eAAe;AAC9D,IAAM,oBAAoB,8BAAgB,OAAO,iBAAiB;AAClE,IAAM,oBAAoB,gCAAY,OAAO,eAAe;AAC5D,IAAM,sBAAsB,gCAAY,OAAO,iBAAiB;","names":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,36 +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
|
-
DivinerConfigSchema: () => DivinerConfigSchema,
|
|
24
|
-
DivinerDivineQuerySchema: () => DivinerDivineQuerySchema,
|
|
25
|
-
asDivinerInstance: () => asDivinerInstance,
|
|
26
|
-
asDivinerModule: () => asDivinerModule,
|
|
27
|
-
isDivinerInstance: () => isDivinerInstance,
|
|
28
|
-
isDivinerModule: () => isDivinerModule,
|
|
29
|
-
withDivinerInstance: () => withDivinerInstance,
|
|
30
|
-
withDivinerModule: () => withDivinerModule
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(src_exports);
|
|
33
|
-
|
|
34
1
|
// src/Config.ts
|
|
35
2
|
var DivinerConfigSchema = "network.xyo.diviner.config";
|
|
36
3
|
|
|
@@ -38,16 +5,15 @@ var DivinerConfigSchema = "network.xyo.diviner.config";
|
|
|
38
5
|
var DivinerDivineQuerySchema = "network.xyo.query.diviner.divine";
|
|
39
6
|
|
|
40
7
|
// src/typeChecks.ts
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var isDivinerInstance = new
|
|
44
|
-
var isDivinerModule = new
|
|
45
|
-
var asDivinerModule =
|
|
46
|
-
var asDivinerInstance =
|
|
47
|
-
var withDivinerModule =
|
|
48
|
-
var withDivinerInstance =
|
|
49
|
-
|
|
50
|
-
0 && (module.exports = {
|
|
8
|
+
import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
|
|
9
|
+
import { AsObjectFactory } from "@xyo-network/object";
|
|
10
|
+
var isDivinerInstance = new IsInstanceFactory().create({ divine: "function" }, [isModuleInstance]);
|
|
11
|
+
var isDivinerModule = new IsModuleFactory().create([DivinerDivineQuerySchema]);
|
|
12
|
+
var asDivinerModule = AsObjectFactory.create(isDivinerModule);
|
|
13
|
+
var asDivinerInstance = AsObjectFactory.create(isDivinerInstance);
|
|
14
|
+
var withDivinerModule = WithFactory.create(isDivinerModule);
|
|
15
|
+
var withDivinerInstance = WithFactory.create(isDivinerInstance);
|
|
16
|
+
export {
|
|
51
17
|
DivinerConfigSchema,
|
|
52
18
|
DivinerDivineQuerySchema,
|
|
53
19
|
asDivinerInstance,
|
|
@@ -56,5 +22,5 @@ var withDivinerInstance = import_module_model.WithFactory.create(isDivinerInstan
|
|
|
56
22
|
isDivinerModule,
|
|
57
23
|
withDivinerInstance,
|
|
58
24
|
withDivinerModule
|
|
59
|
-
}
|
|
25
|
+
};
|
|
60
26
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts","../../src/Queries/Divine.ts","../../src/typeChecks.ts"],"sourcesContent":["import { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type DivinerConfigSchema = 'network.xyo.diviner.config'\nexport const DivinerConfigSchema: DivinerConfigSchema = 'network.xyo.diviner.config'\n\nexport type DivinerConfig<TConfig extends Payload | undefined = undefined> = ModuleConfig<\n {\n schema: TConfig extends Payload ? TConfig['schema'] : DivinerConfigSchema\n } & Omit<TConfig, 'schema'>\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type DivinerDivineQuerySchema = 'network.xyo.query.diviner.divine'\nexport const DivinerDivineQuerySchema: DivinerDivineQuerySchema = 'network.xyo.query.diviner.divine'\n\nexport type DivinerDivineQuery = Query<{\n schema: DivinerDivineQuerySchema\n}>\n","import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\nimport { AsObjectFactory } from '@xyo-network/object'\n\nimport { DivinerInstance } from './Instance'\nimport { DivinerModule } from './Module'\nimport { DivinerDivineQuerySchema } from './Queries'\n\nexport const isDivinerInstance = new IsInstanceFactory<DivinerInstance>().create({ divine: 'function' }, [isModuleInstance])\nexport const isDivinerModule = new IsModuleFactory<DivinerModule>().create([DivinerDivineQuerySchema])\n\nexport const asDivinerModule = AsObjectFactory.create(isDivinerModule)\nexport const asDivinerInstance = AsObjectFactory.create(isDivinerInstance)\nexport const withDivinerModule = WithFactory.create(isDivinerModule)\nexport const withDivinerInstance = WithFactory.create(isDivinerInstance)\n"],"mappings":";AAIO,IAAM,sBAA2C;;;ACDjD,IAAM,2BAAqD;;;ACHlE,SAAS,mBAAmB,iBAAiB,kBAAkB,mBAAmB;AAClF,SAAS,uBAAuB;AAMzB,IAAM,oBAAoB,IAAI,kBAAmC,EAAE,OAAO,EAAE,QAAQ,WAAW,GAAG,CAAC,gBAAgB,CAAC;AACpH,IAAM,kBAAkB,IAAI,gBAA+B,EAAE,OAAO,CAAC,wBAAwB,CAAC;AAE9F,IAAM,kBAAkB,gBAAgB,OAAO,eAAe;AAC9D,IAAM,oBAAoB,gBAAgB,OAAO,iBAAiB;AAClE,IAAM,oBAAoB,YAAY,OAAO,eAAe;AAC5D,IAAM,sBAAsB,YAAY,OAAO,iBAAiB;","names":[]}
|
package/package.json
CHANGED
|
@@ -11,18 +11,17 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/promise": "^2.13.20",
|
|
14
|
-
"@xyo-network/module-events": "~2.84.
|
|
15
|
-
"@xyo-network/module-model": "~2.84.
|
|
16
|
-
"@xyo-network/object": "~2.84.
|
|
17
|
-
"@xyo-network/payload-model": "~2.84.
|
|
14
|
+
"@xyo-network/module-events": "~2.84.3",
|
|
15
|
+
"@xyo-network/module-model": "~2.84.3",
|
|
16
|
+
"@xyo-network/object": "~2.84.3",
|
|
17
|
+
"@xyo-network/payload-model": "~2.84.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^3.2.
|
|
21
|
-
"@xylabs/tsconfig": "^3.2.
|
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.19",
|
|
21
|
+
"@xylabs/tsconfig": "^3.2.19",
|
|
22
22
|
"typescript": "^5.3.3"
|
|
23
23
|
},
|
|
24
24
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
25
|
-
"docs": "dist/docs.json",
|
|
26
25
|
"types": "dist/node/index.d.ts",
|
|
27
26
|
"exports": {
|
|
28
27
|
".": {
|
|
@@ -38,19 +37,19 @@
|
|
|
38
37
|
},
|
|
39
38
|
"node": {
|
|
40
39
|
"require": {
|
|
41
|
-
"types": "./dist/node/index.d.
|
|
42
|
-
"default": "./dist/node/index.
|
|
40
|
+
"types": "./dist/node/index.d.cts",
|
|
41
|
+
"default": "./dist/node/index.cjs"
|
|
43
42
|
},
|
|
44
43
|
"import": {
|
|
45
44
|
"types": "./dist/node/index.d.mts",
|
|
46
|
-
"default": "./dist/node/index.
|
|
45
|
+
"default": "./dist/node/index.js"
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
},
|
|
50
49
|
"./package.json": "./package.json"
|
|
51
50
|
},
|
|
52
|
-
"main": "dist/node/index.
|
|
53
|
-
"module": "dist/node/index.
|
|
51
|
+
"main": "dist/node/index.cjs",
|
|
52
|
+
"module": "dist/node/index.js",
|
|
54
53
|
"homepage": "https://xyo.network",
|
|
55
54
|
"license": "LGPL-3.0-only",
|
|
56
55
|
"publishConfig": {
|
|
@@ -61,5 +60,6 @@
|
|
|
61
60
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
62
61
|
},
|
|
63
62
|
"sideEffects": false,
|
|
64
|
-
"version": "2.84.
|
|
63
|
+
"version": "2.84.3",
|
|
64
|
+
"type": "module"
|
|
65
65
|
}
|
package/dist/node/index.mjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// src/Config.ts
|
|
2
|
-
var DivinerConfigSchema = "network.xyo.diviner.config";
|
|
3
|
-
|
|
4
|
-
// src/Queries/Divine.ts
|
|
5
|
-
var DivinerDivineQuerySchema = "network.xyo.query.diviner.divine";
|
|
6
|
-
|
|
7
|
-
// src/typeChecks.ts
|
|
8
|
-
import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
|
|
9
|
-
import { AsObjectFactory } from "@xyo-network/object";
|
|
10
|
-
var isDivinerInstance = new IsInstanceFactory().create({ divine: "function" }, [isModuleInstance]);
|
|
11
|
-
var isDivinerModule = new IsModuleFactory().create([DivinerDivineQuerySchema]);
|
|
12
|
-
var asDivinerModule = AsObjectFactory.create(isDivinerModule);
|
|
13
|
-
var asDivinerInstance = AsObjectFactory.create(isDivinerInstance);
|
|
14
|
-
var withDivinerModule = WithFactory.create(isDivinerModule);
|
|
15
|
-
var withDivinerInstance = WithFactory.create(isDivinerInstance);
|
|
16
|
-
export {
|
|
17
|
-
DivinerConfigSchema,
|
|
18
|
-
DivinerDivineQuerySchema,
|
|
19
|
-
asDivinerInstance,
|
|
20
|
-
asDivinerModule,
|
|
21
|
-
isDivinerInstance,
|
|
22
|
-
isDivinerModule,
|
|
23
|
-
withDivinerInstance,
|
|
24
|
-
withDivinerModule
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Config.ts","../../src/Queries/Divine.ts","../../src/typeChecks.ts"],"sourcesContent":["import { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type DivinerConfigSchema = 'network.xyo.diviner.config'\nexport const DivinerConfigSchema: DivinerConfigSchema = 'network.xyo.diviner.config'\n\nexport type DivinerConfig<TConfig extends Payload | undefined = undefined> = ModuleConfig<\n {\n schema: TConfig extends Payload ? TConfig['schema'] : DivinerConfigSchema\n } & Omit<TConfig, 'schema'>\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type DivinerDivineQuerySchema = 'network.xyo.query.diviner.divine'\nexport const DivinerDivineQuerySchema: DivinerDivineQuerySchema = 'network.xyo.query.diviner.divine'\n\nexport type DivinerDivineQuery = Query<{\n schema: DivinerDivineQuerySchema\n}>\n","import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\nimport { AsObjectFactory } from '@xyo-network/object'\n\nimport { DivinerInstance } from './Instance'\nimport { DivinerModule } from './Module'\nimport { DivinerDivineQuerySchema } from './Queries'\n\nexport const isDivinerInstance = new IsInstanceFactory<DivinerInstance>().create({ divine: 'function' }, [isModuleInstance])\nexport const isDivinerModule = new IsModuleFactory<DivinerModule>().create([DivinerDivineQuerySchema])\n\nexport const asDivinerModule = AsObjectFactory.create(isDivinerModule)\nexport const asDivinerInstance = AsObjectFactory.create(isDivinerInstance)\nexport const withDivinerModule = WithFactory.create(isDivinerModule)\nexport const withDivinerInstance = WithFactory.create(isDivinerInstance)\n"],"mappings":";AAIO,IAAM,sBAA2C;;;ACDjD,IAAM,2BAAqD;;;ACHlE,SAAS,mBAAmB,iBAAiB,kBAAkB,mBAAmB;AAClF,SAAS,uBAAuB;AAMzB,IAAM,oBAAoB,IAAI,kBAAmC,EAAE,OAAO,EAAE,QAAQ,WAAW,GAAG,CAAC,gBAAgB,CAAC;AACpH,IAAM,kBAAkB,IAAI,gBAA+B,EAAE,OAAO,CAAC,wBAAwB,CAAC;AAE9F,IAAM,kBAAkB,gBAAgB,OAAO,eAAe;AAC9D,IAAM,oBAAoB,gBAAgB,OAAO,iBAAiB;AAClE,IAAM,oBAAoB,YAAY,OAAO,eAAe;AAC5D,IAAM,sBAAsB,YAAY,OAAO,iBAAiB;","names":[]}
|