@mercurjs/core 2.3.5-canary.0 → 2.3.6-canary.0
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/.medusa/server/src/api/admin/collections/validators.d.ts +12 -185
- package/.medusa/server/src/api/admin/collections/validators.js +3 -3
- package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +21 -226
- package/.medusa/server/src/api/admin/customer-groups/validators.d.ts +6 -26
- package/.medusa/server/src/api/admin/members/validators.d.ts +1 -18
- package/.medusa/server/src/api/admin/offers/validators.d.ts +22 -261
- package/.medusa/server/src/api/admin/order-groups/validators.d.ts +9 -94
- package/.medusa/server/src/api/admin/orders/validators.d.ts +162 -1
- package/.medusa/server/src/api/admin/payouts/validators.d.ts +7 -86
- package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +45 -398
- package/.medusa/server/src/api/admin/product-attributes/validators.js +8 -8
- package/.medusa/server/src/api/admin/product-categories/middlewares.js +4 -2
- package/.medusa/server/src/api/admin/product-categories/validators.d.ts +41 -376
- package/.medusa/server/src/api/admin/product-categories/validators.js +3 -3
- package/.medusa/server/src/api/admin/product-changes/validators.d.ts +2 -10
- package/.medusa/server/src/api/admin/products/middlewares.js +4 -2
- package/.medusa/server/src/api/admin/products/validators.d.ts +128 -1702
- package/.medusa/server/src/api/admin/products/validators.js +9 -9
- package/.medusa/server/src/api/admin/promotions/[id]/cost/validators.d.ts +6 -8
- package/.medusa/server/src/api/admin/reservations/validators.d.ts +2 -39
- package/.medusa/server/src/api/admin/reviews/validators.d.ts +24 -46
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +32 -358
- package/.medusa/server/src/api/admin/sellers/validators.js +4 -4
- package/.medusa/server/src/api/store/carts/[id]/complete/validators.d.ts +1 -5
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +1 -17
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +3 -5
- package/.medusa/server/src/api/store/offers/validators.d.ts +9 -112
- package/.medusa/server/src/api/store/order-groups/validators.d.ts +5 -80
- package/.medusa/server/src/api/store/product-attributes/validators.d.ts +19 -175
- package/.medusa/server/src/api/store/product-categories/validators.d.ts +21 -184
- package/.medusa/server/src/api/store/products/validators.d.ts +25 -210
- package/.medusa/server/src/api/store/reviews/validators.d.ts +7 -34
- package/.medusa/server/src/api/store/sellers/validators.d.ts +7 -92
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +28 -165
- package/.medusa/server/src/api/vendor/campaigns/validators.js +4 -4
- package/.medusa/server/src/api/vendor/claims/validators.d.ts +23 -276
- package/.medusa/server/src/api/vendor/collections/validators.d.ts +8 -117
- package/.medusa/server/src/api/vendor/currencies/validators.d.ts +5 -32
- package/.medusa/server/src/api/vendor/customer-groups/[id]/customers/route.js +10 -9
- package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +11 -108
- package/.medusa/server/src/api/vendor/customer-groups/validators.js +3 -3
- package/.medusa/server/src/api/vendor/customers/helpers.d.ts +1 -1
- package/.medusa/server/src/api/vendor/customers/helpers.js +12 -6
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +11 -102
- package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +17 -228
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +4 -27
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +18 -290
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.js +3 -3
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +48 -560
- package/.medusa/server/src/api/vendor/inventory-items/validators.js +3 -3
- package/.medusa/server/src/api/vendor/members/validators.d.ts +2 -18
- package/.medusa/server/src/api/vendor/offers/validators.d.ts +34 -497
- package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +8 -118
- package/.medusa/server/src/api/vendor/order-edits/validators.js +6 -6
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +17 -170
- package/.medusa/server/src/api/vendor/payments/validators.d.ts +11 -121
- package/.medusa/server/src/api/vendor/payout-accounts/validators.d.ts +4 -32
- package/.medusa/server/src/api/vendor/payout-accounts/validators.js +5 -5
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +5 -80
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +21 -262
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +5 -30
- package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +33 -273
- package/.medusa/server/src/api/vendor/product-attributes/validators.js +5 -5
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +34 -275
- package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +12 -48
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +4 -27
- package/.medusa/server/src/api/vendor/product-variants/middlewares.js +7 -2
- package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +38 -364
- package/.medusa/server/src/api/vendor/products/middlewares.js +19 -3
- package/.medusa/server/src/api/vendor/products/validators.d.ts +102 -1012
- package/.medusa/server/src/api/vendor/products/validators.js +13 -13
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +104 -1109
- package/.medusa/server/src/api/vendor/promotions/validators.js +3 -3
- package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +5 -82
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +7 -88
- package/.medusa/server/src/api/vendor/reservations/validators.d.ts +14 -207
- package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +9 -94
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +26 -306
- package/.medusa/server/src/api/vendor/returns/validators.js +8 -8
- package/.medusa/server/src/api/vendor/reviews/validators.d.ts +19 -36
- package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +5 -32
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +17 -249
- package/.medusa/server/src/api/vendor/sellers/validators.js +4 -4
- package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +8 -91
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +59 -730
- package/.medusa/server/src/api/vendor/shipping-options/validators.js +5 -5
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +5 -86
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +14 -209
- package/.medusa/server/src/api/vendor/stock-locations/validators.js +3 -3
- package/.medusa/server/src/api/vendor/stores/query-config.d.ts +1 -0
- package/.medusa/server/src/api/vendor/stores/query-config.js +7 -4
- package/.medusa/server/src/api/vendor/stores/validators.d.ts +4 -27
- package/.medusa/server/src/patches/manifest.js +2 -2
- package/.medusa/server/src/utils/disable-medusa-middlewares.d.ts +2 -0
- package/.medusa/server/src/utils/disable-medusa-middlewares.js +35 -10
- package/.medusa/server/src/workflows/offer/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/offer/workflows/index.js +2 -1
- package/.medusa/server/src/workflows/offer/workflows/update-offers.js +9 -138
- package/.medusa/server/src/workflows/offer/workflows/upsert-offer-prices.d.ts +14 -0
- package/.medusa/server/src/workflows/offer/workflows/upsert-offer-prices.js +130 -0
- package/package.json +17 -17
|
@@ -2,40 +2,20 @@ import { CampaignBudgetType } from "@medusajs/framework/utils";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export declare const VendorGetCampaignParams: z.ZodObject<{
|
|
4
4
|
fields: z.ZodOptional<z.ZodString>;
|
|
5
|
-
}, z.core.$strip
|
|
6
|
-
fields?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
fields?: string | undefined;
|
|
9
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
10
6
|
export declare const VendorGetCampaignsParamsFields: z.ZodObject<{
|
|
11
7
|
q: z.ZodOptional<z.ZodString>;
|
|
12
8
|
campaign_identifier: z.ZodOptional<z.ZodString>;
|
|
13
|
-
budget_type: z.ZodOptional<z.
|
|
14
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
9
|
+
budget_type: z.ZodOptional<z.ZodEnum<typeof CampaignBudgetType>>;
|
|
10
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
expired: "expired";
|
|
12
|
+
scheduled: "scheduled";
|
|
13
|
+
active: "active";
|
|
14
|
+
}>>;
|
|
15
15
|
budget: z.ZodOptional<z.ZodObject<{
|
|
16
16
|
currency_code: z.ZodOptional<z.ZodString>;
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
}, {
|
|
20
|
-
currency_code?: string | undefined;
|
|
21
|
-
}>>;
|
|
22
|
-
}, "strict", z.ZodTypeAny, {
|
|
23
|
-
status?: "expired" | "scheduled" | "active" | undefined;
|
|
24
|
-
q?: string | undefined;
|
|
25
|
-
budget_type?: CampaignBudgetType | undefined;
|
|
26
|
-
campaign_identifier?: string | undefined;
|
|
27
|
-
budget?: {
|
|
28
|
-
currency_code?: string | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
status?: "expired" | "scheduled" | "active" | undefined;
|
|
32
|
-
q?: string | undefined;
|
|
33
|
-
budget_type?: CampaignBudgetType | undefined;
|
|
34
|
-
campaign_identifier?: string | undefined;
|
|
35
|
-
budget?: {
|
|
36
|
-
currency_code?: string | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
}>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strict>;
|
|
39
19
|
export type VendorGetCampaignsParamsType = z.infer<typeof VendorGetCampaignsParams>;
|
|
40
20
|
export declare const VendorGetCampaignsParams: z.ZodObject<{
|
|
41
21
|
fields: z.ZodOptional<z.ZodString>;
|
|
@@ -43,130 +23,35 @@ export declare const VendorGetCampaignsParams: z.ZodObject<{
|
|
|
43
23
|
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
44
24
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
45
25
|
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
46
|
-
} & {
|
|
47
26
|
q: z.ZodOptional<z.ZodString>;
|
|
48
27
|
campaign_identifier: z.ZodOptional<z.ZodString>;
|
|
49
|
-
budget_type: z.ZodOptional<z.
|
|
50
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
28
|
+
budget_type: z.ZodOptional<z.ZodEnum<typeof CampaignBudgetType>>;
|
|
29
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
expired: "expired";
|
|
31
|
+
scheduled: "scheduled";
|
|
32
|
+
active: "active";
|
|
33
|
+
}>>;
|
|
51
34
|
budget: z.ZodOptional<z.ZodObject<{
|
|
52
35
|
currency_code: z.ZodOptional<z.ZodString>;
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
}, {
|
|
56
|
-
currency_code?: string | undefined;
|
|
57
|
-
}>>;
|
|
58
|
-
}, "strict", z.ZodTypeAny, {
|
|
59
|
-
order?: string | undefined;
|
|
60
|
-
status?: "expired" | "scheduled" | "active" | undefined;
|
|
61
|
-
q?: string | undefined;
|
|
62
|
-
fields?: string | undefined;
|
|
63
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
64
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
65
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
66
|
-
budget_type?: CampaignBudgetType | undefined;
|
|
67
|
-
campaign_identifier?: string | undefined;
|
|
68
|
-
budget?: {
|
|
69
|
-
currency_code?: string | undefined;
|
|
70
|
-
} | undefined;
|
|
71
|
-
}, {
|
|
72
|
-
order?: string | undefined;
|
|
73
|
-
status?: "expired" | "scheduled" | "active" | undefined;
|
|
74
|
-
q?: string | undefined;
|
|
75
|
-
fields?: string | undefined;
|
|
76
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
77
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
78
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
79
|
-
budget_type?: CampaignBudgetType | undefined;
|
|
80
|
-
campaign_identifier?: string | undefined;
|
|
81
|
-
budget?: {
|
|
82
|
-
currency_code?: string | undefined;
|
|
83
|
-
} | undefined;
|
|
84
|
-
}>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strict>;
|
|
85
38
|
export declare const VendorUpdateCampaignBudget: z.ZodObject<{
|
|
86
39
|
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
87
|
-
},
|
|
88
|
-
limit?: number | null | undefined;
|
|
89
|
-
}, {
|
|
90
|
-
limit?: number | null | undefined;
|
|
91
|
-
}>;
|
|
40
|
+
}, z.core.$strict>;
|
|
92
41
|
export type VendorCreateCampaignType = z.infer<typeof VendorCreateCampaign>;
|
|
93
42
|
export declare const VendorCreateCampaign: z.ZodObject<{
|
|
94
43
|
name: z.ZodString;
|
|
95
44
|
campaign_identifier: z.ZodString;
|
|
96
45
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
-
budget: z.ZodOptional<z.ZodNullable<z.
|
|
98
|
-
type: z.
|
|
46
|
+
budget: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
|
+
type: z.ZodEnum<typeof CampaignBudgetType>;
|
|
99
48
|
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
100
49
|
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
50
|
attribute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
attribute?: string | null | undefined;
|
|
107
|
-
}, {
|
|
108
|
-
type: CampaignBudgetType;
|
|
109
|
-
currency_code?: string | null | undefined;
|
|
110
|
-
limit?: number | null | undefined;
|
|
111
|
-
attribute?: string | null | undefined;
|
|
112
|
-
}>, {
|
|
113
|
-
type: CampaignBudgetType;
|
|
114
|
-
currency_code?: string | null | undefined;
|
|
115
|
-
limit?: number | null | undefined;
|
|
116
|
-
attribute?: string | null | undefined;
|
|
117
|
-
}, {
|
|
118
|
-
type: CampaignBudgetType;
|
|
119
|
-
currency_code?: string | null | undefined;
|
|
120
|
-
limit?: number | null | undefined;
|
|
121
|
-
attribute?: string | null | undefined;
|
|
122
|
-
}>, {
|
|
123
|
-
type: CampaignBudgetType;
|
|
124
|
-
currency_code?: string | null | undefined;
|
|
125
|
-
limit?: number | null | undefined;
|
|
126
|
-
attribute?: string | null | undefined;
|
|
127
|
-
}, {
|
|
128
|
-
type: CampaignBudgetType;
|
|
129
|
-
currency_code?: string | null | undefined;
|
|
130
|
-
limit?: number | null | undefined;
|
|
131
|
-
attribute?: string | null | undefined;
|
|
132
|
-
}>, {
|
|
133
|
-
type: CampaignBudgetType;
|
|
134
|
-
currency_code?: string | null | undefined;
|
|
135
|
-
limit?: number | null | undefined;
|
|
136
|
-
attribute?: string | null | undefined;
|
|
137
|
-
}, {
|
|
138
|
-
type: CampaignBudgetType;
|
|
139
|
-
currency_code?: string | null | undefined;
|
|
140
|
-
limit?: number | null | undefined;
|
|
141
|
-
attribute?: string | null | undefined;
|
|
142
|
-
}>>>;
|
|
143
|
-
starts_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
144
|
-
ends_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
145
|
-
}, "strict", z.ZodTypeAny, {
|
|
146
|
-
name: string;
|
|
147
|
-
campaign_identifier: string;
|
|
148
|
-
description?: string | null | undefined;
|
|
149
|
-
ends_at?: Date | null | undefined;
|
|
150
|
-
starts_at?: Date | null | undefined;
|
|
151
|
-
budget?: {
|
|
152
|
-
type: CampaignBudgetType;
|
|
153
|
-
currency_code?: string | null | undefined;
|
|
154
|
-
limit?: number | null | undefined;
|
|
155
|
-
attribute?: string | null | undefined;
|
|
156
|
-
} | null | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
name: string;
|
|
159
|
-
campaign_identifier: string;
|
|
160
|
-
description?: string | null | undefined;
|
|
161
|
-
ends_at?: Date | null | undefined;
|
|
162
|
-
starts_at?: Date | null | undefined;
|
|
163
|
-
budget?: {
|
|
164
|
-
type: CampaignBudgetType;
|
|
165
|
-
currency_code?: string | null | undefined;
|
|
166
|
-
limit?: number | null | undefined;
|
|
167
|
-
attribute?: string | null | undefined;
|
|
168
|
-
} | null | undefined;
|
|
169
|
-
}>;
|
|
51
|
+
}, z.core.$strict>>>;
|
|
52
|
+
starts_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
53
|
+
ends_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
54
|
+
}, z.core.$strict>;
|
|
170
55
|
export type VendorUpdateCampaignType = z.infer<typeof VendorUpdateCampaign>;
|
|
171
56
|
export declare const VendorUpdateCampaign: z.ZodObject<{
|
|
172
57
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -174,29 +59,7 @@ export declare const VendorUpdateCampaign: z.ZodObject<{
|
|
|
174
59
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
60
|
budget: z.ZodOptional<z.ZodObject<{
|
|
176
61
|
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
177
|
-
},
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}>>;
|
|
182
|
-
starts_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
183
|
-
ends_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
184
|
-
}, "strip", z.ZodTypeAny, {
|
|
185
|
-
name?: string | undefined;
|
|
186
|
-
description?: string | null | undefined;
|
|
187
|
-
ends_at?: Date | null | undefined;
|
|
188
|
-
starts_at?: Date | null | undefined;
|
|
189
|
-
campaign_identifier?: string | undefined;
|
|
190
|
-
budget?: {
|
|
191
|
-
limit?: number | null | undefined;
|
|
192
|
-
} | undefined;
|
|
193
|
-
}, {
|
|
194
|
-
name?: string | undefined;
|
|
195
|
-
description?: string | null | undefined;
|
|
196
|
-
ends_at?: Date | null | undefined;
|
|
197
|
-
starts_at?: Date | null | undefined;
|
|
198
|
-
campaign_identifier?: string | undefined;
|
|
199
|
-
budget?: {
|
|
200
|
-
limit?: number | null | undefined;
|
|
201
|
-
} | undefined;
|
|
202
|
-
}>;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
starts_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
64
|
+
ends_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
65
|
+
}, z.core.$strip>;
|
|
@@ -42,10 +42,10 @@ const VendorCreateCampaignBudget = zod_1.z
|
|
|
42
42
|
![
|
|
43
43
|
utils_1.CampaignBudgetType.USE_BY_ATTRIBUTE,
|
|
44
44
|
utils_1.CampaignBudgetType.SPEND_BY_ATTRIBUTE,
|
|
45
|
-
].includes(data.type),
|
|
45
|
+
].includes(data.type), {
|
|
46
46
|
path: ["attribute"],
|
|
47
|
-
message: `campaign budget attribute is required when budget type is ${
|
|
48
|
-
})
|
|
47
|
+
message: `campaign budget attribute is required when budget type is ${utils_1.CampaignBudgetType.USE_BY_ATTRIBUTE} or ${utils_1.CampaignBudgetType.SPEND_BY_ATTRIBUTE}`,
|
|
48
|
+
});
|
|
49
49
|
exports.VendorUpdateCampaignBudget = zod_1.z
|
|
50
50
|
.object({
|
|
51
51
|
limit: zod_1.z.number().nullish(),
|
|
@@ -69,4 +69,4 @@ exports.VendorUpdateCampaign = zod_1.z.object({
|
|
|
69
69
|
starts_at: zod_1.z.coerce.date().nullish(),
|
|
70
70
|
ends_at: zod_1.z.coerce.date().nullish(),
|
|
71
71
|
});
|
|
72
|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sQ0FBQyxNQUFNLENBQUM7SUFDM0MsSUFBSSxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxRQUFRLEVBQUU7SUFDM0IsbUJBQW1CLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLFFBQVEsRUFBRTtJQUMxQyxXQUFXLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLE9BQU8sRUFBRTtJQUNqQyxNQUFNLEVBQUUsa0NBQTBCLENBQUMsUUFBUSxFQUFFO0lBQzdDLFNBQVMsRUFBRSxPQUFDLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxDQUFDLE9BQU8sRUFBRTtJQUNwQyxPQUFPLEVBQUUsT0FBQyxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsQ0FBQyxPQUFPLEVBQUU7Q0FDbkMsQ0FBQyxDQUFBIn0=
|
|
@@ -3,21 +3,16 @@ import { z } from "zod";
|
|
|
3
3
|
export type VendorGetClaimParamsType = z.infer<typeof VendorGetClaimParams>;
|
|
4
4
|
export declare const VendorGetClaimParams: z.ZodObject<{
|
|
5
5
|
fields: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, z.core.$strip
|
|
7
|
-
fields?: string | undefined;
|
|
8
|
-
}, {
|
|
9
|
-
fields?: string | undefined;
|
|
10
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
11
7
|
export declare const VendorGetClaimsParams: z.ZodObject<{
|
|
12
8
|
fields: z.ZodOptional<z.ZodString>;
|
|
13
9
|
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
14
10
|
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
15
11
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
16
12
|
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
13
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
14
|
+
order_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
15
|
+
return_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
21
16
|
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
22
17
|
$eq: any;
|
|
23
18
|
$ne: any;
|
|
@@ -31,33 +26,7 @@ export declare const VendorGetClaimsParams: z.ZodObject<{
|
|
|
31
26
|
$gte: any;
|
|
32
27
|
$lt: any;
|
|
33
28
|
$lte: any;
|
|
34
|
-
}, z.core.$strip
|
|
35
|
-
$nin?: any;
|
|
36
|
-
$eq?: any;
|
|
37
|
-
$ne?: any;
|
|
38
|
-
$in?: any;
|
|
39
|
-
$like?: any;
|
|
40
|
-
$ilike?: any;
|
|
41
|
-
$re?: any;
|
|
42
|
-
$contains?: any;
|
|
43
|
-
$gt?: any;
|
|
44
|
-
$gte?: any;
|
|
45
|
-
$lt?: any;
|
|
46
|
-
$lte?: any;
|
|
47
|
-
}, {
|
|
48
|
-
$nin?: any;
|
|
49
|
-
$eq?: any;
|
|
50
|
-
$ne?: any;
|
|
51
|
-
$in?: any;
|
|
52
|
-
$like?: any;
|
|
53
|
-
$ilike?: any;
|
|
54
|
-
$re?: any;
|
|
55
|
-
$contains?: any;
|
|
56
|
-
$gt?: any;
|
|
57
|
-
$gte?: any;
|
|
58
|
-
$lt?: any;
|
|
59
|
-
$lte?: any;
|
|
60
|
-
}>]>>;
|
|
29
|
+
}, z.core.$strip>]>>;
|
|
61
30
|
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
62
31
|
$eq: any;
|
|
63
32
|
$ne: any;
|
|
@@ -71,144 +40,38 @@ export declare const VendorGetClaimsParams: z.ZodObject<{
|
|
|
71
40
|
$gte: any;
|
|
72
41
|
$lt: any;
|
|
73
42
|
$lte: any;
|
|
74
|
-
}, z.core.$strip
|
|
75
|
-
|
|
76
|
-
$eq?: any;
|
|
77
|
-
$ne?: any;
|
|
78
|
-
$in?: any;
|
|
79
|
-
$like?: any;
|
|
80
|
-
$ilike?: any;
|
|
81
|
-
$re?: any;
|
|
82
|
-
$contains?: any;
|
|
83
|
-
$gt?: any;
|
|
84
|
-
$gte?: any;
|
|
85
|
-
$lt?: any;
|
|
86
|
-
$lte?: any;
|
|
87
|
-
}, {
|
|
88
|
-
$nin?: any;
|
|
89
|
-
$eq?: any;
|
|
90
|
-
$ne?: any;
|
|
91
|
-
$in?: any;
|
|
92
|
-
$like?: any;
|
|
93
|
-
$ilike?: any;
|
|
94
|
-
$re?: any;
|
|
95
|
-
$contains?: any;
|
|
96
|
-
$gt?: any;
|
|
97
|
-
$gte?: any;
|
|
98
|
-
$lt?: any;
|
|
99
|
-
$lte?: any;
|
|
100
|
-
}>]>>;
|
|
101
|
-
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
order?: string | undefined;
|
|
103
|
-
id?: string | string[] | undefined;
|
|
104
|
-
created_at?: any;
|
|
105
|
-
updated_at?: any;
|
|
106
|
-
order_id?: string | string[] | undefined;
|
|
107
|
-
fields?: string | undefined;
|
|
108
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
109
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
110
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
111
|
-
return_id?: string | string[] | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
order?: string | undefined;
|
|
114
|
-
id?: string | string[] | undefined;
|
|
115
|
-
created_at?: any;
|
|
116
|
-
updated_at?: any;
|
|
117
|
-
order_id?: string | string[] | undefined;
|
|
118
|
-
fields?: string | undefined;
|
|
119
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
120
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
121
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
122
|
-
return_id?: string | string[] | undefined;
|
|
123
|
-
}>;
|
|
43
|
+
}, z.core.$strip>]>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
124
45
|
export type VendorGetClaimsParamsType = z.infer<typeof VendorGetClaimsParams>;
|
|
125
46
|
export declare const VendorPostOrderClaimsReq: z.ZodObject<{
|
|
126
|
-
type: z.
|
|
47
|
+
type: z.ZodEnum<typeof ClaimType>;
|
|
127
48
|
order_id: z.ZodString;
|
|
128
49
|
description: z.ZodOptional<z.ZodString>;
|
|
129
50
|
internal_note: z.ZodOptional<z.ZodString>;
|
|
130
51
|
reason_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
52
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
132
|
-
},
|
|
133
|
-
type: ClaimType;
|
|
134
|
-
order_id: string;
|
|
135
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
136
|
-
description?: string | undefined;
|
|
137
|
-
internal_note?: string | undefined;
|
|
138
|
-
reason_id?: string | null | undefined;
|
|
139
|
-
}, {
|
|
140
|
-
type: ClaimType;
|
|
141
|
-
order_id: string;
|
|
142
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
143
|
-
description?: string | undefined;
|
|
144
|
-
internal_note?: string | undefined;
|
|
145
|
-
reason_id?: string | null | undefined;
|
|
146
|
-
}>;
|
|
53
|
+
}, z.core.$strip>;
|
|
147
54
|
export type VendorPostOrderClaimsReqType = z.infer<typeof VendorPostOrderClaimsReq>;
|
|
148
55
|
export declare const VendorPostCancelClaimReq: z.ZodObject<{
|
|
149
56
|
no_notification: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
-
},
|
|
151
|
-
no_notification?: boolean | undefined;
|
|
152
|
-
}, {
|
|
153
|
-
no_notification?: boolean | undefined;
|
|
154
|
-
}>;
|
|
57
|
+
}, z.core.$strip>;
|
|
155
58
|
export type VendorPostCancelClaimReqType = z.infer<typeof VendorPostCancelClaimReq>;
|
|
156
59
|
export declare const VendorPostClaimItemsReq: z.ZodObject<{
|
|
157
60
|
items: z.ZodArray<z.ZodObject<{
|
|
158
61
|
id: z.ZodString;
|
|
159
62
|
quantity: z.ZodNumber;
|
|
160
|
-
reason: z.ZodOptional<z.
|
|
63
|
+
reason: z.ZodOptional<z.ZodEnum<typeof ClaimReason>>;
|
|
161
64
|
description: z.ZodOptional<z.ZodString>;
|
|
162
65
|
internal_note: z.ZodOptional<z.ZodString>;
|
|
163
66
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
quantity: number;
|
|
167
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
168
|
-
description?: string | undefined;
|
|
169
|
-
reason?: ClaimReason | undefined;
|
|
170
|
-
internal_note?: string | undefined;
|
|
171
|
-
}, {
|
|
172
|
-
id: string;
|
|
173
|
-
quantity: number;
|
|
174
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
175
|
-
description?: string | undefined;
|
|
176
|
-
reason?: ClaimReason | undefined;
|
|
177
|
-
internal_note?: string | undefined;
|
|
178
|
-
}>, "many">;
|
|
179
|
-
}, "strip", z.ZodTypeAny, {
|
|
180
|
-
items: {
|
|
181
|
-
id: string;
|
|
182
|
-
quantity: number;
|
|
183
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
184
|
-
description?: string | undefined;
|
|
185
|
-
reason?: ClaimReason | undefined;
|
|
186
|
-
internal_note?: string | undefined;
|
|
187
|
-
}[];
|
|
188
|
-
}, {
|
|
189
|
-
items: {
|
|
190
|
-
id: string;
|
|
191
|
-
quantity: number;
|
|
192
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
193
|
-
description?: string | undefined;
|
|
194
|
-
reason?: ClaimReason | undefined;
|
|
195
|
-
internal_note?: string | undefined;
|
|
196
|
-
}[];
|
|
197
|
-
}>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
198
69
|
export type VendorPostClaimItemsReqType = z.infer<typeof VendorPostClaimItemsReq>;
|
|
199
70
|
export declare const VendorPostClaimsItemsActionReq: z.ZodObject<{
|
|
200
71
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
201
72
|
reason_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
202
73
|
internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
203
|
-
},
|
|
204
|
-
internal_note?: string | null | undefined;
|
|
205
|
-
quantity?: number | undefined;
|
|
206
|
-
reason_id?: string | null | undefined;
|
|
207
|
-
}, {
|
|
208
|
-
internal_note?: string | null | undefined;
|
|
209
|
-
quantity?: number | undefined;
|
|
210
|
-
reason_id?: string | null | undefined;
|
|
211
|
-
}>;
|
|
74
|
+
}, z.core.$strip>;
|
|
212
75
|
export type VendorPostClaimsItemsActionReqType = z.infer<typeof VendorPostClaimsItemsActionReq>;
|
|
213
76
|
export declare const VendorPostClaimsRequestReturnItemsReq: z.ZodObject<{
|
|
214
77
|
location_id: z.ZodOptional<z.ZodString>;
|
|
@@ -219,127 +82,31 @@ export declare const VendorPostClaimsRequestReturnItemsReq: z.ZodObject<{
|
|
|
219
82
|
internal_note: z.ZodOptional<z.ZodString>;
|
|
220
83
|
reason_id: z.ZodOptional<z.ZodString>;
|
|
221
84
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
quantity: number;
|
|
225
|
-
metadata?: Record<string, unknown> | undefined;
|
|
226
|
-
description?: string | undefined;
|
|
227
|
-
internal_note?: string | undefined;
|
|
228
|
-
reason_id?: string | undefined;
|
|
229
|
-
}, {
|
|
230
|
-
id: string;
|
|
231
|
-
quantity: number;
|
|
232
|
-
metadata?: Record<string, unknown> | undefined;
|
|
233
|
-
description?: string | undefined;
|
|
234
|
-
internal_note?: string | undefined;
|
|
235
|
-
reason_id?: string | undefined;
|
|
236
|
-
}>, "many">;
|
|
237
|
-
}, "strip", z.ZodTypeAny, {
|
|
238
|
-
items: {
|
|
239
|
-
id: string;
|
|
240
|
-
quantity: number;
|
|
241
|
-
metadata?: Record<string, unknown> | undefined;
|
|
242
|
-
description?: string | undefined;
|
|
243
|
-
internal_note?: string | undefined;
|
|
244
|
-
reason_id?: string | undefined;
|
|
245
|
-
}[];
|
|
246
|
-
location_id?: string | undefined;
|
|
247
|
-
}, {
|
|
248
|
-
items: {
|
|
249
|
-
id: string;
|
|
250
|
-
quantity: number;
|
|
251
|
-
metadata?: Record<string, unknown> | undefined;
|
|
252
|
-
description?: string | undefined;
|
|
253
|
-
internal_note?: string | undefined;
|
|
254
|
-
reason_id?: string | undefined;
|
|
255
|
-
}[];
|
|
256
|
-
location_id?: string | undefined;
|
|
257
|
-
}>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>;
|
|
258
87
|
export type VendorPostClaimsRequestReturnItemsReqType = z.infer<typeof VendorPostClaimsRequestReturnItemsReq>;
|
|
259
88
|
export declare const VendorPostClaimsRequestItemsReturnActionReq: z.ZodObject<{
|
|
260
89
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
261
90
|
internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
262
91
|
reason_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
263
92
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
264
|
-
},
|
|
265
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
266
|
-
internal_note?: string | null | undefined;
|
|
267
|
-
quantity?: number | undefined;
|
|
268
|
-
reason_id?: string | null | undefined;
|
|
269
|
-
}, {
|
|
270
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
271
|
-
internal_note?: string | null | undefined;
|
|
272
|
-
quantity?: number | undefined;
|
|
273
|
-
reason_id?: string | null | undefined;
|
|
274
|
-
}>;
|
|
93
|
+
}, z.core.$strip>;
|
|
275
94
|
export type VendorPostClaimsRequestItemsReturnActionReqType = z.infer<typeof VendorPostClaimsRequestItemsReturnActionReq>;
|
|
276
95
|
export declare const VendorPostClaimsAddItemsReq: z.ZodObject<{
|
|
277
|
-
items: z.ZodArray<z.
|
|
96
|
+
items: z.ZodArray<z.ZodObject<{
|
|
278
97
|
variant_id: z.ZodOptional<z.ZodString>;
|
|
279
98
|
offer_id: z.ZodOptional<z.ZodString>;
|
|
280
99
|
quantity: z.ZodNumber;
|
|
281
100
|
unit_price: z.ZodOptional<z.ZodNumber>;
|
|
282
101
|
internal_note: z.ZodOptional<z.ZodString>;
|
|
283
102
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
284
|
-
},
|
|
285
|
-
|
|
286
|
-
metadata?: Record<string, unknown> | undefined;
|
|
287
|
-
variant_id?: string | undefined;
|
|
288
|
-
offer_id?: string | undefined;
|
|
289
|
-
internal_note?: string | undefined;
|
|
290
|
-
unit_price?: number | undefined;
|
|
291
|
-
}, {
|
|
292
|
-
quantity: number;
|
|
293
|
-
metadata?: Record<string, unknown> | undefined;
|
|
294
|
-
variant_id?: string | undefined;
|
|
295
|
-
offer_id?: string | undefined;
|
|
296
|
-
internal_note?: string | undefined;
|
|
297
|
-
unit_price?: number | undefined;
|
|
298
|
-
}>, {
|
|
299
|
-
quantity: number;
|
|
300
|
-
metadata?: Record<string, unknown> | undefined;
|
|
301
|
-
variant_id?: string | undefined;
|
|
302
|
-
offer_id?: string | undefined;
|
|
303
|
-
internal_note?: string | undefined;
|
|
304
|
-
unit_price?: number | undefined;
|
|
305
|
-
}, {
|
|
306
|
-
quantity: number;
|
|
307
|
-
metadata?: Record<string, unknown> | undefined;
|
|
308
|
-
variant_id?: string | undefined;
|
|
309
|
-
offer_id?: string | undefined;
|
|
310
|
-
internal_note?: string | undefined;
|
|
311
|
-
unit_price?: number | undefined;
|
|
312
|
-
}>, "many">;
|
|
313
|
-
}, "strip", z.ZodTypeAny, {
|
|
314
|
-
items: {
|
|
315
|
-
quantity: number;
|
|
316
|
-
metadata?: Record<string, unknown> | undefined;
|
|
317
|
-
variant_id?: string | undefined;
|
|
318
|
-
offer_id?: string | undefined;
|
|
319
|
-
internal_note?: string | undefined;
|
|
320
|
-
unit_price?: number | undefined;
|
|
321
|
-
}[];
|
|
322
|
-
}, {
|
|
323
|
-
items: {
|
|
324
|
-
quantity: number;
|
|
325
|
-
metadata?: Record<string, unknown> | undefined;
|
|
326
|
-
variant_id?: string | undefined;
|
|
327
|
-
offer_id?: string | undefined;
|
|
328
|
-
internal_note?: string | undefined;
|
|
329
|
-
unit_price?: number | undefined;
|
|
330
|
-
}[];
|
|
331
|
-
}>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
332
105
|
export type VendorPostClaimsAddItemsReqType = z.infer<typeof VendorPostClaimsAddItemsReq>;
|
|
333
106
|
export declare const VendorPostClaimsAddItemsActionReq: z.ZodObject<{
|
|
334
107
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
335
108
|
internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
336
|
-
},
|
|
337
|
-
internal_note?: string | null | undefined;
|
|
338
|
-
quantity?: number | undefined;
|
|
339
|
-
}, {
|
|
340
|
-
internal_note?: string | null | undefined;
|
|
341
|
-
quantity?: number | undefined;
|
|
342
|
-
}>;
|
|
109
|
+
}, z.core.$strip>;
|
|
343
110
|
export type VendorPostClaimsAddItemsActionReqType = z.infer<typeof VendorPostClaimsAddItemsActionReq>;
|
|
344
111
|
export declare const VendorPostClaimsShippingReq: z.ZodObject<{
|
|
345
112
|
shipping_option_id: z.ZodString;
|
|
@@ -347,31 +114,11 @@ export declare const VendorPostClaimsShippingReq: z.ZodObject<{
|
|
|
347
114
|
description: z.ZodOptional<z.ZodString>;
|
|
348
115
|
internal_note: z.ZodOptional<z.ZodString>;
|
|
349
116
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
350
|
-
},
|
|
351
|
-
shipping_option_id: string;
|
|
352
|
-
metadata?: Record<string, unknown> | undefined;
|
|
353
|
-
description?: string | undefined;
|
|
354
|
-
internal_note?: string | undefined;
|
|
355
|
-
custom_amount?: number | undefined;
|
|
356
|
-
}, {
|
|
357
|
-
shipping_option_id: string;
|
|
358
|
-
metadata?: Record<string, unknown> | undefined;
|
|
359
|
-
description?: string | undefined;
|
|
360
|
-
internal_note?: string | undefined;
|
|
361
|
-
custom_amount?: number | undefined;
|
|
362
|
-
}>;
|
|
117
|
+
}, z.core.$strip>;
|
|
363
118
|
export type VendorPostClaimsShippingReqType = z.infer<typeof VendorPostClaimsShippingReq>;
|
|
364
119
|
export declare const VendorPostClaimsShippingActionReq: z.ZodObject<{
|
|
365
120
|
custom_amount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
366
121
|
internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
367
122
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
368
|
-
},
|
|
369
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
370
|
-
internal_note?: string | null | undefined;
|
|
371
|
-
custom_amount?: number | null | undefined;
|
|
372
|
-
}, {
|
|
373
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
374
|
-
internal_note?: string | null | undefined;
|
|
375
|
-
custom_amount?: number | null | undefined;
|
|
376
|
-
}>;
|
|
123
|
+
}, z.core.$strip>;
|
|
377
124
|
export type VendorPostClaimsShippingActionReqType = z.infer<typeof VendorPostClaimsShippingActionReq>;
|