@xyo-network/tzero-stock-market-payload-plugin 5.2.4 → 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 PriceHistorySchema: string;
1
+ export declare const PriceHistorySchema: string & {
2
+ readonly __schema: true;
3
+ };
2
4
  export type PriceHistorySchema = typeof PriceHistorySchema;
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,QAAsC,CAAA;AACrE,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;CAAsD,CAAA;AACrF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
@@ -1,3 +1,5 @@
1
- export declare const SnapshotSchema: string;
1
+ export declare const SnapshotSchema: string & {
2
+ readonly __schema: true;
3
+ };
2
4
  export type SnapshotSchema = typeof SnapshotSchema;
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,QAAuC,CAAA;AAClE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;CAAuD,CAAA;AAClF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
@@ -1,3 +1,5 @@
1
- export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
2
- export declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
1
+ export type TZeroStockMarketSchema = typeof TZeroStockMarketSchema;
2
+ export declare const TZeroStockMarketSchema: "network.xyo.stock.market.tzero" & {
3
+ readonly __schema: true;
4
+ };
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,gCAAgC,CAAA;AACrE,eAAO,MAAM,sBAAsB,EAAE,sBAAyD,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAClE,eAAO,MAAM,sBAAsB;;CAAmD,CAAA"}
@@ -1,14 +1,19 @@
1
+ // src/Payload/PriceHistory/Schema.ts
2
+ import { asSchema as asSchema2 } from "@xyo-network/payload-model";
3
+
1
4
  // src/Schema.ts
2
- var TZeroStockMarketSchema = "network.xyo.stock.market.tzero";
5
+ import { asSchema } from "@xyo-network/payload-model";
6
+ var TZeroStockMarketSchema = asSchema("network.xyo.stock.market.tzero", true);
3
7
 
4
8
  // src/Payload/PriceHistory/Schema.ts
5
- var PriceHistorySchema = `${TZeroStockMarketSchema}.history`;
9
+ var PriceHistorySchema = asSchema2(`${TZeroStockMarketSchema}.history`, true);
6
10
 
7
11
  // src/Payload/Snapshot/Payload.ts
8
12
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
9
13
 
10
14
  // src/Payload/Snapshot/Schema.ts
11
- var SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`;
15
+ import { asSchema as asSchema3 } from "@xyo-network/payload-model";
16
+ var SnapshotSchema = asSchema3(`${TZeroStockMarketSchema}.snapshot`, true);
12
17
 
13
18
  // src/Payload/Snapshot/Payload.ts
14
19
  var isSnapshot = isPayloadOfSchemaType(SnapshotSchema);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Payload/PriceHistory/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\nexport const TZeroStockMarketSchema: TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = `${TZeroStockMarketSchema}.history`\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`\nexport type SnapshotSchema = typeof SnapshotSchema\n"],"mappings":";AACO,IAAM,yBAAiD;;;ACCvD,IAAM,qBAAqB,GAAG,sBAAsB;;;ACD3D,SAAS,uBAAuB,wCAAwC;;;ACCjE,IAAM,iBAAiB,GAAG,sBAAsB;;;ADkChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/Payload/PriceHistory/Schema.ts","../../src/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n","import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],"mappings":";AAAA,SAAS,YAAAA,iBAAgB;;;ACAzB,SAAS,gBAAgB;AAGlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ADC9E,IAAM,qBAAqBC,UAAS,GAAG,sBAAsB,YAAY,IAAI;;;AEHpF,SAAS,uBAAuB,wCAAwC;;;ACDxE,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,iBAAiBC,UAAS,GAAG,sBAAsB,aAAa,IAAI;;;ADgC1E,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;","names":["asSchema","asSchema","asSchema","asSchema"]}
@@ -1,3 +1,5 @@
1
- export declare const PriceHistorySchema: string;
1
+ export declare const PriceHistorySchema: string & {
2
+ readonly __schema: true;
3
+ };
2
4
  export type PriceHistorySchema = typeof PriceHistorySchema;
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,QAAsC,CAAA;AACrE,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;CAAsD,CAAA;AACrF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
@@ -1,3 +1,5 @@
1
- export declare const SnapshotSchema: string;
1
+ export declare const SnapshotSchema: string & {
2
+ readonly __schema: true;
3
+ };
2
4
  export type SnapshotSchema = typeof SnapshotSchema;
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,QAAuC,CAAA;AAClE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;CAAuD,CAAA;AAClF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
@@ -1,3 +1,5 @@
1
- export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
2
- export declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
1
+ export type TZeroStockMarketSchema = typeof TZeroStockMarketSchema;
2
+ export declare const TZeroStockMarketSchema: "network.xyo.stock.market.tzero" & {
3
+ readonly __schema: true;
4
+ };
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,gCAAgC,CAAA;AACrE,eAAO,MAAM,sBAAsB,EAAE,sBAAyD,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAClE,eAAO,MAAM,sBAAsB;;CAAmD,CAAA"}
@@ -1,14 +1,19 @@
1
+ // src/Payload/PriceHistory/Schema.ts
2
+ import { asSchema as asSchema2 } from "@xyo-network/payload-model";
3
+
1
4
  // src/Schema.ts
2
- var TZeroStockMarketSchema = "network.xyo.stock.market.tzero";
5
+ import { asSchema } from "@xyo-network/payload-model";
6
+ var TZeroStockMarketSchema = asSchema("network.xyo.stock.market.tzero", true);
3
7
 
4
8
  // src/Payload/PriceHistory/Schema.ts
5
- var PriceHistorySchema = `${TZeroStockMarketSchema}.history`;
9
+ var PriceHistorySchema = asSchema2(`${TZeroStockMarketSchema}.history`, true);
6
10
 
7
11
  // src/Payload/Snapshot/Payload.ts
8
12
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
9
13
 
10
14
  // src/Payload/Snapshot/Schema.ts
11
- var SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`;
15
+ import { asSchema as asSchema3 } from "@xyo-network/payload-model";
16
+ var SnapshotSchema = asSchema3(`${TZeroStockMarketSchema}.snapshot`, true);
12
17
 
13
18
  // src/Payload/Snapshot/Payload.ts
14
19
  var isSnapshot = isPayloadOfSchemaType(SnapshotSchema);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Payload/PriceHistory/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\nexport const TZeroStockMarketSchema: TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = `${TZeroStockMarketSchema}.history`\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`\nexport type SnapshotSchema = typeof SnapshotSchema\n"],"mappings":";AACO,IAAM,yBAAiD;;;ACCvD,IAAM,qBAAqB,GAAG,sBAAsB;;;ACD3D,SAAS,uBAAuB,wCAAwC;;;ACCjE,IAAM,iBAAiB,GAAG,sBAAsB;;;ADkChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/Payload/PriceHistory/Schema.ts","../../src/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n","import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],"mappings":";AAAA,SAAS,YAAAA,iBAAgB;;;ACAzB,SAAS,gBAAgB;AAGlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ADC9E,IAAM,qBAAqBC,UAAS,GAAG,sBAAsB,YAAY,IAAI;;;AEHpF,SAAS,uBAAuB,wCAAwC;;;ACDxE,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,iBAAiBC,UAAS,GAAG,sBAAsB,aAAa,IAAI;;;ADgC1E,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;","names":["asSchema","asSchema","asSchema","asSchema"]}
@@ -1,3 +1,5 @@
1
- export declare const PriceHistorySchema: string;
1
+ export declare const PriceHistorySchema: string & {
2
+ readonly __schema: true;
3
+ };
2
4
  export type PriceHistorySchema = typeof PriceHistorySchema;
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,QAAsC,CAAA;AACrE,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;CAAsD,CAAA;AACrF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
@@ -1,3 +1,5 @@
1
- export declare const SnapshotSchema: string;
1
+ export declare const SnapshotSchema: string & {
2
+ readonly __schema: true;
3
+ };
2
4
  export type SnapshotSchema = typeof SnapshotSchema;
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,QAAuC,CAAA;AAClE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;CAAuD,CAAA;AAClF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
@@ -1,3 +1,5 @@
1
- export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
2
- export declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
1
+ export type TZeroStockMarketSchema = typeof TZeroStockMarketSchema;
2
+ export declare const TZeroStockMarketSchema: "network.xyo.stock.market.tzero" & {
3
+ readonly __schema: true;
4
+ };
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,gCAAgC,CAAA;AACrE,eAAO,MAAM,sBAAsB,EAAE,sBAAyD,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAClE,eAAO,MAAM,sBAAsB;;CAAmD,CAAA"}
@@ -1,14 +1,19 @@
1
+ // src/Payload/PriceHistory/Schema.ts
2
+ import { asSchema as asSchema2 } from "@xyo-network/payload-model";
3
+
1
4
  // src/Schema.ts
2
- var TZeroStockMarketSchema = "network.xyo.stock.market.tzero";
5
+ import { asSchema } from "@xyo-network/payload-model";
6
+ var TZeroStockMarketSchema = asSchema("network.xyo.stock.market.tzero", true);
3
7
 
4
8
  // src/Payload/PriceHistory/Schema.ts
5
- var PriceHistorySchema = `${TZeroStockMarketSchema}.history`;
9
+ var PriceHistorySchema = asSchema2(`${TZeroStockMarketSchema}.history`, true);
6
10
 
7
11
  // src/Payload/Snapshot/Payload.ts
8
12
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
9
13
 
10
14
  // src/Payload/Snapshot/Schema.ts
11
- var SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`;
15
+ import { asSchema as asSchema3 } from "@xyo-network/payload-model";
16
+ var SnapshotSchema = asSchema3(`${TZeroStockMarketSchema}.snapshot`, true);
12
17
 
13
18
  // src/Payload/Snapshot/Payload.ts
14
19
  var isSnapshot = isPayloadOfSchemaType(SnapshotSchema);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Payload/PriceHistory/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\nexport const TZeroStockMarketSchema: TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = `${TZeroStockMarketSchema}.history`\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`\nexport type SnapshotSchema = typeof SnapshotSchema\n"],"mappings":";AACO,IAAM,yBAAiD;;;ACCvD,IAAM,qBAAqB,GAAG,sBAAsB;;;ACD3D,SAAS,uBAAuB,wCAAwC;;;ACCjE,IAAM,iBAAiB,GAAG,sBAAsB;;;ADkChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/Payload/PriceHistory/Schema.ts","../../src/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n","import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],"mappings":";AAAA,SAAS,YAAAA,iBAAgB;;;ACAzB,SAAS,gBAAgB;AAGlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ADC9E,IAAM,qBAAqBC,UAAS,GAAG,sBAAsB,YAAY,IAAI;;;AEHpF,SAAS,uBAAuB,wCAAwC;;;ACDxE,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,iBAAiBC,UAAS,GAAG,sBAAsB,aAAa,IAAI;;;ADgC1E,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;","names":["asSchema","asSchema","asSchema","asSchema"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/tzero-stock-market-payload-plugin",
3
- "version": "5.2.4",
3
+ "version": "5.3.1",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -36,14 +36,14 @@
36
36
  "!**/*.test.*"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/payload-model": "~5.2.14"
39
+ "@xyo-network/payload-model": "~5.3.2"
40
40
  },
41
41
  "devDependencies": {
42
- "@xylabs/ts-scripts-yarn3": "~7.2.8",
43
- "@xylabs/tsconfig": "~7.2.8",
42
+ "@xylabs/ts-scripts-yarn3": "~7.3.2",
43
+ "@xylabs/tsconfig": "~7.3.2",
44
44
  "typescript": "~5.9.3"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  }
49
- }
49
+ }
@@ -1,4 +1,6 @@
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
1
3
  import { TZeroStockMarketSchema } from '../../Schema.ts'
2
4
 
3
- export const PriceHistorySchema = `${TZeroStockMarketSchema}.history`
5
+ export const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)
4
6
  export type PriceHistorySchema = typeof PriceHistorySchema
@@ -1,4 +1,6 @@
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
1
3
  import { TZeroStockMarketSchema } from '../../Schema.ts'
2
4
 
3
- export const SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`
5
+ export const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)
4
6
  export type SnapshotSchema = typeof SnapshotSchema
package/src/Schema.ts CHANGED
@@ -1,2 +1,4 @@
1
- export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'
2
- export const TZeroStockMarketSchema: TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
3
+ export type TZeroStockMarketSchema = typeof TZeroStockMarketSchema
4
+ export const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)