@xyo-network/diviner-forecasting-model 2.73.4 → 2.74.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.
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/index.d.mts +7 -64
  46. package/dist/index.d.mts.map +1 -0
  47. package/dist/index.d.ts +7 -64
  48. package/dist/index.d.ts.map +1 -0
  49. package/package.json +7 -13
  50. package/dist/docs.json +0 -1835
  51. package/tsup.config.ts +0 -16
@@ -0,0 +1,12 @@
1
+ import { DivinerConfig } from '@xyo-network/diviner-model';
2
+ import { ModuleFilter } from '@xyo-network/module-model';
3
+ import { ForecastingDivinerSchema } from '../Schema';
4
+ import { ForecastingSettings } from './ForecastingSettings';
5
+ import { TransformerSettings } from './TransformerSettings';
6
+ export type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`;
7
+ export declare const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema;
8
+ export type ForecastingDivinerConfig = DivinerConfig<{
9
+ boundWitnessDiviner?: ModuleFilter;
10
+ schema: ForecastingDivinerConfigSchema;
11
+ } & ForecastingSettings & TransformerSettings>;
12
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,MAAM,MAAM,8BAA8B,GAAG,GAAG,wBAAwB,SAAS,CAAA;AACjF,eAAO,MAAM,8BAA8B,EAAE,8BAAqE,CAAA;AAElH,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAClD;IACE,mBAAmB,CAAC,EAAE,YAAY,CAAA;IAClC,MAAM,EAAE,8BAA8B,CAAA;CACvC,GAAG,mBAAmB,GACrB,mBAAmB,CACtB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { DivinerConfig } from '@xyo-network/diviner-model';
2
+ import { ModuleFilter } from '@xyo-network/module-model';
3
+ import { ForecastingDivinerSchema } from '../Schema';
4
+ import { ForecastingSettings } from './ForecastingSettings';
5
+ import { TransformerSettings } from './TransformerSettings';
6
+ export type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`;
7
+ export declare const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema;
8
+ export type ForecastingDivinerConfig = DivinerConfig<{
9
+ boundWitnessDiviner?: ModuleFilter;
10
+ schema: ForecastingDivinerConfigSchema;
11
+ } & ForecastingSettings & TransformerSettings>;
12
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,MAAM,MAAM,8BAA8B,GAAG,GAAG,wBAAwB,SAAS,CAAA;AACjF,eAAO,MAAM,8BAA8B,EAAE,8BAAqE,CAAA;AAElH,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAClD;IACE,mBAAmB,CAAC,EAAE,YAAY,CAAA;IAClC,MAAM,EAAE,8BAA8B,CAAA;CACvC,GAAG,mBAAmB,GACrB,mBAAmB,CACtB,CAAA"}
@@ -0,0 +1,9 @@
1
+ export interface ForecastingSettings {
2
+ forecastingMethod?: string;
3
+ forecastingSteps?: number;
4
+ timestamp?: number;
5
+ windowSize?: number;
6
+ witnessAddresses?: string[];
7
+ witnessSchema?: string;
8
+ }
9
+ //# sourceMappingURL=ForecastingSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForecastingSettings.d.ts","sourceRoot":"","sources":["../../src/Config/ForecastingSettings.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB"}
@@ -0,0 +1,9 @@
1
+ export interface ForecastingSettings {
2
+ forecastingMethod?: string;
3
+ forecastingSteps?: number;
4
+ timestamp?: number;
5
+ windowSize?: number;
6
+ witnessAddresses?: string[];
7
+ witnessSchema?: string;
8
+ }
9
+ //# sourceMappingURL=ForecastingSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForecastingSettings.d.ts","sourceRoot":"","sources":["../../src/Config/ForecastingSettings.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB"}
@@ -0,0 +1,4 @@
1
+ export interface TransformerSettings {
2
+ jsonPathExpression?: string;
3
+ }
4
+ //# sourceMappingURL=TransformerSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransformerSettings.d.ts","sourceRoot":"","sources":["../../src/Config/TransformerSettings.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B"}
@@ -0,0 +1,4 @@
1
+ export interface TransformerSettings {
2
+ jsonPathExpression?: string;
3
+ }
4
+ //# sourceMappingURL=TransformerSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransformerSettings.d.ts","sourceRoot":"","sources":["../../src/Config/TransformerSettings.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B"}
@@ -0,0 +1,4 @@
1
+ export * from './Config';
2
+ export * from './ForecastingSettings';
3
+ export * from './TransformerSettings';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Config/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Config';
2
+ export * from './ForecastingSettings';
3
+ export * from './TransformerSettings';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Config/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { Promisable } from '@xyo-network/promise';
3
+ import { Forecast } from './Payload';
4
+ import { PayloadValueTransformer } from './PayloadValueTransformer';
5
+ export type ForecastingMethod = (payloads: Payload[], transformers: PayloadValueTransformer) => Promisable<Forecast[]>;
6
+ //# sourceMappingURL=ForecastingMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForecastingMethod.d.ts","sourceRoot":"","sources":["../src/ForecastingMethod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,MAAM,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,YAAY,EAAE,uBAAuB,KAAK,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { Promisable } from '@xyo-network/promise';
3
+ import { Forecast } from './Payload';
4
+ import { PayloadValueTransformer } from './PayloadValueTransformer';
5
+ export type ForecastingMethod = (payloads: Payload[], transformers: PayloadValueTransformer) => Promisable<Forecast[]>;
6
+ //# sourceMappingURL=ForecastingMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForecastingMethod.d.ts","sourceRoot":"","sources":["../src/ForecastingMethod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,MAAM,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,YAAY,EAAE,uBAAuB,KAAK,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface Forecast {
2
+ error?: number;
3
+ timestamp?: number;
4
+ value: number;
5
+ }
6
+ //# sourceMappingURL=Forecast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Forecast.d.ts","sourceRoot":"","sources":["../../src/Payload/Forecast.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -0,0 +1,6 @@
1
+ export interface Forecast {
2
+ error?: number;
3
+ timestamp?: number;
4
+ value: number;
5
+ }
6
+ //# sourceMappingURL=Forecast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Forecast.d.ts","sourceRoot":"","sources":["../../src/Payload/Forecast.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -0,0 +1,14 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { ForecastingDivinerSchema } from '../Schema';
3
+ import { Forecast } from './Forecast';
4
+ export type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`;
5
+ export declare const ForecastPayloadSchema: ForecastPayloadSchema;
6
+ export type ForecastPayload = Payload<{
7
+ schema: ForecastPayloadSchema;
8
+ values: Forecast[];
9
+ }>;
10
+ export declare const isForecastPayload: (x?: Payload | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
+ schema: ForecastPayloadSchema;
12
+ values: Forecast[];
13
+ };
14
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,MAAM,qBAAqB,GAAG,GAAG,wBAAwB,WAAW,CAAA;AAC1E,eAAO,MAAM,qBAAqB,EAAE,qBAA8D,CAAA;AAElG,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC;IACpC,MAAM,EAAE,qBAAqB,CAAA;IAC7B,MAAM,EAAE,QAAQ,EAAE,CAAA;CACnB,CAAC,CAAA;AACF,eAAO,MAAM,iBAAiB,OAAQ,OAAO,GAAG,IAAI;YAH1C,qBAAqB;YACrB,QAAQ,EAAE;CAE8F,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { ForecastingDivinerSchema } from '../Schema';
3
+ import { Forecast } from './Forecast';
4
+ export type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`;
5
+ export declare const ForecastPayloadSchema: ForecastPayloadSchema;
6
+ export type ForecastPayload = Payload<{
7
+ schema: ForecastPayloadSchema;
8
+ values: Forecast[];
9
+ }>;
10
+ export declare const isForecastPayload: (x?: Payload | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
11
+ schema: ForecastPayloadSchema;
12
+ values: Forecast[];
13
+ };
14
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,MAAM,qBAAqB,GAAG,GAAG,wBAAwB,WAAW,CAAA;AAC1E,eAAO,MAAM,qBAAqB,EAAE,qBAA8D,CAAA;AAElG,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC;IACpC,MAAM,EAAE,qBAAqB,CAAA;IAC7B,MAAM,EAAE,QAAQ,EAAE,CAAA;CACnB,CAAC,CAAA;AACF,eAAO,MAAM,iBAAiB,OAAQ,OAAO,GAAG,IAAI;YAH1C,qBAAqB;YACrB,QAAQ,EAAE;CAE8F,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Forecast';
2
+ export * from './Payload';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Forecast';
2
+ export * from './Payload';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ export type PayloadValueTransformer = (payload: Payload) => number;
3
+ //# sourceMappingURL=PayloadValueTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PayloadValueTransformer.d.ts","sourceRoot":"","sources":["../src/PayloadValueTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ export type PayloadValueTransformer = (payload: Payload) => number;
3
+ //# sourceMappingURL=PayloadValueTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PayloadValueTransformer.d.ts","sourceRoot":"","sources":["../src/PayloadValueTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { Payload, Query } from '@xyo-network/payload-model';
2
+ import { ForecastingSettings } from './Config';
3
+ import { ForecastingDivinerSchema } from './Schema';
4
+ export type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
5
+ export declare const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema;
6
+ export type ForecastingDivinerQueryPayload = Query<{
7
+ schema: ForecastingDivinerQuerySchema;
8
+ } & Partial<ForecastingSettings>>;
9
+ export declare const isForecastingDivinerQueryPayload: (x?: Payload | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
10
+ schema: ForecastingDivinerQuerySchema;
11
+ } & Partial<ForecastingSettings> & import("@xyo-network/payload-model").QueryFields;
12
+ //# sourceMappingURL=Query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAEnD,MAAM,MAAM,6BAA6B,GAAG,GAAG,wBAAwB,QAAQ,CAAA;AAC/E,eAAO,MAAM,6BAA6B,EAAE,6BAAmE,CAAA;AAE/G,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,6BAA6B,CAAA;CAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAA;AAC5H,eAAO,MAAM,gCAAgC,OAAQ,OAAO,GAAG,IAAI;YADN,6BAA6B;mFAE7C,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { Payload, Query } from '@xyo-network/payload-model';
2
+ import { ForecastingSettings } from './Config';
3
+ import { ForecastingDivinerSchema } from './Schema';
4
+ export type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
5
+ export declare const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema;
6
+ export type ForecastingDivinerQueryPayload = Query<{
7
+ schema: ForecastingDivinerQuerySchema;
8
+ } & Partial<ForecastingSettings>>;
9
+ export declare const isForecastingDivinerQueryPayload: (x?: Payload | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
10
+ schema: ForecastingDivinerQuerySchema;
11
+ } & Partial<ForecastingSettings> & import("@xyo-network/payload-model").QueryFields;
12
+ //# sourceMappingURL=Query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAEnD,MAAM,MAAM,6BAA6B,GAAG,GAAG,wBAAwB,QAAQ,CAAA;AAC/E,eAAO,MAAM,6BAA6B,EAAE,6BAAmE,CAAA;AAE/G,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,6BAA6B,CAAA;CAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAA;AAC5H,eAAO,MAAM,gCAAgC,OAAQ,OAAO,GAAG,IAAI;YADN,6BAA6B;mFAE7C,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type ForecastingDivinerSchema = 'network.xyo.diviner.forecasting';
2
+ export declare const ForecastingDivinerSchema: ForecastingDivinerSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG,iCAAiC,CAAA;AACxE,eAAO,MAAM,wBAAwB,EAAE,wBAA4D,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type ForecastingDivinerSchema = 'network.xyo.diviner.forecasting';
2
+ export declare const ForecastingDivinerSchema: ForecastingDivinerSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG,iCAAiC,CAAA;AACxE,eAAO,MAAM,wBAAwB,EAAE,wBAA4D,CAAA"}
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.0",
14
+ "@xyo-network/module-model": "~2.74.0",
15
+ "@xyo-network/payload-model": "~2.74.0",
16
+ "@xyo-network/promise": "~2.74.0"
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.27",
20
+ "@xylabs/tsconfig": "^3.0.27",
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.0"
70
64
  }