@wix/auto_sdk_restaurants_operations 1.0.95 → 1.0.97

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 (41) hide show
  1. package/build/cjs/index.js +12 -8
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +15 -11
  4. package/build/cjs/index.typings.js +3 -3
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +10 -2
  7. package/build/cjs/meta.js +2 -0
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.js +112 -104
  10. package/build/cjs/schemas.js.map +1 -1
  11. package/build/es/index.mjs +12 -8
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +15 -11
  14. package/build/es/index.typings.mjs +3 -3
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +10 -2
  17. package/build/es/meta.mjs +2 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/es/schemas.mjs +112 -104
  20. package/build/es/schemas.mjs.map +1 -1
  21. package/build/internal/cjs/index.js +12 -8
  22. package/build/internal/cjs/index.js.map +1 -1
  23. package/build/internal/cjs/index.typings.d.ts +164 -12
  24. package/build/internal/cjs/index.typings.js +3 -3
  25. package/build/internal/cjs/index.typings.js.map +1 -1
  26. package/build/internal/cjs/meta.d.ts +176 -3
  27. package/build/internal/cjs/meta.js +2 -0
  28. package/build/internal/cjs/meta.js.map +1 -1
  29. package/build/internal/cjs/schemas.js +112 -104
  30. package/build/internal/cjs/schemas.js.map +1 -1
  31. package/build/internal/es/index.mjs +12 -8
  32. package/build/internal/es/index.mjs.map +1 -1
  33. package/build/internal/es/index.typings.d.mts +164 -12
  34. package/build/internal/es/index.typings.mjs +3 -3
  35. package/build/internal/es/index.typings.mjs.map +1 -1
  36. package/build/internal/es/meta.d.mts +176 -3
  37. package/build/internal/es/meta.mjs +2 -0
  38. package/build/internal/es/meta.mjs.map +1 -1
  39. package/build/internal/es/schemas.mjs +112 -104
  40. package/build/internal/es/schemas.mjs.map +1 -1
  41. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  // src/restaurants-operations-v1-operation-operations.schemas.ts
2
2
  import * as z from "zod";
3
- var ListBlockedPeriodsRequest = z.object({
3
+ var ListBlockedPeriodsRequest = /* @__PURE__ */ z.object({
4
4
  operationId: z.string().describe(
5
5
  "ID of the restaurant operation this blocked period is associated with. (See the Restaurants Operations API for more information.)"
6
6
  ).regex(
@@ -14,7 +14,7 @@ var ListBlockedPeriodsRequest = z.object({
14
14
  until: z.date().describe("End time of the desired window.")
15
15
  })
16
16
  });
17
- var ListBlockedPeriodsResponse = z.object({
17
+ var ListBlockedPeriodsResponse = /* @__PURE__ */ z.object({
18
18
  blockPeriods: z.array(
19
19
  z.object({
20
20
  from: z.date().describe("The start time at which the restaurant can accept orders").optional().nullable(),
@@ -22,13 +22,13 @@ var ListBlockedPeriodsResponse = z.object({
22
22
  })
23
23
  ).max(1e3).optional()
24
24
  });
25
- var GetOperationRequest = z.object({
25
+ var GetOperationRequest = /* @__PURE__ */ z.object({
26
26
  operationId: z.string().describe("ID of the operation to retrieve.").regex(
27
27
  /^[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}$/,
28
28
  "Must be a valid GUID"
29
29
  )
30
30
  });
31
- var GetOperationResponse = z.intersection(
31
+ var GetOperationResponse = /* @__PURE__ */ z.intersection(
32
32
  z.object({
33
33
  _id: z.string().describe("Operation ID.").regex(
34
34
  /^[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}$/,
@@ -263,7 +263,7 @@ var GetOperationResponse = z.intersection(
263
263
  })
264
264
  ])
265
265
  );
266
- var UpdateOperationRequest = z.object({
266
+ var UpdateOperationRequest = /* @__PURE__ */ z.object({
267
267
  _id: z.string().describe("Operation ID.").regex(
268
268
  /^[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}$/,
269
269
  "Must be a valid GUID"
@@ -506,7 +506,7 @@ var UpdateOperationRequest = z.object({
506
506
  ])
507
507
  ).describe("Operation to update.")
508
508
  });
509
- var UpdateOperationResponse = z.intersection(
509
+ var UpdateOperationResponse = /* @__PURE__ */ z.intersection(
510
510
  z.object({
511
511
  _id: z.string().describe("Operation ID.").regex(
512
512
  /^[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}$/,
@@ -741,14 +741,14 @@ var UpdateOperationResponse = z.intersection(
741
741
  })
742
742
  ])
743
743
  );
744
- var DeleteOperationRequest = z.object({
744
+ var DeleteOperationRequest = /* @__PURE__ */ z.object({
745
745
  operationId: z.string().describe("ID of the operation to delete.").regex(
746
746
  /^[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}$/,
747
747
  "Must be a valid GUID"
748
748
  )
749
749
  });
750
- var DeleteOperationResponse = z.object({});
751
- var QueryOperationRequest = z.object({
750
+ var DeleteOperationResponse = /* @__PURE__ */ z.object({});
751
+ var QueryOperationRequest = /* @__PURE__ */ z.object({
752
752
  query: z.object({
753
753
  filter: z.object({
754
754
  _id: z.object({
@@ -914,7 +914,7 @@ var QueryOperationRequest = z.object({
914
914
  ).optional()
915
915
  }).catchall(z.any()).describe("Query options.")
916
916
  });
917
- var QueryOperationResponse = z.object({
917
+ var QueryOperationResponse = /* @__PURE__ */ z.object({
918
918
  operations: z.array(
919
919
  z.intersection(
920
920
  z.object({
@@ -1177,8 +1177,8 @@ var QueryOperationResponse = z.object({
1177
1177
  ).optional().nullable()
1178
1178
  }).describe("Metadata of the paginated results.").optional()
1179
1179
  });
1180
- var ListOperationsRequest = z.object({});
1181
- var ListOperationsResponse = z.object({
1180
+ var ListOperationsRequest = /* @__PURE__ */ z.object({});
1181
+ var ListOperationsResponse = /* @__PURE__ */ z.object({
1182
1182
  operations: z.array(
1183
1183
  z.intersection(
1184
1184
  z.object({
@@ -1425,7 +1425,7 @@ var ListOperationsResponse = z.object({
1425
1425
  )
1426
1426
  ).optional()
1427
1427
  });
1428
- var ListAvailableFulfillmentOptionsRequest = z.object({
1428
+ var ListAvailableFulfillmentOptionsRequest = /* @__PURE__ */ z.object({
1429
1429
  operationId: z.string().describe(
1430
1430
  "Operation ID. Returned fulfillment options will belong to this operation."
1431
1431
  ).regex(
@@ -1487,7 +1487,7 @@ var ListAvailableFulfillmentOptionsRequest = z.object({
1487
1487
  ).optional()
1488
1488
  }).optional()
1489
1489
  });
1490
- var ListAvailableFulfillmentOptionsResponse = z.object({
1490
+ var ListAvailableFulfillmentOptionsResponse = /* @__PURE__ */ z.object({
1491
1491
  pickupConfigured: z.boolean().describe(
1492
1492
  "Whether pickup fulfillment method is configured for the requested operation."
1493
1493
  ).optional(),
@@ -1666,7 +1666,7 @@ var ListAvailableFulfillmentOptionsResponse = z.object({
1666
1666
  "Whether availability exceptions from type = PAUSED_ORDERING block the fulfillment options."
1667
1667
  ).optional().nullable()
1668
1668
  });
1669
- var ListFirstAvailableTimeSlotForFulfillmentTypesRequest = z.object({
1669
+ var ListFirstAvailableTimeSlotForFulfillmentTypesRequest = /* @__PURE__ */ z.object({
1670
1670
  operationId: z.string().describe(
1671
1671
  "Operation ID.\nReturned fulfillment options will belong to this operation."
1672
1672
  ).regex(
@@ -1728,7 +1728,7 @@ var ListFirstAvailableTimeSlotForFulfillmentTypesRequest = z.object({
1728
1728
  ).optional()
1729
1729
  }).optional()
1730
1730
  });
1731
- var ListFirstAvailableTimeSlotForFulfillmentTypesResponse = z.object({
1731
+ var ListFirstAvailableTimeSlotForFulfillmentTypesResponse = /* @__PURE__ */ z.object({
1732
1732
  timeSlots: z.array(
1733
1733
  z.object({
1734
1734
  startTime: z.date().describe("Start time and date of the time slot.").optional().nullable(),
@@ -1767,7 +1767,9 @@ var ListFirstAvailableTimeSlotForFulfillmentTypesResponse = z.object({
1767
1767
  durationRangeOptions: z.object({
1768
1768
  minDuration: z.number().int().describe("Minimum duration in minutes.").optional(),
1769
1769
  maxDuration: z.number().int().describe("Maximum duration in minutes.").optional()
1770
- }).describe("Fulfillment time has a minimum and a maximum.")
1770
+ }).describe(
1771
+ "Fulfillment time has a minimum and a maximum."
1772
+ )
1771
1773
  })
1772
1774
  ])
1773
1775
  )
@@ -1787,7 +1789,7 @@ var ListFirstAvailableTimeSlotForFulfillmentTypesResponse = z.object({
1787
1789
  })
1788
1790
  ).optional()
1789
1791
  });
1790
- var CalculateFirstAvailableTimeSlotPerFulfillmentTypeRequest = z.object({
1792
+ var CalculateFirstAvailableTimeSlotPerFulfillmentTypeRequest = /* @__PURE__ */ z.object({
1791
1793
  operationId: z.string().describe("Operation ID.").regex(
1792
1794
  /^[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}$/,
1793
1795
  "Must be a valid GUID"
@@ -1847,7 +1849,7 @@ var CalculateFirstAvailableTimeSlotPerFulfillmentTypeRequest = z.object({
1847
1849
  ).optional()
1848
1850
  }).optional()
1849
1851
  });
1850
- var CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse = z.object({
1852
+ var CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse = /* @__PURE__ */ z.object({
1851
1853
  timeslotsPerFulfillmentType: z.array(
1852
1854
  z.object({
1853
1855
  timeSlot: z.object({
@@ -1903,7 +1905,7 @@ var CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse = z.object({
1903
1905
  })
1904
1906
  ).max(2).optional()
1905
1907
  });
1906
- var ListFirstAvailableTimeSlotsForOperationsRequest = z.object({
1908
+ var ListFirstAvailableTimeSlotsForOperationsRequest = /* @__PURE__ */ z.object({
1907
1909
  operationIds: z.array(z.string()).max(100),
1908
1910
  options: z.object({
1909
1911
  deliveryAddress: z.intersection(
@@ -1960,7 +1962,7 @@ var ListFirstAvailableTimeSlotsForOperationsRequest = z.object({
1960
1962
  ).optional()
1961
1963
  }).optional()
1962
1964
  });
1963
- var ListFirstAvailableTimeSlotsForOperationsResponse = z.object({
1965
+ var ListFirstAvailableTimeSlotsForOperationsResponse = /* @__PURE__ */ z.object({
1964
1966
  timeSlots: z.array(
1965
1967
  z.object({
1966
1968
  operationId: z.string().describe("Operation ID.").regex(
@@ -2029,7 +2031,7 @@ var ListFirstAvailableTimeSlotsForOperationsResponse = z.object({
2029
2031
  })
2030
2032
  ).max(100).optional()
2031
2033
  });
2032
- var CalculateFirstAvailableTimeSlotsPerOperationRequest = z.object({
2034
+ var CalculateFirstAvailableTimeSlotsPerOperationRequest = /* @__PURE__ */ z.object({
2033
2035
  operationIds: z.array(z.string()).max(100),
2034
2036
  options: z.object({
2035
2037
  deliveryAddress: z.intersection(
@@ -2086,7 +2088,7 @@ var CalculateFirstAvailableTimeSlotsPerOperationRequest = z.object({
2086
2088
  ).optional()
2087
2089
  }).optional()
2088
2090
  });
2089
- var CalculateFirstAvailableTimeSlotsPerOperationResponse = z.object({
2091
+ var CalculateFirstAvailableTimeSlotsPerOperationResponse = /* @__PURE__ */ z.object({
2090
2092
  timeSlotsPerOperation: z.array(
2091
2093
  z.object({
2092
2094
  operationId: z.string().describe("Operation ID.").regex(
@@ -2152,7 +2154,7 @@ var CalculateFirstAvailableTimeSlotsPerOperationResponse = z.object({
2152
2154
  })
2153
2155
  ).max(100).optional()
2154
2156
  });
2155
- var ListFirstAvailableTimeSlotsForMenusRequest = z.object({
2157
+ var ListFirstAvailableTimeSlotsForMenusRequest = /* @__PURE__ */ z.object({
2156
2158
  operationId: z.string().describe(
2157
2159
  "Operation ID.\nReturned timeslots that are belong to this operation."
2158
2160
  ).regex(
@@ -2220,7 +2222,7 @@ var ListFirstAvailableTimeSlotsForMenusRequest = z.object({
2220
2222
  }).describe("Cursor paging").optional()
2221
2223
  }).optional()
2222
2224
  });
2223
- var ListFirstAvailableTimeSlotsForMenusResponse = z.object({
2225
+ var ListFirstAvailableTimeSlotsForMenusResponse = /* @__PURE__ */ z.object({
2224
2226
  timeSlotsPerMenu: z.array(
2225
2227
  z.object({
2226
2228
  menuId: z.string().describe("Menu ID.").regex(
@@ -2290,7 +2292,7 @@ var ListFirstAvailableTimeSlotsForMenusResponse = z.object({
2290
2292
  ).max(100).optional(),
2291
2293
  cursor: z.string().describe("Cursor to next request.").max(16e3).optional().nullable()
2292
2294
  });
2293
- var CalculateFirstAvailableTimeSlotsPerMenuRequest = z.object({
2295
+ var CalculateFirstAvailableTimeSlotsPerMenuRequest = /* @__PURE__ */ z.object({
2294
2296
  operationId: z.string().describe("Operation ID.").regex(
2295
2297
  /^[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}$/,
2296
2298
  "Must be a valid GUID"
@@ -2359,7 +2361,7 @@ var CalculateFirstAvailableTimeSlotsPerMenuRequest = z.object({
2359
2361
  ).optional().nullable()
2360
2362
  }).optional()
2361
2363
  });
2362
- var CalculateFirstAvailableTimeSlotsPerMenuResponse = z.object({
2364
+ var CalculateFirstAvailableTimeSlotsPerMenuResponse = /* @__PURE__ */ z.object({
2363
2365
  timeSlotsPerMenu: z.array(
2364
2366
  z.object({
2365
2367
  menuId: z.string().describe("Menu ID.").regex(
@@ -2449,7 +2451,7 @@ var CalculateFirstAvailableTimeSlotsPerMenuResponse = z.object({
2449
2451
  ).optional().nullable()
2450
2452
  }).describe("Metadata for the paginated results.").optional()
2451
2453
  });
2452
- var CalculateFirstAvailableTimeSlotsForItemRequest = z.object({
2454
+ var CalculateFirstAvailableTimeSlotsForItemRequest = /* @__PURE__ */ z.object({
2453
2455
  operationId: z.string().regex(
2454
2456
  /^[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}$/,
2455
2457
  "Must be a valid GUID"
@@ -2475,7 +2477,9 @@ var CalculateFirstAvailableTimeSlotsForItemRequest = z.object({
2475
2477
  addressLine2: z.string().describe(
2476
2478
  "Free text providing more detailed address info. Usually contains Apt, Suite, and Floor."
2477
2479
  ).optional().nullable(),
2478
- formattedAddress: z.string().describe("A string containing the full address of this location.").optional().nullable(),
2480
+ formattedAddress: z.string().describe(
2481
+ "A string containing the full address of this location."
2482
+ ).optional().nullable(),
2479
2483
  hint: z.string().describe("Free text to help find the address.").optional().nullable(),
2480
2484
  geocode: z.object({
2481
2485
  latitude: z.number().describe("Address latitude.").optional().nullable(),
@@ -2516,7 +2520,7 @@ var CalculateFirstAvailableTimeSlotsForItemRequest = z.object({
2516
2520
  ).optional()
2517
2521
  })
2518
2522
  });
2519
- var CalculateFirstAvailableTimeSlotsForItemResponse = z.object({
2523
+ var CalculateFirstAvailableTimeSlotsForItemResponse = /* @__PURE__ */ z.object({
2520
2524
  timeslotsPerFulfillmentType: z.array(
2521
2525
  z.object({
2522
2526
  timeSlot: z.object({
@@ -2588,7 +2592,7 @@ var CalculateFirstAvailableTimeSlotsForItemResponse = z.object({
2588
2592
  ).optional().nullable()
2589
2593
  }).describe("Metadata for the paginated results.").optional()
2590
2594
  });
2591
- var ListAvailableTimeSlotsForDateRequest = z.object({
2595
+ var ListAvailableTimeSlotsForDateRequest = /* @__PURE__ */ z.object({
2592
2596
  operationId: z.string().describe(
2593
2597
  "Operation ID.\nThe returned fulfillment options will belong to this operation."
2594
2598
  ).regex(
@@ -2653,7 +2657,7 @@ var ListAvailableTimeSlotsForDateRequest = z.object({
2653
2657
  }).describe("Date and time to get the available time slots for.")
2654
2658
  })
2655
2659
  });
2656
- var ListAvailableTimeSlotsForDateResponse = z.object({
2660
+ var ListAvailableTimeSlotsForDateResponse = /* @__PURE__ */ z.object({
2657
2661
  timeSlots: z.array(
2658
2662
  z.object({
2659
2663
  startTime: z.date().describe("Start time and date of the time slot.").optional().nullable(),
@@ -2712,70 +2716,74 @@ var ListAvailableTimeSlotsForDateResponse = z.object({
2712
2716
  })
2713
2717
  ).optional()
2714
2718
  });
2715
- var CalculateAvailableTimeSlotsForDateRequest = z.object({
2716
- operationId: z.string().describe("Operation ID.").regex(
2717
- /^[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}$/,
2718
- "Must be a valid GUID"
2719
- ),
2720
- options: z.object({
2721
- deliveryAddress: z.intersection(
2722
- z.object({
2723
- country: z.string().describe("Country code.").optional().nullable(),
2724
- subdivision: z.string().describe(
2725
- "Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)."
2726
- ).optional().nullable(),
2727
- city: z.string().describe("City name.").optional().nullable(),
2728
- postalCode: z.string().describe("Zip/postal code.").optional().nullable(),
2729
- addressLine2: z.string().describe(
2730
- "Free text providing more detailed address info. Usually contains Apt, Suite, and Floor."
2731
- ).optional().nullable(),
2732
- formattedAddress: z.string().describe("A string containing the full address of this location.").optional().nullable(),
2733
- hint: z.string().describe("Free text to help find the address.").optional().nullable(),
2734
- geocode: z.object({
2735
- latitude: z.number().describe("Address latitude.").optional().nullable(),
2736
- longitude: z.number().describe("Address longitude.").optional().nullable()
2737
- }).describe("Coordinates of the physical address.").optional(),
2738
- countryFullname: z.string().describe("Country full name.").optional().nullable(),
2739
- subdivisionFullname: z.string().describe("Subdivision full name.").optional().nullable(),
2740
- subdivisions: z.array(
2741
- z.object({
2742
- code: z.string().describe("Short subdivision code.").optional(),
2743
- name: z.string().describe("Subdivision full name.").optional()
2744
- })
2745
- ).max(6).optional()
2746
- }),
2747
- z.xor([
2748
- z.object({
2749
- streetAddress: z.never().optional(),
2750
- addressLine: z.never().optional()
2751
- }),
2719
+ var CalculateAvailableTimeSlotsForDateRequest = /* @__PURE__ */ z.object(
2720
+ {
2721
+ operationId: z.string().describe("Operation ID.").regex(
2722
+ /^[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}$/,
2723
+ "Must be a valid GUID"
2724
+ ),
2725
+ options: z.object({
2726
+ deliveryAddress: z.intersection(
2752
2727
  z.object({
2753
- addressLine: z.never().optional(),
2754
- streetAddress: z.object({
2755
- number: z.string().describe("Street number.").optional(),
2756
- name: z.string().describe("Street name.").optional(),
2757
- apt: z.string().describe("Apartment number.").optional(),
2758
- formattedAddressLine: z.string().describe("Optional address line 1").optional().nullable()
2759
- }).describe("Street name and number.")
2728
+ country: z.string().describe("Country code.").optional().nullable(),
2729
+ subdivision: z.string().describe(
2730
+ "Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)."
2731
+ ).optional().nullable(),
2732
+ city: z.string().describe("City name.").optional().nullable(),
2733
+ postalCode: z.string().describe("Zip/postal code.").optional().nullable(),
2734
+ addressLine2: z.string().describe(
2735
+ "Free text providing more detailed address info. Usually contains Apt, Suite, and Floor."
2736
+ ).optional().nullable(),
2737
+ formattedAddress: z.string().describe(
2738
+ "A string containing the full address of this location."
2739
+ ).optional().nullable(),
2740
+ hint: z.string().describe("Free text to help find the address.").optional().nullable(),
2741
+ geocode: z.object({
2742
+ latitude: z.number().describe("Address latitude.").optional().nullable(),
2743
+ longitude: z.number().describe("Address longitude.").optional().nullable()
2744
+ }).describe("Coordinates of the physical address.").optional(),
2745
+ countryFullname: z.string().describe("Country full name.").optional().nullable(),
2746
+ subdivisionFullname: z.string().describe("Subdivision full name.").optional().nullable(),
2747
+ subdivisions: z.array(
2748
+ z.object({
2749
+ code: z.string().describe("Short subdivision code.").optional(),
2750
+ name: z.string().describe("Subdivision full name.").optional()
2751
+ })
2752
+ ).max(6).optional()
2760
2753
  }),
2761
- z.object({
2762
- streetAddress: z.never().optional(),
2763
- addressLine: z.string().describe(
2764
- "Main address line, usually street and number as free text."
2765
- )
2766
- })
2767
- ])
2768
- ).describe(
2769
- "Delivery address.\n\nThe response includes time slots with delivery fulfillment types only if you specify a delivery address."
2770
- ).optional(),
2771
- date: z.object({
2772
- day: z.number().int().describe("The day of the month.").min(1).max(31),
2773
- month: z.number().int().describe("The month of the year.").min(1).max(12),
2774
- year: z.number().int().describe("The year of the date.").min(2023).max(2200)
2775
- }).describe("Date and time to get the available time slots for.")
2776
- })
2777
- });
2778
- var CalculateAvailableTimeSlotsForDateResponse = z.object({
2754
+ z.xor([
2755
+ z.object({
2756
+ streetAddress: z.never().optional(),
2757
+ addressLine: z.never().optional()
2758
+ }),
2759
+ z.object({
2760
+ addressLine: z.never().optional(),
2761
+ streetAddress: z.object({
2762
+ number: z.string().describe("Street number.").optional(),
2763
+ name: z.string().describe("Street name.").optional(),
2764
+ apt: z.string().describe("Apartment number.").optional(),
2765
+ formattedAddressLine: z.string().describe("Optional address line 1").optional().nullable()
2766
+ }).describe("Street name and number.")
2767
+ }),
2768
+ z.object({
2769
+ streetAddress: z.never().optional(),
2770
+ addressLine: z.string().describe(
2771
+ "Main address line, usually street and number as free text."
2772
+ )
2773
+ })
2774
+ ])
2775
+ ).describe(
2776
+ "Delivery address.\n\nThe response includes time slots with delivery fulfillment types only if you specify a delivery address."
2777
+ ).optional(),
2778
+ date: z.object({
2779
+ day: z.number().int().describe("The day of the month.").min(1).max(31),
2780
+ month: z.number().int().describe("The month of the year.").min(1).max(12),
2781
+ year: z.number().int().describe("The year of the date.").min(2023).max(2200)
2782
+ }).describe("Date and time to get the available time slots for.")
2783
+ })
2784
+ }
2785
+ );
2786
+ var CalculateAvailableTimeSlotsForDateResponse = /* @__PURE__ */ z.object({
2779
2787
  timeslotsPerFulfillmentType: z.array(
2780
2788
  z.object({
2781
2789
  timeSlot: z.object({
@@ -2831,7 +2839,7 @@ var CalculateAvailableTimeSlotsForDateResponse = z.object({
2831
2839
  })
2832
2840
  ).max(2).optional()
2833
2841
  });
2834
- var ListAvailableDatesInRangeRequest = z.object({
2842
+ var ListAvailableDatesInRangeRequest = /* @__PURE__ */ z.object({
2835
2843
  operationId: z.string().describe(
2836
2844
  "Operation ID.\nThe returned fulfillment options will belong to this operation."
2837
2845
  ).regex(
@@ -2901,7 +2909,7 @@ var ListAvailableDatesInRangeRequest = z.object({
2901
2909
  }).describe("End date and time of the range.")
2902
2910
  })
2903
2911
  });
2904
- var ListAvailableDatesInRangeResponse = z.object({
2912
+ var ListAvailableDatesInRangeResponse = /* @__PURE__ */ z.object({
2905
2913
  availableDates: z.array(
2906
2914
  z.object({
2907
2915
  fulfilmentType: z.enum(["PICKUP", "DELIVERY"]).describe("Fulfillment type.").optional(),
@@ -2915,7 +2923,7 @@ var ListAvailableDatesInRangeResponse = z.object({
2915
2923
  })
2916
2924
  ).optional()
2917
2925
  });
2918
- var CalculateAvailableDatesInRangeRequest = z.object({
2926
+ var CalculateAvailableDatesInRangeRequest = /* @__PURE__ */ z.object({
2919
2927
  operationId: z.string().describe("Operation ID.").regex(
2920
2928
  /^[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}$/,
2921
2929
  "Must be a valid GUID"
@@ -2983,7 +2991,7 @@ var CalculateAvailableDatesInRangeRequest = z.object({
2983
2991
  }).describe("End date and time of the range.")
2984
2992
  })
2985
2993
  });
2986
- var CalculateAvailableDatesInRangeResponse = z.object({
2994
+ var CalculateAvailableDatesInRangeResponse = /* @__PURE__ */ z.object({
2987
2995
  availableDatesPerFulfillmentType: z.array(
2988
2996
  z.object({
2989
2997
  fulfilmentType: z.enum(["PICKUP", "DELIVERY"]).describe("Fulfillment type.").optional(),
@@ -2997,13 +3005,13 @@ var CalculateAvailableDatesInRangeResponse = z.object({
2997
3005
  })
2998
3006
  ).optional()
2999
3007
  });
3000
- var ValidateOperationAddressRequest = z.object({
3008
+ var ValidateOperationAddressRequest = /* @__PURE__ */ z.object({
3001
3009
  operationId: z.string().describe("The ID of the operation whose address should be validated.").regex(
3002
3010
  /^[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}$/,
3003
3011
  "Must be a valid GUID"
3004
3012
  )
3005
3013
  });
3006
- var ValidateOperationAddressResponse = z.object({
3014
+ var ValidateOperationAddressResponse = /* @__PURE__ */ z.object({
3007
3015
  valid: z.boolean().describe("Whether the address is valid.").optional(),
3008
3016
  violations: z.array(
3009
3017
  z.object({
@@ -3018,7 +3026,7 @@ var ValidateOperationAddressResponse = z.object({
3018
3026
  })
3019
3027
  ).max(5).optional()
3020
3028
  });
3021
- var BulkUpdateOperationTagsRequest = z.object({
3029
+ var BulkUpdateOperationTagsRequest = /* @__PURE__ */ z.object({
3022
3030
  operationIds: z.array(z.string()).min(1).max(100),
3023
3031
  options: z.object({
3024
3032
  assignTags: z.object({
@@ -3039,7 +3047,7 @@ var BulkUpdateOperationTagsRequest = z.object({
3039
3047
  }).describe("Tags to unassign from the operations.").optional()
3040
3048
  }).optional()
3041
3049
  });
3042
- var BulkUpdateOperationTagsResponse = z.object({
3050
+ var BulkUpdateOperationTagsResponse = /* @__PURE__ */ z.object({
3043
3051
  results: z.array(
3044
3052
  z.object({
3045
3053
  itemMetadata: z.object({
@@ -3071,7 +3079,7 @@ var BulkUpdateOperationTagsResponse = z.object({
3071
3079
  ).optional()
3072
3080
  }).describe("Metadata for the bulk update.").optional()
3073
3081
  });
3074
- var BulkUpdateOperationTagsByFilterRequest = z.object({
3082
+ var BulkUpdateOperationTagsByFilterRequest = /* @__PURE__ */ z.object({
3075
3083
  filter: z.record(z.string(), z.any()).describe("Filter that determines which operations to update tags for."),
3076
3084
  options: z.object({
3077
3085
  assignTags: z.object({
@@ -3092,7 +3100,7 @@ var BulkUpdateOperationTagsByFilterRequest = z.object({
3092
3100
  }).describe("Tags to unassign from the operations.").optional()
3093
3101
  }).optional()
3094
3102
  });
3095
- var BulkUpdateOperationTagsByFilterResponse = z.object({
3103
+ var BulkUpdateOperationTagsByFilterResponse = /* @__PURE__ */ z.object({
3096
3104
  jobId: z.string().describe(
3097
3105
  "Job ID. Pass this ID to Get Async Job ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/get-async-job) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/get-async-job)) to track the job's status."
3098
3106
  ).regex(