@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
@@ -1,11 +1,13 @@
1
1
  import * as z from 'zod';
2
2
  export type VendorGetOrderParamsType = z.infer<typeof VendorGetOrderParams>;
3
3
  export declare const VendorGetOrderParams: 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
  created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
10
12
  $eq: any;
11
13
  $ne: any;
@@ -94,29 +96,29 @@ export declare const VendorGetOrderParams: z.ZodObject<{
94
96
  }, "strip", z.ZodTypeAny, {
95
97
  offset: number;
96
98
  limit: number;
99
+ status?: any;
100
+ created_at?: any;
97
101
  fields?: string | undefined;
98
102
  order?: string | undefined;
99
103
  with_deleted?: boolean | undefined;
100
- created_at?: any;
101
- status?: any;
102
- fulfillment_status?: string | undefined;
103
- payment_status?: string | undefined;
104
+ q?: string | undefined;
104
105
  region_id?: string | undefined;
105
106
  sales_channel_id?: string | undefined;
106
- q?: string | undefined;
107
+ fulfillment_status?: string | undefined;
108
+ payment_status?: string | undefined;
107
109
  }, {
110
+ status?: any;
111
+ created_at?: any;
108
112
  offset?: unknown;
109
113
  limit?: unknown;
110
114
  fields?: string | undefined;
111
115
  order?: string | undefined;
112
116
  with_deleted?: unknown;
113
- created_at?: any;
114
- status?: any;
115
- fulfillment_status?: string | undefined;
116
- payment_status?: string | undefined;
117
+ q?: string | undefined;
117
118
  region_id?: string | undefined;
118
119
  sales_channel_id?: string | undefined;
119
- q?: string | undefined;
120
+ fulfillment_status?: string | undefined;
121
+ payment_status?: string | undefined;
120
122
  }>;
121
123
  export type VendorGetOrderChangesParamsType = z.infer<typeof VendorGetOrderChangesParams>;
122
124
  export declare const VendorGetOrderChangesParams: z.ZodObject<{
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export type VendorGetPayoutParamsType = z.infer<typeof VendorGetPayoutParams>;
3
3
  export declare const VendorGetPayoutParams: 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 VendorGetPayoutParams: 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
  import { PriceListStatus, PriceListType } from '@medusajs/framework/utils';
3
3
  export declare const VendorGetPriceListPricesParams: 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,18 +10,19 @@ export declare const VendorGetPriceListPricesParams: 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
  export declare const VendorGetPriceListProductsParams: z.ZodObject<{
23
24
  fields: z.ZodOptional<z.ZodString>;
25
+ } & {
24
26
  offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
25
27
  limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
26
28
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -28,14 +30,14 @@ export declare const VendorGetPriceListProductsParams: z.ZodObject<{
28
30
  }, "strip", z.ZodTypeAny, {
29
31
  offset: number;
30
32
  limit: number;
31
- fields?: string | undefined;
32
33
  order?: string | undefined;
34
+ fields?: string | undefined;
33
35
  with_deleted?: boolean | undefined;
34
36
  }, {
37
+ order?: string | undefined;
35
38
  fields?: string | undefined;
36
39
  offset?: unknown;
37
40
  limit?: unknown;
38
- order?: string | undefined;
39
41
  with_deleted?: unknown;
40
42
  }>;
41
43
  /**
@@ -219,10 +221,10 @@ export declare const VendorCreatePriceList: z.ZodObject<{
219
221
  }, "strip", z.ZodTypeAny, {
220
222
  description: string;
221
223
  title: string;
222
- starts_at?: string | null | undefined;
223
- ends_at?: string | null | undefined;
224
224
  status?: PriceListStatus | undefined;
225
225
  type?: PriceListType | undefined;
226
+ starts_at?: string | null | undefined;
227
+ ends_at?: string | null | undefined;
226
228
  rules?: Record<string, string[]> | undefined;
227
229
  prices?: {
228
230
  currency_code: string;
@@ -235,10 +237,10 @@ export declare const VendorCreatePriceList: z.ZodObject<{
235
237
  }, {
236
238
  description: string;
237
239
  title: string;
238
- starts_at?: string | null | undefined;
239
- ends_at?: string | null | undefined;
240
240
  status?: PriceListStatus | undefined;
241
241
  type?: PriceListType | undefined;
242
+ starts_at?: string | null | undefined;
243
+ ends_at?: string | null | undefined;
242
244
  rules?: Record<string, string[]> | undefined;
243
245
  prices?: {
244
246
  currency_code: string;
@@ -295,20 +297,20 @@ export declare const VendorUpdatePriceList: z.ZodObject<{
295
297
  type: z.ZodOptional<z.ZodNativeEnum<typeof PriceListType>>;
296
298
  rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
297
299
  }, "strip", z.ZodTypeAny, {
298
- title?: string | undefined;
300
+ status?: PriceListStatus | undefined;
301
+ type?: PriceListType | undefined;
299
302
  description?: string | null | undefined;
303
+ title?: string | undefined;
300
304
  starts_at?: string | null | undefined;
301
305
  ends_at?: string | null | undefined;
302
- status?: PriceListStatus | undefined;
303
- type?: PriceListType | undefined;
304
306
  rules?: Record<string, string[]> | undefined;
305
307
  }, {
306
- title?: string | undefined;
308
+ status?: PriceListStatus | undefined;
309
+ type?: PriceListType | undefined;
307
310
  description?: string | null | undefined;
311
+ title?: string | undefined;
308
312
  starts_at?: string | null | undefined;
309
313
  ends_at?: string | null | undefined;
310
- status?: PriceListStatus | undefined;
311
- type?: PriceListType | undefined;
312
314
  rules?: Record<string, string[]> | undefined;
313
315
  }>;
314
316
  /**
@@ -372,7 +374,6 @@ export declare const VendorUpdateProductsOnPriceList: z.ZodObject<{
372
374
  rules?: Record<string, string> | undefined;
373
375
  }>, "many">>;
374
376
  }, "strip", z.ZodTypeAny, {
375
- remove?: string[] | undefined;
376
377
  create?: {
377
378
  currency_code: string;
378
379
  variant_id: string;
@@ -390,8 +391,8 @@ export declare const VendorUpdateProductsOnPriceList: z.ZodObject<{
390
391
  max_quantity?: number | null | undefined;
391
392
  rules?: Record<string, string> | undefined;
392
393
  }[] | undefined;
393
- }, {
394
394
  remove?: string[] | undefined;
395
+ }, {
395
396
  create?: {
396
397
  currency_code: string;
397
398
  variant_id: string;
@@ -409,4 +410,5 @@ export declare const VendorUpdateProductsOnPriceList: z.ZodObject<{
409
410
  max_quantity?: number | null | undefined;
410
411
  rules?: Record<string, string> | undefined;
411
412
  }[] | undefined;
413
+ remove?: string[] | undefined;
412
414
  }>;
@@ -5,48 +5,56 @@ export declare const VendorGetPricePreferencesParamsFields: z.ZodObject<{
5
5
  attribute: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
6
6
  value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- q?: string | undefined;
8
+ value?: string | string[] | undefined;
9
9
  id?: string | string[] | undefined;
10
+ q?: string | undefined;
10
11
  attribute?: string | string[] | undefined;
11
- value?: string | string[] | undefined;
12
12
  }, {
13
- q?: string | undefined;
13
+ value?: string | string[] | undefined;
14
14
  id?: string | string[] | undefined;
15
+ q?: string | undefined;
15
16
  attribute?: string | string[] | undefined;
16
- value?: string | string[] | undefined;
17
17
  }>;
18
- export declare const VendorGetPricePreferencesParams: z.ZodObject<{
18
+ export declare const VendorGetPricePreferencesParams: z.ZodObject<{} & {
19
19
  [x: string]: any;
20
- [x: number]: any;
21
- [x: symbol]: any;
22
- $and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
23
- [x: string]: any;
20
+ $and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
21
+ q: z.ZodOptional<z.ZodString>;
22
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
23
+ attribute: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
24
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ value?: string | string[] | undefined;
27
+ id?: string | string[] | undefined;
28
+ q?: string | undefined;
29
+ attribute?: string | string[] | undefined;
24
30
  }, {
25
- [x: string]: any;
31
+ value?: string | string[] | undefined;
32
+ id?: string | string[] | undefined;
33
+ q?: string | undefined;
34
+ attribute?: string | string[] | undefined;
26
35
  }>, "many">>>;
27
- $or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
28
- [x: string]: any;
36
+ $or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
37
+ q: z.ZodOptional<z.ZodString>;
38
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
39
+ attribute: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
40
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ value?: string | string[] | undefined;
43
+ id?: string | string[] | undefined;
44
+ q?: string | undefined;
45
+ attribute?: string | string[] | undefined;
29
46
  }, {
30
- [x: string]: any;
47
+ value?: string | string[] | undefined;
48
+ id?: string | string[] | undefined;
49
+ q?: string | undefined;
50
+ attribute?: string | string[] | undefined;
31
51
  }>, "many">>>;
32
52
  }, "strip", z.ZodTypeAny, {
33
53
  [x: string]: any;
34
- [x: number]: any;
35
- [x: symbol]: any;
36
- $and?: {
37
- [x: string]: any;
38
- }[] | undefined;
39
- $or?: {
40
- [x: string]: any;
41
- }[] | undefined;
54
+ $and?: unknown;
55
+ $or?: unknown;
42
56
  }, {
43
57
  [x: string]: any;
44
- [x: number]: any;
45
- [x: symbol]: any;
46
- $and?: {
47
- [x: string]: any;
48
- }[] | undefined;
49
- $or?: {
50
- [x: string]: any;
51
- }[] | undefined;
58
+ $and?: unknown;
59
+ $or?: unknown;
52
60
  }>;
@@ -2,42 +2,333 @@ import { z } from 'zod';
2
2
  export type VendorGetProductCategoriesParamsType = z.infer<typeof VendorGetProductCategoriesParams>;
3
3
  export declare const VendorGetProductCategoriesParams: z.ZodObject<{
4
4
  [x: string]: any;
5
- [x: number]: any;
6
- [x: symbol]: any;
7
- $and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
8
- [x: string]: any;
5
+ $and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
6
+ q: z.ZodOptional<z.ZodString>;
7
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
8
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
9
+ handle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
10
+ parent_category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
11
+ include_ancestors_tree: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
12
+ include_descendants_tree: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
13
+ is_internal: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
14
+ is_active: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
15
+ created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
16
+ $eq: any;
17
+ $ne: any;
18
+ $in: any;
19
+ $nin: any;
20
+ $like: any;
21
+ $ilike: any;
22
+ $re: any;
23
+ $contains: any;
24
+ $gt: any;
25
+ $gte: any;
26
+ $lt: any;
27
+ $lte: any;
28
+ }, "strip", z.ZodTypeAny, {
29
+ $eq?: any;
30
+ $ne?: any;
31
+ $in?: any;
32
+ $nin?: any;
33
+ $like?: any;
34
+ $ilike?: any;
35
+ $re?: any;
36
+ $contains?: any;
37
+ $gt?: any;
38
+ $gte?: any;
39
+ $lt?: any;
40
+ $lte?: any;
41
+ }, {
42
+ $eq?: any;
43
+ $ne?: any;
44
+ $in?: any;
45
+ $nin?: any;
46
+ $like?: any;
47
+ $ilike?: any;
48
+ $re?: any;
49
+ $contains?: any;
50
+ $gt?: any;
51
+ $gte?: any;
52
+ $lt?: any;
53
+ $lte?: any;
54
+ }>]>>;
55
+ updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
56
+ $eq: any;
57
+ $ne: any;
58
+ $in: any;
59
+ $nin: any;
60
+ $like: any;
61
+ $ilike: any;
62
+ $re: any;
63
+ $contains: any;
64
+ $gt: any;
65
+ $gte: any;
66
+ $lt: any;
67
+ $lte: any;
68
+ }, "strip", z.ZodTypeAny, {
69
+ $eq?: any;
70
+ $ne?: any;
71
+ $in?: any;
72
+ $nin?: any;
73
+ $like?: any;
74
+ $ilike?: any;
75
+ $re?: any;
76
+ $contains?: any;
77
+ $gt?: any;
78
+ $gte?: any;
79
+ $lt?: any;
80
+ $lte?: any;
81
+ }, {
82
+ $eq?: any;
83
+ $ne?: any;
84
+ $in?: any;
85
+ $nin?: any;
86
+ $like?: any;
87
+ $ilike?: any;
88
+ $re?: any;
89
+ $contains?: any;
90
+ $gt?: any;
91
+ $gte?: any;
92
+ $lt?: any;
93
+ $lte?: any;
94
+ }>]>>;
95
+ deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
96
+ $eq: any;
97
+ $ne: any;
98
+ $in: any;
99
+ $nin: any;
100
+ $like: any;
101
+ $ilike: any;
102
+ $re: any;
103
+ $contains: any;
104
+ $gt: any;
105
+ $gte: any;
106
+ $lt: any;
107
+ $lte: any;
108
+ }, "strip", z.ZodTypeAny, {
109
+ $eq?: any;
110
+ $ne?: any;
111
+ $in?: any;
112
+ $nin?: any;
113
+ $like?: any;
114
+ $ilike?: any;
115
+ $re?: any;
116
+ $contains?: any;
117
+ $gt?: any;
118
+ $gte?: any;
119
+ $lt?: any;
120
+ $lte?: any;
121
+ }, {
122
+ $eq?: any;
123
+ $ne?: any;
124
+ $in?: any;
125
+ $nin?: any;
126
+ $like?: any;
127
+ $ilike?: any;
128
+ $re?: any;
129
+ $contains?: any;
130
+ $gt?: any;
131
+ $gte?: any;
132
+ $lt?: any;
133
+ $lte?: any;
134
+ }>]>>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ id?: string | string[] | undefined;
137
+ created_at?: any;
138
+ updated_at?: any;
139
+ deleted_at?: any;
140
+ description?: string | string[] | undefined;
141
+ q?: string | undefined;
142
+ handle?: string | string[] | undefined;
143
+ is_active?: boolean | undefined;
144
+ is_internal?: boolean | undefined;
145
+ parent_category_id?: string | string[] | undefined;
146
+ include_ancestors_tree?: boolean | undefined;
147
+ include_descendants_tree?: boolean | undefined;
9
148
  }, {
10
- [x: string]: any;
149
+ id?: string | string[] | undefined;
150
+ created_at?: any;
151
+ updated_at?: any;
152
+ deleted_at?: any;
153
+ description?: string | string[] | undefined;
154
+ q?: string | undefined;
155
+ handle?: string | string[] | undefined;
156
+ is_active?: string | boolean | undefined;
157
+ is_internal?: string | boolean | undefined;
158
+ parent_category_id?: string | string[] | undefined;
159
+ include_ancestors_tree?: string | boolean | undefined;
160
+ include_descendants_tree?: string | boolean | undefined;
11
161
  }>, "many">>>;
12
- $or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
13
- [x: string]: any;
162
+ $or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
163
+ q: z.ZodOptional<z.ZodString>;
164
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
165
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
166
+ handle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
167
+ parent_category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
168
+ include_ancestors_tree: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
169
+ include_descendants_tree: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
170
+ is_internal: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
171
+ is_active: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
172
+ created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
173
+ $eq: any;
174
+ $ne: any;
175
+ $in: any;
176
+ $nin: any;
177
+ $like: any;
178
+ $ilike: any;
179
+ $re: any;
180
+ $contains: any;
181
+ $gt: any;
182
+ $gte: any;
183
+ $lt: any;
184
+ $lte: any;
185
+ }, "strip", z.ZodTypeAny, {
186
+ $eq?: any;
187
+ $ne?: any;
188
+ $in?: any;
189
+ $nin?: any;
190
+ $like?: any;
191
+ $ilike?: any;
192
+ $re?: any;
193
+ $contains?: any;
194
+ $gt?: any;
195
+ $gte?: any;
196
+ $lt?: any;
197
+ $lte?: any;
198
+ }, {
199
+ $eq?: any;
200
+ $ne?: any;
201
+ $in?: any;
202
+ $nin?: any;
203
+ $like?: any;
204
+ $ilike?: any;
205
+ $re?: any;
206
+ $contains?: any;
207
+ $gt?: any;
208
+ $gte?: any;
209
+ $lt?: any;
210
+ $lte?: any;
211
+ }>]>>;
212
+ updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
213
+ $eq: any;
214
+ $ne: any;
215
+ $in: any;
216
+ $nin: any;
217
+ $like: any;
218
+ $ilike: any;
219
+ $re: any;
220
+ $contains: any;
221
+ $gt: any;
222
+ $gte: any;
223
+ $lt: any;
224
+ $lte: any;
225
+ }, "strip", z.ZodTypeAny, {
226
+ $eq?: any;
227
+ $ne?: any;
228
+ $in?: any;
229
+ $nin?: any;
230
+ $like?: any;
231
+ $ilike?: any;
232
+ $re?: any;
233
+ $contains?: any;
234
+ $gt?: any;
235
+ $gte?: any;
236
+ $lt?: any;
237
+ $lte?: any;
238
+ }, {
239
+ $eq?: any;
240
+ $ne?: any;
241
+ $in?: any;
242
+ $nin?: any;
243
+ $like?: any;
244
+ $ilike?: any;
245
+ $re?: any;
246
+ $contains?: any;
247
+ $gt?: any;
248
+ $gte?: any;
249
+ $lt?: any;
250
+ $lte?: any;
251
+ }>]>>;
252
+ deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
253
+ $eq: any;
254
+ $ne: any;
255
+ $in: any;
256
+ $nin: any;
257
+ $like: any;
258
+ $ilike: any;
259
+ $re: any;
260
+ $contains: any;
261
+ $gt: any;
262
+ $gte: any;
263
+ $lt: any;
264
+ $lte: any;
265
+ }, "strip", z.ZodTypeAny, {
266
+ $eq?: any;
267
+ $ne?: any;
268
+ $in?: any;
269
+ $nin?: any;
270
+ $like?: any;
271
+ $ilike?: any;
272
+ $re?: any;
273
+ $contains?: any;
274
+ $gt?: any;
275
+ $gte?: any;
276
+ $lt?: any;
277
+ $lte?: any;
278
+ }, {
279
+ $eq?: any;
280
+ $ne?: any;
281
+ $in?: any;
282
+ $nin?: any;
283
+ $like?: any;
284
+ $ilike?: any;
285
+ $re?: any;
286
+ $contains?: any;
287
+ $gt?: any;
288
+ $gte?: any;
289
+ $lt?: any;
290
+ $lte?: any;
291
+ }>]>>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ id?: string | string[] | undefined;
294
+ created_at?: any;
295
+ updated_at?: any;
296
+ deleted_at?: any;
297
+ description?: string | string[] | undefined;
298
+ q?: string | undefined;
299
+ handle?: string | string[] | undefined;
300
+ is_active?: boolean | undefined;
301
+ is_internal?: boolean | undefined;
302
+ parent_category_id?: string | string[] | undefined;
303
+ include_ancestors_tree?: boolean | undefined;
304
+ include_descendants_tree?: boolean | undefined;
14
305
  }, {
15
- [x: string]: any;
306
+ id?: string | string[] | undefined;
307
+ created_at?: any;
308
+ updated_at?: any;
309
+ deleted_at?: any;
310
+ description?: string | string[] | undefined;
311
+ q?: string | undefined;
312
+ handle?: string | string[] | undefined;
313
+ is_active?: string | boolean | undefined;
314
+ is_internal?: string | boolean | undefined;
315
+ parent_category_id?: string | string[] | undefined;
316
+ include_ancestors_tree?: string | boolean | undefined;
317
+ include_descendants_tree?: string | boolean | undefined;
16
318
  }>, "many">>>;
17
319
  }, "strip", z.ZodTypeAny, {
18
320
  [x: string]: any;
19
- [x: number]: any;
20
- [x: symbol]: any;
21
- $and?: {
22
- [x: string]: any;
23
- }[] | undefined;
24
- $or?: {
25
- [x: string]: any;
26
- }[] | undefined;
321
+ $and?: unknown;
322
+ $or?: unknown;
27
323
  }, {
28
324
  [x: string]: any;
29
- [x: number]: any;
30
- [x: symbol]: any;
31
- $and?: {
32
- [x: string]: any;
33
- }[] | undefined;
34
- $or?: {
35
- [x: string]: any;
36
- }[] | undefined;
325
+ $and?: unknown;
326
+ $or?: unknown;
37
327
  }>;
38
328
  export type VendorGetProductCategoriesProductsParamsType = z.infer<typeof VendorGetProductCategoriesProductsParams>;
39
329
  export declare const VendorGetProductCategoriesProductsParams: z.ZodObject<{
40
330
  fields: z.ZodOptional<z.ZodString>;
331
+ } & {
41
332
  offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
42
333
  limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
43
334
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -45,13 +336,13 @@ export declare const VendorGetProductCategoriesProductsParams: z.ZodObject<{
45
336
  }, "strip", z.ZodTypeAny, {
46
337
  offset: number;
47
338
  limit: number;
48
- fields?: string | undefined;
49
339
  order?: string | undefined;
340
+ fields?: string | undefined;
50
341
  with_deleted?: boolean | undefined;
51
342
  }, {
343
+ order?: string | undefined;
52
344
  fields?: string | undefined;
53
345
  offset?: unknown;
54
346
  limit?: unknown;
55
- order?: string | undefined;
56
347
  with_deleted?: unknown;
57
348
  }>;