@xyo-network/diviner-forecasting-model 5.3.0 → 5.3.2

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"}
@@ -1,3 +1,5 @@
1
- export declare const ForecastingDivinerSchema: "network.xyo.diviner.forecasting";
1
+ export declare const ForecastingDivinerSchema: "network.xyo.diviner.forecasting" & {
2
+ readonly __schema: true;
3
+ };
2
4
  export type ForecastingDivinerSchema = typeof ForecastingDivinerSchema;
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,iCAA0C,CAAA;AAClF,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB;;CAAoD,CAAA;AACzF,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA"}
@@ -1,19 +1,23 @@
1
1
  // src/Config/Config.ts
2
- import { asSchema } from "@xyo-network/payload-model";
2
+ import { asSchema as asSchema2 } from "@xyo-network/payload-model";
3
3
 
4
4
  // src/Schema.ts
5
- var ForecastingDivinerSchema = "network.xyo.diviner.forecasting";
5
+ import { asSchema } from "@xyo-network/payload-model";
6
+ var ForecastingDivinerSchema = asSchema("network.xyo.diviner.forecasting", true);
6
7
 
7
8
  // src/Config/Config.ts
8
- var ForecastingDivinerConfigSchema = asSchema(`${ForecastingDivinerSchema}.config`, true);
9
+ var ForecastingDivinerConfigSchema = asSchema2(`${ForecastingDivinerSchema}.config`, true);
9
10
 
10
11
  // src/Payload/Payload.ts
11
- import { asSchema as asSchema2 } from "@xyo-network/payload-model";
12
- var ForecastPayloadSchema = asSchema2(`${ForecastingDivinerSchema}.forecast`, true);
12
+ import { asSchema as asSchema3 } from "@xyo-network/payload-model";
13
+ var ForecastPayloadSchema = asSchema3(`${ForecastingDivinerSchema}.forecast`, true);
13
14
  var isForecastPayload = (x) => x?.schema === ForecastPayloadSchema;
14
15
 
15
16
  // src/Query.ts
16
- var ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
17
+ import {
18
+ asSchema as asSchema4
19
+ } from "@xyo-network/payload-model";
20
+ var ForecastingDivinerQuerySchema = asSchema4(`${ForecastingDivinerSchema}.query`, true);
17
21
  var isForecastingDivinerQueryPayload = (x) => x?.schema === ForecastingDivinerQuerySchema;
18
22
  export {
19
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","export const ForecastingDivinerSchema = 'network.xyo.diviner.forecasting' as const\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,gBAAgB;;;ACFlB,IAAM,2BAA2B;;;ADQjC,IAAM,iCAAiC,SAAS,GAAG,wBAAwB,WAAW,IAAI;;;AERjG,SAAS,YAAAA,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"]}
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.0",
3
+ "version": "5.3.2",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -37,9 +37,9 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@xylabs/sdk-js": "~5.0.64",
40
- "@xyo-network/diviner-model": "~5.3.0",
41
- "@xyo-network/module-model": "~5.3.0",
42
- "@xyo-network/payload-model": "~5.3.0"
40
+ "@xyo-network/diviner-model": "~5.3.2",
41
+ "@xyo-network/module-model": "~5.3.2",
42
+ "@xyo-network/payload-model": "~5.3.2"
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 =>
package/src/Schema.ts CHANGED
@@ -1,2 +1,4 @@
1
- export const ForecastingDivinerSchema = 'network.xyo.diviner.forecasting' as const
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
3
+ export const ForecastingDivinerSchema = asSchema('network.xyo.diviner.forecasting', true)
2
4
  export type ForecastingDivinerSchema = typeof ForecastingDivinerSchema