@proton/wrap-constants 0.2.83 → 0.2.85

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
@@ -6802,7 +6802,7 @@ declare const getOrderHistoryResponseParser: z.ZodObject<{
6802
6802
  sync: number;
6803
6803
  }>;
6804
6804
  declare type GetOrderHistoryResponse = z.infer<typeof getOrderHistoryResponseParser>;
6805
- declare const getOrderLifecycleParser: z.ZodEffects<z.ZodObject<{
6805
+ declare const getOrderLifecycleParser: z.ZodObject<{
6806
6806
  order_id: z.ZodOptional<z.ZodString>;
6807
6807
  ordinal_order_id: z.ZodOptional<z.ZodString>;
6808
6808
  }, "strip", z.ZodTypeAny, {
@@ -6811,12 +6811,6 @@ declare const getOrderLifecycleParser: z.ZodEffects<z.ZodObject<{
6811
6811
  }, {
6812
6812
  order_id?: string | undefined;
6813
6813
  ordinal_order_id?: string | undefined;
6814
- }>, {
6815
- order_id?: string | undefined;
6816
- ordinal_order_id?: string | undefined;
6817
- }, {
6818
- order_id?: string | undefined;
6819
- ordinal_order_id?: string | undefined;
6820
6814
  }>;
6821
6815
  declare type GetOrderLifecycle = z.infer<typeof getOrderLifecycleParser>;
6822
6816
  declare const getOrderLifecycleResponseParser: z.ZodObject<{
@@ -6950,29 +6944,29 @@ declare const submitOrderResponseParser: z.ZodObject<{
6950
6944
  sync: z.ZodNumber;
6951
6945
  data: z.ZodObject<{
6952
6946
  ordinal_order_ids: z.ZodArray<z.ZodString, "many">;
6953
- order_ids: z.ZodArray<z.ZodNumber, "many">;
6947
+ order_ids: z.ZodArray<z.ZodString, "many">;
6954
6948
  trx_id: z.ZodString;
6955
6949
  }, "strip", z.ZodTypeAny, {
6956
6950
  trx_id: string;
6957
6951
  ordinal_order_ids: string[];
6958
- order_ids: number[];
6952
+ order_ids: string[];
6959
6953
  }, {
6960
6954
  trx_id: string;
6961
6955
  ordinal_order_ids: string[];
6962
- order_ids: number[];
6956
+ order_ids: string[];
6963
6957
  }>;
6964
6958
  }, "strip", z.ZodTypeAny, {
6965
6959
  data: {
6966
6960
  trx_id: string;
6967
6961
  ordinal_order_ids: string[];
6968
- order_ids: number[];
6962
+ order_ids: string[];
6969
6963
  };
6970
6964
  sync: number;
6971
6965
  }, {
6972
6966
  data: {
6973
6967
  trx_id: string;
6974
6968
  ordinal_order_ids: string[];
6975
- order_ids: number[];
6969
+ order_ids: string[];
6976
6970
  };
6977
6971
  sync: number;
6978
6972
  }>;
package/dist/index.js CHANGED
@@ -1897,16 +1897,8 @@ var getOrderHistoryResponseParser = z11.object({
1897
1897
  data: z11.array(orderHistoryParser)
1898
1898
  });
1899
1899
  var getOrderLifecycleParser = z11.object({
1900
- order_id: z11.string(),
1901
- ordinal_order_id: z11.string()
1902
- }).partial().superRefine((data, ctx) => {
1903
- if (!data.order_id && !data.ordinal_order_id) {
1904
- ctx.addIssue({
1905
- code: z11.ZodIssueCode.custom,
1906
- path: ["ordinal_order_id"],
1907
- message: "One of Order ID or Ordinal Order ID is required"
1908
- });
1909
- }
1900
+ order_id: z11.string().optional(),
1901
+ ordinal_order_id: z11.string().optional()
1910
1902
  });
1911
1903
  var getOrderLifecycleResponseParser = z11.object({
1912
1904
  sync: z11.number(),
@@ -1920,7 +1912,7 @@ var submitOrderResponseParser = z11.object({
1920
1912
  sync: z11.number(),
1921
1913
  data: z11.object({
1922
1914
  ordinal_order_ids: z11.array(z11.string()),
1923
- order_ids: z11.array(z11.number()),
1915
+ order_ids: z11.array(z11.string()),
1924
1916
  trx_id: z11.string()
1925
1917
  })
1926
1918
  });
package/dist/index.mjs CHANGED
@@ -1767,16 +1767,8 @@ var getOrderHistoryResponseParser = z11.object({
1767
1767
  data: z11.array(orderHistoryParser)
1768
1768
  });
1769
1769
  var getOrderLifecycleParser = z11.object({
1770
- order_id: z11.string(),
1771
- ordinal_order_id: z11.string()
1772
- }).partial().superRefine((data, ctx) => {
1773
- if (!data.order_id && !data.ordinal_order_id) {
1774
- ctx.addIssue({
1775
- code: z11.ZodIssueCode.custom,
1776
- path: ["ordinal_order_id"],
1777
- message: "One of Order ID or Ordinal Order ID is required"
1778
- });
1779
- }
1770
+ order_id: z11.string().optional(),
1771
+ ordinal_order_id: z11.string().optional()
1780
1772
  });
1781
1773
  var getOrderLifecycleResponseParser = z11.object({
1782
1774
  sync: z11.number(),
@@ -1790,7 +1782,7 @@ var submitOrderResponseParser = z11.object({
1790
1782
  sync: z11.number(),
1791
1783
  data: z11.object({
1792
1784
  ordinal_order_ids: z11.array(z11.string()),
1793
- order_ids: z11.array(z11.number()),
1785
+ order_ids: z11.array(z11.string()),
1794
1786
  trx_id: z11.string()
1795
1787
  })
1796
1788
  });
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.83",
8
+ "version": "0.2.85",
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": "ceecdbf112269882eb995b1e6f14c2c8e46a9e2c"
43
+ "gitHead": "92a54998b8c7f2323a563855abcd4eb1d2fef474"
44
44
  }
@@ -100,21 +100,10 @@ export type GetOrderHistoryResponse = z.infer<
100
100
  typeof getOrderHistoryResponseParser
101
101
  >;
102
102
 
103
- export const getOrderLifecycleParser = z
104
- .object({
105
- order_id: z.string(),
106
- ordinal_order_id: z.string(),
107
- })
108
- .partial()
109
- .superRefine((data, ctx) => {
110
- if (!data.order_id && !data.ordinal_order_id) {
111
- ctx.addIssue({
112
- code: z.ZodIssueCode.custom,
113
- path: ["ordinal_order_id"],
114
- message: "One of Order ID or Ordinal Order ID is required",
115
- });
116
- }
117
- });
103
+ export const getOrderLifecycleParser = z.object({
104
+ order_id: z.string().optional(),
105
+ ordinal_order_id: z.string().optional(),
106
+ });
118
107
  export type GetOrderLifecycle = z.infer<typeof getOrderLifecycleParser>;
119
108
 
120
109
  export const getOrderLifecycleResponseParser = z.object({
@@ -135,7 +124,7 @@ export const submitOrderResponseParser = z.object({
135
124
  sync: z.number(),
136
125
  data: z.object({
137
126
  ordinal_order_ids: z.array(z.string()),
138
- order_ids: z.array(z.number()),
127
+ order_ids: z.array(z.string()),
139
128
  trx_id: z.string(),
140
129
  }),
141
130
  });