@wix/auto_sdk_restaurants_operations 1.0.99 → 1.0.101
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.d.ts +19 -19
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +22 -22
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +19 -19
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +22 -22
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +19 -19
- package/build/internal/cjs/index.typings.d.ts +22 -22
- package/build/internal/cjs/meta.d.ts +2 -2
- package/build/internal/es/index.d.mts +19 -19
- package/build/internal/es/index.typings.d.mts +22 -22
- package/build/internal/es/meta.d.mts +2 -2
- package/package.json +4 -11
- package/build/cjs/schemas.d.ts +0 -2137
- package/build/cjs/schemas.js +0 -3233
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -2137
- package/build/es/schemas.mjs +0 -3155
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -2598
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -2315
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -1798
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -2137
- package/build/internal/cjs/schemas.js +0 -3233
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -2521
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -2239
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -1721
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -2137
- package/build/internal/es/schemas.mjs +0 -3155
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
|
@@ -1,2598 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
ActivationType: () => ActivationType,
|
|
24
|
-
AsapFutureHandlingType: () => AsapFutureHandlingType,
|
|
25
|
-
AsapPacingWindowType: () => AsapPacingWindowType,
|
|
26
|
-
AsapPreorderType: () => AsapPreorderType,
|
|
27
|
-
DayOfWeek: () => DayOfWeek,
|
|
28
|
-
DeleteStatus: () => DeleteStatus,
|
|
29
|
-
EntitiesDayOfWeek: () => EntitiesDayOfWeek,
|
|
30
|
-
FulfillmentTimeType: () => FulfillmentTimeType,
|
|
31
|
-
FulfillmentTimesDisplayType: () => FulfillmentTimesDisplayType,
|
|
32
|
-
FulfillmentTimesType: () => FulfillmentTimesType,
|
|
33
|
-
FulfillmentType: () => FulfillmentType,
|
|
34
|
-
MethodType: () => MethodType,
|
|
35
|
-
Namespace: () => Namespace,
|
|
36
|
-
OnlineOrderingStatusType: () => OnlineOrderingStatusType,
|
|
37
|
-
OrderSchedulingType: () => OrderSchedulingType,
|
|
38
|
-
PlacementType: () => PlacementType,
|
|
39
|
-
PreorderPacingWindowType: () => PreorderPacingWindowType,
|
|
40
|
-
PreparationTimePreparationTimeType: () => PreparationTimePreparationTimeType,
|
|
41
|
-
PreparationTimeType: () => PreparationTimeType,
|
|
42
|
-
ResolutionMethod: () => ResolutionMethod,
|
|
43
|
-
SchedulingType: () => SchedulingType,
|
|
44
|
-
SiteCreatedContext: () => SiteCreatedContext,
|
|
45
|
-
SortOrder: () => SortOrder,
|
|
46
|
-
State: () => State,
|
|
47
|
-
SubdivisionType: () => SubdivisionType,
|
|
48
|
-
TimeSlotForFulfillmentTimeSlotStatus: () => TimeSlotForFulfillmentTimeSlotStatus,
|
|
49
|
-
TimeSlotStatus: () => TimeSlotStatus,
|
|
50
|
-
TimeUnit: () => TimeUnit,
|
|
51
|
-
ViolationType: () => ViolationType,
|
|
52
|
-
WebhookIdentityType: () => WebhookIdentityType,
|
|
53
|
-
bulkUpdateOperationTags: () => bulkUpdateOperationTags4,
|
|
54
|
-
bulkUpdateOperationTagsByFilter: () => bulkUpdateOperationTagsByFilter4,
|
|
55
|
-
calculateAvailableDatesInRange: () => calculateAvailableDatesInRange4,
|
|
56
|
-
calculateAvailableTimeSlotsForDate: () => calculateAvailableTimeSlotsForDate4,
|
|
57
|
-
calculateFirstAvailableTimeSlotPerFulfillmentType: () => calculateFirstAvailableTimeSlotPerFulfillmentType4,
|
|
58
|
-
calculateFirstAvailableTimeSlotsForItem: () => calculateFirstAvailableTimeSlotsForItem4,
|
|
59
|
-
calculateFirstAvailableTimeSlotsPerMenu: () => calculateFirstAvailableTimeSlotsPerMenu4,
|
|
60
|
-
calculateFirstAvailableTimeSlotsPerOperation: () => calculateFirstAvailableTimeSlotsPerOperation4,
|
|
61
|
-
deleteOperation: () => deleteOperation4,
|
|
62
|
-
getOperation: () => getOperation4,
|
|
63
|
-
listAvailableDatesInRange: () => listAvailableDatesInRange4,
|
|
64
|
-
listAvailableFulfillmentOptions: () => listAvailableFulfillmentOptions4,
|
|
65
|
-
listAvailableTimeSlotsForDate: () => listAvailableTimeSlotsForDate4,
|
|
66
|
-
listBlockedPeriods: () => listBlockedPeriods4,
|
|
67
|
-
listFirstAvailableTimeSlotForFulfillmentTypes: () => listFirstAvailableTimeSlotForFulfillmentTypes4,
|
|
68
|
-
listFirstAvailableTimeSlotsForMenus: () => listFirstAvailableTimeSlotsForMenus4,
|
|
69
|
-
listFirstAvailableTimeSlotsForOperations: () => listFirstAvailableTimeSlotsForOperations4,
|
|
70
|
-
listOperations: () => listOperations4,
|
|
71
|
-
onOperationDeleted: () => onOperationDeleted2,
|
|
72
|
-
onOperationUpdated: () => onOperationUpdated2,
|
|
73
|
-
queryOperation: () => queryOperation4,
|
|
74
|
-
updateOperation: () => updateOperation4,
|
|
75
|
-
utils: () => utils,
|
|
76
|
-
validateOperationAddress: () => validateOperationAddress4
|
|
77
|
-
});
|
|
78
|
-
module.exports = __toCommonJS(index_exports);
|
|
79
|
-
|
|
80
|
-
// src/restaurants-operations-v1-operation-operations.public.ts
|
|
81
|
-
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
82
|
-
var import_address3 = require("@wix/sdk-runtime/transformations/address");
|
|
83
|
-
var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
84
|
-
var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
85
|
-
var import_sdk_types = require("@wix/sdk-types");
|
|
86
|
-
|
|
87
|
-
// src/restaurants-operations-v1-operation-operations.universal.ts
|
|
88
|
-
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
89
|
-
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
90
|
-
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
91
|
-
|
|
92
|
-
// src/restaurants-operations-v1-operation-operations.http.ts
|
|
93
|
-
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
94
|
-
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
95
|
-
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
96
|
-
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
97
|
-
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
98
|
-
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
99
|
-
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
100
|
-
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
101
|
-
function resolveWixRestaurantsOperationsV1OperationsServiceUrl(opts) {
|
|
102
|
-
const domainToMappings = {
|
|
103
|
-
"manage._base_domain_": [
|
|
104
|
-
{
|
|
105
|
-
srcPath: "/_api/restaurants-operations/v1",
|
|
106
|
-
destPath: "/v1"
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"www._base_domain_": [
|
|
110
|
-
{
|
|
111
|
-
srcPath: "/_api/restaurants-operations/v1",
|
|
112
|
-
destPath: "/v1"
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
"editor.wixapps.net": [
|
|
116
|
-
{
|
|
117
|
-
srcPath: "/_api/restaurants-operations/v1",
|
|
118
|
-
destPath: "/v1"
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"*.dev.wix-code.com": [
|
|
122
|
-
{
|
|
123
|
-
srcPath: "/_api/restaurants-operations/v1",
|
|
124
|
-
destPath: "/v1"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"www.wixapis.com": [
|
|
128
|
-
{
|
|
129
|
-
srcPath: "/restaurants-operations/v1",
|
|
130
|
-
destPath: "/v1"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
srcPath: "/restaurants/operations/v1/operations",
|
|
134
|
-
destPath: "/v1/operations"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
_: [
|
|
138
|
-
{
|
|
139
|
-
srcPath: "/_api/restaurants-operations/v1",
|
|
140
|
-
destPath: "/v1"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
_base_domain_: [
|
|
144
|
-
{
|
|
145
|
-
srcPath: "/_api/restaurants-operations/v1",
|
|
146
|
-
destPath: "/v1"
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
"editor._base_domain_": [
|
|
150
|
-
{
|
|
151
|
-
srcPath: "/_api/restaurants-operations/v1",
|
|
152
|
-
destPath: "/v1"
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
"blocks._base_domain_": [
|
|
156
|
-
{
|
|
157
|
-
srcPath: "/_api/restaurants-operations/v1",
|
|
158
|
-
destPath: "/v1"
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
"create.editorx": [
|
|
162
|
-
{
|
|
163
|
-
srcPath: "/_api/restaurants-operations/v1",
|
|
164
|
-
destPath: "/v1"
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"users._base_domain_": [
|
|
168
|
-
{
|
|
169
|
-
srcPath: "/_api/restaurants-operations/v1",
|
|
170
|
-
destPath: "/v1"
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
"api._api_base_domain_": [
|
|
174
|
-
{
|
|
175
|
-
srcPath: "/restaurants-operations",
|
|
176
|
-
destPath: ""
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
"apps._base_domain_": [
|
|
180
|
-
{
|
|
181
|
-
srcPath: "/_api/restaurants-operations",
|
|
182
|
-
destPath: ""
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
};
|
|
186
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
187
|
-
}
|
|
188
|
-
function resolveWixRestaurantsOperationPacingV1OperationPacingServiceUrl(opts) {
|
|
189
|
-
const domainToMappings = {
|
|
190
|
-
_: [
|
|
191
|
-
{
|
|
192
|
-
srcPath: "/_api/rest-operation-pacing",
|
|
193
|
-
destPath: ""
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
"manage._base_domain_": [
|
|
197
|
-
{
|
|
198
|
-
srcPath: "/_api/rest-operation-pacing",
|
|
199
|
-
destPath: ""
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
"editor._base_domain_": [
|
|
203
|
-
{
|
|
204
|
-
srcPath: "/_api/rest-operation-pacing",
|
|
205
|
-
destPath: ""
|
|
206
|
-
}
|
|
207
|
-
],
|
|
208
|
-
"blocks._base_domain_": [
|
|
209
|
-
{
|
|
210
|
-
srcPath: "/_api/rest-operation-pacing",
|
|
211
|
-
destPath: ""
|
|
212
|
-
}
|
|
213
|
-
],
|
|
214
|
-
"create.editorx": [
|
|
215
|
-
{
|
|
216
|
-
srcPath: "/_api/rest-operation-pacing",
|
|
217
|
-
destPath: ""
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
"www.wixapis.com": [
|
|
221
|
-
{
|
|
222
|
-
srcPath: "/_api/rest-operation-pacing",
|
|
223
|
-
destPath: ""
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"*.dev.wix-code.com": [
|
|
227
|
-
{
|
|
228
|
-
srcPath: "/_api/rest-operation-pacing",
|
|
229
|
-
destPath: ""
|
|
230
|
-
}
|
|
231
|
-
]
|
|
232
|
-
};
|
|
233
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
234
|
-
}
|
|
235
|
-
var PACKAGE_NAME = "@wix/auto_sdk_restaurants_operations";
|
|
236
|
-
function listBlockedPeriods(payload) {
|
|
237
|
-
function __listBlockedPeriods({ host }) {
|
|
238
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
239
|
-
{
|
|
240
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
241
|
-
paths: [{ path: "from" }, { path: "until" }]
|
|
242
|
-
}
|
|
243
|
-
]);
|
|
244
|
-
const metadata = {
|
|
245
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
246
|
-
method: "GET",
|
|
247
|
-
methodFqn: "wix.restaurants.operation.pacing.v1.OperationPacingService.ListBlockedPeriods",
|
|
248
|
-
packageName: PACKAGE_NAME,
|
|
249
|
-
migrationOptions: {
|
|
250
|
-
optInTransformResponse: true
|
|
251
|
-
},
|
|
252
|
-
url: resolveWixRestaurantsOperationPacingV1OperationPacingServiceUrl({
|
|
253
|
-
protoPath: "/v1/operation-pacing/blocked-periods",
|
|
254
|
-
data: serializedData,
|
|
255
|
-
host
|
|
256
|
-
}),
|
|
257
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
258
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
259
|
-
{
|
|
260
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
261
|
-
paths: [
|
|
262
|
-
{ path: "blockPeriods.from" },
|
|
263
|
-
{ path: "blockPeriods.until" }
|
|
264
|
-
]
|
|
265
|
-
}
|
|
266
|
-
])
|
|
267
|
-
};
|
|
268
|
-
return metadata;
|
|
269
|
-
}
|
|
270
|
-
return __listBlockedPeriods;
|
|
271
|
-
}
|
|
272
|
-
function getOperation(payload) {
|
|
273
|
-
function __getOperation({ host }) {
|
|
274
|
-
const metadata = {
|
|
275
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
276
|
-
method: "GET",
|
|
277
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.GetOperation",
|
|
278
|
-
packageName: PACKAGE_NAME,
|
|
279
|
-
migrationOptions: {
|
|
280
|
-
optInTransformResponse: true
|
|
281
|
-
},
|
|
282
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
283
|
-
protoPath: "/v1/operations/{operationId}",
|
|
284
|
-
data: payload,
|
|
285
|
-
host
|
|
286
|
-
}),
|
|
287
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
288
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
289
|
-
{
|
|
290
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
291
|
-
paths: [
|
|
292
|
-
{ path: "operation.createdDate" },
|
|
293
|
-
{ path: "operation.updatedDate" },
|
|
294
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
295
|
-
]
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
299
|
-
paths: [
|
|
300
|
-
{
|
|
301
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
|
-
}
|
|
308
|
-
])
|
|
309
|
-
};
|
|
310
|
-
return metadata;
|
|
311
|
-
}
|
|
312
|
-
return __getOperation;
|
|
313
|
-
}
|
|
314
|
-
function updateOperation(payload) {
|
|
315
|
-
function __updateOperation({ host }) {
|
|
316
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
317
|
-
{
|
|
318
|
-
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
319
|
-
paths: [{ path: "mask" }]
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
323
|
-
paths: [
|
|
324
|
-
{ path: "operation.createdDate" },
|
|
325
|
-
{ path: "operation.updatedDate" },
|
|
326
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
327
|
-
]
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
331
|
-
paths: [
|
|
332
|
-
{
|
|
333
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
337
|
-
}
|
|
338
|
-
]
|
|
339
|
-
}
|
|
340
|
-
]);
|
|
341
|
-
const metadata = {
|
|
342
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
343
|
-
method: "PATCH",
|
|
344
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.UpdateOperation",
|
|
345
|
-
packageName: PACKAGE_NAME,
|
|
346
|
-
migrationOptions: {
|
|
347
|
-
optInTransformResponse: true
|
|
348
|
-
},
|
|
349
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
350
|
-
protoPath: "/v1/operations/{operation.id}",
|
|
351
|
-
data: serializedData,
|
|
352
|
-
host
|
|
353
|
-
}),
|
|
354
|
-
data: serializedData,
|
|
355
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
356
|
-
{
|
|
357
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
358
|
-
paths: [
|
|
359
|
-
{ path: "operation.createdDate" },
|
|
360
|
-
{ path: "operation.updatedDate" },
|
|
361
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
362
|
-
]
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
366
|
-
paths: [
|
|
367
|
-
{
|
|
368
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
372
|
-
}
|
|
373
|
-
]
|
|
374
|
-
}
|
|
375
|
-
])
|
|
376
|
-
};
|
|
377
|
-
return metadata;
|
|
378
|
-
}
|
|
379
|
-
return __updateOperation;
|
|
380
|
-
}
|
|
381
|
-
function deleteOperation(payload) {
|
|
382
|
-
function __deleteOperation({ host }) {
|
|
383
|
-
const metadata = {
|
|
384
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
385
|
-
method: "DELETE",
|
|
386
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.DeleteOperation",
|
|
387
|
-
packageName: PACKAGE_NAME,
|
|
388
|
-
migrationOptions: {
|
|
389
|
-
optInTransformResponse: true
|
|
390
|
-
},
|
|
391
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
392
|
-
protoPath: "/v1/operations/{operationId}",
|
|
393
|
-
data: payload,
|
|
394
|
-
host
|
|
395
|
-
}),
|
|
396
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
397
|
-
};
|
|
398
|
-
return metadata;
|
|
399
|
-
}
|
|
400
|
-
return __deleteOperation;
|
|
401
|
-
}
|
|
402
|
-
function queryOperation(payload) {
|
|
403
|
-
function __queryOperation({ host }) {
|
|
404
|
-
const metadata = {
|
|
405
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
406
|
-
method: "POST",
|
|
407
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.QueryOperation",
|
|
408
|
-
packageName: PACKAGE_NAME,
|
|
409
|
-
migrationOptions: {
|
|
410
|
-
optInTransformResponse: true
|
|
411
|
-
},
|
|
412
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
413
|
-
protoPath: "/v1/operations/query",
|
|
414
|
-
data: payload,
|
|
415
|
-
host
|
|
416
|
-
}),
|
|
417
|
-
data: payload,
|
|
418
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
419
|
-
{
|
|
420
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
421
|
-
paths: [
|
|
422
|
-
{ path: "operations.createdDate" },
|
|
423
|
-
{ path: "operations.updatedDate" },
|
|
424
|
-
{ path: "operations.pausedUntilOptions.time" }
|
|
425
|
-
]
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
429
|
-
paths: [
|
|
430
|
-
{
|
|
431
|
-
path: "operations.businessLocationDetails.address.geocode.latitude"
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
path: "operations.businessLocationDetails.address.geocode.longitude"
|
|
435
|
-
}
|
|
436
|
-
]
|
|
437
|
-
}
|
|
438
|
-
])
|
|
439
|
-
};
|
|
440
|
-
return metadata;
|
|
441
|
-
}
|
|
442
|
-
return __queryOperation;
|
|
443
|
-
}
|
|
444
|
-
function listOperations(payload) {
|
|
445
|
-
function __listOperations({ host }) {
|
|
446
|
-
const metadata = {
|
|
447
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
448
|
-
method: "GET",
|
|
449
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.ListOperations",
|
|
450
|
-
packageName: PACKAGE_NAME,
|
|
451
|
-
migrationOptions: {
|
|
452
|
-
optInTransformResponse: true
|
|
453
|
-
},
|
|
454
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
455
|
-
protoPath: "/v1/operations",
|
|
456
|
-
data: payload,
|
|
457
|
-
host
|
|
458
|
-
}),
|
|
459
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
460
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
461
|
-
{
|
|
462
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
463
|
-
paths: [
|
|
464
|
-
{ path: "operations.createdDate" },
|
|
465
|
-
{ path: "operations.updatedDate" },
|
|
466
|
-
{ path: "operations.pausedUntilOptions.time" }
|
|
467
|
-
]
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
471
|
-
paths: [
|
|
472
|
-
{
|
|
473
|
-
path: "operations.businessLocationDetails.address.geocode.latitude"
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
path: "operations.businessLocationDetails.address.geocode.longitude"
|
|
477
|
-
}
|
|
478
|
-
]
|
|
479
|
-
}
|
|
480
|
-
])
|
|
481
|
-
};
|
|
482
|
-
return metadata;
|
|
483
|
-
}
|
|
484
|
-
return __listOperations;
|
|
485
|
-
}
|
|
486
|
-
function listAvailableFulfillmentOptions(payload) {
|
|
487
|
-
function __listAvailableFulfillmentOptions({ host }) {
|
|
488
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
489
|
-
{
|
|
490
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
491
|
-
paths: [
|
|
492
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
493
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
494
|
-
]
|
|
495
|
-
}
|
|
496
|
-
]);
|
|
497
|
-
const metadata = {
|
|
498
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
499
|
-
method: "GET",
|
|
500
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.ListAvailableFulfillmentOptions",
|
|
501
|
-
packageName: PACKAGE_NAME,
|
|
502
|
-
migrationOptions: {
|
|
503
|
-
optInTransformResponse: true
|
|
504
|
-
},
|
|
505
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
506
|
-
protoPath: "/v1/operations/{operationId}/available-fulfillment-options",
|
|
507
|
-
data: serializedData,
|
|
508
|
-
host
|
|
509
|
-
}),
|
|
510
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
511
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
512
|
-
{
|
|
513
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
514
|
-
paths: [
|
|
515
|
-
{
|
|
516
|
-
path: "fulfillmentOptions.pickupOptions.address.geocode.latitude"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
path: "fulfillmentOptions.pickupOptions.address.geocode.longitude"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
path: "fulfillmentOptions.dineInOptions.address.geocode.latitude"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
path: "fulfillmentOptions.dineInOptions.address.geocode.longitude"
|
|
526
|
-
}
|
|
527
|
-
]
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
531
|
-
paths: [
|
|
532
|
-
{ path: "fulfillmentOptions.availability.startTime" },
|
|
533
|
-
{ path: "fulfillmentOptions.availability.endTime" },
|
|
534
|
-
{ path: "fulfillmentOptions.availability.exceptions.startTime" },
|
|
535
|
-
{ path: "fulfillmentOptions.availability.exceptions.endTime" }
|
|
536
|
-
]
|
|
537
|
-
}
|
|
538
|
-
])
|
|
539
|
-
};
|
|
540
|
-
return metadata;
|
|
541
|
-
}
|
|
542
|
-
return __listAvailableFulfillmentOptions;
|
|
543
|
-
}
|
|
544
|
-
function listFirstAvailableTimeSlotForFulfillmentTypes(payload) {
|
|
545
|
-
function __listFirstAvailableTimeSlotForFulfillmentTypes({ host }) {
|
|
546
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
547
|
-
{
|
|
548
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
549
|
-
paths: [
|
|
550
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
551
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
552
|
-
]
|
|
553
|
-
}
|
|
554
|
-
]);
|
|
555
|
-
const metadata = {
|
|
556
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
557
|
-
method: "GET",
|
|
558
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.ListFirstAvailableTimeSlotForFulfillmentTypes",
|
|
559
|
-
packageName: PACKAGE_NAME,
|
|
560
|
-
migrationOptions: {
|
|
561
|
-
optInTransformResponse: true
|
|
562
|
-
},
|
|
563
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
564
|
-
protoPath: "/v1/operations/{operationId}/first-available-time-slot-for-fulfillment-types",
|
|
565
|
-
data: serializedData,
|
|
566
|
-
host
|
|
567
|
-
}),
|
|
568
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
569
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
570
|
-
{
|
|
571
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
572
|
-
paths: [
|
|
573
|
-
{ path: "timeSlots.startTime" },
|
|
574
|
-
{ path: "timeSlots.endTime" }
|
|
575
|
-
]
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
579
|
-
paths: [
|
|
580
|
-
{ path: "timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
581
|
-
{
|
|
582
|
-
path: "timeSlots.fulfillmentAddress.address.geocode.longitude"
|
|
583
|
-
}
|
|
584
|
-
]
|
|
585
|
-
}
|
|
586
|
-
])
|
|
587
|
-
};
|
|
588
|
-
return metadata;
|
|
589
|
-
}
|
|
590
|
-
return __listFirstAvailableTimeSlotForFulfillmentTypes;
|
|
591
|
-
}
|
|
592
|
-
function calculateFirstAvailableTimeSlotPerFulfillmentType(payload) {
|
|
593
|
-
function __calculateFirstAvailableTimeSlotPerFulfillmentType({ host }) {
|
|
594
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
595
|
-
{
|
|
596
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
597
|
-
paths: [
|
|
598
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
599
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
600
|
-
]
|
|
601
|
-
}
|
|
602
|
-
]);
|
|
603
|
-
const metadata = {
|
|
604
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
605
|
-
method: "GET",
|
|
606
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.CalculateFirstAvailableTimeSlotPerFulfillmentType",
|
|
607
|
-
packageName: PACKAGE_NAME,
|
|
608
|
-
migrationOptions: {
|
|
609
|
-
optInTransformResponse: true
|
|
610
|
-
},
|
|
611
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
612
|
-
protoPath: "/v1/operations/{operationId}/first-available-time-slot-per-fulfillment-type",
|
|
613
|
-
data: serializedData,
|
|
614
|
-
host
|
|
615
|
-
}),
|
|
616
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
617
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
618
|
-
{
|
|
619
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
620
|
-
paths: [
|
|
621
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
622
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
623
|
-
]
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
627
|
-
paths: [
|
|
628
|
-
{
|
|
629
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
633
|
-
}
|
|
634
|
-
]
|
|
635
|
-
}
|
|
636
|
-
])
|
|
637
|
-
};
|
|
638
|
-
return metadata;
|
|
639
|
-
}
|
|
640
|
-
return __calculateFirstAvailableTimeSlotPerFulfillmentType;
|
|
641
|
-
}
|
|
642
|
-
function listFirstAvailableTimeSlotsForOperations(payload) {
|
|
643
|
-
function __listFirstAvailableTimeSlotsForOperations({ host }) {
|
|
644
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
645
|
-
{
|
|
646
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
647
|
-
paths: [
|
|
648
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
649
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
650
|
-
]
|
|
651
|
-
}
|
|
652
|
-
]);
|
|
653
|
-
const metadata = {
|
|
654
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
655
|
-
method: "POST",
|
|
656
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.ListFirstAvailableTimeSlotsForOperations",
|
|
657
|
-
packageName: PACKAGE_NAME,
|
|
658
|
-
migrationOptions: {
|
|
659
|
-
optInTransformResponse: true
|
|
660
|
-
},
|
|
661
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
662
|
-
protoPath: "/v1/operations/first-available-time-slots-for-operations",
|
|
663
|
-
data: serializedData,
|
|
664
|
-
host
|
|
665
|
-
}),
|
|
666
|
-
data: serializedData,
|
|
667
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
668
|
-
{
|
|
669
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
670
|
-
paths: [
|
|
671
|
-
{ path: "timeSlots.timeSlots.startTime" },
|
|
672
|
-
{ path: "timeSlots.timeSlots.endTime" }
|
|
673
|
-
]
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
677
|
-
paths: [
|
|
678
|
-
{
|
|
679
|
-
path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.latitude"
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.longitude"
|
|
683
|
-
}
|
|
684
|
-
]
|
|
685
|
-
}
|
|
686
|
-
])
|
|
687
|
-
};
|
|
688
|
-
return metadata;
|
|
689
|
-
}
|
|
690
|
-
return __listFirstAvailableTimeSlotsForOperations;
|
|
691
|
-
}
|
|
692
|
-
function calculateFirstAvailableTimeSlotsPerOperation(payload) {
|
|
693
|
-
function __calculateFirstAvailableTimeSlotsPerOperation({ host }) {
|
|
694
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
695
|
-
{
|
|
696
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
697
|
-
paths: [
|
|
698
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
699
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
700
|
-
]
|
|
701
|
-
}
|
|
702
|
-
]);
|
|
703
|
-
const metadata = {
|
|
704
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
705
|
-
method: "POST",
|
|
706
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.CalculateFirstAvailableTimeSlotsPerOperation",
|
|
707
|
-
packageName: PACKAGE_NAME,
|
|
708
|
-
migrationOptions: {
|
|
709
|
-
optInTransformResponse: true
|
|
710
|
-
},
|
|
711
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
712
|
-
protoPath: "/v1/operations/first-available-time-slots-per-operations",
|
|
713
|
-
data: serializedData,
|
|
714
|
-
host
|
|
715
|
-
}),
|
|
716
|
-
data: serializedData,
|
|
717
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
718
|
-
{
|
|
719
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
720
|
-
paths: [
|
|
721
|
-
{
|
|
722
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.startTime"
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.endTime"
|
|
726
|
-
}
|
|
727
|
-
]
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
731
|
-
paths: [
|
|
732
|
-
{
|
|
733
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
734
|
-
},
|
|
735
|
-
{
|
|
736
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
737
|
-
}
|
|
738
|
-
]
|
|
739
|
-
}
|
|
740
|
-
])
|
|
741
|
-
};
|
|
742
|
-
return metadata;
|
|
743
|
-
}
|
|
744
|
-
return __calculateFirstAvailableTimeSlotsPerOperation;
|
|
745
|
-
}
|
|
746
|
-
function listFirstAvailableTimeSlotsForMenus(payload) {
|
|
747
|
-
function __listFirstAvailableTimeSlotsForMenus({ host }) {
|
|
748
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
749
|
-
{
|
|
750
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
751
|
-
paths: [
|
|
752
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
753
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
754
|
-
]
|
|
755
|
-
}
|
|
756
|
-
]);
|
|
757
|
-
const metadata = {
|
|
758
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
759
|
-
method: "GET",
|
|
760
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.ListFirstAvailableTimeSlotsForMenus",
|
|
761
|
-
packageName: PACKAGE_NAME,
|
|
762
|
-
migrationOptions: {
|
|
763
|
-
optInTransformResponse: true
|
|
764
|
-
},
|
|
765
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
766
|
-
protoPath: "/v1/operations/{operationId}/first-available-time-slots-for-menus",
|
|
767
|
-
data: serializedData,
|
|
768
|
-
host
|
|
769
|
-
}),
|
|
770
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
771
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
772
|
-
{
|
|
773
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
774
|
-
paths: [
|
|
775
|
-
{
|
|
776
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.startTime"
|
|
777
|
-
},
|
|
778
|
-
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.endTime" }
|
|
779
|
-
]
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
783
|
-
paths: [
|
|
784
|
-
{
|
|
785
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.latitude"
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.longitude"
|
|
789
|
-
}
|
|
790
|
-
]
|
|
791
|
-
}
|
|
792
|
-
])
|
|
793
|
-
};
|
|
794
|
-
return metadata;
|
|
795
|
-
}
|
|
796
|
-
return __listFirstAvailableTimeSlotsForMenus;
|
|
797
|
-
}
|
|
798
|
-
function calculateFirstAvailableTimeSlotsPerMenu(payload) {
|
|
799
|
-
function __calculateFirstAvailableTimeSlotsPerMenu({ host }) {
|
|
800
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
801
|
-
{
|
|
802
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
803
|
-
paths: [
|
|
804
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
805
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
806
|
-
]
|
|
807
|
-
}
|
|
808
|
-
]);
|
|
809
|
-
const metadata = {
|
|
810
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
811
|
-
method: "GET",
|
|
812
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.CalculateFirstAvailableTimeSlotsPerMenu",
|
|
813
|
-
packageName: PACKAGE_NAME,
|
|
814
|
-
migrationOptions: {
|
|
815
|
-
optInTransformResponse: true
|
|
816
|
-
},
|
|
817
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
818
|
-
protoPath: "/v1/operations/{operationId}/first-available-time-slots-per-menus",
|
|
819
|
-
data: serializedData,
|
|
820
|
-
host
|
|
821
|
-
}),
|
|
822
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
823
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
824
|
-
{
|
|
825
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
826
|
-
paths: [
|
|
827
|
-
{
|
|
828
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.startTime"
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.endTime"
|
|
832
|
-
}
|
|
833
|
-
]
|
|
834
|
-
},
|
|
835
|
-
{
|
|
836
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
837
|
-
paths: [
|
|
838
|
-
{
|
|
839
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
843
|
-
}
|
|
844
|
-
]
|
|
845
|
-
}
|
|
846
|
-
])
|
|
847
|
-
};
|
|
848
|
-
return metadata;
|
|
849
|
-
}
|
|
850
|
-
return __calculateFirstAvailableTimeSlotsPerMenu;
|
|
851
|
-
}
|
|
852
|
-
function calculateFirstAvailableTimeSlotsForItem(payload) {
|
|
853
|
-
function __calculateFirstAvailableTimeSlotsForItem({ host }) {
|
|
854
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
855
|
-
{
|
|
856
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
857
|
-
paths: [
|
|
858
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
859
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
860
|
-
]
|
|
861
|
-
}
|
|
862
|
-
]);
|
|
863
|
-
const metadata = {
|
|
864
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
865
|
-
method: "GET",
|
|
866
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.CalculateFirstAvailableTimeSlotsForItem",
|
|
867
|
-
packageName: PACKAGE_NAME,
|
|
868
|
-
migrationOptions: {
|
|
869
|
-
optInTransformResponse: true
|
|
870
|
-
},
|
|
871
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
872
|
-
protoPath: "/v1/operations/{operationId}/first-available-time-slots-per-item",
|
|
873
|
-
data: serializedData,
|
|
874
|
-
host
|
|
875
|
-
}),
|
|
876
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
877
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
878
|
-
{
|
|
879
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
880
|
-
paths: [
|
|
881
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
882
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
883
|
-
]
|
|
884
|
-
},
|
|
885
|
-
{
|
|
886
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
887
|
-
paths: [
|
|
888
|
-
{
|
|
889
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
893
|
-
}
|
|
894
|
-
]
|
|
895
|
-
}
|
|
896
|
-
])
|
|
897
|
-
};
|
|
898
|
-
return metadata;
|
|
899
|
-
}
|
|
900
|
-
return __calculateFirstAvailableTimeSlotsForItem;
|
|
901
|
-
}
|
|
902
|
-
function listAvailableTimeSlotsForDate(payload) {
|
|
903
|
-
function __listAvailableTimeSlotsForDate({ host }) {
|
|
904
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
905
|
-
{
|
|
906
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
907
|
-
paths: [
|
|
908
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
909
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
910
|
-
]
|
|
911
|
-
}
|
|
912
|
-
]);
|
|
913
|
-
const metadata = {
|
|
914
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
915
|
-
method: "GET",
|
|
916
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.ListAvailableTimeSlotsForDate",
|
|
917
|
-
packageName: PACKAGE_NAME,
|
|
918
|
-
migrationOptions: {
|
|
919
|
-
optInTransformResponse: true
|
|
920
|
-
},
|
|
921
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
922
|
-
protoPath: "/v1/operations/{operationId}/available-time-slots-for-date",
|
|
923
|
-
data: serializedData,
|
|
924
|
-
host
|
|
925
|
-
}),
|
|
926
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
927
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
928
|
-
{
|
|
929
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
930
|
-
paths: [
|
|
931
|
-
{ path: "timeSlots.startTime" },
|
|
932
|
-
{ path: "timeSlots.endTime" }
|
|
933
|
-
]
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
937
|
-
paths: [
|
|
938
|
-
{ path: "timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
939
|
-
{
|
|
940
|
-
path: "timeSlots.fulfillmentAddress.address.geocode.longitude"
|
|
941
|
-
}
|
|
942
|
-
]
|
|
943
|
-
}
|
|
944
|
-
])
|
|
945
|
-
};
|
|
946
|
-
return metadata;
|
|
947
|
-
}
|
|
948
|
-
return __listAvailableTimeSlotsForDate;
|
|
949
|
-
}
|
|
950
|
-
function calculateAvailableTimeSlotsForDate(payload) {
|
|
951
|
-
function __calculateAvailableTimeSlotsForDate({ host }) {
|
|
952
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
953
|
-
{
|
|
954
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
955
|
-
paths: [
|
|
956
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
957
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
958
|
-
]
|
|
959
|
-
}
|
|
960
|
-
]);
|
|
961
|
-
const metadata = {
|
|
962
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
963
|
-
method: "GET",
|
|
964
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.CalculateAvailableTimeSlotsForDate",
|
|
965
|
-
packageName: PACKAGE_NAME,
|
|
966
|
-
migrationOptions: {
|
|
967
|
-
optInTransformResponse: true
|
|
968
|
-
},
|
|
969
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
970
|
-
protoPath: "/v1/operations/{operationId}/available-time-slots-per-date",
|
|
971
|
-
data: serializedData,
|
|
972
|
-
host
|
|
973
|
-
}),
|
|
974
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
975
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
976
|
-
{
|
|
977
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
978
|
-
paths: [
|
|
979
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
980
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
981
|
-
]
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
985
|
-
paths: [
|
|
986
|
-
{
|
|
987
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
991
|
-
}
|
|
992
|
-
]
|
|
993
|
-
}
|
|
994
|
-
])
|
|
995
|
-
};
|
|
996
|
-
return metadata;
|
|
997
|
-
}
|
|
998
|
-
return __calculateAvailableTimeSlotsForDate;
|
|
999
|
-
}
|
|
1000
|
-
function listAvailableDatesInRange(payload) {
|
|
1001
|
-
function __listAvailableDatesInRange({ host }) {
|
|
1002
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1003
|
-
{
|
|
1004
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1005
|
-
paths: [
|
|
1006
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
1007
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
1008
|
-
]
|
|
1009
|
-
}
|
|
1010
|
-
]);
|
|
1011
|
-
const metadata = {
|
|
1012
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
1013
|
-
method: "GET",
|
|
1014
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.ListAvailableDatesInRange",
|
|
1015
|
-
packageName: PACKAGE_NAME,
|
|
1016
|
-
migrationOptions: {
|
|
1017
|
-
optInTransformResponse: true
|
|
1018
|
-
},
|
|
1019
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
1020
|
-
protoPath: "/v1/operations/{operationId}/available-dates-in-range",
|
|
1021
|
-
data: serializedData,
|
|
1022
|
-
host
|
|
1023
|
-
}),
|
|
1024
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData)
|
|
1025
|
-
};
|
|
1026
|
-
return metadata;
|
|
1027
|
-
}
|
|
1028
|
-
return __listAvailableDatesInRange;
|
|
1029
|
-
}
|
|
1030
|
-
function calculateAvailableDatesInRange(payload) {
|
|
1031
|
-
function __calculateAvailableDatesInRange({ host }) {
|
|
1032
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1033
|
-
{
|
|
1034
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1035
|
-
paths: [
|
|
1036
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
1037
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
1038
|
-
]
|
|
1039
|
-
}
|
|
1040
|
-
]);
|
|
1041
|
-
const metadata = {
|
|
1042
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
1043
|
-
method: "GET",
|
|
1044
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.CalculateAvailableDatesInRange",
|
|
1045
|
-
packageName: PACKAGE_NAME,
|
|
1046
|
-
migrationOptions: {
|
|
1047
|
-
optInTransformResponse: true
|
|
1048
|
-
},
|
|
1049
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
1050
|
-
protoPath: "/v1/operations/{operationId}/available-dates",
|
|
1051
|
-
data: serializedData,
|
|
1052
|
-
host
|
|
1053
|
-
}),
|
|
1054
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData)
|
|
1055
|
-
};
|
|
1056
|
-
return metadata;
|
|
1057
|
-
}
|
|
1058
|
-
return __calculateAvailableDatesInRange;
|
|
1059
|
-
}
|
|
1060
|
-
function validateOperationAddress(payload) {
|
|
1061
|
-
function __validateOperationAddress({ host }) {
|
|
1062
|
-
const metadata = {
|
|
1063
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
1064
|
-
method: "GET",
|
|
1065
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.ValidateOperationAddress",
|
|
1066
|
-
packageName: PACKAGE_NAME,
|
|
1067
|
-
migrationOptions: {
|
|
1068
|
-
optInTransformResponse: true
|
|
1069
|
-
},
|
|
1070
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
1071
|
-
protoPath: "/v1/operations/{operationId}/validate-address",
|
|
1072
|
-
data: payload,
|
|
1073
|
-
host
|
|
1074
|
-
}),
|
|
1075
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
1076
|
-
};
|
|
1077
|
-
return metadata;
|
|
1078
|
-
}
|
|
1079
|
-
return __validateOperationAddress;
|
|
1080
|
-
}
|
|
1081
|
-
function bulkUpdateOperationTags(payload) {
|
|
1082
|
-
function __bulkUpdateOperationTags({ host }) {
|
|
1083
|
-
const metadata = {
|
|
1084
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
1085
|
-
method: "POST",
|
|
1086
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.BulkUpdateOperationTags",
|
|
1087
|
-
packageName: PACKAGE_NAME,
|
|
1088
|
-
migrationOptions: {
|
|
1089
|
-
optInTransformResponse: true
|
|
1090
|
-
},
|
|
1091
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
1092
|
-
protoPath: "/v1/bulk/operations/update-tags",
|
|
1093
|
-
data: payload,
|
|
1094
|
-
host
|
|
1095
|
-
}),
|
|
1096
|
-
data: payload
|
|
1097
|
-
};
|
|
1098
|
-
return metadata;
|
|
1099
|
-
}
|
|
1100
|
-
return __bulkUpdateOperationTags;
|
|
1101
|
-
}
|
|
1102
|
-
function bulkUpdateOperationTagsByFilter(payload) {
|
|
1103
|
-
function __bulkUpdateOperationTagsByFilter({ host }) {
|
|
1104
|
-
const metadata = {
|
|
1105
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
1106
|
-
method: "POST",
|
|
1107
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.BulkUpdateOperationTagsByFilter",
|
|
1108
|
-
packageName: PACKAGE_NAME,
|
|
1109
|
-
migrationOptions: {
|
|
1110
|
-
optInTransformResponse: true
|
|
1111
|
-
},
|
|
1112
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
1113
|
-
protoPath: "/v1/bulk/operations/update-tags-by-filter",
|
|
1114
|
-
data: payload,
|
|
1115
|
-
host
|
|
1116
|
-
}),
|
|
1117
|
-
data: payload
|
|
1118
|
-
};
|
|
1119
|
-
return metadata;
|
|
1120
|
-
}
|
|
1121
|
-
return __bulkUpdateOperationTagsByFilter;
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
// src/restaurants-operations-v1-operation-operations.universal.ts
|
|
1125
|
-
var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
1126
|
-
var import_address2 = require("@wix/sdk-runtime/transformations/address");
|
|
1127
|
-
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
1128
|
-
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
1129
|
-
var SchedulingType = /* @__PURE__ */ ((SchedulingType2) => {
|
|
1130
|
-
SchedulingType2["ASAP"] = "ASAP";
|
|
1131
|
-
SchedulingType2["PREORDER"] = "PREORDER";
|
|
1132
|
-
return SchedulingType2;
|
|
1133
|
-
})(SchedulingType || {});
|
|
1134
|
-
var PreparationTimeType = /* @__PURE__ */ ((PreparationTimeType2) => {
|
|
1135
|
-
PreparationTimeType2["MAX"] = "MAX";
|
|
1136
|
-
PreparationTimeType2["RANGE"] = "RANGE";
|
|
1137
|
-
return PreparationTimeType2;
|
|
1138
|
-
})(PreparationTimeType || {});
|
|
1139
|
-
var TimeUnit = /* @__PURE__ */ ((TimeUnit2) => {
|
|
1140
|
-
TimeUnit2["MINUTES"] = "MINUTES";
|
|
1141
|
-
TimeUnit2["HOURS"] = "HOURS";
|
|
1142
|
-
TimeUnit2["DAYS"] = "DAYS";
|
|
1143
|
-
return TimeUnit2;
|
|
1144
|
-
})(TimeUnit || {});
|
|
1145
|
-
var AsapPreorderType = /* @__PURE__ */ ((AsapPreorderType2) => {
|
|
1146
|
-
AsapPreorderType2["NO_PREORDER"] = "NO_PREORDER";
|
|
1147
|
-
AsapPreorderType2["BUSINESS_DAYS_PREORDER"] = "BUSINESS_DAYS_PREORDER";
|
|
1148
|
-
return AsapPreorderType2;
|
|
1149
|
-
})(AsapPreorderType || {});
|
|
1150
|
-
var AsapPacingWindowType = /* @__PURE__ */ ((AsapPacingWindowType2) => {
|
|
1151
|
-
AsapPacingWindowType2["FIXED_15_MINUTE"] = "FIXED_15_MINUTE";
|
|
1152
|
-
return AsapPacingWindowType2;
|
|
1153
|
-
})(AsapPacingWindowType || {});
|
|
1154
|
-
var ActivationType = /* @__PURE__ */ ((ActivationType2) => {
|
|
1155
|
-
ActivationType2["ALWAYS_ACTIVE"] = "ALWAYS_ACTIVE";
|
|
1156
|
-
ActivationType2["SCHEDULE"] = "SCHEDULE";
|
|
1157
|
-
return ActivationType2;
|
|
1158
|
-
})(ActivationType || {});
|
|
1159
|
-
var EntitiesDayOfWeek = /* @__PURE__ */ ((EntitiesDayOfWeek2) => {
|
|
1160
|
-
EntitiesDayOfWeek2["MON"] = "MON";
|
|
1161
|
-
EntitiesDayOfWeek2["TUE"] = "TUE";
|
|
1162
|
-
EntitiesDayOfWeek2["WED"] = "WED";
|
|
1163
|
-
EntitiesDayOfWeek2["THU"] = "THU";
|
|
1164
|
-
EntitiesDayOfWeek2["FRI"] = "FRI";
|
|
1165
|
-
EntitiesDayOfWeek2["SAT"] = "SAT";
|
|
1166
|
-
EntitiesDayOfWeek2["SUN"] = "SUN";
|
|
1167
|
-
return EntitiesDayOfWeek2;
|
|
1168
|
-
})(EntitiesDayOfWeek || {});
|
|
1169
|
-
var MethodType = /* @__PURE__ */ ((MethodType2) => {
|
|
1170
|
-
MethodType2["TIME_BOUNDED"] = "TIME_BOUNDED";
|
|
1171
|
-
MethodType2["WEEKLY_SCHEDULE"] = "WEEKLY_SCHEDULE";
|
|
1172
|
-
return MethodType2;
|
|
1173
|
-
})(MethodType || {});
|
|
1174
|
-
var FulfillmentTimesType = /* @__PURE__ */ ((FulfillmentTimesType2) => {
|
|
1175
|
-
FulfillmentTimesType2["TIME_WINDOWS"] = "TIME_WINDOWS";
|
|
1176
|
-
return FulfillmentTimesType2;
|
|
1177
|
-
})(FulfillmentTimesType || {});
|
|
1178
|
-
var PreorderPacingWindowType = /* @__PURE__ */ ((PreorderPacingWindowType2) => {
|
|
1179
|
-
PreorderPacingWindowType2["DAILY"] = "DAILY";
|
|
1180
|
-
return PreorderPacingWindowType2;
|
|
1181
|
-
})(PreorderPacingWindowType || {});
|
|
1182
|
-
var OnlineOrderingStatusType = /* @__PURE__ */ ((OnlineOrderingStatusType2) => {
|
|
1183
|
-
OnlineOrderingStatusType2["UNDEFINED_ONLINE_ORDERING_STATUS"] = "UNDEFINED_ONLINE_ORDERING_STATUS";
|
|
1184
|
-
OnlineOrderingStatusType2["ENABLED"] = "ENABLED";
|
|
1185
|
-
OnlineOrderingStatusType2["DISABLED"] = "DISABLED";
|
|
1186
|
-
OnlineOrderingStatusType2["PAUSED_UNTIL"] = "PAUSED_UNTIL";
|
|
1187
|
-
return OnlineOrderingStatusType2;
|
|
1188
|
-
})(OnlineOrderingStatusType || {});
|
|
1189
|
-
var FulfillmentType = /* @__PURE__ */ ((FulfillmentType2) => {
|
|
1190
|
-
FulfillmentType2["PICKUP"] = "PICKUP";
|
|
1191
|
-
FulfillmentType2["DELIVERY"] = "DELIVERY";
|
|
1192
|
-
FulfillmentType2["DINE_IN"] = "DINE_IN";
|
|
1193
|
-
return FulfillmentType2;
|
|
1194
|
-
})(FulfillmentType || {});
|
|
1195
|
-
var PreparationTimePreparationTimeType = /* @__PURE__ */ ((PreparationTimePreparationTimeType2) => {
|
|
1196
|
-
PreparationTimePreparationTimeType2["MAX_TIME"] = "MAX_TIME";
|
|
1197
|
-
PreparationTimePreparationTimeType2["TIME_RANGE"] = "TIME_RANGE";
|
|
1198
|
-
return PreparationTimePreparationTimeType2;
|
|
1199
|
-
})(PreparationTimePreparationTimeType || {});
|
|
1200
|
-
var AsapFutureHandlingType = /* @__PURE__ */ ((AsapFutureHandlingType2) => {
|
|
1201
|
-
AsapFutureHandlingType2["NO_FUTURE_HANDLING"] = "NO_FUTURE_HANDLING";
|
|
1202
|
-
AsapFutureHandlingType2["BUSINESS_DAYS_AHEAD_HANDLING"] = "BUSINESS_DAYS_AHEAD_HANDLING";
|
|
1203
|
-
return AsapFutureHandlingType2;
|
|
1204
|
-
})(AsapFutureHandlingType || {});
|
|
1205
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1206
|
-
SortOrder2["ASC"] = "ASC";
|
|
1207
|
-
SortOrder2["DESC"] = "DESC";
|
|
1208
|
-
return SortOrder2;
|
|
1209
|
-
})(SortOrder || {});
|
|
1210
|
-
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
1211
|
-
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
1212
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
1213
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
1214
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
1215
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
1216
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
1217
|
-
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
1218
|
-
return SubdivisionType2;
|
|
1219
|
-
})(SubdivisionType || {});
|
|
1220
|
-
var FulfillmentTimeType = /* @__PURE__ */ ((FulfillmentTimeType2) => {
|
|
1221
|
-
FulfillmentTimeType2["UNDEFINED_FULFILLMENT_TIME"] = "UNDEFINED_FULFILLMENT_TIME";
|
|
1222
|
-
FulfillmentTimeType2["MAX_TIME"] = "MAX_TIME";
|
|
1223
|
-
FulfillmentTimeType2["DURATION_RANGE"] = "DURATION_RANGE";
|
|
1224
|
-
return FulfillmentTimeType2;
|
|
1225
|
-
})(FulfillmentTimeType || {});
|
|
1226
|
-
var FulfillmentTimesDisplayType = /* @__PURE__ */ ((FulfillmentTimesDisplayType2) => {
|
|
1227
|
-
FulfillmentTimesDisplayType2["UNDEFINED_FULFILLMENT_TIMES_DISPLAY"] = "UNDEFINED_FULFILLMENT_TIMES_DISPLAY";
|
|
1228
|
-
FulfillmentTimesDisplayType2["TIME_WINDOWS"] = "TIME_WINDOWS";
|
|
1229
|
-
return FulfillmentTimesDisplayType2;
|
|
1230
|
-
})(FulfillmentTimesDisplayType || {});
|
|
1231
|
-
var TimeSlotStatus = /* @__PURE__ */ ((TimeSlotStatus2) => {
|
|
1232
|
-
TimeSlotStatus2["AVAILABLE"] = "AVAILABLE";
|
|
1233
|
-
TimeSlotStatus2["BLOCKED"] = "BLOCKED";
|
|
1234
|
-
return TimeSlotStatus2;
|
|
1235
|
-
})(TimeSlotStatus || {});
|
|
1236
|
-
var OrderSchedulingType = /* @__PURE__ */ ((OrderSchedulingType2) => {
|
|
1237
|
-
OrderSchedulingType2["ASAP"] = "ASAP";
|
|
1238
|
-
OrderSchedulingType2["PREORDER"] = "PREORDER";
|
|
1239
|
-
return OrderSchedulingType2;
|
|
1240
|
-
})(OrderSchedulingType || {});
|
|
1241
|
-
var TimeSlotForFulfillmentTimeSlotStatus = /* @__PURE__ */ ((TimeSlotForFulfillmentTimeSlotStatus2) => {
|
|
1242
|
-
TimeSlotForFulfillmentTimeSlotStatus2["AVAILABLE"] = "AVAILABLE";
|
|
1243
|
-
TimeSlotForFulfillmentTimeSlotStatus2["BLOCKED"] = "BLOCKED";
|
|
1244
|
-
return TimeSlotForFulfillmentTimeSlotStatus2;
|
|
1245
|
-
})(TimeSlotForFulfillmentTimeSlotStatus || {});
|
|
1246
|
-
var ViolationType = /* @__PURE__ */ ((ViolationType2) => {
|
|
1247
|
-
ViolationType2["UNKNOWN"] = "UNKNOWN";
|
|
1248
|
-
ViolationType2["NO_ADDRESS"] = "NO_ADDRESS";
|
|
1249
|
-
ViolationType2["MISSING_FORMATTED_ADDRESS"] = "MISSING_FORMATTED_ADDRESS";
|
|
1250
|
-
ViolationType2["INVALID_GEOCODE"] = "INVALID_GEOCODE";
|
|
1251
|
-
ViolationType2["MISSING_COUNTRY"] = "MISSING_COUNTRY";
|
|
1252
|
-
ViolationType2["MISSING_SUBDIVISION"] = "MISSING_SUBDIVISION";
|
|
1253
|
-
return ViolationType2;
|
|
1254
|
-
})(ViolationType || {});
|
|
1255
|
-
var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
|
|
1256
|
-
PlacementType2["BEFORE"] = "BEFORE";
|
|
1257
|
-
PlacementType2["AFTER"] = "AFTER";
|
|
1258
|
-
PlacementType2["REPLACE"] = "REPLACE";
|
|
1259
|
-
return PlacementType2;
|
|
1260
|
-
})(PlacementType || {});
|
|
1261
|
-
var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
|
|
1262
|
-
DayOfWeek2["MONDAY"] = "MONDAY";
|
|
1263
|
-
DayOfWeek2["TUESDAY"] = "TUESDAY";
|
|
1264
|
-
DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
|
|
1265
|
-
DayOfWeek2["THURSDAY"] = "THURSDAY";
|
|
1266
|
-
DayOfWeek2["FRIDAY"] = "FRIDAY";
|
|
1267
|
-
DayOfWeek2["SATURDAY"] = "SATURDAY";
|
|
1268
|
-
DayOfWeek2["SUNDAY"] = "SUNDAY";
|
|
1269
|
-
return DayOfWeek2;
|
|
1270
|
-
})(DayOfWeek || {});
|
|
1271
|
-
var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
1272
|
-
ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
|
|
1273
|
-
ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
|
|
1274
|
-
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
1275
|
-
return ResolutionMethod2;
|
|
1276
|
-
})(ResolutionMethod || {});
|
|
1277
|
-
var State = /* @__PURE__ */ ((State2) => {
|
|
1278
|
-
State2["UNKNOWN"] = "UNKNOWN";
|
|
1279
|
-
State2["ENABLED"] = "ENABLED";
|
|
1280
|
-
State2["DISABLED"] = "DISABLED";
|
|
1281
|
-
State2["PENDING"] = "PENDING";
|
|
1282
|
-
State2["DEMO"] = "DEMO";
|
|
1283
|
-
return State2;
|
|
1284
|
-
})(State || {});
|
|
1285
|
-
var SiteCreatedContext = /* @__PURE__ */ ((SiteCreatedContext2) => {
|
|
1286
|
-
SiteCreatedContext2["OTHER"] = "OTHER";
|
|
1287
|
-
SiteCreatedContext2["FROM_TEMPLATE"] = "FROM_TEMPLATE";
|
|
1288
|
-
SiteCreatedContext2["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
|
|
1289
|
-
SiteCreatedContext2["DUPLICATE"] = "DUPLICATE";
|
|
1290
|
-
SiteCreatedContext2["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
|
|
1291
|
-
SiteCreatedContext2["FLASH"] = "FLASH";
|
|
1292
|
-
return SiteCreatedContext2;
|
|
1293
|
-
})(SiteCreatedContext || {});
|
|
1294
|
-
var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
1295
|
-
Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
|
|
1296
|
-
Namespace2["WIX"] = "WIX";
|
|
1297
|
-
Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
|
|
1298
|
-
Namespace2["ALBUMS"] = "ALBUMS";
|
|
1299
|
-
Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
|
|
1300
|
-
Namespace2["HOTELS"] = "HOTELS";
|
|
1301
|
-
Namespace2["CLUBS"] = "CLUBS";
|
|
1302
|
-
Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
|
|
1303
|
-
Namespace2["DEV_SITE"] = "DEV_SITE";
|
|
1304
|
-
Namespace2["LOGOS"] = "LOGOS";
|
|
1305
|
-
Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
|
|
1306
|
-
Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
|
|
1307
|
-
Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
|
|
1308
|
-
Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
|
|
1309
|
-
Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
|
|
1310
|
-
Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
|
|
1311
|
-
Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
|
|
1312
|
-
Namespace2["ANYWHERE"] = "ANYWHERE";
|
|
1313
|
-
Namespace2["HEADLESS"] = "HEADLESS";
|
|
1314
|
-
Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
|
|
1315
|
-
Namespace2["RISE"] = "RISE";
|
|
1316
|
-
Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
|
|
1317
|
-
Namespace2["NOWNIA"] = "NOWNIA";
|
|
1318
|
-
Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
|
|
1319
|
-
Namespace2["CODUX"] = "CODUX";
|
|
1320
|
-
Namespace2["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
|
|
1321
|
-
Namespace2["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
|
|
1322
|
-
Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
|
|
1323
|
-
Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
1324
|
-
Namespace2["MIMIR"] = "MIMIR";
|
|
1325
|
-
Namespace2["TWINS"] = "TWINS";
|
|
1326
|
-
Namespace2["NANO"] = "NANO";
|
|
1327
|
-
Namespace2["BASE44"] = "BASE44";
|
|
1328
|
-
Namespace2["CHANNELS"] = "CHANNELS";
|
|
1329
|
-
Namespace2["NAUTILUS"] = "NAUTILUS";
|
|
1330
|
-
Namespace2["SYMPHONY"] = "SYMPHONY";
|
|
1331
|
-
Namespace2["NAUTILUS_APPS"] = "NAUTILUS_APPS";
|
|
1332
|
-
Namespace2["VIBU"] = "VIBU";
|
|
1333
|
-
Namespace2["ENTERPRISE_BRAND_KIT"] = "ENTERPRISE_BRAND_KIT";
|
|
1334
|
-
Namespace2["DEV_CENTER_DEV_SITE"] = "DEV_CENTER_DEV_SITE";
|
|
1335
|
-
return Namespace2;
|
|
1336
|
-
})(Namespace || {});
|
|
1337
|
-
var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
1338
|
-
DeleteStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1339
|
-
DeleteStatus2["TRASH"] = "TRASH";
|
|
1340
|
-
DeleteStatus2["DELETED"] = "DELETED";
|
|
1341
|
-
DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
|
|
1342
|
-
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
1343
|
-
return DeleteStatus2;
|
|
1344
|
-
})(DeleteStatus || {});
|
|
1345
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1346
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1347
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1348
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1349
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1350
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1351
|
-
return WebhookIdentityType2;
|
|
1352
|
-
})(WebhookIdentityType || {});
|
|
1353
|
-
async function listBlockedPeriods2(operationId, options) {
|
|
1354
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1355
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1356
|
-
operationId,
|
|
1357
|
-
from: options?.from,
|
|
1358
|
-
until: options?.until
|
|
1359
|
-
});
|
|
1360
|
-
const reqOpts = listBlockedPeriods(payload);
|
|
1361
|
-
sideEffects?.onSiteCall?.();
|
|
1362
|
-
try {
|
|
1363
|
-
const result = await httpClient.request(reqOpts);
|
|
1364
|
-
sideEffects?.onSuccess?.(result);
|
|
1365
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1366
|
-
} catch (err) {
|
|
1367
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1368
|
-
err,
|
|
1369
|
-
{
|
|
1370
|
-
spreadPathsToArguments: {},
|
|
1371
|
-
explicitPathsToArguments: {
|
|
1372
|
-
operationId: "$[0]",
|
|
1373
|
-
from: "$[1].from",
|
|
1374
|
-
until: "$[1].until"
|
|
1375
|
-
},
|
|
1376
|
-
singleArgumentUnchanged: false
|
|
1377
|
-
},
|
|
1378
|
-
["operationId", "options"]
|
|
1379
|
-
);
|
|
1380
|
-
sideEffects?.onError?.(err);
|
|
1381
|
-
throw transformedError;
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
async function getOperation2(operationId) {
|
|
1385
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1386
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1387
|
-
operationId
|
|
1388
|
-
});
|
|
1389
|
-
const reqOpts = getOperation(payload);
|
|
1390
|
-
sideEffects?.onSiteCall?.();
|
|
1391
|
-
try {
|
|
1392
|
-
const result = await httpClient.request(reqOpts);
|
|
1393
|
-
sideEffects?.onSuccess?.(result);
|
|
1394
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1395
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1396
|
-
{
|
|
1397
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1398
|
-
paths: [{ path: "operation.businessLocationDetails.address" }]
|
|
1399
|
-
}
|
|
1400
|
-
])
|
|
1401
|
-
)?.operation;
|
|
1402
|
-
} catch (err) {
|
|
1403
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1404
|
-
err,
|
|
1405
|
-
{
|
|
1406
|
-
spreadPathsToArguments: {},
|
|
1407
|
-
explicitPathsToArguments: { operationId: "$[0]" },
|
|
1408
|
-
singleArgumentUnchanged: false
|
|
1409
|
-
},
|
|
1410
|
-
["operationId"]
|
|
1411
|
-
);
|
|
1412
|
-
sideEffects?.onError?.(err);
|
|
1413
|
-
throw transformedError;
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
async function updateOperation2(_id, operation) {
|
|
1417
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1418
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1419
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1420
|
-
operation: { ...operation, id: _id }
|
|
1421
|
-
}),
|
|
1422
|
-
[
|
|
1423
|
-
{
|
|
1424
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1425
|
-
paths: [{ path: "operation.businessLocationDetails.address" }]
|
|
1426
|
-
}
|
|
1427
|
-
]
|
|
1428
|
-
);
|
|
1429
|
-
const reqOpts = updateOperation(payload);
|
|
1430
|
-
sideEffects?.onSiteCall?.();
|
|
1431
|
-
try {
|
|
1432
|
-
const result = await httpClient.request(reqOpts);
|
|
1433
|
-
sideEffects?.onSuccess?.(result);
|
|
1434
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1435
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1436
|
-
{
|
|
1437
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1438
|
-
paths: [{ path: "operation.businessLocationDetails.address" }]
|
|
1439
|
-
}
|
|
1440
|
-
])
|
|
1441
|
-
)?.operation;
|
|
1442
|
-
} catch (err) {
|
|
1443
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1444
|
-
err,
|
|
1445
|
-
{
|
|
1446
|
-
spreadPathsToArguments: { operation: "$[1]" },
|
|
1447
|
-
explicitPathsToArguments: { "operation.id": "$[0]" },
|
|
1448
|
-
singleArgumentUnchanged: false
|
|
1449
|
-
},
|
|
1450
|
-
["_id", "operation"]
|
|
1451
|
-
);
|
|
1452
|
-
sideEffects?.onError?.(err);
|
|
1453
|
-
throw transformedError;
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
async function deleteOperation2(operationId) {
|
|
1457
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1458
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1459
|
-
operationId
|
|
1460
|
-
});
|
|
1461
|
-
const reqOpts = deleteOperation(payload);
|
|
1462
|
-
sideEffects?.onSiteCall?.();
|
|
1463
|
-
try {
|
|
1464
|
-
const result = await httpClient.request(reqOpts);
|
|
1465
|
-
sideEffects?.onSuccess?.(result);
|
|
1466
|
-
} catch (err) {
|
|
1467
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1468
|
-
err,
|
|
1469
|
-
{
|
|
1470
|
-
spreadPathsToArguments: {},
|
|
1471
|
-
explicitPathsToArguments: { operationId: "$[0]" },
|
|
1472
|
-
singleArgumentUnchanged: false
|
|
1473
|
-
},
|
|
1474
|
-
["operationId"]
|
|
1475
|
-
);
|
|
1476
|
-
sideEffects?.onError?.(err);
|
|
1477
|
-
throw transformedError;
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
function queryOperation2() {
|
|
1481
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
1482
|
-
return (0, import_query_builder.queryBuilder)({
|
|
1483
|
-
func: async (payload) => {
|
|
1484
|
-
const reqOpts = queryOperation(payload);
|
|
1485
|
-
sideEffects?.onSiteCall?.();
|
|
1486
|
-
try {
|
|
1487
|
-
const result = await httpClient.request(reqOpts);
|
|
1488
|
-
sideEffects?.onSuccess?.(result);
|
|
1489
|
-
return result;
|
|
1490
|
-
} catch (err) {
|
|
1491
|
-
sideEffects?.onError?.(err);
|
|
1492
|
-
throw err;
|
|
1493
|
-
}
|
|
1494
|
-
},
|
|
1495
|
-
requestTransformer: (query) => {
|
|
1496
|
-
const args = [query, {}];
|
|
1497
|
-
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1498
|
-
...args?.[1],
|
|
1499
|
-
query: args?.[0]
|
|
1500
|
-
});
|
|
1501
|
-
},
|
|
1502
|
-
responseTransformer: ({ data }) => {
|
|
1503
|
-
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1504
|
-
(0, import_transform_paths2.transformPaths)(data, [
|
|
1505
|
-
{
|
|
1506
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1507
|
-
paths: [{ path: "operations.businessLocationDetails.address" }]
|
|
1508
|
-
}
|
|
1509
|
-
])
|
|
1510
|
-
);
|
|
1511
|
-
return {
|
|
1512
|
-
items: transformedData?.operations,
|
|
1513
|
-
pagingMetadata: transformedData?.pagingMetadata
|
|
1514
|
-
};
|
|
1515
|
-
},
|
|
1516
|
-
errorTransformer: (err) => {
|
|
1517
|
-
const transformedError = (0, import_transform_error.transformError)(err, {
|
|
1518
|
-
spreadPathsToArguments: {},
|
|
1519
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
1520
|
-
singleArgumentUnchanged: false
|
|
1521
|
-
});
|
|
1522
|
-
throw transformedError;
|
|
1523
|
-
},
|
|
1524
|
-
pagingMethod: "CURSOR",
|
|
1525
|
-
transformationPaths: {}
|
|
1526
|
-
});
|
|
1527
|
-
}
|
|
1528
|
-
async function typedQueryOperation(query) {
|
|
1529
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1530
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
1531
|
-
const reqOpts = queryOperation(payload);
|
|
1532
|
-
sideEffects?.onSiteCall?.();
|
|
1533
|
-
try {
|
|
1534
|
-
const result = await httpClient.request(reqOpts);
|
|
1535
|
-
sideEffects?.onSuccess?.(result);
|
|
1536
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1537
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1538
|
-
{
|
|
1539
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1540
|
-
paths: [{ path: "operations.businessLocationDetails.address" }]
|
|
1541
|
-
}
|
|
1542
|
-
])
|
|
1543
|
-
);
|
|
1544
|
-
} catch (err) {
|
|
1545
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1546
|
-
err,
|
|
1547
|
-
{
|
|
1548
|
-
spreadPathsToArguments: {},
|
|
1549
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
1550
|
-
singleArgumentUnchanged: false
|
|
1551
|
-
},
|
|
1552
|
-
["query"]
|
|
1553
|
-
);
|
|
1554
|
-
sideEffects?.onError?.(err);
|
|
1555
|
-
throw transformedError;
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
var utils = {
|
|
1559
|
-
query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
|
|
1560
|
-
};
|
|
1561
|
-
async function listOperations2() {
|
|
1562
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
1563
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
1564
|
-
const reqOpts = listOperations(payload);
|
|
1565
|
-
sideEffects?.onSiteCall?.();
|
|
1566
|
-
try {
|
|
1567
|
-
const result = await httpClient.request(reqOpts);
|
|
1568
|
-
sideEffects?.onSuccess?.(result);
|
|
1569
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1570
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1571
|
-
{
|
|
1572
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1573
|
-
paths: [{ path: "operations.businessLocationDetails.address" }]
|
|
1574
|
-
}
|
|
1575
|
-
])
|
|
1576
|
-
);
|
|
1577
|
-
} catch (err) {
|
|
1578
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1579
|
-
err,
|
|
1580
|
-
{
|
|
1581
|
-
spreadPathsToArguments: {},
|
|
1582
|
-
explicitPathsToArguments: {},
|
|
1583
|
-
singleArgumentUnchanged: false
|
|
1584
|
-
},
|
|
1585
|
-
[]
|
|
1586
|
-
);
|
|
1587
|
-
sideEffects?.onError?.(err);
|
|
1588
|
-
throw transformedError;
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
async function listAvailableFulfillmentOptions2(operationId, options) {
|
|
1592
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1593
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1594
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1595
|
-
operationId,
|
|
1596
|
-
deliveryAddress: options?.deliveryAddress
|
|
1597
|
-
}),
|
|
1598
|
-
[
|
|
1599
|
-
{
|
|
1600
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1601
|
-
paths: [{ path: "deliveryAddress" }]
|
|
1602
|
-
}
|
|
1603
|
-
]
|
|
1604
|
-
);
|
|
1605
|
-
const reqOpts = listAvailableFulfillmentOptions(
|
|
1606
|
-
payload
|
|
1607
|
-
);
|
|
1608
|
-
sideEffects?.onSiteCall?.();
|
|
1609
|
-
try {
|
|
1610
|
-
const result = await httpClient.request(reqOpts);
|
|
1611
|
-
sideEffects?.onSuccess?.(result);
|
|
1612
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1613
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1614
|
-
{
|
|
1615
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1616
|
-
paths: [
|
|
1617
|
-
{ path: "fulfillmentOptions.pickupOptions.address" },
|
|
1618
|
-
{ path: "fulfillmentOptions.dineInOptions.address" }
|
|
1619
|
-
]
|
|
1620
|
-
}
|
|
1621
|
-
])
|
|
1622
|
-
);
|
|
1623
|
-
} catch (err) {
|
|
1624
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1625
|
-
err,
|
|
1626
|
-
{
|
|
1627
|
-
spreadPathsToArguments: {},
|
|
1628
|
-
explicitPathsToArguments: {
|
|
1629
|
-
operationId: "$[0]",
|
|
1630
|
-
deliveryAddress: "$[1].deliveryAddress"
|
|
1631
|
-
},
|
|
1632
|
-
singleArgumentUnchanged: false
|
|
1633
|
-
},
|
|
1634
|
-
["operationId", "options"]
|
|
1635
|
-
);
|
|
1636
|
-
sideEffects?.onError?.(err);
|
|
1637
|
-
throw transformedError;
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
async function listFirstAvailableTimeSlotForFulfillmentTypes2(operationId, options) {
|
|
1641
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1642
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1643
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1644
|
-
operationId,
|
|
1645
|
-
deliveryAddress: options?.deliveryAddress
|
|
1646
|
-
}),
|
|
1647
|
-
[
|
|
1648
|
-
{
|
|
1649
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1650
|
-
paths: [{ path: "deliveryAddress" }]
|
|
1651
|
-
}
|
|
1652
|
-
]
|
|
1653
|
-
);
|
|
1654
|
-
const reqOpts = listFirstAvailableTimeSlotForFulfillmentTypes(
|
|
1655
|
-
payload
|
|
1656
|
-
);
|
|
1657
|
-
sideEffects?.onSiteCall?.();
|
|
1658
|
-
try {
|
|
1659
|
-
const result = await httpClient.request(reqOpts);
|
|
1660
|
-
sideEffects?.onSuccess?.(result);
|
|
1661
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1662
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1663
|
-
{
|
|
1664
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1665
|
-
paths: [{ path: "timeSlots.fulfillmentAddress.address" }]
|
|
1666
|
-
}
|
|
1667
|
-
])
|
|
1668
|
-
);
|
|
1669
|
-
} catch (err) {
|
|
1670
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1671
|
-
err,
|
|
1672
|
-
{
|
|
1673
|
-
spreadPathsToArguments: {},
|
|
1674
|
-
explicitPathsToArguments: {
|
|
1675
|
-
operationId: "$[0]",
|
|
1676
|
-
deliveryAddress: "$[1].deliveryAddress"
|
|
1677
|
-
},
|
|
1678
|
-
singleArgumentUnchanged: false
|
|
1679
|
-
},
|
|
1680
|
-
["operationId", "options"]
|
|
1681
|
-
);
|
|
1682
|
-
sideEffects?.onError?.(err);
|
|
1683
|
-
throw transformedError;
|
|
1684
|
-
}
|
|
1685
|
-
}
|
|
1686
|
-
async function calculateFirstAvailableTimeSlotPerFulfillmentType2(operationId, options) {
|
|
1687
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1688
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1689
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1690
|
-
operationId,
|
|
1691
|
-
deliveryAddress: options?.deliveryAddress
|
|
1692
|
-
}),
|
|
1693
|
-
[
|
|
1694
|
-
{
|
|
1695
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1696
|
-
paths: [{ path: "deliveryAddress" }]
|
|
1697
|
-
}
|
|
1698
|
-
]
|
|
1699
|
-
);
|
|
1700
|
-
const reqOpts = calculateFirstAvailableTimeSlotPerFulfillmentType(
|
|
1701
|
-
payload
|
|
1702
|
-
);
|
|
1703
|
-
sideEffects?.onSiteCall?.();
|
|
1704
|
-
try {
|
|
1705
|
-
const result = await httpClient.request(reqOpts);
|
|
1706
|
-
sideEffects?.onSuccess?.(result);
|
|
1707
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1708
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1709
|
-
{
|
|
1710
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1711
|
-
paths: [
|
|
1712
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
1713
|
-
]
|
|
1714
|
-
}
|
|
1715
|
-
])
|
|
1716
|
-
);
|
|
1717
|
-
} catch (err) {
|
|
1718
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1719
|
-
err,
|
|
1720
|
-
{
|
|
1721
|
-
spreadPathsToArguments: {},
|
|
1722
|
-
explicitPathsToArguments: {
|
|
1723
|
-
operationId: "$[0]",
|
|
1724
|
-
deliveryAddress: "$[1].deliveryAddress"
|
|
1725
|
-
},
|
|
1726
|
-
singleArgumentUnchanged: false
|
|
1727
|
-
},
|
|
1728
|
-
["operationId", "options"]
|
|
1729
|
-
);
|
|
1730
|
-
sideEffects?.onError?.(err);
|
|
1731
|
-
throw transformedError;
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1734
|
-
async function listFirstAvailableTimeSlotsForOperations2(operationIds, options) {
|
|
1735
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1736
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1737
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1738
|
-
operationIds,
|
|
1739
|
-
deliveryAddress: options?.deliveryAddress
|
|
1740
|
-
}),
|
|
1741
|
-
[
|
|
1742
|
-
{
|
|
1743
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1744
|
-
paths: [{ path: "deliveryAddress" }]
|
|
1745
|
-
}
|
|
1746
|
-
]
|
|
1747
|
-
);
|
|
1748
|
-
const reqOpts = listFirstAvailableTimeSlotsForOperations(
|
|
1749
|
-
payload
|
|
1750
|
-
);
|
|
1751
|
-
sideEffects?.onSiteCall?.();
|
|
1752
|
-
try {
|
|
1753
|
-
const result = await httpClient.request(reqOpts);
|
|
1754
|
-
sideEffects?.onSuccess?.(result);
|
|
1755
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1756
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1757
|
-
{
|
|
1758
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1759
|
-
paths: [{ path: "timeSlots.timeSlots.fulfillmentAddress.address" }]
|
|
1760
|
-
}
|
|
1761
|
-
])
|
|
1762
|
-
);
|
|
1763
|
-
} catch (err) {
|
|
1764
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1765
|
-
err,
|
|
1766
|
-
{
|
|
1767
|
-
spreadPathsToArguments: {},
|
|
1768
|
-
explicitPathsToArguments: {
|
|
1769
|
-
operationIds: "$[0]",
|
|
1770
|
-
deliveryAddress: "$[1].deliveryAddress"
|
|
1771
|
-
},
|
|
1772
|
-
singleArgumentUnchanged: false
|
|
1773
|
-
},
|
|
1774
|
-
["operationIds", "options"]
|
|
1775
|
-
);
|
|
1776
|
-
sideEffects?.onError?.(err);
|
|
1777
|
-
throw transformedError;
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
async function calculateFirstAvailableTimeSlotsPerOperation2(operationIds, options) {
|
|
1781
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1782
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1783
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1784
|
-
operationIds,
|
|
1785
|
-
deliveryAddress: options?.deliveryAddress
|
|
1786
|
-
}),
|
|
1787
|
-
[
|
|
1788
|
-
{
|
|
1789
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1790
|
-
paths: [{ path: "deliveryAddress" }]
|
|
1791
|
-
}
|
|
1792
|
-
]
|
|
1793
|
-
);
|
|
1794
|
-
const reqOpts = calculateFirstAvailableTimeSlotsPerOperation(
|
|
1795
|
-
payload
|
|
1796
|
-
);
|
|
1797
|
-
sideEffects?.onSiteCall?.();
|
|
1798
|
-
try {
|
|
1799
|
-
const result = await httpClient.request(reqOpts);
|
|
1800
|
-
sideEffects?.onSuccess?.(result);
|
|
1801
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1802
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1803
|
-
{
|
|
1804
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1805
|
-
paths: [
|
|
1806
|
-
{
|
|
1807
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
1808
|
-
}
|
|
1809
|
-
]
|
|
1810
|
-
}
|
|
1811
|
-
])
|
|
1812
|
-
);
|
|
1813
|
-
} catch (err) {
|
|
1814
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1815
|
-
err,
|
|
1816
|
-
{
|
|
1817
|
-
spreadPathsToArguments: {},
|
|
1818
|
-
explicitPathsToArguments: {
|
|
1819
|
-
operationIds: "$[0]",
|
|
1820
|
-
deliveryAddress: "$[1].deliveryAddress"
|
|
1821
|
-
},
|
|
1822
|
-
singleArgumentUnchanged: false
|
|
1823
|
-
},
|
|
1824
|
-
["operationIds", "options"]
|
|
1825
|
-
);
|
|
1826
|
-
sideEffects?.onError?.(err);
|
|
1827
|
-
throw transformedError;
|
|
1828
|
-
}
|
|
1829
|
-
}
|
|
1830
|
-
async function listFirstAvailableTimeSlotsForMenus2(operationId, options) {
|
|
1831
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1832
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1833
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1834
|
-
operationId,
|
|
1835
|
-
deliveryAddress: options?.deliveryAddress,
|
|
1836
|
-
cursorPaging: options?.cursorPaging
|
|
1837
|
-
}),
|
|
1838
|
-
[
|
|
1839
|
-
{
|
|
1840
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1841
|
-
paths: [{ path: "deliveryAddress" }]
|
|
1842
|
-
}
|
|
1843
|
-
]
|
|
1844
|
-
);
|
|
1845
|
-
const reqOpts = listFirstAvailableTimeSlotsForMenus(
|
|
1846
|
-
payload
|
|
1847
|
-
);
|
|
1848
|
-
sideEffects?.onSiteCall?.();
|
|
1849
|
-
try {
|
|
1850
|
-
const result = await httpClient.request(reqOpts);
|
|
1851
|
-
sideEffects?.onSuccess?.(result);
|
|
1852
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1853
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1854
|
-
{
|
|
1855
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1856
|
-
paths: [
|
|
1857
|
-
{
|
|
1858
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address"
|
|
1859
|
-
}
|
|
1860
|
-
]
|
|
1861
|
-
}
|
|
1862
|
-
])
|
|
1863
|
-
);
|
|
1864
|
-
} catch (err) {
|
|
1865
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1866
|
-
err,
|
|
1867
|
-
{
|
|
1868
|
-
spreadPathsToArguments: {},
|
|
1869
|
-
explicitPathsToArguments: {
|
|
1870
|
-
operationId: "$[0]",
|
|
1871
|
-
deliveryAddress: "$[1].deliveryAddress",
|
|
1872
|
-
cursorPaging: "$[1].cursorPaging"
|
|
1873
|
-
},
|
|
1874
|
-
singleArgumentUnchanged: false
|
|
1875
|
-
},
|
|
1876
|
-
["operationId", "options"]
|
|
1877
|
-
);
|
|
1878
|
-
sideEffects?.onError?.(err);
|
|
1879
|
-
throw transformedError;
|
|
1880
|
-
}
|
|
1881
|
-
}
|
|
1882
|
-
async function calculateFirstAvailableTimeSlotsPerMenu2(operationId, options) {
|
|
1883
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1884
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1885
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1886
|
-
operationId,
|
|
1887
|
-
deliveryAddress: options?.deliveryAddress,
|
|
1888
|
-
cursorPaging: options?.cursorPaging,
|
|
1889
|
-
onlyOnlineOrderingEnabled: options?.onlyOnlineOrderingEnabled
|
|
1890
|
-
}),
|
|
1891
|
-
[
|
|
1892
|
-
{
|
|
1893
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1894
|
-
paths: [{ path: "deliveryAddress" }]
|
|
1895
|
-
}
|
|
1896
|
-
]
|
|
1897
|
-
);
|
|
1898
|
-
const reqOpts = calculateFirstAvailableTimeSlotsPerMenu(
|
|
1899
|
-
payload
|
|
1900
|
-
);
|
|
1901
|
-
sideEffects?.onSiteCall?.();
|
|
1902
|
-
try {
|
|
1903
|
-
const result = await httpClient.request(reqOpts);
|
|
1904
|
-
sideEffects?.onSuccess?.(result);
|
|
1905
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1906
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1907
|
-
{
|
|
1908
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1909
|
-
paths: [
|
|
1910
|
-
{
|
|
1911
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
1912
|
-
}
|
|
1913
|
-
]
|
|
1914
|
-
}
|
|
1915
|
-
])
|
|
1916
|
-
);
|
|
1917
|
-
} catch (err) {
|
|
1918
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1919
|
-
err,
|
|
1920
|
-
{
|
|
1921
|
-
spreadPathsToArguments: {},
|
|
1922
|
-
explicitPathsToArguments: {
|
|
1923
|
-
operationId: "$[0]",
|
|
1924
|
-
deliveryAddress: "$[1].deliveryAddress",
|
|
1925
|
-
cursorPaging: "$[1].cursorPaging",
|
|
1926
|
-
onlyOnlineOrderingEnabled: "$[1].onlyOnlineOrderingEnabled"
|
|
1927
|
-
},
|
|
1928
|
-
singleArgumentUnchanged: false
|
|
1929
|
-
},
|
|
1930
|
-
["operationId", "options"]
|
|
1931
|
-
);
|
|
1932
|
-
sideEffects?.onError?.(err);
|
|
1933
|
-
throw transformedError;
|
|
1934
|
-
}
|
|
1935
|
-
}
|
|
1936
|
-
async function calculateFirstAvailableTimeSlotsForItem2(operationId, menuId, options) {
|
|
1937
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
1938
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1939
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1940
|
-
operationId,
|
|
1941
|
-
menuId,
|
|
1942
|
-
sectionId: options?.sectionId,
|
|
1943
|
-
itemId: options?.itemId,
|
|
1944
|
-
deliveryAddress: options?.deliveryAddress
|
|
1945
|
-
}),
|
|
1946
|
-
[
|
|
1947
|
-
{
|
|
1948
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1949
|
-
paths: [{ path: "deliveryAddress" }]
|
|
1950
|
-
}
|
|
1951
|
-
]
|
|
1952
|
-
);
|
|
1953
|
-
const reqOpts = calculateFirstAvailableTimeSlotsForItem(
|
|
1954
|
-
payload
|
|
1955
|
-
);
|
|
1956
|
-
sideEffects?.onSiteCall?.();
|
|
1957
|
-
try {
|
|
1958
|
-
const result = await httpClient.request(reqOpts);
|
|
1959
|
-
sideEffects?.onSuccess?.(result);
|
|
1960
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1961
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1962
|
-
{
|
|
1963
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1964
|
-
paths: [
|
|
1965
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
1966
|
-
]
|
|
1967
|
-
}
|
|
1968
|
-
])
|
|
1969
|
-
);
|
|
1970
|
-
} catch (err) {
|
|
1971
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1972
|
-
err,
|
|
1973
|
-
{
|
|
1974
|
-
spreadPathsToArguments: {},
|
|
1975
|
-
explicitPathsToArguments: {
|
|
1976
|
-
operationId: "$[0]",
|
|
1977
|
-
menuId: "$[1]",
|
|
1978
|
-
sectionId: "$[2].sectionId",
|
|
1979
|
-
itemId: "$[2].itemId",
|
|
1980
|
-
deliveryAddress: "$[2].deliveryAddress"
|
|
1981
|
-
},
|
|
1982
|
-
singleArgumentUnchanged: false
|
|
1983
|
-
},
|
|
1984
|
-
["operationId", "menuId", "options"]
|
|
1985
|
-
);
|
|
1986
|
-
sideEffects?.onError?.(err);
|
|
1987
|
-
throw transformedError;
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
async function listAvailableTimeSlotsForDate2(operationId, options) {
|
|
1991
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1992
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1993
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1994
|
-
operationId,
|
|
1995
|
-
deliveryAddress: options?.deliveryAddress,
|
|
1996
|
-
date: options?.date
|
|
1997
|
-
}),
|
|
1998
|
-
[
|
|
1999
|
-
{
|
|
2000
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2001
|
-
paths: [{ path: "deliveryAddress" }]
|
|
2002
|
-
}
|
|
2003
|
-
]
|
|
2004
|
-
);
|
|
2005
|
-
const reqOpts = listAvailableTimeSlotsForDate(
|
|
2006
|
-
payload
|
|
2007
|
-
);
|
|
2008
|
-
sideEffects?.onSiteCall?.();
|
|
2009
|
-
try {
|
|
2010
|
-
const result = await httpClient.request(reqOpts);
|
|
2011
|
-
sideEffects?.onSuccess?.(result);
|
|
2012
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2013
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2014
|
-
{
|
|
2015
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2016
|
-
paths: [{ path: "timeSlots.fulfillmentAddress.address" }]
|
|
2017
|
-
}
|
|
2018
|
-
])
|
|
2019
|
-
);
|
|
2020
|
-
} catch (err) {
|
|
2021
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2022
|
-
err,
|
|
2023
|
-
{
|
|
2024
|
-
spreadPathsToArguments: {},
|
|
2025
|
-
explicitPathsToArguments: {
|
|
2026
|
-
operationId: "$[0]",
|
|
2027
|
-
deliveryAddress: "$[1].deliveryAddress",
|
|
2028
|
-
date: "$[1].date"
|
|
2029
|
-
},
|
|
2030
|
-
singleArgumentUnchanged: false
|
|
2031
|
-
},
|
|
2032
|
-
["operationId", "options"]
|
|
2033
|
-
);
|
|
2034
|
-
sideEffects?.onError?.(err);
|
|
2035
|
-
throw transformedError;
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
async function calculateAvailableTimeSlotsForDate2(operationId, options) {
|
|
2039
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2040
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
2041
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2042
|
-
operationId,
|
|
2043
|
-
deliveryAddress: options?.deliveryAddress,
|
|
2044
|
-
date: options?.date
|
|
2045
|
-
}),
|
|
2046
|
-
[
|
|
2047
|
-
{
|
|
2048
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2049
|
-
paths: [{ path: "deliveryAddress" }]
|
|
2050
|
-
}
|
|
2051
|
-
]
|
|
2052
|
-
);
|
|
2053
|
-
const reqOpts = calculateAvailableTimeSlotsForDate(
|
|
2054
|
-
payload
|
|
2055
|
-
);
|
|
2056
|
-
sideEffects?.onSiteCall?.();
|
|
2057
|
-
try {
|
|
2058
|
-
const result = await httpClient.request(reqOpts);
|
|
2059
|
-
sideEffects?.onSuccess?.(result);
|
|
2060
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2061
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2062
|
-
{
|
|
2063
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2064
|
-
paths: [
|
|
2065
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
2066
|
-
]
|
|
2067
|
-
}
|
|
2068
|
-
])
|
|
2069
|
-
);
|
|
2070
|
-
} catch (err) {
|
|
2071
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2072
|
-
err,
|
|
2073
|
-
{
|
|
2074
|
-
spreadPathsToArguments: {},
|
|
2075
|
-
explicitPathsToArguments: {
|
|
2076
|
-
operationId: "$[0]",
|
|
2077
|
-
deliveryAddress: "$[1].deliveryAddress",
|
|
2078
|
-
date: "$[1].date"
|
|
2079
|
-
},
|
|
2080
|
-
singleArgumentUnchanged: false
|
|
2081
|
-
},
|
|
2082
|
-
["operationId", "options"]
|
|
2083
|
-
);
|
|
2084
|
-
sideEffects?.onError?.(err);
|
|
2085
|
-
throw transformedError;
|
|
2086
|
-
}
|
|
2087
|
-
}
|
|
2088
|
-
async function listAvailableDatesInRange2(operationId, options) {
|
|
2089
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2090
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
2091
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2092
|
-
operationId,
|
|
2093
|
-
deliveryAddress: options?.deliveryAddress,
|
|
2094
|
-
from: options?.from,
|
|
2095
|
-
until: options?.until
|
|
2096
|
-
}),
|
|
2097
|
-
[
|
|
2098
|
-
{
|
|
2099
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2100
|
-
paths: [{ path: "deliveryAddress" }]
|
|
2101
|
-
}
|
|
2102
|
-
]
|
|
2103
|
-
);
|
|
2104
|
-
const reqOpts = listAvailableDatesInRange(
|
|
2105
|
-
payload
|
|
2106
|
-
);
|
|
2107
|
-
sideEffects?.onSiteCall?.();
|
|
2108
|
-
try {
|
|
2109
|
-
const result = await httpClient.request(reqOpts);
|
|
2110
|
-
sideEffects?.onSuccess?.(result);
|
|
2111
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2112
|
-
} catch (err) {
|
|
2113
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2114
|
-
err,
|
|
2115
|
-
{
|
|
2116
|
-
spreadPathsToArguments: {},
|
|
2117
|
-
explicitPathsToArguments: {
|
|
2118
|
-
operationId: "$[0]",
|
|
2119
|
-
deliveryAddress: "$[1].deliveryAddress",
|
|
2120
|
-
from: "$[1].from",
|
|
2121
|
-
until: "$[1].until"
|
|
2122
|
-
},
|
|
2123
|
-
singleArgumentUnchanged: false
|
|
2124
|
-
},
|
|
2125
|
-
["operationId", "options"]
|
|
2126
|
-
);
|
|
2127
|
-
sideEffects?.onError?.(err);
|
|
2128
|
-
throw transformedError;
|
|
2129
|
-
}
|
|
2130
|
-
}
|
|
2131
|
-
async function calculateAvailableDatesInRange2(operationId, options) {
|
|
2132
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2133
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
2134
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2135
|
-
operationId,
|
|
2136
|
-
deliveryAddress: options?.deliveryAddress,
|
|
2137
|
-
from: options?.from,
|
|
2138
|
-
until: options?.until
|
|
2139
|
-
}),
|
|
2140
|
-
[
|
|
2141
|
-
{
|
|
2142
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2143
|
-
paths: [{ path: "deliveryAddress" }]
|
|
2144
|
-
}
|
|
2145
|
-
]
|
|
2146
|
-
);
|
|
2147
|
-
const reqOpts = calculateAvailableDatesInRange(
|
|
2148
|
-
payload
|
|
2149
|
-
);
|
|
2150
|
-
sideEffects?.onSiteCall?.();
|
|
2151
|
-
try {
|
|
2152
|
-
const result = await httpClient.request(reqOpts);
|
|
2153
|
-
sideEffects?.onSuccess?.(result);
|
|
2154
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2155
|
-
} catch (err) {
|
|
2156
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2157
|
-
err,
|
|
2158
|
-
{
|
|
2159
|
-
spreadPathsToArguments: {},
|
|
2160
|
-
explicitPathsToArguments: {
|
|
2161
|
-
operationId: "$[0]",
|
|
2162
|
-
deliveryAddress: "$[1].deliveryAddress",
|
|
2163
|
-
from: "$[1].from",
|
|
2164
|
-
until: "$[1].until"
|
|
2165
|
-
},
|
|
2166
|
-
singleArgumentUnchanged: false
|
|
2167
|
-
},
|
|
2168
|
-
["operationId", "options"]
|
|
2169
|
-
);
|
|
2170
|
-
sideEffects?.onError?.(err);
|
|
2171
|
-
throw transformedError;
|
|
2172
|
-
}
|
|
2173
|
-
}
|
|
2174
|
-
async function validateOperationAddress2(operationId) {
|
|
2175
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2176
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2177
|
-
operationId
|
|
2178
|
-
});
|
|
2179
|
-
const reqOpts = validateOperationAddress(
|
|
2180
|
-
payload
|
|
2181
|
-
);
|
|
2182
|
-
sideEffects?.onSiteCall?.();
|
|
2183
|
-
try {
|
|
2184
|
-
const result = await httpClient.request(reqOpts);
|
|
2185
|
-
sideEffects?.onSuccess?.(result);
|
|
2186
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2187
|
-
} catch (err) {
|
|
2188
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2189
|
-
err,
|
|
2190
|
-
{
|
|
2191
|
-
spreadPathsToArguments: {},
|
|
2192
|
-
explicitPathsToArguments: { operationId: "$[0]" },
|
|
2193
|
-
singleArgumentUnchanged: false
|
|
2194
|
-
},
|
|
2195
|
-
["operationId"]
|
|
2196
|
-
);
|
|
2197
|
-
sideEffects?.onError?.(err);
|
|
2198
|
-
throw transformedError;
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
async function bulkUpdateOperationTags2(operationIds, options) {
|
|
2202
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2203
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2204
|
-
operationIds,
|
|
2205
|
-
assignTags: options?.assignTags,
|
|
2206
|
-
unassignTags: options?.unassignTags
|
|
2207
|
-
});
|
|
2208
|
-
const reqOpts = bulkUpdateOperationTags(
|
|
2209
|
-
payload
|
|
2210
|
-
);
|
|
2211
|
-
sideEffects?.onSiteCall?.();
|
|
2212
|
-
try {
|
|
2213
|
-
const result = await httpClient.request(reqOpts);
|
|
2214
|
-
sideEffects?.onSuccess?.(result);
|
|
2215
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2216
|
-
} catch (err) {
|
|
2217
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2218
|
-
err,
|
|
2219
|
-
{
|
|
2220
|
-
spreadPathsToArguments: {},
|
|
2221
|
-
explicitPathsToArguments: {
|
|
2222
|
-
operationIds: "$[0]",
|
|
2223
|
-
assignTags: "$[1].assignTags",
|
|
2224
|
-
unassignTags: "$[1].unassignTags"
|
|
2225
|
-
},
|
|
2226
|
-
singleArgumentUnchanged: false
|
|
2227
|
-
},
|
|
2228
|
-
["operationIds", "options"]
|
|
2229
|
-
);
|
|
2230
|
-
sideEffects?.onError?.(err);
|
|
2231
|
-
throw transformedError;
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
|
-
async function bulkUpdateOperationTagsByFilter2(filter, options) {
|
|
2235
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2236
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2237
|
-
filter,
|
|
2238
|
-
assignTags: options?.assignTags,
|
|
2239
|
-
unassignTags: options?.unassignTags
|
|
2240
|
-
});
|
|
2241
|
-
const reqOpts = bulkUpdateOperationTagsByFilter(
|
|
2242
|
-
payload
|
|
2243
|
-
);
|
|
2244
|
-
sideEffects?.onSiteCall?.();
|
|
2245
|
-
try {
|
|
2246
|
-
const result = await httpClient.request(reqOpts);
|
|
2247
|
-
sideEffects?.onSuccess?.(result);
|
|
2248
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2249
|
-
} catch (err) {
|
|
2250
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2251
|
-
err,
|
|
2252
|
-
{
|
|
2253
|
-
spreadPathsToArguments: {},
|
|
2254
|
-
explicitPathsToArguments: {
|
|
2255
|
-
filter: "$[0]",
|
|
2256
|
-
assignTags: "$[1].assignTags",
|
|
2257
|
-
unassignTags: "$[1].unassignTags"
|
|
2258
|
-
},
|
|
2259
|
-
singleArgumentUnchanged: false
|
|
2260
|
-
},
|
|
2261
|
-
["filter", "options"]
|
|
2262
|
-
);
|
|
2263
|
-
sideEffects?.onError?.(err);
|
|
2264
|
-
throw transformedError;
|
|
2265
|
-
}
|
|
2266
|
-
}
|
|
2267
|
-
|
|
2268
|
-
// src/restaurants-operations-v1-operation-operations.public.ts
|
|
2269
|
-
function listBlockedPeriods3(httpClient) {
|
|
2270
|
-
return (operationId, options) => listBlockedPeriods2(
|
|
2271
|
-
operationId,
|
|
2272
|
-
options,
|
|
2273
|
-
// @ts-ignore
|
|
2274
|
-
{ httpClient }
|
|
2275
|
-
);
|
|
2276
|
-
}
|
|
2277
|
-
function getOperation3(httpClient) {
|
|
2278
|
-
return (operationId) => getOperation2(
|
|
2279
|
-
operationId,
|
|
2280
|
-
// @ts-ignore
|
|
2281
|
-
{ httpClient }
|
|
2282
|
-
);
|
|
2283
|
-
}
|
|
2284
|
-
function updateOperation3(httpClient) {
|
|
2285
|
-
return (_id, operation) => updateOperation2(
|
|
2286
|
-
_id,
|
|
2287
|
-
operation,
|
|
2288
|
-
// @ts-ignore
|
|
2289
|
-
{ httpClient }
|
|
2290
|
-
);
|
|
2291
|
-
}
|
|
2292
|
-
function deleteOperation3(httpClient) {
|
|
2293
|
-
return (operationId) => deleteOperation2(
|
|
2294
|
-
operationId,
|
|
2295
|
-
// @ts-ignore
|
|
2296
|
-
{ httpClient }
|
|
2297
|
-
);
|
|
2298
|
-
}
|
|
2299
|
-
function queryOperation3(httpClient) {
|
|
2300
|
-
return () => queryOperation2(
|
|
2301
|
-
// @ts-ignore
|
|
2302
|
-
{ httpClient }
|
|
2303
|
-
);
|
|
2304
|
-
}
|
|
2305
|
-
function typedQueryOperation2(httpClient) {
|
|
2306
|
-
return (query) => typedQueryOperation(
|
|
2307
|
-
query,
|
|
2308
|
-
// @ts-ignore
|
|
2309
|
-
{ httpClient }
|
|
2310
|
-
);
|
|
2311
|
-
}
|
|
2312
|
-
function listOperations3(httpClient) {
|
|
2313
|
-
return () => listOperations2(
|
|
2314
|
-
// @ts-ignore
|
|
2315
|
-
{ httpClient }
|
|
2316
|
-
);
|
|
2317
|
-
}
|
|
2318
|
-
function listAvailableFulfillmentOptions3(httpClient) {
|
|
2319
|
-
return (operationId, options) => listAvailableFulfillmentOptions2(
|
|
2320
|
-
operationId,
|
|
2321
|
-
options,
|
|
2322
|
-
// @ts-ignore
|
|
2323
|
-
{ httpClient }
|
|
2324
|
-
);
|
|
2325
|
-
}
|
|
2326
|
-
function listFirstAvailableTimeSlotForFulfillmentTypes3(httpClient) {
|
|
2327
|
-
return (operationId, options) => listFirstAvailableTimeSlotForFulfillmentTypes2(
|
|
2328
|
-
operationId,
|
|
2329
|
-
options,
|
|
2330
|
-
// @ts-ignore
|
|
2331
|
-
{ httpClient }
|
|
2332
|
-
);
|
|
2333
|
-
}
|
|
2334
|
-
function calculateFirstAvailableTimeSlotPerFulfillmentType3(httpClient) {
|
|
2335
|
-
return (operationId, options) => calculateFirstAvailableTimeSlotPerFulfillmentType2(
|
|
2336
|
-
operationId,
|
|
2337
|
-
options,
|
|
2338
|
-
// @ts-ignore
|
|
2339
|
-
{ httpClient }
|
|
2340
|
-
);
|
|
2341
|
-
}
|
|
2342
|
-
function listFirstAvailableTimeSlotsForOperations3(httpClient) {
|
|
2343
|
-
return (operationIds, options) => listFirstAvailableTimeSlotsForOperations2(
|
|
2344
|
-
operationIds,
|
|
2345
|
-
options,
|
|
2346
|
-
// @ts-ignore
|
|
2347
|
-
{ httpClient }
|
|
2348
|
-
);
|
|
2349
|
-
}
|
|
2350
|
-
function calculateFirstAvailableTimeSlotsPerOperation3(httpClient) {
|
|
2351
|
-
return (operationIds, options) => calculateFirstAvailableTimeSlotsPerOperation2(
|
|
2352
|
-
operationIds,
|
|
2353
|
-
options,
|
|
2354
|
-
// @ts-ignore
|
|
2355
|
-
{ httpClient }
|
|
2356
|
-
);
|
|
2357
|
-
}
|
|
2358
|
-
function listFirstAvailableTimeSlotsForMenus3(httpClient) {
|
|
2359
|
-
return (operationId, options) => listFirstAvailableTimeSlotsForMenus2(
|
|
2360
|
-
operationId,
|
|
2361
|
-
options,
|
|
2362
|
-
// @ts-ignore
|
|
2363
|
-
{ httpClient }
|
|
2364
|
-
);
|
|
2365
|
-
}
|
|
2366
|
-
function calculateFirstAvailableTimeSlotsPerMenu3(httpClient) {
|
|
2367
|
-
return (operationId, options) => calculateFirstAvailableTimeSlotsPerMenu2(
|
|
2368
|
-
operationId,
|
|
2369
|
-
options,
|
|
2370
|
-
// @ts-ignore
|
|
2371
|
-
{ httpClient }
|
|
2372
|
-
);
|
|
2373
|
-
}
|
|
2374
|
-
function calculateFirstAvailableTimeSlotsForItem3(httpClient) {
|
|
2375
|
-
return (operationId, menuId, options) => calculateFirstAvailableTimeSlotsForItem2(
|
|
2376
|
-
operationId,
|
|
2377
|
-
menuId,
|
|
2378
|
-
options,
|
|
2379
|
-
// @ts-ignore
|
|
2380
|
-
{ httpClient }
|
|
2381
|
-
);
|
|
2382
|
-
}
|
|
2383
|
-
function listAvailableTimeSlotsForDate3(httpClient) {
|
|
2384
|
-
return (operationId, options) => listAvailableTimeSlotsForDate2(
|
|
2385
|
-
operationId,
|
|
2386
|
-
options,
|
|
2387
|
-
// @ts-ignore
|
|
2388
|
-
{ httpClient }
|
|
2389
|
-
);
|
|
2390
|
-
}
|
|
2391
|
-
function calculateAvailableTimeSlotsForDate3(httpClient) {
|
|
2392
|
-
return (operationId, options) => calculateAvailableTimeSlotsForDate2(
|
|
2393
|
-
operationId,
|
|
2394
|
-
options,
|
|
2395
|
-
// @ts-ignore
|
|
2396
|
-
{ httpClient }
|
|
2397
|
-
);
|
|
2398
|
-
}
|
|
2399
|
-
function listAvailableDatesInRange3(httpClient) {
|
|
2400
|
-
return (operationId, options) => listAvailableDatesInRange2(
|
|
2401
|
-
operationId,
|
|
2402
|
-
options,
|
|
2403
|
-
// @ts-ignore
|
|
2404
|
-
{ httpClient }
|
|
2405
|
-
);
|
|
2406
|
-
}
|
|
2407
|
-
function calculateAvailableDatesInRange3(httpClient) {
|
|
2408
|
-
return (operationId, options) => calculateAvailableDatesInRange2(
|
|
2409
|
-
operationId,
|
|
2410
|
-
options,
|
|
2411
|
-
// @ts-ignore
|
|
2412
|
-
{ httpClient }
|
|
2413
|
-
);
|
|
2414
|
-
}
|
|
2415
|
-
function validateOperationAddress3(httpClient) {
|
|
2416
|
-
return (operationId) => validateOperationAddress2(
|
|
2417
|
-
operationId,
|
|
2418
|
-
// @ts-ignore
|
|
2419
|
-
{ httpClient }
|
|
2420
|
-
);
|
|
2421
|
-
}
|
|
2422
|
-
function bulkUpdateOperationTags3(httpClient) {
|
|
2423
|
-
return (operationIds, options) => bulkUpdateOperationTags2(
|
|
2424
|
-
operationIds,
|
|
2425
|
-
options,
|
|
2426
|
-
// @ts-ignore
|
|
2427
|
-
{ httpClient }
|
|
2428
|
-
);
|
|
2429
|
-
}
|
|
2430
|
-
function bulkUpdateOperationTagsByFilter3(httpClient) {
|
|
2431
|
-
return (filter, options) => bulkUpdateOperationTagsByFilter2(
|
|
2432
|
-
filter,
|
|
2433
|
-
options,
|
|
2434
|
-
// @ts-ignore
|
|
2435
|
-
{ httpClient }
|
|
2436
|
-
);
|
|
2437
|
-
}
|
|
2438
|
-
var onOperationDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2439
|
-
"wix.restaurants.operations.v1.operation_deleted",
|
|
2440
|
-
true,
|
|
2441
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
2442
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
|
2443
|
-
{
|
|
2444
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2445
|
-
paths: [
|
|
2446
|
-
{ path: "entity.createdDate" },
|
|
2447
|
-
{ path: "entity.updatedDate" },
|
|
2448
|
-
{ path: "entity.pausedUntilOptions.time" },
|
|
2449
|
-
{ path: "metadata.eventTime" }
|
|
2450
|
-
]
|
|
2451
|
-
},
|
|
2452
|
-
{
|
|
2453
|
-
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2454
|
-
paths: [{ path: "entity.businessLocationDetails.address" }]
|
|
2455
|
-
}
|
|
2456
|
-
])
|
|
2457
|
-
)
|
|
2458
|
-
)();
|
|
2459
|
-
var onOperationUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2460
|
-
"wix.restaurants.operations.v1.operation_updated",
|
|
2461
|
-
true,
|
|
2462
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
2463
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
|
2464
|
-
{
|
|
2465
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2466
|
-
paths: [
|
|
2467
|
-
{ path: "entity.createdDate" },
|
|
2468
|
-
{ path: "entity.updatedDate" },
|
|
2469
|
-
{ path: "entity.pausedUntilOptions.time" },
|
|
2470
|
-
{ path: "metadata.eventTime" },
|
|
2471
|
-
{ path: "modifiedFields.createdDate" },
|
|
2472
|
-
{ path: "modifiedFields.updatedDate" },
|
|
2473
|
-
{ path: "modifiedFields.pausedUntilOptions.time" }
|
|
2474
|
-
]
|
|
2475
|
-
},
|
|
2476
|
-
{
|
|
2477
|
-
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2478
|
-
paths: [
|
|
2479
|
-
{ path: "entity.businessLocationDetails.address" },
|
|
2480
|
-
{ path: "modifiedFields.businessLocationDetails.address" }
|
|
2481
|
-
]
|
|
2482
|
-
}
|
|
2483
|
-
])
|
|
2484
|
-
)
|
|
2485
|
-
)();
|
|
2486
|
-
|
|
2487
|
-
// src/restaurants-operations-v1-operation-operations.context.ts
|
|
2488
|
-
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
2489
|
-
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
2490
|
-
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
2491
|
-
function customQueryOperation(httpClient) {
|
|
2492
|
-
const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
|
|
2493
|
-
builderQueryFunction: () => queryOperation3(httpClient)(),
|
|
2494
|
-
typedQueryFunction: (query) => typedQueryOperation2(httpClient)(query),
|
|
2495
|
-
hasOptionsParameter: false
|
|
2496
|
-
});
|
|
2497
|
-
function overloadedQuery(query) {
|
|
2498
|
-
return router(...arguments);
|
|
2499
|
-
}
|
|
2500
|
-
return overloadedQuery;
|
|
2501
|
-
}
|
|
2502
|
-
var listBlockedPeriods4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listBlockedPeriods3);
|
|
2503
|
-
var getOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOperation3);
|
|
2504
|
-
var updateOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateOperation3);
|
|
2505
|
-
var deleteOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteOperation3);
|
|
2506
|
-
var listOperations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listOperations3);
|
|
2507
|
-
var listAvailableFulfillmentOptions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listAvailableFulfillmentOptions3);
|
|
2508
|
-
var listFirstAvailableTimeSlotForFulfillmentTypes4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
2509
|
-
listFirstAvailableTimeSlotForFulfillmentTypes3
|
|
2510
|
-
);
|
|
2511
|
-
var calculateFirstAvailableTimeSlotPerFulfillmentType4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
2512
|
-
calculateFirstAvailableTimeSlotPerFulfillmentType3
|
|
2513
|
-
);
|
|
2514
|
-
var listFirstAvailableTimeSlotsForOperations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
2515
|
-
listFirstAvailableTimeSlotsForOperations3
|
|
2516
|
-
);
|
|
2517
|
-
var calculateFirstAvailableTimeSlotsPerOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
2518
|
-
calculateFirstAvailableTimeSlotsPerOperation3
|
|
2519
|
-
);
|
|
2520
|
-
var listFirstAvailableTimeSlotsForMenus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listFirstAvailableTimeSlotsForMenus3);
|
|
2521
|
-
var calculateFirstAvailableTimeSlotsPerMenu4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
2522
|
-
calculateFirstAvailableTimeSlotsPerMenu3
|
|
2523
|
-
);
|
|
2524
|
-
var calculateFirstAvailableTimeSlotsForItem4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
2525
|
-
calculateFirstAvailableTimeSlotsForItem3
|
|
2526
|
-
);
|
|
2527
|
-
var listAvailableTimeSlotsForDate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listAvailableTimeSlotsForDate3);
|
|
2528
|
-
var calculateAvailableTimeSlotsForDate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(calculateAvailableTimeSlotsForDate3);
|
|
2529
|
-
var listAvailableDatesInRange4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listAvailableDatesInRange3);
|
|
2530
|
-
var calculateAvailableDatesInRange4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(calculateAvailableDatesInRange3);
|
|
2531
|
-
var validateOperationAddress4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(validateOperationAddress3);
|
|
2532
|
-
var bulkUpdateOperationTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateOperationTags3);
|
|
2533
|
-
var bulkUpdateOperationTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateOperationTagsByFilter3);
|
|
2534
|
-
var queryOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryOperation);
|
|
2535
|
-
var onOperationDeleted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2536
|
-
onOperationDeleted
|
|
2537
|
-
);
|
|
2538
|
-
var onOperationUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2539
|
-
onOperationUpdated
|
|
2540
|
-
);
|
|
2541
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
2542
|
-
0 && (module.exports = {
|
|
2543
|
-
ActivationType,
|
|
2544
|
-
AsapFutureHandlingType,
|
|
2545
|
-
AsapPacingWindowType,
|
|
2546
|
-
AsapPreorderType,
|
|
2547
|
-
DayOfWeek,
|
|
2548
|
-
DeleteStatus,
|
|
2549
|
-
EntitiesDayOfWeek,
|
|
2550
|
-
FulfillmentTimeType,
|
|
2551
|
-
FulfillmentTimesDisplayType,
|
|
2552
|
-
FulfillmentTimesType,
|
|
2553
|
-
FulfillmentType,
|
|
2554
|
-
MethodType,
|
|
2555
|
-
Namespace,
|
|
2556
|
-
OnlineOrderingStatusType,
|
|
2557
|
-
OrderSchedulingType,
|
|
2558
|
-
PlacementType,
|
|
2559
|
-
PreorderPacingWindowType,
|
|
2560
|
-
PreparationTimePreparationTimeType,
|
|
2561
|
-
PreparationTimeType,
|
|
2562
|
-
ResolutionMethod,
|
|
2563
|
-
SchedulingType,
|
|
2564
|
-
SiteCreatedContext,
|
|
2565
|
-
SortOrder,
|
|
2566
|
-
State,
|
|
2567
|
-
SubdivisionType,
|
|
2568
|
-
TimeSlotForFulfillmentTimeSlotStatus,
|
|
2569
|
-
TimeSlotStatus,
|
|
2570
|
-
TimeUnit,
|
|
2571
|
-
ViolationType,
|
|
2572
|
-
WebhookIdentityType,
|
|
2573
|
-
bulkUpdateOperationTags,
|
|
2574
|
-
bulkUpdateOperationTagsByFilter,
|
|
2575
|
-
calculateAvailableDatesInRange,
|
|
2576
|
-
calculateAvailableTimeSlotsForDate,
|
|
2577
|
-
calculateFirstAvailableTimeSlotPerFulfillmentType,
|
|
2578
|
-
calculateFirstAvailableTimeSlotsForItem,
|
|
2579
|
-
calculateFirstAvailableTimeSlotsPerMenu,
|
|
2580
|
-
calculateFirstAvailableTimeSlotsPerOperation,
|
|
2581
|
-
deleteOperation,
|
|
2582
|
-
getOperation,
|
|
2583
|
-
listAvailableDatesInRange,
|
|
2584
|
-
listAvailableFulfillmentOptions,
|
|
2585
|
-
listAvailableTimeSlotsForDate,
|
|
2586
|
-
listBlockedPeriods,
|
|
2587
|
-
listFirstAvailableTimeSlotForFulfillmentTypes,
|
|
2588
|
-
listFirstAvailableTimeSlotsForMenus,
|
|
2589
|
-
listFirstAvailableTimeSlotsForOperations,
|
|
2590
|
-
listOperations,
|
|
2591
|
-
onOperationDeleted,
|
|
2592
|
-
onOperationUpdated,
|
|
2593
|
-
queryOperation,
|
|
2594
|
-
updateOperation,
|
|
2595
|
-
utils,
|
|
2596
|
-
validateOperationAddress
|
|
2597
|
-
});
|
|
2598
|
-
//# sourceMappingURL=index.js.map
|