@xyo-network/diviner-forecasting-model 5.3.1 → 5.3.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.
@@ -1,8 +1,9 @@
1
- import type { Payload, Query } from '@xyo-network/payload-model';
1
+ import { type Payload, type Query } from '@xyo-network/payload-model';
2
2
  import type { ForecastingSettings } from './Config/index.ts';
3
- import { ForecastingDivinerSchema } from './Schema.ts';
4
- export type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
5
- export declare const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema;
3
+ export declare const ForecastingDivinerQuerySchema: string & {
4
+ readonly __schema: true;
5
+ };
6
+ export type ForecastingDivinerQuerySchema = typeof ForecastingDivinerQuerySchema;
6
7
  export type ForecastingDivinerQueryPayload = Query<{
7
8
  schema: ForecastingDivinerQuerySchema;
8
9
  } & Partial<ForecastingSettings>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAEtD,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,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,8BAC9B,CAAA"}
1
+ {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EACK,KAAK,OAAO,EAAE,KAAK,KAAK,EACnC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAG5D,eAAO,MAAM,6BAA6B;;CAAsD,CAAA;AAChG,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,6BAA6B,CAAA;CAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAA;AAC5H,eAAO,MAAM,gCAAgC,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,8BAC9B,CAAA"}
@@ -14,7 +14,10 @@ var ForecastPayloadSchema = asSchema3(`${ForecastingDivinerSchema}.forecast`, tr
14
14
  var isForecastPayload = (x) => x?.schema === ForecastPayloadSchema;
15
15
 
16
16
  // src/Query.ts
17
- var ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
17
+ import {
18
+ asSchema as asSchema4
19
+ } from "@xyo-network/payload-model";
20
+ var ForecastingDivinerQuerySchema = asSchema4(`${ForecastingDivinerSchema}.query`, true);
18
21
  var isForecastingDivinerQueryPayload = (x) => x?.schema === ForecastingDivinerQuerySchema;
19
22
  export {
20
23
  ForecastPayloadSchema,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Config/Config.ts","../../src/Schema.ts","../../src/Payload/Payload.ts","../../src/Query.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { ForecastingSettings } from './ForecastingSettings.ts'\nimport type { TransformerSettings } from './TransformerSettings.ts'\n\nexport const ForecastingDivinerConfigSchema = asSchema(`${ForecastingDivinerSchema}.config`, true)\nexport type ForecastingDivinerConfigSchema = typeof ForecastingDivinerConfigSchema\n\nexport type ForecastingDivinerConfig = DivinerConfig<\n {\n boundWitnessDiviner?: ModuleIdentifier\n schema: ForecastingDivinerConfigSchema\n } & ForecastingSettings\n & TransformerSettings\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const ForecastingDivinerSchema = asSchema('network.xyo.diviner.forecasting', true)\nexport type ForecastingDivinerSchema = typeof ForecastingDivinerSchema\n","import { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { Forecast } from './Forecast.ts'\n\nexport const ForecastPayloadSchema = asSchema(`${ForecastingDivinerSchema}.forecast`, true)\nexport type ForecastPayloadSchema = typeof ForecastPayloadSchema\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":";AAEA,SAAS,YAAAA,iBAAgB;;;ACFzB,SAAS,gBAAgB;AAElB,IAAM,2BAA2B,SAAS,mCAAmC,IAAI;;;ADMjF,IAAM,iCAAiCC,UAAS,GAAG,wBAAwB,WAAW,IAAI;;;AERjG,SAAS,YAAAC,iBAA8B;AAKhC,IAAM,wBAAwBC,UAAS,GAAG,wBAAwB,aAAa,IAAI;AAQnF,IAAM,oBAAoB,CAAC,MAA6C,GAAG,WAAW;;;ACPtF,IAAM,gCAA+D,GAAG,wBAAwB;AAGhG,IAAM,mCAAmC,CAAC,MAC/C,GAAG,WAAW;","names":["asSchema","asSchema","asSchema","asSchema"]}
1
+ {"version":3,"sources":["../../src/Config/Config.ts","../../src/Schema.ts","../../src/Payload/Payload.ts","../../src/Query.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { ForecastingSettings } from './ForecastingSettings.ts'\nimport type { TransformerSettings } from './TransformerSettings.ts'\n\nexport const ForecastingDivinerConfigSchema = asSchema(`${ForecastingDivinerSchema}.config`, true)\nexport type ForecastingDivinerConfigSchema = typeof ForecastingDivinerConfigSchema\n\nexport type ForecastingDivinerConfig = DivinerConfig<\n {\n boundWitnessDiviner?: ModuleIdentifier\n schema: ForecastingDivinerConfigSchema\n } & ForecastingSettings\n & TransformerSettings\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const ForecastingDivinerSchema = asSchema('network.xyo.diviner.forecasting', true)\nexport type ForecastingDivinerSchema = typeof ForecastingDivinerSchema\n","import { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { Forecast } from './Forecast.ts'\n\nexport const ForecastPayloadSchema = asSchema(`${ForecastingDivinerSchema}.forecast`, true)\nexport type ForecastPayloadSchema = typeof ForecastPayloadSchema\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 {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport type { ForecastingSettings } from './Config/index.ts'\nimport { ForecastingDivinerSchema } from './Schema.ts'\n\nexport const ForecastingDivinerQuerySchema = asSchema(`${ForecastingDivinerSchema}.query`, true)\nexport type ForecastingDivinerQuerySchema = typeof ForecastingDivinerQuerySchema\n\nexport type ForecastingDivinerQueryPayload = Query<{ schema: ForecastingDivinerQuerySchema } & Partial<ForecastingSettings>>\nexport const isForecastingDivinerQueryPayload = (x?: Payload | null): x is ForecastingDivinerQueryPayload =>\n x?.schema === ForecastingDivinerQuerySchema\n"],"mappings":";AAEA,SAAS,YAAAA,iBAAgB;;;ACFzB,SAAS,gBAAgB;AAElB,IAAM,2BAA2B,SAAS,mCAAmC,IAAI;;;ADMjF,IAAM,iCAAiCC,UAAS,GAAG,wBAAwB,WAAW,IAAI;;;AERjG,SAAS,YAAAC,iBAA8B;AAKhC,IAAM,wBAAwBC,UAAS,GAAG,wBAAwB,aAAa,IAAI;AAQnF,IAAM,oBAAoB,CAAC,MAA6C,GAAG,WAAW;;;ACb7F;AAAA,EACE,YAAAC;AAAA,OACK;AAKA,IAAM,gCAAgCC,UAAS,GAAG,wBAAwB,UAAU,IAAI;AAIxF,IAAM,mCAAmC,CAAC,MAC/C,GAAG,WAAW;","names":["asSchema","asSchema","asSchema","asSchema","asSchema","asSchema"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-forecasting-model",
3
- "version": "5.3.1",
3
+ "version": "5.3.3",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -36,10 +36,10 @@
36
36
  "!**/*.test.*"
37
37
  ],
38
38
  "dependencies": {
39
- "@xylabs/sdk-js": "~5.0.64",
40
- "@xyo-network/diviner-model": "~5.3.1",
41
- "@xyo-network/module-model": "~5.3.1",
42
- "@xyo-network/payload-model": "~5.3.1"
39
+ "@xylabs/sdk-js": "~5.0.79",
40
+ "@xyo-network/diviner-model": "~5.3.3",
41
+ "@xyo-network/module-model": "~5.3.3",
42
+ "@xyo-network/payload-model": "~5.3.3"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@xylabs/ts-scripts-yarn3": "~7.3.2",
package/src/Query.ts CHANGED
@@ -1,10 +1,12 @@
1
- import type { Payload, Query } from '@xyo-network/payload-model'
1
+ import {
2
+ asSchema, type Payload, type Query,
3
+ } from '@xyo-network/payload-model'
2
4
 
3
5
  import type { ForecastingSettings } from './Config/index.ts'
4
6
  import { ForecastingDivinerSchema } from './Schema.ts'
5
7
 
6
- export type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`
7
- export const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`
8
+ export const ForecastingDivinerQuerySchema = asSchema(`${ForecastingDivinerSchema}.query`, true)
9
+ export type ForecastingDivinerQuerySchema = typeof ForecastingDivinerQuerySchema
8
10
 
9
11
  export type ForecastingDivinerQueryPayload = Query<{ schema: ForecastingDivinerQuerySchema } & Partial<ForecastingSettings>>
10
12
  export const isForecastingDivinerQueryPayload = (x?: Payload | null): x is ForecastingDivinerQueryPayload =>