@xyo-network/diviner-forecasting-abstract 4.0.2 → 4.1.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.
@@ -0,0 +1,19 @@
1
+ import { Promisable } from '@xylabs/promise';
2
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
3
+ import { ForecastingDivinerConfig, ForecastingDivinerQueryPayload, ForecastPayload, ForecastingMethod, PayloadValueTransformer } from '@xyo-network/diviner-forecasting-model';
4
+ import { DivinerParams, DivinerModuleEventData, DivinerInstance } from '@xyo-network/diviner-model';
5
+ import { AnyConfigSchema } from '@xyo-network/module-model';
6
+ import { Schema, WithSources, Payload } from '@xyo-network/payload-model';
7
+
8
+ type ForecastingDivinerParams = DivinerParams<AnyConfigSchema<ForecastingDivinerConfig>>;
9
+ declare abstract class AbstractForecastingDiviner<TParams extends ForecastingDivinerParams = ForecastingDivinerParams, TIn extends ForecastingDivinerQueryPayload = ForecastingDivinerQueryPayload, TOut extends ForecastPayload = ForecastPayload, TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut>> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {
10
+ static readonly configSchemas: Schema[];
11
+ static readonly defaultConfigSchema: Schema;
12
+ protected abstract get forecastingMethod(): ForecastingMethod;
13
+ protected abstract get transformer(): PayloadValueTransformer;
14
+ protected divineHandler(payloads?: TIn[]): Promise<WithSources<TOut>[]>;
15
+ protected abstract getPayloadsInWindow(startTimestamp: number, stopTimestamp: number): Promisable<Payload[]>;
16
+ }
17
+
18
+ export { AbstractForecastingDiviner };
19
+ export type { ForecastingDivinerParams };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-forecasting-abstract",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,25 +21,25 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/types/index.d.ts",
24
+ "types": "./dist/neutral/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/types/index.d.ts",
30
+ "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/promise": "^4.12.33",
33
- "@xyo-network/diviner-abstract": "^4.0.2",
34
- "@xyo-network/diviner-forecasting-model": "^4.0.2",
35
- "@xyo-network/diviner-model": "^4.0.2",
36
- "@xyo-network/module-model": "^4.0.2",
37
- "@xyo-network/payload-builder": "^4.0.2",
38
- "@xyo-network/payload-model": "^4.0.2"
32
+ "@xylabs/promise": "^4.13.15",
33
+ "@xyo-network/diviner-abstract": "^4.1.0",
34
+ "@xyo-network/diviner-forecasting-model": "^4.1.0",
35
+ "@xyo-network/diviner-model": "^4.1.0",
36
+ "@xyo-network/module-model": "^4.1.0",
37
+ "@xyo-network/payload-builder": "^4.1.0",
38
+ "@xyo-network/payload-model": "^4.1.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
42
- "@xylabs/tsconfig": "^6.5.12",
41
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
42
+ "@xylabs/tsconfig": "^7.0.0-rc.20",
43
43
  "typescript": "^5.8.3"
44
44
  },
45
45
  "publishConfig": {
File without changes
File without changes