@proton/wrap-constants 0.2.85 → 0.2.86
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/dist/index.d.ts +9 -0
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +2 -2
- package/src/parsers/dex.ts +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -6529,16 +6529,19 @@ declare const getOpenOrdersParser: z.ZodObject<{
|
|
|
6529
6529
|
symbol: z.ZodOptional<z.ZodString>;
|
|
6530
6530
|
offset: z.ZodDefault<z.ZodString>;
|
|
6531
6531
|
limit: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>;
|
|
6532
|
+
ordinal_order_id: z.ZodOptional<z.ZodString>;
|
|
6532
6533
|
}, "strip", z.ZodTypeAny, {
|
|
6533
6534
|
account: string;
|
|
6534
6535
|
limit: string;
|
|
6535
6536
|
offset: string;
|
|
6536
6537
|
symbol?: string | undefined;
|
|
6538
|
+
ordinal_order_id?: string | undefined;
|
|
6537
6539
|
}, {
|
|
6538
6540
|
account: string;
|
|
6539
6541
|
symbol?: string | undefined;
|
|
6540
6542
|
offset?: string | undefined;
|
|
6541
6543
|
limit?: string | undefined;
|
|
6544
|
+
ordinal_order_id?: string | undefined;
|
|
6542
6545
|
}>;
|
|
6543
6546
|
declare type GetOpenOrders = z.infer<typeof getOpenOrdersParser>;
|
|
6544
6547
|
declare const getOpenOrdersResponseParser: z.ZodObject<{
|
|
@@ -6665,6 +6668,7 @@ declare const getOrderHistoryParser: z.ZodObject<{
|
|
|
6665
6668
|
symbol: z.ZodOptional<z.ZodString>;
|
|
6666
6669
|
offset: z.ZodDefault<z.ZodString>;
|
|
6667
6670
|
limit: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>;
|
|
6671
|
+
ordinal_order_id: z.ZodOptional<z.ZodString>;
|
|
6668
6672
|
trx_id: z.ZodOptional<z.ZodString>;
|
|
6669
6673
|
status: z.ZodOptional<z.ZodString>;
|
|
6670
6674
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6672,6 +6676,7 @@ declare const getOrderHistoryParser: z.ZodObject<{
|
|
|
6672
6676
|
limit: string;
|
|
6673
6677
|
offset: string;
|
|
6674
6678
|
symbol?: string | undefined;
|
|
6679
|
+
ordinal_order_id?: string | undefined;
|
|
6675
6680
|
trx_id?: string | undefined;
|
|
6676
6681
|
status?: string | undefined;
|
|
6677
6682
|
}, {
|
|
@@ -6679,6 +6684,7 @@ declare const getOrderHistoryParser: z.ZodObject<{
|
|
|
6679
6684
|
symbol?: string | undefined;
|
|
6680
6685
|
offset?: string | undefined;
|
|
6681
6686
|
limit?: string | undefined;
|
|
6687
|
+
ordinal_order_id?: string | undefined;
|
|
6682
6688
|
trx_id?: string | undefined;
|
|
6683
6689
|
status?: string | undefined;
|
|
6684
6690
|
}>;
|
|
@@ -7482,14 +7488,17 @@ declare const getTradesParser: z.ZodObject<{
|
|
|
7482
7488
|
symbol: z.ZodString;
|
|
7483
7489
|
offset: z.ZodDefault<z.ZodString>;
|
|
7484
7490
|
limit: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>;
|
|
7491
|
+
ordinal_order_id: z.ZodOptional<z.ZodString>;
|
|
7485
7492
|
}, "strip", z.ZodTypeAny, {
|
|
7486
7493
|
symbol: string;
|
|
7487
7494
|
limit: string;
|
|
7488
7495
|
offset: string;
|
|
7496
|
+
ordinal_order_id?: string | undefined;
|
|
7489
7497
|
}, {
|
|
7490
7498
|
symbol: string;
|
|
7491
7499
|
offset?: string | undefined;
|
|
7492
7500
|
limit?: string | undefined;
|
|
7501
|
+
ordinal_order_id?: string | undefined;
|
|
7493
7502
|
}>;
|
|
7494
7503
|
declare type GetTrades = z.infer<typeof getTradesParser>;
|
|
7495
7504
|
declare const getTradesResponseParser: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -1876,7 +1876,8 @@ var getOpenOrdersParser = z11.object({
|
|
|
1876
1876
|
account: z11.string(),
|
|
1877
1877
|
symbol: z11.string().optional(),
|
|
1878
1878
|
offset: z11.string().default("0"),
|
|
1879
|
-
limit: z11.string().default("100").refine((n) => +n <= 250, "Max limit is 250")
|
|
1879
|
+
limit: z11.string().default("100").refine((n) => +n <= 250, "Max limit is 250"),
|
|
1880
|
+
ordinal_order_id: z11.string().optional()
|
|
1880
1881
|
});
|
|
1881
1882
|
var getOpenOrdersResponseParser = z11.object({
|
|
1882
1883
|
sync: z11.number(),
|
|
@@ -1888,6 +1889,7 @@ var getOrderHistoryParser = z11.object({
|
|
|
1888
1889
|
symbol: z11.string().optional(),
|
|
1889
1890
|
offset: z11.string().default("0"),
|
|
1890
1891
|
limit: z11.string().default("100").refine((n) => +n <= 250, "Max limit is 250"),
|
|
1892
|
+
ordinal_order_id: z11.string().optional(),
|
|
1891
1893
|
trx_id: z11.string().optional(),
|
|
1892
1894
|
status: z11.string().optional()
|
|
1893
1895
|
});
|
|
@@ -1998,7 +2000,8 @@ var tradeParser = z11.object({
|
|
|
1998
2000
|
var getTradesParser = z11.object({
|
|
1999
2001
|
symbol: z11.string(),
|
|
2000
2002
|
offset: z11.string().default("0"),
|
|
2001
|
-
limit: z11.string().default("100").refine((n) => +n <= 250, "Max limit is 250")
|
|
2003
|
+
limit: z11.string().default("100").refine((n) => +n <= 250, "Max limit is 250"),
|
|
2004
|
+
ordinal_order_id: z11.string().optional()
|
|
2002
2005
|
});
|
|
2003
2006
|
var getTradesResponseParser = z11.object({
|
|
2004
2007
|
sync: z11.number(),
|
package/dist/index.mjs
CHANGED
|
@@ -1746,7 +1746,8 @@ var getOpenOrdersParser = z11.object({
|
|
|
1746
1746
|
account: z11.string(),
|
|
1747
1747
|
symbol: z11.string().optional(),
|
|
1748
1748
|
offset: z11.string().default("0"),
|
|
1749
|
-
limit: z11.string().default("100").refine((n) => +n <= 250, "Max limit is 250")
|
|
1749
|
+
limit: z11.string().default("100").refine((n) => +n <= 250, "Max limit is 250"),
|
|
1750
|
+
ordinal_order_id: z11.string().optional()
|
|
1750
1751
|
});
|
|
1751
1752
|
var getOpenOrdersResponseParser = z11.object({
|
|
1752
1753
|
sync: z11.number(),
|
|
@@ -1758,6 +1759,7 @@ var getOrderHistoryParser = z11.object({
|
|
|
1758
1759
|
symbol: z11.string().optional(),
|
|
1759
1760
|
offset: z11.string().default("0"),
|
|
1760
1761
|
limit: z11.string().default("100").refine((n) => +n <= 250, "Max limit is 250"),
|
|
1762
|
+
ordinal_order_id: z11.string().optional(),
|
|
1761
1763
|
trx_id: z11.string().optional(),
|
|
1762
1764
|
status: z11.string().optional()
|
|
1763
1765
|
});
|
|
@@ -1868,7 +1870,8 @@ var tradeParser = z11.object({
|
|
|
1868
1870
|
var getTradesParser = z11.object({
|
|
1869
1871
|
symbol: z11.string(),
|
|
1870
1872
|
offset: z11.string().default("0"),
|
|
1871
|
-
limit: z11.string().default("100").refine((n) => +n <= 250, "Max limit is 250")
|
|
1873
|
+
limit: z11.string().default("100").refine((n) => +n <= 250, "Max limit is 250"),
|
|
1874
|
+
ordinal_order_id: z11.string().optional()
|
|
1872
1875
|
});
|
|
1873
1876
|
var getTradesResponseParser = z11.object({
|
|
1874
1877
|
sync: z11.number(),
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.86",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"resolutions": {
|
|
41
41
|
"typescript": "4.5"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "c6f9871cd16f24b2adbe605de371c255a430a90c"
|
|
44
44
|
}
|
package/src/parsers/dex.ts
CHANGED
|
@@ -68,6 +68,7 @@ export const getOpenOrdersParser = z.object({
|
|
|
68
68
|
.string()
|
|
69
69
|
.default("100")
|
|
70
70
|
.refine((n) => +n <= 250, "Max limit is 250"),
|
|
71
|
+
ordinal_order_id: z.string().optional(),
|
|
71
72
|
});
|
|
72
73
|
export type GetOpenOrders = z.infer<typeof getOpenOrdersParser>;
|
|
73
74
|
|
|
@@ -86,6 +87,7 @@ export const getOrderHistoryParser = z.object({
|
|
|
86
87
|
.string()
|
|
87
88
|
.default("100")
|
|
88
89
|
.refine((n) => +n <= 250, "Max limit is 250"),
|
|
90
|
+
ordinal_order_id: z.string().optional(),
|
|
89
91
|
trx_id: z.string().optional(),
|
|
90
92
|
status: z.string().optional(),
|
|
91
93
|
});
|
|
@@ -247,6 +249,7 @@ export const getTradesParser = z.object({
|
|
|
247
249
|
.string()
|
|
248
250
|
.default("100")
|
|
249
251
|
.refine((n) => +n <= 250, "Max limit is 250"),
|
|
252
|
+
ordinal_order_id: z.string().optional(),
|
|
250
253
|
});
|
|
251
254
|
export type GetTrades = z.infer<typeof getTradesParser>;
|
|
252
255
|
|