@medusajs/medusa 2.8.8-snapshot-20250714120129 → 2.8.8-snapshot-20250714132415

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 (119) hide show
  1. package/dist/api/admin/api-keys/validators.d.ts +383 -33
  2. package/dist/api/admin/api-keys/validators.d.ts.map +1 -1
  3. package/dist/api/admin/campaigns/validators.d.ts +65 -43
  4. package/dist/api/admin/campaigns/validators.d.ts.map +1 -1
  5. package/dist/api/admin/claims/validators.d.ts +64 -61
  6. package/dist/api/admin/claims/validators.d.ts.map +1 -1
  7. package/dist/api/admin/collections/validators.d.ts +288 -34
  8. package/dist/api/admin/collections/validators.d.ts.map +1 -1
  9. package/dist/api/admin/currencies/validators.d.ts +23 -27
  10. package/dist/api/admin/currencies/validators.d.ts.map +1 -1
  11. package/dist/api/admin/customer-groups/validators.d.ts +763 -65
  12. package/dist/api/admin/customer-groups/validators.d.ts.map +1 -1
  13. package/dist/api/admin/customers/validators.d.ts +726 -62
  14. package/dist/api/admin/customers/validators.d.ts.map +1 -1
  15. package/dist/api/admin/draft-orders/validators.d.ts +330 -160
  16. package/dist/api/admin/draft-orders/validators.d.ts.map +1 -1
  17. package/dist/api/admin/exchanges/validators.d.ts +52 -49
  18. package/dist/api/admin/exchanges/validators.d.ts.map +1 -1
  19. package/dist/api/admin/fulfillment-providers/validators.d.ts +9 -7
  20. package/dist/api/admin/fulfillment-providers/validators.d.ts.map +1 -1
  21. package/dist/api/admin/fulfillment-sets/validators/geo-zone.d.ts +8 -4
  22. package/dist/api/admin/fulfillment-sets/validators/geo-zone.d.ts.map +1 -1
  23. package/dist/api/admin/fulfillment-sets/validators.d.ts +42 -30
  24. package/dist/api/admin/fulfillment-sets/validators.d.ts.map +1 -1
  25. package/dist/api/admin/fulfillments/validators.d.ts +6 -6
  26. package/dist/api/admin/inventory-items/validators.d.ts +492 -108
  27. package/dist/api/admin/inventory-items/validators.d.ts.map +1 -1
  28. package/dist/api/admin/invites/validators.d.ts +282 -27
  29. package/dist/api/admin/invites/validators.d.ts.map +1 -1
  30. package/dist/api/admin/notifications/validators.d.ts +29 -27
  31. package/dist/api/admin/notifications/validators.d.ts.map +1 -1
  32. package/dist/api/admin/order-edits/validators.d.ts +22 -22
  33. package/dist/api/admin/orders/validators.d.ts +51 -46
  34. package/dist/api/admin/orders/validators.d.ts.map +1 -1
  35. package/dist/api/admin/payments/validators.d.ts +304 -54
  36. package/dist/api/admin/payments/validators.d.ts.map +1 -1
  37. package/dist/api/admin/price-lists/validators.d.ts +230 -54
  38. package/dist/api/admin/price-lists/validators.d.ts.map +1 -1
  39. package/dist/api/admin/price-preferences/validators.d.ts +39 -31
  40. package/dist/api/admin/price-preferences/validators.d.ts.map +1 -1
  41. package/dist/api/admin/product-categories/validators.d.ts +339 -48
  42. package/dist/api/admin/product-categories/validators.d.ts.map +1 -1
  43. package/dist/api/admin/product-tags/validators.d.ts +281 -27
  44. package/dist/api/admin/product-tags/validators.d.ts.map +1 -1
  45. package/dist/api/admin/product-types/validators.d.ts +281 -27
  46. package/dist/api/admin/product-types/validators.d.ts.map +1 -1
  47. package/dist/api/admin/product-variants/validators.d.ts +291 -31
  48. package/dist/api/admin/product-variants/validators.d.ts.map +1 -1
  49. package/dist/api/admin/products/validators.d.ts +1983 -537
  50. package/dist/api/admin/products/validators.d.ts.map +1 -1
  51. package/dist/api/admin/products/validators.js.map +1 -1
  52. package/dist/api/admin/promotions/validators.d.ts +486 -125
  53. package/dist/api/admin/promotions/validators.d.ts.map +1 -1
  54. package/dist/api/admin/refund-reasons/validators.d.ts +12 -10
  55. package/dist/api/admin/refund-reasons/validators.d.ts.map +1 -1
  56. package/dist/api/admin/regions/validators.d.ts +301 -41
  57. package/dist/api/admin/regions/validators.d.ts.map +1 -1
  58. package/dist/api/admin/reservations/validators.d.ts +25 -23
  59. package/dist/api/admin/reservations/validators.d.ts.map +1 -1
  60. package/dist/api/admin/return-reasons/validators.d.ts +318 -45
  61. package/dist/api/admin/return-reasons/validators.d.ts.map +1 -1
  62. package/dist/api/admin/returns/validators.d.ts +48 -45
  63. package/dist/api/admin/returns/validators.d.ts.map +1 -1
  64. package/dist/api/admin/sales-channels/validators.d.ts +309 -20
  65. package/dist/api/admin/sales-channels/validators.d.ts.map +1 -1
  66. package/dist/api/admin/shipping-options/validators.d.ts +69 -67
  67. package/dist/api/admin/shipping-options/validators.d.ts.map +1 -1
  68. package/dist/api/admin/shipping-profiles/validators.d.ts +291 -31
  69. package/dist/api/admin/shipping-profiles/validators.d.ts.map +1 -1
  70. package/dist/api/admin/stock-locations/validators.d.ts +333 -50
  71. package/dist/api/admin/stock-locations/validators.d.ts.map +1 -1
  72. package/dist/api/admin/stores/validators.d.ts +40 -38
  73. package/dist/api/admin/stores/validators.d.ts.map +1 -1
  74. package/dist/api/admin/tax-providers/validators.d.ts +21 -25
  75. package/dist/api/admin/tax-providers/validators.d.ts.map +1 -1
  76. package/dist/api/admin/tax-rates/validators.d.ts +374 -42
  77. package/dist/api/admin/tax-rates/validators.d.ts.map +1 -1
  78. package/dist/api/admin/tax-regions/validators.d.ts +548 -42
  79. package/dist/api/admin/tax-regions/validators.d.ts.map +1 -1
  80. package/dist/api/admin/users/validators.d.ts +15 -13
  81. package/dist/api/admin/users/validators.d.ts.map +1 -1
  82. package/dist/api/admin/workflows-executions/validators.d.ts +7 -5
  83. package/dist/api/admin/workflows-executions/validators.d.ts.map +1 -1
  84. package/dist/api/store/carts/validators.d.ts +44 -44
  85. package/dist/api/store/collections/validators.d.ts +200 -30
  86. package/dist/api/store/collections/validators.d.ts.map +1 -1
  87. package/dist/api/store/currencies/validators.d.ts +23 -27
  88. package/dist/api/store/currencies/validators.d.ts.map +1 -1
  89. package/dist/api/store/customers/validators.d.ts +17 -13
  90. package/dist/api/store/customers/validators.d.ts.map +1 -1
  91. package/dist/api/store/orders/validators.d.ts +21 -25
  92. package/dist/api/store/orders/validators.d.ts.map +1 -1
  93. package/dist/api/store/payment-providers/validators.d.ts +3 -1
  94. package/dist/api/store/payment-providers/validators.d.ts.map +1 -1
  95. package/dist/api/store/product-categories/validators.d.ts +318 -33
  96. package/dist/api/store/product-categories/validators.d.ts.map +1 -1
  97. package/dist/api/store/product-tags/validators.d.ts +281 -27
  98. package/dist/api/store/product-tags/validators.d.ts.map +1 -1
  99. package/dist/api/store/product-types/validators.d.ts +281 -27
  100. package/dist/api/store/product-types/validators.d.ts.map +1 -1
  101. package/dist/api/store/products/validators.d.ts +666 -83
  102. package/dist/api/store/products/validators.d.ts.map +1 -1
  103. package/dist/api/store/products/validators.js.map +1 -1
  104. package/dist/api/store/regions/validators.d.ts +37 -29
  105. package/dist/api/store/regions/validators.d.ts.map +1 -1
  106. package/dist/api/store/return-reasons/validators.d.ts +3 -2
  107. package/dist/api/store/return-reasons/validators.d.ts.map +1 -1
  108. package/dist/api/store/returns/validators.d.ts +23 -27
  109. package/dist/api/store/returns/validators.d.ts.map +1 -1
  110. package/dist/api/store/shipping-options/validators.d.ts +21 -25
  111. package/dist/api/store/shipping-options/validators.d.ts.map +1 -1
  112. package/dist/api/utils/common-validators/common.d.ts +10 -31
  113. package/dist/api/utils/common-validators/common.d.ts.map +1 -1
  114. package/dist/api/utils/common-validators/common.js.map +1 -1
  115. package/dist/api/utils/common-validators/products/index.d.ts +16 -15
  116. package/dist/api/utils/common-validators/products/index.d.ts.map +1 -1
  117. package/dist/api/utils/validators.d.ts +5 -4
  118. package/dist/api/utils/validators.d.ts.map +1 -1
  119. package/package.json +50 -50
@@ -8,40 +8,222 @@ export declare const AdminGetDraftOrderParams: z.ZodObject<{
8
8
  fields?: string | undefined;
9
9
  }>;
10
10
  export type AdminGetDraftOrdersParamsType = z.infer<typeof AdminGetDraftOrdersParams>;
11
- export declare const AdminGetDraftOrdersParams: z.ZodObject<{
11
+ export declare const AdminGetDraftOrdersParams: z.ZodObject<{} & {
12
12
  [x: string]: any;
13
- [x: number]: any;
14
- [x: symbol]: any;
15
- $and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
16
- [x: string]: any;
13
+ $and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
14
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
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
+ q: z.ZodOptional<z.ZodString>;
96
+ region_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
97
+ sales_channel_id: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
98
+ customer_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ id?: string | string[] | undefined;
101
+ created_at?: any;
102
+ updated_at?: any;
103
+ sales_channel_id?: string[] | undefined;
104
+ q?: string | undefined;
105
+ customer_id?: string | string[] | undefined;
106
+ region_id?: string | string[] | undefined;
17
107
  }, {
18
- [x: string]: any;
108
+ id?: string | string[] | undefined;
109
+ created_at?: any;
110
+ updated_at?: any;
111
+ sales_channel_id?: string[] | undefined;
112
+ q?: string | undefined;
113
+ customer_id?: string | string[] | undefined;
114
+ region_id?: string | string[] | undefined;
19
115
  }>, "many">>>;
20
- $or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
21
- [x: string]: any;
116
+ $or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
117
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
118
+ created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
119
+ $eq: any;
120
+ $ne: any;
121
+ $in: any;
122
+ $nin: any;
123
+ $like: any;
124
+ $ilike: any;
125
+ $re: any;
126
+ $contains: any;
127
+ $gt: any;
128
+ $gte: any;
129
+ $lt: any;
130
+ $lte: any;
131
+ }, "strip", z.ZodTypeAny, {
132
+ $eq?: any;
133
+ $ne?: any;
134
+ $in?: any;
135
+ $nin?: any;
136
+ $like?: any;
137
+ $ilike?: any;
138
+ $re?: any;
139
+ $contains?: any;
140
+ $gt?: any;
141
+ $gte?: any;
142
+ $lt?: any;
143
+ $lte?: any;
144
+ }, {
145
+ $eq?: any;
146
+ $ne?: any;
147
+ $in?: any;
148
+ $nin?: any;
149
+ $like?: any;
150
+ $ilike?: any;
151
+ $re?: any;
152
+ $contains?: any;
153
+ $gt?: any;
154
+ $gte?: any;
155
+ $lt?: any;
156
+ $lte?: any;
157
+ }>]>>;
158
+ updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
159
+ $eq: any;
160
+ $ne: any;
161
+ $in: any;
162
+ $nin: any;
163
+ $like: any;
164
+ $ilike: any;
165
+ $re: any;
166
+ $contains: any;
167
+ $gt: any;
168
+ $gte: any;
169
+ $lt: any;
170
+ $lte: any;
171
+ }, "strip", z.ZodTypeAny, {
172
+ $eq?: any;
173
+ $ne?: any;
174
+ $in?: any;
175
+ $nin?: any;
176
+ $like?: any;
177
+ $ilike?: any;
178
+ $re?: any;
179
+ $contains?: any;
180
+ $gt?: any;
181
+ $gte?: any;
182
+ $lt?: any;
183
+ $lte?: any;
184
+ }, {
185
+ $eq?: any;
186
+ $ne?: any;
187
+ $in?: any;
188
+ $nin?: any;
189
+ $like?: any;
190
+ $ilike?: any;
191
+ $re?: any;
192
+ $contains?: any;
193
+ $gt?: any;
194
+ $gte?: any;
195
+ $lt?: any;
196
+ $lte?: any;
197
+ }>]>>;
198
+ q: z.ZodOptional<z.ZodString>;
199
+ region_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
200
+ sales_channel_id: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
201
+ customer_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ id?: string | string[] | undefined;
204
+ created_at?: any;
205
+ updated_at?: any;
206
+ sales_channel_id?: string[] | undefined;
207
+ q?: string | undefined;
208
+ customer_id?: string | string[] | undefined;
209
+ region_id?: string | string[] | undefined;
22
210
  }, {
23
- [x: string]: any;
211
+ id?: string | string[] | undefined;
212
+ created_at?: any;
213
+ updated_at?: any;
214
+ sales_channel_id?: string[] | undefined;
215
+ q?: string | undefined;
216
+ customer_id?: string | string[] | undefined;
217
+ region_id?: string | string[] | undefined;
24
218
  }>, "many">>>;
25
219
  }, "strip", z.ZodTypeAny, {
26
220
  [x: string]: any;
27
- [x: number]: any;
28
- [x: symbol]: any;
29
- $and?: {
30
- [x: string]: any;
31
- }[] | undefined;
32
- $or?: {
33
- [x: string]: any;
34
- }[] | undefined;
221
+ $and?: unknown;
222
+ $or?: unknown;
35
223
  }, {
36
224
  [x: string]: any;
37
- [x: number]: any;
38
- [x: symbol]: any;
39
- $and?: {
40
- [x: string]: any;
41
- }[] | undefined;
42
- $or?: {
43
- [x: string]: any;
44
- }[] | undefined;
225
+ $and?: unknown;
226
+ $or?: unknown;
45
227
  }>;
46
228
  declare enum Status {
47
229
  completed = "completed"
@@ -65,6 +247,7 @@ declare const CreateDraftOrder: z.ZodObject<{
65
247
  postal_code: z.ZodOptional<z.ZodString>;
66
248
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
67
249
  }, "strict", z.ZodTypeAny, {
250
+ metadata?: Record<string, unknown> | undefined;
68
251
  first_name?: string | undefined;
69
252
  last_name?: string | undefined;
70
253
  phone?: string | undefined;
@@ -75,8 +258,8 @@ declare const CreateDraftOrder: z.ZodObject<{
75
258
  country_code?: string | undefined;
76
259
  province?: string | undefined;
77
260
  postal_code?: string | undefined;
78
- metadata?: Record<string, unknown> | undefined;
79
261
  }, {
262
+ metadata?: Record<string, unknown> | undefined;
80
263
  first_name?: string | undefined;
81
264
  last_name?: string | undefined;
82
265
  phone?: string | undefined;
@@ -87,7 +270,6 @@ declare const CreateDraftOrder: z.ZodObject<{
87
270
  country_code?: string | undefined;
88
271
  province?: string | undefined;
89
272
  postal_code?: string | undefined;
90
- metadata?: Record<string, unknown> | undefined;
91
273
  }>, z.ZodString]>>;
92
274
  shipping_address: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
93
275
  first_name: z.ZodOptional<z.ZodString>;
@@ -102,6 +284,7 @@ declare const CreateDraftOrder: z.ZodObject<{
102
284
  postal_code: z.ZodOptional<z.ZodString>;
103
285
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
104
286
  }, "strict", z.ZodTypeAny, {
287
+ metadata?: Record<string, unknown> | undefined;
105
288
  first_name?: string | undefined;
106
289
  last_name?: string | undefined;
107
290
  phone?: string | undefined;
@@ -112,8 +295,8 @@ declare const CreateDraftOrder: z.ZodObject<{
112
295
  country_code?: string | undefined;
113
296
  province?: string | undefined;
114
297
  postal_code?: string | undefined;
115
- metadata?: Record<string, unknown> | undefined;
116
298
  }, {
299
+ metadata?: Record<string, unknown> | undefined;
117
300
  first_name?: string | undefined;
118
301
  last_name?: string | undefined;
119
302
  phone?: string | undefined;
@@ -124,7 +307,6 @@ declare const CreateDraftOrder: z.ZodObject<{
124
307
  country_code?: string | undefined;
125
308
  province?: string | undefined;
126
309
  postal_code?: string | undefined;
127
- metadata?: Record<string, unknown> | undefined;
128
310
  }>, z.ZodString]>>;
129
311
  items: z.ZodOptional<z.ZodArray<z.ZodObject<{
130
312
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -155,30 +337,30 @@ declare const CreateDraftOrder: z.ZodObject<{
155
337
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
156
338
  }, "strip", z.ZodTypeAny, {
157
339
  quantity: number;
340
+ metadata?: Record<string, unknown> | null | undefined;
158
341
  title?: string | null | undefined;
159
- variant_sku?: string | null | undefined;
160
- variant_barcode?: string | null | undefined;
161
- sku?: string | null | undefined;
162
- barcode?: string | null | undefined;
163
342
  variant_id?: string | null | undefined;
164
343
  unit_price?: string | number | {
165
344
  value: string;
166
345
  precision: number;
167
346
  } | null | undefined;
168
- metadata?: Record<string, unknown> | null | undefined;
169
- }, {
170
- quantity: number;
171
- title?: string | null | undefined;
172
347
  variant_sku?: string | null | undefined;
173
348
  variant_barcode?: string | null | undefined;
174
349
  sku?: string | null | undefined;
175
350
  barcode?: string | null | undefined;
351
+ }, {
352
+ quantity: number;
353
+ metadata?: Record<string, unknown> | null | undefined;
354
+ title?: string | null | undefined;
176
355
  variant_id?: string | null | undefined;
177
356
  unit_price?: string | number | {
178
357
  value: string;
179
358
  precision: number;
180
359
  } | null | undefined;
181
- metadata?: Record<string, unknown> | null | undefined;
360
+ variant_sku?: string | null | undefined;
361
+ variant_barcode?: string | null | undefined;
362
+ sku?: string | null | undefined;
363
+ barcode?: string | null | undefined;
182
364
  }>, "many">>;
183
365
  region_id: z.ZodString;
184
366
  promo_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -202,36 +384,56 @@ declare const CreateDraftOrder: z.ZodObject<{
202
384
  }, "strip", z.ZodTypeAny, {
203
385
  shipping_option_id: string;
204
386
  name: string;
205
- amount: (string | number | {
206
- value: string;
207
- precision: number;
208
- }) & (string | number | {
387
+ amount: string | number | {
209
388
  value: string;
210
389
  precision: number;
211
- } | undefined);
212
- shipping_method_id?: string | null | undefined;
390
+ };
213
391
  data?: Record<string, unknown> | undefined;
392
+ shipping_method_id?: string | null | undefined;
214
393
  }, {
215
394
  shipping_option_id: string;
216
395
  name: string;
217
- amount: (string | number | {
218
- value: string;
219
- precision: number;
220
- }) & (string | number | {
396
+ amount: string | number | {
221
397
  value: string;
222
398
  precision: number;
223
- } | undefined);
224
- shipping_method_id?: string | null | undefined;
399
+ };
225
400
  data?: Record<string, unknown> | undefined;
401
+ shipping_method_id?: string | null | undefined;
226
402
  }>, "many">>;
227
403
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
228
404
  }, "strict", z.ZodTypeAny, {
229
405
  region_id: string;
230
- status?: Status.completed | undefined;
231
- sales_channel_id?: string | null | undefined;
406
+ shipping_methods?: {
407
+ shipping_option_id: string;
408
+ name: string;
409
+ amount: string | number | {
410
+ value: string;
411
+ precision: number;
412
+ };
413
+ data?: Record<string, unknown> | undefined;
414
+ shipping_method_id?: string | null | undefined;
415
+ }[] | undefined;
416
+ items?: {
417
+ quantity: number;
418
+ metadata?: Record<string, unknown> | null | undefined;
419
+ title?: string | null | undefined;
420
+ variant_id?: string | null | undefined;
421
+ unit_price?: string | number | {
422
+ value: string;
423
+ precision: number;
424
+ } | null | undefined;
425
+ variant_sku?: string | null | undefined;
426
+ variant_barcode?: string | null | undefined;
427
+ sku?: string | null | undefined;
428
+ barcode?: string | null | undefined;
429
+ }[] | undefined;
232
430
  email?: string | null | undefined;
233
- customer_id?: string | null | undefined;
234
- billing_address?: string | {
431
+ promo_codes?: string[] | undefined;
432
+ metadata?: Record<string, unknown> | null | undefined;
433
+ currency_code?: string | null | undefined;
434
+ sales_channel_id?: string | null | undefined;
435
+ shipping_address?: string | {
436
+ metadata?: Record<string, unknown> | undefined;
235
437
  first_name?: string | undefined;
236
438
  last_name?: string | undefined;
237
439
  phone?: string | undefined;
@@ -242,9 +444,11 @@ declare const CreateDraftOrder: z.ZodObject<{
242
444
  country_code?: string | undefined;
243
445
  province?: string | undefined;
244
446
  postal_code?: string | undefined;
245
- metadata?: Record<string, unknown> | undefined;
246
447
  } | undefined;
247
- shipping_address?: string | {
448
+ status?: Status | undefined;
449
+ customer_id?: string | null | undefined;
450
+ billing_address?: string | {
451
+ metadata?: Record<string, unknown> | undefined;
248
452
  first_name?: string | undefined;
249
453
  last_name?: string | undefined;
250
454
  phone?: string | undefined;
@@ -255,46 +459,41 @@ declare const CreateDraftOrder: z.ZodObject<{
255
459
  country_code?: string | undefined;
256
460
  province?: string | undefined;
257
461
  postal_code?: string | undefined;
258
- metadata?: Record<string, unknown> | undefined;
259
462
  } | undefined;
463
+ no_notification_order?: boolean | undefined;
464
+ }, {
465
+ region_id: string;
466
+ shipping_methods?: {
467
+ shipping_option_id: string;
468
+ name: string;
469
+ amount: string | number | {
470
+ value: string;
471
+ precision: number;
472
+ };
473
+ data?: Record<string, unknown> | undefined;
474
+ shipping_method_id?: string | null | undefined;
475
+ }[] | undefined;
260
476
  items?: {
261
477
  quantity: number;
478
+ metadata?: Record<string, unknown> | null | undefined;
262
479
  title?: string | null | undefined;
263
- variant_sku?: string | null | undefined;
264
- variant_barcode?: string | null | undefined;
265
- sku?: string | null | undefined;
266
- barcode?: string | null | undefined;
267
480
  variant_id?: string | null | undefined;
268
481
  unit_price?: string | number | {
269
482
  value: string;
270
483
  precision: number;
271
484
  } | null | undefined;
272
- metadata?: Record<string, unknown> | null | undefined;
485
+ variant_sku?: string | null | undefined;
486
+ variant_barcode?: string | null | undefined;
487
+ sku?: string | null | undefined;
488
+ barcode?: string | null | undefined;
273
489
  }[] | undefined;
490
+ email?: string | null | undefined;
274
491
  promo_codes?: string[] | undefined;
275
- currency_code?: string | null | undefined;
276
- no_notification_order?: boolean | undefined;
277
- shipping_methods?: {
278
- shipping_option_id: string;
279
- name: string;
280
- amount: (string | number | {
281
- value: string;
282
- precision: number;
283
- }) & (string | number | {
284
- value: string;
285
- precision: number;
286
- } | undefined);
287
- shipping_method_id?: string | null | undefined;
288
- data?: Record<string, unknown> | undefined;
289
- }[] | undefined;
290
492
  metadata?: Record<string, unknown> | null | undefined;
291
- }, {
292
- region_id: string;
293
- status?: Status.completed | undefined;
493
+ currency_code?: string | null | undefined;
294
494
  sales_channel_id?: string | null | undefined;
295
- email?: string | null | undefined;
296
- customer_id?: string | null | undefined;
297
- billing_address?: string | {
495
+ shipping_address?: string | {
496
+ metadata?: Record<string, unknown> | undefined;
298
497
  first_name?: string | undefined;
299
498
  last_name?: string | undefined;
300
499
  phone?: string | undefined;
@@ -305,9 +504,11 @@ declare const CreateDraftOrder: z.ZodObject<{
305
504
  country_code?: string | undefined;
306
505
  province?: string | undefined;
307
506
  postal_code?: string | undefined;
308
- metadata?: Record<string, unknown> | undefined;
309
507
  } | undefined;
310
- shipping_address?: string | {
508
+ status?: Status | undefined;
509
+ customer_id?: string | null | undefined;
510
+ billing_address?: string | {
511
+ metadata?: Record<string, unknown> | undefined;
311
512
  first_name?: string | undefined;
312
513
  last_name?: string | undefined;
313
514
  phone?: string | undefined;
@@ -318,39 +519,8 @@ declare const CreateDraftOrder: z.ZodObject<{
318
519
  country_code?: string | undefined;
319
520
  province?: string | undefined;
320
521
  postal_code?: string | undefined;
321
- metadata?: Record<string, unknown> | undefined;
322
522
  } | undefined;
323
- items?: {
324
- quantity: number;
325
- title?: string | null | undefined;
326
- variant_sku?: string | null | undefined;
327
- variant_barcode?: string | null | undefined;
328
- sku?: string | null | undefined;
329
- barcode?: string | null | undefined;
330
- variant_id?: string | null | undefined;
331
- unit_price?: string | number | {
332
- value: string;
333
- precision: number;
334
- } | null | undefined;
335
- metadata?: Record<string, unknown> | null | undefined;
336
- }[] | undefined;
337
- promo_codes?: string[] | undefined;
338
- currency_code?: string | null | undefined;
339
523
  no_notification_order?: boolean | undefined;
340
- shipping_methods?: {
341
- shipping_option_id: string;
342
- name: string;
343
- amount: (string | number | {
344
- value: string;
345
- precision: number;
346
- }) & (string | number | {
347
- value: string;
348
- precision: number;
349
- } | undefined);
350
- shipping_method_id?: string | null | undefined;
351
- data?: Record<string, unknown> | undefined;
352
- }[] | undefined;
353
- metadata?: Record<string, unknown> | null | undefined;
354
524
  }>;
355
525
  export declare const AdminCreateDraftOrder: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
356
526
  [x: string]: any;
@@ -375,6 +545,7 @@ export declare const AdminUpdateDraftOrder: z.ZodObject<{
375
545
  postal_code: z.ZodOptional<z.ZodString>;
376
546
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
377
547
  }, "strict", z.ZodTypeAny, {
548
+ metadata?: Record<string, unknown> | undefined;
378
549
  first_name?: string | undefined;
379
550
  last_name?: string | undefined;
380
551
  phone?: string | undefined;
@@ -385,8 +556,8 @@ export declare const AdminUpdateDraftOrder: z.ZodObject<{
385
556
  country_code?: string | undefined;
386
557
  province?: string | undefined;
387
558
  postal_code?: string | undefined;
388
- metadata?: Record<string, unknown> | undefined;
389
559
  }, {
560
+ metadata?: Record<string, unknown> | undefined;
390
561
  first_name?: string | undefined;
391
562
  last_name?: string | undefined;
392
563
  phone?: string | undefined;
@@ -397,7 +568,6 @@ export declare const AdminUpdateDraftOrder: z.ZodObject<{
397
568
  country_code?: string | undefined;
398
569
  province?: string | undefined;
399
570
  postal_code?: string | undefined;
400
- metadata?: Record<string, unknown> | undefined;
401
571
  }>>;
402
572
  billing_address: z.ZodOptional<z.ZodObject<{
403
573
  first_name: z.ZodOptional<z.ZodString>;
@@ -412,6 +582,7 @@ export declare const AdminUpdateDraftOrder: z.ZodObject<{
412
582
  postal_code: z.ZodOptional<z.ZodString>;
413
583
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
414
584
  }, "strict", z.ZodTypeAny, {
585
+ metadata?: Record<string, unknown> | undefined;
415
586
  first_name?: string | undefined;
416
587
  last_name?: string | undefined;
417
588
  phone?: string | undefined;
@@ -422,8 +593,8 @@ export declare const AdminUpdateDraftOrder: z.ZodObject<{
422
593
  country_code?: string | undefined;
423
594
  province?: string | undefined;
424
595
  postal_code?: string | undefined;
425
- metadata?: Record<string, unknown> | undefined;
426
596
  }, {
597
+ metadata?: Record<string, unknown> | undefined;
427
598
  first_name?: string | undefined;
428
599
  last_name?: string | undefined;
429
600
  phone?: string | undefined;
@@ -434,14 +605,14 @@ export declare const AdminUpdateDraftOrder: z.ZodObject<{
434
605
  country_code?: string | undefined;
435
606
  province?: string | undefined;
436
607
  postal_code?: string | undefined;
437
- metadata?: Record<string, unknown> | undefined;
438
608
  }>>;
439
609
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
440
610
  }, "strip", z.ZodTypeAny, {
441
611
  email?: string | undefined;
442
- customer_id?: string | undefined;
612
+ metadata?: Record<string, unknown> | null | undefined;
443
613
  sales_channel_id?: string | undefined;
444
614
  shipping_address?: {
615
+ metadata?: Record<string, unknown> | undefined;
445
616
  first_name?: string | undefined;
446
617
  last_name?: string | undefined;
447
618
  phone?: string | undefined;
@@ -452,9 +623,10 @@ export declare const AdminUpdateDraftOrder: z.ZodObject<{
452
623
  country_code?: string | undefined;
453
624
  province?: string | undefined;
454
625
  postal_code?: string | undefined;
455
- metadata?: Record<string, unknown> | undefined;
456
626
  } | undefined;
627
+ customer_id?: string | undefined;
457
628
  billing_address?: {
629
+ metadata?: Record<string, unknown> | undefined;
458
630
  first_name?: string | undefined;
459
631
  last_name?: string | undefined;
460
632
  phone?: string | undefined;
@@ -465,14 +637,13 @@ export declare const AdminUpdateDraftOrder: z.ZodObject<{
465
637
  country_code?: string | undefined;
466
638
  province?: string | undefined;
467
639
  postal_code?: string | undefined;
468
- metadata?: Record<string, unknown> | undefined;
469
640
  } | undefined;
470
- metadata?: Record<string, unknown> | null | undefined;
471
641
  }, {
472
642
  email?: string | undefined;
473
- customer_id?: string | undefined;
643
+ metadata?: Record<string, unknown> | null | undefined;
474
644
  sales_channel_id?: string | undefined;
475
645
  shipping_address?: {
646
+ metadata?: Record<string, unknown> | undefined;
476
647
  first_name?: string | undefined;
477
648
  last_name?: string | undefined;
478
649
  phone?: string | undefined;
@@ -483,9 +654,10 @@ export declare const AdminUpdateDraftOrder: z.ZodObject<{
483
654
  country_code?: string | undefined;
484
655
  province?: string | undefined;
485
656
  postal_code?: string | undefined;
486
- metadata?: Record<string, unknown> | undefined;
487
657
  } | undefined;
658
+ customer_id?: string | undefined;
488
659
  billing_address?: {
660
+ metadata?: Record<string, unknown> | undefined;
489
661
  first_name?: string | undefined;
490
662
  last_name?: string | undefined;
491
663
  phone?: string | undefined;
@@ -496,9 +668,7 @@ export declare const AdminUpdateDraftOrder: z.ZodObject<{
496
668
  country_code?: string | undefined;
497
669
  province?: string | undefined;
498
670
  postal_code?: string | undefined;
499
- metadata?: Record<string, unknown> | undefined;
500
671
  } | undefined;
501
- metadata?: Record<string, unknown> | null | undefined;
502
672
  }>;
503
673
  export type AdminAddDraftOrderPromotionsType = z.infer<typeof AdminAddDraftOrderPromotions>;
504
674
  export declare const AdminAddDraftOrderPromotions: z.ZodObject<{
@@ -524,14 +694,14 @@ export declare const AdminUpdateDraftOrderItem: z.ZodObject<{
524
694
  internal_note: z.ZodOptional<z.ZodString>;
525
695
  }, "strip", z.ZodTypeAny, {
526
696
  quantity: number;
697
+ internal_note?: string | undefined;
527
698
  unit_price?: number | null | undefined;
528
699
  compare_at_unit_price?: number | null | undefined;
529
- internal_note?: string | undefined;
530
700
  }, {
531
701
  quantity: number;
702
+ internal_note?: string | undefined;
532
703
  unit_price?: number | null | undefined;
533
704
  compare_at_unit_price?: number | null | undefined;
534
- internal_note?: string | undefined;
535
705
  }>;
536
706
  export type AdminUpdateDraftOrderActionItemType = z.infer<typeof AdminUpdateDraftOrderActionItem>;
537
707
  export declare const AdminUpdateDraftOrderActionItem: z.ZodObject<{
@@ -541,14 +711,14 @@ export declare const AdminUpdateDraftOrderActionItem: z.ZodObject<{
541
711
  internal_note: z.ZodOptional<z.ZodString>;
542
712
  }, "strip", z.ZodTypeAny, {
543
713
  quantity: number;
714
+ internal_note?: string | undefined;
544
715
  unit_price?: number | null | undefined;
545
716
  compare_at_unit_price?: number | null | undefined;
546
- internal_note?: string | undefined;
547
717
  }, {
548
718
  quantity: number;
719
+ internal_note?: string | undefined;
549
720
  unit_price?: number | null | undefined;
550
721
  compare_at_unit_price?: number | null | undefined;
551
- internal_note?: string | undefined;
552
722
  }>;
553
723
  export declare const AdminAddDraftOrderItems: z.ZodObject<{
554
724
  items: z.ZodEffects<z.ZodArray<z.ZodObject<{
@@ -562,62 +732,62 @@ export declare const AdminAddDraftOrderItems: z.ZodObject<{
562
732
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
563
733
  }, "strip", z.ZodTypeAny, {
564
734
  quantity: number;
565
- variant_id?: string | undefined;
735
+ metadata?: Record<string, unknown> | undefined;
736
+ internal_note?: string | null | undefined;
566
737
  title?: string | undefined;
738
+ variant_id?: string | undefined;
567
739
  unit_price?: number | null | undefined;
568
740
  compare_at_unit_price?: number | null | undefined;
569
- internal_note?: string | null | undefined;
570
741
  allow_backorder?: boolean | undefined;
571
- metadata?: Record<string, unknown> | undefined;
572
742
  }, {
573
743
  quantity: number;
574
- variant_id?: string | undefined;
744
+ metadata?: Record<string, unknown> | undefined;
745
+ internal_note?: string | null | undefined;
575
746
  title?: string | undefined;
747
+ variant_id?: string | undefined;
576
748
  unit_price?: number | null | undefined;
577
749
  compare_at_unit_price?: number | null | undefined;
578
- internal_note?: string | null | undefined;
579
750
  allow_backorder?: boolean | undefined;
580
- metadata?: Record<string, unknown> | undefined;
581
751
  }>, "many">, {
582
752
  quantity: number;
583
- variant_id?: string | undefined;
753
+ metadata?: Record<string, unknown> | undefined;
754
+ internal_note?: string | null | undefined;
584
755
  title?: string | undefined;
756
+ variant_id?: string | undefined;
585
757
  unit_price?: number | null | undefined;
586
758
  compare_at_unit_price?: number | null | undefined;
587
- internal_note?: string | null | undefined;
588
759
  allow_backorder?: boolean | undefined;
589
- metadata?: Record<string, unknown> | undefined;
590
760
  }[], {
591
761
  quantity: number;
592
- variant_id?: string | undefined;
762
+ metadata?: Record<string, unknown> | undefined;
763
+ internal_note?: string | null | undefined;
593
764
  title?: string | undefined;
765
+ variant_id?: string | undefined;
594
766
  unit_price?: number | null | undefined;
595
767
  compare_at_unit_price?: number | null | undefined;
596
- internal_note?: string | null | undefined;
597
768
  allow_backorder?: boolean | undefined;
598
- metadata?: Record<string, unknown> | undefined;
599
769
  }[]>;
600
770
  }, "strip", z.ZodTypeAny, {
601
771
  items: {
602
772
  quantity: number;
603
- variant_id?: string | undefined;
773
+ metadata?: Record<string, unknown> | undefined;
774
+ internal_note?: string | null | undefined;
604
775
  title?: string | undefined;
776
+ variant_id?: string | undefined;
605
777
  unit_price?: number | null | undefined;
606
778
  compare_at_unit_price?: number | null | undefined;
607
- internal_note?: string | null | undefined;
608
779
  allow_backorder?: boolean | undefined;
609
- metadata?: Record<string, unknown> | undefined;
610
780
  }[];
611
781
  }, {
612
782
  items: {
613
783
  quantity: number;
614
- variant_id?: string | undefined;
784
+ metadata?: Record<string, unknown> | undefined;
785
+ internal_note?: string | null | undefined;
615
786
  title?: string | undefined;
787
+ variant_id?: string | undefined;
616
788
  unit_price?: number | null | undefined;
617
789
  compare_at_unit_price?: number | null | undefined;
618
- internal_note?: string | null | undefined;
619
790
  allow_backorder?: boolean | undefined;
620
- metadata?: Record<string, unknown> | undefined;
621
791
  }[];
622
792
  }>;
623
793
  export type AdminAddDraftOrderItemsType = z.infer<typeof AdminAddDraftOrderItems>;
@@ -629,16 +799,16 @@ export declare const AdminAddDraftOrderShippingMethod: z.ZodObject<{
629
799
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
630
800
  }, "strip", z.ZodTypeAny, {
631
801
  shipping_option_id: string;
632
- custom_amount?: number | undefined;
802
+ metadata?: Record<string, unknown> | undefined;
633
803
  description?: string | undefined;
634
804
  internal_note?: string | undefined;
635
- metadata?: Record<string, unknown> | undefined;
805
+ custom_amount?: number | undefined;
636
806
  }, {
637
807
  shipping_option_id: string;
638
- custom_amount?: number | undefined;
808
+ metadata?: Record<string, unknown> | undefined;
639
809
  description?: string | undefined;
640
810
  internal_note?: string | undefined;
641
- metadata?: Record<string, unknown> | undefined;
811
+ custom_amount?: number | undefined;
642
812
  }>;
643
813
  export type AdminAddDraftOrderShippingMethodType = z.infer<typeof AdminAddDraftOrderShippingMethod>;
644
814
  export declare const AdminUpdateDraftOrderActionShippingMethod: z.ZodObject<{
@@ -649,16 +819,16 @@ export declare const AdminUpdateDraftOrderActionShippingMethod: z.ZodObject<{
649
819
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
650
820
  }, "strip", z.ZodTypeAny, {
651
821
  shipping_option_id: string;
652
- custom_amount?: number | null | undefined;
822
+ metadata?: Record<string, unknown> | null | undefined;
653
823
  description?: string | null | undefined;
654
824
  internal_note?: string | null | undefined;
655
- metadata?: Record<string, unknown> | null | undefined;
825
+ custom_amount?: number | null | undefined;
656
826
  }, {
657
827
  shipping_option_id: string;
658
- custom_amount?: number | null | undefined;
828
+ metadata?: Record<string, unknown> | null | undefined;
659
829
  description?: string | null | undefined;
660
830
  internal_note?: string | null | undefined;
661
- metadata?: Record<string, unknown> | null | undefined;
831
+ custom_amount?: number | null | undefined;
662
832
  }>;
663
833
  export type AdminUpdateDraftOrderActionShippingMethodType = z.infer<typeof AdminUpdateDraftOrderActionShippingMethod>;
664
834
  export declare const AdminUpdateDraftOrderShippingMethod: z.ZodObject<{
@@ -667,12 +837,12 @@ export declare const AdminUpdateDraftOrderShippingMethod: z.ZodObject<{
667
837
  internal_note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
668
838
  }, "strip", z.ZodTypeAny, {
669
839
  shipping_option_id?: string | undefined;
670
- custom_amount?: number | undefined;
671
840
  internal_note?: string | null | undefined;
841
+ custom_amount?: number | undefined;
672
842
  }, {
673
843
  shipping_option_id?: string | undefined;
674
- custom_amount?: number | undefined;
675
844
  internal_note?: string | null | undefined;
845
+ custom_amount?: number | undefined;
676
846
  }>;
677
847
  export type AdminUpdateDraftOrderShippingMethodType = z.infer<typeof AdminUpdateDraftOrderShippingMethod>;
678
848
  export {};