@xyo-network/tzero-stock-market-payload-plugin 3.4.1 → 3.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +37 -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 -92
  18. package/dist/browser/index.d.ts.map +1 -0
  19. package/dist/browser/index.mjs +4 -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 +37 -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 -92
  38. package/dist/neutral/index.d.ts.map +1 -0
  39. package/dist/neutral/index.mjs +4 -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 +37 -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 -92
  58. package/dist/node/index.d.ts.map +1 -0
  59. package/dist/node/index.mjs +4 -1
  60. package/dist/node/index.mjs.map +1 -1
  61. package/package.json +5 -5
  62. package/src/Payload/Snapshot/Payload.ts +3 -2
@@ -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,37 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { SnapshotSchema } from './Schema.ts';
3
+ /**
4
+ * The fields for a Snapshot
5
+ */
6
+ export interface SnapshotFields {
7
+ askPrice: number | null;
8
+ askPriceRate: number | null;
9
+ askQtyBookTotal: number | null;
10
+ askQuantity: number | null;
11
+ bidPrice: number | null;
12
+ bidPriceRate: number | null;
13
+ bidQtyBookTotal: number | null;
14
+ bidQuantity: number | null;
15
+ high: number | null;
16
+ lastPrice: number | null;
17
+ lastQuantity: number | null;
18
+ low: number | null;
19
+ open: number | null;
20
+ prevClosePx: number | null;
21
+ symbol: string;
22
+ timestamp: string;
23
+ volume: number;
24
+ }
25
+ /**
26
+ * The Snapshot payload
27
+ */
28
+ export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
29
+ /**
30
+ * Identity function for determine if an object is a Snapshot
31
+ */
32
+ export declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
33
+ /**
34
+ * Identity function for determine if an object is a Snapshot with sources
35
+ */
36
+ export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Snapshot>;
37
+ //# 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,EACoD,OAAO,EACjE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,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;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,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,92 +1,3 @@
1
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
2
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
3
- import { Payload } from '@xyo-network/payload-model';
4
-
5
- interface PriceHistory {
6
- close: number | null;
7
- date: string;
8
- high: number | null;
9
- low: number | null;
10
- open: number | null;
11
- symbol: string;
12
- volume: number;
13
- }
14
- interface PriceHistoryPageFields {
15
- currentPage: number;
16
- priceHistories: PriceHistory[];
17
- size: number;
18
- totalCount: number;
19
- totalPages: number;
20
- }
21
-
22
- declare const PriceHistorySchema: string;
23
- type PriceHistorySchema = typeof PriceHistorySchema;
24
-
25
- declare const SnapshotSchema: string;
26
- type SnapshotSchema = typeof SnapshotSchema;
27
-
28
- interface SnapshotFields {
29
- askPrice: number | null;
30
- askPriceRate: number | null;
31
- askQtyBookTotal: number | null;
32
- askQuantity: number | null;
33
- bidPrice: number | null;
34
- bidPriceRate: number | null;
35
- bidQtyBookTotal: number | null;
36
- bidQuantity: number | null;
37
- high: number | null;
38
- lastPrice: number | null;
39
- lastQuantity: number | null;
40
- low: number | null;
41
- open: number | null;
42
- prevClosePx: number | null;
43
- symbol: string;
44
- timestamp: string;
45
- volume: number;
46
- }
47
- type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
48
- declare const isSnapshot: (x?: unknown | null) => x is _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
49
- schema: _xyo_network_payload_model.Schema;
50
- askPrice: number | null;
51
- askPriceRate: number | null;
52
- askQtyBookTotal: number | null;
53
- askQuantity: number | null;
54
- bidPrice: number | null;
55
- bidPriceRate: number | null;
56
- bidQtyBookTotal: number | null;
57
- bidQuantity: number | null;
58
- high: number | null;
59
- lastPrice: number | null;
60
- lastQuantity: number | null;
61
- low: number | null;
62
- open: number | null;
63
- prevClosePx: number | null;
64
- symbol: string;
65
- timestamp: string;
66
- volume: number;
67
- }>;
68
- declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<_store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
69
- schema: _xyo_network_payload_model.Schema;
70
- askPrice: number | null;
71
- askPriceRate: number | null;
72
- askQtyBookTotal: number | null;
73
- askQuantity: number | null;
74
- bidPrice: number | null;
75
- bidPriceRate: number | null;
76
- bidQtyBookTotal: number | null;
77
- bidQuantity: number | null;
78
- high: number | null;
79
- lastPrice: number | null;
80
- lastQuantity: number | null;
81
- low: number | null;
82
- open: number | null;
83
- prevClosePx: number | null;
84
- symbol: string;
85
- timestamp: string;
86
- volume: number;
87
- }>>;
88
-
89
- type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
90
- declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
91
-
92
- export { type PriceHistory, type PriceHistoryPageFields, PriceHistorySchema, type Snapshot, type SnapshotFields, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, 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,10 @@ 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, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
8
+ import {
9
+ isPayloadOfSchemaType,
10
+ isPayloadOfSchemaTypeWithSources
11
+ } from "@xyo-network/payload-model";
9
12
 
10
13
  // src/Payload/Snapshot/Schema.ts
11
14
  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, 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/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 {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,\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","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;;;ACF3D;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;;;ACAA,IAAM,iBAAiB,GAAG,sBAAsB;;;ADmChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,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,37 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { SnapshotSchema } from './Schema.ts';
3
+ /**
4
+ * The fields for a Snapshot
5
+ */
6
+ export interface SnapshotFields {
7
+ askPrice: number | null;
8
+ askPriceRate: number | null;
9
+ askQtyBookTotal: number | null;
10
+ askQuantity: number | null;
11
+ bidPrice: number | null;
12
+ bidPriceRate: number | null;
13
+ bidQtyBookTotal: number | null;
14
+ bidQuantity: number | null;
15
+ high: number | null;
16
+ lastPrice: number | null;
17
+ lastQuantity: number | null;
18
+ low: number | null;
19
+ open: number | null;
20
+ prevClosePx: number | null;
21
+ symbol: string;
22
+ timestamp: string;
23
+ volume: number;
24
+ }
25
+ /**
26
+ * The Snapshot payload
27
+ */
28
+ export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
29
+ /**
30
+ * Identity function for determine if an object is a Snapshot
31
+ */
32
+ export declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
33
+ /**
34
+ * Identity function for determine if an object is a Snapshot with sources
35
+ */
36
+ export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Snapshot>;
37
+ //# 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,EACoD,OAAO,EACjE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,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;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,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,92 +1,3 @@
1
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
2
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
3
- import { Payload } from '@xyo-network/payload-model';
4
-
5
- interface PriceHistory {
6
- close: number | null;
7
- date: string;
8
- high: number | null;
9
- low: number | null;
10
- open: number | null;
11
- symbol: string;
12
- volume: number;
13
- }
14
- interface PriceHistoryPageFields {
15
- currentPage: number;
16
- priceHistories: PriceHistory[];
17
- size: number;
18
- totalCount: number;
19
- totalPages: number;
20
- }
21
-
22
- declare const PriceHistorySchema: string;
23
- type PriceHistorySchema = typeof PriceHistorySchema;
24
-
25
- declare const SnapshotSchema: string;
26
- type SnapshotSchema = typeof SnapshotSchema;
27
-
28
- interface SnapshotFields {
29
- askPrice: number | null;
30
- askPriceRate: number | null;
31
- askQtyBookTotal: number | null;
32
- askQuantity: number | null;
33
- bidPrice: number | null;
34
- bidPriceRate: number | null;
35
- bidQtyBookTotal: number | null;
36
- bidQuantity: number | null;
37
- high: number | null;
38
- lastPrice: number | null;
39
- lastQuantity: number | null;
40
- low: number | null;
41
- open: number | null;
42
- prevClosePx: number | null;
43
- symbol: string;
44
- timestamp: string;
45
- volume: number;
46
- }
47
- type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
48
- declare const isSnapshot: (x?: unknown | null) => x is _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
49
- schema: _xyo_network_payload_model.Schema;
50
- askPrice: number | null;
51
- askPriceRate: number | null;
52
- askQtyBookTotal: number | null;
53
- askQuantity: number | null;
54
- bidPrice: number | null;
55
- bidPriceRate: number | null;
56
- bidQtyBookTotal: number | null;
57
- bidQuantity: number | null;
58
- high: number | null;
59
- lastPrice: number | null;
60
- lastQuantity: number | null;
61
- low: number | null;
62
- open: number | null;
63
- prevClosePx: number | null;
64
- symbol: string;
65
- timestamp: string;
66
- volume: number;
67
- }>;
68
- declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<_store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
69
- schema: _xyo_network_payload_model.Schema;
70
- askPrice: number | null;
71
- askPriceRate: number | null;
72
- askQtyBookTotal: number | null;
73
- askQuantity: number | null;
74
- bidPrice: number | null;
75
- bidPriceRate: number | null;
76
- bidQtyBookTotal: number | null;
77
- bidQuantity: number | null;
78
- high: number | null;
79
- lastPrice: number | null;
80
- lastQuantity: number | null;
81
- low: number | null;
82
- open: number | null;
83
- prevClosePx: number | null;
84
- symbol: string;
85
- timestamp: string;
86
- volume: number;
87
- }>>;
88
-
89
- type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
90
- declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
91
-
92
- export { type PriceHistory, type PriceHistoryPageFields, PriceHistorySchema, type Snapshot, type SnapshotFields, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, 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,10 @@ 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, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
8
+ import {
9
+ isPayloadOfSchemaType,
10
+ isPayloadOfSchemaTypeWithSources
11
+ } from "@xyo-network/payload-model";
9
12
 
10
13
  // src/Payload/Snapshot/Schema.ts
11
14
  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, 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/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 {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,\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","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;;;ACF3D;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;;;ACAA,IAAM,iBAAiB,GAAG,sBAAsB;;;ADmChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,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,37 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { SnapshotSchema } from './Schema.ts';
3
+ /**
4
+ * The fields for a Snapshot
5
+ */
6
+ export interface SnapshotFields {
7
+ askPrice: number | null;
8
+ askPriceRate: number | null;
9
+ askQtyBookTotal: number | null;
10
+ askQuantity: number | null;
11
+ bidPrice: number | null;
12
+ bidPriceRate: number | null;
13
+ bidQtyBookTotal: number | null;
14
+ bidQuantity: number | null;
15
+ high: number | null;
16
+ lastPrice: number | null;
17
+ lastQuantity: number | null;
18
+ low: number | null;
19
+ open: number | null;
20
+ prevClosePx: number | null;
21
+ symbol: string;
22
+ timestamp: string;
23
+ volume: number;
24
+ }
25
+ /**
26
+ * The Snapshot payload
27
+ */
28
+ export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
29
+ /**
30
+ * Identity function for determine if an object is a Snapshot
31
+ */
32
+ export declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
33
+ /**
34
+ * Identity function for determine if an object is a Snapshot with sources
35
+ */
36
+ export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Snapshot>;
37
+ //# 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,EACoD,OAAO,EACjE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,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;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,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,92 +1,3 @@
1
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
2
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
3
- import { Payload } from '@xyo-network/payload-model';
4
-
5
- interface PriceHistory {
6
- close: number | null;
7
- date: string;
8
- high: number | null;
9
- low: number | null;
10
- open: number | null;
11
- symbol: string;
12
- volume: number;
13
- }
14
- interface PriceHistoryPageFields {
15
- currentPage: number;
16
- priceHistories: PriceHistory[];
17
- size: number;
18
- totalCount: number;
19
- totalPages: number;
20
- }
21
-
22
- declare const PriceHistorySchema: string;
23
- type PriceHistorySchema = typeof PriceHistorySchema;
24
-
25
- declare const SnapshotSchema: string;
26
- type SnapshotSchema = typeof SnapshotSchema;
27
-
28
- interface SnapshotFields {
29
- askPrice: number | null;
30
- askPriceRate: number | null;
31
- askQtyBookTotal: number | null;
32
- askQuantity: number | null;
33
- bidPrice: number | null;
34
- bidPriceRate: number | null;
35
- bidQtyBookTotal: number | null;
36
- bidQuantity: number | null;
37
- high: number | null;
38
- lastPrice: number | null;
39
- lastQuantity: number | null;
40
- low: number | null;
41
- open: number | null;
42
- prevClosePx: number | null;
43
- symbol: string;
44
- timestamp: string;
45
- volume: number;
46
- }
47
- type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
48
- declare const isSnapshot: (x?: unknown | null) => x is _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
49
- schema: _xyo_network_payload_model.Schema;
50
- askPrice: number | null;
51
- askPriceRate: number | null;
52
- askQtyBookTotal: number | null;
53
- askQuantity: number | null;
54
- bidPrice: number | null;
55
- bidPriceRate: number | null;
56
- bidQtyBookTotal: number | null;
57
- bidQuantity: number | null;
58
- high: number | null;
59
- lastPrice: number | null;
60
- lastQuantity: number | null;
61
- low: number | null;
62
- open: number | null;
63
- prevClosePx: number | null;
64
- symbol: string;
65
- timestamp: string;
66
- volume: number;
67
- }>;
68
- declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<_store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
69
- schema: _xyo_network_payload_model.Schema;
70
- askPrice: number | null;
71
- askPriceRate: number | null;
72
- askQtyBookTotal: number | null;
73
- askQuantity: number | null;
74
- bidPrice: number | null;
75
- bidPriceRate: number | null;
76
- bidQtyBookTotal: number | null;
77
- bidQuantity: number | null;
78
- high: number | null;
79
- lastPrice: number | null;
80
- lastQuantity: number | null;
81
- low: number | null;
82
- open: number | null;
83
- prevClosePx: number | null;
84
- symbol: string;
85
- timestamp: string;
86
- volume: number;
87
- }>>;
88
-
89
- type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
90
- declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
91
-
92
- export { type PriceHistory, type PriceHistoryPageFields, PriceHistorySchema, type Snapshot, type SnapshotFields, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, 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,10 @@ 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, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
8
+ import {
9
+ isPayloadOfSchemaType,
10
+ isPayloadOfSchemaTypeWithSources
11
+ } from "@xyo-network/payload-model";
9
12
 
10
13
  // src/Payload/Snapshot/Schema.ts
11
14
  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, 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/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 {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,\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","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;;;ACF3D;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;;;ACAA,IAAM,iBAAiB,GAAG,sBAAsB;;;ADmChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/tzero-stock-market-payload-plugin",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,12 +29,12 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xyo-network/payload-model": "^3.8.5"
32
+ "@xyo-network/payload-model": "^3.9.23"
33
33
  },
34
34
  "devDependencies": {
35
- "@xylabs/ts-scripts-yarn3": "^5.0.22",
36
- "@xylabs/tsconfig": "^5.0.22",
37
- "typescript": "^5.7.3"
35
+ "@xylabs/ts-scripts-yarn3": "^5.0.39",
36
+ "@xylabs/tsconfig": "^5.0.39",
37
+ "typescript": "^5.8.2"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
@@ -1,5 +1,6 @@
1
- import type { Payload } from '@xyo-network/payload-model'
2
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
1
+ import {
2
+ isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,
3
+ } from '@xyo-network/payload-model'
3
4
 
4
5
  import { SnapshotSchema } from './Schema.ts'
5
6