@wix/auto_sdk_restaurants_operations 1.0.101 → 1.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +238 -322
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +214 -302
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +153 -253
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +238 -322
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +214 -302
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +153 -253
- package/build/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -15,6 +15,114 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
15
15
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
16
16
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
17
17
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
18
|
+
var TRANSFORM_PATHS_0 = [{ path: "from" }, { path: "until" }];
|
|
19
|
+
var TRANSFORM_PATHS_1 = [
|
|
20
|
+
{ path: "blockPeriods.from" },
|
|
21
|
+
{ path: "blockPeriods.until" }
|
|
22
|
+
];
|
|
23
|
+
var TRANSFORM_PATHS_2 = [
|
|
24
|
+
{ path: "operation.createdDate" },
|
|
25
|
+
{ path: "operation.updatedDate" },
|
|
26
|
+
{ path: "operation.pausedUntilOptions.time" }
|
|
27
|
+
];
|
|
28
|
+
var TRANSFORM_PATHS_3 = [
|
|
29
|
+
{ path: "operation.businessLocationDetails.address.geocode.latitude" },
|
|
30
|
+
{ path: "operation.businessLocationDetails.address.geocode.longitude" }
|
|
31
|
+
];
|
|
32
|
+
var TRANSFORM_PATHS_4 = [{ path: "mask" }];
|
|
33
|
+
var TRANSFORM_PATHS_5 = [
|
|
34
|
+
{ path: "operations.createdDate" },
|
|
35
|
+
{ path: "operations.updatedDate" },
|
|
36
|
+
{ path: "operations.pausedUntilOptions.time" }
|
|
37
|
+
];
|
|
38
|
+
var TRANSFORM_PATHS_6 = [
|
|
39
|
+
{ path: "operations.businessLocationDetails.address.geocode.latitude" },
|
|
40
|
+
{ path: "operations.businessLocationDetails.address.geocode.longitude" }
|
|
41
|
+
];
|
|
42
|
+
var TRANSFORM_PATHS_7 = [
|
|
43
|
+
{ path: "deliveryAddress.geocode.latitude" },
|
|
44
|
+
{ path: "deliveryAddress.geocode.longitude" }
|
|
45
|
+
];
|
|
46
|
+
var TRANSFORM_PATHS_8 = [
|
|
47
|
+
{ path: "fulfillmentOptions.pickupOptions.address.geocode.latitude" },
|
|
48
|
+
{ path: "fulfillmentOptions.pickupOptions.address.geocode.longitude" },
|
|
49
|
+
{ path: "fulfillmentOptions.dineInOptions.address.geocode.latitude" },
|
|
50
|
+
{ path: "fulfillmentOptions.dineInOptions.address.geocode.longitude" }
|
|
51
|
+
];
|
|
52
|
+
var TRANSFORM_PATHS_9 = [
|
|
53
|
+
{ path: "fulfillmentOptions.availability.startTime" },
|
|
54
|
+
{ path: "fulfillmentOptions.availability.endTime" },
|
|
55
|
+
{ path: "fulfillmentOptions.availability.exceptions.startTime" },
|
|
56
|
+
{ path: "fulfillmentOptions.availability.exceptions.endTime" }
|
|
57
|
+
];
|
|
58
|
+
var TRANSFORM_PATHS_10 = [
|
|
59
|
+
{ path: "timeSlots.startTime" },
|
|
60
|
+
{ path: "timeSlots.endTime" }
|
|
61
|
+
];
|
|
62
|
+
var TRANSFORM_PATHS_11 = [
|
|
63
|
+
{ path: "timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
64
|
+
{ path: "timeSlots.fulfillmentAddress.address.geocode.longitude" }
|
|
65
|
+
];
|
|
66
|
+
var TRANSFORM_PATHS_12 = [
|
|
67
|
+
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
68
|
+
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
69
|
+
];
|
|
70
|
+
var TRANSFORM_PATHS_13 = [
|
|
71
|
+
{
|
|
72
|
+
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
var TRANSFORM_PATHS_14 = [
|
|
79
|
+
{ path: "timeSlots.timeSlots.startTime" },
|
|
80
|
+
{ path: "timeSlots.timeSlots.endTime" }
|
|
81
|
+
];
|
|
82
|
+
var TRANSFORM_PATHS_15 = [
|
|
83
|
+
{ path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
84
|
+
{ path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.longitude" }
|
|
85
|
+
];
|
|
86
|
+
var TRANSFORM_PATHS_16 = [
|
|
87
|
+
{
|
|
88
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.startTime"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.endTime"
|
|
92
|
+
}
|
|
93
|
+
];
|
|
94
|
+
var TRANSFORM_PATHS_17 = [
|
|
95
|
+
{
|
|
96
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
100
|
+
}
|
|
101
|
+
];
|
|
102
|
+
var TRANSFORM_PATHS_18 = [
|
|
103
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.startTime" },
|
|
104
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.endTime" }
|
|
105
|
+
];
|
|
106
|
+
var TRANSFORM_PATHS_19 = [
|
|
107
|
+
{
|
|
108
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.latitude"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.longitude"
|
|
112
|
+
}
|
|
113
|
+
];
|
|
114
|
+
var TRANSFORM_PATHS_20 = [
|
|
115
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
116
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
117
|
+
];
|
|
118
|
+
var TRANSFORM_PATHS_21 = [
|
|
119
|
+
{
|
|
120
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
124
|
+
}
|
|
125
|
+
];
|
|
18
126
|
function resolveWixRestaurantsOperationsV1OperationsServiceUrl(opts) {
|
|
19
127
|
const domainToMappings = {
|
|
20
128
|
"manage._base_domain_": [
|
|
@@ -155,7 +263,7 @@ function listBlockedPeriods(payload) {
|
|
|
155
263
|
const serializedData = transformPaths(payload, [
|
|
156
264
|
{
|
|
157
265
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
158
|
-
paths:
|
|
266
|
+
paths: TRANSFORM_PATHS_0
|
|
159
267
|
}
|
|
160
268
|
]);
|
|
161
269
|
const metadata = {
|
|
@@ -175,10 +283,7 @@ function listBlockedPeriods(payload) {
|
|
|
175
283
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
176
284
|
{
|
|
177
285
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
178
|
-
paths:
|
|
179
|
-
{ path: "blockPeriods.from" },
|
|
180
|
-
{ path: "blockPeriods.until" }
|
|
181
|
-
]
|
|
286
|
+
paths: TRANSFORM_PATHS_1
|
|
182
287
|
}
|
|
183
288
|
])
|
|
184
289
|
};
|
|
@@ -205,22 +310,11 @@ function getOperation(payload) {
|
|
|
205
310
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
206
311
|
{
|
|
207
312
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
208
|
-
paths:
|
|
209
|
-
{ path: "operation.createdDate" },
|
|
210
|
-
{ path: "operation.updatedDate" },
|
|
211
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
212
|
-
]
|
|
313
|
+
paths: TRANSFORM_PATHS_2
|
|
213
314
|
},
|
|
214
315
|
{
|
|
215
316
|
transformFn: transformRESTFloatToSDKFloat,
|
|
216
|
-
paths:
|
|
217
|
-
{
|
|
218
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
222
|
-
}
|
|
223
|
-
]
|
|
317
|
+
paths: TRANSFORM_PATHS_3
|
|
224
318
|
}
|
|
225
319
|
])
|
|
226
320
|
};
|
|
@@ -233,26 +327,15 @@ function updateOperation(payload) {
|
|
|
233
327
|
const serializedData = transformPaths(payload, [
|
|
234
328
|
{
|
|
235
329
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
236
|
-
paths:
|
|
330
|
+
paths: TRANSFORM_PATHS_4
|
|
237
331
|
},
|
|
238
332
|
{
|
|
239
333
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
240
|
-
paths:
|
|
241
|
-
{ path: "operation.createdDate" },
|
|
242
|
-
{ path: "operation.updatedDate" },
|
|
243
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
244
|
-
]
|
|
334
|
+
paths: TRANSFORM_PATHS_2
|
|
245
335
|
},
|
|
246
336
|
{
|
|
247
337
|
transformFn: transformSDKFloatToRESTFloat,
|
|
248
|
-
paths:
|
|
249
|
-
{
|
|
250
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
254
|
-
}
|
|
255
|
-
]
|
|
338
|
+
paths: TRANSFORM_PATHS_3
|
|
256
339
|
}
|
|
257
340
|
]);
|
|
258
341
|
const metadata = {
|
|
@@ -272,22 +355,11 @@ function updateOperation(payload) {
|
|
|
272
355
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
273
356
|
{
|
|
274
357
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
275
|
-
paths:
|
|
276
|
-
{ path: "operation.createdDate" },
|
|
277
|
-
{ path: "operation.updatedDate" },
|
|
278
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
279
|
-
]
|
|
358
|
+
paths: TRANSFORM_PATHS_2
|
|
280
359
|
},
|
|
281
360
|
{
|
|
282
361
|
transformFn: transformRESTFloatToSDKFloat,
|
|
283
|
-
paths:
|
|
284
|
-
{
|
|
285
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
289
|
-
}
|
|
290
|
-
]
|
|
362
|
+
paths: TRANSFORM_PATHS_3
|
|
291
363
|
}
|
|
292
364
|
])
|
|
293
365
|
};
|
|
@@ -335,22 +407,11 @@ function queryOperation(payload) {
|
|
|
335
407
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
336
408
|
{
|
|
337
409
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
338
|
-
paths:
|
|
339
|
-
{ path: "operations.createdDate" },
|
|
340
|
-
{ path: "operations.updatedDate" },
|
|
341
|
-
{ path: "operations.pausedUntilOptions.time" }
|
|
342
|
-
]
|
|
410
|
+
paths: TRANSFORM_PATHS_5
|
|
343
411
|
},
|
|
344
412
|
{
|
|
345
413
|
transformFn: transformRESTFloatToSDKFloat,
|
|
346
|
-
paths:
|
|
347
|
-
{
|
|
348
|
-
path: "operations.businessLocationDetails.address.geocode.latitude"
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
path: "operations.businessLocationDetails.address.geocode.longitude"
|
|
352
|
-
}
|
|
353
|
-
]
|
|
414
|
+
paths: TRANSFORM_PATHS_6
|
|
354
415
|
}
|
|
355
416
|
])
|
|
356
417
|
};
|
|
@@ -377,22 +438,11 @@ function listOperations(payload) {
|
|
|
377
438
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
378
439
|
{
|
|
379
440
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
380
|
-
paths:
|
|
381
|
-
{ path: "operations.createdDate" },
|
|
382
|
-
{ path: "operations.updatedDate" },
|
|
383
|
-
{ path: "operations.pausedUntilOptions.time" }
|
|
384
|
-
]
|
|
441
|
+
paths: TRANSFORM_PATHS_5
|
|
385
442
|
},
|
|
386
443
|
{
|
|
387
444
|
transformFn: transformRESTFloatToSDKFloat,
|
|
388
|
-
paths:
|
|
389
|
-
{
|
|
390
|
-
path: "operations.businessLocationDetails.address.geocode.latitude"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
path: "operations.businessLocationDetails.address.geocode.longitude"
|
|
394
|
-
}
|
|
395
|
-
]
|
|
445
|
+
paths: TRANSFORM_PATHS_6
|
|
396
446
|
}
|
|
397
447
|
])
|
|
398
448
|
};
|
|
@@ -405,10 +455,7 @@ function listAvailableFulfillmentOptions(payload) {
|
|
|
405
455
|
const serializedData = transformPaths(payload, [
|
|
406
456
|
{
|
|
407
457
|
transformFn: transformSDKFloatToRESTFloat,
|
|
408
|
-
paths:
|
|
409
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
410
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
411
|
-
]
|
|
458
|
+
paths: TRANSFORM_PATHS_7
|
|
412
459
|
}
|
|
413
460
|
]);
|
|
414
461
|
const metadata = {
|
|
@@ -428,29 +475,11 @@ function listAvailableFulfillmentOptions(payload) {
|
|
|
428
475
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
429
476
|
{
|
|
430
477
|
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
|
-
]
|
|
478
|
+
paths: TRANSFORM_PATHS_8
|
|
445
479
|
},
|
|
446
480
|
{
|
|
447
481
|
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
|
-
]
|
|
482
|
+
paths: TRANSFORM_PATHS_9
|
|
454
483
|
}
|
|
455
484
|
])
|
|
456
485
|
};
|
|
@@ -463,10 +492,7 @@ function listFirstAvailableTimeSlotForFulfillmentTypes(payload) {
|
|
|
463
492
|
const serializedData = transformPaths(payload, [
|
|
464
493
|
{
|
|
465
494
|
transformFn: transformSDKFloatToRESTFloat,
|
|
466
|
-
paths:
|
|
467
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
468
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
469
|
-
]
|
|
495
|
+
paths: TRANSFORM_PATHS_7
|
|
470
496
|
}
|
|
471
497
|
]);
|
|
472
498
|
const metadata = {
|
|
@@ -486,19 +512,11 @@ function listFirstAvailableTimeSlotForFulfillmentTypes(payload) {
|
|
|
486
512
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
487
513
|
{
|
|
488
514
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
489
|
-
paths:
|
|
490
|
-
{ path: "timeSlots.startTime" },
|
|
491
|
-
{ path: "timeSlots.endTime" }
|
|
492
|
-
]
|
|
515
|
+
paths: TRANSFORM_PATHS_10
|
|
493
516
|
},
|
|
494
517
|
{
|
|
495
518
|
transformFn: transformRESTFloatToSDKFloat,
|
|
496
|
-
paths:
|
|
497
|
-
{ path: "timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
498
|
-
{
|
|
499
|
-
path: "timeSlots.fulfillmentAddress.address.geocode.longitude"
|
|
500
|
-
}
|
|
501
|
-
]
|
|
519
|
+
paths: TRANSFORM_PATHS_11
|
|
502
520
|
}
|
|
503
521
|
])
|
|
504
522
|
};
|
|
@@ -511,10 +529,7 @@ function calculateFirstAvailableTimeSlotPerFulfillmentType(payload) {
|
|
|
511
529
|
const serializedData = transformPaths(payload, [
|
|
512
530
|
{
|
|
513
531
|
transformFn: transformSDKFloatToRESTFloat,
|
|
514
|
-
paths:
|
|
515
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
516
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
517
|
-
]
|
|
532
|
+
paths: TRANSFORM_PATHS_7
|
|
518
533
|
}
|
|
519
534
|
]);
|
|
520
535
|
const metadata = {
|
|
@@ -534,21 +549,11 @@ function calculateFirstAvailableTimeSlotPerFulfillmentType(payload) {
|
|
|
534
549
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
535
550
|
{
|
|
536
551
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
537
|
-
paths:
|
|
538
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
539
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
540
|
-
]
|
|
552
|
+
paths: TRANSFORM_PATHS_12
|
|
541
553
|
},
|
|
542
554
|
{
|
|
543
555
|
transformFn: transformRESTFloatToSDKFloat,
|
|
544
|
-
paths:
|
|
545
|
-
{
|
|
546
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
550
|
-
}
|
|
551
|
-
]
|
|
556
|
+
paths: TRANSFORM_PATHS_13
|
|
552
557
|
}
|
|
553
558
|
])
|
|
554
559
|
};
|
|
@@ -561,10 +566,7 @@ function listFirstAvailableTimeSlotsForOperations(payload) {
|
|
|
561
566
|
const serializedData = transformPaths(payload, [
|
|
562
567
|
{
|
|
563
568
|
transformFn: transformSDKFloatToRESTFloat,
|
|
564
|
-
paths:
|
|
565
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
566
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
567
|
-
]
|
|
569
|
+
paths: TRANSFORM_PATHS_7
|
|
568
570
|
}
|
|
569
571
|
]);
|
|
570
572
|
const metadata = {
|
|
@@ -584,21 +586,11 @@ function listFirstAvailableTimeSlotsForOperations(payload) {
|
|
|
584
586
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
585
587
|
{
|
|
586
588
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
587
|
-
paths:
|
|
588
|
-
{ path: "timeSlots.timeSlots.startTime" },
|
|
589
|
-
{ path: "timeSlots.timeSlots.endTime" }
|
|
590
|
-
]
|
|
589
|
+
paths: TRANSFORM_PATHS_14
|
|
591
590
|
},
|
|
592
591
|
{
|
|
593
592
|
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
|
-
]
|
|
593
|
+
paths: TRANSFORM_PATHS_15
|
|
602
594
|
}
|
|
603
595
|
])
|
|
604
596
|
};
|
|
@@ -611,10 +603,7 @@ function calculateFirstAvailableTimeSlotsPerOperation(payload) {
|
|
|
611
603
|
const serializedData = transformPaths(payload, [
|
|
612
604
|
{
|
|
613
605
|
transformFn: transformSDKFloatToRESTFloat,
|
|
614
|
-
paths:
|
|
615
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
616
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
617
|
-
]
|
|
606
|
+
paths: TRANSFORM_PATHS_7
|
|
618
607
|
}
|
|
619
608
|
]);
|
|
620
609
|
const metadata = {
|
|
@@ -634,25 +623,11 @@ function calculateFirstAvailableTimeSlotsPerOperation(payload) {
|
|
|
634
623
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
635
624
|
{
|
|
636
625
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
637
|
-
paths:
|
|
638
|
-
{
|
|
639
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.startTime"
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.endTime"
|
|
643
|
-
}
|
|
644
|
-
]
|
|
626
|
+
paths: TRANSFORM_PATHS_16
|
|
645
627
|
},
|
|
646
628
|
{
|
|
647
629
|
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
|
-
]
|
|
630
|
+
paths: TRANSFORM_PATHS_17
|
|
656
631
|
}
|
|
657
632
|
])
|
|
658
633
|
};
|
|
@@ -665,10 +640,7 @@ function listFirstAvailableTimeSlotsForMenus(payload) {
|
|
|
665
640
|
const serializedData = transformPaths(payload, [
|
|
666
641
|
{
|
|
667
642
|
transformFn: transformSDKFloatToRESTFloat,
|
|
668
|
-
paths:
|
|
669
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
670
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
671
|
-
]
|
|
643
|
+
paths: TRANSFORM_PATHS_7
|
|
672
644
|
}
|
|
673
645
|
]);
|
|
674
646
|
const metadata = {
|
|
@@ -688,23 +660,11 @@ function listFirstAvailableTimeSlotsForMenus(payload) {
|
|
|
688
660
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
689
661
|
{
|
|
690
662
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
691
|
-
paths:
|
|
692
|
-
{
|
|
693
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.startTime"
|
|
694
|
-
},
|
|
695
|
-
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.endTime" }
|
|
696
|
-
]
|
|
663
|
+
paths: TRANSFORM_PATHS_18
|
|
697
664
|
},
|
|
698
665
|
{
|
|
699
666
|
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
|
-
]
|
|
667
|
+
paths: TRANSFORM_PATHS_19
|
|
708
668
|
}
|
|
709
669
|
])
|
|
710
670
|
};
|
|
@@ -717,10 +677,7 @@ function calculateFirstAvailableTimeSlotsPerMenu(payload) {
|
|
|
717
677
|
const serializedData = transformPaths(payload, [
|
|
718
678
|
{
|
|
719
679
|
transformFn: transformSDKFloatToRESTFloat,
|
|
720
|
-
paths:
|
|
721
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
722
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
723
|
-
]
|
|
680
|
+
paths: TRANSFORM_PATHS_7
|
|
724
681
|
}
|
|
725
682
|
]);
|
|
726
683
|
const metadata = {
|
|
@@ -740,25 +697,11 @@ function calculateFirstAvailableTimeSlotsPerMenu(payload) {
|
|
|
740
697
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
741
698
|
{
|
|
742
699
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
743
|
-
paths:
|
|
744
|
-
{
|
|
745
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.startTime"
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.endTime"
|
|
749
|
-
}
|
|
750
|
-
]
|
|
700
|
+
paths: TRANSFORM_PATHS_20
|
|
751
701
|
},
|
|
752
702
|
{
|
|
753
703
|
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
|
-
]
|
|
704
|
+
paths: TRANSFORM_PATHS_21
|
|
762
705
|
}
|
|
763
706
|
])
|
|
764
707
|
};
|
|
@@ -771,10 +714,7 @@ function calculateFirstAvailableTimeSlotsForItem(payload) {
|
|
|
771
714
|
const serializedData = transformPaths(payload, [
|
|
772
715
|
{
|
|
773
716
|
transformFn: transformSDKFloatToRESTFloat,
|
|
774
|
-
paths:
|
|
775
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
776
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
777
|
-
]
|
|
717
|
+
paths: TRANSFORM_PATHS_7
|
|
778
718
|
}
|
|
779
719
|
]);
|
|
780
720
|
const metadata = {
|
|
@@ -794,21 +734,11 @@ function calculateFirstAvailableTimeSlotsForItem(payload) {
|
|
|
794
734
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
795
735
|
{
|
|
796
736
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
797
|
-
paths:
|
|
798
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
799
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
800
|
-
]
|
|
737
|
+
paths: TRANSFORM_PATHS_12
|
|
801
738
|
},
|
|
802
739
|
{
|
|
803
740
|
transformFn: transformRESTFloatToSDKFloat,
|
|
804
|
-
paths:
|
|
805
|
-
{
|
|
806
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
807
|
-
},
|
|
808
|
-
{
|
|
809
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
810
|
-
}
|
|
811
|
-
]
|
|
741
|
+
paths: TRANSFORM_PATHS_13
|
|
812
742
|
}
|
|
813
743
|
])
|
|
814
744
|
};
|
|
@@ -821,10 +751,7 @@ function listAvailableTimeSlotsForDate(payload) {
|
|
|
821
751
|
const serializedData = transformPaths(payload, [
|
|
822
752
|
{
|
|
823
753
|
transformFn: transformSDKFloatToRESTFloat,
|
|
824
|
-
paths:
|
|
825
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
826
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
827
|
-
]
|
|
754
|
+
paths: TRANSFORM_PATHS_7
|
|
828
755
|
}
|
|
829
756
|
]);
|
|
830
757
|
const metadata = {
|
|
@@ -844,19 +771,11 @@ function listAvailableTimeSlotsForDate(payload) {
|
|
|
844
771
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
845
772
|
{
|
|
846
773
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
847
|
-
paths:
|
|
848
|
-
{ path: "timeSlots.startTime" },
|
|
849
|
-
{ path: "timeSlots.endTime" }
|
|
850
|
-
]
|
|
774
|
+
paths: TRANSFORM_PATHS_10
|
|
851
775
|
},
|
|
852
776
|
{
|
|
853
777
|
transformFn: transformRESTFloatToSDKFloat,
|
|
854
|
-
paths:
|
|
855
|
-
{ path: "timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
856
|
-
{
|
|
857
|
-
path: "timeSlots.fulfillmentAddress.address.geocode.longitude"
|
|
858
|
-
}
|
|
859
|
-
]
|
|
778
|
+
paths: TRANSFORM_PATHS_11
|
|
860
779
|
}
|
|
861
780
|
])
|
|
862
781
|
};
|
|
@@ -869,10 +788,7 @@ function calculateAvailableTimeSlotsForDate(payload) {
|
|
|
869
788
|
const serializedData = transformPaths(payload, [
|
|
870
789
|
{
|
|
871
790
|
transformFn: transformSDKFloatToRESTFloat,
|
|
872
|
-
paths:
|
|
873
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
874
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
875
|
-
]
|
|
791
|
+
paths: TRANSFORM_PATHS_7
|
|
876
792
|
}
|
|
877
793
|
]);
|
|
878
794
|
const metadata = {
|
|
@@ -892,21 +808,11 @@ function calculateAvailableTimeSlotsForDate(payload) {
|
|
|
892
808
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
893
809
|
{
|
|
894
810
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
895
|
-
paths:
|
|
896
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
897
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
898
|
-
]
|
|
811
|
+
paths: TRANSFORM_PATHS_12
|
|
899
812
|
},
|
|
900
813
|
{
|
|
901
814
|
transformFn: transformRESTFloatToSDKFloat,
|
|
902
|
-
paths:
|
|
903
|
-
{
|
|
904
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
905
|
-
},
|
|
906
|
-
{
|
|
907
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
908
|
-
}
|
|
909
|
-
]
|
|
815
|
+
paths: TRANSFORM_PATHS_13
|
|
910
816
|
}
|
|
911
817
|
])
|
|
912
818
|
};
|
|
@@ -919,10 +825,7 @@ function listAvailableDatesInRange(payload) {
|
|
|
919
825
|
const serializedData = transformPaths(payload, [
|
|
920
826
|
{
|
|
921
827
|
transformFn: transformSDKFloatToRESTFloat,
|
|
922
|
-
paths:
|
|
923
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
924
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
925
|
-
]
|
|
828
|
+
paths: TRANSFORM_PATHS_7
|
|
926
829
|
}
|
|
927
830
|
]);
|
|
928
831
|
const metadata = {
|
|
@@ -949,10 +852,7 @@ function calculateAvailableDatesInRange(payload) {
|
|
|
949
852
|
const serializedData = transformPaths(payload, [
|
|
950
853
|
{
|
|
951
854
|
transformFn: transformSDKFloatToRESTFloat,
|
|
952
|
-
paths:
|
|
953
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
954
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
955
|
-
]
|
|
855
|
+
paths: TRANSFORM_PATHS_7
|
|
956
856
|
}
|
|
957
857
|
]);
|
|
958
858
|
const metadata = {
|
|
@@ -1043,6 +943,39 @@ import { transformSDKAddressToRESTAddress } from "@wix/sdk-runtime/transformatio
|
|
|
1043
943
|
import { transformRESTAddressToSDKAddress } from "@wix/sdk-runtime/transformations/address";
|
|
1044
944
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
1045
945
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
946
|
+
var TRANSFORM_PATHS_02 = [
|
|
947
|
+
{ path: "operation.businessLocationDetails.address" }
|
|
948
|
+
];
|
|
949
|
+
var TRANSFORM_PATHS_110 = [
|
|
950
|
+
{ path: "operations.businessLocationDetails.address" }
|
|
951
|
+
];
|
|
952
|
+
var TRANSFORM_PATHS_22 = [{ path: "deliveryAddress" }];
|
|
953
|
+
var TRANSFORM_PATHS_32 = [
|
|
954
|
+
{ path: "fulfillmentOptions.pickupOptions.address" },
|
|
955
|
+
{ path: "fulfillmentOptions.dineInOptions.address" }
|
|
956
|
+
];
|
|
957
|
+
var TRANSFORM_PATHS_42 = [{ path: "timeSlots.fulfillmentAddress.address" }];
|
|
958
|
+
var TRANSFORM_PATHS_52 = [
|
|
959
|
+
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
960
|
+
];
|
|
961
|
+
var TRANSFORM_PATHS_62 = [
|
|
962
|
+
{ path: "timeSlots.timeSlots.fulfillmentAddress.address" }
|
|
963
|
+
];
|
|
964
|
+
var TRANSFORM_PATHS_72 = [
|
|
965
|
+
{
|
|
966
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
967
|
+
}
|
|
968
|
+
];
|
|
969
|
+
var TRANSFORM_PATHS_82 = [
|
|
970
|
+
{
|
|
971
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address"
|
|
972
|
+
}
|
|
973
|
+
];
|
|
974
|
+
var TRANSFORM_PATHS_92 = [
|
|
975
|
+
{
|
|
976
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
977
|
+
}
|
|
978
|
+
];
|
|
1046
979
|
var SchedulingType = /* @__PURE__ */ ((SchedulingType2) => {
|
|
1047
980
|
SchedulingType2["ASAP"] = "ASAP";
|
|
1048
981
|
SchedulingType2["PREORDER"] = "PREORDER";
|
|
@@ -1312,7 +1245,7 @@ async function getOperation2(operationId) {
|
|
|
1312
1245
|
transformPaths2(result.data, [
|
|
1313
1246
|
{
|
|
1314
1247
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1315
|
-
paths:
|
|
1248
|
+
paths: TRANSFORM_PATHS_02
|
|
1316
1249
|
}
|
|
1317
1250
|
])
|
|
1318
1251
|
)?.operation;
|
|
@@ -1339,7 +1272,7 @@ async function updateOperation2(_id, operation) {
|
|
|
1339
1272
|
[
|
|
1340
1273
|
{
|
|
1341
1274
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1342
|
-
paths:
|
|
1275
|
+
paths: TRANSFORM_PATHS_02
|
|
1343
1276
|
}
|
|
1344
1277
|
]
|
|
1345
1278
|
);
|
|
@@ -1352,7 +1285,7 @@ async function updateOperation2(_id, operation) {
|
|
|
1352
1285
|
transformPaths2(result.data, [
|
|
1353
1286
|
{
|
|
1354
1287
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1355
|
-
paths:
|
|
1288
|
+
paths: TRANSFORM_PATHS_02
|
|
1356
1289
|
}
|
|
1357
1290
|
])
|
|
1358
1291
|
)?.operation;
|
|
@@ -1421,7 +1354,7 @@ function queryOperation2() {
|
|
|
1421
1354
|
transformPaths2(data, [
|
|
1422
1355
|
{
|
|
1423
1356
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1424
|
-
paths:
|
|
1357
|
+
paths: TRANSFORM_PATHS_110
|
|
1425
1358
|
}
|
|
1426
1359
|
])
|
|
1427
1360
|
);
|
|
@@ -1454,7 +1387,7 @@ async function typedQueryOperation(query) {
|
|
|
1454
1387
|
transformPaths2(result.data, [
|
|
1455
1388
|
{
|
|
1456
1389
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1457
|
-
paths:
|
|
1390
|
+
paths: TRANSFORM_PATHS_110
|
|
1458
1391
|
}
|
|
1459
1392
|
])
|
|
1460
1393
|
);
|
|
@@ -1487,7 +1420,7 @@ async function listOperations2() {
|
|
|
1487
1420
|
transformPaths2(result.data, [
|
|
1488
1421
|
{
|
|
1489
1422
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1490
|
-
paths:
|
|
1423
|
+
paths: TRANSFORM_PATHS_110
|
|
1491
1424
|
}
|
|
1492
1425
|
])
|
|
1493
1426
|
);
|
|
@@ -1515,7 +1448,7 @@ async function listAvailableFulfillmentOptions2(operationId, options) {
|
|
|
1515
1448
|
[
|
|
1516
1449
|
{
|
|
1517
1450
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1518
|
-
paths:
|
|
1451
|
+
paths: TRANSFORM_PATHS_22
|
|
1519
1452
|
}
|
|
1520
1453
|
]
|
|
1521
1454
|
);
|
|
@@ -1530,10 +1463,7 @@ async function listAvailableFulfillmentOptions2(operationId, options) {
|
|
|
1530
1463
|
transformPaths2(result.data, [
|
|
1531
1464
|
{
|
|
1532
1465
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1533
|
-
paths:
|
|
1534
|
-
{ path: "fulfillmentOptions.pickupOptions.address" },
|
|
1535
|
-
{ path: "fulfillmentOptions.dineInOptions.address" }
|
|
1536
|
-
]
|
|
1466
|
+
paths: TRANSFORM_PATHS_32
|
|
1537
1467
|
}
|
|
1538
1468
|
])
|
|
1539
1469
|
);
|
|
@@ -1564,7 +1494,7 @@ async function listFirstAvailableTimeSlotForFulfillmentTypes2(operationId, optio
|
|
|
1564
1494
|
[
|
|
1565
1495
|
{
|
|
1566
1496
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1567
|
-
paths:
|
|
1497
|
+
paths: TRANSFORM_PATHS_22
|
|
1568
1498
|
}
|
|
1569
1499
|
]
|
|
1570
1500
|
);
|
|
@@ -1579,7 +1509,7 @@ async function listFirstAvailableTimeSlotForFulfillmentTypes2(operationId, optio
|
|
|
1579
1509
|
transformPaths2(result.data, [
|
|
1580
1510
|
{
|
|
1581
1511
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1582
|
-
paths:
|
|
1512
|
+
paths: TRANSFORM_PATHS_42
|
|
1583
1513
|
}
|
|
1584
1514
|
])
|
|
1585
1515
|
);
|
|
@@ -1610,7 +1540,7 @@ async function calculateFirstAvailableTimeSlotPerFulfillmentType2(operationId, o
|
|
|
1610
1540
|
[
|
|
1611
1541
|
{
|
|
1612
1542
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1613
|
-
paths:
|
|
1543
|
+
paths: TRANSFORM_PATHS_22
|
|
1614
1544
|
}
|
|
1615
1545
|
]
|
|
1616
1546
|
);
|
|
@@ -1625,9 +1555,7 @@ async function calculateFirstAvailableTimeSlotPerFulfillmentType2(operationId, o
|
|
|
1625
1555
|
transformPaths2(result.data, [
|
|
1626
1556
|
{
|
|
1627
1557
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1628
|
-
paths:
|
|
1629
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
1630
|
-
]
|
|
1558
|
+
paths: TRANSFORM_PATHS_52
|
|
1631
1559
|
}
|
|
1632
1560
|
])
|
|
1633
1561
|
);
|
|
@@ -1658,7 +1586,7 @@ async function listFirstAvailableTimeSlotsForOperations2(operationIds, options)
|
|
|
1658
1586
|
[
|
|
1659
1587
|
{
|
|
1660
1588
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1661
|
-
paths:
|
|
1589
|
+
paths: TRANSFORM_PATHS_22
|
|
1662
1590
|
}
|
|
1663
1591
|
]
|
|
1664
1592
|
);
|
|
@@ -1673,7 +1601,7 @@ async function listFirstAvailableTimeSlotsForOperations2(operationIds, options)
|
|
|
1673
1601
|
transformPaths2(result.data, [
|
|
1674
1602
|
{
|
|
1675
1603
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1676
|
-
paths:
|
|
1604
|
+
paths: TRANSFORM_PATHS_62
|
|
1677
1605
|
}
|
|
1678
1606
|
])
|
|
1679
1607
|
);
|
|
@@ -1704,7 +1632,7 @@ async function calculateFirstAvailableTimeSlotsPerOperation2(operationIds, optio
|
|
|
1704
1632
|
[
|
|
1705
1633
|
{
|
|
1706
1634
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1707
|
-
paths:
|
|
1635
|
+
paths: TRANSFORM_PATHS_22
|
|
1708
1636
|
}
|
|
1709
1637
|
]
|
|
1710
1638
|
);
|
|
@@ -1719,11 +1647,7 @@ async function calculateFirstAvailableTimeSlotsPerOperation2(operationIds, optio
|
|
|
1719
1647
|
transformPaths2(result.data, [
|
|
1720
1648
|
{
|
|
1721
1649
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1722
|
-
paths:
|
|
1723
|
-
{
|
|
1724
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
1725
|
-
}
|
|
1726
|
-
]
|
|
1650
|
+
paths: TRANSFORM_PATHS_72
|
|
1727
1651
|
}
|
|
1728
1652
|
])
|
|
1729
1653
|
);
|
|
@@ -1755,7 +1679,7 @@ async function listFirstAvailableTimeSlotsForMenus2(operationId, options) {
|
|
|
1755
1679
|
[
|
|
1756
1680
|
{
|
|
1757
1681
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1758
|
-
paths:
|
|
1682
|
+
paths: TRANSFORM_PATHS_22
|
|
1759
1683
|
}
|
|
1760
1684
|
]
|
|
1761
1685
|
);
|
|
@@ -1770,11 +1694,7 @@ async function listFirstAvailableTimeSlotsForMenus2(operationId, options) {
|
|
|
1770
1694
|
transformPaths2(result.data, [
|
|
1771
1695
|
{
|
|
1772
1696
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1773
|
-
paths:
|
|
1774
|
-
{
|
|
1775
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address"
|
|
1776
|
-
}
|
|
1777
|
-
]
|
|
1697
|
+
paths: TRANSFORM_PATHS_82
|
|
1778
1698
|
}
|
|
1779
1699
|
])
|
|
1780
1700
|
);
|
|
@@ -1808,7 +1728,7 @@ async function calculateFirstAvailableTimeSlotsPerMenu2(operationId, options) {
|
|
|
1808
1728
|
[
|
|
1809
1729
|
{
|
|
1810
1730
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1811
|
-
paths:
|
|
1731
|
+
paths: TRANSFORM_PATHS_22
|
|
1812
1732
|
}
|
|
1813
1733
|
]
|
|
1814
1734
|
);
|
|
@@ -1823,11 +1743,7 @@ async function calculateFirstAvailableTimeSlotsPerMenu2(operationId, options) {
|
|
|
1823
1743
|
transformPaths2(result.data, [
|
|
1824
1744
|
{
|
|
1825
1745
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1826
|
-
paths:
|
|
1827
|
-
{
|
|
1828
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
1829
|
-
}
|
|
1830
|
-
]
|
|
1746
|
+
paths: TRANSFORM_PATHS_92
|
|
1831
1747
|
}
|
|
1832
1748
|
])
|
|
1833
1749
|
);
|
|
@@ -1863,7 +1779,7 @@ async function calculateFirstAvailableTimeSlotsForItem2(operationId, menuId, opt
|
|
|
1863
1779
|
[
|
|
1864
1780
|
{
|
|
1865
1781
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1866
|
-
paths:
|
|
1782
|
+
paths: TRANSFORM_PATHS_22
|
|
1867
1783
|
}
|
|
1868
1784
|
]
|
|
1869
1785
|
);
|
|
@@ -1878,9 +1794,7 @@ async function calculateFirstAvailableTimeSlotsForItem2(operationId, menuId, opt
|
|
|
1878
1794
|
transformPaths2(result.data, [
|
|
1879
1795
|
{
|
|
1880
1796
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1881
|
-
paths:
|
|
1882
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
1883
|
-
]
|
|
1797
|
+
paths: TRANSFORM_PATHS_52
|
|
1884
1798
|
}
|
|
1885
1799
|
])
|
|
1886
1800
|
);
|
|
@@ -1915,7 +1829,7 @@ async function listAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
1915
1829
|
[
|
|
1916
1830
|
{
|
|
1917
1831
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1918
|
-
paths:
|
|
1832
|
+
paths: TRANSFORM_PATHS_22
|
|
1919
1833
|
}
|
|
1920
1834
|
]
|
|
1921
1835
|
);
|
|
@@ -1930,7 +1844,7 @@ async function listAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
1930
1844
|
transformPaths2(result.data, [
|
|
1931
1845
|
{
|
|
1932
1846
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1933
|
-
paths:
|
|
1847
|
+
paths: TRANSFORM_PATHS_42
|
|
1934
1848
|
}
|
|
1935
1849
|
])
|
|
1936
1850
|
);
|
|
@@ -1963,7 +1877,7 @@ async function calculateAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
1963
1877
|
[
|
|
1964
1878
|
{
|
|
1965
1879
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1966
|
-
paths:
|
|
1880
|
+
paths: TRANSFORM_PATHS_22
|
|
1967
1881
|
}
|
|
1968
1882
|
]
|
|
1969
1883
|
);
|
|
@@ -1978,9 +1892,7 @@ async function calculateAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
1978
1892
|
transformPaths2(result.data, [
|
|
1979
1893
|
{
|
|
1980
1894
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1981
|
-
paths:
|
|
1982
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
1983
|
-
]
|
|
1895
|
+
paths: TRANSFORM_PATHS_52
|
|
1984
1896
|
}
|
|
1985
1897
|
])
|
|
1986
1898
|
);
|
|
@@ -2014,7 +1926,7 @@ async function listAvailableDatesInRange2(operationId, options) {
|
|
|
2014
1926
|
[
|
|
2015
1927
|
{
|
|
2016
1928
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2017
|
-
paths:
|
|
1929
|
+
paths: TRANSFORM_PATHS_22
|
|
2018
1930
|
}
|
|
2019
1931
|
]
|
|
2020
1932
|
);
|
|
@@ -2057,7 +1969,7 @@ async function calculateAvailableDatesInRange2(operationId, options) {
|
|
|
2057
1969
|
[
|
|
2058
1970
|
{
|
|
2059
1971
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2060
|
-
paths:
|
|
1972
|
+
paths: TRANSFORM_PATHS_22
|
|
2061
1973
|
}
|
|
2062
1974
|
]
|
|
2063
1975
|
);
|