@proton/wrap-constants 0.2.156 → 0.2.157

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
@@ -6925,10 +6925,10 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
6925
6925
  }>;
6926
6926
  declare type GetOrderHistoryResponse = z.infer<typeof getOrderHistoryResponseParser>;
6927
6927
  declare const getOrderLifecycleParser: z.ZodObject<{
6928
- order_id: z.ZodOptional<z.ZodString>;
6928
+ order_id: z.ZodEffects<z.ZodOptional<z.ZodString>, string | number | undefined, string | undefined>;
6929
6929
  ordinal_order_id: z.ZodOptional<z.ZodString>;
6930
6930
  }, "strip", z.ZodTypeAny, {
6931
- order_id?: string | undefined;
6931
+ order_id?: string | number | undefined;
6932
6932
  ordinal_order_id?: string | undefined;
6933
6933
  }, {
6934
6934
  order_id?: string | undefined;
package/dist/index.js CHANGED
@@ -2027,7 +2027,7 @@ var getOrderHistoryResponseParser = z11.object({
2027
2027
  data: z11.array(orderHistoryParser)
2028
2028
  });
2029
2029
  var getOrderLifecycleParser = z11.object({
2030
- order_id: z11.string().optional(),
2030
+ order_id: z11.string().optional().transform((_) => _ ? +_ : _),
2031
2031
  ordinal_order_id: z11.string().optional()
2032
2032
  });
2033
2033
  var getOrderLifecycleResponseParser = z11.object({
package/dist/index.mjs CHANGED
@@ -1873,7 +1873,7 @@ var getOrderHistoryResponseParser = z11.object({
1873
1873
  data: z11.array(orderHistoryParser)
1874
1874
  });
1875
1875
  var getOrderLifecycleParser = z11.object({
1876
- order_id: z11.string().optional(),
1876
+ order_id: z11.string().optional().transform((_) => _ ? +_ : _),
1877
1877
  ordinal_order_id: z11.string().optional()
1878
1878
  });
1879
1879
  var getOrderLifecycleResponseParser = z11.object({
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.156",
8
+ "version": "0.2.157",
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": "1799fd0eb5465bdbb1a6ab1f1e5fb2e65d6488fc"
43
+ "gitHead": "3744039499590124993b3731aef814d011bb236e"
44
44
  }
@@ -176,7 +176,7 @@ export type GetOrderHistoryResponse = z.infer<
176
176
  >;
177
177
 
178
178
  export const getOrderLifecycleParser = z.object({
179
- order_id: z.string().optional(),
179
+ order_id: z.string().optional().transform(_ => _ ? +_ : _),
180
180
  ordinal_order_id: z.string().optional(),
181
181
  });
182
182
  export type GetOrderLifecycle = z.input<typeof getOrderLifecycleParser>;