@proton/wrap-constants 0.2.84 → 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 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
  }>;
@@ -6944,29 +6950,29 @@ declare const submitOrderResponseParser: z.ZodObject<{
6944
6950
  sync: z.ZodNumber;
6945
6951
  data: z.ZodObject<{
6946
6952
  ordinal_order_ids: z.ZodArray<z.ZodString, "many">;
6947
- order_ids: z.ZodArray<z.ZodNumber, "many">;
6953
+ order_ids: z.ZodArray<z.ZodString, "many">;
6948
6954
  trx_id: z.ZodString;
6949
6955
  }, "strip", z.ZodTypeAny, {
6950
6956
  trx_id: string;
6951
6957
  ordinal_order_ids: string[];
6952
- order_ids: number[];
6958
+ order_ids: string[];
6953
6959
  }, {
6954
6960
  trx_id: string;
6955
6961
  ordinal_order_ids: string[];
6956
- order_ids: number[];
6962
+ order_ids: string[];
6957
6963
  }>;
6958
6964
  }, "strip", z.ZodTypeAny, {
6959
6965
  data: {
6960
6966
  trx_id: string;
6961
6967
  ordinal_order_ids: string[];
6962
- order_ids: number[];
6968
+ order_ids: string[];
6963
6969
  };
6964
6970
  sync: number;
6965
6971
  }, {
6966
6972
  data: {
6967
6973
  trx_id: string;
6968
6974
  ordinal_order_ids: string[];
6969
- order_ids: number[];
6975
+ order_ids: string[];
6970
6976
  };
6971
6977
  sync: number;
6972
6978
  }>;
@@ -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
  });
@@ -1912,7 +1914,7 @@ var submitOrderResponseParser = z11.object({
1912
1914
  sync: z11.number(),
1913
1915
  data: z11.object({
1914
1916
  ordinal_order_ids: z11.array(z11.string()),
1915
- order_ids: z11.array(z11.number()),
1917
+ order_ids: z11.array(z11.string()),
1916
1918
  trx_id: z11.string()
1917
1919
  })
1918
1920
  });
@@ -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
  });
@@ -1782,7 +1784,7 @@ var submitOrderResponseParser = z11.object({
1782
1784
  sync: z11.number(),
1783
1785
  data: z11.object({
1784
1786
  ordinal_order_ids: z11.array(z11.string()),
1785
- order_ids: z11.array(z11.number()),
1787
+ order_ids: z11.array(z11.string()),
1786
1788
  trx_id: z11.string()
1787
1789
  })
1788
1790
  });
@@ -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.84",
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": "210af683a62531350135dcdfac047b5c49bd2a77"
43
+ "gitHead": "c6f9871cd16f24b2adbe605de371c255a430a90c"
44
44
  }
@@ -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
  });
@@ -124,7 +126,7 @@ export const submitOrderResponseParser = z.object({
124
126
  sync: z.number(),
125
127
  data: z.object({
126
128
  ordinal_order_ids: z.array(z.string()),
127
- order_ids: z.array(z.number()),
129
+ order_ids: z.array(z.string()),
128
130
  trx_id: z.string(),
129
131
  }),
130
132
  });
@@ -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