@proton/wrap-constants 0.2.100 → 0.2.101

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,13 +6530,13 @@ 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.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, string[], string | string[]>>;
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;
@@ -6669,7 +6669,7 @@ 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.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, string[], string | string[]>>;
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, {
@@ -6677,7 +6677,7 @@ declare const getOrderHistoryParser: z.ZodObject<{
6677
6677
  limit: string;
6678
6678
  offset: string;
6679
6679
  symbol?: string | undefined;
6680
- ordinal_order_ids?: string[] | undefined;
6680
+ ordinal_order_ids?: string | string[] | undefined;
6681
6681
  trx_id?: string | undefined;
6682
6682
  status?: string | undefined;
6683
6683
  }, {
@@ -7754,14 +7754,14 @@ 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.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, string[], string | string[]>>;
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;
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()).or(z11.string()).transform((value) => Array.isArray(value) ? value : [value]).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()).or(z11.string()).transform((value) => Array.isArray(value) ? value : [value]).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()).or(z11.string()).transform((value) => Array.isArray(value) ? value : [value]).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()).or(z11.string()).transform((value) => Array.isArray(value) ? value : [value]).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()).or(z11.string()).transform((value) => Array.isArray(value) ? value : [value]).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()).or(z11.string()).transform((value) => Array.isArray(value) ? value : [value]).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.100",
8
+ "version": "0.2.101",
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": "b7613df522dba740f89066a71ffba10058530f6e"
43
+ "gitHead": "3157773d24effbd3840e73143fe8cf2ec517d1ac"
44
44
  }
@@ -71,7 +71,6 @@ export const getOpenOrdersParser = z.object({
71
71
  ordinal_order_ids: z
72
72
  .array(z.string())
73
73
  .or(z.string())
74
- .transform((value) => (Array.isArray(value) ? value : [value]))
75
74
  .optional(),
76
75
  });
77
76
  export type GetOpenOrders = z.infer<typeof getOpenOrdersParser>;
@@ -91,7 +90,6 @@ export const getOrderHistoryParser = z.object({
91
90
  ordinal_order_ids: z
92
91
  .array(z.string())
93
92
  .or(z.string())
94
- .transform((value) => (Array.isArray(value) ? value : [value]))
95
93
  .optional(),
96
94
  trx_id: z.string().optional(),
97
95
  status: z.string().optional(),
@@ -307,7 +305,6 @@ export const getTradeHistoryParser = z.object({
307
305
  ordinal_order_ids: z
308
306
  .array(z.string())
309
307
  .or(z.string())
310
- .transform((value) => (Array.isArray(value) ? value : [value]))
311
308
  .optional(),
312
309
  limit: createLimit(100, 250),
313
310
  });