@xyo-network/diviner-forecasting-model 2.72.8 → 2.73.0
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/index.d.mts +64 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +22 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +32 -19
- package/tsup.config.ts +16 -0
- package/dist/cjs/Config/Config.js +0 -6
- package/dist/cjs/Config/Config.js.map +0 -1
- package/dist/cjs/Config/ForecastingSettings.js +0 -3
- package/dist/cjs/Config/ForecastingSettings.js.map +0 -1
- package/dist/cjs/Config/TransformerSettings.js +0 -3
- package/dist/cjs/Config/TransformerSettings.js.map +0 -1
- package/dist/cjs/Config/index.js +0 -7
- package/dist/cjs/Config/index.js.map +0 -1
- package/dist/cjs/ForecastingMethod.js +0 -3
- package/dist/cjs/ForecastingMethod.js.map +0 -1
- package/dist/cjs/Payload/Forecast.js +0 -3
- package/dist/cjs/Payload/Forecast.js.map +0 -1
- package/dist/cjs/Payload/Payload.js +0 -8
- package/dist/cjs/Payload/Payload.js.map +0 -1
- package/dist/cjs/Payload/index.js +0 -6
- package/dist/cjs/Payload/index.js.map +0 -1
- package/dist/cjs/PayloadValueTransformer.js +0 -3
- package/dist/cjs/PayloadValueTransformer.js.map +0 -1
- package/dist/cjs/Query.js +0 -8
- package/dist/cjs/Query.js.map +0 -1
- package/dist/cjs/Schema.js +0 -5
- package/dist/cjs/Schema.js.map +0 -1
- package/dist/cjs/index.js +0 -10
- package/dist/cjs/index.js.map +0 -1
- package/dist/docs.json +0 -1835
- package/dist/esm/Config/Config.js +0 -3
- package/dist/esm/Config/Config.js.map +0 -1
- package/dist/esm/Config/ForecastingSettings.js +0 -2
- package/dist/esm/Config/ForecastingSettings.js.map +0 -1
- package/dist/esm/Config/TransformerSettings.js +0 -2
- package/dist/esm/Config/TransformerSettings.js.map +0 -1
- package/dist/esm/Config/index.js +0 -4
- package/dist/esm/Config/index.js.map +0 -1
- package/dist/esm/ForecastingMethod.js +0 -2
- package/dist/esm/ForecastingMethod.js.map +0 -1
- package/dist/esm/Payload/Forecast.js +0 -2
- package/dist/esm/Payload/Forecast.js.map +0 -1
- package/dist/esm/Payload/Payload.js +0 -4
- package/dist/esm/Payload/Payload.js.map +0 -1
- package/dist/esm/Payload/index.js +0 -3
- package/dist/esm/Payload/index.js.map +0 -1
- package/dist/esm/PayloadValueTransformer.js +0 -2
- package/dist/esm/PayloadValueTransformer.js.map +0 -1
- package/dist/esm/Query.js +0 -4
- package/dist/esm/Query.js.map +0 -1
- package/dist/esm/Schema.js +0 -2
- package/dist/esm/Schema.js.map +0 -1
- package/dist/esm/index.js +0 -7
- package/dist/esm/index.js.map +0 -1
- package/dist/types/Config/Config.d.ts +0 -12
- package/dist/types/Config/Config.d.ts.map +0 -1
- package/dist/types/Config/ForecastingSettings.d.ts +0 -9
- package/dist/types/Config/ForecastingSettings.d.ts.map +0 -1
- package/dist/types/Config/TransformerSettings.d.ts +0 -4
- package/dist/types/Config/TransformerSettings.d.ts.map +0 -1
- package/dist/types/Config/index.d.ts +0 -4
- package/dist/types/Config/index.d.ts.map +0 -1
- package/dist/types/ForecastingMethod.d.ts +0 -6
- package/dist/types/ForecastingMethod.d.ts.map +0 -1
- package/dist/types/Payload/Forecast.d.ts +0 -6
- package/dist/types/Payload/Forecast.d.ts.map +0 -1
- package/dist/types/Payload/Payload.d.ts +0 -16
- package/dist/types/Payload/Payload.d.ts.map +0 -1
- package/dist/types/Payload/index.d.ts +0 -3
- package/dist/types/Payload/index.d.ts.map +0 -1
- package/dist/types/PayloadValueTransformer.d.ts +0 -3
- package/dist/types/PayloadValueTransformer.d.ts.map +0 -1
- package/dist/types/Query.d.ts +0 -14
- package/dist/types/Query.d.ts.map +0 -1
- package/dist/types/Schema.d.ts +0 -3
- package/dist/types/Schema.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -7
- package/dist/types/index.d.ts.map +0 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DivinerConfig } from '@xyo-network/diviner-model';
|
|
2
|
+
import { ModuleFilter } from '@xyo-network/module-model';
|
|
3
|
+
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
4
|
+
import { Payload, Query } from '@xyo-network/payload-model';
|
|
5
|
+
import { Promisable } from '@xyo-network/promise';
|
|
6
|
+
|
|
7
|
+
type ForecastingDivinerSchema = 'network.xyo.diviner.forecasting';
|
|
8
|
+
declare const ForecastingDivinerSchema: ForecastingDivinerSchema;
|
|
9
|
+
|
|
10
|
+
interface ForecastingSettings {
|
|
11
|
+
forecastingMethod?: string;
|
|
12
|
+
forecastingSteps?: number;
|
|
13
|
+
timestamp?: number;
|
|
14
|
+
windowSize?: number;
|
|
15
|
+
witnessAddresses?: string[];
|
|
16
|
+
witnessSchema?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface TransformerSettings {
|
|
20
|
+
jsonPathExpression?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`;
|
|
24
|
+
declare const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema;
|
|
25
|
+
type ForecastingDivinerConfig = DivinerConfig<{
|
|
26
|
+
boundWitnessDiviner?: ModuleFilter;
|
|
27
|
+
schema: ForecastingDivinerConfigSchema;
|
|
28
|
+
} & ForecastingSettings & TransformerSettings>;
|
|
29
|
+
|
|
30
|
+
interface Forecast {
|
|
31
|
+
error?: number;
|
|
32
|
+
timestamp?: number;
|
|
33
|
+
value: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`;
|
|
37
|
+
declare const ForecastPayloadSchema: ForecastPayloadSchema;
|
|
38
|
+
type ForecastPayload = Payload<{
|
|
39
|
+
schema: ForecastPayloadSchema;
|
|
40
|
+
values: Forecast[];
|
|
41
|
+
}>;
|
|
42
|
+
declare const isForecastPayload: (x?: Payload | null) => x is _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
43
|
+
schema: ForecastPayloadSchema;
|
|
44
|
+
values: Forecast[];
|
|
45
|
+
} & {
|
|
46
|
+
schema: "network.xyo.diviner.forecasting.forecast";
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
type PayloadValueTransformer = (payload: Payload) => number;
|
|
50
|
+
|
|
51
|
+
type ForecastingMethod = (payloads: Payload[], transformers: PayloadValueTransformer) => Promisable<Forecast[]>;
|
|
52
|
+
|
|
53
|
+
type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
|
|
54
|
+
declare const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema;
|
|
55
|
+
type ForecastingDivinerQueryPayload = Query<{
|
|
56
|
+
schema: ForecastingDivinerQuerySchema;
|
|
57
|
+
} & Partial<ForecastingSettings>>;
|
|
58
|
+
declare const isForecastingDivinerQueryPayload: (x?: Payload | null) => x is _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
59
|
+
schema: ForecastingDivinerQuerySchema;
|
|
60
|
+
} & Partial<ForecastingSettings> & _xyo_network_payload_model.QueryFields & {
|
|
61
|
+
schema: "network.xyo.diviner.forecasting.query";
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { Forecast, ForecastPayload, ForecastPayloadSchema, ForecastingDivinerConfig, ForecastingDivinerConfigSchema, ForecastingDivinerQueryPayload, ForecastingDivinerQuerySchema, ForecastingDivinerSchema, ForecastingMethod, ForecastingSettings, PayloadValueTransformer, TransformerSettings, isForecastPayload, isForecastingDivinerQueryPayload };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DivinerConfig } from '@xyo-network/diviner-model';
|
|
2
|
+
import { ModuleFilter } from '@xyo-network/module-model';
|
|
3
|
+
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
4
|
+
import { Payload, Query } from '@xyo-network/payload-model';
|
|
5
|
+
import { Promisable } from '@xyo-network/promise';
|
|
6
|
+
|
|
7
|
+
type ForecastingDivinerSchema = 'network.xyo.diviner.forecasting';
|
|
8
|
+
declare const ForecastingDivinerSchema: ForecastingDivinerSchema;
|
|
9
|
+
|
|
10
|
+
interface ForecastingSettings {
|
|
11
|
+
forecastingMethod?: string;
|
|
12
|
+
forecastingSteps?: number;
|
|
13
|
+
timestamp?: number;
|
|
14
|
+
windowSize?: number;
|
|
15
|
+
witnessAddresses?: string[];
|
|
16
|
+
witnessSchema?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface TransformerSettings {
|
|
20
|
+
jsonPathExpression?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`;
|
|
24
|
+
declare const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema;
|
|
25
|
+
type ForecastingDivinerConfig = DivinerConfig<{
|
|
26
|
+
boundWitnessDiviner?: ModuleFilter;
|
|
27
|
+
schema: ForecastingDivinerConfigSchema;
|
|
28
|
+
} & ForecastingSettings & TransformerSettings>;
|
|
29
|
+
|
|
30
|
+
interface Forecast {
|
|
31
|
+
error?: number;
|
|
32
|
+
timestamp?: number;
|
|
33
|
+
value: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`;
|
|
37
|
+
declare const ForecastPayloadSchema: ForecastPayloadSchema;
|
|
38
|
+
type ForecastPayload = Payload<{
|
|
39
|
+
schema: ForecastPayloadSchema;
|
|
40
|
+
values: Forecast[];
|
|
41
|
+
}>;
|
|
42
|
+
declare const isForecastPayload: (x?: Payload | null) => x is _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
43
|
+
schema: ForecastPayloadSchema;
|
|
44
|
+
values: Forecast[];
|
|
45
|
+
} & {
|
|
46
|
+
schema: "network.xyo.diviner.forecasting.forecast";
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
type PayloadValueTransformer = (payload: Payload) => number;
|
|
50
|
+
|
|
51
|
+
type ForecastingMethod = (payloads: Payload[], transformers: PayloadValueTransformer) => Promisable<Forecast[]>;
|
|
52
|
+
|
|
53
|
+
type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
|
|
54
|
+
declare const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema;
|
|
55
|
+
type ForecastingDivinerQueryPayload = Query<{
|
|
56
|
+
schema: ForecastingDivinerQuerySchema;
|
|
57
|
+
} & Partial<ForecastingSettings>>;
|
|
58
|
+
declare const isForecastingDivinerQueryPayload: (x?: Payload | null) => x is _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
59
|
+
schema: ForecastingDivinerQuerySchema;
|
|
60
|
+
} & Partial<ForecastingSettings> & _xyo_network_payload_model.QueryFields & {
|
|
61
|
+
schema: "network.xyo.diviner.forecasting.query";
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { Forecast, ForecastPayload, ForecastPayloadSchema, ForecastingDivinerConfig, ForecastingDivinerConfigSchema, ForecastingDivinerQueryPayload, ForecastingDivinerQuerySchema, ForecastingDivinerSchema, ForecastingMethod, ForecastingSettings, PayloadValueTransformer, TransformerSettings, isForecastPayload, isForecastingDivinerQueryPayload };
|
package/dist/index.js
ADDED
|
@@ -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?.schema === ForecastPayloadSchema;
|
|
41
|
+
|
|
42
|
+
// src/Query.ts
|
|
43
|
+
var ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
|
|
44
|
+
var isForecastingDivinerQueryPayload = (x) => 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.js.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 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;AAMhF,IAAM,oBAAoB,CAAC,MAA6C,GAAG,WAAW;;;ACNtF,IAAM,gCAA+D,GAAG,wBAAwB;AAGhG,IAAM,mCAAmC,CAAC,MAC/C,GAAG,WAAW;","names":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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?.schema === ForecastPayloadSchema;
|
|
10
|
+
|
|
11
|
+
// src/Query.ts
|
|
12
|
+
var ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
|
|
13
|
+
var isForecastingDivinerQueryPayload = (x) => x?.schema === ForecastingDivinerQuerySchema;
|
|
14
|
+
export {
|
|
15
|
+
ForecastPayloadSchema,
|
|
16
|
+
ForecastingDivinerConfigSchema,
|
|
17
|
+
ForecastingDivinerQuerySchema,
|
|
18
|
+
ForecastingDivinerSchema,
|
|
19
|
+
isForecastPayload,
|
|
20
|
+
isForecastingDivinerQueryPayload
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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 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;AAMhF,IAAM,oBAAoB,CAAC,MAA6C,GAAG,WAAW;;;ACNtF,IAAM,gCAA+D,GAAG,wBAAwB;AAGhG,IAAM,mCAAmC,CAAC,MAC/C,GAAG,WAAW;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,38 +10,52 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/diviner-model": "~2.
|
|
14
|
-
"@xyo-network/module-model": "~2.
|
|
15
|
-
"@xyo-network/payload-model": "~2.
|
|
16
|
-
"@xyo-network/promise": "~2.
|
|
13
|
+
"@xyo-network/diviner-model": "~2.73.0",
|
|
14
|
+
"@xyo-network/module-model": "~2.73.0",
|
|
15
|
+
"@xyo-network/payload-model": "~2.73.0",
|
|
16
|
+
"@xyo-network/promise": "~2.73.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@xylabs/ts-scripts-yarn3": "^2.19.
|
|
20
|
-
"@xylabs/tsconfig": "^2.19.
|
|
19
|
+
"@xylabs/ts-scripts-yarn3": "^2.19.5",
|
|
20
|
+
"@xylabs/tsconfig": "^2.19.5",
|
|
21
|
+
"publint": "^0.2.2",
|
|
22
|
+
"tsup": "^7.2.0",
|
|
21
23
|
"typescript": "^5.2.2"
|
|
22
24
|
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"package-compile": "tsup && publint",
|
|
27
|
+
"package-recompile": "tsup && publint"
|
|
28
|
+
},
|
|
23
29
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
24
|
-
"browser": "dist/esm/index.js",
|
|
25
30
|
"docs": "dist/docs.json",
|
|
31
|
+
"types": "dist/index.d.ts",
|
|
26
32
|
"exports": {
|
|
27
33
|
".": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
},
|
|
32
|
-
"browser": {
|
|
33
|
-
"import": "./dist/esm/index.js",
|
|
34
|
-
"require": "./dist/cjs/index.js"
|
|
34
|
+
"require": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"default": "./dist/index.js"
|
|
35
37
|
},
|
|
36
|
-
"
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/index.d.mts",
|
|
40
|
+
"default": "./dist/index.mjs"
|
|
41
|
+
}
|
|
37
42
|
},
|
|
38
43
|
"./dist/docs.json": {
|
|
39
44
|
"default": "./dist/docs.json"
|
|
40
45
|
},
|
|
46
|
+
"./cjs": {
|
|
47
|
+
"default": "./dist/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./docs": {
|
|
50
|
+
"default": "./dist/docs.json"
|
|
51
|
+
},
|
|
52
|
+
"./esm": {
|
|
53
|
+
"default": "./dist/index.mjs"
|
|
54
|
+
},
|
|
41
55
|
"./package.json": "./package.json"
|
|
42
56
|
},
|
|
43
|
-
"main": "dist/
|
|
44
|
-
"module": "dist/
|
|
57
|
+
"main": "dist/index.js",
|
|
58
|
+
"module": "dist/index.mjs",
|
|
45
59
|
"homepage": "https://xyo.network",
|
|
46
60
|
"license": "LGPL-3.0",
|
|
47
61
|
"publishConfig": {
|
|
@@ -52,6 +66,5 @@
|
|
|
52
66
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
53
67
|
},
|
|
54
68
|
"sideEffects": false,
|
|
55
|
-
"
|
|
56
|
-
"version": "2.72.8"
|
|
69
|
+
"version": "2.73.0"
|
|
57
70
|
}
|
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineConfig } from 'tsup'
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line import/no-default-export
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
bundle: true,
|
|
6
|
+
cjsInterop: true,
|
|
7
|
+
clean: true,
|
|
8
|
+
dts: {
|
|
9
|
+
entry: ['src/index.ts'],
|
|
10
|
+
},
|
|
11
|
+
entry: ['src/index.ts'],
|
|
12
|
+
format: ['cjs', 'esm'],
|
|
13
|
+
sourcemap: true,
|
|
14
|
+
splitting: false,
|
|
15
|
+
tsconfig: 'tsconfig.json',
|
|
16
|
+
})
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ForecastingDivinerConfigSchema = void 0;
|
|
4
|
-
const Schema_1 = require("../Schema");
|
|
5
|
-
exports.ForecastingDivinerConfigSchema = `${Schema_1.ForecastingDivinerSchema}.config`;
|
|
6
|
-
//# sourceMappingURL=Config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../../src/Config/Config.ts"],"names":[],"mappings":";;;AAGA,sCAAoD;AAKvC,QAAA,8BAA8B,GAAmC,GAAG,iCAAwB,SAAS,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ForecastingSettings.js","sourceRoot":"","sources":["../../../src/Config/ForecastingSettings.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransformerSettings.js","sourceRoot":"","sources":["../../../src/Config/TransformerSettings.ts"],"names":[],"mappings":""}
|
package/dist/cjs/Config/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Config"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./ForecastingSettings"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./TransformerSettings"), exports);
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Config/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,gEAAqC;AACrC,gEAAqC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ForecastingMethod.js","sourceRoot":"","sources":["../../src/ForecastingMethod.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Forecast.js","sourceRoot":"","sources":["../../../src/Payload/Forecast.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isForecastPayload = exports.ForecastPayloadSchema = void 0;
|
|
4
|
-
const Schema_1 = require("../Schema");
|
|
5
|
-
exports.ForecastPayloadSchema = `${Schema_1.ForecastingDivinerSchema}.forecast`;
|
|
6
|
-
const isForecastPayload = (x) => (x === null || x === void 0 ? void 0 : x.schema) === exports.ForecastPayloadSchema;
|
|
7
|
-
exports.isForecastPayload = isForecastPayload;
|
|
8
|
-
//# sourceMappingURL=Payload.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.js","sourceRoot":"","sources":["../../../src/Payload/Payload.ts"],"names":[],"mappings":";;;AAEA,sCAAoD;AAIvC,QAAA,qBAAqB,GAA0B,GAAG,iCAAwB,WAAW,CAAA;AAM3F,MAAM,iBAAiB,GAAG,CAAC,CAAkB,EAAwB,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,MAAM,MAAK,6BAAqB,CAAA;AAArG,QAAA,iBAAiB,qBAAoF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,oDAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PayloadValueTransformer.js","sourceRoot":"","sources":["../../src/PayloadValueTransformer.ts"],"names":[],"mappings":""}
|
package/dist/cjs/Query.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isForecastingDivinerQueryPayload = exports.ForecastingDivinerQuerySchema = void 0;
|
|
4
|
-
const Schema_1 = require("./Schema");
|
|
5
|
-
exports.ForecastingDivinerQuerySchema = `${Schema_1.ForecastingDivinerSchema}.query`;
|
|
6
|
-
const isForecastingDivinerQueryPayload = (x) => (x === null || x === void 0 ? void 0 : x.schema) === exports.ForecastingDivinerQuerySchema;
|
|
7
|
-
exports.isForecastingDivinerQueryPayload = isForecastingDivinerQueryPayload;
|
|
8
|
-
//# sourceMappingURL=Query.js.map
|
package/dist/cjs/Query.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":";;;AAGA,qCAAmD;AAGtC,QAAA,6BAA6B,GAAkC,GAAG,iCAAwB,QAAQ,CAAA;AAGxG,MAAM,gCAAgC,GAAG,CAAC,CAAkB,EAAuC,EAAE,CAC1G,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,MAAM,MAAK,qCAA6B,CAAA;AADhC,QAAA,gCAAgC,oCACA"}
|
package/dist/cjs/Schema.js
DELETED
package/dist/cjs/Schema.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.js","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":";;;AACa,QAAA,wBAAwB,GAA6B,iCAAiC,CAAA"}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Config"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./ForecastingMethod"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./Payload"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./PayloadValueTransformer"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./Query"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./Schema"), exports);
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,8DAAmC;AACnC,oDAAyB;AACzB,oEAAyC;AACzC,kDAAuB;AACvB,mDAAwB"}
|