@xyo-network/tzero-stock-market-payload-plugin 4.0.0 → 4.1.0

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 (56) hide show
  1. package/dist/browser/index.d.ts +66 -0
  2. package/dist/neutral/Payload/PriceHistory/Payload.d.ts +17 -0
  3. package/dist/neutral/Payload/PriceHistory/Payload.d.ts.map +1 -0
  4. package/dist/neutral/Payload/PriceHistory/Schema.d.ts +3 -0
  5. package/dist/neutral/Payload/PriceHistory/Schema.d.ts.map +1 -0
  6. package/dist/neutral/Payload/PriceHistory/index.d.ts +3 -0
  7. package/dist/neutral/Payload/PriceHistory/index.d.ts.map +1 -0
  8. package/dist/neutral/Payload/Snapshot/Payload.d.ts +37 -0
  9. package/dist/neutral/Payload/Snapshot/Payload.d.ts.map +1 -0
  10. package/dist/neutral/Payload/Snapshot/Schema.d.ts +3 -0
  11. package/dist/neutral/Payload/Snapshot/Schema.d.ts.map +1 -0
  12. package/dist/neutral/Payload/Snapshot/index.d.ts +3 -0
  13. package/dist/neutral/Payload/Snapshot/index.d.ts.map +1 -0
  14. package/dist/neutral/Payload/index.d.ts +3 -0
  15. package/dist/neutral/Payload/index.d.ts.map +1 -0
  16. package/dist/neutral/Schema.d.ts +3 -0
  17. package/dist/neutral/Schema.d.ts.map +1 -0
  18. package/dist/neutral/index.d.ts +66 -0
  19. package/dist/neutral/index.d.ts.map +1 -0
  20. package/dist/node/Payload/PriceHistory/Payload.d.ts +17 -0
  21. package/dist/node/Payload/PriceHistory/Payload.d.ts.map +1 -0
  22. package/dist/node/Payload/PriceHistory/Schema.d.ts +3 -0
  23. package/dist/node/Payload/PriceHistory/Schema.d.ts.map +1 -0
  24. package/dist/node/Payload/PriceHistory/index.d.ts +3 -0
  25. package/dist/node/Payload/PriceHistory/index.d.ts.map +1 -0
  26. package/dist/node/Payload/Snapshot/Payload.d.ts +37 -0
  27. package/dist/node/Payload/Snapshot/Payload.d.ts.map +1 -0
  28. package/dist/node/Payload/Snapshot/Schema.d.ts +3 -0
  29. package/dist/node/Payload/Snapshot/Schema.d.ts.map +1 -0
  30. package/dist/node/Payload/Snapshot/index.d.ts +3 -0
  31. package/dist/node/Payload/Snapshot/index.d.ts.map +1 -0
  32. package/dist/node/Payload/index.d.ts +3 -0
  33. package/dist/node/Payload/index.d.ts.map +1 -0
  34. package/dist/node/Schema.d.ts +3 -0
  35. package/dist/node/Schema.d.ts.map +1 -0
  36. package/dist/node/index.d.ts +66 -0
  37. package/dist/node/index.d.ts.map +1 -0
  38. package/package.json +6 -6
  39. package/dist/types/index.d.ts +0 -3
  40. /package/dist/{types → browser}/Payload/PriceHistory/Payload.d.ts +0 -0
  41. /package/dist/{types → browser}/Payload/PriceHistory/Payload.d.ts.map +0 -0
  42. /package/dist/{types → browser}/Payload/PriceHistory/Schema.d.ts +0 -0
  43. /package/dist/{types → browser}/Payload/PriceHistory/Schema.d.ts.map +0 -0
  44. /package/dist/{types → browser}/Payload/PriceHistory/index.d.ts +0 -0
  45. /package/dist/{types → browser}/Payload/PriceHistory/index.d.ts.map +0 -0
  46. /package/dist/{types → browser}/Payload/Snapshot/Payload.d.ts +0 -0
  47. /package/dist/{types → browser}/Payload/Snapshot/Payload.d.ts.map +0 -0
  48. /package/dist/{types → browser}/Payload/Snapshot/Schema.d.ts +0 -0
  49. /package/dist/{types → browser}/Payload/Snapshot/Schema.d.ts.map +0 -0
  50. /package/dist/{types → browser}/Payload/Snapshot/index.d.ts +0 -0
  51. /package/dist/{types → browser}/Payload/Snapshot/index.d.ts.map +0 -0
  52. /package/dist/{types → browser}/Payload/index.d.ts +0 -0
  53. /package/dist/{types → browser}/Payload/index.d.ts.map +0 -0
  54. /package/dist/{types → browser}/Schema.d.ts +0 -0
  55. /package/dist/{types → browser}/Schema.d.ts.map +0 -0
  56. /package/dist/{types → browser}/index.d.ts.map +0 -0
@@ -0,0 +1,66 @@
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
+ /**
28
+ * The fields for a Snapshot
29
+ */
30
+ interface SnapshotFields {
31
+ askPrice: number | null;
32
+ askPriceRate: number | null;
33
+ askQtyBookTotal: number | null;
34
+ askQuantity: number | null;
35
+ bidPrice: number | null;
36
+ bidPriceRate: number | null;
37
+ bidQtyBookTotal: number | null;
38
+ bidQuantity: number | null;
39
+ high: number | null;
40
+ lastPrice: number | null;
41
+ lastQuantity: number | null;
42
+ low: number | null;
43
+ open: number | null;
44
+ prevClosePx: number | null;
45
+ symbol: string;
46
+ timestamp: string;
47
+ volume: number;
48
+ }
49
+ /**
50
+ * The Snapshot payload
51
+ */
52
+ type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
53
+ /**
54
+ * Identity function for determine if an object is a Snapshot
55
+ */
56
+ declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
57
+ /**
58
+ * Identity function for determine if an object is a Snapshot with sources
59
+ */
60
+ declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<Snapshot>;
61
+
62
+ type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
63
+ declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
64
+
65
+ export { PriceHistorySchema, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, isSnapshotWithSources };
66
+ export type { PriceHistory, PriceHistoryPageFields, Snapshot, SnapshotFields };
@@ -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 type { 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,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,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"}
@@ -0,0 +1,66 @@
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
+ /**
28
+ * The fields for a Snapshot
29
+ */
30
+ interface SnapshotFields {
31
+ askPrice: number | null;
32
+ askPriceRate: number | null;
33
+ askQtyBookTotal: number | null;
34
+ askQuantity: number | null;
35
+ bidPrice: number | null;
36
+ bidPriceRate: number | null;
37
+ bidQtyBookTotal: number | null;
38
+ bidQuantity: number | null;
39
+ high: number | null;
40
+ lastPrice: number | null;
41
+ lastQuantity: number | null;
42
+ low: number | null;
43
+ open: number | null;
44
+ prevClosePx: number | null;
45
+ symbol: string;
46
+ timestamp: string;
47
+ volume: number;
48
+ }
49
+ /**
50
+ * The Snapshot payload
51
+ */
52
+ type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
53
+ /**
54
+ * Identity function for determine if an object is a Snapshot
55
+ */
56
+ declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
57
+ /**
58
+ * Identity function for determine if an object is a Snapshot with sources
59
+ */
60
+ declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<Snapshot>;
61
+
62
+ type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
63
+ declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
64
+
65
+ export { PriceHistorySchema, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, isSnapshotWithSources };
66
+ export type { PriceHistory, PriceHistoryPageFields, Snapshot, SnapshotFields };
@@ -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"}
@@ -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 type { 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,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,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"}
@@ -0,0 +1,66 @@
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
+ /**
28
+ * The fields for a Snapshot
29
+ */
30
+ interface SnapshotFields {
31
+ askPrice: number | null;
32
+ askPriceRate: number | null;
33
+ askQtyBookTotal: number | null;
34
+ askQuantity: number | null;
35
+ bidPrice: number | null;
36
+ bidPriceRate: number | null;
37
+ bidQtyBookTotal: number | null;
38
+ bidQuantity: number | null;
39
+ high: number | null;
40
+ lastPrice: number | null;
41
+ lastQuantity: number | null;
42
+ low: number | null;
43
+ open: number | null;
44
+ prevClosePx: number | null;
45
+ symbol: string;
46
+ timestamp: string;
47
+ volume: number;
48
+ }
49
+ /**
50
+ * The Snapshot payload
51
+ */
52
+ type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
53
+ /**
54
+ * Identity function for determine if an object is a Snapshot
55
+ */
56
+ declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
57
+ /**
58
+ * Identity function for determine if an object is a Snapshot with sources
59
+ */
60
+ declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<Snapshot>;
61
+
62
+ type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
63
+ declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
64
+
65
+ export { PriceHistorySchema, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, isSnapshotWithSources };
66
+ export type { PriceHistory, PriceHistoryPageFields, Snapshot, SnapshotFields };
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/tzero-stock-market-payload-plugin",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,19 +21,19 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/types/index.d.ts",
24
+ "types": "./dist/neutral/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/types/index.d.ts",
30
+ "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xyo-network/payload-model": "^4.0.1"
32
+ "@xyo-network/payload-model": "^4.1.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
36
- "@xylabs/tsconfig": "^6.5.12",
35
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.24",
36
+ "@xylabs/tsconfig": "^7.0.0-rc.24",
37
37
  "knip": "^5.61.3",
38
38
  "typescript": "^5.8.3"
39
39
  },
@@ -1,3 +0,0 @@
1
- export * from './Payload/index.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
File without changes
File without changes
File without changes
File without changes
File without changes