@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.
Files changed (51) hide show
  1. package/dist/Config/Config.d.mts +12 -0
  2. package/dist/Config/Config.d.mts.map +1 -0
  3. package/dist/Config/Config.d.ts +12 -0
  4. package/dist/Config/Config.d.ts.map +1 -0
  5. package/dist/Config/ForecastingSettings.d.mts +9 -0
  6. package/dist/Config/ForecastingSettings.d.mts.map +1 -0
  7. package/dist/Config/ForecastingSettings.d.ts +9 -0
  8. package/dist/Config/ForecastingSettings.d.ts.map +1 -0
  9. package/dist/Config/TransformerSettings.d.mts +4 -0
  10. package/dist/Config/TransformerSettings.d.mts.map +1 -0
  11. package/dist/Config/TransformerSettings.d.ts +4 -0
  12. package/dist/Config/TransformerSettings.d.ts.map +1 -0
  13. package/dist/Config/index.d.mts +4 -0
  14. package/dist/Config/index.d.mts.map +1 -0
  15. package/dist/Config/index.d.ts +4 -0
  16. package/dist/Config/index.d.ts.map +1 -0
  17. package/dist/ForecastingMethod.d.mts +6 -0
  18. package/dist/ForecastingMethod.d.mts.map +1 -0
  19. package/dist/ForecastingMethod.d.ts +6 -0
  20. package/dist/ForecastingMethod.d.ts.map +1 -0
  21. package/dist/Payload/Forecast.d.mts +6 -0
  22. package/dist/Payload/Forecast.d.mts.map +1 -0
  23. package/dist/Payload/Forecast.d.ts +6 -0
  24. package/dist/Payload/Forecast.d.ts.map +1 -0
  25. package/dist/Payload/Payload.d.mts +14 -0
  26. package/dist/Payload/Payload.d.mts.map +1 -0
  27. package/dist/Payload/Payload.d.ts +14 -0
  28. package/dist/Payload/Payload.d.ts.map +1 -0
  29. package/dist/Payload/index.d.mts +3 -0
  30. package/dist/Payload/index.d.mts.map +1 -0
  31. package/dist/Payload/index.d.ts +3 -0
  32. package/dist/Payload/index.d.ts.map +1 -0
  33. package/dist/PayloadValueTransformer.d.mts +3 -0
  34. package/dist/PayloadValueTransformer.d.mts.map +1 -0
  35. package/dist/PayloadValueTransformer.d.ts +3 -0
  36. package/dist/PayloadValueTransformer.d.ts.map +1 -0
  37. package/dist/Query.d.mts +12 -0
  38. package/dist/Query.d.mts.map +1 -0
  39. package/dist/Query.d.ts +12 -0
  40. package/dist/Query.d.ts.map +1 -0
  41. package/dist/Schema.d.mts +3 -0
  42. package/dist/Schema.d.mts.map +1 -0
  43. package/dist/Schema.d.ts +3 -0
  44. package/dist/Schema.d.ts.map +1 -0
  45. package/dist/docs.json +188 -340
  46. package/dist/index.d.mts +7 -64
  47. package/dist/index.d.mts.map +1 -0
  48. package/dist/index.d.ts +7 -64
  49. package/dist/index.d.ts.map +1 -0
  50. package/package.json +7 -13
  51. package/tsup.config.ts +0 -16
package/dist/index.d.mts CHANGED
@@ -1,64 +1,7 @@
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 };
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
- 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 };
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.73.4",
14
- "@xyo-network/module-model": "~2.73.4",
15
- "@xyo-network/payload-model": "~2.73.4",
16
- "@xyo-network/promise": "~2.73.4"
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": "^2.19.12",
20
- "@xylabs/tsconfig": "^2.19.12",
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.73.4"
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
- })