@xyo-network/diviner-forecasting-model 3.0.1 → 3.0.3
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/neutral/index.mjs.map +1 -1
- package/package.json +10 -10
- package/src/Config/Config.ts +4 -4
- package/src/Config/ForecastingSettings.ts +2 -2
- package/src/ForecastingMethod.ts +4 -4
- package/src/Payload/Payload.ts +2 -2
- package/src/PayloadValueTransformer.ts +1 -1
- package/src/Query.ts +2 -2
- package/xy.config.ts +1 -1
|
@@ -1 +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.ts'\nimport { ForecastingSettings } from './ForecastingSettings.ts'\nimport { TransformerSettings } from './TransformerSettings.ts'\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.ts'\nimport { Forecast } from './Forecast.ts'\n\nexport type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\nexport const ForecastPayloadSchema: ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\n\nexport type ForecastPayload = Payload<{\n schema: ForecastPayloadSchema\n sources: string[]\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/index.ts'\nimport { ForecastingDivinerSchema } from './Schema.ts'\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,IAAMA,2BAAqD;;;ACO3D,IAAMC,iCAAiE,GAAGC,wBAAAA;;;ACF1E,IAAMC,wBAA+C,GAAGC,wBAAAA;AAOxD,IAAMC,oBAAoB,wBAACC,MAA6CA,GAAGC,WAAWJ,uBAA5D;;;ACP1B,IAAMK,gCAA+D,GAAGC,wBAAAA;AAGxE,IAAMC,mCAAmC,wBAACC,MAC/CA,GAAGC,WAAWJ,+BADgC;","names":["ForecastingDivinerSchema","ForecastingDivinerConfigSchema","ForecastingDivinerSchema","ForecastPayloadSchema","ForecastingDivinerSchema","isForecastPayload","x","schema","ForecastingDivinerQuerySchema","ForecastingDivinerSchema","isForecastingDivinerQueryPayload","x","schema"]}
|
|
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 type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { ModuleFilter } from '@xyo-network/module-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { ForecastingSettings } from './ForecastingSettings.ts'\nimport type { TransformerSettings } from './TransformerSettings.ts'\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 type { Payload } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { Forecast } from './Forecast.ts'\n\nexport type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\nexport const ForecastPayloadSchema: ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\n\nexport type ForecastPayload = Payload<{\n schema: ForecastPayloadSchema\n sources: string[]\n values: Forecast[]\n}>\nexport const isForecastPayload = (x?: Payload | null): x is ForecastPayload => x?.schema === ForecastPayloadSchema\n","import type { Payload, Query } from '@xyo-network/payload-model'\n\nimport type { ForecastingSettings } from './Config/index.ts'\nimport { ForecastingDivinerSchema } from './Schema.ts'\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,IAAMA,2BAAqD;;;ACO3D,IAAMC,iCAAiE,GAAGC,wBAAAA;;;ACF1E,IAAMC,wBAA+C,GAAGC,wBAAAA;AAOxD,IAAMC,oBAAoB,wBAACC,MAA6CA,GAAGC,WAAWJ,uBAA5D;;;ACP1B,IAAMK,gCAA+D,GAAGC,wBAAAA;AAGxE,IAAMC,mCAAmC,wBAACC,MAC/CA,GAAGC,WAAWJ,+BADgC;","names":["ForecastingDivinerSchema","ForecastingDivinerConfigSchema","ForecastingDivinerSchema","ForecastPayloadSchema","ForecastingDivinerSchema","isForecastPayload","x","schema","ForecastingDivinerQuerySchema","ForecastingDivinerSchema","isForecastingDivinerQueryPayload","x","schema"]}
|
package/package.json
CHANGED
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
},
|
|
8
8
|
"bugs": {
|
|
9
9
|
"email": "support@xyo.network",
|
|
10
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
10
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/hex": "^4.0.
|
|
14
|
-
"@xylabs/promise": "^4.0.
|
|
15
|
-
"@xyo-network/diviner-model": "^3.0.
|
|
16
|
-
"@xyo-network/module-model": "^3.0.
|
|
17
|
-
"@xyo-network/payload-model": "^3.0.
|
|
13
|
+
"@xylabs/hex": "^4.0.2",
|
|
14
|
+
"@xylabs/promise": "^4.0.2",
|
|
15
|
+
"@xyo-network/diviner-model": "^3.0.3",
|
|
16
|
+
"@xyo-network/module-model": "^3.0.3",
|
|
17
|
+
"@xyo-network/payload-model": "^3.0.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.
|
|
21
|
-
"@xylabs/tsconfig": "^4.0.0-rc.
|
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
|
|
21
|
+
"@xylabs/tsconfig": "^4.0.0-rc.20",
|
|
22
22
|
"typescript": "^5.5.4"
|
|
23
23
|
},
|
|
24
24
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|
|
41
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
41
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
|
-
"version": "3.0.
|
|
44
|
+
"version": "3.0.3",
|
|
45
45
|
"type": "module"
|
|
46
46
|
}
|
package/src/Config/Config.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DivinerConfig } from '@xyo-network/diviner-model'
|
|
2
|
-
import { ModuleFilter } from '@xyo-network/module-model'
|
|
1
|
+
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
2
|
+
import type { ModuleFilter } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
4
|
import { ForecastingDivinerSchema } from '../Schema.ts'
|
|
5
|
-
import { ForecastingSettings } from './ForecastingSettings.ts'
|
|
6
|
-
import { TransformerSettings } from './TransformerSettings.ts'
|
|
5
|
+
import type { ForecastingSettings } from './ForecastingSettings.ts'
|
|
6
|
+
import type { TransformerSettings } from './TransformerSettings.ts'
|
|
7
7
|
|
|
8
8
|
export type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`
|
|
9
9
|
export const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`
|
package/src/ForecastingMethod.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Promisable } from '@xylabs/promise'
|
|
2
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Promisable } from '@xylabs/promise'
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { Forecast } from './Payload/index.ts'
|
|
5
|
-
import { PayloadValueTransformer } from './PayloadValueTransformer.ts'
|
|
4
|
+
import type { Forecast } from './Payload/index.ts'
|
|
5
|
+
import type { PayloadValueTransformer } from './PayloadValueTransformer.ts'
|
|
6
6
|
|
|
7
7
|
export type ForecastingMethod = (payloads: Payload[], transformers: PayloadValueTransformer) => Promisable<Forecast[]>
|
package/src/Payload/Payload.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
2
2
|
|
|
3
3
|
import { ForecastingDivinerSchema } from '../Schema.ts'
|
|
4
|
-
import { Forecast } from './Forecast.ts'
|
|
4
|
+
import type { Forecast } from './Forecast.ts'
|
|
5
5
|
|
|
6
6
|
export type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`
|
|
7
7
|
export const ForecastPayloadSchema: ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`
|
package/src/Query.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Payload, Query } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Payload, Query } from '@xyo-network/payload-model'
|
|
2
2
|
|
|
3
|
-
import { ForecastingSettings } from './Config/index.ts'
|
|
3
|
+
import type { ForecastingSettings } from './Config/index.ts'
|
|
4
4
|
import { ForecastingDivinerSchema } from './Schema.ts'
|
|
5
5
|
|
|
6
6
|
export type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`
|
package/xy.config.ts
CHANGED