@wix/auto_sdk_restaurants_operations 1.0.96 → 1.0.98
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.
- package/build/cjs/index.js +11 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +15 -11
- package/build/cjs/index.typings.js +2 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +10 -2
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +112 -104
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +11 -8
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +15 -11
- package/build/es/index.typings.mjs +2 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +10 -2
- package/build/es/meta.mjs +1 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +112 -104
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +11 -8
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +15 -11
- package/build/internal/cjs/index.typings.js +2 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +10 -2
- package/build/internal/cjs/meta.js +1 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +112 -104
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +11 -8
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +15 -11
- package/build/internal/es/index.typings.mjs +2 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +10 -2
- package/build/internal/es/meta.mjs +1 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +112 -104
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/schemas.js
CHANGED
|
@@ -77,7 +77,7 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
77
77
|
|
|
78
78
|
// src/restaurants-operations-v1-operation-operations.schemas.ts
|
|
79
79
|
var z = __toESM(require("zod"));
|
|
80
|
-
var ListBlockedPeriodsRequest = z.object({
|
|
80
|
+
var ListBlockedPeriodsRequest = /* @__PURE__ */ z.object({
|
|
81
81
|
operationId: z.string().describe(
|
|
82
82
|
"ID of the restaurant operation this blocked period is associated with. (See the Restaurants Operations API for more information.)"
|
|
83
83
|
).regex(
|
|
@@ -91,7 +91,7 @@ var ListBlockedPeriodsRequest = z.object({
|
|
|
91
91
|
until: z.date().describe("End time of the desired window.")
|
|
92
92
|
})
|
|
93
93
|
});
|
|
94
|
-
var ListBlockedPeriodsResponse = z.object({
|
|
94
|
+
var ListBlockedPeriodsResponse = /* @__PURE__ */ z.object({
|
|
95
95
|
blockPeriods: z.array(
|
|
96
96
|
z.object({
|
|
97
97
|
from: z.date().describe("The start time at which the restaurant can accept orders").optional().nullable(),
|
|
@@ -99,13 +99,13 @@ var ListBlockedPeriodsResponse = z.object({
|
|
|
99
99
|
})
|
|
100
100
|
).max(1e3).optional()
|
|
101
101
|
});
|
|
102
|
-
var GetOperationRequest = z.object({
|
|
102
|
+
var GetOperationRequest = /* @__PURE__ */ z.object({
|
|
103
103
|
operationId: z.string().describe("ID of the operation to retrieve.").regex(
|
|
104
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}$/,
|
|
105
105
|
"Must be a valid GUID"
|
|
106
106
|
)
|
|
107
107
|
});
|
|
108
|
-
var GetOperationResponse = z.intersection(
|
|
108
|
+
var GetOperationResponse = /* @__PURE__ */ z.intersection(
|
|
109
109
|
z.object({
|
|
110
110
|
_id: z.string().describe("Operation ID.").regex(
|
|
111
111
|
/^[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}$/,
|
|
@@ -340,7 +340,7 @@ var GetOperationResponse = z.intersection(
|
|
|
340
340
|
})
|
|
341
341
|
])
|
|
342
342
|
);
|
|
343
|
-
var UpdateOperationRequest = z.object({
|
|
343
|
+
var UpdateOperationRequest = /* @__PURE__ */ z.object({
|
|
344
344
|
_id: z.string().describe("Operation ID.").regex(
|
|
345
345
|
/^[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}$/,
|
|
346
346
|
"Must be a valid GUID"
|
|
@@ -583,7 +583,7 @@ var UpdateOperationRequest = z.object({
|
|
|
583
583
|
])
|
|
584
584
|
).describe("Operation to update.")
|
|
585
585
|
});
|
|
586
|
-
var UpdateOperationResponse = z.intersection(
|
|
586
|
+
var UpdateOperationResponse = /* @__PURE__ */ z.intersection(
|
|
587
587
|
z.object({
|
|
588
588
|
_id: z.string().describe("Operation ID.").regex(
|
|
589
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}$/,
|
|
@@ -818,14 +818,14 @@ var UpdateOperationResponse = z.intersection(
|
|
|
818
818
|
})
|
|
819
819
|
])
|
|
820
820
|
);
|
|
821
|
-
var DeleteOperationRequest = z.object({
|
|
821
|
+
var DeleteOperationRequest = /* @__PURE__ */ z.object({
|
|
822
822
|
operationId: z.string().describe("ID of the operation to delete.").regex(
|
|
823
823
|
/^[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}$/,
|
|
824
824
|
"Must be a valid GUID"
|
|
825
825
|
)
|
|
826
826
|
});
|
|
827
|
-
var DeleteOperationResponse = z.object({});
|
|
828
|
-
var QueryOperationRequest = z.object({
|
|
827
|
+
var DeleteOperationResponse = /* @__PURE__ */ z.object({});
|
|
828
|
+
var QueryOperationRequest = /* @__PURE__ */ z.object({
|
|
829
829
|
query: z.object({
|
|
830
830
|
filter: z.object({
|
|
831
831
|
_id: z.object({
|
|
@@ -991,7 +991,7 @@ var QueryOperationRequest = z.object({
|
|
|
991
991
|
).optional()
|
|
992
992
|
}).catchall(z.any()).describe("Query options.")
|
|
993
993
|
});
|
|
994
|
-
var QueryOperationResponse = z.object({
|
|
994
|
+
var QueryOperationResponse = /* @__PURE__ */ z.object({
|
|
995
995
|
operations: z.array(
|
|
996
996
|
z.intersection(
|
|
997
997
|
z.object({
|
|
@@ -1254,8 +1254,8 @@ var QueryOperationResponse = z.object({
|
|
|
1254
1254
|
).optional().nullable()
|
|
1255
1255
|
}).describe("Metadata of the paginated results.").optional()
|
|
1256
1256
|
});
|
|
1257
|
-
var ListOperationsRequest = z.object({});
|
|
1258
|
-
var ListOperationsResponse = z.object({
|
|
1257
|
+
var ListOperationsRequest = /* @__PURE__ */ z.object({});
|
|
1258
|
+
var ListOperationsResponse = /* @__PURE__ */ z.object({
|
|
1259
1259
|
operations: z.array(
|
|
1260
1260
|
z.intersection(
|
|
1261
1261
|
z.object({
|
|
@@ -1502,7 +1502,7 @@ var ListOperationsResponse = z.object({
|
|
|
1502
1502
|
)
|
|
1503
1503
|
).optional()
|
|
1504
1504
|
});
|
|
1505
|
-
var ListAvailableFulfillmentOptionsRequest = z.object({
|
|
1505
|
+
var ListAvailableFulfillmentOptionsRequest = /* @__PURE__ */ z.object({
|
|
1506
1506
|
operationId: z.string().describe(
|
|
1507
1507
|
"Operation ID. Returned fulfillment options will belong to this operation."
|
|
1508
1508
|
).regex(
|
|
@@ -1564,7 +1564,7 @@ var ListAvailableFulfillmentOptionsRequest = z.object({
|
|
|
1564
1564
|
).optional()
|
|
1565
1565
|
}).optional()
|
|
1566
1566
|
});
|
|
1567
|
-
var ListAvailableFulfillmentOptionsResponse = z.object({
|
|
1567
|
+
var ListAvailableFulfillmentOptionsResponse = /* @__PURE__ */ z.object({
|
|
1568
1568
|
pickupConfigured: z.boolean().describe(
|
|
1569
1569
|
"Whether pickup fulfillment method is configured for the requested operation."
|
|
1570
1570
|
).optional(),
|
|
@@ -1743,7 +1743,7 @@ var ListAvailableFulfillmentOptionsResponse = z.object({
|
|
|
1743
1743
|
"Whether availability exceptions from type = PAUSED_ORDERING block the fulfillment options."
|
|
1744
1744
|
).optional().nullable()
|
|
1745
1745
|
});
|
|
1746
|
-
var ListFirstAvailableTimeSlotForFulfillmentTypesRequest = z.object({
|
|
1746
|
+
var ListFirstAvailableTimeSlotForFulfillmentTypesRequest = /* @__PURE__ */ z.object({
|
|
1747
1747
|
operationId: z.string().describe(
|
|
1748
1748
|
"Operation ID.\nReturned fulfillment options will belong to this operation."
|
|
1749
1749
|
).regex(
|
|
@@ -1805,7 +1805,7 @@ var ListFirstAvailableTimeSlotForFulfillmentTypesRequest = z.object({
|
|
|
1805
1805
|
).optional()
|
|
1806
1806
|
}).optional()
|
|
1807
1807
|
});
|
|
1808
|
-
var ListFirstAvailableTimeSlotForFulfillmentTypesResponse = z.object({
|
|
1808
|
+
var ListFirstAvailableTimeSlotForFulfillmentTypesResponse = /* @__PURE__ */ z.object({
|
|
1809
1809
|
timeSlots: z.array(
|
|
1810
1810
|
z.object({
|
|
1811
1811
|
startTime: z.date().describe("Start time and date of the time slot.").optional().nullable(),
|
|
@@ -1844,7 +1844,9 @@ var ListFirstAvailableTimeSlotForFulfillmentTypesResponse = z.object({
|
|
|
1844
1844
|
durationRangeOptions: z.object({
|
|
1845
1845
|
minDuration: z.number().int().describe("Minimum duration in minutes.").optional(),
|
|
1846
1846
|
maxDuration: z.number().int().describe("Maximum duration in minutes.").optional()
|
|
1847
|
-
}).describe(
|
|
1847
|
+
}).describe(
|
|
1848
|
+
"Fulfillment time has a minimum and a maximum."
|
|
1849
|
+
)
|
|
1848
1850
|
})
|
|
1849
1851
|
])
|
|
1850
1852
|
)
|
|
@@ -1864,7 +1866,7 @@ var ListFirstAvailableTimeSlotForFulfillmentTypesResponse = z.object({
|
|
|
1864
1866
|
})
|
|
1865
1867
|
).optional()
|
|
1866
1868
|
});
|
|
1867
|
-
var CalculateFirstAvailableTimeSlotPerFulfillmentTypeRequest = z.object({
|
|
1869
|
+
var CalculateFirstAvailableTimeSlotPerFulfillmentTypeRequest = /* @__PURE__ */ z.object({
|
|
1868
1870
|
operationId: z.string().describe("Operation ID.").regex(
|
|
1869
1871
|
/^[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}$/,
|
|
1870
1872
|
"Must be a valid GUID"
|
|
@@ -1924,7 +1926,7 @@ var CalculateFirstAvailableTimeSlotPerFulfillmentTypeRequest = z.object({
|
|
|
1924
1926
|
).optional()
|
|
1925
1927
|
}).optional()
|
|
1926
1928
|
});
|
|
1927
|
-
var CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse = z.object({
|
|
1929
|
+
var CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse = /* @__PURE__ */ z.object({
|
|
1928
1930
|
timeslotsPerFulfillmentType: z.array(
|
|
1929
1931
|
z.object({
|
|
1930
1932
|
timeSlot: z.object({
|
|
@@ -1980,7 +1982,7 @@ var CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse = z.object({
|
|
|
1980
1982
|
})
|
|
1981
1983
|
).max(2).optional()
|
|
1982
1984
|
});
|
|
1983
|
-
var ListFirstAvailableTimeSlotsForOperationsRequest = z.object({
|
|
1985
|
+
var ListFirstAvailableTimeSlotsForOperationsRequest = /* @__PURE__ */ z.object({
|
|
1984
1986
|
operationIds: z.array(z.string()).max(100),
|
|
1985
1987
|
options: z.object({
|
|
1986
1988
|
deliveryAddress: z.intersection(
|
|
@@ -2037,7 +2039,7 @@ var ListFirstAvailableTimeSlotsForOperationsRequest = z.object({
|
|
|
2037
2039
|
).optional()
|
|
2038
2040
|
}).optional()
|
|
2039
2041
|
});
|
|
2040
|
-
var ListFirstAvailableTimeSlotsForOperationsResponse = z.object({
|
|
2042
|
+
var ListFirstAvailableTimeSlotsForOperationsResponse = /* @__PURE__ */ z.object({
|
|
2041
2043
|
timeSlots: z.array(
|
|
2042
2044
|
z.object({
|
|
2043
2045
|
operationId: z.string().describe("Operation ID.").regex(
|
|
@@ -2106,7 +2108,7 @@ var ListFirstAvailableTimeSlotsForOperationsResponse = z.object({
|
|
|
2106
2108
|
})
|
|
2107
2109
|
).max(100).optional()
|
|
2108
2110
|
});
|
|
2109
|
-
var CalculateFirstAvailableTimeSlotsPerOperationRequest = z.object({
|
|
2111
|
+
var CalculateFirstAvailableTimeSlotsPerOperationRequest = /* @__PURE__ */ z.object({
|
|
2110
2112
|
operationIds: z.array(z.string()).max(100),
|
|
2111
2113
|
options: z.object({
|
|
2112
2114
|
deliveryAddress: z.intersection(
|
|
@@ -2163,7 +2165,7 @@ var CalculateFirstAvailableTimeSlotsPerOperationRequest = z.object({
|
|
|
2163
2165
|
).optional()
|
|
2164
2166
|
}).optional()
|
|
2165
2167
|
});
|
|
2166
|
-
var CalculateFirstAvailableTimeSlotsPerOperationResponse = z.object({
|
|
2168
|
+
var CalculateFirstAvailableTimeSlotsPerOperationResponse = /* @__PURE__ */ z.object({
|
|
2167
2169
|
timeSlotsPerOperation: z.array(
|
|
2168
2170
|
z.object({
|
|
2169
2171
|
operationId: z.string().describe("Operation ID.").regex(
|
|
@@ -2229,7 +2231,7 @@ var CalculateFirstAvailableTimeSlotsPerOperationResponse = z.object({
|
|
|
2229
2231
|
})
|
|
2230
2232
|
).max(100).optional()
|
|
2231
2233
|
});
|
|
2232
|
-
var ListFirstAvailableTimeSlotsForMenusRequest = z.object({
|
|
2234
|
+
var ListFirstAvailableTimeSlotsForMenusRequest = /* @__PURE__ */ z.object({
|
|
2233
2235
|
operationId: z.string().describe(
|
|
2234
2236
|
"Operation ID.\nReturned timeslots that are belong to this operation."
|
|
2235
2237
|
).regex(
|
|
@@ -2297,7 +2299,7 @@ var ListFirstAvailableTimeSlotsForMenusRequest = z.object({
|
|
|
2297
2299
|
}).describe("Cursor paging").optional()
|
|
2298
2300
|
}).optional()
|
|
2299
2301
|
});
|
|
2300
|
-
var ListFirstAvailableTimeSlotsForMenusResponse = z.object({
|
|
2302
|
+
var ListFirstAvailableTimeSlotsForMenusResponse = /* @__PURE__ */ z.object({
|
|
2301
2303
|
timeSlotsPerMenu: z.array(
|
|
2302
2304
|
z.object({
|
|
2303
2305
|
menuId: z.string().describe("Menu ID.").regex(
|
|
@@ -2367,7 +2369,7 @@ var ListFirstAvailableTimeSlotsForMenusResponse = z.object({
|
|
|
2367
2369
|
).max(100).optional(),
|
|
2368
2370
|
cursor: z.string().describe("Cursor to next request.").max(16e3).optional().nullable()
|
|
2369
2371
|
});
|
|
2370
|
-
var CalculateFirstAvailableTimeSlotsPerMenuRequest = z.object({
|
|
2372
|
+
var CalculateFirstAvailableTimeSlotsPerMenuRequest = /* @__PURE__ */ z.object({
|
|
2371
2373
|
operationId: z.string().describe("Operation ID.").regex(
|
|
2372
2374
|
/^[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}$/,
|
|
2373
2375
|
"Must be a valid GUID"
|
|
@@ -2436,7 +2438,7 @@ var CalculateFirstAvailableTimeSlotsPerMenuRequest = z.object({
|
|
|
2436
2438
|
).optional().nullable()
|
|
2437
2439
|
}).optional()
|
|
2438
2440
|
});
|
|
2439
|
-
var CalculateFirstAvailableTimeSlotsPerMenuResponse = z.object({
|
|
2441
|
+
var CalculateFirstAvailableTimeSlotsPerMenuResponse = /* @__PURE__ */ z.object({
|
|
2440
2442
|
timeSlotsPerMenu: z.array(
|
|
2441
2443
|
z.object({
|
|
2442
2444
|
menuId: z.string().describe("Menu ID.").regex(
|
|
@@ -2526,7 +2528,7 @@ var CalculateFirstAvailableTimeSlotsPerMenuResponse = z.object({
|
|
|
2526
2528
|
).optional().nullable()
|
|
2527
2529
|
}).describe("Metadata for the paginated results.").optional()
|
|
2528
2530
|
});
|
|
2529
|
-
var CalculateFirstAvailableTimeSlotsForItemRequest = z.object({
|
|
2531
|
+
var CalculateFirstAvailableTimeSlotsForItemRequest = /* @__PURE__ */ z.object({
|
|
2530
2532
|
operationId: z.string().regex(
|
|
2531
2533
|
/^[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}$/,
|
|
2532
2534
|
"Must be a valid GUID"
|
|
@@ -2552,7 +2554,9 @@ var CalculateFirstAvailableTimeSlotsForItemRequest = z.object({
|
|
|
2552
2554
|
addressLine2: z.string().describe(
|
|
2553
2555
|
"Free text providing more detailed address info. Usually contains Apt, Suite, and Floor."
|
|
2554
2556
|
).optional().nullable(),
|
|
2555
|
-
formattedAddress: z.string().describe(
|
|
2557
|
+
formattedAddress: z.string().describe(
|
|
2558
|
+
"A string containing the full address of this location."
|
|
2559
|
+
).optional().nullable(),
|
|
2556
2560
|
hint: z.string().describe("Free text to help find the address.").optional().nullable(),
|
|
2557
2561
|
geocode: z.object({
|
|
2558
2562
|
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
@@ -2593,7 +2597,7 @@ var CalculateFirstAvailableTimeSlotsForItemRequest = z.object({
|
|
|
2593
2597
|
).optional()
|
|
2594
2598
|
})
|
|
2595
2599
|
});
|
|
2596
|
-
var CalculateFirstAvailableTimeSlotsForItemResponse = z.object({
|
|
2600
|
+
var CalculateFirstAvailableTimeSlotsForItemResponse = /* @__PURE__ */ z.object({
|
|
2597
2601
|
timeslotsPerFulfillmentType: z.array(
|
|
2598
2602
|
z.object({
|
|
2599
2603
|
timeSlot: z.object({
|
|
@@ -2665,7 +2669,7 @@ var CalculateFirstAvailableTimeSlotsForItemResponse = z.object({
|
|
|
2665
2669
|
).optional().nullable()
|
|
2666
2670
|
}).describe("Metadata for the paginated results.").optional()
|
|
2667
2671
|
});
|
|
2668
|
-
var ListAvailableTimeSlotsForDateRequest = z.object({
|
|
2672
|
+
var ListAvailableTimeSlotsForDateRequest = /* @__PURE__ */ z.object({
|
|
2669
2673
|
operationId: z.string().describe(
|
|
2670
2674
|
"Operation ID.\nThe returned fulfillment options will belong to this operation."
|
|
2671
2675
|
).regex(
|
|
@@ -2730,7 +2734,7 @@ var ListAvailableTimeSlotsForDateRequest = z.object({
|
|
|
2730
2734
|
}).describe("Date and time to get the available time slots for.")
|
|
2731
2735
|
})
|
|
2732
2736
|
});
|
|
2733
|
-
var ListAvailableTimeSlotsForDateResponse = z.object({
|
|
2737
|
+
var ListAvailableTimeSlotsForDateResponse = /* @__PURE__ */ z.object({
|
|
2734
2738
|
timeSlots: z.array(
|
|
2735
2739
|
z.object({
|
|
2736
2740
|
startTime: z.date().describe("Start time and date of the time slot.").optional().nullable(),
|
|
@@ -2789,70 +2793,74 @@ var ListAvailableTimeSlotsForDateResponse = z.object({
|
|
|
2789
2793
|
})
|
|
2790
2794
|
).optional()
|
|
2791
2795
|
});
|
|
2792
|
-
var CalculateAvailableTimeSlotsForDateRequest = z.object(
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
z.
|
|
2800
|
-
country: z.string().describe("Country code.").optional().nullable(),
|
|
2801
|
-
subdivision: z.string().describe(
|
|
2802
|
-
"Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)."
|
|
2803
|
-
).optional().nullable(),
|
|
2804
|
-
city: z.string().describe("City name.").optional().nullable(),
|
|
2805
|
-
postalCode: z.string().describe("Zip/postal code.").optional().nullable(),
|
|
2806
|
-
addressLine2: z.string().describe(
|
|
2807
|
-
"Free text providing more detailed address info. Usually contains Apt, Suite, and Floor."
|
|
2808
|
-
).optional().nullable(),
|
|
2809
|
-
formattedAddress: z.string().describe("A string containing the full address of this location.").optional().nullable(),
|
|
2810
|
-
hint: z.string().describe("Free text to help find the address.").optional().nullable(),
|
|
2811
|
-
geocode: z.object({
|
|
2812
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
2813
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
2814
|
-
}).describe("Coordinates of the physical address.").optional(),
|
|
2815
|
-
countryFullname: z.string().describe("Country full name.").optional().nullable(),
|
|
2816
|
-
subdivisionFullname: z.string().describe("Subdivision full name.").optional().nullable(),
|
|
2817
|
-
subdivisions: z.array(
|
|
2818
|
-
z.object({
|
|
2819
|
-
code: z.string().describe("Short subdivision code.").optional(),
|
|
2820
|
-
name: z.string().describe("Subdivision full name.").optional()
|
|
2821
|
-
})
|
|
2822
|
-
).max(6).optional()
|
|
2823
|
-
}),
|
|
2824
|
-
z.xor([
|
|
2825
|
-
z.object({
|
|
2826
|
-
streetAddress: z.never().optional(),
|
|
2827
|
-
addressLine: z.never().optional()
|
|
2828
|
-
}),
|
|
2796
|
+
var CalculateAvailableTimeSlotsForDateRequest = /* @__PURE__ */ z.object(
|
|
2797
|
+
{
|
|
2798
|
+
operationId: z.string().describe("Operation ID.").regex(
|
|
2799
|
+
/^[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}$/,
|
|
2800
|
+
"Must be a valid GUID"
|
|
2801
|
+
),
|
|
2802
|
+
options: z.object({
|
|
2803
|
+
deliveryAddress: z.intersection(
|
|
2829
2804
|
z.object({
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2805
|
+
country: z.string().describe("Country code.").optional().nullable(),
|
|
2806
|
+
subdivision: z.string().describe(
|
|
2807
|
+
"Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)."
|
|
2808
|
+
).optional().nullable(),
|
|
2809
|
+
city: z.string().describe("City name.").optional().nullable(),
|
|
2810
|
+
postalCode: z.string().describe("Zip/postal code.").optional().nullable(),
|
|
2811
|
+
addressLine2: z.string().describe(
|
|
2812
|
+
"Free text providing more detailed address info. Usually contains Apt, Suite, and Floor."
|
|
2813
|
+
).optional().nullable(),
|
|
2814
|
+
formattedAddress: z.string().describe(
|
|
2815
|
+
"A string containing the full address of this location."
|
|
2816
|
+
).optional().nullable(),
|
|
2817
|
+
hint: z.string().describe("Free text to help find the address.").optional().nullable(),
|
|
2818
|
+
geocode: z.object({
|
|
2819
|
+
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
2820
|
+
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
2821
|
+
}).describe("Coordinates of the physical address.").optional(),
|
|
2822
|
+
countryFullname: z.string().describe("Country full name.").optional().nullable(),
|
|
2823
|
+
subdivisionFullname: z.string().describe("Subdivision full name.").optional().nullable(),
|
|
2824
|
+
subdivisions: z.array(
|
|
2825
|
+
z.object({
|
|
2826
|
+
code: z.string().describe("Short subdivision code.").optional(),
|
|
2827
|
+
name: z.string().describe("Subdivision full name.").optional()
|
|
2828
|
+
})
|
|
2829
|
+
).max(6).optional()
|
|
2837
2830
|
}),
|
|
2838
|
-
z.
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
)
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2831
|
+
z.xor([
|
|
2832
|
+
z.object({
|
|
2833
|
+
streetAddress: z.never().optional(),
|
|
2834
|
+
addressLine: z.never().optional()
|
|
2835
|
+
}),
|
|
2836
|
+
z.object({
|
|
2837
|
+
addressLine: z.never().optional(),
|
|
2838
|
+
streetAddress: z.object({
|
|
2839
|
+
number: z.string().describe("Street number.").optional(),
|
|
2840
|
+
name: z.string().describe("Street name.").optional(),
|
|
2841
|
+
apt: z.string().describe("Apartment number.").optional(),
|
|
2842
|
+
formattedAddressLine: z.string().describe("Optional address line 1").optional().nullable()
|
|
2843
|
+
}).describe("Street name and number.")
|
|
2844
|
+
}),
|
|
2845
|
+
z.object({
|
|
2846
|
+
streetAddress: z.never().optional(),
|
|
2847
|
+
addressLine: z.string().describe(
|
|
2848
|
+
"Main address line, usually street and number as free text."
|
|
2849
|
+
)
|
|
2850
|
+
})
|
|
2851
|
+
])
|
|
2852
|
+
).describe(
|
|
2853
|
+
"Delivery address.\n\nThe response includes time slots with delivery fulfillment types only if you specify a delivery address."
|
|
2854
|
+
).optional(),
|
|
2855
|
+
date: z.object({
|
|
2856
|
+
day: z.number().int().describe("The day of the month.").min(1).max(31),
|
|
2857
|
+
month: z.number().int().describe("The month of the year.").min(1).max(12),
|
|
2858
|
+
year: z.number().int().describe("The year of the date.").min(2023).max(2200)
|
|
2859
|
+
}).describe("Date and time to get the available time slots for.")
|
|
2860
|
+
})
|
|
2861
|
+
}
|
|
2862
|
+
);
|
|
2863
|
+
var CalculateAvailableTimeSlotsForDateResponse = /* @__PURE__ */ z.object({
|
|
2856
2864
|
timeslotsPerFulfillmentType: z.array(
|
|
2857
2865
|
z.object({
|
|
2858
2866
|
timeSlot: z.object({
|
|
@@ -2908,7 +2916,7 @@ var CalculateAvailableTimeSlotsForDateResponse = z.object({
|
|
|
2908
2916
|
})
|
|
2909
2917
|
).max(2).optional()
|
|
2910
2918
|
});
|
|
2911
|
-
var ListAvailableDatesInRangeRequest = z.object({
|
|
2919
|
+
var ListAvailableDatesInRangeRequest = /* @__PURE__ */ z.object({
|
|
2912
2920
|
operationId: z.string().describe(
|
|
2913
2921
|
"Operation ID.\nThe returned fulfillment options will belong to this operation."
|
|
2914
2922
|
).regex(
|
|
@@ -2978,7 +2986,7 @@ var ListAvailableDatesInRangeRequest = z.object({
|
|
|
2978
2986
|
}).describe("End date and time of the range.")
|
|
2979
2987
|
})
|
|
2980
2988
|
});
|
|
2981
|
-
var ListAvailableDatesInRangeResponse = z.object({
|
|
2989
|
+
var ListAvailableDatesInRangeResponse = /* @__PURE__ */ z.object({
|
|
2982
2990
|
availableDates: z.array(
|
|
2983
2991
|
z.object({
|
|
2984
2992
|
fulfilmentType: z.enum(["PICKUP", "DELIVERY"]).describe("Fulfillment type.").optional(),
|
|
@@ -2992,7 +3000,7 @@ var ListAvailableDatesInRangeResponse = z.object({
|
|
|
2992
3000
|
})
|
|
2993
3001
|
).optional()
|
|
2994
3002
|
});
|
|
2995
|
-
var CalculateAvailableDatesInRangeRequest = z.object({
|
|
3003
|
+
var CalculateAvailableDatesInRangeRequest = /* @__PURE__ */ z.object({
|
|
2996
3004
|
operationId: z.string().describe("Operation ID.").regex(
|
|
2997
3005
|
/^[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}$/,
|
|
2998
3006
|
"Must be a valid GUID"
|
|
@@ -3060,7 +3068,7 @@ var CalculateAvailableDatesInRangeRequest = z.object({
|
|
|
3060
3068
|
}).describe("End date and time of the range.")
|
|
3061
3069
|
})
|
|
3062
3070
|
});
|
|
3063
|
-
var CalculateAvailableDatesInRangeResponse = z.object({
|
|
3071
|
+
var CalculateAvailableDatesInRangeResponse = /* @__PURE__ */ z.object({
|
|
3064
3072
|
availableDatesPerFulfillmentType: z.array(
|
|
3065
3073
|
z.object({
|
|
3066
3074
|
fulfilmentType: z.enum(["PICKUP", "DELIVERY"]).describe("Fulfillment type.").optional(),
|
|
@@ -3074,13 +3082,13 @@ var CalculateAvailableDatesInRangeResponse = z.object({
|
|
|
3074
3082
|
})
|
|
3075
3083
|
).optional()
|
|
3076
3084
|
});
|
|
3077
|
-
var ValidateOperationAddressRequest = z.object({
|
|
3085
|
+
var ValidateOperationAddressRequest = /* @__PURE__ */ z.object({
|
|
3078
3086
|
operationId: z.string().describe("The ID of the operation whose address should be validated.").regex(
|
|
3079
3087
|
/^[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}$/,
|
|
3080
3088
|
"Must be a valid GUID"
|
|
3081
3089
|
)
|
|
3082
3090
|
});
|
|
3083
|
-
var ValidateOperationAddressResponse = z.object({
|
|
3091
|
+
var ValidateOperationAddressResponse = /* @__PURE__ */ z.object({
|
|
3084
3092
|
valid: z.boolean().describe("Whether the address is valid.").optional(),
|
|
3085
3093
|
violations: z.array(
|
|
3086
3094
|
z.object({
|
|
@@ -3095,7 +3103,7 @@ var ValidateOperationAddressResponse = z.object({
|
|
|
3095
3103
|
})
|
|
3096
3104
|
).max(5).optional()
|
|
3097
3105
|
});
|
|
3098
|
-
var BulkUpdateOperationTagsRequest = z.object({
|
|
3106
|
+
var BulkUpdateOperationTagsRequest = /* @__PURE__ */ z.object({
|
|
3099
3107
|
operationIds: z.array(z.string()).min(1).max(100),
|
|
3100
3108
|
options: z.object({
|
|
3101
3109
|
assignTags: z.object({
|
|
@@ -3116,7 +3124,7 @@ var BulkUpdateOperationTagsRequest = z.object({
|
|
|
3116
3124
|
}).describe("Tags to unassign from the operations.").optional()
|
|
3117
3125
|
}).optional()
|
|
3118
3126
|
});
|
|
3119
|
-
var BulkUpdateOperationTagsResponse = z.object({
|
|
3127
|
+
var BulkUpdateOperationTagsResponse = /* @__PURE__ */ z.object({
|
|
3120
3128
|
results: z.array(
|
|
3121
3129
|
z.object({
|
|
3122
3130
|
itemMetadata: z.object({
|
|
@@ -3148,7 +3156,7 @@ var BulkUpdateOperationTagsResponse = z.object({
|
|
|
3148
3156
|
).optional()
|
|
3149
3157
|
}).describe("Metadata for the bulk update.").optional()
|
|
3150
3158
|
});
|
|
3151
|
-
var BulkUpdateOperationTagsByFilterRequest = z.object({
|
|
3159
|
+
var BulkUpdateOperationTagsByFilterRequest = /* @__PURE__ */ z.object({
|
|
3152
3160
|
filter: z.record(z.string(), z.any()).describe("Filter that determines which operations to update tags for."),
|
|
3153
3161
|
options: z.object({
|
|
3154
3162
|
assignTags: z.object({
|
|
@@ -3169,7 +3177,7 @@ var BulkUpdateOperationTagsByFilterRequest = z.object({
|
|
|
3169
3177
|
}).describe("Tags to unassign from the operations.").optional()
|
|
3170
3178
|
}).optional()
|
|
3171
3179
|
});
|
|
3172
|
-
var BulkUpdateOperationTagsByFilterResponse = z.object({
|
|
3180
|
+
var BulkUpdateOperationTagsByFilterResponse = /* @__PURE__ */ z.object({
|
|
3173
3181
|
jobId: z.string().describe(
|
|
3174
3182
|
"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."
|
|
3175
3183
|
).regex(
|