@wix/auto_sdk_restaurants_operations 1.0.89 → 1.0.91

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 (49) hide show
  1. package/build/cjs/index.d.ts +23 -81
  2. package/build/cjs/index.js +65 -3883
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -40
  5. package/build/cjs/index.typings.js +21 -3807
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +2 -11
  8. package/build/cjs/meta.js +0 -83
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +3 -323
  11. package/build/cjs/schemas.js +0 -478
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +23 -81
  14. package/build/es/index.mjs +65 -3871
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +1 -40
  17. package/build/es/index.typings.mjs +21 -3796
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +2 -11
  20. package/build/es/meta.mjs +0 -82
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +3 -323
  23. package/build/es/schemas.mjs +0 -476
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +23 -81
  26. package/build/internal/cjs/index.js +65 -3883
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +1 -40
  29. package/build/internal/cjs/index.typings.js +21 -3807
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +2 -11
  32. package/build/internal/cjs/meta.js +0 -83
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +3 -323
  35. package/build/internal/cjs/schemas.js +0 -478
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +23 -81
  38. package/build/internal/es/index.mjs +65 -3871
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +1 -40
  41. package/build/internal/es/index.typings.mjs +21 -3796
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +2 -11
  44. package/build/internal/es/meta.mjs +0 -82
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +3 -323
  47. package/build/internal/es/schemas.mjs +0 -476
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -46,8 +46,6 @@ __export(schemas_exports, {
46
46
  CalculateFirstAvailableTimeSlotsPerMenuResponse: () => CalculateFirstAvailableTimeSlotsPerMenuResponse,
47
47
  CalculateFirstAvailableTimeSlotsPerOperationRequest: () => CalculateFirstAvailableTimeSlotsPerOperationRequest,
48
48
  CalculateFirstAvailableTimeSlotsPerOperationResponse: () => CalculateFirstAvailableTimeSlotsPerOperationResponse,
49
- CreateOperationRequest: () => CreateOperationRequest,
50
- CreateOperationResponse: () => CreateOperationResponse,
51
49
  DeleteOperationRequest: () => DeleteOperationRequest,
52
50
  DeleteOperationResponse: () => DeleteOperationResponse,
53
51
  GetOperationRequest: () => GetOperationRequest,
@@ -101,480 +99,6 @@ var ListBlockedPeriodsResponse = z.object({
101
99
  })
102
100
  ).max(1e3).optional()
103
101
  });
104
- var CreateOperationRequest = z.object({
105
- operation: z.intersection(
106
- z.object({
107
- _id: z.string().describe("Operation ID.").regex(
108
- /^[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}$/,
109
- "Must be a valid GUID"
110
- ).optional().nullable(),
111
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
112
- "Revision number. Increments by 1 each time the operation is updated.\nTo prevent conflicting changes,\nthe existing `revision` must be specified when updating an operation."
113
- ).optional().nullable(),
114
- _createdDate: z.date().describe("Date and time the operation was created.").optional().nullable(),
115
- _updatedDate: z.date().describe("Date and time the operation was updated.").optional().nullable(),
116
- name: z.string().describe("Operation name.").optional().nullable(),
117
- default: z.boolean().describe(
118
- "Whether the operation is the default operation. <br />\nDefault: `false`."
119
- ).optional().nullable(),
120
- fulfillmentIds: z.array(z.string()).max(500).optional(),
121
- onlineOrderingStatus: z.enum([
122
- "UNDEFINED_ONLINE_ORDERING_STATUS",
123
- "ENABLED",
124
- "DISABLED",
125
- "PAUSED_UNTIL"
126
- ]).optional(),
127
- defaultFulfillmentType: z.enum(["PICKUP", "DELIVERY"]).optional(),
128
- orderScheduling: z.intersection(
129
- z.object({ type: z.enum(["ASAP", "PREORDER"]).optional() }),
130
- z.xor([
131
- z.object({
132
- asapOptions: z.never().optional(),
133
- preorderOptions: z.never().optional()
134
- }),
135
- z.object({
136
- preorderOptions: z.never().optional(),
137
- asapOptions: z.intersection(
138
- z.object({
139
- preparationTime: z.intersection(
140
- z.object({
141
- type: z.enum(["MAX_TIME", "TIME_RANGE"]).describe("Preparation time type.").optional()
142
- }),
143
- z.xor([
144
- z.object({
145
- maxTimeOptions: z.never().optional(),
146
- timeRangeOptions: z.never().optional()
147
- }),
148
- z.object({
149
- timeRangeOptions: z.never().optional(),
150
- maxTimeOptions: z.object({
151
- timeUnit: z.enum(["MINUTES", "HOURS", "DAYS"]).describe("Unit of time for the duration.").optional(),
152
- duration: z.number().int().describe(
153
- "Duration value. Unit of time specified in `timeUnit`."
154
- ).min(0).optional().nullable()
155
- }).describe(
156
- "Options for preparation time. Required when `type` is `MAX_TIME`."
157
- )
158
- }),
159
- z.object({
160
- maxTimeOptions: z.never().optional(),
161
- timeRangeOptions: z.object({
162
- timeUnit: z.enum(["MINUTES", "HOURS", "DAYS"]).describe("Time unit for the time range.").optional(),
163
- minDuration: z.number().int().describe(
164
- "Minimum duration value. Unit of time specified in `timeUnit`."
165
- ).min(1).optional().nullable(),
166
- maxDuration: z.number().int().describe(
167
- "Maximum duration value. Unit of time specified in `timeUnit`."
168
- ).min(1).optional().nullable()
169
- }).describe(
170
- "Options for preparation time. Required when `type` is `TIME_RANGE`."
171
- )
172
- })
173
- ])
174
- ).describe(
175
- "Amount of time needed to prepare the order. <br />\n- When `MAX_TIME`, `maxTimeOptions` is a required field.\n- When `MAX_RANGE`, `timeRangeOptions` is a required field."
176
- ).optional(),
177
- asapFutureHandlingType: z.enum([
178
- "NO_FUTURE_HANDLING",
179
- "BUSINESS_DAYS_AHEAD_HANDLING"
180
- ]).describe(
181
- "Defines if and how non-immediate orders should be handled. <br />\nWhen this value is `BUSINESS_DAYS_AHEAD_HANDLING`, `businessDaysAheadHandlingOptions` is a required field."
182
- ).optional()
183
- }),
184
- z.xor([
185
- z.object({
186
- businessDaysAheadHandlingOptions: z.never().optional()
187
- }),
188
- z.object({
189
- businessDaysAheadHandlingOptions: z.object({
190
- daysCount: z.number().int().describe(
191
- "Number of business days ahead for which orders can be scheduled. <br />\nSetting the `daysCount` to 0 means that orders can be scheduled until the end of the current business day."
192
- ).min(0).optional().nullable()
193
- }).describe(
194
- "Options for future handling. Required when `asapFutureHandlingType` is `BUSINESS_DAYS_AHEAD_HANDLING`."
195
- )
196
- })
197
- ])
198
- ).describe(
199
- "Options for scheduling. Required if `type` is `ASAP`."
200
- )
201
- }),
202
- z.object({
203
- asapOptions: z.never().optional(),
204
- preorderOptions: z.object({
205
- method: z.intersection(
206
- z.object({
207
- type: z.enum(["TIME_BOUNDED", "WEEKLY_SCHEDULE"]).describe(
208
- "Type of time frame for how long in advance preorders can be made. <br />\n- When `TIME_BOUNDED`, `timeBoundedOptions` is a required field.\n- When `WEEKLY_SCHEDULE`, `weeklyScheduleOptions` is a required field."
209
- ).optional()
210
- }),
211
- z.xor([
212
- z.object({
213
- timeBoundedOptions: z.never().optional(),
214
- weeklyScheduleOptions: z.never().optional()
215
- }),
216
- z.object({
217
- weeklyScheduleOptions: z.never().optional(),
218
- timeBoundedOptions: z.object({
219
- minTimeInAdvance: z.object({
220
- timeUnit: z.enum(["MINUTES", "HOURS", "DAYS"]).describe(
221
- "Unit of time for the duration."
222
- ).optional(),
223
- duration: z.number().int().describe(
224
- "Duration value. Unit of time specified in `timeUnit`."
225
- ).min(0).optional().nullable()
226
- }).describe(
227
- "Minimum time required to schedule the order."
228
- ).optional(),
229
- maxTimeInAdvance: z.object({
230
- timeUnit: z.enum(["MINUTES", "HOURS", "DAYS"]).describe(
231
- "Unit of time for the duration."
232
- ).optional(),
233
- duration: z.number().int().describe(
234
- "Duration value. Unit of time specified in `timeUnit`."
235
- ).min(0).optional().nullable()
236
- }).describe(
237
- "Maximum time allowed to schedule the order."
238
- ).optional()
239
- }).describe(
240
- "Options for the method. Required when `type` is `TIME_BOUNDED`."
241
- )
242
- }),
243
- z.object({
244
- timeBoundedOptions: z.never().optional(),
245
- weeklyScheduleOptions: z.object({
246
- cutOffTime: z.object({
247
- dayOfWeek: z.enum([
248
- "MON",
249
- "TUE",
250
- "WED",
251
- "THU",
252
- "FRI",
253
- "SAT",
254
- "SUN"
255
- ]).describe("Day of the week.").optional(),
256
- timeOfDay: z.object({
257
- hours: z.number().int().describe(
258
- "Hours. <br />\nMin: `0`. <br />\nMax: `23`."
259
- ).optional(),
260
- minutes: z.number().int().describe(
261
- "Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
262
- ).optional()
263
- }).describe("Time of the day.").optional()
264
- }).describe(
265
- "The weekly schedule cutoff time. <br />\nOrders placed before the cutoff time are scheduled for the current week. <br />\nOrders placed after the cutoff time are scheduled for the next week."
266
- ).optional()
267
- }).describe(
268
- "Options for the method. Required when `type` is `WEEKLY_SCHEDULE`."
269
- )
270
- })
271
- ])
272
- ).optional(),
273
- fulfillmentTimesDisplay: z.intersection(
274
- z.object({
275
- type: z.enum(["TIME_WINDOWS"]).describe(
276
- "Type of the fulfillment times. <br />\nWhen `TIME_WINDOWS`, `timeWindowsOptions` is a required field."
277
- ).optional()
278
- }),
279
- z.xor([
280
- z.object({
281
- timeWindowsOptions: z.never().optional()
282
- }),
283
- z.object({
284
- timeWindowsOptions: z.object({
285
- timeUnit: z.enum(["MINUTES", "HOURS", "DAYS"]).describe("Unit of time for the duration.").optional(),
286
- duration: z.number().int().describe(
287
- "Duration value. Unit of time specified in `timeUnit`."
288
- ).min(0).optional().nullable()
289
- }).describe(
290
- "Options for fulfillment time. Required when `fulfillmentTimesType` is `TIME_WINDOWS`."
291
- )
292
- })
293
- ])
294
- ).describe(
295
- "Configuration of the fulfillment times. <br />\nCurrently, only `TIME_WINDOWS` is supported."
296
- ).optional()
297
- }).describe(
298
- "Options for scheduling. Required if `type` is `PREORDER`."
299
- )
300
- })
301
- ])
302
- ).describe("Information about when an order can be placed for.").optional(),
303
- operationGroupId: z.string().describe("ID of the operation group this operation belongs to.").regex(
304
- /^[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}$/,
305
- "Must be a valid GUID"
306
- ).optional().nullable(),
307
- businessLocationId: z.string().describe(
308
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of this operation."
309
- ).regex(
310
- /^[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}$/,
311
- "Must be a valid GUID"
312
- ).optional().nullable(),
313
- extendedFields: z.object({
314
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
315
- "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)."
316
- ).optional()
317
- }).describe("Extended fields.").optional(),
318
- tags: z.object({
319
- privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
320
- "Tags that require an additional permission in order to access them, normally not given to site members or visitors."
321
- ).optional(),
322
- tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
323
- "Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
324
- ).optional()
325
- }).describe(
326
- "Tags ([SDK](https://dev.wix.com/docs/sdk/backend-modules/tags/tags/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/tags/introduction)) used to classify and sort different types of operations."
327
- ).optional()
328
- }),
329
- z.xor([
330
- z.object({ pausedUntilOptions: z.never().optional() }),
331
- z.object({
332
- pausedUntilOptions: z.object({
333
- time: z.date().describe(
334
- "Date and time until which online ordering is paused. <br />\n\nBefore the specified time, behavior is the same as when `onlineOrderingStatus` is `DISABLED`. <br />\n\nAfter the specified time, behavior is the same as when `onlineOrderingStatus` is `ENABLED`. <br />\n\nPassing the time does not trigger any changes to value of any properties."
335
- ).optional().nullable()
336
- }).describe(
337
- "Options for online ordering status. Required when `onlineOrderingStatus` is `PAUSED_UNTIL`."
338
- )
339
- })
340
- ])
341
- ).describe("Operation to create.")
342
- });
343
- var CreateOperationResponse = z.intersection(
344
- z.object({
345
- _id: z.string().describe("Operation ID.").regex(
346
- /^[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
- "Must be a valid GUID"
348
- ).optional().nullable(),
349
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
350
- "Revision number. Increments by 1 each time the operation is updated.\nTo prevent conflicting changes,\nthe existing `revision` must be specified when updating an operation."
351
- ).optional().nullable(),
352
- _createdDate: z.date().describe("Date and time the operation was created.").optional().nullable(),
353
- _updatedDate: z.date().describe("Date and time the operation was updated.").optional().nullable(),
354
- name: z.string().describe("Operation name.").optional().nullable(),
355
- default: z.boolean().describe(
356
- "Whether the operation is the default operation. <br />\nDefault: `false`."
357
- ).optional().nullable(),
358
- fulfillmentIds: z.array(z.string()).max(500).optional(),
359
- onlineOrderingStatus: z.enum([
360
- "UNDEFINED_ONLINE_ORDERING_STATUS",
361
- "ENABLED",
362
- "DISABLED",
363
- "PAUSED_UNTIL"
364
- ]).describe("Online ordering status of the operation. <br />").optional(),
365
- defaultFulfillmentType: z.enum(["PICKUP", "DELIVERY"]).describe("Default fulfillment type of the operation.").optional(),
366
- orderScheduling: z.intersection(
367
- z.object({
368
- type: z.enum(["ASAP", "PREORDER"]).describe(
369
- "Scheduling type. <br />\n- When `ASAP`, `asapOptions` is a required field.\n- When `PREORDER`, `preorderOptions` is a required field."
370
- ).optional()
371
- }),
372
- z.xor([
373
- z.object({
374
- asapOptions: z.never().optional(),
375
- preorderOptions: z.never().optional()
376
- }),
377
- z.object({
378
- preorderOptions: z.never().optional(),
379
- asapOptions: z.intersection(
380
- z.object({
381
- preparationTime: z.intersection(
382
- z.object({
383
- type: z.enum(["MAX_TIME", "TIME_RANGE"]).describe("Preparation time type.").optional()
384
- }),
385
- z.xor([
386
- z.object({
387
- maxTimeOptions: z.never().optional(),
388
- timeRangeOptions: z.never().optional()
389
- }),
390
- z.object({
391
- timeRangeOptions: z.never().optional(),
392
- maxTimeOptions: z.object({
393
- timeUnit: z.enum(["MINUTES", "HOURS", "DAYS"]).describe("Unit of time for the duration.").optional(),
394
- duration: z.number().int().describe(
395
- "Duration value. Unit of time specified in `timeUnit`."
396
- ).min(0).optional().nullable()
397
- }).describe(
398
- "Options for preparation time. Required when `type` is `MAX_TIME`."
399
- )
400
- }),
401
- z.object({
402
- maxTimeOptions: z.never().optional(),
403
- timeRangeOptions: z.object({
404
- timeUnit: z.enum(["MINUTES", "HOURS", "DAYS"]).describe("Time unit for the time range.").optional(),
405
- minDuration: z.number().int().describe(
406
- "Minimum duration value. Unit of time specified in `timeUnit`."
407
- ).min(1).optional().nullable(),
408
- maxDuration: z.number().int().describe(
409
- "Maximum duration value. Unit of time specified in `timeUnit`."
410
- ).min(1).optional().nullable()
411
- }).describe(
412
- "Options for preparation time. Required when `type` is `TIME_RANGE`."
413
- )
414
- })
415
- ])
416
- ).describe(
417
- "Amount of time needed to prepare the order. <br />\n- When `MAX_TIME`, `maxTimeOptions` is a required field.\n- When `MAX_RANGE`, `timeRangeOptions` is a required field."
418
- ).optional(),
419
- asapFutureHandlingType: z.enum([
420
- "NO_FUTURE_HANDLING",
421
- "BUSINESS_DAYS_AHEAD_HANDLING"
422
- ]).describe(
423
- "Defines if and how non-immediate orders should be handled. <br />\nWhen this value is `BUSINESS_DAYS_AHEAD_HANDLING`, `businessDaysAheadHandlingOptions` is a required field."
424
- ).optional()
425
- }),
426
- z.xor([
427
- z.object({
428
- businessDaysAheadHandlingOptions: z.never().optional()
429
- }),
430
- z.object({
431
- businessDaysAheadHandlingOptions: z.object({
432
- daysCount: z.number().int().describe(
433
- "Number of business days ahead for which orders can be scheduled. <br />\nSetting the `daysCount` to 0 means that orders can be scheduled until the end of the current business day."
434
- ).min(0).optional().nullable()
435
- }).describe(
436
- "Options for future handling. Required when `asapFutureHandlingType` is `BUSINESS_DAYS_AHEAD_HANDLING`."
437
- )
438
- })
439
- ])
440
- ).describe(
441
- "Options for scheduling. Required if `type` is `ASAP`."
442
- )
443
- }),
444
- z.object({
445
- asapOptions: z.never().optional(),
446
- preorderOptions: z.object({
447
- method: z.intersection(
448
- z.object({
449
- type: z.enum(["TIME_BOUNDED", "WEEKLY_SCHEDULE"]).describe(
450
- "Type of time frame for how long in advance preorders can be made. <br />\n- When `TIME_BOUNDED`, `timeBoundedOptions` is a required field.\n- When `WEEKLY_SCHEDULE`, `weeklyScheduleOptions` is a required field."
451
- ).optional()
452
- }),
453
- z.xor([
454
- z.object({
455
- timeBoundedOptions: z.never().optional(),
456
- weeklyScheduleOptions: z.never().optional()
457
- }),
458
- z.object({
459
- weeklyScheduleOptions: z.never().optional(),
460
- timeBoundedOptions: z.object({
461
- minTimeInAdvance: z.object({
462
- timeUnit: z.enum(["MINUTES", "HOURS", "DAYS"]).describe("Unit of time for the duration.").optional(),
463
- duration: z.number().int().describe(
464
- "Duration value. Unit of time specified in `timeUnit`."
465
- ).min(0).optional().nullable()
466
- }).describe(
467
- "Minimum time required to schedule the order."
468
- ).optional(),
469
- maxTimeInAdvance: z.object({
470
- timeUnit: z.enum(["MINUTES", "HOURS", "DAYS"]).describe("Unit of time for the duration.").optional(),
471
- duration: z.number().int().describe(
472
- "Duration value. Unit of time specified in `timeUnit`."
473
- ).min(0).optional().nullable()
474
- }).describe(
475
- "Maximum time allowed to schedule the order."
476
- ).optional()
477
- }).describe(
478
- "Options for the method. Required when `type` is `TIME_BOUNDED`."
479
- )
480
- }),
481
- z.object({
482
- timeBoundedOptions: z.never().optional(),
483
- weeklyScheduleOptions: z.object({
484
- cutOffTime: z.object({
485
- dayOfWeek: z.enum([
486
- "MON",
487
- "TUE",
488
- "WED",
489
- "THU",
490
- "FRI",
491
- "SAT",
492
- "SUN"
493
- ]).describe("Day of the week.").optional(),
494
- timeOfDay: z.object({
495
- hours: z.number().int().describe(
496
- "Hours. <br />\nMin: `0`. <br />\nMax: `23`."
497
- ).optional(),
498
- minutes: z.number().int().describe(
499
- "Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
500
- ).optional()
501
- }).describe("Time of the day.").optional()
502
- }).describe(
503
- "The weekly schedule cutoff time. <br />\nOrders placed before the cutoff time are scheduled for the current week. <br />\nOrders placed after the cutoff time are scheduled for the next week."
504
- ).optional()
505
- }).describe(
506
- "Options for the method. Required when `type` is `WEEKLY_SCHEDULE`."
507
- )
508
- })
509
- ])
510
- ).optional(),
511
- fulfillmentTimesDisplay: z.intersection(
512
- z.object({
513
- type: z.enum(["TIME_WINDOWS"]).describe(
514
- "Type of the fulfillment times. <br />\nWhen `TIME_WINDOWS`, `timeWindowsOptions` is a required field."
515
- ).optional()
516
- }),
517
- z.xor([
518
- z.object({ timeWindowsOptions: z.never().optional() }),
519
- z.object({
520
- timeWindowsOptions: z.object({
521
- timeUnit: z.enum(["MINUTES", "HOURS", "DAYS"]).describe("Unit of time for the duration.").optional(),
522
- duration: z.number().int().describe(
523
- "Duration value. Unit of time specified in `timeUnit`."
524
- ).min(0).optional().nullable()
525
- }).describe(
526
- "Options for fulfillment time. Required when `fulfillmentTimesType` is `TIME_WINDOWS`."
527
- )
528
- })
529
- ])
530
- ).describe(
531
- "Configuration of the fulfillment times. <br />\nCurrently, only `TIME_WINDOWS` is supported."
532
- ).optional()
533
- }).describe(
534
- "Options for scheduling. Required if `type` is `PREORDER`."
535
- )
536
- })
537
- ])
538
- ).describe("Information about when an order can be placed for.").optional(),
539
- operationGroupId: z.string().describe("ID of the operation group this operation belongs to.").regex(
540
- /^[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}$/,
541
- "Must be a valid GUID"
542
- ).optional().nullable(),
543
- businessLocationId: z.string().describe(
544
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of this operation."
545
- ).regex(
546
- /^[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}$/,
547
- "Must be a valid GUID"
548
- ).optional().nullable(),
549
- extendedFields: z.object({
550
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
551
- "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)."
552
- ).optional()
553
- }).describe("Extended fields.").optional(),
554
- tags: z.object({
555
- privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
556
- "Tags that require an additional permission in order to access them, normally not given to site members or visitors."
557
- ).optional(),
558
- tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
559
- "Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
560
- ).optional()
561
- }).describe(
562
- "Tags ([SDK](https://dev.wix.com/docs/sdk/backend-modules/tags/tags/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/tags/introduction)) used to classify and sort different types of operations."
563
- ).optional()
564
- }),
565
- z.xor([
566
- z.object({ pausedUntilOptions: z.never().optional() }),
567
- z.object({
568
- pausedUntilOptions: z.object({
569
- time: z.date().describe(
570
- "Date and time until which online ordering is paused. <br />\n\nBefore the specified time, behavior is the same as when `onlineOrderingStatus` is `DISABLED`. <br />\n\nAfter the specified time, behavior is the same as when `onlineOrderingStatus` is `ENABLED`. <br />\n\nPassing the time does not trigger any changes to value of any properties."
571
- ).optional().nullable()
572
- }).describe(
573
- "Options for online ordering status. Required when `onlineOrderingStatus` is `PAUSED_UNTIL`."
574
- )
575
- })
576
- ])
577
- );
578
102
  var GetOperationRequest = z.object({
579
103
  operationId: z.string().describe("ID of the operation to retrieve.").regex(
580
104
  /^[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}$/,
@@ -3671,8 +3195,6 @@ var BulkUpdateOperationTagsByFilterResponse = z.object({
3671
3195
  CalculateFirstAvailableTimeSlotsPerMenuResponse,
3672
3196
  CalculateFirstAvailableTimeSlotsPerOperationRequest,
3673
3197
  CalculateFirstAvailableTimeSlotsPerOperationResponse,
3674
- CreateOperationRequest,
3675
- CreateOperationResponse,
3676
3198
  DeleteOperationRequest,
3677
3199
  DeleteOperationResponse,
3678
3200
  GetOperationRequest,