@proton/wrap-constants 0.2.97 → 0.2.99

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
@@ -6530,19 +6530,19 @@ declare const getOpenOrdersParser: z.ZodObject<{
6530
6530
  symbol: z.ZodOptional<z.ZodString>;
6531
6531
  offset: z.ZodDefault<z.ZodString>;
6532
6532
  limit: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>;
6533
- ordinal_order_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6533
+ ordinal_order_ids: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
6534
6534
  }, "strip", z.ZodTypeAny, {
6535
6535
  account: string;
6536
6536
  limit: string;
6537
6537
  offset: string;
6538
6538
  symbol?: string | undefined;
6539
- ordinal_order_ids?: string[] | undefined;
6539
+ ordinal_order_ids?: string | string[] | undefined;
6540
6540
  }, {
6541
6541
  account: string;
6542
6542
  symbol?: string | undefined;
6543
6543
  offset?: string | undefined;
6544
6544
  limit?: string | undefined;
6545
- ordinal_order_ids?: string[] | undefined;
6545
+ ordinal_order_ids?: string | string[] | undefined;
6546
6546
  }>;
6547
6547
  declare type GetOpenOrders = z.infer<typeof getOpenOrdersParser>;
6548
6548
  declare const getOpenOrdersResponseParser: z.ZodObject<{
@@ -6669,23 +6669,23 @@ declare const getOrderHistoryParser: z.ZodObject<{
6669
6669
  symbol: z.ZodOptional<z.ZodString>;
6670
6670
  offset: z.ZodDefault<z.ZodString>;
6671
6671
  limit: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>;
6672
- ordinal_order_ids: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
6672
+ ordinal_order_ids: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
6673
6673
  trx_id: z.ZodOptional<z.ZodString>;
6674
6674
  status: z.ZodOptional<z.ZodString>;
6675
6675
  }, "strip", z.ZodTypeAny, {
6676
6676
  account: string;
6677
6677
  limit: string;
6678
6678
  offset: string;
6679
- ordinal_order_ids: (string | undefined)[];
6680
6679
  symbol?: string | undefined;
6680
+ ordinal_order_ids?: string | string[] | undefined;
6681
6681
  trx_id?: string | undefined;
6682
6682
  status?: string | undefined;
6683
6683
  }, {
6684
6684
  account: string;
6685
- ordinal_order_ids: (string | undefined)[];
6686
6685
  symbol?: string | undefined;
6687
6686
  offset?: string | undefined;
6688
6687
  limit?: string | undefined;
6688
+ ordinal_order_ids?: string | string[] | undefined;
6689
6689
  trx_id?: string | undefined;
6690
6690
  status?: string | undefined;
6691
6691
  }>;
@@ -7754,19 +7754,19 @@ declare const getTradeHistoryParser: z.ZodObject<{
7754
7754
  account: z.ZodString;
7755
7755
  symbol: z.ZodOptional<z.ZodString>;
7756
7756
  offset: z.ZodDefault<z.ZodString>;
7757
- ordinal_order_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7757
+ ordinal_order_ids: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
7758
7758
  limit: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>;
7759
7759
  }, "strip", z.ZodTypeAny, {
7760
7760
  account: string;
7761
7761
  limit: string;
7762
7762
  offset: string;
7763
7763
  symbol?: string | undefined;
7764
- ordinal_order_ids?: string[] | undefined;
7764
+ ordinal_order_ids?: string | string[] | undefined;
7765
7765
  }, {
7766
7766
  account: string;
7767
7767
  symbol?: string | undefined;
7768
7768
  offset?: string | undefined;
7769
- ordinal_order_ids?: string[] | undefined;
7769
+ ordinal_order_ids?: string | string[] | undefined;
7770
7770
  limit?: string | undefined;
7771
7771
  }>;
7772
7772
  declare type GetTradeHistory = z.infer<typeof getTradeHistoryParser>;
package/dist/index.js CHANGED
@@ -1918,7 +1918,7 @@ var getOpenOrdersParser = z11.object({
1918
1918
  symbol: z11.string().optional(),
1919
1919
  offset: z11.string().default("0"),
1920
1920
  limit: createLimit(100, 250),
1921
- ordinal_order_ids: z11.array(z11.string()).optional()
1921
+ ordinal_order_ids: z11.array(z11.string()).or(z11.string()).optional()
1922
1922
  });
1923
1923
  var getOpenOrdersResponseParser = z11.object({
1924
1924
  sync: z11.number(),
@@ -1930,7 +1930,7 @@ var getOrderHistoryParser = z11.object({
1930
1930
  symbol: z11.string().optional(),
1931
1931
  offset: z11.string().default("0"),
1932
1932
  limit: createLimit(100, 250),
1933
- ordinal_order_ids: z11.array(z11.string().optional()),
1933
+ ordinal_order_ids: z11.array(z11.string()).or(z11.string()).optional(),
1934
1934
  trx_id: z11.string().optional(),
1935
1935
  status: z11.string().optional()
1936
1936
  });
@@ -2081,7 +2081,7 @@ var getTradeHistoryParser = z11.object({
2081
2081
  account: z11.string(),
2082
2082
  symbol: z11.string().optional(),
2083
2083
  offset: z11.string().default("0"),
2084
- ordinal_order_ids: z11.array(z11.string()).optional(),
2084
+ ordinal_order_ids: z11.array(z11.string()).or(z11.string()).optional(),
2085
2085
  limit: createLimit(100, 250)
2086
2086
  });
2087
2087
  var getTradeHistoryResponseParser = z11.object({
package/dist/index.mjs CHANGED
@@ -1786,7 +1786,7 @@ var getOpenOrdersParser = z11.object({
1786
1786
  symbol: z11.string().optional(),
1787
1787
  offset: z11.string().default("0"),
1788
1788
  limit: createLimit(100, 250),
1789
- ordinal_order_ids: z11.array(z11.string()).optional()
1789
+ ordinal_order_ids: z11.array(z11.string()).or(z11.string()).optional()
1790
1790
  });
1791
1791
  var getOpenOrdersResponseParser = z11.object({
1792
1792
  sync: z11.number(),
@@ -1798,7 +1798,7 @@ var getOrderHistoryParser = z11.object({
1798
1798
  symbol: z11.string().optional(),
1799
1799
  offset: z11.string().default("0"),
1800
1800
  limit: createLimit(100, 250),
1801
- ordinal_order_ids: z11.array(z11.string().optional()),
1801
+ ordinal_order_ids: z11.array(z11.string()).or(z11.string()).optional(),
1802
1802
  trx_id: z11.string().optional(),
1803
1803
  status: z11.string().optional()
1804
1804
  });
@@ -1949,7 +1949,7 @@ var getTradeHistoryParser = z11.object({
1949
1949
  account: z11.string(),
1950
1950
  symbol: z11.string().optional(),
1951
1951
  offset: z11.string().default("0"),
1952
- ordinal_order_ids: z11.array(z11.string()).optional(),
1952
+ ordinal_order_ids: z11.array(z11.string()).or(z11.string()).optional(),
1953
1953
  limit: createLimit(100, 250)
1954
1954
  });
1955
1955
  var getTradeHistoryResponseParser = z11.object({
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.97",
8
+ "version": "0.2.99",
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": "2d6c79898fb4c3dadc783c9a2bf4c64cf3186317"
43
+ "gitHead": "33ada556ad18189bbf4b6c761d53221e48bd0a7c"
44
44
  }
@@ -68,7 +68,10 @@ export const getOpenOrdersParser = z.object({
68
68
  symbol: z.string().optional(),
69
69
  offset: z.string().default("0"),
70
70
  limit: createLimit(100, 250),
71
- ordinal_order_ids: z.array(z.string()).optional(),
71
+ ordinal_order_ids: z
72
+ .array(z.string())
73
+ .or(z.string())
74
+ .optional(),
72
75
  });
73
76
  export type GetOpenOrders = z.infer<typeof getOpenOrdersParser>;
74
77
 
@@ -84,7 +87,10 @@ export const getOrderHistoryParser = z.object({
84
87
  symbol: z.string().optional(),
85
88
  offset: z.string().default("0"),
86
89
  limit: createLimit(100, 250),
87
- ordinal_order_ids: z.array(z.string().optional()),
90
+ ordinal_order_ids: z
91
+ .array(z.string())
92
+ .or(z.string())
93
+ .optional(),
88
94
  trx_id: z.string().optional(),
89
95
  status: z.string().optional(),
90
96
  });
@@ -296,7 +302,10 @@ export const getTradeHistoryParser = z.object({
296
302
  account: z.string(),
297
303
  symbol: z.string().optional(),
298
304
  offset: z.string().default("0"),
299
- ordinal_order_ids: z.array(z.string()).optional(),
305
+ ordinal_order_ids: z
306
+ .array(z.string())
307
+ .or(z.string())
308
+ .optional(),
300
309
  limit: createLimit(100, 250),
301
310
  });
302
311
  export type GetTradeHistory = z.infer<typeof getTradeHistoryParser>;