@xyo-network/diviner-forecasting-model 2.84.1 → 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 +54 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +2 -34
- package/dist/node/index.js.map +1 -1
- package/package.json +12 -12
- package/dist/node/index.mjs +0 -22
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
ForecastPayloadSchema: () => ForecastPayloadSchema,
|
|
24
|
+
ForecastingDivinerConfigSchema: () => ForecastingDivinerConfigSchema,
|
|
25
|
+
ForecastingDivinerQuerySchema: () => ForecastingDivinerQuerySchema,
|
|
26
|
+
ForecastingDivinerSchema: () => ForecastingDivinerSchema,
|
|
27
|
+
isForecastPayload: () => isForecastPayload,
|
|
28
|
+
isForecastingDivinerQueryPayload: () => isForecastingDivinerQueryPayload
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(src_exports);
|
|
31
|
+
|
|
32
|
+
// src/Schema.ts
|
|
33
|
+
var ForecastingDivinerSchema = "network.xyo.diviner.forecasting";
|
|
34
|
+
|
|
35
|
+
// src/Config/Config.ts
|
|
36
|
+
var ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`;
|
|
37
|
+
|
|
38
|
+
// src/Payload/Payload.ts
|
|
39
|
+
var ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`;
|
|
40
|
+
var isForecastPayload = (x) => (x == null ? void 0 : x.schema) === ForecastPayloadSchema;
|
|
41
|
+
|
|
42
|
+
// src/Query.ts
|
|
43
|
+
var ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
|
|
44
|
+
var isForecastingDivinerQueryPayload = (x) => (x == null ? void 0 : x.schema) === ForecastingDivinerQuerySchema;
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
ForecastPayloadSchema,
|
|
48
|
+
ForecastingDivinerConfigSchema,
|
|
49
|
+
ForecastingDivinerQuerySchema,
|
|
50
|
+
ForecastingDivinerSchema,
|
|
51
|
+
isForecastPayload,
|
|
52
|
+
isForecastingDivinerQueryPayload
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config/Config.ts","../../src/Payload/Payload.ts","../../src/Query.ts"],"sourcesContent":["export * from './Config'\nexport * from './ForecastingMethod'\nexport * from './Payload'\nexport * from './PayloadValueTransformer'\nexport * from './Query'\nexport * from './Schema'\n","export type ForecastingDivinerSchema = 'network.xyo.diviner.forecasting'\nexport const ForecastingDivinerSchema: ForecastingDivinerSchema = 'network.xyo.diviner.forecasting'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\nimport { ModuleFilter } from '@xyo-network/module-model'\n\nimport { ForecastingDivinerSchema } from '../Schema'\nimport { ForecastingSettings } from './ForecastingSettings'\nimport { TransformerSettings } from './TransformerSettings'\n\nexport type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`\nexport const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`\n\nexport type ForecastingDivinerConfig = DivinerConfig<\n {\n boundWitnessDiviner?: ModuleFilter\n schema: ForecastingDivinerConfigSchema\n } & ForecastingSettings &\n TransformerSettings\n>\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema'\nimport { Forecast } from './Forecast'\n\nexport type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\nexport const ForecastPayloadSchema: ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\n\nexport type ForecastPayload = Payload<{\n schema: ForecastPayloadSchema\n sources: string[]\n values: Forecast[]\n}>\nexport const isForecastPayload = (x?: Payload | null): x is ForecastPayload => x?.schema === ForecastPayloadSchema\n","import { Payload, Query } from '@xyo-network/payload-model'\n\nimport { ForecastingSettings } from './Config'\nimport { ForecastingDivinerSchema } from './Schema'\n\nexport type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`\nexport const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`\n\nexport type ForecastingDivinerQueryPayload = Query<{ schema: ForecastingDivinerQuerySchema } & Partial<ForecastingSettings>>\nexport const isForecastingDivinerQueryPayload = (x?: Payload | null): x is ForecastingDivinerQueryPayload =>\n x?.schema === ForecastingDivinerQuerySchema\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCO,IAAM,2BAAqD;;;ACO3D,IAAM,iCAAiE,GAAG,wBAAwB;;;ACFlG,IAAM,wBAA+C,GAAG,wBAAwB;AAOhF,IAAM,oBAAoB,CAAC,OAA6C,uBAAG,YAAW;;;ACPtF,IAAM,gCAA+D,GAAG,wBAAwB;AAGhG,IAAM,mCAAmC,CAAC,OAC/C,uBAAG,YAAW;","names":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,34 +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
|
-
ForecastPayloadSchema: () => ForecastPayloadSchema,
|
|
24
|
-
ForecastingDivinerConfigSchema: () => ForecastingDivinerConfigSchema,
|
|
25
|
-
ForecastingDivinerQuerySchema: () => ForecastingDivinerQuerySchema,
|
|
26
|
-
ForecastingDivinerSchema: () => ForecastingDivinerSchema,
|
|
27
|
-
isForecastPayload: () => isForecastPayload,
|
|
28
|
-
isForecastingDivinerQueryPayload: () => isForecastingDivinerQueryPayload
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(src_exports);
|
|
31
|
-
|
|
32
1
|
// src/Schema.ts
|
|
33
2
|
var ForecastingDivinerSchema = "network.xyo.diviner.forecasting";
|
|
34
3
|
|
|
@@ -42,13 +11,12 @@ var isForecastPayload = (x) => (x == null ? void 0 : x.schema) === ForecastPaylo
|
|
|
42
11
|
// src/Query.ts
|
|
43
12
|
var ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
|
|
44
13
|
var isForecastingDivinerQueryPayload = (x) => (x == null ? void 0 : x.schema) === ForecastingDivinerQuerySchema;
|
|
45
|
-
|
|
46
|
-
0 && (module.exports = {
|
|
14
|
+
export {
|
|
47
15
|
ForecastPayloadSchema,
|
|
48
16
|
ForecastingDivinerConfigSchema,
|
|
49
17
|
ForecastingDivinerQuerySchema,
|
|
50
18
|
ForecastingDivinerSchema,
|
|
51
19
|
isForecastPayload,
|
|
52
20
|
isForecastingDivinerQueryPayload
|
|
53
|
-
}
|
|
21
|
+
};
|
|
54
22
|
//# 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/Config.ts","../../src/Payload/Payload.ts","../../src/Query.ts"],"sourcesContent":["export type ForecastingDivinerSchema = 'network.xyo.diviner.forecasting'\nexport const ForecastingDivinerSchema: ForecastingDivinerSchema = 'network.xyo.diviner.forecasting'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\nimport { ModuleFilter } from '@xyo-network/module-model'\n\nimport { ForecastingDivinerSchema } from '../Schema'\nimport { ForecastingSettings } from './ForecastingSettings'\nimport { TransformerSettings } from './TransformerSettings'\n\nexport type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`\nexport const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`\n\nexport type ForecastingDivinerConfig = DivinerConfig<\n {\n boundWitnessDiviner?: ModuleFilter\n schema: ForecastingDivinerConfigSchema\n } & ForecastingSettings &\n TransformerSettings\n>\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema'\nimport { Forecast } from './Forecast'\n\nexport type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\nexport const ForecastPayloadSchema: ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\n\nexport type ForecastPayload = Payload<{\n schema: ForecastPayloadSchema\n sources: string[]\n values: Forecast[]\n}>\nexport const isForecastPayload = (x?: Payload | null): x is ForecastPayload => x?.schema === ForecastPayloadSchema\n","import { Payload, Query } from '@xyo-network/payload-model'\n\nimport { ForecastingSettings } from './Config'\nimport { ForecastingDivinerSchema } from './Schema'\n\nexport type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`\nexport const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`\n\nexport type ForecastingDivinerQueryPayload = Query<{ schema: ForecastingDivinerQuerySchema } & Partial<ForecastingSettings>>\nexport const isForecastingDivinerQueryPayload = (x?: Payload | null): x is ForecastingDivinerQueryPayload =>\n x?.schema === ForecastingDivinerQuerySchema\n"],"mappings":";AACO,IAAM,2BAAqD;;;ACO3D,IAAM,iCAAiE,GAAG,wBAAwB;;;ACFlG,IAAM,wBAA+C,GAAG,wBAAwB;AAOhF,IAAM,oBAAoB,CAAC,OAA6C,uBAAG,YAAW;;;ACPtF,IAAM,gCAA+D,GAAG,wBAAwB;AAGhG,IAAM,mCAAmC,CAAC,OAC/C,uBAAG,YAAW;","names":[]}
|
package/package.json
CHANGED
|
@@ -11,17 +11,16 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/promise": "^2.13.20",
|
|
14
|
-
"@xyo-network/diviner-model": "~2.84.
|
|
15
|
-
"@xyo-network/module-model": "~2.84.
|
|
16
|
-
"@xyo-network/payload-model": "~2.84.
|
|
14
|
+
"@xyo-network/diviner-model": "~2.84.3",
|
|
15
|
+
"@xyo-network/module-model": "~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,22 +0,0 @@
|
|
|
1
|
-
// src/Schema.ts
|
|
2
|
-
var ForecastingDivinerSchema = "network.xyo.diviner.forecasting";
|
|
3
|
-
|
|
4
|
-
// src/Config/Config.ts
|
|
5
|
-
var ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`;
|
|
6
|
-
|
|
7
|
-
// src/Payload/Payload.ts
|
|
8
|
-
var ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`;
|
|
9
|
-
var isForecastPayload = (x) => (x == null ? void 0 : x.schema) === ForecastPayloadSchema;
|
|
10
|
-
|
|
11
|
-
// src/Query.ts
|
|
12
|
-
var ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
|
|
13
|
-
var isForecastingDivinerQueryPayload = (x) => (x == null ? void 0 : x.schema) === ForecastingDivinerQuerySchema;
|
|
14
|
-
export {
|
|
15
|
-
ForecastPayloadSchema,
|
|
16
|
-
ForecastingDivinerConfigSchema,
|
|
17
|
-
ForecastingDivinerQuerySchema,
|
|
18
|
-
ForecastingDivinerSchema,
|
|
19
|
-
isForecastPayload,
|
|
20
|
-
isForecastingDivinerQueryPayload
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts","../../src/Config/Config.ts","../../src/Payload/Payload.ts","../../src/Query.ts"],"sourcesContent":["export type ForecastingDivinerSchema = 'network.xyo.diviner.forecasting'\nexport const ForecastingDivinerSchema: ForecastingDivinerSchema = 'network.xyo.diviner.forecasting'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\nimport { ModuleFilter } from '@xyo-network/module-model'\n\nimport { ForecastingDivinerSchema } from '../Schema'\nimport { ForecastingSettings } from './ForecastingSettings'\nimport { TransformerSettings } from './TransformerSettings'\n\nexport type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`\nexport const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`\n\nexport type ForecastingDivinerConfig = DivinerConfig<\n {\n boundWitnessDiviner?: ModuleFilter\n schema: ForecastingDivinerConfigSchema\n } & ForecastingSettings &\n TransformerSettings\n>\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema'\nimport { Forecast } from './Forecast'\n\nexport type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\nexport const ForecastPayloadSchema: ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\n\nexport type ForecastPayload = Payload<{\n schema: ForecastPayloadSchema\n sources: string[]\n values: Forecast[]\n}>\nexport const isForecastPayload = (x?: Payload | null): x is ForecastPayload => x?.schema === ForecastPayloadSchema\n","import { Payload, Query } from '@xyo-network/payload-model'\n\nimport { ForecastingSettings } from './Config'\nimport { ForecastingDivinerSchema } from './Schema'\n\nexport type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`\nexport const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`\n\nexport type ForecastingDivinerQueryPayload = Query<{ schema: ForecastingDivinerQuerySchema } & Partial<ForecastingSettings>>\nexport const isForecastingDivinerQueryPayload = (x?: Payload | null): x is ForecastingDivinerQueryPayload =>\n x?.schema === ForecastingDivinerQuerySchema\n"],"mappings":";AACO,IAAM,2BAAqD;;;ACO3D,IAAM,iCAAiE,GAAG,wBAAwB;;;ACFlG,IAAM,wBAA+C,GAAG,wBAAwB;AAOhF,IAAM,oBAAoB,CAAC,OAA6C,uBAAG,YAAW;;;ACPtF,IAAM,gCAA+D,GAAG,wBAAwB;AAGhG,IAAM,mCAAmC,CAAC,OAC/C,uBAAG,YAAW;","names":[]}
|