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