@xyo-network/tzero-stock-market-payload-plugin 3.0.3 → 3.0.4

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.
Files changed (62) hide show
  1. package/dist/browser/Payload/PriceHistory/Payload.d.ts +17 -0
  2. package/dist/browser/Payload/PriceHistory/Payload.d.ts.map +1 -0
  3. package/dist/browser/Payload/PriceHistory/Schema.d.ts +3 -0
  4. package/dist/browser/Payload/PriceHistory/Schema.d.ts.map +1 -0
  5. package/dist/browser/Payload/PriceHistory/index.d.ts +3 -0
  6. package/dist/browser/Payload/PriceHistory/index.d.ts.map +1 -0
  7. package/dist/browser/Payload/Snapshot/Payload.d.ts +32 -0
  8. package/dist/browser/Payload/Snapshot/Payload.d.ts.map +1 -0
  9. package/dist/browser/Payload/Snapshot/Schema.d.ts +3 -0
  10. package/dist/browser/Payload/Snapshot/Schema.d.ts.map +1 -0
  11. package/dist/browser/Payload/Snapshot/index.d.ts +3 -0
  12. package/dist/browser/Payload/Snapshot/index.d.ts.map +1 -0
  13. package/dist/browser/Payload/index.d.ts +3 -0
  14. package/dist/browser/Payload/index.d.ts.map +1 -0
  15. package/dist/browser/Schema.d.ts +3 -0
  16. package/dist/browser/Schema.d.ts.map +1 -0
  17. package/dist/browser/index.d.ts +3 -60
  18. package/dist/browser/index.d.ts.map +1 -0
  19. package/dist/browser/index.mjs +5 -1
  20. package/dist/browser/index.mjs.map +1 -1
  21. package/dist/neutral/Payload/PriceHistory/Payload.d.ts +17 -0
  22. package/dist/neutral/Payload/PriceHistory/Payload.d.ts.map +1 -0
  23. package/dist/neutral/Payload/PriceHistory/Schema.d.ts +3 -0
  24. package/dist/neutral/Payload/PriceHistory/Schema.d.ts.map +1 -0
  25. package/dist/neutral/Payload/PriceHistory/index.d.ts +3 -0
  26. package/dist/neutral/Payload/PriceHistory/index.d.ts.map +1 -0
  27. package/dist/neutral/Payload/Snapshot/Payload.d.ts +32 -0
  28. package/dist/neutral/Payload/Snapshot/Payload.d.ts.map +1 -0
  29. package/dist/neutral/Payload/Snapshot/Schema.d.ts +3 -0
  30. package/dist/neutral/Payload/Snapshot/Schema.d.ts.map +1 -0
  31. package/dist/neutral/Payload/Snapshot/index.d.ts +3 -0
  32. package/dist/neutral/Payload/Snapshot/index.d.ts.map +1 -0
  33. package/dist/neutral/Payload/index.d.ts +3 -0
  34. package/dist/neutral/Payload/index.d.ts.map +1 -0
  35. package/dist/neutral/Schema.d.ts +3 -0
  36. package/dist/neutral/Schema.d.ts.map +1 -0
  37. package/dist/neutral/index.d.ts +3 -60
  38. package/dist/neutral/index.d.ts.map +1 -0
  39. package/dist/neutral/index.mjs +5 -1
  40. package/dist/neutral/index.mjs.map +1 -1
  41. package/dist/node/Payload/PriceHistory/Payload.d.ts +17 -0
  42. package/dist/node/Payload/PriceHistory/Payload.d.ts.map +1 -0
  43. package/dist/node/Payload/PriceHistory/Schema.d.ts +3 -0
  44. package/dist/node/Payload/PriceHistory/Schema.d.ts.map +1 -0
  45. package/dist/node/Payload/PriceHistory/index.d.ts +3 -0
  46. package/dist/node/Payload/PriceHistory/index.d.ts.map +1 -0
  47. package/dist/node/Payload/Snapshot/Payload.d.ts +32 -0
  48. package/dist/node/Payload/Snapshot/Payload.d.ts.map +1 -0
  49. package/dist/node/Payload/Snapshot/Schema.d.ts +3 -0
  50. package/dist/node/Payload/Snapshot/Schema.d.ts.map +1 -0
  51. package/dist/node/Payload/Snapshot/index.d.ts +3 -0
  52. package/dist/node/Payload/Snapshot/index.d.ts.map +1 -0
  53. package/dist/node/Payload/index.d.ts +3 -0
  54. package/dist/node/Payload/index.d.ts.map +1 -0
  55. package/dist/node/Schema.d.ts +3 -0
  56. package/dist/node/Schema.d.ts.map +1 -0
  57. package/dist/node/index.d.ts +3 -60
  58. package/dist/node/index.d.ts.map +1 -0
  59. package/dist/node/index.mjs +5 -1
  60. package/dist/node/index.mjs.map +1 -1
  61. package/package.json +24 -24
  62. package/src/Payload/Snapshot/Payload.ts +3 -1
@@ -0,0 +1,17 @@
1
+ export interface PriceHistory {
2
+ close: number | null;
3
+ date: string;
4
+ high: number | null;
5
+ low: number | null;
6
+ open: number | null;
7
+ symbol: string;
8
+ volume: number;
9
+ }
10
+ export interface PriceHistoryPageFields {
11
+ currentPage: number;
12
+ priceHistories: PriceHistory[];
13
+ size: number;
14
+ totalCount: number;
15
+ totalPages: number;
16
+ }
17
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Payload.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,YAAY,EAAE,CAAA;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB"}
@@ -0,0 +1,3 @@
1
+ export declare const PriceHistorySchema: string;
2
+ export type PriceHistorySchema = typeof PriceHistorySchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,3 @@
1
+ export * from './Payload.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,32 @@
1
+ import type { Payload } from '@xyo-network/payload-model';
2
+ import { SnapshotSchema } from './Schema.ts';
3
+ export interface SnapshotFields {
4
+ askPrice: number | null;
5
+ askPriceRate: number | null;
6
+ askQtyBookTotal: number | null;
7
+ askQuantity: number | null;
8
+ bidPrice: number | null;
9
+ bidPriceRate: number | null;
10
+ bidQtyBookTotal: number | null;
11
+ bidQuantity: number | null;
12
+ high: number | null;
13
+ lastPrice: number | null;
14
+ lastQuantity: number | null;
15
+ low: number | null;
16
+ open: number | null;
17
+ prevClosePx: number | null;
18
+ symbol: string;
19
+ timestamp: string;
20
+ volume: number;
21
+ }
22
+ export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
23
+ export declare const isSnapshot: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SnapshotFields & {
24
+ schema: string;
25
+ };
26
+ export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SnapshotFields & {
27
+ schema: string;
28
+ }>;
29
+ export declare const isSnapshotWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SnapshotFields & {
30
+ schema: string;
31
+ }>;
32
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAK5C,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf;AAKD,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAK9D,eAAO,MAAM,UAAU;;CAAkD,CAAA;AAKzE,eAAO,MAAM,qBAAqB;;EAA6D,CAAA;AAK/F,eAAO,MAAM,kBAAkB;;EAA0D,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const SnapshotSchema: string;
2
+ export type SnapshotSchema = typeof SnapshotSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,3 @@
1
+ export * from './Payload.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './PriceHistory/index.ts';
2
+ export * from './Snapshot/index.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
2
+ export declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +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,60 +1,3 @@
1
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
2
- import { Payload } from '@xyo-network/payload-model';
3
-
4
- interface PriceHistory {
5
- close: number | null;
6
- date: string;
7
- high: number | null;
8
- low: number | null;
9
- open: number | null;
10
- symbol: string;
11
- volume: number;
12
- }
13
- interface PriceHistoryPageFields {
14
- currentPage: number;
15
- priceHistories: PriceHistory[];
16
- size: number;
17
- totalCount: number;
18
- totalPages: number;
19
- }
20
-
21
- declare const PriceHistorySchema: string;
22
- type PriceHistorySchema = typeof PriceHistorySchema;
23
-
24
- declare const SnapshotSchema: string;
25
- type SnapshotSchema = typeof SnapshotSchema;
26
-
27
- interface SnapshotFields {
28
- askPrice: number | null;
29
- askPriceRate: number | null;
30
- askQtyBookTotal: number | null;
31
- askQuantity: number | null;
32
- bidPrice: number | null;
33
- bidPriceRate: number | null;
34
- bidQtyBookTotal: number | null;
35
- bidQuantity: number | null;
36
- high: number | null;
37
- lastPrice: number | null;
38
- lastQuantity: number | null;
39
- low: number | null;
40
- open: number | null;
41
- prevClosePx: number | null;
42
- symbol: string;
43
- timestamp: string;
44
- volume: number;
45
- }
46
- type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
47
- declare const isSnapshot: (x?: unknown | null) => x is _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & SnapshotFields & {
48
- schema: string;
49
- };
50
- declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & SnapshotFields & {
51
- schema: string;
52
- }>;
53
- declare const isSnapshotWithMeta: (x?: unknown | null) => x is _xyo_network_payload_model.WithMeta<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & SnapshotFields & {
54
- schema: string;
55
- }, void>;
56
-
57
- type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
58
- declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
59
-
60
- export { type PriceHistory, type PriceHistoryPageFields, PriceHistorySchema, type Snapshot, type SnapshotFields, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, isSnapshotWithMeta, isSnapshotWithSources };
1
+ export * from './Payload/index.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
@@ -5,7 +5,11 @@ var TZeroStockMarketSchema = "network.xyo.stock.market.tzero";
5
5
  var PriceHistorySchema = `${TZeroStockMarketSchema}.history`;
6
6
 
7
7
  // src/Payload/Snapshot/Payload.ts
8
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
8
+ import {
9
+ isPayloadOfSchemaType,
10
+ isPayloadOfSchemaTypeWithMeta,
11
+ isPayloadOfSchemaTypeWithSources
12
+ } from "@xyo-network/payload-model";
9
13
 
10
14
  // src/Payload/Snapshot/Schema.ts
11
15
  var SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`;
@@ -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, isPayloadOfSchemaTypeWithMeta, 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\n/**\n * Identity function for determine if an object is a Snapshot with meta\n */\nexport const isSnapshotWithMeta = isPayloadOfSchemaTypeWithMeta<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,+BAA+B,wCAAwC;;;ACChG,IAAM,iBAAiB,GAAG,sBAAsB;;;ADkChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;AAKvF,IAAM,qBAAqB,8BAAwC,cAAc;","names":[]}
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 {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources,\n} 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\n/**\n * Identity function for determine if an object is a Snapshot with meta\n */\nexport const isSnapshotWithMeta = isPayloadOfSchemaTypeWithMeta<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;AAAA,EACE;AAAA,EAAuB;AAAA,EAA+B;AAAA,OACjD;;;ACDA,IAAM,iBAAiB,GAAG,sBAAsB;;;ADoChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;AAKvF,IAAM,qBAAqB,8BAAwC,cAAc;","names":[]}
@@ -0,0 +1,17 @@
1
+ export interface PriceHistory {
2
+ close: number | null;
3
+ date: string;
4
+ high: number | null;
5
+ low: number | null;
6
+ open: number | null;
7
+ symbol: string;
8
+ volume: number;
9
+ }
10
+ export interface PriceHistoryPageFields {
11
+ currentPage: number;
12
+ priceHistories: PriceHistory[];
13
+ size: number;
14
+ totalCount: number;
15
+ totalPages: number;
16
+ }
17
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Payload.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,YAAY,EAAE,CAAA;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB"}
@@ -0,0 +1,3 @@
1
+ export declare const PriceHistorySchema: string;
2
+ export type PriceHistorySchema = typeof PriceHistorySchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,3 @@
1
+ export * from './Payload.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,32 @@
1
+ import type { Payload } from '@xyo-network/payload-model';
2
+ import { SnapshotSchema } from './Schema.ts';
3
+ export interface SnapshotFields {
4
+ askPrice: number | null;
5
+ askPriceRate: number | null;
6
+ askQtyBookTotal: number | null;
7
+ askQuantity: number | null;
8
+ bidPrice: number | null;
9
+ bidPriceRate: number | null;
10
+ bidQtyBookTotal: number | null;
11
+ bidQuantity: number | null;
12
+ high: number | null;
13
+ lastPrice: number | null;
14
+ lastQuantity: number | null;
15
+ low: number | null;
16
+ open: number | null;
17
+ prevClosePx: number | null;
18
+ symbol: string;
19
+ timestamp: string;
20
+ volume: number;
21
+ }
22
+ export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
23
+ export declare const isSnapshot: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SnapshotFields & {
24
+ schema: string;
25
+ };
26
+ export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SnapshotFields & {
27
+ schema: string;
28
+ }>;
29
+ export declare const isSnapshotWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SnapshotFields & {
30
+ schema: string;
31
+ }>;
32
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAK5C,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf;AAKD,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAK9D,eAAO,MAAM,UAAU;;CAAkD,CAAA;AAKzE,eAAO,MAAM,qBAAqB;;EAA6D,CAAA;AAK/F,eAAO,MAAM,kBAAkB;;EAA0D,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const SnapshotSchema: string;
2
+ export type SnapshotSchema = typeof SnapshotSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,3 @@
1
+ export * from './Payload.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './PriceHistory/index.ts';
2
+ export * from './Snapshot/index.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
2
+ export declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +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,60 +1,3 @@
1
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
2
- import { Payload } from '@xyo-network/payload-model';
3
-
4
- interface PriceHistory {
5
- close: number | null;
6
- date: string;
7
- high: number | null;
8
- low: number | null;
9
- open: number | null;
10
- symbol: string;
11
- volume: number;
12
- }
13
- interface PriceHistoryPageFields {
14
- currentPage: number;
15
- priceHistories: PriceHistory[];
16
- size: number;
17
- totalCount: number;
18
- totalPages: number;
19
- }
20
-
21
- declare const PriceHistorySchema: string;
22
- type PriceHistorySchema = typeof PriceHistorySchema;
23
-
24
- declare const SnapshotSchema: string;
25
- type SnapshotSchema = typeof SnapshotSchema;
26
-
27
- interface SnapshotFields {
28
- askPrice: number | null;
29
- askPriceRate: number | null;
30
- askQtyBookTotal: number | null;
31
- askQuantity: number | null;
32
- bidPrice: number | null;
33
- bidPriceRate: number | null;
34
- bidQtyBookTotal: number | null;
35
- bidQuantity: number | null;
36
- high: number | null;
37
- lastPrice: number | null;
38
- lastQuantity: number | null;
39
- low: number | null;
40
- open: number | null;
41
- prevClosePx: number | null;
42
- symbol: string;
43
- timestamp: string;
44
- volume: number;
45
- }
46
- type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
47
- declare const isSnapshot: (x?: unknown | null) => x is _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & SnapshotFields & {
48
- schema: string;
49
- };
50
- declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & SnapshotFields & {
51
- schema: string;
52
- }>;
53
- declare const isSnapshotWithMeta: (x?: unknown | null) => x is _xyo_network_payload_model.WithMeta<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & SnapshotFields & {
54
- schema: string;
55
- }, void>;
56
-
57
- type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
58
- declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
59
-
60
- export { type PriceHistory, type PriceHistoryPageFields, PriceHistorySchema, type Snapshot, type SnapshotFields, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, isSnapshotWithMeta, isSnapshotWithSources };
1
+ export * from './Payload/index.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
@@ -5,7 +5,11 @@ var TZeroStockMarketSchema = "network.xyo.stock.market.tzero";
5
5
  var PriceHistorySchema = `${TZeroStockMarketSchema}.history`;
6
6
 
7
7
  // src/Payload/Snapshot/Payload.ts
8
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
8
+ import {
9
+ isPayloadOfSchemaType,
10
+ isPayloadOfSchemaTypeWithMeta,
11
+ isPayloadOfSchemaTypeWithSources
12
+ } from "@xyo-network/payload-model";
9
13
 
10
14
  // src/Payload/Snapshot/Schema.ts
11
15
  var SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`;
@@ -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, isPayloadOfSchemaTypeWithMeta, 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\n/**\n * Identity function for determine if an object is a Snapshot with meta\n */\nexport const isSnapshotWithMeta = isPayloadOfSchemaTypeWithMeta<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,+BAA+B,wCAAwC;;;ACChG,IAAM,iBAAiB,GAAG,sBAAsB;;;ADkChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;AAKvF,IAAM,qBAAqB,8BAAwC,cAAc;","names":[]}
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 {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources,\n} 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\n/**\n * Identity function for determine if an object is a Snapshot with meta\n */\nexport const isSnapshotWithMeta = isPayloadOfSchemaTypeWithMeta<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;AAAA,EACE;AAAA,EAAuB;AAAA,EAA+B;AAAA,OACjD;;;ACDA,IAAM,iBAAiB,GAAG,sBAAsB;;;ADoChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;AAKvF,IAAM,qBAAqB,8BAAwC,cAAc;","names":[]}
@@ -0,0 +1,17 @@
1
+ export interface PriceHistory {
2
+ close: number | null;
3
+ date: string;
4
+ high: number | null;
5
+ low: number | null;
6
+ open: number | null;
7
+ symbol: string;
8
+ volume: number;
9
+ }
10
+ export interface PriceHistoryPageFields {
11
+ currentPage: number;
12
+ priceHistories: PriceHistory[];
13
+ size: number;
14
+ totalCount: number;
15
+ totalPages: number;
16
+ }
17
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Payload.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,YAAY,EAAE,CAAA;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB"}
@@ -0,0 +1,3 @@
1
+ export declare const PriceHistorySchema: string;
2
+ export type PriceHistorySchema = typeof PriceHistorySchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,3 @@
1
+ export * from './Payload.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,32 @@
1
+ import type { Payload } from '@xyo-network/payload-model';
2
+ import { SnapshotSchema } from './Schema.ts';
3
+ export interface SnapshotFields {
4
+ askPrice: number | null;
5
+ askPriceRate: number | null;
6
+ askQtyBookTotal: number | null;
7
+ askQuantity: number | null;
8
+ bidPrice: number | null;
9
+ bidPriceRate: number | null;
10
+ bidQtyBookTotal: number | null;
11
+ bidQuantity: number | null;
12
+ high: number | null;
13
+ lastPrice: number | null;
14
+ lastQuantity: number | null;
15
+ low: number | null;
16
+ open: number | null;
17
+ prevClosePx: number | null;
18
+ symbol: string;
19
+ timestamp: string;
20
+ volume: number;
21
+ }
22
+ export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
23
+ export declare const isSnapshot: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SnapshotFields & {
24
+ schema: string;
25
+ };
26
+ export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SnapshotFields & {
27
+ schema: string;
28
+ }>;
29
+ export declare const isSnapshotWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & SnapshotFields & {
30
+ schema: string;
31
+ }>;
32
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAK5C,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf;AAKD,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAK9D,eAAO,MAAM,UAAU;;CAAkD,CAAA;AAKzE,eAAO,MAAM,qBAAqB;;EAA6D,CAAA;AAK/F,eAAO,MAAM,kBAAkB;;EAA0D,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const SnapshotSchema: string;
2
+ export type SnapshotSchema = typeof SnapshotSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,3 @@
1
+ export * from './Payload.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './PriceHistory/index.ts';
2
+ export * from './Snapshot/index.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
2
+ export declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +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,60 +1,3 @@
1
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
2
- import { Payload } from '@xyo-network/payload-model';
3
-
4
- interface PriceHistory {
5
- close: number | null;
6
- date: string;
7
- high: number | null;
8
- low: number | null;
9
- open: number | null;
10
- symbol: string;
11
- volume: number;
12
- }
13
- interface PriceHistoryPageFields {
14
- currentPage: number;
15
- priceHistories: PriceHistory[];
16
- size: number;
17
- totalCount: number;
18
- totalPages: number;
19
- }
20
-
21
- declare const PriceHistorySchema: string;
22
- type PriceHistorySchema = typeof PriceHistorySchema;
23
-
24
- declare const SnapshotSchema: string;
25
- type SnapshotSchema = typeof SnapshotSchema;
26
-
27
- interface SnapshotFields {
28
- askPrice: number | null;
29
- askPriceRate: number | null;
30
- askQtyBookTotal: number | null;
31
- askQuantity: number | null;
32
- bidPrice: number | null;
33
- bidPriceRate: number | null;
34
- bidQtyBookTotal: number | null;
35
- bidQuantity: number | null;
36
- high: number | null;
37
- lastPrice: number | null;
38
- lastQuantity: number | null;
39
- low: number | null;
40
- open: number | null;
41
- prevClosePx: number | null;
42
- symbol: string;
43
- timestamp: string;
44
- volume: number;
45
- }
46
- type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
47
- declare const isSnapshot: (x?: unknown | null) => x is _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & SnapshotFields & {
48
- schema: string;
49
- };
50
- declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & SnapshotFields & {
51
- schema: string;
52
- }>;
53
- declare const isSnapshotWithMeta: (x?: unknown | null) => x is _xyo_network_payload_model.WithMeta<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & SnapshotFields & {
54
- schema: string;
55
- }, void>;
56
-
57
- type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
58
- declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
59
-
60
- export { type PriceHistory, type PriceHistoryPageFields, PriceHistorySchema, type Snapshot, type SnapshotFields, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, isSnapshotWithMeta, isSnapshotWithSources };
1
+ export * from './Payload/index.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
@@ -5,7 +5,11 @@ var TZeroStockMarketSchema = "network.xyo.stock.market.tzero";
5
5
  var PriceHistorySchema = `${TZeroStockMarketSchema}.history`;
6
6
 
7
7
  // src/Payload/Snapshot/Payload.ts
8
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
8
+ import {
9
+ isPayloadOfSchemaType,
10
+ isPayloadOfSchemaTypeWithMeta,
11
+ isPayloadOfSchemaTypeWithSources
12
+ } from "@xyo-network/payload-model";
9
13
 
10
14
  // src/Payload/Snapshot/Schema.ts
11
15
  var SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`;
@@ -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, isPayloadOfSchemaTypeWithMeta, 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\n/**\n * Identity function for determine if an object is a Snapshot with meta\n */\nexport const isSnapshotWithMeta = isPayloadOfSchemaTypeWithMeta<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,+BAA+B,wCAAwC;;;ACChG,IAAM,iBAAiB,GAAG,sBAAsB;;;ADkChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;AAKvF,IAAM,qBAAqB,8BAAwC,cAAc;","names":[]}
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 {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources,\n} 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\n/**\n * Identity function for determine if an object is a Snapshot with meta\n */\nexport const isSnapshotWithMeta = isPayloadOfSchemaTypeWithMeta<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;AAAA,EACE;AAAA,EAAuB;AAAA,EAA+B;AAAA,OACjD;;;ACDA,IAAM,iBAAiB,GAAG,sBAAsB;;;ADoChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;AAKvF,IAAM,qBAAqB,8BAAwC,cAAc;","names":[]}
package/package.json CHANGED
@@ -1,23 +1,24 @@
1
1
  {
2
2
  "name": "@xyo-network/tzero-stock-market-payload-plugin",
3
- "author": {
4
- "email": "support@xyo.network",
5
- "name": "XYO Development Team",
6
- "url": "https://xyo.network"
7
- },
3
+ "version": "3.0.4",
4
+ "description": "Typescript/Javascript Plugins for XYO Platform",
5
+ "homepage": "https://xyo.network",
8
6
  "bugs": {
9
- "email": "support@xyo.network",
10
- "url": "git+https://github.com/XYOracleNetwork/plugins/issues"
7
+ "url": "git+https://github.com/XYOracleNetwork/plugins/issues",
8
+ "email": "support@xyo.network"
11
9
  },
12
- "dependencies": {
13
- "@xyo-network/payload-model": "^3.0.3"
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/XYOracleNetwork/plugins.git"
14
13
  },
15
- "devDependencies": {
16
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
17
- "@xylabs/tsconfig": "^4.0.0-rc.20",
18
- "typescript": "^5.5.4"
14
+ "license": "LGPL-3.0-only",
15
+ "author": {
16
+ "name": "XYO Development Team",
17
+ "email": "support@xyo.network",
18
+ "url": "https://xyo.network"
19
19
  },
20
- "description": "Typescript/Javascript Plugins for XYO Platform",
20
+ "sideEffects": false,
21
+ "type": "module",
21
22
  "exports": {
22
23
  ".": {
23
24
  "types": "./dist/neutral/index.d.ts",
@@ -27,16 +28,15 @@
27
28
  },
28
29
  "module": "dist/neutral/index.mjs",
29
30
  "types": "dist/neutral/index.d.ts",
30
- "homepage": "https://xyo.network",
31
- "license": "LGPL-3.0-only",
32
- "publishConfig": {
33
- "access": "public"
31
+ "dependencies": {
32
+ "@xyo-network/payload-model": "^3.0.10"
34
33
  },
35
- "repository": {
36
- "type": "git",
37
- "url": "git+https://github.com/XYOracleNetwork/plugins.git"
34
+ "devDependencies": {
35
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
36
+ "@xylabs/tsconfig": "^4.0.7",
37
+ "typescript": "^5.5.4"
38
38
  },
39
- "sideEffects": false,
40
- "version": "3.0.3",
41
- "type": "module"
39
+ "publishConfig": {
40
+ "access": "public"
41
+ }
42
42
  }
@@ -1,5 +1,7 @@
1
1
  import type { Payload } from '@xyo-network/payload-model'
2
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
2
+ import {
3
+ isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources,
4
+ } from '@xyo-network/payload-model'
3
5
 
4
6
  import { SnapshotSchema } from './Schema.ts'
5
7