@xyo-network/tzero-stock-market-payload-plugin 6.1.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/neutral/Payload/PriceHistory/Payload.d.ts +6 -0
- package/dist/neutral/Payload/PriceHistory/Payload.d.ts.map +1 -1
- package/dist/neutral/Payload/PriceHistory/Schema.d.ts +6 -0
- package/dist/neutral/Payload/PriceHistory/Schema.d.ts.map +1 -1
- package/dist/neutral/Payload/Snapshot/Payload.d.ts +160 -12
- package/dist/neutral/Payload/Snapshot/Payload.d.ts.map +1 -1
- package/dist/neutral/Payload/Snapshot/Schema.d.ts +6 -0
- package/dist/neutral/Payload/Snapshot/Schema.d.ts.map +1 -1
- package/dist/neutral/Schema.d.ts +6 -0
- package/dist/neutral/Schema.d.ts.map +1 -1
- package/dist/neutral/index.mjs +40 -7
- package/dist/neutral/index.mjs.map +2 -2
- package/package.json +18 -21
package/README.md
CHANGED
|
@@ -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":"
|
|
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":"
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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").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
|
-
*
|
|
137
|
+
* @deprecated This export is deprecated and is no longer maintained.
|
|
35
138
|
*/
|
|
36
|
-
export declare const
|
|
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").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":"
|
|
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":"
|
|
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"}
|
package/dist/neutral/Schema.d.ts
CHANGED
|
@@ -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":"
|
|
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"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,28 +1,61 @@
|
|
|
1
1
|
// src/Payload/PriceHistory/Schema.ts
|
|
2
|
-
import { asSchema as asSchema2 } from "@xyo-network/sdk
|
|
2
|
+
import { asSchema as asSchema2 } from "@xyo-network/sdk";
|
|
3
3
|
|
|
4
4
|
// src/Schema.ts
|
|
5
|
-
import { asSchema } from "@xyo-network/sdk
|
|
5
|
+
import { asSchema } from "@xyo-network/sdk";
|
|
6
6
|
var TZeroStockMarketSchema = asSchema("network.xyo.stock.market.tzero", true);
|
|
7
7
|
|
|
8
8
|
// src/Payload/PriceHistory/Schema.ts
|
|
9
9
|
var PriceHistorySchema = asSchema2(`${TZeroStockMarketSchema}.history`, true);
|
|
10
10
|
|
|
11
11
|
// src/Payload/Snapshot/Payload.ts
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
zodAsFactory,
|
|
14
|
+
zodIsFactory,
|
|
15
|
+
zodToFactory
|
|
16
|
+
} from "@xylabs/sdk";
|
|
17
|
+
import { PayloadZodOfSchema } from "@xyo-network/sdk";
|
|
18
|
+
import * as z from "zod/mini";
|
|
13
19
|
|
|
14
20
|
// src/Payload/Snapshot/Schema.ts
|
|
15
|
-
import { asSchema as asSchema3 } from "@xyo-network/sdk
|
|
21
|
+
import { asSchema as asSchema3 } from "@xyo-network/sdk";
|
|
16
22
|
var SnapshotSchema = asSchema3(`${TZeroStockMarketSchema}.snapshot`, true);
|
|
17
23
|
|
|
18
24
|
// src/Payload/Snapshot/Payload.ts
|
|
19
|
-
var
|
|
20
|
-
|
|
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
|
-
|
|
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": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-deprecated */\nimport { asSchema } from '@xyo-network/sdk'\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'\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'\nimport { PayloadZodOfSchema } from '@xyo-network/sdk'\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'\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": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -32,45 +32,42 @@
|
|
|
32
32
|
],
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@bitauth/libauth": "~3.0.0",
|
|
35
|
-
"@metamask/providers": "^22.1.1",
|
|
36
35
|
"@noble/post-quantum": "~0.6.1",
|
|
37
36
|
"@opentelemetry/api": "^1.9.1",
|
|
38
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
37
|
+
"@opentelemetry/sdk-trace-base": "^2.8.0",
|
|
39
38
|
"@scure/base": "^2.2.0",
|
|
40
39
|
"@scure/bip39": "~2.2.0",
|
|
41
|
-
"@xylabs/geo": "^
|
|
42
|
-
"@xylabs/sdk
|
|
43
|
-
"@xylabs/threads": "^
|
|
44
|
-
"@xylabs/toolchain": "~8.
|
|
45
|
-
"@xylabs/tsconfig": "~8.
|
|
46
|
-
"@xyo-network/sdk
|
|
47
|
-
"@xyo-network/sdk-protocol-js": "~6.1",
|
|
40
|
+
"@xylabs/geo": "^7.0.1",
|
|
41
|
+
"@xylabs/sdk": "^7.0.1",
|
|
42
|
+
"@xylabs/threads": "^7.0.1",
|
|
43
|
+
"@xylabs/toolchain": "~8.5.3",
|
|
44
|
+
"@xylabs/tsconfig": "~8.5.3",
|
|
45
|
+
"@xyo-network/sdk": "~7.0.3",
|
|
48
46
|
"ajv": "^8.20.0",
|
|
49
47
|
"async-mutex": "^0.5.0",
|
|
48
|
+
"browserslist": "4.28.4",
|
|
50
49
|
"debug": "~4.4.3",
|
|
51
|
-
"eslint": "^10.
|
|
52
|
-
"
|
|
50
|
+
"eslint": "^10.6.0",
|
|
51
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
52
|
+
"ethers": "^6.17.0",
|
|
53
53
|
"hash-wasm": "^4.12.0",
|
|
54
54
|
"idb": "^8.0.3",
|
|
55
55
|
"lru-cache": "^11.5.1",
|
|
56
56
|
"observable-fns": "~0.6.1",
|
|
57
57
|
"typescript": "~6.0.3",
|
|
58
|
-
"webextension-polyfill": "^0.12.0",
|
|
59
58
|
"zod": "^4.4.3"
|
|
60
59
|
},
|
|
61
60
|
"peerDependencies": {
|
|
62
61
|
"@bitauth/libauth": "~3.0",
|
|
63
|
-
"@metamask/providers": "^22.1",
|
|
64
62
|
"@noble/post-quantum": "~0.6.1",
|
|
65
63
|
"@opentelemetry/api": "^1.9",
|
|
66
64
|
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
67
65
|
"@scure/base": "^2.2",
|
|
68
66
|
"@scure/bip39": "~2.2",
|
|
69
|
-
"@xylabs/geo": "^
|
|
70
|
-
"@xylabs/sdk
|
|
71
|
-
"@xylabs/threads": "^
|
|
72
|
-
"@xyo-network/sdk
|
|
73
|
-
"@xyo-network/sdk-protocol-js": "^6.1",
|
|
67
|
+
"@xylabs/geo": "^7.0",
|
|
68
|
+
"@xylabs/sdk": "^7.0",
|
|
69
|
+
"@xylabs/threads": "^7.0",
|
|
70
|
+
"@xyo-network/sdk": "~7.0",
|
|
74
71
|
"ajv": "^8.20",
|
|
75
72
|
"async-mutex": "^0.5",
|
|
76
73
|
"debug": "~4.4",
|
|
@@ -79,7 +76,6 @@
|
|
|
79
76
|
"idb": "^8.0",
|
|
80
77
|
"lru-cache": "^11.3",
|
|
81
78
|
"observable-fns": "~0.6",
|
|
82
|
-
"webextension-polyfill": "^0.12",
|
|
83
79
|
"zod": "^4.4"
|
|
84
80
|
},
|
|
85
81
|
"engines": {
|
|
@@ -87,5 +83,6 @@
|
|
|
87
83
|
},
|
|
88
84
|
"publishConfig": {
|
|
89
85
|
"access": "public"
|
|
90
|
-
}
|
|
86
|
+
},
|
|
87
|
+
"deprecated": "This package is deprecated and is no longer maintained."
|
|
91
88
|
}
|