@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.
Files changed (117) hide show
  1. package/.medusa/server/src/admin/index.js +3 -1
  2. package/.medusa/server/src/admin/index.mjs +3 -1
  3. package/.medusa/server/src/api/admin/attributes/validators.d.ts +355 -59
  4. package/.medusa/server/src/api/admin/configuration/validators.d.ts +3 -2
  5. package/.medusa/server/src/api/admin/notifications/route.js +8 -2
  6. package/.medusa/server/src/api/admin/order-sets/validators.d.ts +5 -3
  7. package/.medusa/server/src/api/admin/products/validators.d.ts +909 -500
  8. package/.medusa/server/src/api/admin/sellers/validators.d.ts +20 -16
  9. package/.medusa/server/src/api/admin/stock-locations/route.js +2 -2
  10. package/.medusa/server/src/api/store/carts/[id]/promotions/route.d.ts +3 -0
  11. package/.medusa/server/src/api/store/carts/[id]/promotions/route.js +34 -0
  12. package/.medusa/server/src/api/store/order-set/validators.d.ts +3 -2
  13. package/.medusa/server/src/api/store/returns/validators.d.ts +3 -2
  14. package/.medusa/server/src/api/store/seller/validators.d.ts +3 -2
  15. package/.medusa/server/src/api/store/shipping-options/validators.d.ts +24 -26
  16. package/.medusa/server/src/api/store/wishlist/validators.d.ts +3 -2
  17. package/.medusa/server/src/api/vendor/attributes/validators.d.ts +9 -7
  18. package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.d.ts +76 -0
  19. package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.js +89 -0
  20. package/.medusa/server/src/api/vendor/campaigns/[id]/route.d.ts +55 -4
  21. package/.medusa/server/src/api/vendor/campaigns/[id]/route.js +59 -3
  22. package/.medusa/server/src/api/vendor/campaigns/helpers.d.ts +4 -0
  23. package/.medusa/server/src/api/vendor/campaigns/helpers.js +34 -0
  24. package/.medusa/server/src/api/vendor/campaigns/middlewares.js +18 -9
  25. package/.medusa/server/src/api/vendor/campaigns/route.d.ts +6 -0
  26. package/.medusa/server/src/api/vendor/campaigns/route.js +10 -4
  27. package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +203 -11
  28. package/.medusa/server/src/api/vendor/campaigns/validators.js +43 -4
  29. package/.medusa/server/src/api/vendor/customer-groups/route.d.ts +2 -2
  30. package/.medusa/server/src/api/vendor/customer-groups/route.js +5 -5
  31. package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +604 -2
  32. package/.medusa/server/src/api/vendor/customer-groups/validators.js +37 -2
  33. package/.medusa/server/src/api/vendor/customers/validators.d.ts +6 -4
  34. package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +3 -2
  35. package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +22 -6
  36. package/.medusa/server/src/api/vendor/inventory-items/[id]/route.d.ts +23 -0
  37. package/.medusa/server/src/api/vendor/inventory-items/[id]/route.js +48 -2
  38. package/.medusa/server/src/api/vendor/inventory-items/middlewares.js +12 -1
  39. package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +37 -104
  40. package/.medusa/server/src/api/vendor/invites/validators.d.ts +3 -2
  41. package/.medusa/server/src/api/vendor/members/validators.d.ts +7 -6
  42. package/.medusa/server/src/api/vendor/notifications/validators.d.ts +3 -2
  43. package/.medusa/server/src/api/vendor/orders/validators.d.ts +13 -11
  44. package/.medusa/server/src/api/vendor/payouts/validators.d.ts +3 -2
  45. package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +18 -16
  46. package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +37 -29
  47. package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +317 -26
  48. package/.medusa/server/src/api/vendor/product-collections/validators.d.ts +6 -4
  49. package/.medusa/server/src/api/vendor/product-tags/route.js +8 -2
  50. package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +31 -29
  51. package/.medusa/server/src/api/vendor/product-types/route.d.ts +6 -0
  52. package/.medusa/server/src/api/vendor/product-types/route.js +8 -1
  53. package/.medusa/server/src/api/vendor/product-types/validators.d.ts +14 -2
  54. package/.medusa/server/src/api/vendor/product-types/validators.js +9 -3
  55. package/.medusa/server/src/api/vendor/products/route.js +7 -3
  56. package/.medusa/server/src/api/vendor/products/utils.d.ts +4 -1
  57. package/.medusa/server/src/api/vendor/products/utils.js +40 -2
  58. package/.medusa/server/src/api/vendor/products/validators.d.ts +905 -377
  59. package/.medusa/server/src/api/vendor/promotions/validators.d.ts +57 -53
  60. package/.medusa/server/src/api/vendor/regions/validators.d.ts +3 -2
  61. package/.medusa/server/src/api/vendor/reservations/validators.d.ts +7 -6
  62. package/.medusa/server/src/api/vendor/returns/validators.d.ts +9 -8
  63. package/.medusa/server/src/api/vendor/sellers/validators.d.ts +20 -20
  64. package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +27 -26
  65. package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +5 -4
  66. package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +49 -59
  67. package/.medusa/server/src/links/seller-campaign.js +1 -1
  68. package/.medusa/server/src/links/seller-customer-group.js +1 -1
  69. package/.medusa/server/src/modules/attribute/migrations/Migration20250617080244.d.ts +1 -1
  70. package/.medusa/server/src/modules/attribute/migrations/Migration20250617080244.js +2 -2
  71. package/.medusa/server/src/modules/attribute/migrations/Migration20250620110849.d.ts +1 -1
  72. package/.medusa/server/src/modules/attribute/migrations/Migration20250620110849.js +2 -2
  73. package/.medusa/server/src/modules/attribute/migrations/Migration20250828065431.d.ts +1 -1
  74. package/.medusa/server/src/modules/attribute/migrations/Migration20250828065431.js +2 -2
  75. package/.medusa/server/src/modules/attribute/service.d.ts +1 -1
  76. package/.medusa/server/src/modules/configuration/migrations/Migration20250114063624.d.ts +1 -1
  77. package/.medusa/server/src/modules/configuration/migrations/Migration20250114063624.js +2 -2
  78. package/.medusa/server/src/modules/configuration/migrations/Migration20250324131111.d.ts +1 -1
  79. package/.medusa/server/src/modules/configuration/migrations/Migration20250324131111.js +2 -2
  80. package/.medusa/server/src/modules/marketplace/migrations/Migration20241207151814.d.ts +1 -1
  81. package/.medusa/server/src/modules/marketplace/migrations/Migration20241207151814.js +2 -2
  82. package/.medusa/server/src/modules/payout/migrations/Migration20250317090626.d.ts +1 -1
  83. package/.medusa/server/src/modules/payout/migrations/Migration20250317090626.js +2 -2
  84. package/.medusa/server/src/modules/payout/migrations/Migration20250612144913.d.ts +1 -1
  85. package/.medusa/server/src/modules/payout/migrations/Migration20250612144913.js +2 -2
  86. package/.medusa/server/src/modules/payout/service.d.ts +1 -1
  87. package/.medusa/server/src/modules/secondary_categories/migrations/Migration20251014102054.d.ts +1 -1
  88. package/.medusa/server/src/modules/secondary_categories/migrations/Migration20251014102054.js +2 -2
  89. package/.medusa/server/src/modules/seller/migrations/Migration20241206125415.d.ts +1 -1
  90. package/.medusa/server/src/modules/seller/migrations/Migration20241206125415.js +2 -2
  91. package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.d.ts +1 -1
  92. package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.js +2 -2
  93. package/.medusa/server/src/modules/seller/migrations/Migration20250225083755.d.ts +1 -1
  94. package/.medusa/server/src/modules/seller/migrations/Migration20250225083755.js +2 -2
  95. package/.medusa/server/src/modules/seller/migrations/Migration20250225094708.d.ts +1 -1
  96. package/.medusa/server/src/modules/seller/migrations/Migration20250225094708.js +2 -2
  97. package/.medusa/server/src/modules/seller/migrations/Migration20250307091819.d.ts +1 -1
  98. package/.medusa/server/src/modules/seller/migrations/Migration20250307091819.js +2 -2
  99. package/.medusa/server/src/modules/seller/migrations/Migration20250313065552.d.ts +1 -1
  100. package/.medusa/server/src/modules/seller/migrations/Migration20250313065552.js +2 -2
  101. package/.medusa/server/src/modules/seller/migrations/Migration20250530111528.d.ts +1 -1
  102. package/.medusa/server/src/modules/seller/migrations/Migration20250530111528.js +2 -2
  103. package/.medusa/server/src/modules/seller/utils.d.ts +4 -0
  104. package/.medusa/server/src/modules/seller/utils.js +18 -1
  105. package/.medusa/server/src/modules/split-order-payment/migrations/Migration20250516075429.d.ts +1 -1
  106. package/.medusa/server/src/modules/split-order-payment/migrations/Migration20250516075429.js +2 -2
  107. package/.medusa/server/src/modules/taxcode/migrations/Migration20250116135408.d.ts +1 -1
  108. package/.medusa/server/src/modules/taxcode/migrations/Migration20250116135408.js +2 -2
  109. package/.medusa/server/src/modules/wishlist/migrations/Migration20250424110903.d.ts +1 -1
  110. package/.medusa/server/src/modules/wishlist/migrations/Migration20250424110903.js +2 -2
  111. package/.medusa/server/src/workflows/cart/workflows/split-and-complete-cart.js +2 -2
  112. package/.medusa/server/src/workflows/order/steps/calculate-payout-for-order.d.ts +1 -1
  113. package/.medusa/server/src/workflows/promotions/steps/register-usage-step.d.ts +7 -2
  114. package/.medusa/server/src/workflows/promotions/steps/register-usage-step.js +6 -6
  115. package/.medusa/server/src/workflows/seller/steps/send-invitation-email.js +6 -2
  116. package/.medusa/server/src/workflows/seller/steps/validate-products-to-import.d.ts +10 -10
  117. package/package.json +15 -28
@@ -3,6 +3,7 @@ import { ApplicationMethodAllocation, ApplicationMethodTargetType, ApplicationMe
3
3
  export type VendorGetPromotionsParamsType = z.infer<typeof VendorGetPromotionsParams>;
4
4
  export declare const VendorGetPromotionsParams: 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 VendorGetPromotionsParams: 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
  /**
@@ -46,12 +47,12 @@ export declare const VendorCreatePromotionRule: z.ZodObject<{
46
47
  attribute: z.ZodString;
47
48
  values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
48
49
  }, "strict", z.ZodTypeAny, {
49
- values: (string | string[]) & (string | string[] | undefined);
50
+ values: string | string[];
50
51
  attribute: string;
51
52
  operator: "in" | "eq";
52
53
  description?: string | null | undefined;
53
54
  }, {
54
- values: (string | string[]) & (string | string[] | undefined);
55
+ values: string | string[];
55
56
  attribute: string;
56
57
  operator: "in" | "eq";
57
58
  description?: string | null | undefined;
@@ -106,12 +107,12 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
106
107
  attribute: z.ZodString;
107
108
  values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
108
109
  }, "strict", z.ZodTypeAny, {
109
- values: (string | string[]) & (string | string[] | undefined);
110
+ values: string | string[];
110
111
  attribute: string;
111
112
  operator: "in" | "eq";
112
113
  description?: string | null | undefined;
113
114
  }, {
114
- values: (string | string[]) & (string | string[] | undefined);
115
+ values: string | string[];
115
116
  attribute: string;
116
117
  operator: "in" | "eq";
117
118
  description?: string | null | undefined;
@@ -124,7 +125,7 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
124
125
  target_type: ApplicationMethodTargetType.ITEMS;
125
126
  allocation: ApplicationMethodAllocation;
126
127
  target_rules: {
127
- values: (string | string[]) & (string | string[] | undefined);
128
+ values: string | string[];
128
129
  attribute: string;
129
130
  operator: "in" | "eq";
130
131
  description?: string | null | undefined;
@@ -139,7 +140,7 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
139
140
  target_type: ApplicationMethodTargetType.ITEMS;
140
141
  allocation: ApplicationMethodAllocation;
141
142
  target_rules: {
142
- values: (string | string[]) & (string | string[] | undefined);
143
+ values: string | string[];
143
144
  attribute: string;
144
145
  operator: "in" | "eq";
145
146
  description?: string | null | undefined;
@@ -227,24 +228,24 @@ export declare const VendorCreatePromotion: z.ZodObject<{
227
228
  name: string;
228
229
  campaign_identifier: string;
229
230
  description?: string | null | undefined;
231
+ starts_at?: Date | null | undefined;
232
+ ends_at?: Date | null | undefined;
230
233
  budget?: {
231
234
  type: import("@medusajs/framework/utils").CampaignBudgetType;
232
235
  limit?: number | null | undefined;
233
236
  currency_code?: string | null | undefined;
234
237
  } | null | undefined;
235
- starts_at?: Date | null | undefined;
236
- ends_at?: Date | null | undefined;
237
238
  }, {
238
239
  name: string;
239
240
  campaign_identifier: string;
240
241
  description?: string | null | undefined;
242
+ starts_at?: Date | null | undefined;
243
+ ends_at?: Date | null | undefined;
241
244
  budget?: {
242
245
  type: import("@medusajs/framework/utils").CampaignBudgetType;
243
246
  limit?: number | null | undefined;
244
247
  currency_code?: string | null | undefined;
245
248
  } | null | undefined;
246
- starts_at?: Date | null | undefined;
247
- ends_at?: Date | null | undefined;
248
249
  }>>;
249
250
  application_method: z.ZodObject<{
250
251
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -259,12 +260,12 @@ export declare const VendorCreatePromotion: z.ZodObject<{
259
260
  attribute: z.ZodString;
260
261
  values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
261
262
  }, "strict", z.ZodTypeAny, {
262
- values: (string | string[]) & (string | string[] | undefined);
263
+ values: string | string[];
263
264
  attribute: string;
264
265
  operator: "in" | "eq";
265
266
  description?: string | null | undefined;
266
267
  }, {
267
- values: (string | string[]) & (string | string[] | undefined);
268
+ values: string | string[];
268
269
  attribute: string;
269
270
  operator: "in" | "eq";
270
271
  description?: string | null | undefined;
@@ -277,7 +278,7 @@ export declare const VendorCreatePromotion: z.ZodObject<{
277
278
  target_type: ApplicationMethodTargetType.ITEMS;
278
279
  allocation: ApplicationMethodAllocation;
279
280
  target_rules: {
280
- values: (string | string[]) & (string | string[] | undefined);
281
+ values: string | string[];
281
282
  attribute: string;
282
283
  operator: "in" | "eq";
283
284
  description?: string | null | undefined;
@@ -292,7 +293,7 @@ export declare const VendorCreatePromotion: z.ZodObject<{
292
293
  target_type: ApplicationMethodTargetType.ITEMS;
293
294
  allocation: ApplicationMethodAllocation;
294
295
  target_rules: {
295
- values: (string | string[]) & (string | string[] | undefined);
296
+ values: string | string[];
296
297
  attribute: string;
297
298
  operator: "in" | "eq";
298
299
  description?: string | null | undefined;
@@ -308,12 +309,12 @@ export declare const VendorCreatePromotion: z.ZodObject<{
308
309
  attribute: z.ZodString;
309
310
  values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
310
311
  }, "strict", z.ZodTypeAny, {
311
- values: (string | string[]) & (string | string[] | undefined);
312
+ values: string | string[];
312
313
  attribute: string;
313
314
  operator: "in" | "eq";
314
315
  description?: string | null | undefined;
315
316
  }, {
316
- values: (string | string[]) & (string | string[] | undefined);
317
+ values: string | string[];
317
318
  attribute: string;
318
319
  operator: "in" | "eq";
319
320
  description?: string | null | undefined;
@@ -329,7 +330,7 @@ export declare const VendorCreatePromotion: z.ZodObject<{
329
330
  target_type: ApplicationMethodTargetType.ITEMS;
330
331
  allocation: ApplicationMethodAllocation;
331
332
  target_rules: {
332
- values: (string | string[]) & (string | string[] | undefined);
333
+ values: string | string[];
333
334
  attribute: string;
334
335
  operator: "in" | "eq";
335
336
  description?: string | null | undefined;
@@ -339,21 +340,21 @@ export declare const VendorCreatePromotion: z.ZodObject<{
339
340
  apply_to_quantity?: number | null | undefined;
340
341
  buy_rules_min_quantity?: number | null | undefined;
341
342
  };
342
- campaign_id?: string | null | undefined;
343
343
  campaign?: {
344
344
  name: string;
345
345
  campaign_identifier: string;
346
346
  description?: string | null | undefined;
347
+ starts_at?: Date | null | undefined;
348
+ ends_at?: Date | null | undefined;
347
349
  budget?: {
348
350
  type: import("@medusajs/framework/utils").CampaignBudgetType;
349
351
  limit?: number | null | undefined;
350
352
  currency_code?: string | null | undefined;
351
353
  } | null | undefined;
352
- starts_at?: Date | null | undefined;
353
- ends_at?: Date | null | undefined;
354
354
  } | undefined;
355
+ campaign_id?: string | null | undefined;
355
356
  rules?: {
356
- values: (string | string[]) & (string | string[] | undefined);
357
+ values: string | string[];
357
358
  attribute: string;
358
359
  operator: "in" | "eq";
359
360
  description?: string | null | undefined;
@@ -367,7 +368,7 @@ export declare const VendorCreatePromotion: z.ZodObject<{
367
368
  target_type: ApplicationMethodTargetType.ITEMS;
368
369
  allocation: ApplicationMethodAllocation;
369
370
  target_rules: {
370
- values: (string | string[]) & (string | string[] | undefined);
371
+ values: string | string[];
371
372
  attribute: string;
372
373
  operator: "in" | "eq";
373
374
  description?: string | null | undefined;
@@ -378,26 +379,26 @@ export declare const VendorCreatePromotion: z.ZodObject<{
378
379
  buy_rules_min_quantity?: number | null | undefined;
379
380
  };
380
381
  status?: PromotionStatus | undefined;
381
- is_automatic?: boolean | undefined;
382
- campaign_id?: string | null | undefined;
383
382
  campaign?: {
384
383
  name: string;
385
384
  campaign_identifier: string;
386
385
  description?: string | null | undefined;
386
+ starts_at?: Date | null | undefined;
387
+ ends_at?: Date | null | undefined;
387
388
  budget?: {
388
389
  type: import("@medusajs/framework/utils").CampaignBudgetType;
389
390
  limit?: number | null | undefined;
390
391
  currency_code?: string | null | undefined;
391
392
  } | null | undefined;
392
- starts_at?: Date | null | undefined;
393
- ends_at?: Date | null | undefined;
394
393
  } | undefined;
394
+ campaign_id?: string | null | undefined;
395
395
  rules?: {
396
- values: (string | string[]) & (string | string[] | undefined);
396
+ values: string | string[];
397
397
  attribute: string;
398
398
  operator: "in" | "eq";
399
399
  description?: string | null | undefined;
400
400
  }[] | undefined;
401
+ is_automatic?: boolean | undefined;
401
402
  }>;
402
403
  /**
403
404
  * @schema VendorBatchPromotionRule
@@ -422,28 +423,28 @@ export declare const VendorBatchPromotionRules: z.ZodObject<{
422
423
  attribute: z.ZodString;
423
424
  values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
424
425
  }, "strict", z.ZodTypeAny, {
425
- values: (string | string[]) & (string | string[] | undefined);
426
+ values: string | string[];
426
427
  attribute: string;
427
428
  operator: "in" | "eq";
428
429
  description?: string | null | undefined;
429
430
  }, {
430
- values: (string | string[]) & (string | string[] | undefined);
431
+ values: string | string[];
431
432
  attribute: string;
432
433
  operator: "in" | "eq";
433
434
  description?: string | null | undefined;
434
435
  }>, "many">>;
435
436
  delete: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
436
437
  }, "strip", z.ZodTypeAny, {
437
- delete: string[];
438
438
  create: {
439
- values: (string | string[]) & (string | string[] | undefined);
439
+ values: string | string[];
440
440
  attribute: string;
441
441
  operator: "in" | "eq";
442
442
  description?: string | null | undefined;
443
443
  }[];
444
+ delete: string[];
444
445
  }, {
445
446
  create?: {
446
- values: (string | string[]) & (string | string[] | undefined);
447
+ values: string | string[];
447
448
  attribute: string;
448
449
  operator: "in" | "eq";
449
450
  description?: string | null | undefined;
@@ -482,17 +483,17 @@ export declare const VendorUpdateApplicationMethod: z.ZodObject<{
482
483
  apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
483
484
  buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
484
485
  }, "strict", z.ZodTypeAny, {
485
- description?: string | null | undefined;
486
486
  value?: number | undefined;
487
- max_quantity?: number | null | undefined;
487
+ description?: string | null | undefined;
488
488
  currency_code?: string | null | undefined;
489
+ max_quantity?: number | null | undefined;
489
490
  apply_to_quantity?: number | null | undefined;
490
491
  buy_rules_min_quantity?: number | null | undefined;
491
492
  }, {
492
- description?: string | null | undefined;
493
493
  value?: number | undefined;
494
- max_quantity?: number | null | undefined;
494
+ description?: string | null | undefined;
495
495
  currency_code?: string | null | undefined;
496
+ max_quantity?: number | null | undefined;
496
497
  apply_to_quantity?: number | null | undefined;
497
498
  buy_rules_min_quantity?: number | null | undefined;
498
499
  }>;
@@ -531,72 +532,74 @@ export declare const VendorUpdatePromotion: z.ZodObject<{
531
532
  apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
532
533
  buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
533
534
  }, "strict", z.ZodTypeAny, {
534
- description?: string | null | undefined;
535
535
  value?: number | undefined;
536
- max_quantity?: number | null | undefined;
536
+ description?: string | null | undefined;
537
537
  currency_code?: string | null | undefined;
538
+ max_quantity?: number | null | undefined;
538
539
  apply_to_quantity?: number | null | undefined;
539
540
  buy_rules_min_quantity?: number | null | undefined;
540
541
  }, {
541
- description?: string | null | undefined;
542
542
  value?: number | undefined;
543
- max_quantity?: number | null | undefined;
543
+ description?: string | null | undefined;
544
544
  currency_code?: string | null | undefined;
545
+ max_quantity?: number | null | undefined;
545
546
  apply_to_quantity?: number | null | undefined;
546
547
  buy_rules_min_quantity?: number | null | undefined;
547
548
  }>>;
548
549
  }, "strict", z.ZodTypeAny, {
549
- code?: string | undefined;
550
- is_automatic?: boolean | undefined;
551
550
  status?: PromotionStatus | undefined;
551
+ code?: string | undefined;
552
552
  campaign_id?: string | null | undefined;
553
+ is_automatic?: boolean | undefined;
553
554
  application_method?: {
554
- description?: string | null | undefined;
555
555
  value?: number | undefined;
556
- max_quantity?: number | null | undefined;
556
+ description?: string | null | undefined;
557
557
  currency_code?: string | null | undefined;
558
+ max_quantity?: number | null | undefined;
558
559
  apply_to_quantity?: number | null | undefined;
559
560
  buy_rules_min_quantity?: number | null | undefined;
560
561
  } | undefined;
561
562
  }, {
562
- code?: string | undefined;
563
- is_automatic?: boolean | undefined;
564
563
  status?: PromotionStatus | undefined;
564
+ code?: string | undefined;
565
565
  campaign_id?: string | null | undefined;
566
+ is_automatic?: boolean | undefined;
566
567
  application_method?: {
567
- description?: string | null | undefined;
568
568
  value?: number | undefined;
569
- max_quantity?: number | null | undefined;
569
+ description?: string | null | undefined;
570
570
  currency_code?: string | null | undefined;
571
+ max_quantity?: number | null | undefined;
571
572
  apply_to_quantity?: number | null | undefined;
572
573
  buy_rules_min_quantity?: number | null | undefined;
573
574
  } | undefined;
574
575
  }>;
575
576
  export type VendorGetPromotionsRuleValueParamsType = z.infer<typeof VendorGetPromotionsRuleValueParams>;
576
577
  export declare const VendorGetPromotionsRuleValueParams: z.ZodObject<{
578
+ fields: z.ZodOptional<z.ZodString>;
579
+ } & {
577
580
  offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
578
581
  limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
579
- fields: z.ZodOptional<z.ZodString>;
580
582
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
581
583
  with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
584
+ } & {
582
585
  q: z.ZodOptional<z.ZodString>;
583
586
  value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
584
587
  }, "strip", z.ZodTypeAny, {
585
588
  offset: number;
586
589
  limit: number;
590
+ value?: string | string[] | undefined;
587
591
  fields?: string | undefined;
588
592
  order?: string | undefined;
589
593
  with_deleted?: boolean | undefined;
590
594
  q?: string | undefined;
591
- value?: string | string[] | undefined;
592
595
  }, {
596
+ value?: string | string[] | undefined;
593
597
  offset?: unknown;
594
598
  limit?: unknown;
595
599
  fields?: string | undefined;
596
600
  order?: string | undefined;
597
601
  with_deleted?: unknown;
598
602
  q?: string | undefined;
599
- value?: string | string[] | undefined;
600
603
  }>;
601
604
  export type VendorGetPromotionRuleParamsType = z.infer<typeof VendorGetPromotionRuleParams>;
602
605
  export declare const VendorGetPromotionRuleParams: z.ZodObject<{
@@ -612,6 +615,7 @@ export declare const VendorGetPromotionRuleParams: z.ZodObject<{
612
615
  export type VendorGetPromotionRuleTypeParamsType = z.infer<typeof VendorGetPromotionRuleTypeParams>;
613
616
  export declare const VendorGetPromotionRuleTypeParams: z.ZodObject<{
614
617
  fields: z.ZodOptional<z.ZodString>;
618
+ } & {
615
619
  promotion_type: z.ZodOptional<z.ZodNativeEnum<typeof PromotionType>>;
616
620
  application_method_type: z.ZodOptional<z.ZodNativeEnum<typeof ApplicationMethodType>>;
617
621
  }, "strip", z.ZodTypeAny, {
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export type VendorGetRegionsParamsType = z.infer<typeof VendorGetRegionsParams>;
3
3
  export declare const VendorGetRegionsParams: z.ZodObject<{
4
4
  fields: z.ZodOptional<z.ZodString>;
5
+ } & {
5
6
  offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6
7
  limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
7
8
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -9,13 +10,13 @@ export declare const VendorGetRegionsParams: z.ZodObject<{
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  offset: number;
11
12
  limit: number;
12
- fields?: string | undefined;
13
13
  order?: string | undefined;
14
+ fields?: string | undefined;
14
15
  with_deleted?: boolean | undefined;
15
16
  }, {
17
+ order?: string | undefined;
16
18
  fields?: string | undefined;
17
19
  offset?: unknown;
18
20
  limit?: unknown;
19
- order?: string | undefined;
20
21
  with_deleted?: unknown;
21
22
  }>;
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export type VendorGetReservationParamsType = z.infer<typeof VendorGetReservationParams>;
3
3
  export declare const VendorGetReservationParams: z.ZodObject<{
4
4
  fields: z.ZodOptional<z.ZodString>;
5
+ } & {
5
6
  offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6
7
  limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
7
8
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -9,14 +10,14 @@ export declare const VendorGetReservationParams: z.ZodObject<{
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  offset: number;
11
12
  limit: number;
12
- fields?: string | undefined;
13
13
  order?: string | undefined;
14
+ fields?: string | undefined;
14
15
  with_deleted?: boolean | undefined;
15
16
  }, {
17
+ order?: string | undefined;
16
18
  fields?: string | undefined;
17
19
  offset?: unknown;
18
20
  limit?: unknown;
19
- order?: string | undefined;
20
21
  with_deleted?: unknown;
21
22
  }>;
22
23
  /**
@@ -40,12 +41,12 @@ export declare const VendorUpdateReservation: z.ZodObject<{
40
41
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
42
  }, "strict", z.ZodTypeAny, {
42
43
  location_id?: string | undefined;
43
- quantity?: number | undefined;
44
44
  description?: string | null | undefined;
45
+ quantity?: number | undefined;
45
46
  }, {
46
47
  location_id?: string | undefined;
47
- quantity?: number | undefined;
48
48
  description?: string | null | undefined;
49
+ quantity?: number | undefined;
49
50
  }>;
50
51
  /**
51
52
  * @schema VendorCreateReservation
@@ -78,12 +79,12 @@ export declare const VendorCreateReservation: z.ZodObject<{
78
79
  location_id: string;
79
80
  inventory_item_id: string;
80
81
  quantity: number;
81
- line_item_id?: string | null | undefined;
82
82
  description?: string | null | undefined;
83
+ line_item_id?: string | null | undefined;
83
84
  }, {
84
85
  location_id: string;
85
86
  inventory_item_id: string;
86
87
  quantity: number;
87
- line_item_id?: string | null | undefined;
88
88
  description?: string | null | undefined;
89
+ line_item_id?: string | null | undefined;
89
90
  }>;
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export type VendorGetReturnsParamsType = z.infer<typeof VendorGetReturnsParams>;
3
3
  export declare const VendorGetReturnsParams: z.ZodObject<{
4
4
  fields: z.ZodOptional<z.ZodString>;
5
+ } & {
5
6
  offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6
7
  limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
7
8
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -9,14 +10,14 @@ export declare const VendorGetReturnsParams: z.ZodObject<{
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  offset: number;
11
12
  limit: number;
12
- fields?: string | undefined;
13
13
  order?: string | undefined;
14
+ fields?: string | undefined;
14
15
  with_deleted?: boolean | undefined;
15
16
  }, {
17
+ order?: string | undefined;
16
18
  fields?: string | undefined;
17
19
  offset?: unknown;
18
20
  limit?: unknown;
19
- order?: string | undefined;
20
21
  with_deleted?: unknown;
21
22
  }>;
22
23
  /**
@@ -42,13 +43,13 @@ export declare const VendorReceiveReturnSchema: z.ZodObject<{
42
43
  description: z.ZodOptional<z.ZodString>;
43
44
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
44
45
  }, "strip", z.ZodTypeAny, {
45
- internal_note?: string | undefined;
46
46
  description?: string | undefined;
47
47
  metadata?: Record<string, unknown> | null | undefined;
48
- }, {
49
48
  internal_note?: string | undefined;
49
+ }, {
50
50
  description?: string | undefined;
51
51
  metadata?: Record<string, unknown> | null | undefined;
52
+ internal_note?: string | undefined;
52
53
  }>;
53
54
  /**
54
55
  * @schema VendorReceiveReturnItems
@@ -121,11 +122,11 @@ export declare const VendorReturnsReceiveItemsActionSchema: z.ZodObject<{
121
122
  quantity: z.ZodOptional<z.ZodNumber>;
122
123
  internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
123
124
  }, "strip", z.ZodTypeAny, {
124
- quantity?: number | undefined;
125
125
  internal_note?: string | null | undefined;
126
- }, {
127
126
  quantity?: number | undefined;
127
+ }, {
128
128
  internal_note?: string | null | undefined;
129
+ quantity?: number | undefined;
129
130
  }>;
130
131
  /**
131
132
  * @schema VendorReturnsDismissItemsAction
@@ -144,9 +145,9 @@ export declare const VendorReturnsDismissItemsActionSchema: z.ZodObject<{
144
145
  quantity: z.ZodOptional<z.ZodNumber>;
145
146
  internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
146
147
  }, "strip", z.ZodTypeAny, {
147
- quantity?: number | undefined;
148
148
  internal_note?: string | null | undefined;
149
- }, {
150
149
  quantity?: number | undefined;
150
+ }, {
151
151
  internal_note?: string | null | undefined;
152
+ quantity?: number | undefined;
152
153
  }>;
@@ -104,54 +104,54 @@ export declare const VendorCreateSeller: z.ZodObject<{
104
104
  }, "strip", z.ZodTypeAny, {
105
105
  name: string;
106
106
  email: string;
107
- bio?: string | null | undefined;
108
- phone?: string | null | undefined;
109
107
  photo?: string | null | undefined;
108
+ phone?: string | null | undefined;
109
+ bio?: string | null | undefined;
110
110
  }, {
111
111
  name: string;
112
112
  email: string;
113
- bio?: string | null | undefined;
114
- phone?: string | null | undefined;
115
113
  photo?: string | null | undefined;
114
+ phone?: string | null | undefined;
115
+ bio?: string | null | undefined;
116
116
  }>;
117
117
  }, "strict", z.ZodTypeAny, {
118
118
  name: string;
119
119
  member: {
120
120
  name: string;
121
121
  email: string;
122
- bio?: string | null | undefined;
123
- phone?: string | null | undefined;
124
122
  photo?: string | null | undefined;
123
+ phone?: string | null | undefined;
124
+ bio?: string | null | undefined;
125
125
  };
126
126
  description?: string | null | undefined;
127
127
  photo?: string | null | undefined;
128
- email?: string | null | undefined;
129
- phone?: string | null | undefined;
130
128
  address_line?: string | null | undefined;
131
129
  city?: string | null | undefined;
132
- state?: string | null | undefined;
133
130
  postal_code?: string | null | undefined;
134
131
  country_code?: string | null | undefined;
135
132
  tax_id?: string | null | undefined;
133
+ email?: string | null | undefined;
134
+ phone?: string | null | undefined;
135
+ state?: string | null | undefined;
136
136
  }, {
137
137
  member: {
138
138
  name: string;
139
139
  email: string;
140
- bio?: string | null | undefined;
141
- phone?: string | null | undefined;
142
140
  photo?: string | null | undefined;
141
+ phone?: string | null | undefined;
142
+ bio?: string | null | undefined;
143
143
  };
144
144
  name?: unknown;
145
145
  description?: string | null | undefined;
146
146
  photo?: string | null | undefined;
147
- email?: string | null | undefined;
148
- phone?: string | null | undefined;
149
147
  address_line?: string | null | undefined;
150
148
  city?: string | null | undefined;
151
- state?: string | null | undefined;
152
149
  postal_code?: string | null | undefined;
153
150
  country_code?: string | null | undefined;
154
151
  tax_id?: string | null | undefined;
152
+ email?: string | null | undefined;
153
+ phone?: string | null | undefined;
154
+ state?: string | null | undefined;
155
155
  }>;
156
156
  /**
157
157
  * @schema VendorUpdateSeller
@@ -220,26 +220,26 @@ export declare const VendorUpdateSeller: z.ZodObject<{
220
220
  name?: string | undefined;
221
221
  description?: string | undefined;
222
222
  photo?: string | undefined;
223
- email?: string | undefined;
224
- phone?: string | undefined;
225
223
  address_line?: string | undefined;
226
224
  city?: string | undefined;
227
- state?: string | undefined;
228
225
  postal_code?: string | undefined;
229
226
  country_code?: string | undefined;
230
227
  tax_id?: string | undefined;
228
+ email?: string | undefined;
229
+ phone?: string | undefined;
230
+ state?: string | undefined;
231
231
  }, {
232
232
  name?: unknown;
233
233
  description?: string | undefined;
234
234
  photo?: string | undefined;
235
- email?: string | undefined;
236
- phone?: string | undefined;
237
235
  address_line?: string | undefined;
238
236
  city?: string | undefined;
239
- state?: string | undefined;
240
237
  postal_code?: string | undefined;
241
238
  country_code?: string | undefined;
242
239
  tax_id?: string | undefined;
240
+ email?: string | undefined;
241
+ phone?: string | undefined;
242
+ state?: string | undefined;
243
243
  }>;
244
244
  export type VendorGetOnboardingParamsType = z.infer<typeof VendorGetOnboardingParams>;
245
245
  export declare const VendorGetOnboardingParams: z.ZodObject<{