@mercurjs/b2c-core 1.4.3 → 1.4.5
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/admin/index.js +3 -1
- package/.medusa/server/src/admin/index.mjs +3 -1
- package/.medusa/server/src/api/admin/attributes/validators.d.ts +355 -59
- package/.medusa/server/src/api/admin/configuration/validators.d.ts +3 -2
- package/.medusa/server/src/api/admin/notifications/route.js +8 -2
- package/.medusa/server/src/api/admin/order-sets/validators.d.ts +5 -3
- package/.medusa/server/src/api/admin/products/validators.d.ts +909 -500
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +20 -16
- package/.medusa/server/src/api/admin/stock-locations/route.js +2 -2
- package/.medusa/server/src/api/store/carts/[id]/promotions/route.d.ts +3 -0
- package/.medusa/server/src/api/store/carts/[id]/promotions/route.js +34 -0
- package/.medusa/server/src/api/store/order-set/validators.d.ts +3 -2
- package/.medusa/server/src/api/store/returns/validators.d.ts +3 -2
- package/.medusa/server/src/api/store/seller/validators.d.ts +3 -2
- package/.medusa/server/src/api/store/shipping-options/validators.d.ts +24 -26
- package/.medusa/server/src/api/store/wishlist/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/attributes/validators.d.ts +9 -7
- package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.d.ts +76 -0
- package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.js +89 -0
- package/.medusa/server/src/api/vendor/campaigns/[id]/route.d.ts +55 -4
- package/.medusa/server/src/api/vendor/campaigns/[id]/route.js +59 -3
- package/.medusa/server/src/api/vendor/campaigns/helpers.d.ts +4 -0
- package/.medusa/server/src/api/vendor/campaigns/helpers.js +34 -0
- package/.medusa/server/src/api/vendor/campaigns/middlewares.js +18 -9
- package/.medusa/server/src/api/vendor/campaigns/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/campaigns/route.js +10 -4
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +203 -11
- package/.medusa/server/src/api/vendor/campaigns/validators.js +43 -4
- package/.medusa/server/src/api/vendor/customer-groups/route.d.ts +2 -2
- package/.medusa/server/src/api/vendor/customer-groups/route.js +5 -5
- package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +604 -2
- package/.medusa/server/src/api/vendor/customer-groups/validators.js +37 -2
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +6 -4
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +22 -6
- package/.medusa/server/src/api/vendor/inventory-items/[id]/route.d.ts +23 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/route.js +48 -2
- package/.medusa/server/src/api/vendor/inventory-items/middlewares.js +12 -1
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +37 -104
- package/.medusa/server/src/api/vendor/invites/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/members/validators.d.ts +7 -6
- package/.medusa/server/src/api/vendor/notifications/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +13 -11
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +18 -16
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +37 -29
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +317 -26
- package/.medusa/server/src/api/vendor/product-collections/validators.d.ts +6 -4
- package/.medusa/server/src/api/vendor/product-tags/route.js +8 -2
- package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +31 -29
- package/.medusa/server/src/api/vendor/product-types/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/product-types/route.js +8 -1
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +14 -2
- package/.medusa/server/src/api/vendor/product-types/validators.js +9 -3
- package/.medusa/server/src/api/vendor/products/route.js +7 -3
- package/.medusa/server/src/api/vendor/products/utils.d.ts +4 -1
- package/.medusa/server/src/api/vendor/products/utils.js +40 -2
- package/.medusa/server/src/api/vendor/products/validators.d.ts +905 -377
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +57 -53
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/reservations/validators.d.ts +7 -6
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +9 -8
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +20 -20
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +27 -26
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +5 -4
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +49 -59
- package/.medusa/server/src/links/seller-campaign.js +1 -1
- package/.medusa/server/src/links/seller-customer-group.js +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250617080244.d.ts +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250617080244.js +2 -2
- package/.medusa/server/src/modules/attribute/migrations/Migration20250620110849.d.ts +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250620110849.js +2 -2
- package/.medusa/server/src/modules/attribute/migrations/Migration20250828065431.d.ts +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250828065431.js +2 -2
- package/.medusa/server/src/modules/attribute/service.d.ts +1 -1
- package/.medusa/server/src/modules/configuration/migrations/Migration20250114063624.d.ts +1 -1
- package/.medusa/server/src/modules/configuration/migrations/Migration20250114063624.js +2 -2
- package/.medusa/server/src/modules/configuration/migrations/Migration20250324131111.d.ts +1 -1
- package/.medusa/server/src/modules/configuration/migrations/Migration20250324131111.js +2 -2
- package/.medusa/server/src/modules/marketplace/migrations/Migration20241207151814.d.ts +1 -1
- package/.medusa/server/src/modules/marketplace/migrations/Migration20241207151814.js +2 -2
- package/.medusa/server/src/modules/payout/migrations/Migration20250317090626.d.ts +1 -1
- package/.medusa/server/src/modules/payout/migrations/Migration20250317090626.js +2 -2
- package/.medusa/server/src/modules/payout/migrations/Migration20250612144913.d.ts +1 -1
- package/.medusa/server/src/modules/payout/migrations/Migration20250612144913.js +2 -2
- package/.medusa/server/src/modules/payout/service.d.ts +1 -1
- package/.medusa/server/src/modules/secondary_categories/migrations/Migration20251014102054.d.ts +1 -1
- package/.medusa/server/src/modules/secondary_categories/migrations/Migration20251014102054.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20241206125415.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20241206125415.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250225083755.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250225083755.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250225094708.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250225094708.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250307091819.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250307091819.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250313065552.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250313065552.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250530111528.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250530111528.js +2 -2
- package/.medusa/server/src/modules/seller/utils.d.ts +4 -0
- package/.medusa/server/src/modules/seller/utils.js +18 -1
- package/.medusa/server/src/modules/split-order-payment/migrations/Migration20250516075429.d.ts +1 -1
- package/.medusa/server/src/modules/split-order-payment/migrations/Migration20250516075429.js +2 -2
- package/.medusa/server/src/modules/taxcode/migrations/Migration20250116135408.d.ts +1 -1
- package/.medusa/server/src/modules/taxcode/migrations/Migration20250116135408.js +2 -2
- package/.medusa/server/src/modules/wishlist/migrations/Migration20250424110903.d.ts +1 -1
- package/.medusa/server/src/modules/wishlist/migrations/Migration20250424110903.js +2 -2
- package/.medusa/server/src/workflows/cart/workflows/split-and-complete-cart.js +2 -2
- package/.medusa/server/src/workflows/order/steps/calculate-payout-for-order.d.ts +1 -1
- package/.medusa/server/src/workflows/promotions/steps/register-usage-step.d.ts +7 -2
- package/.medusa/server/src/workflows/promotions/steps/register-usage-step.js +6 -6
- package/.medusa/server/src/workflows/seller/steps/send-invitation-email.js +6 -2
- package/.medusa/server/src/workflows/seller/steps/validate-products-to-import.d.ts +10 -10
- package/package.json +15 -28
|
@@ -10,11 +10,13 @@ const formModule = { customFields: {} };
|
|
|
10
10
|
const displayModule = {
|
|
11
11
|
displays: {}
|
|
12
12
|
};
|
|
13
|
+
const i18nModule = { resources: {} };
|
|
13
14
|
const plugin = {
|
|
14
15
|
widgetModule,
|
|
15
16
|
routeModule,
|
|
16
17
|
menuItemModule,
|
|
17
18
|
formModule,
|
|
18
|
-
displayModule
|
|
19
|
+
displayModule,
|
|
20
|
+
i18nModule
|
|
19
21
|
};
|
|
20
22
|
module.exports = plugin;
|
|
@@ -9,12 +9,14 @@ const formModule = { customFields: {} };
|
|
|
9
9
|
const displayModule = {
|
|
10
10
|
displays: {}
|
|
11
11
|
};
|
|
12
|
+
const i18nModule = { resources: {} };
|
|
12
13
|
const plugin = {
|
|
13
14
|
widgetModule,
|
|
14
15
|
routeModule,
|
|
15
16
|
menuItemModule,
|
|
16
17
|
formModule,
|
|
17
|
-
displayModule
|
|
18
|
+
displayModule,
|
|
19
|
+
i18nModule
|
|
18
20
|
};
|
|
19
21
|
export {
|
|
20
22
|
plugin as default
|
|
@@ -18,6 +18,7 @@ export declare const AdminGetAttributeValueParams: z.ZodObject<{
|
|
|
18
18
|
export type AdminGetAttributeValuesParamsType = z.infer<typeof AdminGetAttributeValueParams>;
|
|
19
19
|
export declare const AdminGetAttributeValuesParams: z.ZodObject<{
|
|
20
20
|
fields: z.ZodOptional<z.ZodString>;
|
|
21
|
+
} & {
|
|
21
22
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
22
23
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
23
24
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -25,14 +26,14 @@ export declare const AdminGetAttributeValuesParams: z.ZodObject<{
|
|
|
25
26
|
}, "strip", z.ZodTypeAny, {
|
|
26
27
|
offset: number;
|
|
27
28
|
limit: number;
|
|
28
|
-
fields?: string | undefined;
|
|
29
29
|
order?: string | undefined;
|
|
30
|
+
fields?: string | undefined;
|
|
30
31
|
with_deleted?: boolean | undefined;
|
|
31
32
|
}, {
|
|
33
|
+
order?: string | undefined;
|
|
32
34
|
fields?: string | undefined;
|
|
33
35
|
offset?: unknown;
|
|
34
36
|
limit?: unknown;
|
|
35
|
-
order?: string | undefined;
|
|
36
37
|
with_deleted?: unknown;
|
|
37
38
|
}>;
|
|
38
39
|
export type AdminGetAttributeParamsType = z.infer<typeof AdminGetAttributeParams>;
|
|
@@ -172,30 +173,325 @@ export declare const GetAttributesParams: z.ZodObject<{
|
|
|
172
173
|
ui_component: z.ZodOptional<z.ZodNativeEnum<typeof AttributeUIComponent>>;
|
|
173
174
|
}, "strip", z.ZodTypeAny, {
|
|
174
175
|
id?: string | undefined;
|
|
175
|
-
name?: string | undefined;
|
|
176
|
-
handle?: string | undefined;
|
|
177
|
-
is_required?: boolean | undefined;
|
|
178
|
-
is_filterable?: boolean | undefined;
|
|
179
176
|
created_at?: any;
|
|
180
177
|
updated_at?: any;
|
|
181
178
|
deleted_at?: any;
|
|
182
|
-
ui_component?: AttributeUIComponent | undefined;
|
|
183
|
-
}, {
|
|
184
|
-
id?: string | undefined;
|
|
185
179
|
name?: string | undefined;
|
|
186
180
|
handle?: string | undefined;
|
|
187
|
-
is_required?: boolean | undefined;
|
|
188
181
|
is_filterable?: boolean | undefined;
|
|
182
|
+
ui_component?: AttributeUIComponent | undefined;
|
|
183
|
+
is_required?: boolean | undefined;
|
|
184
|
+
}, {
|
|
185
|
+
id?: string | undefined;
|
|
189
186
|
created_at?: any;
|
|
190
187
|
updated_at?: any;
|
|
191
188
|
deleted_at?: any;
|
|
189
|
+
name?: string | undefined;
|
|
190
|
+
handle?: string | undefined;
|
|
191
|
+
is_filterable?: boolean | undefined;
|
|
192
192
|
ui_component?: AttributeUIComponent | undefined;
|
|
193
|
+
is_required?: boolean | undefined;
|
|
193
194
|
}>;
|
|
194
195
|
export type AdminGetAttributesParamsType = z.infer<typeof AdminGetAttributesParams>;
|
|
195
196
|
export declare const AdminGetAttributesParams: z.ZodObject<{
|
|
196
197
|
[x: string]: any;
|
|
197
|
-
|
|
198
|
-
|
|
198
|
+
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
199
|
+
id: z.ZodOptional<z.ZodString>;
|
|
200
|
+
name: z.ZodOptional<z.ZodString>;
|
|
201
|
+
handle: z.ZodOptional<z.ZodString>;
|
|
202
|
+
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
204
|
+
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
205
|
+
$eq: any;
|
|
206
|
+
$ne: any;
|
|
207
|
+
$in: any;
|
|
208
|
+
$nin: any;
|
|
209
|
+
$like: any;
|
|
210
|
+
$ilike: any;
|
|
211
|
+
$re: any;
|
|
212
|
+
$contains: any;
|
|
213
|
+
$gt: any;
|
|
214
|
+
$gte: any;
|
|
215
|
+
$lt: any;
|
|
216
|
+
$lte: any;
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
|
+
$eq?: any;
|
|
219
|
+
$ne?: any;
|
|
220
|
+
$in?: any;
|
|
221
|
+
$nin?: any;
|
|
222
|
+
$like?: any;
|
|
223
|
+
$ilike?: any;
|
|
224
|
+
$re?: any;
|
|
225
|
+
$contains?: any;
|
|
226
|
+
$gt?: any;
|
|
227
|
+
$gte?: any;
|
|
228
|
+
$lt?: any;
|
|
229
|
+
$lte?: any;
|
|
230
|
+
}, {
|
|
231
|
+
$eq?: any;
|
|
232
|
+
$ne?: any;
|
|
233
|
+
$in?: any;
|
|
234
|
+
$nin?: any;
|
|
235
|
+
$like?: any;
|
|
236
|
+
$ilike?: any;
|
|
237
|
+
$re?: any;
|
|
238
|
+
$contains?: any;
|
|
239
|
+
$gt?: any;
|
|
240
|
+
$gte?: any;
|
|
241
|
+
$lt?: any;
|
|
242
|
+
$lte?: any;
|
|
243
|
+
}>]>>;
|
|
244
|
+
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
245
|
+
$eq: any;
|
|
246
|
+
$ne: any;
|
|
247
|
+
$in: any;
|
|
248
|
+
$nin: any;
|
|
249
|
+
$like: any;
|
|
250
|
+
$ilike: any;
|
|
251
|
+
$re: any;
|
|
252
|
+
$contains: any;
|
|
253
|
+
$gt: any;
|
|
254
|
+
$gte: any;
|
|
255
|
+
$lt: any;
|
|
256
|
+
$lte: any;
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
$eq?: any;
|
|
259
|
+
$ne?: any;
|
|
260
|
+
$in?: any;
|
|
261
|
+
$nin?: any;
|
|
262
|
+
$like?: any;
|
|
263
|
+
$ilike?: any;
|
|
264
|
+
$re?: any;
|
|
265
|
+
$contains?: any;
|
|
266
|
+
$gt?: any;
|
|
267
|
+
$gte?: any;
|
|
268
|
+
$lt?: any;
|
|
269
|
+
$lte?: any;
|
|
270
|
+
}, {
|
|
271
|
+
$eq?: any;
|
|
272
|
+
$ne?: any;
|
|
273
|
+
$in?: any;
|
|
274
|
+
$nin?: any;
|
|
275
|
+
$like?: any;
|
|
276
|
+
$ilike?: any;
|
|
277
|
+
$re?: any;
|
|
278
|
+
$contains?: any;
|
|
279
|
+
$gt?: any;
|
|
280
|
+
$gte?: any;
|
|
281
|
+
$lt?: any;
|
|
282
|
+
$lte?: any;
|
|
283
|
+
}>]>>;
|
|
284
|
+
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
285
|
+
$eq: any;
|
|
286
|
+
$ne: any;
|
|
287
|
+
$in: any;
|
|
288
|
+
$nin: any;
|
|
289
|
+
$like: any;
|
|
290
|
+
$ilike: any;
|
|
291
|
+
$re: any;
|
|
292
|
+
$contains: any;
|
|
293
|
+
$gt: any;
|
|
294
|
+
$gte: any;
|
|
295
|
+
$lt: any;
|
|
296
|
+
$lte: any;
|
|
297
|
+
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
$eq?: any;
|
|
299
|
+
$ne?: any;
|
|
300
|
+
$in?: any;
|
|
301
|
+
$nin?: any;
|
|
302
|
+
$like?: any;
|
|
303
|
+
$ilike?: any;
|
|
304
|
+
$re?: any;
|
|
305
|
+
$contains?: any;
|
|
306
|
+
$gt?: any;
|
|
307
|
+
$gte?: any;
|
|
308
|
+
$lt?: any;
|
|
309
|
+
$lte?: any;
|
|
310
|
+
}, {
|
|
311
|
+
$eq?: any;
|
|
312
|
+
$ne?: any;
|
|
313
|
+
$in?: any;
|
|
314
|
+
$nin?: any;
|
|
315
|
+
$like?: any;
|
|
316
|
+
$ilike?: any;
|
|
317
|
+
$re?: any;
|
|
318
|
+
$contains?: any;
|
|
319
|
+
$gt?: any;
|
|
320
|
+
$gte?: any;
|
|
321
|
+
$lt?: any;
|
|
322
|
+
$lte?: any;
|
|
323
|
+
}>]>>;
|
|
324
|
+
ui_component: z.ZodOptional<z.ZodNativeEnum<typeof AttributeUIComponent>>;
|
|
325
|
+
}, "strip", z.ZodTypeAny, {
|
|
326
|
+
id?: string | undefined;
|
|
327
|
+
created_at?: any;
|
|
328
|
+
updated_at?: any;
|
|
329
|
+
deleted_at?: any;
|
|
330
|
+
name?: string | undefined;
|
|
331
|
+
handle?: string | undefined;
|
|
332
|
+
is_filterable?: boolean | undefined;
|
|
333
|
+
ui_component?: AttributeUIComponent | undefined;
|
|
334
|
+
is_required?: boolean | undefined;
|
|
335
|
+
}, {
|
|
336
|
+
id?: string | undefined;
|
|
337
|
+
created_at?: any;
|
|
338
|
+
updated_at?: any;
|
|
339
|
+
deleted_at?: any;
|
|
340
|
+
name?: string | undefined;
|
|
341
|
+
handle?: string | undefined;
|
|
342
|
+
is_filterable?: boolean | undefined;
|
|
343
|
+
ui_component?: AttributeUIComponent | undefined;
|
|
344
|
+
is_required?: boolean | undefined;
|
|
345
|
+
}>, "many">>>;
|
|
346
|
+
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
347
|
+
id: z.ZodOptional<z.ZodString>;
|
|
348
|
+
name: z.ZodOptional<z.ZodString>;
|
|
349
|
+
handle: z.ZodOptional<z.ZodString>;
|
|
350
|
+
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
351
|
+
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
352
|
+
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
353
|
+
$eq: any;
|
|
354
|
+
$ne: any;
|
|
355
|
+
$in: any;
|
|
356
|
+
$nin: any;
|
|
357
|
+
$like: any;
|
|
358
|
+
$ilike: any;
|
|
359
|
+
$re: any;
|
|
360
|
+
$contains: any;
|
|
361
|
+
$gt: any;
|
|
362
|
+
$gte: any;
|
|
363
|
+
$lt: any;
|
|
364
|
+
$lte: any;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
$eq?: any;
|
|
367
|
+
$ne?: any;
|
|
368
|
+
$in?: any;
|
|
369
|
+
$nin?: any;
|
|
370
|
+
$like?: any;
|
|
371
|
+
$ilike?: any;
|
|
372
|
+
$re?: any;
|
|
373
|
+
$contains?: any;
|
|
374
|
+
$gt?: any;
|
|
375
|
+
$gte?: any;
|
|
376
|
+
$lt?: any;
|
|
377
|
+
$lte?: any;
|
|
378
|
+
}, {
|
|
379
|
+
$eq?: any;
|
|
380
|
+
$ne?: any;
|
|
381
|
+
$in?: any;
|
|
382
|
+
$nin?: any;
|
|
383
|
+
$like?: any;
|
|
384
|
+
$ilike?: any;
|
|
385
|
+
$re?: any;
|
|
386
|
+
$contains?: any;
|
|
387
|
+
$gt?: any;
|
|
388
|
+
$gte?: any;
|
|
389
|
+
$lt?: any;
|
|
390
|
+
$lte?: any;
|
|
391
|
+
}>]>>;
|
|
392
|
+
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
393
|
+
$eq: any;
|
|
394
|
+
$ne: any;
|
|
395
|
+
$in: any;
|
|
396
|
+
$nin: any;
|
|
397
|
+
$like: any;
|
|
398
|
+
$ilike: any;
|
|
399
|
+
$re: any;
|
|
400
|
+
$contains: any;
|
|
401
|
+
$gt: any;
|
|
402
|
+
$gte: any;
|
|
403
|
+
$lt: any;
|
|
404
|
+
$lte: any;
|
|
405
|
+
}, "strip", z.ZodTypeAny, {
|
|
406
|
+
$eq?: any;
|
|
407
|
+
$ne?: any;
|
|
408
|
+
$in?: any;
|
|
409
|
+
$nin?: any;
|
|
410
|
+
$like?: any;
|
|
411
|
+
$ilike?: any;
|
|
412
|
+
$re?: any;
|
|
413
|
+
$contains?: any;
|
|
414
|
+
$gt?: any;
|
|
415
|
+
$gte?: any;
|
|
416
|
+
$lt?: any;
|
|
417
|
+
$lte?: any;
|
|
418
|
+
}, {
|
|
419
|
+
$eq?: any;
|
|
420
|
+
$ne?: any;
|
|
421
|
+
$in?: any;
|
|
422
|
+
$nin?: any;
|
|
423
|
+
$like?: any;
|
|
424
|
+
$ilike?: any;
|
|
425
|
+
$re?: any;
|
|
426
|
+
$contains?: any;
|
|
427
|
+
$gt?: any;
|
|
428
|
+
$gte?: any;
|
|
429
|
+
$lt?: any;
|
|
430
|
+
$lte?: any;
|
|
431
|
+
}>]>>;
|
|
432
|
+
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
433
|
+
$eq: any;
|
|
434
|
+
$ne: any;
|
|
435
|
+
$in: any;
|
|
436
|
+
$nin: any;
|
|
437
|
+
$like: any;
|
|
438
|
+
$ilike: any;
|
|
439
|
+
$re: any;
|
|
440
|
+
$contains: any;
|
|
441
|
+
$gt: any;
|
|
442
|
+
$gte: any;
|
|
443
|
+
$lt: any;
|
|
444
|
+
$lte: any;
|
|
445
|
+
}, "strip", z.ZodTypeAny, {
|
|
446
|
+
$eq?: any;
|
|
447
|
+
$ne?: any;
|
|
448
|
+
$in?: any;
|
|
449
|
+
$nin?: any;
|
|
450
|
+
$like?: any;
|
|
451
|
+
$ilike?: any;
|
|
452
|
+
$re?: any;
|
|
453
|
+
$contains?: any;
|
|
454
|
+
$gt?: any;
|
|
455
|
+
$gte?: any;
|
|
456
|
+
$lt?: any;
|
|
457
|
+
$lte?: any;
|
|
458
|
+
}, {
|
|
459
|
+
$eq?: any;
|
|
460
|
+
$ne?: any;
|
|
461
|
+
$in?: any;
|
|
462
|
+
$nin?: any;
|
|
463
|
+
$like?: any;
|
|
464
|
+
$ilike?: any;
|
|
465
|
+
$re?: any;
|
|
466
|
+
$contains?: any;
|
|
467
|
+
$gt?: any;
|
|
468
|
+
$gte?: any;
|
|
469
|
+
$lt?: any;
|
|
470
|
+
$lte?: any;
|
|
471
|
+
}>]>>;
|
|
472
|
+
ui_component: z.ZodOptional<z.ZodNativeEnum<typeof AttributeUIComponent>>;
|
|
473
|
+
}, "strip", z.ZodTypeAny, {
|
|
474
|
+
id?: string | undefined;
|
|
475
|
+
created_at?: any;
|
|
476
|
+
updated_at?: any;
|
|
477
|
+
deleted_at?: any;
|
|
478
|
+
name?: string | undefined;
|
|
479
|
+
handle?: string | undefined;
|
|
480
|
+
is_filterable?: boolean | undefined;
|
|
481
|
+
ui_component?: AttributeUIComponent | undefined;
|
|
482
|
+
is_required?: boolean | undefined;
|
|
483
|
+
}, {
|
|
484
|
+
id?: string | undefined;
|
|
485
|
+
created_at?: any;
|
|
486
|
+
updated_at?: any;
|
|
487
|
+
deleted_at?: any;
|
|
488
|
+
name?: string | undefined;
|
|
489
|
+
handle?: string | undefined;
|
|
490
|
+
is_filterable?: boolean | undefined;
|
|
491
|
+
ui_component?: AttributeUIComponent | undefined;
|
|
492
|
+
is_required?: boolean | undefined;
|
|
493
|
+
}>, "many">>>;
|
|
494
|
+
} & {
|
|
199
495
|
id: z.ZodOptional<z.ZodString>;
|
|
200
496
|
name: z.ZodOptional<z.ZodString>;
|
|
201
497
|
handle: z.ZodOptional<z.ZodString>;
|
|
@@ -324,30 +620,30 @@ export declare const AdminGetAttributesParams: z.ZodObject<{
|
|
|
324
620
|
ui_component: z.ZodOptional<z.ZodNativeEnum<typeof AttributeUIComponent>>;
|
|
325
621
|
}, "strip", z.ZodTypeAny, {
|
|
326
622
|
[x: string]: any;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
id?:
|
|
330
|
-
name?:
|
|
331
|
-
handle?:
|
|
332
|
-
is_required?:
|
|
333
|
-
is_filterable?:
|
|
334
|
-
created_at?:
|
|
335
|
-
updated_at?:
|
|
336
|
-
deleted_at?:
|
|
337
|
-
ui_component?:
|
|
623
|
+
$and?: unknown;
|
|
624
|
+
$or?: unknown;
|
|
625
|
+
id?: unknown;
|
|
626
|
+
name?: unknown;
|
|
627
|
+
handle?: unknown;
|
|
628
|
+
is_required?: unknown;
|
|
629
|
+
is_filterable?: unknown;
|
|
630
|
+
created_at?: unknown;
|
|
631
|
+
updated_at?: unknown;
|
|
632
|
+
deleted_at?: unknown;
|
|
633
|
+
ui_component?: unknown;
|
|
338
634
|
}, {
|
|
339
635
|
[x: string]: any;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
id?:
|
|
343
|
-
name?:
|
|
344
|
-
handle?:
|
|
345
|
-
is_required?:
|
|
346
|
-
is_filterable?:
|
|
347
|
-
created_at?:
|
|
348
|
-
updated_at?:
|
|
349
|
-
deleted_at?:
|
|
350
|
-
ui_component?:
|
|
636
|
+
$and?: unknown;
|
|
637
|
+
$or?: unknown;
|
|
638
|
+
id?: unknown;
|
|
639
|
+
name?: unknown;
|
|
640
|
+
handle?: unknown;
|
|
641
|
+
is_required?: unknown;
|
|
642
|
+
is_filterable?: unknown;
|
|
643
|
+
created_at?: unknown;
|
|
644
|
+
updated_at?: unknown;
|
|
645
|
+
deleted_at?: unknown;
|
|
646
|
+
ui_component?: unknown;
|
|
351
647
|
}>;
|
|
352
648
|
export type AdminCreateAttributeValueType = z.infer<typeof AdminCreateAttributeValue>;
|
|
353
649
|
export declare const AdminCreateAttributeValue: z.ZodObject<{
|
|
@@ -370,15 +666,15 @@ export declare const AdminUpdateAttributeValue: z.ZodObject<{
|
|
|
370
666
|
rank: z.ZodOptional<z.ZodNumber>;
|
|
371
667
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
372
668
|
}, "strip", z.ZodTypeAny, {
|
|
373
|
-
id?: string | undefined;
|
|
374
669
|
value?: string | undefined;
|
|
375
|
-
|
|
670
|
+
id?: string | undefined;
|
|
376
671
|
metadata?: Record<string, unknown> | undefined;
|
|
672
|
+
rank?: number | undefined;
|
|
377
673
|
}, {
|
|
378
|
-
id?: string | undefined;
|
|
379
674
|
value?: string | undefined;
|
|
380
|
-
|
|
675
|
+
id?: string | undefined;
|
|
381
676
|
metadata?: Record<string, unknown> | undefined;
|
|
677
|
+
rank?: number | undefined;
|
|
382
678
|
}>;
|
|
383
679
|
export type AdminUpdateAttributeType = z.infer<typeof AdminUpdateAttribute>;
|
|
384
680
|
export declare const AdminUpdateAttribute: z.ZodObject<{
|
|
@@ -396,45 +692,45 @@ export declare const AdminUpdateAttribute: z.ZodObject<{
|
|
|
396
692
|
rank: z.ZodOptional<z.ZodNumber>;
|
|
397
693
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
398
694
|
}, "strip", z.ZodTypeAny, {
|
|
399
|
-
id?: string | undefined;
|
|
400
695
|
value?: string | undefined;
|
|
401
|
-
|
|
696
|
+
id?: string | undefined;
|
|
402
697
|
metadata?: Record<string, unknown> | undefined;
|
|
698
|
+
rank?: number | undefined;
|
|
403
699
|
}, {
|
|
404
|
-
id?: string | undefined;
|
|
405
700
|
value?: string | undefined;
|
|
406
|
-
|
|
701
|
+
id?: string | undefined;
|
|
407
702
|
metadata?: Record<string, unknown> | undefined;
|
|
703
|
+
rank?: number | undefined;
|
|
408
704
|
}>, "many">>;
|
|
409
705
|
}, "strict", z.ZodTypeAny, {
|
|
410
706
|
name?: string | undefined;
|
|
411
|
-
description?: string | undefined;
|
|
412
707
|
handle?: string | undefined;
|
|
413
|
-
|
|
414
|
-
is_required?: boolean | undefined;
|
|
708
|
+
description?: string | undefined;
|
|
415
709
|
metadata?: Record<string, unknown> | undefined;
|
|
710
|
+
is_filterable?: boolean | undefined;
|
|
416
711
|
ui_component?: AttributeUIComponent | undefined;
|
|
712
|
+
is_required?: boolean | undefined;
|
|
417
713
|
product_category_ids?: string[] | undefined;
|
|
418
714
|
possible_values?: {
|
|
419
|
-
id?: string | undefined;
|
|
420
715
|
value?: string | undefined;
|
|
421
|
-
|
|
716
|
+
id?: string | undefined;
|
|
422
717
|
metadata?: Record<string, unknown> | undefined;
|
|
718
|
+
rank?: number | undefined;
|
|
423
719
|
}[] | undefined;
|
|
424
720
|
}, {
|
|
425
721
|
name?: string | undefined;
|
|
426
|
-
description?: string | undefined;
|
|
427
722
|
handle?: string | undefined;
|
|
428
|
-
|
|
429
|
-
is_required?: boolean | undefined;
|
|
723
|
+
description?: string | undefined;
|
|
430
724
|
metadata?: Record<string, unknown> | undefined;
|
|
725
|
+
is_filterable?: boolean | undefined;
|
|
431
726
|
ui_component?: AttributeUIComponent | undefined;
|
|
727
|
+
is_required?: boolean | undefined;
|
|
432
728
|
product_category_ids?: string[] | undefined;
|
|
433
729
|
possible_values?: {
|
|
434
|
-
id?: string | undefined;
|
|
435
730
|
value?: string | undefined;
|
|
436
|
-
|
|
731
|
+
id?: string | undefined;
|
|
437
732
|
metadata?: Record<string, unknown> | undefined;
|
|
733
|
+
rank?: number | undefined;
|
|
438
734
|
}[] | undefined;
|
|
439
735
|
}>;
|
|
440
736
|
export type AdminCreateAttributeType = z.infer<typeof CreateAttribute>;
|
|
@@ -463,31 +759,31 @@ export declare const CreateAttribute: z.ZodObject<{
|
|
|
463
759
|
}, "strip", z.ZodTypeAny, {
|
|
464
760
|
name: string;
|
|
465
761
|
ui_component: AttributeUIComponent;
|
|
762
|
+
handle?: string | undefined;
|
|
466
763
|
description?: string | undefined;
|
|
764
|
+
metadata?: Record<string, unknown> | undefined;
|
|
467
765
|
is_filterable?: boolean | undefined;
|
|
468
766
|
is_required?: boolean | undefined;
|
|
469
|
-
|
|
470
|
-
metadata?: Record<string, unknown> | undefined;
|
|
767
|
+
product_category_ids?: string[] | undefined;
|
|
471
768
|
possible_values?: {
|
|
472
769
|
value: string;
|
|
473
770
|
rank: number;
|
|
474
771
|
metadata?: Record<string, unknown> | undefined;
|
|
475
772
|
}[] | undefined;
|
|
476
|
-
product_category_ids?: string[] | undefined;
|
|
477
773
|
}, {
|
|
478
774
|
name: string;
|
|
775
|
+
handle?: string | undefined;
|
|
479
776
|
description?: string | undefined;
|
|
777
|
+
metadata?: Record<string, unknown> | undefined;
|
|
480
778
|
is_filterable?: boolean | undefined;
|
|
481
|
-
is_required?: boolean | undefined;
|
|
482
779
|
ui_component?: AttributeUIComponent | undefined;
|
|
483
|
-
|
|
484
|
-
|
|
780
|
+
is_required?: boolean | undefined;
|
|
781
|
+
product_category_ids?: string[] | undefined;
|
|
485
782
|
possible_values?: {
|
|
486
783
|
value: string;
|
|
487
784
|
rank: number;
|
|
488
785
|
metadata?: Record<string, unknown> | undefined;
|
|
489
786
|
}[] | undefined;
|
|
490
|
-
product_category_ids?: string[] | undefined;
|
|
491
787
|
}>;
|
|
492
788
|
export declare const AdminCreateAttribute: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
|
493
789
|
[x: string]: any;
|
|
@@ -3,6 +3,7 @@ import { ConfigurationRuleType } from '@mercurjs/framework';
|
|
|
3
3
|
export type AdminGetRulesParamsType = z.infer<typeof AdminGetRulesParams>;
|
|
4
4
|
export declare const AdminGetRulesParams: z.ZodObject<{
|
|
5
5
|
fields: z.ZodOptional<z.ZodString>;
|
|
6
|
+
} & {
|
|
6
7
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
7
8
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
8
9
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -10,14 +11,14 @@ export declare const AdminGetRulesParams: z.ZodObject<{
|
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
11
12
|
offset: number;
|
|
12
13
|
limit: number;
|
|
13
|
-
fields?: string | undefined;
|
|
14
14
|
order?: string | undefined;
|
|
15
|
+
fields?: string | undefined;
|
|
15
16
|
with_deleted?: boolean | undefined;
|
|
16
17
|
}, {
|
|
18
|
+
order?: string | undefined;
|
|
17
19
|
fields?: string | undefined;
|
|
18
20
|
offset?: unknown;
|
|
19
21
|
limit?: unknown;
|
|
20
|
-
order?: string | undefined;
|
|
21
22
|
with_deleted?: unknown;
|
|
22
23
|
}>;
|
|
23
24
|
/**
|
|
@@ -55,7 +55,13 @@ const http_1 = require("@medusajs/framework/http");
|
|
|
55
55
|
* - cookie_auth: []
|
|
56
56
|
*/
|
|
57
57
|
const GET = async (req, res) => {
|
|
58
|
-
const {
|
|
58
|
+
const { data: notifications, metadata } = await (0, http_1.refetchEntities)({
|
|
59
|
+
entity: 'notification',
|
|
60
|
+
idOrFilter: { ...req.filterableFields, channel: 'feed' },
|
|
61
|
+
scope: req.scope,
|
|
62
|
+
fields: req.queryConfig.fields,
|
|
63
|
+
pagination: req.queryConfig.pagination
|
|
64
|
+
});
|
|
59
65
|
res.json({
|
|
60
66
|
notifications,
|
|
61
67
|
count: metadata.count,
|
|
@@ -64,4 +70,4 @@ const GET = async (req, res) => {
|
|
|
64
70
|
});
|
|
65
71
|
};
|
|
66
72
|
exports.GET = GET;
|
|
67
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
73
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL2FkbWluL25vdGlmaWNhdGlvbnMvcm91dGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsbURBSWlDO0FBR2pDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FtREc7QUFDSSxNQUFNLEdBQUcsR0FBRyxLQUFLLEVBQ3RCLEdBQXNFLEVBQ3RFLEdBQTRELEVBQzVELEVBQUU7SUFDRixNQUFNLEVBQUUsSUFBSSxFQUFFLGFBQWEsRUFBRSxRQUFRLEVBQUUsR0FBRyxNQUFNLElBQUEsc0JBQWUsRUFBQztRQUM5RCxNQUFNLEVBQUUsY0FBYztRQUN0QixVQUFVLEVBQUUsRUFBRSxHQUFHLEdBQUcsQ0FBQyxnQkFBZ0IsRUFBRSxPQUFPLEVBQUUsTUFBTSxFQUFFO1FBQ3hELEtBQUssRUFBRSxHQUFHLENBQUMsS0FBSztRQUNoQixNQUFNLEVBQUUsR0FBRyxDQUFDLFdBQVcsQ0FBQyxNQUFNO1FBQzlCLFVBQVUsRUFBRSxHQUFHLENBQUMsV0FBVyxDQUFDLFVBQVU7S0FDdkMsQ0FBQyxDQUFBO0lBRUYsR0FBRyxDQUFDLElBQUksQ0FBQztRQUNQLGFBQWE7UUFDYixLQUFLLEVBQUUsUUFBUSxDQUFDLEtBQUs7UUFDckIsTUFBTSxFQUFFLFFBQVEsQ0FBQyxJQUFJO1FBQ3JCLEtBQUssRUFBRSxRQUFRLENBQUMsSUFBSTtLQUNyQixDQUFDLENBQUE7QUFDSixDQUFDLENBQUE7QUFsQlksUUFBQSxHQUFHLE9Ba0JmIn0=
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export type AdminOrderSetParamsType = z.infer<typeof AdminOrderSetParams>;
|
|
3
3
|
export declare const AdminOrderSetParams: z.ZodObject<{
|
|
4
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
5
|
+
} & {
|
|
4
6
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
5
7
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
6
|
-
fields: z.ZodOptional<z.ZodString>;
|
|
7
8
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8
9
|
with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
10
|
+
} & {
|
|
9
11
|
order_id: z.ZodOptional<z.ZodString>;
|
|
10
12
|
}, "strip", z.ZodTypeAny, {
|
|
11
13
|
offset: number;
|
|
12
14
|
limit: number;
|
|
15
|
+
order_id?: string | undefined;
|
|
13
16
|
fields?: string | undefined;
|
|
14
17
|
order?: string | undefined;
|
|
15
18
|
with_deleted?: boolean | undefined;
|
|
16
|
-
order_id?: string | undefined;
|
|
17
19
|
}, {
|
|
18
20
|
offset?: unknown;
|
|
19
21
|
limit?: unknown;
|
|
22
|
+
order_id?: string | undefined;
|
|
20
23
|
fields?: string | undefined;
|
|
21
24
|
order?: string | undefined;
|
|
22
25
|
with_deleted?: unknown;
|
|
23
|
-
order_id?: string | undefined;
|
|
24
26
|
}>;
|