@mercurjs/core 2.3.5 → 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 -11
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +3 -3
- 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/validators.d.ts +11 -108
- package/.medusa/server/src/api/vendor/customer-groups/validators.js +3 -3
- 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 +5 -2
- 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/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
|
@@ -3,11 +3,7 @@ import { AdditionalData } from "@medusajs/framework/types";
|
|
|
3
3
|
export type AdminGetOfferParamsType = z.infer<typeof AdminGetOfferParams>;
|
|
4
4
|
export declare const AdminGetOfferParams: 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 type AdminGetOffersParamsType = z.infer<typeof AdminGetOffersParams>;
|
|
12
8
|
export declare const AdminGetOffersParams: z.ZodObject<{
|
|
13
9
|
fields: z.ZodOptional<z.ZodString>;
|
|
@@ -15,21 +11,20 @@ export declare const AdminGetOffersParams: z.ZodObject<{
|
|
|
15
11
|
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
16
12
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
17
13
|
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
18
|
-
} & {
|
|
19
14
|
q: z.ZodOptional<z.ZodString>;
|
|
20
|
-
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
21
|
-
seller_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
22
|
-
variant_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
23
|
-
shipping_profile_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
24
|
-
sku: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
25
|
-
ean: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
26
|
-
upc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
27
|
-
group_by_seller:
|
|
28
|
-
status: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
29
|
-
category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
30
|
-
collection_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
31
|
-
type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
32
|
-
tag_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
15
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
16
|
+
seller_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
17
|
+
variant_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
18
|
+
shipping_profile_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
19
|
+
sku: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
20
|
+
ean: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
21
|
+
upc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
22
|
+
group_by_seller: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>;
|
|
23
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
24
|
+
category_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
25
|
+
collection_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
26
|
+
type_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
27
|
+
tag_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
33
28
|
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
34
29
|
$eq: any;
|
|
35
30
|
$ne: any;
|
|
@@ -43,33 +38,7 @@ export declare const AdminGetOffersParams: z.ZodObject<{
|
|
|
43
38
|
$gte: any;
|
|
44
39
|
$lt: any;
|
|
45
40
|
$lte: any;
|
|
46
|
-
}, z.core.$strip
|
|
47
|
-
$nin?: any;
|
|
48
|
-
$eq?: any;
|
|
49
|
-
$ne?: any;
|
|
50
|
-
$in?: any;
|
|
51
|
-
$like?: any;
|
|
52
|
-
$ilike?: any;
|
|
53
|
-
$re?: any;
|
|
54
|
-
$contains?: any;
|
|
55
|
-
$gt?: any;
|
|
56
|
-
$gte?: any;
|
|
57
|
-
$lt?: any;
|
|
58
|
-
$lte?: any;
|
|
59
|
-
}, {
|
|
60
|
-
$nin?: any;
|
|
61
|
-
$eq?: any;
|
|
62
|
-
$ne?: any;
|
|
63
|
-
$in?: any;
|
|
64
|
-
$like?: any;
|
|
65
|
-
$ilike?: any;
|
|
66
|
-
$re?: any;
|
|
67
|
-
$contains?: any;
|
|
68
|
-
$gt?: any;
|
|
69
|
-
$gte?: any;
|
|
70
|
-
$lt?: any;
|
|
71
|
-
$lte?: any;
|
|
72
|
-
}>]>>;
|
|
41
|
+
}, z.core.$strip>]>>;
|
|
73
42
|
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
74
43
|
$eq: any;
|
|
75
44
|
$ne: any;
|
|
@@ -83,80 +52,8 @@ export declare const AdminGetOffersParams: z.ZodObject<{
|
|
|
83
52
|
$gte: any;
|
|
84
53
|
$lt: any;
|
|
85
54
|
$lte: any;
|
|
86
|
-
}, z.core.$strip
|
|
87
|
-
|
|
88
|
-
$eq?: any;
|
|
89
|
-
$ne?: any;
|
|
90
|
-
$in?: any;
|
|
91
|
-
$like?: any;
|
|
92
|
-
$ilike?: any;
|
|
93
|
-
$re?: any;
|
|
94
|
-
$contains?: any;
|
|
95
|
-
$gt?: any;
|
|
96
|
-
$gte?: any;
|
|
97
|
-
$lt?: any;
|
|
98
|
-
$lte?: any;
|
|
99
|
-
}, {
|
|
100
|
-
$nin?: any;
|
|
101
|
-
$eq?: any;
|
|
102
|
-
$ne?: any;
|
|
103
|
-
$in?: any;
|
|
104
|
-
$like?: any;
|
|
105
|
-
$ilike?: any;
|
|
106
|
-
$re?: any;
|
|
107
|
-
$contains?: any;
|
|
108
|
-
$gt?: any;
|
|
109
|
-
$gte?: any;
|
|
110
|
-
$lt?: any;
|
|
111
|
-
$lte?: any;
|
|
112
|
-
}>]>>;
|
|
113
|
-
}, "strip", z.ZodTypeAny, {
|
|
114
|
-
[x: string]: any;
|
|
115
|
-
fields?: unknown;
|
|
116
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
117
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
118
|
-
order?: unknown;
|
|
119
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
120
|
-
q?: unknown;
|
|
121
|
-
id?: unknown;
|
|
122
|
-
seller_id?: unknown;
|
|
123
|
-
variant_id?: unknown;
|
|
124
|
-
shipping_profile_id?: unknown;
|
|
125
|
-
sku?: unknown;
|
|
126
|
-
ean?: unknown;
|
|
127
|
-
upc?: unknown;
|
|
128
|
-
group_by_seller?: unknown;
|
|
129
|
-
status?: unknown;
|
|
130
|
-
category_id?: unknown;
|
|
131
|
-
collection_id?: unknown;
|
|
132
|
-
type_id?: unknown;
|
|
133
|
-
tag_id?: unknown;
|
|
134
|
-
created_at?: unknown;
|
|
135
|
-
updated_at?: unknown;
|
|
136
|
-
}, {
|
|
137
|
-
[x: string]: any;
|
|
138
|
-
fields?: unknown;
|
|
139
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
140
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
141
|
-
order?: unknown;
|
|
142
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
143
|
-
q?: unknown;
|
|
144
|
-
id?: unknown;
|
|
145
|
-
seller_id?: unknown;
|
|
146
|
-
variant_id?: unknown;
|
|
147
|
-
shipping_profile_id?: unknown;
|
|
148
|
-
sku?: unknown;
|
|
149
|
-
ean?: unknown;
|
|
150
|
-
upc?: unknown;
|
|
151
|
-
group_by_seller?: unknown;
|
|
152
|
-
status?: unknown;
|
|
153
|
-
category_id?: unknown;
|
|
154
|
-
collection_id?: unknown;
|
|
155
|
-
type_id?: unknown;
|
|
156
|
-
tag_id?: unknown;
|
|
157
|
-
created_at?: unknown;
|
|
158
|
-
updated_at?: unknown;
|
|
159
|
-
}>;
|
|
55
|
+
}, z.core.$strip>]>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
160
57
|
declare const CreateOffersBatch: z.ZodObject<{
|
|
161
58
|
seller_id: z.ZodString;
|
|
162
59
|
offers: z.ZodArray<z.ZodObject<{
|
|
@@ -169,19 +66,7 @@ declare const CreateOffersBatch: z.ZodObject<{
|
|
|
169
66
|
min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
170
67
|
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
171
68
|
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
172
|
-
},
|
|
173
|
-
currency_code: string;
|
|
174
|
-
amount: number;
|
|
175
|
-
min_quantity?: number | null | undefined;
|
|
176
|
-
max_quantity?: number | null | undefined;
|
|
177
|
-
rules?: Record<string, string> | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
currency_code: string;
|
|
180
|
-
amount: number;
|
|
181
|
-
min_quantity?: number | null | undefined;
|
|
182
|
-
max_quantity?: number | null | undefined;
|
|
183
|
-
rules?: Record<string, string> | undefined;
|
|
184
|
-
}>, "many">;
|
|
69
|
+
}, z.core.$strict>>;
|
|
185
70
|
inventory_items: z.ZodArray<z.ZodObject<{
|
|
186
71
|
title: z.ZodOptional<z.ZodString>;
|
|
187
72
|
sku: z.ZodOptional<z.ZodString>;
|
|
@@ -189,138 +74,14 @@ declare const CreateOffersBatch: z.ZodObject<{
|
|
|
189
74
|
stock_levels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
190
75
|
location_id: z.ZodString;
|
|
191
76
|
stocked_quantity: z.ZodNumber;
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
stocked_quantity: number;
|
|
195
|
-
}, {
|
|
196
|
-
location_id: string;
|
|
197
|
-
stocked_quantity: number;
|
|
198
|
-
}>, "many">>;
|
|
199
|
-
}, "strict", z.ZodTypeAny, {
|
|
200
|
-
required_quantity: number;
|
|
201
|
-
title?: string | undefined;
|
|
202
|
-
sku?: string | undefined;
|
|
203
|
-
stock_levels?: {
|
|
204
|
-
location_id: string;
|
|
205
|
-
stocked_quantity: number;
|
|
206
|
-
}[] | undefined;
|
|
207
|
-
}, {
|
|
208
|
-
title?: string | undefined;
|
|
209
|
-
sku?: string | undefined;
|
|
210
|
-
required_quantity?: number | undefined;
|
|
211
|
-
stock_levels?: {
|
|
212
|
-
location_id: string;
|
|
213
|
-
stocked_quantity: number;
|
|
214
|
-
}[] | undefined;
|
|
215
|
-
}>, "many">;
|
|
77
|
+
}, z.core.$strict>>>;
|
|
78
|
+
}, z.core.$strict>>;
|
|
216
79
|
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
80
|
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
81
|
leadtime_to_ship: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
219
82
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
shipping_profile_id: string;
|
|
223
|
-
sku: string;
|
|
224
|
-
prices: {
|
|
225
|
-
currency_code: string;
|
|
226
|
-
amount: number;
|
|
227
|
-
min_quantity?: number | null | undefined;
|
|
228
|
-
max_quantity?: number | null | undefined;
|
|
229
|
-
rules?: Record<string, string> | undefined;
|
|
230
|
-
}[];
|
|
231
|
-
inventory_items: {
|
|
232
|
-
required_quantity: number;
|
|
233
|
-
title?: string | undefined;
|
|
234
|
-
sku?: string | undefined;
|
|
235
|
-
stock_levels?: {
|
|
236
|
-
location_id: string;
|
|
237
|
-
stocked_quantity: number;
|
|
238
|
-
}[] | undefined;
|
|
239
|
-
}[];
|
|
240
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
241
|
-
ean?: string | null | undefined;
|
|
242
|
-
upc?: string | null | undefined;
|
|
243
|
-
leadtime_to_ship?: number | null | undefined;
|
|
244
|
-
}, {
|
|
245
|
-
variant_id: string;
|
|
246
|
-
shipping_profile_id: string;
|
|
247
|
-
sku: string;
|
|
248
|
-
prices: {
|
|
249
|
-
currency_code: string;
|
|
250
|
-
amount: number;
|
|
251
|
-
min_quantity?: number | null | undefined;
|
|
252
|
-
max_quantity?: number | null | undefined;
|
|
253
|
-
rules?: Record<string, string> | undefined;
|
|
254
|
-
}[];
|
|
255
|
-
inventory_items: {
|
|
256
|
-
title?: string | undefined;
|
|
257
|
-
sku?: string | undefined;
|
|
258
|
-
required_quantity?: number | undefined;
|
|
259
|
-
stock_levels?: {
|
|
260
|
-
location_id: string;
|
|
261
|
-
stocked_quantity: number;
|
|
262
|
-
}[] | undefined;
|
|
263
|
-
}[];
|
|
264
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
265
|
-
ean?: string | null | undefined;
|
|
266
|
-
upc?: string | null | undefined;
|
|
267
|
-
leadtime_to_ship?: number | null | undefined;
|
|
268
|
-
}>, "many">;
|
|
269
|
-
}, "strict", z.ZodTypeAny, {
|
|
270
|
-
seller_id: string;
|
|
271
|
-
offers: {
|
|
272
|
-
variant_id: string;
|
|
273
|
-
shipping_profile_id: string;
|
|
274
|
-
sku: string;
|
|
275
|
-
prices: {
|
|
276
|
-
currency_code: string;
|
|
277
|
-
amount: number;
|
|
278
|
-
min_quantity?: number | null | undefined;
|
|
279
|
-
max_quantity?: number | null | undefined;
|
|
280
|
-
rules?: Record<string, string> | undefined;
|
|
281
|
-
}[];
|
|
282
|
-
inventory_items: {
|
|
283
|
-
required_quantity: number;
|
|
284
|
-
title?: string | undefined;
|
|
285
|
-
sku?: string | undefined;
|
|
286
|
-
stock_levels?: {
|
|
287
|
-
location_id: string;
|
|
288
|
-
stocked_quantity: number;
|
|
289
|
-
}[] | undefined;
|
|
290
|
-
}[];
|
|
291
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
292
|
-
ean?: string | null | undefined;
|
|
293
|
-
upc?: string | null | undefined;
|
|
294
|
-
leadtime_to_ship?: number | null | undefined;
|
|
295
|
-
}[];
|
|
296
|
-
}, {
|
|
297
|
-
seller_id: string;
|
|
298
|
-
offers: {
|
|
299
|
-
variant_id: string;
|
|
300
|
-
shipping_profile_id: string;
|
|
301
|
-
sku: string;
|
|
302
|
-
prices: {
|
|
303
|
-
currency_code: string;
|
|
304
|
-
amount: number;
|
|
305
|
-
min_quantity?: number | null | undefined;
|
|
306
|
-
max_quantity?: number | null | undefined;
|
|
307
|
-
rules?: Record<string, string> | undefined;
|
|
308
|
-
}[];
|
|
309
|
-
inventory_items: {
|
|
310
|
-
title?: string | undefined;
|
|
311
|
-
sku?: string | undefined;
|
|
312
|
-
required_quantity?: number | undefined;
|
|
313
|
-
stock_levels?: {
|
|
314
|
-
location_id: string;
|
|
315
|
-
stocked_quantity: number;
|
|
316
|
-
}[] | undefined;
|
|
317
|
-
}[];
|
|
318
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
319
|
-
ean?: string | null | undefined;
|
|
320
|
-
upc?: string | null | undefined;
|
|
321
|
-
leadtime_to_ship?: number | null | undefined;
|
|
322
|
-
}[];
|
|
323
|
-
}>;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
}, z.core.$strict>;
|
|
324
85
|
export type AdminCreateOffersBatchType = z.infer<typeof CreateOffersBatch> & AdditionalData;
|
|
325
86
|
export declare const AdminCreateOffersBatch: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
326
87
|
export {};
|
|
@@ -2,11 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export type AdminGetOrderGroupParamsType = z.infer<typeof AdminGetOrderGroupParams>;
|
|
3
3
|
export declare const AdminGetOrderGroupParams: 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 type AdminGetOrderGroupsParamsType = z.infer<typeof AdminGetOrderGroupsParams>;
|
|
11
7
|
export declare const AdminGetOrderGroupsParams: z.ZodObject<{
|
|
12
8
|
fields: z.ZodOptional<z.ZodString>;
|
|
@@ -14,13 +10,12 @@ export declare const AdminGetOrderGroupsParams: z.ZodObject<{
|
|
|
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
13
|
q: z.ZodOptional<z.ZodString>;
|
|
19
|
-
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
20
|
-
customer_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
21
|
-
seller_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
22
|
-
status: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
23
|
-
sales_channel_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
14
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
15
|
+
customer_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
16
|
+
seller_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
17
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
18
|
+
sales_channel_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
24
19
|
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
25
20
|
$eq: any;
|
|
26
21
|
$ne: any;
|
|
@@ -34,33 +29,7 @@ export declare const AdminGetOrderGroupsParams: z.ZodObject<{
|
|
|
34
29
|
$gte: any;
|
|
35
30
|
$lt: any;
|
|
36
31
|
$lte: any;
|
|
37
|
-
}, z.core.$strip
|
|
38
|
-
$nin?: any;
|
|
39
|
-
$eq?: any;
|
|
40
|
-
$ne?: any;
|
|
41
|
-
$in?: any;
|
|
42
|
-
$like?: any;
|
|
43
|
-
$ilike?: any;
|
|
44
|
-
$re?: any;
|
|
45
|
-
$contains?: any;
|
|
46
|
-
$gt?: any;
|
|
47
|
-
$gte?: any;
|
|
48
|
-
$lt?: any;
|
|
49
|
-
$lte?: any;
|
|
50
|
-
}, {
|
|
51
|
-
$nin?: any;
|
|
52
|
-
$eq?: any;
|
|
53
|
-
$ne?: any;
|
|
54
|
-
$in?: any;
|
|
55
|
-
$like?: any;
|
|
56
|
-
$ilike?: any;
|
|
57
|
-
$re?: any;
|
|
58
|
-
$contains?: any;
|
|
59
|
-
$gt?: any;
|
|
60
|
-
$gte?: any;
|
|
61
|
-
$lt?: any;
|
|
62
|
-
$lte?: any;
|
|
63
|
-
}>]>>;
|
|
32
|
+
}, z.core.$strip>]>>;
|
|
64
33
|
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
65
34
|
$eq: any;
|
|
66
35
|
$ne: any;
|
|
@@ -74,59 +43,5 @@ export declare const AdminGetOrderGroupsParams: z.ZodObject<{
|
|
|
74
43
|
$gte: any;
|
|
75
44
|
$lt: any;
|
|
76
45
|
$lte: any;
|
|
77
|
-
}, z.core.$strip
|
|
78
|
-
|
|
79
|
-
$eq?: any;
|
|
80
|
-
$ne?: any;
|
|
81
|
-
$in?: any;
|
|
82
|
-
$like?: any;
|
|
83
|
-
$ilike?: any;
|
|
84
|
-
$re?: any;
|
|
85
|
-
$contains?: any;
|
|
86
|
-
$gt?: any;
|
|
87
|
-
$gte?: any;
|
|
88
|
-
$lt?: any;
|
|
89
|
-
$lte?: any;
|
|
90
|
-
}, {
|
|
91
|
-
$nin?: any;
|
|
92
|
-
$eq?: any;
|
|
93
|
-
$ne?: any;
|
|
94
|
-
$in?: any;
|
|
95
|
-
$like?: any;
|
|
96
|
-
$ilike?: any;
|
|
97
|
-
$re?: any;
|
|
98
|
-
$contains?: any;
|
|
99
|
-
$gt?: any;
|
|
100
|
-
$gte?: any;
|
|
101
|
-
$lt?: any;
|
|
102
|
-
$lte?: any;
|
|
103
|
-
}>]>>;
|
|
104
|
-
}, "strip", z.ZodTypeAny, {
|
|
105
|
-
order?: string | undefined;
|
|
106
|
-
id?: string | string[] | undefined;
|
|
107
|
-
seller_id?: string | string[] | undefined;
|
|
108
|
-
status?: string | string[] | undefined;
|
|
109
|
-
created_at?: any;
|
|
110
|
-
updated_at?: any;
|
|
111
|
-
q?: string | undefined;
|
|
112
|
-
customer_id?: string | string[] | undefined;
|
|
113
|
-
fields?: string | undefined;
|
|
114
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
115
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
116
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
117
|
-
sales_channel_id?: string | string[] | undefined;
|
|
118
|
-
}, {
|
|
119
|
-
order?: string | undefined;
|
|
120
|
-
id?: string | string[] | undefined;
|
|
121
|
-
seller_id?: string | string[] | undefined;
|
|
122
|
-
status?: string | string[] | undefined;
|
|
123
|
-
created_at?: any;
|
|
124
|
-
updated_at?: any;
|
|
125
|
-
q?: string | undefined;
|
|
126
|
-
customer_id?: string | string[] | undefined;
|
|
127
|
-
fields?: string | undefined;
|
|
128
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
129
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
130
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
131
|
-
sales_channel_id?: string | string[] | undefined;
|
|
132
|
-
}>;
|
|
46
|
+
}, z.core.$strip>]>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
@@ -1,3 +1,164 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const AdminGetOrdersParams:
|
|
2
|
+
export declare const AdminGetOrdersParams: z.ZodPipe<z.ZodIntersection<z.ZodPipe<z.ZodObject<{
|
|
3
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
4
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
5
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
6
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
8
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodUnion<readonly [any, z.ZodObject<{
|
|
9
|
+
$eq: any;
|
|
10
|
+
$ne: any;
|
|
11
|
+
$in: any;
|
|
12
|
+
$nin: any;
|
|
13
|
+
$like: any;
|
|
14
|
+
$ilike: any;
|
|
15
|
+
$re: any;
|
|
16
|
+
$contains: any;
|
|
17
|
+
$gt: any;
|
|
18
|
+
$gte: any;
|
|
19
|
+
$lt: any;
|
|
20
|
+
$lte: any;
|
|
21
|
+
}, z.core.$strip>]>]>>;
|
|
22
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodUnion<readonly [any, z.ZodObject<{
|
|
23
|
+
$eq: any;
|
|
24
|
+
$ne: any;
|
|
25
|
+
$in: any;
|
|
26
|
+
$nin: any;
|
|
27
|
+
$like: any;
|
|
28
|
+
$ilike: any;
|
|
29
|
+
$re: any;
|
|
30
|
+
$contains: any;
|
|
31
|
+
$gt: any;
|
|
32
|
+
$gte: any;
|
|
33
|
+
$lt: any;
|
|
34
|
+
$lte: any;
|
|
35
|
+
}, z.core.$strip>]>]>>;
|
|
36
|
+
sales_channel_id: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
region_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
38
|
+
customer_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
39
|
+
q: z.ZodOptional<z.ZodString>;
|
|
40
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
41
|
+
$eq: any;
|
|
42
|
+
$ne: any;
|
|
43
|
+
$in: any;
|
|
44
|
+
$nin: any;
|
|
45
|
+
$like: any;
|
|
46
|
+
$ilike: any;
|
|
47
|
+
$re: any;
|
|
48
|
+
$contains: any;
|
|
49
|
+
$gt: any;
|
|
50
|
+
$gte: any;
|
|
51
|
+
$lt: any;
|
|
52
|
+
$lte: any;
|
|
53
|
+
}, z.core.$strip>]>>;
|
|
54
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
55
|
+
$eq: any;
|
|
56
|
+
$ne: any;
|
|
57
|
+
$in: any;
|
|
58
|
+
$nin: any;
|
|
59
|
+
$like: any;
|
|
60
|
+
$ilike: any;
|
|
61
|
+
$re: any;
|
|
62
|
+
$contains: any;
|
|
63
|
+
$gt: any;
|
|
64
|
+
$gte: any;
|
|
65
|
+
$lt: any;
|
|
66
|
+
$lte: any;
|
|
67
|
+
}, z.core.$strip>]>>;
|
|
68
|
+
total: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
69
|
+
$eq: any;
|
|
70
|
+
$ne: any;
|
|
71
|
+
$in: any;
|
|
72
|
+
$nin: any;
|
|
73
|
+
$like: any;
|
|
74
|
+
$ilike: any;
|
|
75
|
+
$re: any;
|
|
76
|
+
$contains: any;
|
|
77
|
+
$gt: any;
|
|
78
|
+
$gte: any;
|
|
79
|
+
$lt: any;
|
|
80
|
+
$lte: any;
|
|
81
|
+
}, z.core.$strip>]>>;
|
|
82
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
83
|
+
summary?: {
|
|
84
|
+
totals: {
|
|
85
|
+
current_order_total: any;
|
|
86
|
+
};
|
|
87
|
+
} | undefined;
|
|
88
|
+
offset: number;
|
|
89
|
+
limit: number;
|
|
90
|
+
order: string | undefined;
|
|
91
|
+
fields?: string | undefined;
|
|
92
|
+
with_deleted?: boolean | undefined;
|
|
93
|
+
id?: any;
|
|
94
|
+
status?: any;
|
|
95
|
+
sales_channel_id?: string[] | undefined;
|
|
96
|
+
region_id?: string | string[] | undefined;
|
|
97
|
+
customer_id?: string | string[] | undefined;
|
|
98
|
+
q?: string | undefined;
|
|
99
|
+
created_at?: any;
|
|
100
|
+
updated_at?: any;
|
|
101
|
+
}, {
|
|
102
|
+
offset: number;
|
|
103
|
+
limit: number;
|
|
104
|
+
order: string | undefined;
|
|
105
|
+
fields?: string | undefined;
|
|
106
|
+
with_deleted?: boolean | undefined;
|
|
107
|
+
id?: any;
|
|
108
|
+
status?: any;
|
|
109
|
+
sales_channel_id?: string[] | undefined;
|
|
110
|
+
region_id?: string | string[] | undefined;
|
|
111
|
+
customer_id?: string | string[] | undefined;
|
|
112
|
+
q?: string | undefined;
|
|
113
|
+
created_at?: any;
|
|
114
|
+
updated_at?: any;
|
|
115
|
+
total?: any;
|
|
116
|
+
}>>, z.ZodObject<{
|
|
117
|
+
seller_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
118
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
119
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
120
|
+
summary?: {
|
|
121
|
+
totals: {
|
|
122
|
+
current_order_total: any;
|
|
123
|
+
};
|
|
124
|
+
} | undefined;
|
|
125
|
+
offset: number;
|
|
126
|
+
limit: number;
|
|
127
|
+
order: string | undefined;
|
|
128
|
+
fields?: string | undefined;
|
|
129
|
+
with_deleted?: boolean | undefined;
|
|
130
|
+
id?: any;
|
|
131
|
+
status?: any;
|
|
132
|
+
sales_channel_id?: string[] | undefined;
|
|
133
|
+
region_id?: string | string[] | undefined;
|
|
134
|
+
customer_id?: string | string[] | undefined;
|
|
135
|
+
q?: string | undefined;
|
|
136
|
+
created_at?: any;
|
|
137
|
+
updated_at?: any;
|
|
138
|
+
} & {
|
|
139
|
+
seller_id?: string | string[] | undefined;
|
|
140
|
+
name?: string | string[] | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
summary?: {
|
|
143
|
+
totals: {
|
|
144
|
+
current_order_total: any;
|
|
145
|
+
};
|
|
146
|
+
} | undefined;
|
|
147
|
+
offset: number;
|
|
148
|
+
limit: number;
|
|
149
|
+
order: string | undefined;
|
|
150
|
+
fields?: string | undefined;
|
|
151
|
+
with_deleted?: boolean | undefined;
|
|
152
|
+
id?: any;
|
|
153
|
+
status?: any;
|
|
154
|
+
sales_channel_id?: string[] | undefined;
|
|
155
|
+
region_id?: string | string[] | undefined;
|
|
156
|
+
customer_id?: string | string[] | undefined;
|
|
157
|
+
q?: string | undefined;
|
|
158
|
+
created_at?: any;
|
|
159
|
+
updated_at?: any;
|
|
160
|
+
} & {
|
|
161
|
+
seller_id?: string | string[] | undefined;
|
|
162
|
+
name?: string | string[] | undefined;
|
|
163
|
+
}>>;
|
|
3
164
|
export type AdminGetOrdersParamsType = z.infer<typeof AdminGetOrdersParams>;
|