@xyo-network/diviner-forecasting-model 2.73.4 → 2.74.1
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/Config/Config.d.mts +12 -0
- package/dist/Config/Config.d.mts.map +1 -0
- package/dist/Config/Config.d.ts +12 -0
- package/dist/Config/Config.d.ts.map +1 -0
- package/dist/Config/ForecastingSettings.d.mts +9 -0
- package/dist/Config/ForecastingSettings.d.mts.map +1 -0
- package/dist/Config/ForecastingSettings.d.ts +9 -0
- package/dist/Config/ForecastingSettings.d.ts.map +1 -0
- package/dist/Config/TransformerSettings.d.mts +4 -0
- package/dist/Config/TransformerSettings.d.mts.map +1 -0
- package/dist/Config/TransformerSettings.d.ts +4 -0
- package/dist/Config/TransformerSettings.d.ts.map +1 -0
- package/dist/Config/index.d.mts +4 -0
- package/dist/Config/index.d.mts.map +1 -0
- package/dist/Config/index.d.ts +4 -0
- package/dist/Config/index.d.ts.map +1 -0
- package/dist/ForecastingMethod.d.mts +6 -0
- package/dist/ForecastingMethod.d.mts.map +1 -0
- package/dist/ForecastingMethod.d.ts +6 -0
- package/dist/ForecastingMethod.d.ts.map +1 -0
- package/dist/Payload/Forecast.d.mts +6 -0
- package/dist/Payload/Forecast.d.mts.map +1 -0
- package/dist/Payload/Forecast.d.ts +6 -0
- package/dist/Payload/Forecast.d.ts.map +1 -0
- package/dist/Payload/Payload.d.mts +14 -0
- package/dist/Payload/Payload.d.mts.map +1 -0
- package/dist/Payload/Payload.d.ts +14 -0
- package/dist/Payload/Payload.d.ts.map +1 -0
- package/dist/Payload/index.d.mts +3 -0
- package/dist/Payload/index.d.mts.map +1 -0
- package/dist/Payload/index.d.ts +3 -0
- package/dist/Payload/index.d.ts.map +1 -0
- package/dist/PayloadValueTransformer.d.mts +3 -0
- package/dist/PayloadValueTransformer.d.mts.map +1 -0
- package/dist/PayloadValueTransformer.d.ts +3 -0
- package/dist/PayloadValueTransformer.d.ts.map +1 -0
- package/dist/Query.d.mts +12 -0
- package/dist/Query.d.mts.map +1 -0
- package/dist/Query.d.ts +12 -0
- package/dist/Query.d.ts.map +1 -0
- package/dist/Schema.d.mts +3 -0
- package/dist/Schema.d.mts.map +1 -0
- package/dist/Schema.d.ts +3 -0
- package/dist/Schema.d.ts.map +1 -0
- package/dist/docs.json +188 -340
- package/dist/index.d.mts +7 -64
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +7 -64
- package/dist/index.d.ts.map +1 -0
- package/package.json +7 -13
- package/tsup.config.ts +0 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,64 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 };
|
|
1
|
+
export * from './Config';
|
|
2
|
+
export * from './ForecastingMethod';
|
|
3
|
+
export * from './Payload';
|
|
4
|
+
export * from './PayloadValueTransformer';
|
|
5
|
+
export * from './Query';
|
|
6
|
+
export * from './Schema';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,2BAA2B,CAAA;AACzC,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,64 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 };
|
|
1
|
+
export * from './Config';
|
|
2
|
+
export * from './ForecastingMethod';
|
|
3
|
+
export * from './Payload';
|
|
4
|
+
export * from './PayloadValueTransformer';
|
|
5
|
+
export * from './Query';
|
|
6
|
+
export * from './Schema';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,2BAA2B,CAAA;AACzC,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,22 +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.
|
|
14
|
-
"@xyo-network/module-model": "~2.
|
|
15
|
-
"@xyo-network/payload-model": "~2.
|
|
16
|
-
"@xyo-network/promise": "~2.
|
|
13
|
+
"@xyo-network/diviner-model": "~2.74.1",
|
|
14
|
+
"@xyo-network/module-model": "~2.74.1",
|
|
15
|
+
"@xyo-network/payload-model": "~2.74.1",
|
|
16
|
+
"@xyo-network/promise": "~2.74.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
20
|
-
"@xylabs/tsconfig": "^
|
|
21
|
-
"publint": "^0.2.2",
|
|
22
|
-
"tsup": "^7.2.0",
|
|
19
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.28",
|
|
20
|
+
"@xylabs/tsconfig": "^3.0.28",
|
|
23
21
|
"typescript": "^5.2.2"
|
|
24
22
|
},
|
|
25
|
-
"scripts": {
|
|
26
|
-
"package-compile": "tsup && publint",
|
|
27
|
-
"package-recompile": "tsup && publint"
|
|
28
|
-
},
|
|
29
23
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
30
24
|
"docs": "dist/docs.json",
|
|
31
25
|
"types": "dist/index.d.ts",
|
|
@@ -66,5 +60,5 @@
|
|
|
66
60
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
67
61
|
},
|
|
68
62
|
"sideEffects": false,
|
|
69
|
-
"version": "2.
|
|
63
|
+
"version": "2.74.1"
|
|
70
64
|
}
|
package/tsup.config.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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: false,
|
|
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
|
-
})
|