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

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,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,15 +1,16 @@
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
@@ -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 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"]}
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.1",
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.1",
41
+ "@xyo-network/module-model": "~5.3.1",
42
+ "@xyo-network/payload-model": "~5.3.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@xylabs/ts-scripts-yarn3": "~7.3.2",
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