@xyo-network/tzero-stock-market-payload-plugin 6.0.3 → 7.0.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 (54) hide show
  1. package/README.md +7 -0
  2. package/dist/neutral/Payload/PriceHistory/Payload.d.ts +6 -0
  3. package/dist/neutral/Payload/PriceHistory/Payload.d.ts.map +1 -1
  4. package/dist/neutral/Payload/PriceHistory/Schema.d.ts +6 -0
  5. package/dist/neutral/Payload/PriceHistory/Schema.d.ts.map +1 -1
  6. package/dist/neutral/Payload/Snapshot/Payload.d.ts +160 -12
  7. package/dist/neutral/Payload/Snapshot/Payload.d.ts.map +1 -1
  8. package/dist/neutral/Payload/Snapshot/Schema.d.ts +6 -0
  9. package/dist/neutral/Payload/Snapshot/Schema.d.ts.map +1 -1
  10. package/dist/neutral/Schema.d.ts +6 -0
  11. package/dist/neutral/Schema.d.ts.map +1 -1
  12. package/dist/neutral/index.mjs +37 -4
  13. package/dist/neutral/index.mjs.map +2 -2
  14. package/package.json +17 -17
  15. package/dist/browser/Payload/PriceHistory/Payload.d.ts +0 -17
  16. package/dist/browser/Payload/PriceHistory/Payload.d.ts.map +0 -1
  17. package/dist/browser/Payload/PriceHistory/Schema.d.ts +0 -5
  18. package/dist/browser/Payload/PriceHistory/Schema.d.ts.map +0 -1
  19. package/dist/browser/Payload/PriceHistory/index.d.ts +0 -3
  20. package/dist/browser/Payload/PriceHistory/index.d.ts.map +0 -1
  21. package/dist/browser/Payload/Snapshot/Payload.d.ts +0 -37
  22. package/dist/browser/Payload/Snapshot/Payload.d.ts.map +0 -1
  23. package/dist/browser/Payload/Snapshot/Schema.d.ts +0 -5
  24. package/dist/browser/Payload/Snapshot/Schema.d.ts.map +0 -1
  25. package/dist/browser/Payload/Snapshot/index.d.ts +0 -3
  26. package/dist/browser/Payload/Snapshot/index.d.ts.map +0 -1
  27. package/dist/browser/Payload/index.d.ts +0 -3
  28. package/dist/browser/Payload/index.d.ts.map +0 -1
  29. package/dist/browser/Schema.d.ts +0 -5
  30. package/dist/browser/Schema.d.ts.map +0 -1
  31. package/dist/browser/index.d.ts +0 -3
  32. package/dist/browser/index.d.ts.map +0 -1
  33. package/dist/browser/index.mjs +0 -28
  34. package/dist/browser/index.mjs.map +0 -7
  35. package/dist/node/Payload/PriceHistory/Payload.d.ts +0 -17
  36. package/dist/node/Payload/PriceHistory/Payload.d.ts.map +0 -1
  37. package/dist/node/Payload/PriceHistory/Schema.d.ts +0 -5
  38. package/dist/node/Payload/PriceHistory/Schema.d.ts.map +0 -1
  39. package/dist/node/Payload/PriceHistory/index.d.ts +0 -3
  40. package/dist/node/Payload/PriceHistory/index.d.ts.map +0 -1
  41. package/dist/node/Payload/Snapshot/Payload.d.ts +0 -37
  42. package/dist/node/Payload/Snapshot/Payload.d.ts.map +0 -1
  43. package/dist/node/Payload/Snapshot/Schema.d.ts +0 -5
  44. package/dist/node/Payload/Snapshot/Schema.d.ts.map +0 -1
  45. package/dist/node/Payload/Snapshot/index.d.ts +0 -3
  46. package/dist/node/Payload/Snapshot/index.d.ts.map +0 -1
  47. package/dist/node/Payload/index.d.ts +0 -3
  48. package/dist/node/Payload/index.d.ts.map +0 -1
  49. package/dist/node/Schema.d.ts +0 -5
  50. package/dist/node/Schema.d.ts.map +0 -1
  51. package/dist/node/index.d.ts +0 -3
  52. package/dist/node/index.d.ts.map +0 -1
  53. package/dist/node/index.mjs +0 -28
  54. package/dist/node/index.mjs.map +0 -7
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/tzero-stock-market-payload-plugin
2
4
 
5
+ > ⚠️ **DEPRECATED** — This package is deprecated and is no longer maintained.
6
+
3
7
  [![npm][npm-badge]][npm-link]
4
8
  [![license][license-badge]][license-link]
5
9
 
@@ -36,9 +40,12 @@ bun add {{name}}
36
40
 
37
41
  See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
38
42
 
43
+ ## Credits
39
44
 
45
+ [Made with 🔥 and ❄️ by XYO Foundation](https://xyo.network)
40
46
 
41
47
  [npm-badge]: https://img.shields.io/npm/v/@xyo-network/tzero-stock-market-payload-plugin.svg
42
48
  [npm-link]: https://www.npmjs.com/package/@xyo-network/tzero-stock-market-payload-plugin
43
49
  [license-badge]: https://img.shields.io/npm/l/@xyo-network/tzero-stock-market-payload-plugin.svg
44
50
  [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
51
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated This export is deprecated and is no longer maintained.
3
+ */
1
4
  export interface PriceHistory {
2
5
  close: number | null;
3
6
  date: string;
@@ -7,6 +10,9 @@ export interface PriceHistory {
7
10
  symbol: string;
8
11
  volume: number;
9
12
  }
13
+ /**
14
+ * @deprecated This export is deprecated and is no longer maintained.
15
+ */
10
16
  export interface PriceHistoryPageFields {
11
17
  currentPage: number;
12
18
  priceHistories: PriceHistory[];
@@ -1 +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"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Payload.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,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;;GAEG;AACH,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"}
@@ -1,5 +1,11 @@
1
+ /**
2
+ * @deprecated This export is deprecated and is no longer maintained.
3
+ */
1
4
  export declare const PriceHistorySchema: string & {
2
5
  readonly __schema: true;
3
6
  };
7
+ /**
8
+ * @deprecated This export is deprecated and is no longer maintained.
9
+ */
4
10
  export type PriceHistorySchema = typeof PriceHistorySchema;
5
11
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;CAAsD,CAAA;AACrF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,kBAAkB;;CAAsD,CAAA;AACrF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
@@ -1,9 +1,71 @@
1
- import type { Payload } from '@xyo-network/sdk-js';
2
- import { SnapshotSchema } from './Schema.ts';
1
+ import * as z from 'zod/mini';
3
2
  /**
4
3
  * The fields for a Snapshot
4
+ * @deprecated This export is deprecated and is no longer maintained.
5
5
  */
6
- export interface SnapshotFields {
6
+ export declare const SnapshotFieldsZod: z.ZodMiniObject<{
7
+ askPrice: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
8
+ askPriceRate: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
9
+ askQtyBookTotal: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
10
+ askQuantity: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
11
+ bidPrice: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
12
+ bidPriceRate: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
13
+ bidQtyBookTotal: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
14
+ bidQuantity: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
15
+ high: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
16
+ lastPrice: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
17
+ lastQuantity: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
18
+ low: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
19
+ open: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
20
+ prevClosePx: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
21
+ symbol: z.ZodMiniString<string>;
22
+ timestamp: z.ZodMiniString<string>;
23
+ volume: z.ZodMiniNumber<number>;
24
+ }, z.core.$strip>;
25
+ /**
26
+ * The fields for a Snapshot
27
+ * @deprecated This export is deprecated and is no longer maintained.
28
+ */
29
+ export type SnapshotFields = z.infer<typeof SnapshotFieldsZod>;
30
+ /**
31
+ * The Snapshot payload
32
+ * @deprecated This export is deprecated and is no longer maintained.
33
+ */
34
+ export declare const SnapshotZod: z.ZodMiniObject<{
35
+ schema: z.ZodMiniLiteral<string & {
36
+ readonly __schema: true;
37
+ }>;
38
+ askPrice: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
39
+ askPriceRate: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
40
+ askQtyBookTotal: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
41
+ askQuantity: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
42
+ bidPrice: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
43
+ bidPriceRate: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
44
+ bidQtyBookTotal: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
45
+ bidQuantity: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
46
+ high: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
47
+ lastPrice: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
48
+ lastQuantity: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
49
+ low: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
50
+ open: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
51
+ prevClosePx: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
52
+ symbol: z.ZodMiniString<string>;
53
+ timestamp: z.ZodMiniString<string>;
54
+ volume: z.ZodMiniNumber<number>;
55
+ }, z.core.$strip>;
56
+ /**
57
+ * The Snapshot payload
58
+ * @deprecated This export is deprecated and is no longer maintained.
59
+ */
60
+ export type Snapshot = z.infer<typeof SnapshotZod>;
61
+ /**
62
+ * Identity function for determine if an object is a Snapshot
63
+ * @deprecated This export is deprecated and is no longer maintained.
64
+ */
65
+ export declare const isSnapshot: <T>(value: T) => value is T & {
66
+ schema: string & {
67
+ readonly __schema: true;
68
+ };
7
69
  askPrice: number | null;
8
70
  askPriceRate: number | null;
9
71
  askQtyBookTotal: number | null;
@@ -21,17 +83,103 @@ export interface SnapshotFields {
21
83
  symbol: string;
22
84
  timestamp: string;
23
85
  volume: number;
24
- }
86
+ };
25
87
  /**
26
- * The Snapshot payload
27
- */
28
- export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
29
- /**
30
- * Identity function for determine if an object is a Snapshot
88
+ * @deprecated This export is deprecated and is no longer maintained.
31
89
  */
32
- export declare const isSnapshot: (x?: unknown) => x is Snapshot;
90
+ export declare const asSnapshot: {
91
+ <T>(value: T): (T & {
92
+ schema: string & {
93
+ readonly __schema: true;
94
+ };
95
+ askPrice: number | null;
96
+ askPriceRate: number | null;
97
+ askQtyBookTotal: number | null;
98
+ askQuantity: number | null;
99
+ bidPrice: number | null;
100
+ bidPriceRate: number | null;
101
+ bidQtyBookTotal: number | null;
102
+ bidQuantity: number | null;
103
+ high: number | null;
104
+ lastPrice: number | null;
105
+ lastQuantity: number | null;
106
+ low: number | null;
107
+ open: number | null;
108
+ prevClosePx: number | null;
109
+ symbol: string;
110
+ timestamp: string;
111
+ volume: number;
112
+ }) | undefined;
113
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
114
+ schema: string & {
115
+ readonly __schema: true;
116
+ };
117
+ askPrice: number | null;
118
+ askPriceRate: number | null;
119
+ askQtyBookTotal: number | null;
120
+ askQuantity: number | null;
121
+ bidPrice: number | null;
122
+ bidPriceRate: number | null;
123
+ bidQtyBookTotal: number | null;
124
+ bidQuantity: number | null;
125
+ high: number | null;
126
+ lastPrice: number | null;
127
+ lastQuantity: number | null;
128
+ low: number | null;
129
+ open: number | null;
130
+ prevClosePx: number | null;
131
+ symbol: string;
132
+ timestamp: string;
133
+ volume: number;
134
+ };
135
+ };
33
136
  /**
34
- * Identity function for determine if an object is a Snapshot with sources
137
+ * @deprecated This export is deprecated and is no longer maintained.
35
138
  */
36
- export declare const isSnapshotWithSources: (x?: unknown) => x is import("@xyo-network/sdk-js").WithSources<Snapshot>;
139
+ export declare const toSnapshot: {
140
+ <T>(value: T): (T & {
141
+ schema: string & {
142
+ readonly __schema: true;
143
+ };
144
+ askPrice: number | null;
145
+ askPriceRate: number | null;
146
+ askQtyBookTotal: number | null;
147
+ askQuantity: number | null;
148
+ bidPrice: number | null;
149
+ bidPriceRate: number | null;
150
+ bidQtyBookTotal: number | null;
151
+ bidQuantity: number | null;
152
+ high: number | null;
153
+ lastPrice: number | null;
154
+ lastQuantity: number | null;
155
+ low: number | null;
156
+ open: number | null;
157
+ prevClosePx: number | null;
158
+ symbol: string;
159
+ timestamp: string;
160
+ volume: number;
161
+ }) | undefined;
162
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
163
+ schema: string & {
164
+ readonly __schema: true;
165
+ };
166
+ askPrice: number | null;
167
+ askPriceRate: number | null;
168
+ askQtyBookTotal: number | null;
169
+ askQuantity: number | null;
170
+ bidPrice: number | null;
171
+ bidPriceRate: number | null;
172
+ bidQtyBookTotal: number | null;
173
+ bidQuantity: number | null;
174
+ high: number | null;
175
+ lastPrice: number | null;
176
+ lastQuantity: number | null;
177
+ low: number | null;
178
+ open: number | null;
179
+ prevClosePx: number | null;
180
+ symbol: string;
181
+ timestamp: string;
182
+ volume: number;
183
+ };
184
+ };
37
185
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,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,gCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,2EAA6D,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;iBAkB5B,CAAA;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;iBAGvB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAElD;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAA4B,CAAA;AACnD;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0C,CAAA;AACjE;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0C,CAAA"}
@@ -1,5 +1,11 @@
1
+ /**
2
+ * @deprecated This export is deprecated and is no longer maintained.
3
+ */
1
4
  export declare const SnapshotSchema: string & {
2
5
  readonly __schema: true;
3
6
  };
7
+ /**
8
+ * @deprecated This export is deprecated and is no longer maintained.
9
+ */
4
10
  export type SnapshotSchema = typeof SnapshotSchema;
5
11
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;CAAuD,CAAA;AAClF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,cAAc;;CAAuD,CAAA;AAClF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
@@ -1,4 +1,10 @@
1
+ /**
2
+ * @deprecated This export is deprecated and is no longer maintained.
3
+ */
1
4
  export type TZeroStockMarketSchema = typeof TZeroStockMarketSchema;
5
+ /**
6
+ * @deprecated This export is deprecated and is no longer maintained.
7
+ */
2
8
  export declare const TZeroStockMarketSchema: "network.xyo.stock.market.tzero" & {
3
9
  readonly __schema: true;
4
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAClE,eAAO,MAAM,sBAAsB;;CAAmD,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAClE;;GAEG;AACH,eAAO,MAAM,sBAAsB;;CAAmD,CAAA"}
@@ -9,20 +9,53 @@ var TZeroStockMarketSchema = asSchema("network.xyo.stock.market.tzero", true);
9
9
  var PriceHistorySchema = asSchema2(`${TZeroStockMarketSchema}.history`, true);
10
10
 
11
11
  // src/Payload/Snapshot/Payload.ts
12
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/sdk-js";
12
+ import {
13
+ zodAsFactory,
14
+ zodIsFactory,
15
+ zodToFactory
16
+ } from "@xylabs/sdk-js";
17
+ import { PayloadZodOfSchema } from "@xyo-network/sdk-js";
18
+ import * as z from "zod/mini";
13
19
 
14
20
  // src/Payload/Snapshot/Schema.ts
15
21
  import { asSchema as asSchema3 } from "@xyo-network/sdk-js";
16
22
  var SnapshotSchema = asSchema3(`${TZeroStockMarketSchema}.snapshot`, true);
17
23
 
18
24
  // src/Payload/Snapshot/Payload.ts
19
- var isSnapshot = isPayloadOfSchemaType(SnapshotSchema);
20
- var isSnapshotWithSources = isPayloadOfSchemaTypeWithSources(SnapshotSchema);
25
+ var SnapshotFieldsZod = z.object({
26
+ askPrice: z.nullable(z.number()),
27
+ askPriceRate: z.nullable(z.number()),
28
+ askQtyBookTotal: z.nullable(z.number()),
29
+ askQuantity: z.nullable(z.number()),
30
+ bidPrice: z.nullable(z.number()),
31
+ bidPriceRate: z.nullable(z.number()),
32
+ bidQtyBookTotal: z.nullable(z.number()),
33
+ bidQuantity: z.nullable(z.number()),
34
+ high: z.nullable(z.number()),
35
+ lastPrice: z.nullable(z.number()),
36
+ lastQuantity: z.nullable(z.number()),
37
+ low: z.nullable(z.number()),
38
+ open: z.nullable(z.number()),
39
+ prevClosePx: z.nullable(z.number()),
40
+ symbol: z.string(),
41
+ timestamp: z.string(),
42
+ volume: z.number()
43
+ });
44
+ var SnapshotZod = z.extend(
45
+ PayloadZodOfSchema(SnapshotSchema),
46
+ { ...SnapshotFieldsZod.shape }
47
+ );
48
+ var isSnapshot = zodIsFactory(SnapshotZod);
49
+ var asSnapshot = zodAsFactory(SnapshotZod, "asSnapshot");
50
+ var toSnapshot = zodToFactory(SnapshotZod, "toSnapshot");
21
51
  export {
22
52
  PriceHistorySchema,
53
+ SnapshotFieldsZod,
23
54
  SnapshotSchema,
55
+ SnapshotZod,
24
56
  TZeroStockMarketSchema,
57
+ asSnapshot,
25
58
  isSnapshot,
26
- isSnapshotWithSources
59
+ toSnapshot
27
60
  };
28
61
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Payload/PriceHistory/Schema.ts", "../../src/Schema.ts", "../../src/Payload/Snapshot/Payload.ts", "../../src/Payload/Snapshot/Schema.ts"],
4
- "sourcesContent": ["import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n", "import type { Payload } from '@xyo-network/sdk-js'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/sdk-js'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],
5
- "mappings": ";AAAA,SAAS,YAAAA,iBAAgB;;;ACAzB,SAAS,gBAAgB;AAGlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ADC9E,IAAM,qBAAqBC,UAAS,GAAG,sBAAsB,YAAY,IAAI;;;AEHpF,SAAS,uBAAuB,wCAAwC;;;ACDxE,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,iBAAiBC,UAAS,GAAG,sBAAsB,aAAa,IAAI;;;ADgC1E,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;",
4
+ "sourcesContent": ["/* eslint-disable @typescript-eslint/no-deprecated */\nimport { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\n/**\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\n/**\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport type PriceHistorySchema = typeof PriceHistorySchema\n", "/* eslint-disable @typescript-eslint/no-deprecated */\nimport { asSchema } from '@xyo-network/sdk-js'\n\n/**\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\n/**\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n", "/* eslint-disable @typescript-eslint/no-deprecated */\nimport {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport { PayloadZodOfSchema } from '@xyo-network/sdk-js'\nimport * as z from 'zod/mini'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport const SnapshotFieldsZod = z.object({\n askPrice: z.nullable(z.number()),\n askPriceRate: z.nullable(z.number()),\n askQtyBookTotal: z.nullable(z.number()),\n askQuantity: z.nullable(z.number()),\n bidPrice: z.nullable(z.number()),\n bidPriceRate: z.nullable(z.number()),\n bidQtyBookTotal: z.nullable(z.number()),\n bidQuantity: z.nullable(z.number()),\n high: z.nullable(z.number()),\n lastPrice: z.nullable(z.number()),\n lastQuantity: z.nullable(z.number()),\n low: z.nullable(z.number()),\n open: z.nullable(z.number()),\n prevClosePx: z.nullable(z.number()),\n symbol: z.string(),\n timestamp: z.string(),\n volume: z.number(),\n})\n\n/**\n * The fields for a Snapshot\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport type SnapshotFields = z.infer<typeof SnapshotFieldsZod>\n\n/**\n * The Snapshot payload\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport const SnapshotZod = z.extend(\n PayloadZodOfSchema(SnapshotSchema),\n { ...SnapshotFieldsZod.shape },\n)\n\n/**\n * The Snapshot payload\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport type Snapshot = z.infer<typeof SnapshotZod>\n\n/**\n * Identity function for determine if an object is a Snapshot\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport const isSnapshot = zodIsFactory(SnapshotZod)\n/**\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport const asSnapshot = zodAsFactory(SnapshotZod, 'asSnapshot')\n/**\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport const toSnapshot = zodToFactory(SnapshotZod, 'toSnapshot')\n", "/* eslint-disable @typescript-eslint/no-deprecated */\nimport { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\n/**\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\n/**\n * @deprecated This export is deprecated and is no longer maintained.\n */\nexport type SnapshotSchema = typeof SnapshotSchema\n"],
5
+ "mappings": ";AACA,SAAS,YAAAA,iBAAgB;;;ACAzB,SAAS,gBAAgB;AASlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ADF9E,IAAM,qBAAqBC,UAAS,GAAG,sBAAsB,YAAY,IAAI;;;AEPpF;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AACP,SAAS,0BAA0B;AACnC,YAAY,OAAO;;;ACJnB,SAAS,YAAAC,iBAAgB;AAOlB,IAAM,iBAAiBC,UAAS,GAAG,sBAAsB,aAAa,IAAI;;;ADK1E,IAAM,oBAAsB,SAAO;AAAA,EACxC,UAAY,WAAW,SAAO,CAAC;AAAA,EAC/B,cAAgB,WAAW,SAAO,CAAC;AAAA,EACnC,iBAAmB,WAAW,SAAO,CAAC;AAAA,EACtC,aAAe,WAAW,SAAO,CAAC;AAAA,EAClC,UAAY,WAAW,SAAO,CAAC;AAAA,EAC/B,cAAgB,WAAW,SAAO,CAAC;AAAA,EACnC,iBAAmB,WAAW,SAAO,CAAC;AAAA,EACtC,aAAe,WAAW,SAAO,CAAC;AAAA,EAClC,MAAQ,WAAW,SAAO,CAAC;AAAA,EAC3B,WAAa,WAAW,SAAO,CAAC;AAAA,EAChC,cAAgB,WAAW,SAAO,CAAC;AAAA,EACnC,KAAO,WAAW,SAAO,CAAC;AAAA,EAC1B,MAAQ,WAAW,SAAO,CAAC;AAAA,EAC3B,aAAe,WAAW,SAAO,CAAC;AAAA,EAClC,QAAU,SAAO;AAAA,EACjB,WAAa,SAAO;AAAA,EACpB,QAAU,SAAO;AACnB,CAAC;AAYM,IAAM,cAAgB;AAAA,EAC3B,mBAAmB,cAAc;AAAA,EACjC,EAAE,GAAG,kBAAkB,MAAM;AAC/B;AAYO,IAAM,aAAa,aAAa,WAAW;AAI3C,IAAM,aAAa,aAAa,aAAa,YAAY;AAIzD,IAAM,aAAa,aAAa,aAAa,YAAY;",
6
6
  "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/tzero-stock-market-payload-plugin",
3
- "version": "6.0.3",
3
+ "version": "7.0.0",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -35,22 +35,20 @@
35
35
  "@metamask/providers": "^22.1.1",
36
36
  "@noble/post-quantum": "~0.6.1",
37
37
  "@opentelemetry/api": "^1.9.1",
38
- "@opentelemetry/sdk-trace-base": "^2.7.1",
38
+ "@opentelemetry/sdk-trace-base": "^2.8.0",
39
39
  "@scure/base": "^2.2.0",
40
40
  "@scure/bip39": "~2.2.0",
41
- "@xylabs/geo": "^6.0.8",
42
- "@xylabs/sdk-js": "^6.0.8",
43
- "@xylabs/threads": "^6.0.8",
44
- "@xylabs/toolchain": "~8.1.16",
45
- "@xylabs/tsconfig": "~8.1.16",
46
- "@xyo-network/sdk-js": "^6.0.4",
47
- "@xyo-network/sdk-protocol-js": "~6.0.9",
41
+ "@xylabs/geo": "^6.1.3",
42
+ "@xylabs/sdk-js": "^6.1.3",
43
+ "@xylabs/threads": "^6.1.3",
44
+ "@xylabs/toolchain": "~8.2.7",
45
+ "@xylabs/tsconfig": "~8.2.7",
46
+ "@xyo-network/sdk-js": "^7.0.0",
47
+ "@xyo-network/sdk-protocol-js": "~7.0",
48
48
  "ajv": "^8.20.0",
49
49
  "async-mutex": "^0.5.0",
50
- "bn.js": "^5.2.3",
51
- "buffer": "^6.0.3",
52
50
  "debug": "~4.4.3",
53
- "eslint": "^10.4.1",
51
+ "eslint": "^10.5.0",
54
52
  "ethers": "^6.16.0",
55
53
  "hash-wasm": "^4.12.0",
56
54
  "idb": "^8.0.3",
@@ -71,12 +69,10 @@
71
69
  "@xylabs/geo": "^6.0",
72
70
  "@xylabs/sdk-js": "^6.0",
73
71
  "@xylabs/threads": "^6.0",
74
- "@xyo-network/sdk-js": "^6.0",
75
- "@xyo-network/sdk-protocol-js": "~6.0",
72
+ "@xyo-network/sdk-js": "^7.0",
73
+ "@xyo-network/sdk-protocol-js": "~7.0",
76
74
  "ajv": "^8.20",
77
75
  "async-mutex": "^0.5",
78
- "bn.js": "^5.2",
79
- "buffer": "^6.0",
80
76
  "debug": "~4.4",
81
77
  "ethers": "^6.16",
82
78
  "hash-wasm": "^4.12",
@@ -86,7 +82,11 @@
86
82
  "webextension-polyfill": "^0.12",
87
83
  "zod": "^4.4"
88
84
  },
85
+ "engines": {
86
+ "node": "^24"
87
+ },
89
88
  "publishConfig": {
90
89
  "access": "public"
91
- }
90
+ },
91
+ "deprecated": "This package is deprecated and is no longer maintained."
92
92
  }
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
1
- export declare const PriceHistorySchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type PriceHistorySchema = typeof PriceHistorySchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;CAAsD,CAAA;AACrF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Payload.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -1,37 +0,0 @@
1
- import type { Payload } from '@xyo-network/sdk-js';
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) => 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) => x is import("@xyo-network/sdk-js").WithSources<Snapshot>;
37
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,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,gCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,2EAA6D,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const SnapshotSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type SnapshotSchema = typeof SnapshotSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;CAAuD,CAAA;AAClF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Payload.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './PriceHistory/index.ts';
2
- export * from './Snapshot/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA"}
@@ -1,5 +0,0 @@
1
- export type TZeroStockMarketSchema = typeof TZeroStockMarketSchema;
2
- export declare const TZeroStockMarketSchema: "network.xyo.stock.market.tzero" & {
3
- readonly __schema: true;
4
- };
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAClE,eAAO,MAAM,sBAAsB;;CAAmD,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Payload/index.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
@@ -1,28 +0,0 @@
1
- // src/Payload/PriceHistory/Schema.ts
2
- import { asSchema as asSchema2 } from "@xyo-network/sdk-js";
3
-
4
- // src/Schema.ts
5
- import { asSchema } from "@xyo-network/sdk-js";
6
- var TZeroStockMarketSchema = asSchema("network.xyo.stock.market.tzero", true);
7
-
8
- // src/Payload/PriceHistory/Schema.ts
9
- var PriceHistorySchema = asSchema2(`${TZeroStockMarketSchema}.history`, true);
10
-
11
- // src/Payload/Snapshot/Payload.ts
12
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/sdk-js";
13
-
14
- // src/Payload/Snapshot/Schema.ts
15
- import { asSchema as asSchema3 } from "@xyo-network/sdk-js";
16
- var SnapshotSchema = asSchema3(`${TZeroStockMarketSchema}.snapshot`, true);
17
-
18
- // src/Payload/Snapshot/Payload.ts
19
- var isSnapshot = isPayloadOfSchemaType(SnapshotSchema);
20
- var isSnapshotWithSources = isPayloadOfSchemaTypeWithSources(SnapshotSchema);
21
- export {
22
- PriceHistorySchema,
23
- SnapshotSchema,
24
- TZeroStockMarketSchema,
25
- isSnapshot,
26
- isSnapshotWithSources
27
- };
28
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Payload/PriceHistory/Schema.ts", "../../src/Schema.ts", "../../src/Payload/Snapshot/Payload.ts", "../../src/Payload/Snapshot/Schema.ts"],
4
- "sourcesContent": ["import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n", "import type { Payload } from '@xyo-network/sdk-js'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/sdk-js'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],
5
- "mappings": ";AAAA,SAAS,YAAAA,iBAAgB;;;ACAzB,SAAS,gBAAgB;AAGlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ADC9E,IAAM,qBAAqBC,UAAS,GAAG,sBAAsB,YAAY,IAAI;;;AEHpF,SAAS,uBAAuB,wCAAwC;;;ACDxE,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,iBAAiBC,UAAS,GAAG,sBAAsB,aAAa,IAAI;;;ADgC1E,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;",
6
- "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
- }
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
1
- export declare const PriceHistorySchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type PriceHistorySchema = typeof PriceHistorySchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;CAAsD,CAAA;AACrF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Payload.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -1,37 +0,0 @@
1
- import type { Payload } from '@xyo-network/sdk-js';
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) => 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) => x is import("@xyo-network/sdk-js").WithSources<Snapshot>;
37
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,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,gCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,2EAA6D,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const SnapshotSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type SnapshotSchema = typeof SnapshotSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;CAAuD,CAAA;AAClF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Payload.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './PriceHistory/index.ts';
2
- export * from './Snapshot/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA"}
@@ -1,5 +0,0 @@
1
- export type TZeroStockMarketSchema = typeof TZeroStockMarketSchema;
2
- export declare const TZeroStockMarketSchema: "network.xyo.stock.market.tzero" & {
3
- readonly __schema: true;
4
- };
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAClE,eAAO,MAAM,sBAAsB;;CAAmD,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Payload/index.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
@@ -1,28 +0,0 @@
1
- // src/Payload/PriceHistory/Schema.ts
2
- import { asSchema as asSchema2 } from "@xyo-network/sdk-js";
3
-
4
- // src/Schema.ts
5
- import { asSchema } from "@xyo-network/sdk-js";
6
- var TZeroStockMarketSchema = asSchema("network.xyo.stock.market.tzero", true);
7
-
8
- // src/Payload/PriceHistory/Schema.ts
9
- var PriceHistorySchema = asSchema2(`${TZeroStockMarketSchema}.history`, true);
10
-
11
- // src/Payload/Snapshot/Payload.ts
12
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/sdk-js";
13
-
14
- // src/Payload/Snapshot/Schema.ts
15
- import { asSchema as asSchema3 } from "@xyo-network/sdk-js";
16
- var SnapshotSchema = asSchema3(`${TZeroStockMarketSchema}.snapshot`, true);
17
-
18
- // src/Payload/Snapshot/Payload.ts
19
- var isSnapshot = isPayloadOfSchemaType(SnapshotSchema);
20
- var isSnapshotWithSources = isPayloadOfSchemaTypeWithSources(SnapshotSchema);
21
- export {
22
- PriceHistorySchema,
23
- SnapshotSchema,
24
- TZeroStockMarketSchema,
25
- isSnapshot,
26
- isSnapshotWithSources
27
- };
28
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Payload/PriceHistory/Schema.ts", "../../src/Schema.ts", "../../src/Payload/Snapshot/Payload.ts", "../../src/Payload/Snapshot/Schema.ts"],
4
- "sourcesContent": ["import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n", "import type { Payload } from '@xyo-network/sdk-js'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/sdk-js'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],
5
- "mappings": ";AAAA,SAAS,YAAAA,iBAAgB;;;ACAzB,SAAS,gBAAgB;AAGlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ADC9E,IAAM,qBAAqBC,UAAS,GAAG,sBAAsB,YAAY,IAAI;;;AEHpF,SAAS,uBAAuB,wCAAwC;;;ACDxE,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,iBAAiBC,UAAS,GAAG,sBAAsB,aAAa,IAAI;;;ADgC1E,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;",
6
- "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
- }