@proton/wrap-constants 0.2.83 → 0.2.84
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 +1 -7
- package/dist/index.js +2 -10
- package/dist/index.mjs +2 -10
- package/package.json +2 -2
- package/src/parsers/dex.ts +4 -15
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.
|
|
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<{
|
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(),
|
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(),
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.84",
|
|
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": "
|
|
43
|
+
"gitHead": "210af683a62531350135dcdfac047b5c49bd2a77"
|
|
44
44
|
}
|
package/src/parsers/dex.ts
CHANGED
|
@@ -100,21 +100,10 @@ export type GetOrderHistoryResponse = z.infer<
|
|
|
100
100
|
typeof getOrderHistoryResponseParser
|
|
101
101
|
>;
|
|
102
102
|
|
|
103
|
-
export const getOrderLifecycleParser = z
|
|
104
|
-
.
|
|
105
|
-
|
|
106
|
-
|
|
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({
|