@wix/auto_sdk_ecom_shipping-options 1.0.234 → 1.0.235

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.
@@ -52,275 +52,307 @@ module.exports = __toCommonJS(schemas_exports);
52
52
  // src/ecom-v1-shipping-option-shipping-options.schemas.ts
53
53
  var z = __toESM(require("zod"));
54
54
  var CreateShippingOptionRequest = /* @__PURE__ */ z.object({
55
- shippingOption: z.object({
56
- _id: z.string().describe("ShippingOption ID.").regex(
55
+ shippingOption: /* @__PURE__ */ z.object({
56
+ _id: /* @__PURE__ */ z.string().describe("ShippingOption ID.").regex(
57
57
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
58
58
  "Must be a valid GUID"
59
59
  ).optional().nullable(),
60
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
60
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
61
61
  "Revision number, which increments by 1 each time the ShippingOption is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the ShippingOption.\n\nIgnored when creating a ShippingOption."
62
62
  ).optional().nullable(),
63
- _createdDate: z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
64
- _updatedDate: z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
65
- deliveryRegionId: z.string().describe("Associated delivery region id.").regex(
63
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
64
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
65
+ deliveryRegionId: /* @__PURE__ */ z.string().describe("Associated delivery region id.").regex(
66
66
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
67
67
  "Must be a valid GUID"
68
68
  ).optional(),
69
- deliveryRegionIds: z.array(z.string()).max(50).optional(),
70
- title: z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
71
- estimatedDeliveryTime: z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
72
- rates: z.array(
73
- z.object({
74
- amount: z.string().describe(
69
+ deliveryRegionIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(50).optional(),
70
+ title: /* @__PURE__ */ z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
71
+ estimatedDeliveryTime: /* @__PURE__ */ z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
72
+ rates: /* @__PURE__ */ z.array(
73
+ /* @__PURE__ */ z.object({
74
+ amount: /* @__PURE__ */ z.string().describe(
75
75
  "there is an AND logic between all the conditions. Empty conditions means true.\nThe amount of the rate that will be returned if all conditions are met."
76
76
  ).optional(),
77
- conditions: z.array(
78
- z.object({
79
- type: z.enum([
77
+ conditions: /* @__PURE__ */ z.array(
78
+ /* @__PURE__ */ z.object({
79
+ type: /* @__PURE__ */ z.enum([
80
80
  "BY_TOTAL_WEIGHT",
81
81
  "BY_TOTAL_PRICE",
82
82
  "BY_TOTAL_QUANTITY"
83
83
  ]).optional(),
84
- value: z.string().describe(
84
+ value: /* @__PURE__ */ z.string().describe(
85
85
  "The value in respective to the condition type\nWeight values should be in the same weight units of the store: KG / LB\nTotal price is according to the store currency\nQuantity of items should be integers"
86
86
  ).optional(),
87
- operator: z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).optional()
87
+ operator: /* @__PURE__ */ z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).optional()
88
88
  })
89
89
  ).min(0).max(10).optional(),
90
- multiplyByQuantity: z.boolean().describe(
90
+ multiplyByQuantity: /* @__PURE__ */ z.boolean().describe(
91
91
  "When this flag is set to true, multiply the amount by the number of line items passed on the request."
92
92
  ).optional()
93
93
  })
94
94
  ).min(1).max(50).optional(),
95
- extendedFields: z.object({
96
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
95
+ extendedFields: /* @__PURE__ */ z.object({
96
+ namespaces: /* @__PURE__ */ z.record(
97
+ /* @__PURE__ */ z.string(),
98
+ /* @__PURE__ */ z.record(
99
+ /* @__PURE__ */ z.string(),
100
+ /* @__PURE__ */ z.any()
101
+ )
102
+ ).describe(
97
103
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
98
104
  ).optional()
99
105
  }).describe("Data Extensions").optional()
100
106
  }).describe("ShippingOption to be created.")
101
107
  });
102
108
  var CreateShippingOptionResponse = /* @__PURE__ */ z.object({
103
- _id: z.string().describe("ShippingOption ID.").regex(
109
+ _id: /* @__PURE__ */ z.string().describe("ShippingOption ID.").regex(
104
110
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
105
111
  "Must be a valid GUID"
106
112
  ).optional().nullable(),
107
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
113
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
108
114
  "Revision number, which increments by 1 each time the ShippingOption is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the ShippingOption.\n\nIgnored when creating a ShippingOption."
109
115
  ).optional().nullable(),
110
- _createdDate: z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
111
- _updatedDate: z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
112
- deliveryRegionId: z.string().describe("Associated delivery region id.").regex(
116
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
117
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
118
+ deliveryRegionId: /* @__PURE__ */ z.string().describe("Associated delivery region id.").regex(
113
119
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
114
120
  "Must be a valid GUID"
115
121
  ).optional(),
116
- deliveryRegionIds: z.array(z.string()).max(50).optional(),
117
- title: z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
118
- estimatedDeliveryTime: z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
119
- rates: z.array(
120
- z.object({
121
- amount: z.string().describe(
122
+ deliveryRegionIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(50).optional(),
123
+ title: /* @__PURE__ */ z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
124
+ estimatedDeliveryTime: /* @__PURE__ */ z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
125
+ rates: /* @__PURE__ */ z.array(
126
+ /* @__PURE__ */ z.object({
127
+ amount: /* @__PURE__ */ z.string().describe(
122
128
  "there is an AND logic between all the conditions. Empty conditions means true.\nThe amount of the rate that will be returned if all conditions are met."
123
129
  ).optional(),
124
- conditions: z.array(
125
- z.object({
126
- type: z.enum([
130
+ conditions: /* @__PURE__ */ z.array(
131
+ /* @__PURE__ */ z.object({
132
+ type: /* @__PURE__ */ z.enum([
127
133
  "BY_TOTAL_WEIGHT",
128
134
  "BY_TOTAL_PRICE",
129
135
  "BY_TOTAL_QUANTITY"
130
136
  ]).optional(),
131
- value: z.string().describe(
137
+ value: /* @__PURE__ */ z.string().describe(
132
138
  "The value in respective to the condition type\nWeight values should be in the same weight units of the store: KG / LB\nTotal price is according to the store currency\nQuantity of items should be integers"
133
139
  ).optional(),
134
- operator: z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
140
+ operator: /* @__PURE__ */ z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
135
141
  })
136
142
  ).min(0).max(10).optional(),
137
- multiplyByQuantity: z.boolean().describe(
143
+ multiplyByQuantity: /* @__PURE__ */ z.boolean().describe(
138
144
  "When this flag is set to true, multiply the amount by the number of line items passed on the request."
139
145
  ).optional()
140
146
  })
141
147
  ).min(1).max(50).optional(),
142
- extendedFields: z.object({
143
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
148
+ extendedFields: /* @__PURE__ */ z.object({
149
+ namespaces: /* @__PURE__ */ z.record(
150
+ /* @__PURE__ */ z.string(),
151
+ /* @__PURE__ */ z.record(
152
+ /* @__PURE__ */ z.string(),
153
+ /* @__PURE__ */ z.any()
154
+ )
155
+ ).describe(
144
156
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
145
157
  ).optional()
146
158
  }).describe("Data Extensions").optional()
147
159
  });
148
160
  var GetShippingOptionRequest = /* @__PURE__ */ z.object({
149
- shippingOptionId: z.string().describe("ID of the ShippingOption to retrieve.").regex(
161
+ shippingOptionId: /* @__PURE__ */ z.string().describe("ID of the ShippingOption to retrieve.").regex(
150
162
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
151
163
  "Must be a valid GUID"
152
164
  )
153
165
  });
154
166
  var GetShippingOptionResponse = /* @__PURE__ */ z.object({
155
- _id: z.string().describe("ShippingOption ID.").regex(
167
+ _id: /* @__PURE__ */ z.string().describe("ShippingOption ID.").regex(
156
168
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
157
169
  "Must be a valid GUID"
158
170
  ).optional().nullable(),
159
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
171
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
160
172
  "Revision number, which increments by 1 each time the ShippingOption is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the ShippingOption.\n\nIgnored when creating a ShippingOption."
161
173
  ).optional().nullable(),
162
- _createdDate: z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
163
- _updatedDate: z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
164
- deliveryRegionId: z.string().describe("Associated delivery region id.").regex(
174
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
175
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
176
+ deliveryRegionId: /* @__PURE__ */ z.string().describe("Associated delivery region id.").regex(
165
177
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
166
178
  "Must be a valid GUID"
167
179
  ).optional(),
168
- deliveryRegionIds: z.array(z.string()).max(50).optional(),
169
- title: z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
170
- estimatedDeliveryTime: z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
171
- rates: z.array(
172
- z.object({
173
- amount: z.string().describe(
180
+ deliveryRegionIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(50).optional(),
181
+ title: /* @__PURE__ */ z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
182
+ estimatedDeliveryTime: /* @__PURE__ */ z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
183
+ rates: /* @__PURE__ */ z.array(
184
+ /* @__PURE__ */ z.object({
185
+ amount: /* @__PURE__ */ z.string().describe(
174
186
  "there is an AND logic between all the conditions. Empty conditions means true.\nThe amount of the rate that will be returned if all conditions are met."
175
187
  ).optional(),
176
- conditions: z.array(
177
- z.object({
178
- type: z.enum([
188
+ conditions: /* @__PURE__ */ z.array(
189
+ /* @__PURE__ */ z.object({
190
+ type: /* @__PURE__ */ z.enum([
179
191
  "BY_TOTAL_WEIGHT",
180
192
  "BY_TOTAL_PRICE",
181
193
  "BY_TOTAL_QUANTITY"
182
194
  ]).optional(),
183
- value: z.string().describe(
195
+ value: /* @__PURE__ */ z.string().describe(
184
196
  "The value in respective to the condition type\nWeight values should be in the same weight units of the store: KG / LB\nTotal price is according to the store currency\nQuantity of items should be integers"
185
197
  ).optional(),
186
- operator: z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
198
+ operator: /* @__PURE__ */ z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
187
199
  })
188
200
  ).min(0).max(10).optional(),
189
- multiplyByQuantity: z.boolean().describe(
201
+ multiplyByQuantity: /* @__PURE__ */ z.boolean().describe(
190
202
  "When this flag is set to true, multiply the amount by the number of line items passed on the request."
191
203
  ).optional()
192
204
  })
193
205
  ).min(1).max(50).optional(),
194
- extendedFields: z.object({
195
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
206
+ extendedFields: /* @__PURE__ */ z.object({
207
+ namespaces: /* @__PURE__ */ z.record(
208
+ /* @__PURE__ */ z.string(),
209
+ /* @__PURE__ */ z.record(
210
+ /* @__PURE__ */ z.string(),
211
+ /* @__PURE__ */ z.any()
212
+ )
213
+ ).describe(
196
214
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
197
215
  ).optional()
198
216
  }).describe("Data Extensions").optional()
199
217
  });
200
218
  var UpdateShippingOptionRequest = /* @__PURE__ */ z.object({
201
- _id: z.string().describe("ShippingOption ID.").regex(
219
+ _id: /* @__PURE__ */ z.string().describe("ShippingOption ID.").regex(
202
220
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
203
221
  "Must be a valid GUID"
204
222
  ),
205
- shippingOption: z.object({
206
- _id: z.string().describe("ShippingOption ID.").regex(
223
+ shippingOption: /* @__PURE__ */ z.object({
224
+ _id: /* @__PURE__ */ z.string().describe("ShippingOption ID.").regex(
207
225
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
208
226
  "Must be a valid GUID"
209
227
  ).optional().nullable(),
210
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
228
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
211
229
  "Revision number, which increments by 1 each time the ShippingOption is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the ShippingOption.\n\nIgnored when creating a ShippingOption."
212
230
  ),
213
- _createdDate: z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
214
- _updatedDate: z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
215
- deliveryRegionId: z.string().describe("Associated delivery region id.").regex(
231
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
232
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
233
+ deliveryRegionId: /* @__PURE__ */ z.string().describe("Associated delivery region id.").regex(
216
234
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
217
235
  "Must be a valid GUID"
218
236
  ).optional(),
219
- deliveryRegionIds: z.array(z.string()).max(50).optional(),
220
- title: z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
221
- estimatedDeliveryTime: z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
222
- rates: z.array(
223
- z.object({
224
- amount: z.string().describe(
237
+ deliveryRegionIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(50).optional(),
238
+ title: /* @__PURE__ */ z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
239
+ estimatedDeliveryTime: /* @__PURE__ */ z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
240
+ rates: /* @__PURE__ */ z.array(
241
+ /* @__PURE__ */ z.object({
242
+ amount: /* @__PURE__ */ z.string().describe(
225
243
  "there is an AND logic between all the conditions. Empty conditions means true.\nThe amount of the rate that will be returned if all conditions are met."
226
244
  ).optional(),
227
- conditions: z.array(
228
- z.object({
229
- type: z.enum([
245
+ conditions: /* @__PURE__ */ z.array(
246
+ /* @__PURE__ */ z.object({
247
+ type: /* @__PURE__ */ z.enum([
230
248
  "BY_TOTAL_WEIGHT",
231
249
  "BY_TOTAL_PRICE",
232
250
  "BY_TOTAL_QUANTITY"
233
251
  ]).optional(),
234
- value: z.string().describe(
252
+ value: /* @__PURE__ */ z.string().describe(
235
253
  "The value in respective to the condition type\nWeight values should be in the same weight units of the store: KG / LB\nTotal price is according to the store currency\nQuantity of items should be integers"
236
254
  ).optional(),
237
- operator: z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).optional()
255
+ operator: /* @__PURE__ */ z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).optional()
238
256
  })
239
257
  ).min(0).max(10).optional(),
240
- multiplyByQuantity: z.boolean().describe(
258
+ multiplyByQuantity: /* @__PURE__ */ z.boolean().describe(
241
259
  "When this flag is set to true, multiply the amount by the number of line items passed on the request."
242
260
  ).optional()
243
261
  })
244
262
  ).min(1).max(50).optional(),
245
- extendedFields: z.object({
246
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
263
+ extendedFields: /* @__PURE__ */ z.object({
264
+ namespaces: /* @__PURE__ */ z.record(
265
+ /* @__PURE__ */ z.string(),
266
+ /* @__PURE__ */ z.record(
267
+ /* @__PURE__ */ z.string(),
268
+ /* @__PURE__ */ z.any()
269
+ )
270
+ ).describe(
247
271
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
248
272
  ).optional()
249
273
  }).describe("Data Extensions").optional()
250
274
  }).describe("ShippingOption to be updated, may be partial.")
251
275
  });
252
276
  var UpdateShippingOptionResponse = /* @__PURE__ */ z.object({
253
- _id: z.string().describe("ShippingOption ID.").regex(
277
+ _id: /* @__PURE__ */ z.string().describe("ShippingOption ID.").regex(
254
278
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
255
279
  "Must be a valid GUID"
256
280
  ).optional().nullable(),
257
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
281
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
258
282
  "Revision number, which increments by 1 each time the ShippingOption is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the ShippingOption.\n\nIgnored when creating a ShippingOption."
259
283
  ).optional().nullable(),
260
- _createdDate: z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
261
- _updatedDate: z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
262
- deliveryRegionId: z.string().describe("Associated delivery region id.").regex(
284
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
285
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
286
+ deliveryRegionId: /* @__PURE__ */ z.string().describe("Associated delivery region id.").regex(
263
287
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
264
288
  "Must be a valid GUID"
265
289
  ).optional(),
266
- deliveryRegionIds: z.array(z.string()).max(50).optional(),
267
- title: z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
268
- estimatedDeliveryTime: z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
269
- rates: z.array(
270
- z.object({
271
- amount: z.string().describe(
290
+ deliveryRegionIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(50).optional(),
291
+ title: /* @__PURE__ */ z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
292
+ estimatedDeliveryTime: /* @__PURE__ */ z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
293
+ rates: /* @__PURE__ */ z.array(
294
+ /* @__PURE__ */ z.object({
295
+ amount: /* @__PURE__ */ z.string().describe(
272
296
  "there is an AND logic between all the conditions. Empty conditions means true.\nThe amount of the rate that will be returned if all conditions are met."
273
297
  ).optional(),
274
- conditions: z.array(
275
- z.object({
276
- type: z.enum([
298
+ conditions: /* @__PURE__ */ z.array(
299
+ /* @__PURE__ */ z.object({
300
+ type: /* @__PURE__ */ z.enum([
277
301
  "BY_TOTAL_WEIGHT",
278
302
  "BY_TOTAL_PRICE",
279
303
  "BY_TOTAL_QUANTITY"
280
304
  ]).optional(),
281
- value: z.string().describe(
305
+ value: /* @__PURE__ */ z.string().describe(
282
306
  "The value in respective to the condition type\nWeight values should be in the same weight units of the store: KG / LB\nTotal price is according to the store currency\nQuantity of items should be integers"
283
307
  ).optional(),
284
- operator: z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
308
+ operator: /* @__PURE__ */ z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
285
309
  })
286
310
  ).min(0).max(10).optional(),
287
- multiplyByQuantity: z.boolean().describe(
311
+ multiplyByQuantity: /* @__PURE__ */ z.boolean().describe(
288
312
  "When this flag is set to true, multiply the amount by the number of line items passed on the request."
289
313
  ).optional()
290
314
  })
291
315
  ).min(1).max(50).optional(),
292
- extendedFields: z.object({
293
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
316
+ extendedFields: /* @__PURE__ */ z.object({
317
+ namespaces: /* @__PURE__ */ z.record(
318
+ /* @__PURE__ */ z.string(),
319
+ /* @__PURE__ */ z.record(
320
+ /* @__PURE__ */ z.string(),
321
+ /* @__PURE__ */ z.any()
322
+ )
323
+ ).describe(
294
324
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
295
325
  ).optional()
296
326
  }).describe("Data Extensions").optional()
297
327
  });
298
328
  var DeleteShippingOptionRequest = /* @__PURE__ */ z.object({
299
- shippingOptionId: z.string().describe("Id of the ShippingOption to delete.").regex(
329
+ shippingOptionId: /* @__PURE__ */ z.string().describe("Id of the ShippingOption to delete.").regex(
300
330
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
301
331
  "Must be a valid GUID"
302
332
  )
303
333
  });
304
334
  var DeleteShippingOptionResponse = /* @__PURE__ */ z.object({});
305
335
  var QueryShippingOptionsRequest = /* @__PURE__ */ z.object({
306
- query: z.intersection(
307
- z.object({
308
- filter: z.record(z.string(), z.any()).describe(
336
+ query: /* @__PURE__ */ z.intersection(
337
+ /* @__PURE__ */ z.object({
338
+ filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
309
339
  'Filter object in the following format:\n`"filter" : {\n"fieldName1": "value1",\n"fieldName2":{"$operator":"value2"}\n}`\nExample of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`'
310
340
  ).optional().nullable(),
311
- sort: z.array(
312
- z.object({
313
- fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
314
- order: z.enum(["ASC", "DESC"]).optional()
341
+ sort: /* @__PURE__ */ z.array(
342
+ /* @__PURE__ */ z.object({
343
+ fieldName: /* @__PURE__ */ z.string().describe("Name of the field to sort by.").max(512).optional(),
344
+ order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional()
315
345
  })
316
346
  ).max(5).optional()
317
347
  }),
318
- z.xor([
319
- z.object({ cursorPaging: z.never().optional() }),
320
- z.object({
321
- cursorPaging: z.object({
322
- limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
323
- cursor: z.string().describe(
348
+ /* @__PURE__ */ z.xor([
349
+ /* @__PURE__ */ z.object({
350
+ cursorPaging: /* @__PURE__ */ z.never().optional()
351
+ }),
352
+ /* @__PURE__ */ z.object({
353
+ cursorPaging: /* @__PURE__ */ z.object({
354
+ limit: /* @__PURE__ */ z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
355
+ cursor: /* @__PURE__ */ z.string().describe(
324
356
  "Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
325
357
  ).max(16e3).optional().nullable()
326
358
  }).describe(
@@ -331,251 +363,275 @@ var QueryShippingOptionsRequest = /* @__PURE__ */ z.object({
331
363
  ).describe("WQL expression.")
332
364
  });
333
365
  var QueryShippingOptionsResponse = /* @__PURE__ */ z.object({
334
- shippingOptions: z.array(
335
- z.object({
336
- _id: z.string().describe("ShippingOption ID.").regex(
366
+ shippingOptions: /* @__PURE__ */ z.array(
367
+ /* @__PURE__ */ z.object({
368
+ _id: /* @__PURE__ */ z.string().describe("ShippingOption ID.").regex(
337
369
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
338
370
  "Must be a valid GUID"
339
371
  ).optional().nullable(),
340
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
372
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
341
373
  "Revision number, which increments by 1 each time the ShippingOption is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the ShippingOption.\n\nIgnored when creating a ShippingOption."
342
374
  ).optional().nullable(),
343
- _createdDate: z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
344
- _updatedDate: z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
345
- deliveryRegionId: z.string().describe("Associated delivery region id.").regex(
375
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
376
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
377
+ deliveryRegionId: /* @__PURE__ */ z.string().describe("Associated delivery region id.").regex(
346
378
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
347
379
  "Must be a valid GUID"
348
380
  ).optional(),
349
- deliveryRegionIds: z.array(z.string()).max(50).optional(),
350
- title: z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
351
- estimatedDeliveryTime: z.string().describe(
381
+ deliveryRegionIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(50).optional(),
382
+ title: /* @__PURE__ */ z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
383
+ estimatedDeliveryTime: /* @__PURE__ */ z.string().describe(
352
384
  'Estimated delivery time. For example, "2-3 business days".'
353
385
  ).max(500).optional().nullable(),
354
- rates: z.array(
355
- z.object({
356
- amount: z.string().describe(
386
+ rates: /* @__PURE__ */ z.array(
387
+ /* @__PURE__ */ z.object({
388
+ amount: /* @__PURE__ */ z.string().describe(
357
389
  "there is an AND logic between all the conditions. Empty conditions means true.\nThe amount of the rate that will be returned if all conditions are met."
358
390
  ).optional(),
359
- conditions: z.array(
360
- z.object({
361
- type: z.enum([
391
+ conditions: /* @__PURE__ */ z.array(
392
+ /* @__PURE__ */ z.object({
393
+ type: /* @__PURE__ */ z.enum([
362
394
  "BY_TOTAL_WEIGHT",
363
395
  "BY_TOTAL_PRICE",
364
396
  "BY_TOTAL_QUANTITY"
365
397
  ]).optional(),
366
- value: z.string().describe(
398
+ value: /* @__PURE__ */ z.string().describe(
367
399
  "The value in respective to the condition type\nWeight values should be in the same weight units of the store: KG / LB\nTotal price is according to the store currency\nQuantity of items should be integers"
368
400
  ).optional(),
369
- operator: z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
401
+ operator: /* @__PURE__ */ z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
370
402
  })
371
403
  ).min(0).max(10).optional(),
372
- multiplyByQuantity: z.boolean().describe(
404
+ multiplyByQuantity: /* @__PURE__ */ z.boolean().describe(
373
405
  "When this flag is set to true, multiply the amount by the number of line items passed on the request."
374
406
  ).optional()
375
407
  })
376
408
  ).min(1).max(50).optional(),
377
- extendedFields: z.object({
378
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
409
+ extendedFields: /* @__PURE__ */ z.object({
410
+ namespaces: /* @__PURE__ */ z.record(
411
+ /* @__PURE__ */ z.string(),
412
+ /* @__PURE__ */ z.record(
413
+ /* @__PURE__ */ z.string(),
414
+ /* @__PURE__ */ z.any()
415
+ )
416
+ ).describe(
379
417
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
380
418
  ).optional()
381
419
  }).describe("Data Extensions").optional()
382
420
  })
383
421
  ).min(0).max(100).optional(),
384
- pagingMetadata: z.object({
385
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
386
- cursors: z.object({
387
- next: z.string().describe(
422
+ pagingMetadata: /* @__PURE__ */ z.object({
423
+ count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
424
+ cursors: /* @__PURE__ */ z.object({
425
+ next: /* @__PURE__ */ z.string().describe(
388
426
  "Cursor string pointing to the next page in the list of results."
389
427
  ).max(16e3).optional().nullable(),
390
- prev: z.string().describe(
428
+ prev: /* @__PURE__ */ z.string().describe(
391
429
  "Cursor pointing to the previous page in the list of results."
392
430
  ).max(16e3).optional().nullable()
393
431
  }).describe(
394
432
  "Cursor strings that point to the next page, previous page, or both."
395
433
  ).optional(),
396
- hasNext: z.boolean().describe(
434
+ hasNext: /* @__PURE__ */ z.boolean().describe(
397
435
  "Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
398
436
  ).optional().nullable()
399
437
  }).describe("Paging metadata").optional()
400
438
  });
401
439
  var UpdateExtendedFieldsRequest = /* @__PURE__ */ z.object({
402
- _id: z.string().describe("ID of the entity to update."),
403
- namespace: z.string().describe(
440
+ _id: /* @__PURE__ */ z.string().describe("ID of the entity to update."),
441
+ namespace: /* @__PURE__ */ z.string().describe(
404
442
  "Identifier for the app whose extended fields are being updated."
405
443
  ),
406
- options: z.object({
407
- namespaceData: z.record(z.string(), z.any()).describe(
444
+ options: /* @__PURE__ */ z.object({
445
+ namespaceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
408
446
  "Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured."
409
447
  )
410
448
  })
411
449
  });
412
450
  var UpdateExtendedFieldsResponse = /* @__PURE__ */ z.object({
413
- shippingOption: z.object({
414
- _id: z.string().describe("ShippingOption ID.").regex(
451
+ shippingOption: /* @__PURE__ */ z.object({
452
+ _id: /* @__PURE__ */ z.string().describe("ShippingOption ID.").regex(
415
453
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
416
454
  "Must be a valid GUID"
417
455
  ).optional().nullable(),
418
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
456
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
419
457
  "Revision number, which increments by 1 each time the ShippingOption is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the ShippingOption.\n\nIgnored when creating a ShippingOption."
420
458
  ).optional().nullable(),
421
- _createdDate: z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
422
- _updatedDate: z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
423
- deliveryRegionId: z.string().describe("Associated delivery region id.").regex(
459
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
460
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
461
+ deliveryRegionId: /* @__PURE__ */ z.string().describe("Associated delivery region id.").regex(
424
462
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
425
463
  "Must be a valid GUID"
426
464
  ).optional(),
427
- deliveryRegionIds: z.array(z.string()).max(50).optional(),
428
- title: z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
429
- estimatedDeliveryTime: z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
430
- rates: z.array(
431
- z.object({
432
- amount: z.string().describe(
465
+ deliveryRegionIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(50).optional(),
466
+ title: /* @__PURE__ */ z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
467
+ estimatedDeliveryTime: /* @__PURE__ */ z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
468
+ rates: /* @__PURE__ */ z.array(
469
+ /* @__PURE__ */ z.object({
470
+ amount: /* @__PURE__ */ z.string().describe(
433
471
  "there is an AND logic between all the conditions. Empty conditions means true.\nThe amount of the rate that will be returned if all conditions are met."
434
472
  ).optional(),
435
- conditions: z.array(
436
- z.object({
437
- type: z.enum([
473
+ conditions: /* @__PURE__ */ z.array(
474
+ /* @__PURE__ */ z.object({
475
+ type: /* @__PURE__ */ z.enum([
438
476
  "BY_TOTAL_WEIGHT",
439
477
  "BY_TOTAL_PRICE",
440
478
  "BY_TOTAL_QUANTITY"
441
479
  ]).optional(),
442
- value: z.string().describe(
480
+ value: /* @__PURE__ */ z.string().describe(
443
481
  "The value in respective to the condition type\nWeight values should be in the same weight units of the store: KG / LB\nTotal price is according to the store currency\nQuantity of items should be integers"
444
482
  ).optional(),
445
- operator: z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
483
+ operator: /* @__PURE__ */ z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
446
484
  })
447
485
  ).min(0).max(10).optional(),
448
- multiplyByQuantity: z.boolean().describe(
486
+ multiplyByQuantity: /* @__PURE__ */ z.boolean().describe(
449
487
  "When this flag is set to true, multiply the amount by the number of line items passed on the request."
450
488
  ).optional()
451
489
  })
452
490
  ).min(1).max(50).optional(),
453
- extendedFields: z.object({
454
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
491
+ extendedFields: /* @__PURE__ */ z.object({
492
+ namespaces: /* @__PURE__ */ z.record(
493
+ /* @__PURE__ */ z.string(),
494
+ /* @__PURE__ */ z.record(
495
+ /* @__PURE__ */ z.string(),
496
+ /* @__PURE__ */ z.any()
497
+ )
498
+ ).describe(
455
499
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
456
500
  ).optional()
457
501
  }).describe("Data Extensions").optional()
458
502
  }).describe("Updated ShippingOption.").optional()
459
503
  });
460
504
  var AddDeliveryRegionRequest = /* @__PURE__ */ z.object({
461
- shippingOptionId: z.string().describe("ID of the ShippingOption to be updated.").regex(
505
+ shippingOptionId: /* @__PURE__ */ z.string().describe("ID of the ShippingOption to be updated.").regex(
462
506
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
463
507
  "Must be a valid GUID"
464
508
  ),
465
- deliveryRegionId: z.string().describe("ID of the delivery region that should use this ShippingOption.").regex(
509
+ deliveryRegionId: /* @__PURE__ */ z.string().describe("ID of the delivery region that should use this ShippingOption.").regex(
466
510
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
467
511
  "Must be a valid GUID"
468
512
  ),
469
- options: z.object({
470
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Revision of the ShippingOption.")
513
+ options: /* @__PURE__ */ z.object({
514
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Revision of the ShippingOption.")
471
515
  })
472
516
  });
473
517
  var AddDeliveryRegionResponse = /* @__PURE__ */ z.object({
474
- shippingOption: z.object({
475
- _id: z.string().describe("ShippingOption ID.").regex(
518
+ shippingOption: /* @__PURE__ */ z.object({
519
+ _id: /* @__PURE__ */ z.string().describe("ShippingOption ID.").regex(
476
520
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
477
521
  "Must be a valid GUID"
478
522
  ).optional().nullable(),
479
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
523
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
480
524
  "Revision number, which increments by 1 each time the ShippingOption is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the ShippingOption.\n\nIgnored when creating a ShippingOption."
481
525
  ).optional().nullable(),
482
- _createdDate: z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
483
- _updatedDate: z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
484
- deliveryRegionId: z.string().describe("Associated delivery region id.").regex(
526
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
527
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
528
+ deliveryRegionId: /* @__PURE__ */ z.string().describe("Associated delivery region id.").regex(
485
529
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
486
530
  "Must be a valid GUID"
487
531
  ).optional(),
488
- deliveryRegionIds: z.array(z.string()).max(50).optional(),
489
- title: z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
490
- estimatedDeliveryTime: z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
491
- rates: z.array(
492
- z.object({
493
- amount: z.string().describe(
532
+ deliveryRegionIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(50).optional(),
533
+ title: /* @__PURE__ */ z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
534
+ estimatedDeliveryTime: /* @__PURE__ */ z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
535
+ rates: /* @__PURE__ */ z.array(
536
+ /* @__PURE__ */ z.object({
537
+ amount: /* @__PURE__ */ z.string().describe(
494
538
  "there is an AND logic between all the conditions. Empty conditions means true.\nThe amount of the rate that will be returned if all conditions are met."
495
539
  ).optional(),
496
- conditions: z.array(
497
- z.object({
498
- type: z.enum([
540
+ conditions: /* @__PURE__ */ z.array(
541
+ /* @__PURE__ */ z.object({
542
+ type: /* @__PURE__ */ z.enum([
499
543
  "BY_TOTAL_WEIGHT",
500
544
  "BY_TOTAL_PRICE",
501
545
  "BY_TOTAL_QUANTITY"
502
546
  ]).optional(),
503
- value: z.string().describe(
547
+ value: /* @__PURE__ */ z.string().describe(
504
548
  "The value in respective to the condition type\nWeight values should be in the same weight units of the store: KG / LB\nTotal price is according to the store currency\nQuantity of items should be integers"
505
549
  ).optional(),
506
- operator: z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
550
+ operator: /* @__PURE__ */ z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
507
551
  })
508
552
  ).min(0).max(10).optional(),
509
- multiplyByQuantity: z.boolean().describe(
553
+ multiplyByQuantity: /* @__PURE__ */ z.boolean().describe(
510
554
  "When this flag is set to true, multiply the amount by the number of line items passed on the request."
511
555
  ).optional()
512
556
  })
513
557
  ).min(1).max(50).optional(),
514
- extendedFields: z.object({
515
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
558
+ extendedFields: /* @__PURE__ */ z.object({
559
+ namespaces: /* @__PURE__ */ z.record(
560
+ /* @__PURE__ */ z.string(),
561
+ /* @__PURE__ */ z.record(
562
+ /* @__PURE__ */ z.string(),
563
+ /* @__PURE__ */ z.any()
564
+ )
565
+ ).describe(
516
566
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
517
567
  ).optional()
518
568
  }).describe("Data Extensions").optional()
519
569
  }).describe("Updated ShippingOption.").optional()
520
570
  });
521
571
  var RemoveDeliveryRegionRequest = /* @__PURE__ */ z.object({
522
- shippingOptionId: z.string().describe("ID of the ShippingOption to be updated.").regex(
572
+ shippingOptionId: /* @__PURE__ */ z.string().describe("ID of the ShippingOption to be updated.").regex(
523
573
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
524
574
  "Must be a valid GUID"
525
575
  ),
526
- deliveryRegionId: z.string().describe(
576
+ deliveryRegionId: /* @__PURE__ */ z.string().describe(
527
577
  "ID of the delivery region that should not use this ShippingOption anymore."
528
578
  ).regex(
529
579
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
530
580
  "Must be a valid GUID"
531
581
  ),
532
- options: z.object({
533
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Revision of the ShippingOption.")
582
+ options: /* @__PURE__ */ z.object({
583
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Revision of the ShippingOption.")
534
584
  })
535
585
  });
536
586
  var RemoveDeliveryRegionResponse = /* @__PURE__ */ z.object({
537
- shippingOption: z.object({
538
- _id: z.string().describe("ShippingOption ID.").regex(
587
+ shippingOption: /* @__PURE__ */ z.object({
588
+ _id: /* @__PURE__ */ z.string().describe("ShippingOption ID.").regex(
539
589
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
540
590
  "Must be a valid GUID"
541
591
  ).optional().nullable(),
542
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
592
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
543
593
  "Revision number, which increments by 1 each time the ShippingOption is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the ShippingOption.\n\nIgnored when creating a ShippingOption."
544
594
  ).optional().nullable(),
545
- _createdDate: z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
546
- _updatedDate: z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
547
- deliveryRegionId: z.string().describe("Associated delivery region id.").regex(
595
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was created.").optional().nullable(),
596
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ShippingOption was last updated.").optional().nullable(),
597
+ deliveryRegionId: /* @__PURE__ */ z.string().describe("Associated delivery region id.").regex(
548
598
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
549
599
  "Must be a valid GUID"
550
600
  ).optional(),
551
- deliveryRegionIds: z.array(z.string()).max(50).optional(),
552
- title: z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
553
- estimatedDeliveryTime: z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
554
- rates: z.array(
555
- z.object({
556
- amount: z.string().describe(
601
+ deliveryRegionIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(50).optional(),
602
+ title: /* @__PURE__ */ z.string().describe("Delivery option configured for the ShippingOption").max(1e3).optional().nullable(),
603
+ estimatedDeliveryTime: /* @__PURE__ */ z.string().describe('Estimated delivery time. For example, "2-3 business days".').max(500).optional().nullable(),
604
+ rates: /* @__PURE__ */ z.array(
605
+ /* @__PURE__ */ z.object({
606
+ amount: /* @__PURE__ */ z.string().describe(
557
607
  "there is an AND logic between all the conditions. Empty conditions means true.\nThe amount of the rate that will be returned if all conditions are met."
558
608
  ).optional(),
559
- conditions: z.array(
560
- z.object({
561
- type: z.enum([
609
+ conditions: /* @__PURE__ */ z.array(
610
+ /* @__PURE__ */ z.object({
611
+ type: /* @__PURE__ */ z.enum([
562
612
  "BY_TOTAL_WEIGHT",
563
613
  "BY_TOTAL_PRICE",
564
614
  "BY_TOTAL_QUANTITY"
565
615
  ]).optional(),
566
- value: z.string().describe(
616
+ value: /* @__PURE__ */ z.string().describe(
567
617
  "The value in respective to the condition type\nWeight values should be in the same weight units of the store: KG / LB\nTotal price is according to the store currency\nQuantity of items should be integers"
568
618
  ).optional(),
569
- operator: z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
619
+ operator: /* @__PURE__ */ z.enum(["EQ", "GT", "GTE", "LT", "LTE"]).describe("Logical operator.").optional()
570
620
  })
571
621
  ).min(0).max(10).optional(),
572
- multiplyByQuantity: z.boolean().describe(
622
+ multiplyByQuantity: /* @__PURE__ */ z.boolean().describe(
573
623
  "When this flag is set to true, multiply the amount by the number of line items passed on the request."
574
624
  ).optional()
575
625
  })
576
626
  ).min(1).max(50).optional(),
577
- extendedFields: z.object({
578
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
627
+ extendedFields: /* @__PURE__ */ z.object({
628
+ namespaces: /* @__PURE__ */ z.record(
629
+ /* @__PURE__ */ z.string(),
630
+ /* @__PURE__ */ z.record(
631
+ /* @__PURE__ */ z.string(),
632
+ /* @__PURE__ */ z.any()
633
+ )
634
+ ).describe(
579
635
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
580
636
  ).optional()
581
637
  }).describe("Data Extensions").optional()