@medusajs/medusa 2.8.8-snapshot-20250714090316 → 2.8.8-snapshot-20250714120129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/admin/api-keys/validators.d.ts +27 -13
- package/dist/api/admin/api-keys/validators.d.ts.map +1 -1
- package/dist/api/admin/campaigns/validators.d.ts +37 -23
- package/dist/api/admin/campaigns/validators.d.ts.map +1 -1
- package/dist/api/admin/claims/validators.d.ts +61 -64
- package/dist/api/admin/claims/validators.d.ts.map +1 -1
- package/dist/api/admin/collections/validators.d.ts +28 -14
- package/dist/api/admin/collections/validators.d.ts.map +1 -1
- package/dist/api/admin/currencies/validators.d.ts +21 -7
- package/dist/api/admin/currencies/validators.d.ts.map +1 -1
- package/dist/api/admin/customer-groups/validators.d.ts +59 -45
- package/dist/api/admin/customer-groups/validators.d.ts.map +1 -1
- package/dist/api/admin/customers/validators.d.ts +56 -44
- package/dist/api/admin/customers/validators.d.ts.map +1 -1
- package/dist/api/admin/draft-orders/validators.d.ts +154 -128
- package/dist/api/admin/draft-orders/validators.d.ts.map +1 -1
- package/dist/api/admin/exchanges/validators.d.ts +49 -52
- package/dist/api/admin/exchanges/validators.d.ts.map +1 -1
- package/dist/api/admin/fulfillment-providers/validators.d.ts +7 -9
- package/dist/api/admin/fulfillment-providers/validators.d.ts.map +1 -1
- package/dist/api/admin/fulfillment-sets/validators/geo-zone.d.ts +4 -8
- package/dist/api/admin/fulfillment-sets/validators/geo-zone.d.ts.map +1 -1
- package/dist/api/admin/fulfillment-sets/validators.d.ts +30 -42
- package/dist/api/admin/fulfillment-sets/validators.d.ts.map +1 -1
- package/dist/api/admin/fulfillments/validators.d.ts +6 -6
- package/dist/api/admin/inventory-items/validators.d.ts +96 -68
- package/dist/api/admin/inventory-items/validators.d.ts.map +1 -1
- package/dist/api/admin/invites/validators.d.ts +21 -8
- package/dist/api/admin/invites/validators.d.ts.map +1 -1
- package/dist/api/admin/notifications/validators.d.ts +21 -7
- package/dist/api/admin/notifications/validators.d.ts.map +1 -1
- package/dist/api/admin/order-edits/validators.d.ts +22 -22
- package/dist/api/admin/orders/validators.d.ts +46 -51
- package/dist/api/admin/orders/validators.d.ts.map +1 -1
- package/dist/api/admin/payments/validators.d.ts +42 -14
- package/dist/api/admin/payments/validators.d.ts.map +1 -1
- package/dist/api/admin/price-lists/validators.d.ts +48 -34
- package/dist/api/admin/price-lists/validators.d.ts.map +1 -1
- package/dist/api/admin/price-preferences/validators.d.ts +25 -11
- package/dist/api/admin/price-preferences/validators.d.ts.map +1 -1
- package/dist/api/admin/product-categories/validators.d.ts +42 -29
- package/dist/api/admin/product-categories/validators.d.ts.map +1 -1
- package/dist/api/admin/product-tags/validators.d.ts +21 -7
- package/dist/api/admin/product-tags/validators.d.ts.map +1 -1
- package/dist/api/admin/product-types/validators.d.ts +21 -7
- package/dist/api/admin/product-types/validators.d.ts.map +1 -1
- package/dist/api/admin/product-variants/validators.d.ts +25 -11
- package/dist/api/admin/product-variants/validators.d.ts.map +1 -1
- package/dist/api/admin/products/validators.d.ts +520 -476
- package/dist/api/admin/products/validators.d.ts.map +1 -1
- package/dist/api/admin/products/validators.js.map +1 -1
- package/dist/api/admin/promotions/validators.d.ts +119 -108
- package/dist/api/admin/promotions/validators.d.ts.map +1 -1
- package/dist/api/admin/refund-reasons/validators.d.ts +10 -12
- package/dist/api/admin/refund-reasons/validators.d.ts.map +1 -1
- package/dist/api/admin/regions/validators.d.ts +35 -21
- package/dist/api/admin/regions/validators.d.ts.map +1 -1
- package/dist/api/admin/reservations/validators.d.ts +23 -25
- package/dist/api/admin/reservations/validators.d.ts.map +1 -1
- package/dist/api/admin/return-reasons/validators.d.ts +39 -26
- package/dist/api/admin/return-reasons/validators.d.ts.map +1 -1
- package/dist/api/admin/returns/validators.d.ts +45 -48
- package/dist/api/admin/returns/validators.d.ts.map +1 -1
- package/dist/api/admin/sales-channels/validators.d.ts +20 -29
- package/dist/api/admin/sales-channels/validators.d.ts.map +1 -1
- package/dist/api/admin/shipping-options/validators.d.ts +67 -69
- package/dist/api/admin/shipping-options/validators.d.ts.map +1 -1
- package/dist/api/admin/shipping-profiles/validators.d.ts +25 -11
- package/dist/api/admin/shipping-profiles/validators.d.ts.map +1 -1
- package/dist/api/admin/stock-locations/validators.d.ts +50 -59
- package/dist/api/admin/stock-locations/validators.d.ts.map +1 -1
- package/dist/api/admin/stores/validators.d.ts +32 -18
- package/dist/api/admin/stores/validators.d.ts.map +1 -1
- package/dist/api/admin/tax-providers/validators.d.ts +19 -5
- package/dist/api/admin/tax-providers/validators.d.ts.map +1 -1
- package/dist/api/admin/tax-rates/validators.d.ts +36 -22
- package/dist/api/admin/tax-rates/validators.d.ts.map +1 -1
- package/dist/api/admin/tax-regions/validators.d.ts +36 -22
- package/dist/api/admin/tax-regions/validators.d.ts.map +1 -1
- package/dist/api/admin/users/validators.d.ts +13 -15
- package/dist/api/admin/users/validators.d.ts.map +1 -1
- package/dist/api/admin/workflows-executions/validators.d.ts +5 -7
- package/dist/api/admin/workflows-executions/validators.d.ts.map +1 -1
- package/dist/api/store/carts/validators.d.ts +44 -44
- package/dist/api/store/collections/validators.d.ts +24 -10
- package/dist/api/store/collections/validators.d.ts.map +1 -1
- package/dist/api/store/currencies/validators.d.ts +21 -7
- package/dist/api/store/currencies/validators.d.ts.map +1 -1
- package/dist/api/store/customers/validators.d.ts +13 -17
- package/dist/api/store/customers/validators.d.ts.map +1 -1
- package/dist/api/store/orders/validators.d.ts +19 -5
- package/dist/api/store/orders/validators.d.ts.map +1 -1
- package/dist/api/store/payment-providers/validators.d.ts +1 -3
- package/dist/api/store/payment-providers/validators.d.ts.map +1 -1
- package/dist/api/store/product-categories/validators.d.ts +27 -14
- package/dist/api/store/product-categories/validators.d.ts.map +1 -1
- package/dist/api/store/product-tags/validators.d.ts +21 -7
- package/dist/api/store/product-tags/validators.d.ts.map +1 -1
- package/dist/api/store/product-types/validators.d.ts +21 -7
- package/dist/api/store/product-types/validators.d.ts.map +1 -1
- package/dist/api/store/products/validators.d.ts +71 -40
- package/dist/api/store/products/validators.d.ts.map +1 -1
- package/dist/api/store/products/validators.js.map +1 -1
- package/dist/api/store/regions/validators.d.ts +23 -9
- package/dist/api/store/regions/validators.d.ts.map +1 -1
- package/dist/api/store/return-reasons/validators.d.ts +2 -3
- package/dist/api/store/return-reasons/validators.d.ts.map +1 -1
- package/dist/api/store/returns/validators.d.ts +21 -7
- package/dist/api/store/returns/validators.d.ts.map +1 -1
- package/dist/api/store/shipping-options/validators.d.ts +19 -5
- package/dist/api/store/shipping-options/validators.d.ts.map +1 -1
- package/dist/api/utils/common-validators/common.d.ts +20 -7
- package/dist/api/utils/common-validators/common.d.ts.map +1 -1
- package/dist/api/utils/common-validators/products/index.d.ts +16 -17
- package/dist/api/utils/common-validators/products/index.d.ts.map +1 -1
- package/dist/api/utils/common-validators/products/index.js +14 -14
- package/dist/api/utils/common-validators/products/index.js.map +1 -1
- package/dist/api/utils/validators.d.ts +4 -5
- package/dist/api/utils/validators.d.ts.map +1 -1
- package/package.json +50 -50
@@ -179,29 +179,31 @@ export declare const AdminGetPromotionsParamsFields: z.ZodObject<{
|
|
179
179
|
$lte?: any;
|
180
180
|
}>]>>;
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
182
|
-
created_at?: any;
|
183
|
-
updated_at?: any;
|
184
|
-
deleted_at?: any;
|
185
|
-
code?: any;
|
186
182
|
q?: string | undefined;
|
183
|
+
code?: any;
|
187
184
|
campaign_id?: string | string[] | undefined;
|
188
185
|
application_method?: {
|
189
186
|
currency_code?: string | string[] | undefined;
|
190
187
|
} | undefined;
|
191
|
-
}, {
|
192
188
|
created_at?: any;
|
193
189
|
updated_at?: any;
|
194
190
|
deleted_at?: any;
|
195
|
-
|
191
|
+
}, {
|
196
192
|
q?: string | undefined;
|
193
|
+
code?: any;
|
197
194
|
campaign_id?: string | string[] | undefined;
|
198
195
|
application_method?: {
|
199
196
|
currency_code?: string | string[] | undefined;
|
200
197
|
} | undefined;
|
198
|
+
created_at?: any;
|
199
|
+
updated_at?: any;
|
200
|
+
deleted_at?: any;
|
201
201
|
}>;
|
202
202
|
export type AdminGetPromotionsParamsType = z.infer<typeof AdminGetPromotionsParams>;
|
203
|
-
export declare const AdminGetPromotionsParams: z.ZodObject<{
|
203
|
+
export declare const AdminGetPromotionsParams: z.ZodObject<{
|
204
204
|
[x: string]: any;
|
205
|
+
[x: number]: any;
|
206
|
+
[x: symbol]: any;
|
205
207
|
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
206
208
|
[x: string]: any;
|
207
209
|
}, {
|
@@ -214,12 +216,24 @@ export declare const AdminGetPromotionsParams: z.ZodObject<{} & {
|
|
214
216
|
}>, "many">>>;
|
215
217
|
}, "strict", z.ZodTypeAny, {
|
216
218
|
[x: string]: any;
|
217
|
-
|
218
|
-
|
219
|
+
[x: number]: any;
|
220
|
+
[x: symbol]: any;
|
221
|
+
$and?: {
|
222
|
+
[x: string]: any;
|
223
|
+
}[] | undefined;
|
224
|
+
$or?: {
|
225
|
+
[x: string]: any;
|
226
|
+
}[] | undefined;
|
219
227
|
}, {
|
220
228
|
[x: string]: any;
|
221
|
-
|
222
|
-
|
229
|
+
[x: number]: any;
|
230
|
+
[x: symbol]: any;
|
231
|
+
$and?: {
|
232
|
+
[x: string]: any;
|
233
|
+
}[] | undefined;
|
234
|
+
$or?: {
|
235
|
+
[x: string]: any;
|
236
|
+
}[] | undefined;
|
223
237
|
}>;
|
224
238
|
export type AdminGetPromotionRuleParamsType = z.infer<typeof AdminGetPromotionRuleParams>;
|
225
239
|
export declare const AdminGetPromotionRuleParams: z.ZodObject<{
|
@@ -235,7 +249,6 @@ export declare const AdminGetPromotionRuleParams: z.ZodObject<{
|
|
235
249
|
export type AdminGetPromotionRuleTypeParamsType = z.infer<typeof AdminGetPromotionRuleTypeParams>;
|
236
250
|
export declare const AdminGetPromotionRuleTypeParams: z.ZodObject<{
|
237
251
|
fields: z.ZodOptional<z.ZodString>;
|
238
|
-
} & {
|
239
252
|
promotion_type: z.ZodOptional<z.ZodString>;
|
240
253
|
application_method_type: z.ZodOptional<z.ZodString>;
|
241
254
|
}, "strip", z.ZodTypeAny, {
|
@@ -249,31 +262,29 @@ export declare const AdminGetPromotionRuleTypeParams: z.ZodObject<{
|
|
249
262
|
}>;
|
250
263
|
export type AdminGetPromotionsRuleValueParamsType = z.infer<typeof AdminGetPromotionsRuleValueParams>;
|
251
264
|
export declare const AdminGetPromotionsRuleValueParams: z.ZodObject<{
|
265
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
252
266
|
fields: z.ZodOptional<z.ZodString>;
|
253
|
-
} & {
|
254
267
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
255
268
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
256
|
-
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
257
269
|
with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
258
|
-
} & {
|
259
270
|
q: z.ZodOptional<z.ZodString>;
|
260
271
|
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
261
272
|
}, "strip", z.ZodTypeAny, {
|
262
273
|
offset: number;
|
263
274
|
limit: number;
|
264
275
|
order?: string | undefined;
|
265
|
-
value?: string | string[] | undefined;
|
266
276
|
fields?: string | undefined;
|
267
277
|
with_deleted?: boolean | undefined;
|
268
278
|
q?: string | undefined;
|
279
|
+
value?: string | string[] | undefined;
|
269
280
|
}, {
|
270
281
|
order?: string | undefined;
|
271
|
-
value?: string | string[] | undefined;
|
272
282
|
fields?: string | undefined;
|
273
283
|
offset?: unknown;
|
274
284
|
limit?: unknown;
|
275
285
|
with_deleted?: unknown;
|
276
286
|
q?: string | undefined;
|
287
|
+
value?: string | string[] | undefined;
|
277
288
|
}>;
|
278
289
|
export type AdminCreatePromotionRuleType = z.infer<typeof AdminCreatePromotionRule>;
|
279
290
|
export declare const AdminCreatePromotionRule: z.ZodObject<{
|
@@ -282,12 +293,12 @@ export declare const AdminCreatePromotionRule: z.ZodObject<{
|
|
282
293
|
attribute: z.ZodString;
|
283
294
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
284
295
|
}, "strict", z.ZodTypeAny, {
|
285
|
-
values: string | string[];
|
296
|
+
values: (string | string[]) & (string | string[] | undefined);
|
286
297
|
attribute: string;
|
287
298
|
operator: PromotionRuleOperator;
|
288
299
|
description?: string | null | undefined;
|
289
300
|
}, {
|
290
|
-
values: string | string[];
|
301
|
+
values: (string | string[]) & (string | string[] | undefined);
|
291
302
|
attribute: string;
|
292
303
|
operator: PromotionRuleOperator;
|
293
304
|
description?: string | null | undefined;
|
@@ -300,17 +311,17 @@ export declare const AdminUpdatePromotionRule: z.ZodObject<{
|
|
300
311
|
attribute: z.ZodOptional<z.ZodString>;
|
301
312
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
302
313
|
}, "strict", z.ZodTypeAny, {
|
303
|
-
values: string | string[];
|
314
|
+
values: (string | string[]) & (string | string[] | undefined);
|
304
315
|
id: string;
|
316
|
+
operator?: PromotionRuleOperator | undefined;
|
305
317
|
description?: string | null | undefined;
|
306
318
|
attribute?: string | undefined;
|
307
|
-
operator?: PromotionRuleOperator | undefined;
|
308
319
|
}, {
|
309
|
-
values: string | string[];
|
320
|
+
values: (string | string[]) & (string | string[] | undefined);
|
310
321
|
id: string;
|
322
|
+
operator?: PromotionRuleOperator | undefined;
|
311
323
|
description?: string | null | undefined;
|
312
324
|
attribute?: string | undefined;
|
313
|
-
operator?: PromotionRuleOperator | undefined;
|
314
325
|
}>;
|
315
326
|
export type AdminCreateApplicationMethodType = z.infer<typeof AdminCreateApplicationMethod>;
|
316
327
|
export declare const AdminCreateApplicationMethod: z.ZodObject<{
|
@@ -327,12 +338,12 @@ export declare const AdminCreateApplicationMethod: z.ZodObject<{
|
|
327
338
|
attribute: z.ZodString;
|
328
339
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
329
340
|
}, "strict", z.ZodTypeAny, {
|
330
|
-
values: string | string[];
|
341
|
+
values: (string | string[]) & (string | string[] | undefined);
|
331
342
|
attribute: string;
|
332
343
|
operator: PromotionRuleOperator;
|
333
344
|
description?: string | null | undefined;
|
334
345
|
}, {
|
335
|
-
values: string | string[];
|
346
|
+
values: (string | string[]) & (string | string[] | undefined);
|
336
347
|
attribute: string;
|
337
348
|
operator: PromotionRuleOperator;
|
338
349
|
description?: string | null | undefined;
|
@@ -343,12 +354,12 @@ export declare const AdminCreateApplicationMethod: z.ZodObject<{
|
|
343
354
|
attribute: z.ZodString;
|
344
355
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
345
356
|
}, "strict", z.ZodTypeAny, {
|
346
|
-
values: string | string[];
|
357
|
+
values: (string | string[]) & (string | string[] | undefined);
|
347
358
|
attribute: string;
|
348
359
|
operator: PromotionRuleOperator;
|
349
360
|
description?: string | null | undefined;
|
350
361
|
}, {
|
351
|
-
values: string | string[];
|
362
|
+
values: (string | string[]) & (string | string[] | undefined);
|
352
363
|
attribute: string;
|
353
364
|
operator: PromotionRuleOperator;
|
354
365
|
description?: string | null | undefined;
|
@@ -359,18 +370,18 @@ export declare const AdminCreateApplicationMethod: z.ZodObject<{
|
|
359
370
|
type: ApplicationMethodType;
|
360
371
|
value: number;
|
361
372
|
target_type: ApplicationMethodTargetType;
|
362
|
-
currency_code?: string | null | undefined;
|
363
373
|
description?: string | null | undefined;
|
374
|
+
currency_code?: string | null | undefined;
|
364
375
|
max_quantity?: number | null | undefined;
|
365
376
|
allocation?: ApplicationMethodAllocation | undefined;
|
366
377
|
target_rules?: {
|
367
|
-
values: string | string[];
|
378
|
+
values: (string | string[]) & (string | string[] | undefined);
|
368
379
|
attribute: string;
|
369
380
|
operator: PromotionRuleOperator;
|
370
381
|
description?: string | null | undefined;
|
371
382
|
}[] | undefined;
|
372
383
|
buy_rules?: {
|
373
|
-
values: string | string[];
|
384
|
+
values: (string | string[]) & (string | string[] | undefined);
|
374
385
|
attribute: string;
|
375
386
|
operator: PromotionRuleOperator;
|
376
387
|
description?: string | null | undefined;
|
@@ -381,18 +392,18 @@ export declare const AdminCreateApplicationMethod: z.ZodObject<{
|
|
381
392
|
type: ApplicationMethodType;
|
382
393
|
value: number;
|
383
394
|
target_type: ApplicationMethodTargetType;
|
384
|
-
currency_code?: string | null | undefined;
|
385
395
|
description?: string | null | undefined;
|
396
|
+
currency_code?: string | null | undefined;
|
386
397
|
max_quantity?: number | null | undefined;
|
387
398
|
allocation?: ApplicationMethodAllocation | undefined;
|
388
399
|
target_rules?: {
|
389
|
-
values: string | string[];
|
400
|
+
values: (string | string[]) & (string | string[] | undefined);
|
390
401
|
attribute: string;
|
391
402
|
operator: PromotionRuleOperator;
|
392
403
|
description?: string | null | undefined;
|
393
404
|
}[] | undefined;
|
394
405
|
buy_rules?: {
|
395
|
-
values: string | string[];
|
406
|
+
values: (string | string[]) & (string | string[] | undefined);
|
396
407
|
attribute: string;
|
397
408
|
operator: PromotionRuleOperator;
|
398
409
|
description?: string | null | undefined;
|
@@ -412,21 +423,21 @@ export declare const AdminUpdateApplicationMethod: z.ZodObject<{
|
|
412
423
|
apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
413
424
|
buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
414
425
|
}, "strict", z.ZodTypeAny, {
|
415
|
-
type?: ApplicationMethodType | undefined;
|
416
|
-
value?: number | undefined;
|
417
|
-
currency_code?: string | null | undefined;
|
418
426
|
description?: string | null | undefined;
|
427
|
+
value?: number | undefined;
|
419
428
|
max_quantity?: number | null | undefined;
|
429
|
+
currency_code?: string | null | undefined;
|
430
|
+
type?: ApplicationMethodType | undefined;
|
420
431
|
target_type?: ApplicationMethodTargetType | undefined;
|
421
432
|
allocation?: ApplicationMethodAllocation | undefined;
|
422
433
|
apply_to_quantity?: number | null | undefined;
|
423
434
|
buy_rules_min_quantity?: number | null | undefined;
|
424
435
|
}, {
|
425
|
-
type?: ApplicationMethodType | undefined;
|
426
|
-
value?: number | undefined;
|
427
|
-
currency_code?: string | null | undefined;
|
428
436
|
description?: string | null | undefined;
|
437
|
+
value?: number | undefined;
|
429
438
|
max_quantity?: number | null | undefined;
|
439
|
+
currency_code?: string | null | undefined;
|
440
|
+
type?: ApplicationMethodType | undefined;
|
430
441
|
target_type?: ApplicationMethodTargetType | undefined;
|
431
442
|
allocation?: ApplicationMethodAllocation | undefined;
|
432
443
|
apply_to_quantity?: number | null | undefined;
|
@@ -450,28 +461,28 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
450
461
|
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
451
462
|
}, "strict", z.ZodTypeAny, {
|
452
463
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
453
|
-
currency_code?: string | null | undefined;
|
454
464
|
limit?: number | null | undefined;
|
465
|
+
currency_code?: string | null | undefined;
|
455
466
|
}, {
|
456
467
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
457
|
-
currency_code?: string | null | undefined;
|
458
468
|
limit?: number | null | undefined;
|
469
|
+
currency_code?: string | null | undefined;
|
459
470
|
}>, {
|
460
471
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
461
|
-
currency_code?: string | null | undefined;
|
462
472
|
limit?: number | null | undefined;
|
473
|
+
currency_code?: string | null | undefined;
|
463
474
|
}, {
|
464
475
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
465
|
-
currency_code?: string | null | undefined;
|
466
476
|
limit?: number | null | undefined;
|
477
|
+
currency_code?: string | null | undefined;
|
467
478
|
}>, {
|
468
479
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
469
|
-
currency_code?: string | null | undefined;
|
470
480
|
limit?: number | null | undefined;
|
481
|
+
currency_code?: string | null | undefined;
|
471
482
|
}, {
|
472
483
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
473
|
-
currency_code?: string | null | undefined;
|
474
484
|
limit?: number | null | undefined;
|
485
|
+
currency_code?: string | null | undefined;
|
475
486
|
}>>>;
|
476
487
|
starts_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
477
488
|
ends_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
@@ -479,24 +490,24 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
479
490
|
name: string;
|
480
491
|
campaign_identifier: string;
|
481
492
|
description?: string | null | undefined;
|
482
|
-
starts_at?: Date | null | undefined;
|
483
|
-
ends_at?: Date | null | undefined;
|
484
493
|
budget?: {
|
485
494
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
486
|
-
currency_code?: string | null | undefined;
|
487
495
|
limit?: number | null | undefined;
|
496
|
+
currency_code?: string | null | undefined;
|
488
497
|
} | null | undefined;
|
498
|
+
starts_at?: Date | null | undefined;
|
499
|
+
ends_at?: Date | null | undefined;
|
489
500
|
}, {
|
490
501
|
name: string;
|
491
502
|
campaign_identifier: string;
|
492
503
|
description?: string | null | undefined;
|
493
|
-
starts_at?: Date | null | undefined;
|
494
|
-
ends_at?: Date | null | undefined;
|
495
504
|
budget?: {
|
496
505
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
497
|
-
currency_code?: string | null | undefined;
|
498
506
|
limit?: number | null | undefined;
|
507
|
+
currency_code?: string | null | undefined;
|
499
508
|
} | null | undefined;
|
509
|
+
starts_at?: Date | null | undefined;
|
510
|
+
ends_at?: Date | null | undefined;
|
500
511
|
}>>;
|
501
512
|
application_method: z.ZodObject<{
|
502
513
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -512,12 +523,12 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
512
523
|
attribute: z.ZodString;
|
513
524
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
514
525
|
}, "strict", z.ZodTypeAny, {
|
515
|
-
values: string | string[];
|
526
|
+
values: (string | string[]) & (string | string[] | undefined);
|
516
527
|
attribute: string;
|
517
528
|
operator: PromotionRuleOperator;
|
518
529
|
description?: string | null | undefined;
|
519
530
|
}, {
|
520
|
-
values: string | string[];
|
531
|
+
values: (string | string[]) & (string | string[] | undefined);
|
521
532
|
attribute: string;
|
522
533
|
operator: PromotionRuleOperator;
|
523
534
|
description?: string | null | undefined;
|
@@ -528,12 +539,12 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
528
539
|
attribute: z.ZodString;
|
529
540
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
530
541
|
}, "strict", z.ZodTypeAny, {
|
531
|
-
values: string | string[];
|
542
|
+
values: (string | string[]) & (string | string[] | undefined);
|
532
543
|
attribute: string;
|
533
544
|
operator: PromotionRuleOperator;
|
534
545
|
description?: string | null | undefined;
|
535
546
|
}, {
|
536
|
-
values: string | string[];
|
547
|
+
values: (string | string[]) & (string | string[] | undefined);
|
537
548
|
attribute: string;
|
538
549
|
operator: PromotionRuleOperator;
|
539
550
|
description?: string | null | undefined;
|
@@ -544,18 +555,18 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
544
555
|
type: ApplicationMethodType;
|
545
556
|
value: number;
|
546
557
|
target_type: ApplicationMethodTargetType;
|
547
|
-
currency_code?: string | null | undefined;
|
548
558
|
description?: string | null | undefined;
|
559
|
+
currency_code?: string | null | undefined;
|
549
560
|
max_quantity?: number | null | undefined;
|
550
561
|
allocation?: ApplicationMethodAllocation | undefined;
|
551
562
|
target_rules?: {
|
552
|
-
values: string | string[];
|
563
|
+
values: (string | string[]) & (string | string[] | undefined);
|
553
564
|
attribute: string;
|
554
565
|
operator: PromotionRuleOperator;
|
555
566
|
description?: string | null | undefined;
|
556
567
|
}[] | undefined;
|
557
568
|
buy_rules?: {
|
558
|
-
values: string | string[];
|
569
|
+
values: (string | string[]) & (string | string[] | undefined);
|
559
570
|
attribute: string;
|
560
571
|
operator: PromotionRuleOperator;
|
561
572
|
description?: string | null | undefined;
|
@@ -566,18 +577,18 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
566
577
|
type: ApplicationMethodType;
|
567
578
|
value: number;
|
568
579
|
target_type: ApplicationMethodTargetType;
|
569
|
-
currency_code?: string | null | undefined;
|
570
580
|
description?: string | null | undefined;
|
581
|
+
currency_code?: string | null | undefined;
|
571
582
|
max_quantity?: number | null | undefined;
|
572
583
|
allocation?: ApplicationMethodAllocation | undefined;
|
573
584
|
target_rules?: {
|
574
|
-
values: string | string[];
|
585
|
+
values: (string | string[]) & (string | string[] | undefined);
|
575
586
|
attribute: string;
|
576
587
|
operator: PromotionRuleOperator;
|
577
588
|
description?: string | null | undefined;
|
578
589
|
}[] | undefined;
|
579
590
|
buy_rules?: {
|
580
|
-
values: string | string[];
|
591
|
+
values: (string | string[]) & (string | string[] | undefined);
|
581
592
|
attribute: string;
|
582
593
|
operator: PromotionRuleOperator;
|
583
594
|
description?: string | null | undefined;
|
@@ -591,12 +602,12 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
591
602
|
attribute: z.ZodString;
|
592
603
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
593
604
|
}, "strict", z.ZodTypeAny, {
|
594
|
-
values: string | string[];
|
605
|
+
values: (string | string[]) & (string | string[] | undefined);
|
595
606
|
attribute: string;
|
596
607
|
operator: PromotionRuleOperator;
|
597
608
|
description?: string | null | undefined;
|
598
609
|
}, {
|
599
|
-
values: string | string[];
|
610
|
+
values: (string | string[]) & (string | string[] | undefined);
|
600
611
|
attribute: string;
|
601
612
|
operator: PromotionRuleOperator;
|
602
613
|
description?: string | null | undefined;
|
@@ -609,18 +620,18 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
609
620
|
type: ApplicationMethodType;
|
610
621
|
value: number;
|
611
622
|
target_type: ApplicationMethodTargetType;
|
612
|
-
currency_code?: string | null | undefined;
|
613
623
|
description?: string | null | undefined;
|
624
|
+
currency_code?: string | null | undefined;
|
614
625
|
max_quantity?: number | null | undefined;
|
615
626
|
allocation?: ApplicationMethodAllocation | undefined;
|
616
627
|
target_rules?: {
|
617
|
-
values: string | string[];
|
628
|
+
values: (string | string[]) & (string | string[] | undefined);
|
618
629
|
attribute: string;
|
619
630
|
operator: PromotionRuleOperator;
|
620
631
|
description?: string | null | undefined;
|
621
632
|
}[] | undefined;
|
622
633
|
buy_rules?: {
|
623
|
-
values: string | string[];
|
634
|
+
values: (string | string[]) & (string | string[] | undefined);
|
624
635
|
attribute: string;
|
625
636
|
operator: PromotionRuleOperator;
|
626
637
|
description?: string | null | undefined;
|
@@ -628,27 +639,27 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
628
639
|
apply_to_quantity?: number | null | undefined;
|
629
640
|
buy_rules_min_quantity?: number | null | undefined;
|
630
641
|
};
|
631
|
-
rules?: {
|
632
|
-
values: string | string[];
|
633
|
-
attribute: string;
|
634
|
-
operator: PromotionRuleOperator;
|
635
|
-
description?: string | null | undefined;
|
636
|
-
}[] | undefined;
|
637
|
-
is_tax_inclusive?: boolean | undefined;
|
638
642
|
is_automatic?: boolean | undefined;
|
643
|
+
is_tax_inclusive?: boolean | undefined;
|
639
644
|
campaign_id?: string | null | undefined;
|
640
645
|
campaign?: {
|
641
646
|
name: string;
|
642
647
|
campaign_identifier: string;
|
643
648
|
description?: string | null | undefined;
|
644
|
-
starts_at?: Date | null | undefined;
|
645
|
-
ends_at?: Date | null | undefined;
|
646
649
|
budget?: {
|
647
650
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
648
|
-
currency_code?: string | null | undefined;
|
649
651
|
limit?: number | null | undefined;
|
652
|
+
currency_code?: string | null | undefined;
|
650
653
|
} | null | undefined;
|
654
|
+
starts_at?: Date | null | undefined;
|
655
|
+
ends_at?: Date | null | undefined;
|
651
656
|
} | undefined;
|
657
|
+
rules?: {
|
658
|
+
values: (string | string[]) & (string | string[] | undefined);
|
659
|
+
attribute: string;
|
660
|
+
operator: PromotionRuleOperator;
|
661
|
+
description?: string | null | undefined;
|
662
|
+
}[] | undefined;
|
652
663
|
}, {
|
653
664
|
type: PromotionType;
|
654
665
|
code: string;
|
@@ -656,18 +667,18 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
656
667
|
type: ApplicationMethodType;
|
657
668
|
value: number;
|
658
669
|
target_type: ApplicationMethodTargetType;
|
659
|
-
currency_code?: string | null | undefined;
|
660
670
|
description?: string | null | undefined;
|
671
|
+
currency_code?: string | null | undefined;
|
661
672
|
max_quantity?: number | null | undefined;
|
662
673
|
allocation?: ApplicationMethodAllocation | undefined;
|
663
674
|
target_rules?: {
|
664
|
-
values: string | string[];
|
675
|
+
values: (string | string[]) & (string | string[] | undefined);
|
665
676
|
attribute: string;
|
666
677
|
operator: PromotionRuleOperator;
|
667
678
|
description?: string | null | undefined;
|
668
679
|
}[] | undefined;
|
669
680
|
buy_rules?: {
|
670
|
-
values: string | string[];
|
681
|
+
values: (string | string[]) & (string | string[] | undefined);
|
671
682
|
attribute: string;
|
672
683
|
operator: PromotionRuleOperator;
|
673
684
|
description?: string | null | undefined;
|
@@ -675,28 +686,28 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
675
686
|
apply_to_quantity?: number | null | undefined;
|
676
687
|
buy_rules_min_quantity?: number | null | undefined;
|
677
688
|
};
|
678
|
-
rules?: {
|
679
|
-
values: string | string[];
|
680
|
-
attribute: string;
|
681
|
-
operator: PromotionRuleOperator;
|
682
|
-
description?: string | null | undefined;
|
683
|
-
}[] | undefined;
|
684
|
-
status?: PromotionStatus | undefined;
|
685
|
-
is_tax_inclusive?: boolean | undefined;
|
686
689
|
is_automatic?: boolean | undefined;
|
690
|
+
is_tax_inclusive?: boolean | undefined;
|
691
|
+
status?: PromotionStatus | undefined;
|
687
692
|
campaign_id?: string | null | undefined;
|
688
693
|
campaign?: {
|
689
694
|
name: string;
|
690
695
|
campaign_identifier: string;
|
691
696
|
description?: string | null | undefined;
|
692
|
-
starts_at?: Date | null | undefined;
|
693
|
-
ends_at?: Date | null | undefined;
|
694
697
|
budget?: {
|
695
698
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
696
|
-
currency_code?: string | null | undefined;
|
697
699
|
limit?: number | null | undefined;
|
700
|
+
currency_code?: string | null | undefined;
|
698
701
|
} | null | undefined;
|
702
|
+
starts_at?: Date | null | undefined;
|
703
|
+
ends_at?: Date | null | undefined;
|
699
704
|
} | undefined;
|
705
|
+
rules?: {
|
706
|
+
values: (string | string[]) & (string | string[] | undefined);
|
707
|
+
attribute: string;
|
708
|
+
operator: PromotionRuleOperator;
|
709
|
+
description?: string | null | undefined;
|
710
|
+
}[] | undefined;
|
700
711
|
}>;
|
701
712
|
export declare const AdminCreatePromotion: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
702
713
|
[x: string]: any;
|
@@ -722,57 +733,57 @@ export declare const UpdatePromotion: z.ZodObject<{
|
|
722
733
|
apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
723
734
|
buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
724
735
|
}, "strict", z.ZodTypeAny, {
|
725
|
-
type?: ApplicationMethodType | undefined;
|
726
|
-
value?: number | undefined;
|
727
|
-
currency_code?: string | null | undefined;
|
728
736
|
description?: string | null | undefined;
|
737
|
+
value?: number | undefined;
|
729
738
|
max_quantity?: number | null | undefined;
|
739
|
+
currency_code?: string | null | undefined;
|
740
|
+
type?: ApplicationMethodType | undefined;
|
730
741
|
target_type?: ApplicationMethodTargetType | undefined;
|
731
742
|
allocation?: ApplicationMethodAllocation | undefined;
|
732
743
|
apply_to_quantity?: number | null | undefined;
|
733
744
|
buy_rules_min_quantity?: number | null | undefined;
|
734
745
|
}, {
|
735
|
-
type?: ApplicationMethodType | undefined;
|
736
|
-
value?: number | undefined;
|
737
|
-
currency_code?: string | null | undefined;
|
738
746
|
description?: string | null | undefined;
|
747
|
+
value?: number | undefined;
|
739
748
|
max_quantity?: number | null | undefined;
|
749
|
+
currency_code?: string | null | undefined;
|
750
|
+
type?: ApplicationMethodType | undefined;
|
740
751
|
target_type?: ApplicationMethodTargetType | undefined;
|
741
752
|
allocation?: ApplicationMethodAllocation | undefined;
|
742
753
|
apply_to_quantity?: number | null | undefined;
|
743
754
|
buy_rules_min_quantity?: number | null | undefined;
|
744
755
|
}>>;
|
745
756
|
}, "strict", z.ZodTypeAny, {
|
746
|
-
type?: PromotionType | undefined;
|
747
757
|
code?: string | undefined;
|
748
|
-
status?: PromotionStatus | undefined;
|
749
|
-
is_tax_inclusive?: boolean | undefined;
|
750
758
|
is_automatic?: boolean | undefined;
|
759
|
+
is_tax_inclusive?: boolean | undefined;
|
760
|
+
type?: PromotionType | undefined;
|
761
|
+
status?: PromotionStatus | undefined;
|
751
762
|
campaign_id?: string | null | undefined;
|
752
763
|
application_method?: {
|
753
|
-
type?: ApplicationMethodType | undefined;
|
754
|
-
value?: number | undefined;
|
755
|
-
currency_code?: string | null | undefined;
|
756
764
|
description?: string | null | undefined;
|
765
|
+
value?: number | undefined;
|
757
766
|
max_quantity?: number | null | undefined;
|
767
|
+
currency_code?: string | null | undefined;
|
768
|
+
type?: ApplicationMethodType | undefined;
|
758
769
|
target_type?: ApplicationMethodTargetType | undefined;
|
759
770
|
allocation?: ApplicationMethodAllocation | undefined;
|
760
771
|
apply_to_quantity?: number | null | undefined;
|
761
772
|
buy_rules_min_quantity?: number | null | undefined;
|
762
773
|
} | undefined;
|
763
774
|
}, {
|
764
|
-
type?: PromotionType | undefined;
|
765
775
|
code?: string | undefined;
|
766
|
-
status?: PromotionStatus | undefined;
|
767
|
-
is_tax_inclusive?: boolean | undefined;
|
768
776
|
is_automatic?: boolean | undefined;
|
777
|
+
is_tax_inclusive?: boolean | undefined;
|
778
|
+
type?: PromotionType | undefined;
|
779
|
+
status?: PromotionStatus | undefined;
|
769
780
|
campaign_id?: string | null | undefined;
|
770
781
|
application_method?: {
|
771
|
-
type?: ApplicationMethodType | undefined;
|
772
|
-
value?: number | undefined;
|
773
|
-
currency_code?: string | null | undefined;
|
774
782
|
description?: string | null | undefined;
|
783
|
+
value?: number | undefined;
|
775
784
|
max_quantity?: number | null | undefined;
|
785
|
+
currency_code?: string | null | undefined;
|
786
|
+
type?: ApplicationMethodType | undefined;
|
776
787
|
target_type?: ApplicationMethodTargetType | undefined;
|
777
788
|
allocation?: ApplicationMethodAllocation | undefined;
|
778
789
|
apply_to_quantity?: number | null | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/promotions/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,aAAa,EACd,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAUvB,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,uBAAuB,CAC/B,CAAA;AACD,eAAO,MAAM,uBAAuB;;;;;;EAAuB,CAAA;AAE3D,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAczC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,wBAAwB,CAChC,CAAA;AACD,eAAO,MAAM,wBAAwB
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/promotions/validators.ts"],"names":[],"mappings":"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"}
|
@@ -15,23 +15,21 @@ export declare const AdminUpdatePaymentRefundReason: z.ZodObject<{
|
|
15
15
|
label: z.ZodOptional<z.ZodString>;
|
16
16
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
17
17
|
}, "strict", z.ZodTypeAny, {
|
18
|
-
description?: string | null | undefined;
|
19
18
|
label?: string | undefined;
|
20
|
-
}, {
|
21
19
|
description?: string | null | undefined;
|
20
|
+
}, {
|
22
21
|
label?: string | undefined;
|
22
|
+
description?: string | null | undefined;
|
23
23
|
}>;
|
24
24
|
/**
|
25
25
|
* Parameters used to filter and configure the pagination of the retrieved refund reason.
|
26
26
|
*/
|
27
27
|
export declare const AdminGetRefundReasonsParams: z.ZodObject<{
|
28
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
28
29
|
fields: z.ZodOptional<z.ZodString>;
|
29
|
-
} & {
|
30
30
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
31
31
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
32
|
-
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
33
32
|
with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
34
|
-
} & {
|
35
33
|
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
36
34
|
q: z.ZodOptional<z.ZodString>;
|
37
35
|
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
@@ -158,24 +156,24 @@ export declare const AdminGetRefundReasonsParams: z.ZodObject<{
|
|
158
156
|
offset: number;
|
159
157
|
limit: number;
|
160
158
|
order?: string | undefined;
|
161
|
-
id?: string | string[] | undefined;
|
162
159
|
fields?: string | undefined;
|
160
|
+
with_deleted?: boolean | undefined;
|
161
|
+
id?: string | string[] | undefined;
|
162
|
+
q?: string | undefined;
|
163
163
|
created_at?: any;
|
164
164
|
updated_at?: any;
|
165
165
|
deleted_at?: any;
|
166
|
-
with_deleted?: boolean | undefined;
|
167
|
-
q?: string | undefined;
|
168
166
|
}, {
|
169
167
|
order?: string | undefined;
|
170
|
-
id?: string | string[] | undefined;
|
171
168
|
fields?: string | undefined;
|
172
|
-
created_at?: any;
|
173
|
-
updated_at?: any;
|
174
|
-
deleted_at?: any;
|
175
169
|
offset?: unknown;
|
176
170
|
limit?: unknown;
|
177
171
|
with_deleted?: unknown;
|
172
|
+
id?: string | string[] | undefined;
|
178
173
|
q?: string | undefined;
|
174
|
+
created_at?: any;
|
175
|
+
updated_at?: any;
|
176
|
+
deleted_at?: any;
|
179
177
|
}>;
|
180
178
|
export type AdminGetRefundReasonsParamsType = z.infer<typeof AdminGetRefundReasonsParams>;
|
181
179
|
//# sourceMappingURL=validators.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/refund-reasons/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,8BAA8B,CACtC,CAAA;AACD,eAAO,MAAM,8BAA8B;;;;;;;;;EAKhC,CAAA;AAEX,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,8BAA8B,CACtC,CAAA;AACD,eAAO,MAAM,8BAA8B;;;;;;;;;EAKhC,CAAA;AAEX;;GAEG;AACH,eAAO,MAAM,2BAA2B
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/refund-reasons/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,8BAA8B,CACtC,CAAA;AACD,eAAO,MAAM,8BAA8B;;;;;;;;;EAKhC,CAAA;AAEX,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,8BAA8B,CACtC,CAAA;AACD,eAAO,MAAM,8BAA8B;;;;;;;;;EAKhC,CAAA;AAEX;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWvC,CAAA;AACD,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,2BAA2B,CACnC,CAAA"}
|