@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
package/build/es/index.mjs
CHANGED
|
@@ -22,6 +22,114 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
22
22
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
23
23
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
24
24
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
25
|
+
var TRANSFORM_PATHS_0 = [{ path: "from" }, { path: "until" }];
|
|
26
|
+
var TRANSFORM_PATHS_1 = [
|
|
27
|
+
{ path: "blockPeriods.from" },
|
|
28
|
+
{ path: "blockPeriods.until" }
|
|
29
|
+
];
|
|
30
|
+
var TRANSFORM_PATHS_2 = [
|
|
31
|
+
{ path: "operation.createdDate" },
|
|
32
|
+
{ path: "operation.updatedDate" },
|
|
33
|
+
{ path: "operation.pausedUntilOptions.time" }
|
|
34
|
+
];
|
|
35
|
+
var TRANSFORM_PATHS_3 = [
|
|
36
|
+
{ path: "operation.businessLocationDetails.address.geocode.latitude" },
|
|
37
|
+
{ path: "operation.businessLocationDetails.address.geocode.longitude" }
|
|
38
|
+
];
|
|
39
|
+
var TRANSFORM_PATHS_4 = [{ path: "mask" }];
|
|
40
|
+
var TRANSFORM_PATHS_5 = [
|
|
41
|
+
{ path: "operations.createdDate" },
|
|
42
|
+
{ path: "operations.updatedDate" },
|
|
43
|
+
{ path: "operations.pausedUntilOptions.time" }
|
|
44
|
+
];
|
|
45
|
+
var TRANSFORM_PATHS_6 = [
|
|
46
|
+
{ path: "operations.businessLocationDetails.address.geocode.latitude" },
|
|
47
|
+
{ path: "operations.businessLocationDetails.address.geocode.longitude" }
|
|
48
|
+
];
|
|
49
|
+
var TRANSFORM_PATHS_7 = [
|
|
50
|
+
{ path: "deliveryAddress.geocode.latitude" },
|
|
51
|
+
{ path: "deliveryAddress.geocode.longitude" }
|
|
52
|
+
];
|
|
53
|
+
var TRANSFORM_PATHS_8 = [
|
|
54
|
+
{ path: "fulfillmentOptions.pickupOptions.address.geocode.latitude" },
|
|
55
|
+
{ path: "fulfillmentOptions.pickupOptions.address.geocode.longitude" },
|
|
56
|
+
{ path: "fulfillmentOptions.dineInOptions.address.geocode.latitude" },
|
|
57
|
+
{ path: "fulfillmentOptions.dineInOptions.address.geocode.longitude" }
|
|
58
|
+
];
|
|
59
|
+
var TRANSFORM_PATHS_9 = [
|
|
60
|
+
{ path: "fulfillmentOptions.availability.startTime" },
|
|
61
|
+
{ path: "fulfillmentOptions.availability.endTime" },
|
|
62
|
+
{ path: "fulfillmentOptions.availability.exceptions.startTime" },
|
|
63
|
+
{ path: "fulfillmentOptions.availability.exceptions.endTime" }
|
|
64
|
+
];
|
|
65
|
+
var TRANSFORM_PATHS_10 = [
|
|
66
|
+
{ path: "timeSlots.startTime" },
|
|
67
|
+
{ path: "timeSlots.endTime" }
|
|
68
|
+
];
|
|
69
|
+
var TRANSFORM_PATHS_11 = [
|
|
70
|
+
{ path: "timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
71
|
+
{ path: "timeSlots.fulfillmentAddress.address.geocode.longitude" }
|
|
72
|
+
];
|
|
73
|
+
var TRANSFORM_PATHS_12 = [
|
|
74
|
+
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
75
|
+
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
76
|
+
];
|
|
77
|
+
var TRANSFORM_PATHS_13 = [
|
|
78
|
+
{
|
|
79
|
+
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
var TRANSFORM_PATHS_14 = [
|
|
86
|
+
{ path: "timeSlots.timeSlots.startTime" },
|
|
87
|
+
{ path: "timeSlots.timeSlots.endTime" }
|
|
88
|
+
];
|
|
89
|
+
var TRANSFORM_PATHS_15 = [
|
|
90
|
+
{ path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
91
|
+
{ path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.longitude" }
|
|
92
|
+
];
|
|
93
|
+
var TRANSFORM_PATHS_16 = [
|
|
94
|
+
{
|
|
95
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.startTime"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.endTime"
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
var TRANSFORM_PATHS_17 = [
|
|
102
|
+
{
|
|
103
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
107
|
+
}
|
|
108
|
+
];
|
|
109
|
+
var TRANSFORM_PATHS_18 = [
|
|
110
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.startTime" },
|
|
111
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.endTime" }
|
|
112
|
+
];
|
|
113
|
+
var TRANSFORM_PATHS_19 = [
|
|
114
|
+
{
|
|
115
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.latitude"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.longitude"
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
var TRANSFORM_PATHS_20 = [
|
|
122
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
123
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
124
|
+
];
|
|
125
|
+
var TRANSFORM_PATHS_21 = [
|
|
126
|
+
{
|
|
127
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
131
|
+
}
|
|
132
|
+
];
|
|
25
133
|
function resolveWixRestaurantsOperationsV1OperationsServiceUrl(opts) {
|
|
26
134
|
const domainToMappings = {
|
|
27
135
|
"manage._base_domain_": [
|
|
@@ -162,7 +270,7 @@ function listBlockedPeriods(payload) {
|
|
|
162
270
|
const serializedData = transformPaths(payload, [
|
|
163
271
|
{
|
|
164
272
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
165
|
-
paths:
|
|
273
|
+
paths: TRANSFORM_PATHS_0
|
|
166
274
|
}
|
|
167
275
|
]);
|
|
168
276
|
const metadata = {
|
|
@@ -182,10 +290,7 @@ function listBlockedPeriods(payload) {
|
|
|
182
290
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
183
291
|
{
|
|
184
292
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
185
|
-
paths:
|
|
186
|
-
{ path: "blockPeriods.from" },
|
|
187
|
-
{ path: "blockPeriods.until" }
|
|
188
|
-
]
|
|
293
|
+
paths: TRANSFORM_PATHS_1
|
|
189
294
|
}
|
|
190
295
|
])
|
|
191
296
|
};
|
|
@@ -212,22 +317,11 @@ function getOperation(payload) {
|
|
|
212
317
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
213
318
|
{
|
|
214
319
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
215
|
-
paths:
|
|
216
|
-
{ path: "operation.createdDate" },
|
|
217
|
-
{ path: "operation.updatedDate" },
|
|
218
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
219
|
-
]
|
|
320
|
+
paths: TRANSFORM_PATHS_2
|
|
220
321
|
},
|
|
221
322
|
{
|
|
222
323
|
transformFn: transformRESTFloatToSDKFloat,
|
|
223
|
-
paths:
|
|
224
|
-
{
|
|
225
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
229
|
-
}
|
|
230
|
-
]
|
|
324
|
+
paths: TRANSFORM_PATHS_3
|
|
231
325
|
}
|
|
232
326
|
])
|
|
233
327
|
};
|
|
@@ -240,26 +334,15 @@ function updateOperation(payload) {
|
|
|
240
334
|
const serializedData = transformPaths(payload, [
|
|
241
335
|
{
|
|
242
336
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
243
|
-
paths:
|
|
337
|
+
paths: TRANSFORM_PATHS_4
|
|
244
338
|
},
|
|
245
339
|
{
|
|
246
340
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
247
|
-
paths:
|
|
248
|
-
{ path: "operation.createdDate" },
|
|
249
|
-
{ path: "operation.updatedDate" },
|
|
250
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
251
|
-
]
|
|
341
|
+
paths: TRANSFORM_PATHS_2
|
|
252
342
|
},
|
|
253
343
|
{
|
|
254
344
|
transformFn: transformSDKFloatToRESTFloat,
|
|
255
|
-
paths:
|
|
256
|
-
{
|
|
257
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
261
|
-
}
|
|
262
|
-
]
|
|
345
|
+
paths: TRANSFORM_PATHS_3
|
|
263
346
|
}
|
|
264
347
|
]);
|
|
265
348
|
const metadata = {
|
|
@@ -279,22 +362,11 @@ function updateOperation(payload) {
|
|
|
279
362
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
280
363
|
{
|
|
281
364
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
282
|
-
paths:
|
|
283
|
-
{ path: "operation.createdDate" },
|
|
284
|
-
{ path: "operation.updatedDate" },
|
|
285
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
286
|
-
]
|
|
365
|
+
paths: TRANSFORM_PATHS_2
|
|
287
366
|
},
|
|
288
367
|
{
|
|
289
368
|
transformFn: transformRESTFloatToSDKFloat,
|
|
290
|
-
paths:
|
|
291
|
-
{
|
|
292
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
296
|
-
}
|
|
297
|
-
]
|
|
369
|
+
paths: TRANSFORM_PATHS_3
|
|
298
370
|
}
|
|
299
371
|
])
|
|
300
372
|
};
|
|
@@ -342,22 +414,11 @@ function queryOperation(payload) {
|
|
|
342
414
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
343
415
|
{
|
|
344
416
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
345
|
-
paths:
|
|
346
|
-
{ path: "operations.createdDate" },
|
|
347
|
-
{ path: "operations.updatedDate" },
|
|
348
|
-
{ path: "operations.pausedUntilOptions.time" }
|
|
349
|
-
]
|
|
417
|
+
paths: TRANSFORM_PATHS_5
|
|
350
418
|
},
|
|
351
419
|
{
|
|
352
420
|
transformFn: transformRESTFloatToSDKFloat,
|
|
353
|
-
paths:
|
|
354
|
-
{
|
|
355
|
-
path: "operations.businessLocationDetails.address.geocode.latitude"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
path: "operations.businessLocationDetails.address.geocode.longitude"
|
|
359
|
-
}
|
|
360
|
-
]
|
|
421
|
+
paths: TRANSFORM_PATHS_6
|
|
361
422
|
}
|
|
362
423
|
])
|
|
363
424
|
};
|
|
@@ -384,22 +445,11 @@ function listOperations(payload) {
|
|
|
384
445
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
385
446
|
{
|
|
386
447
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
387
|
-
paths:
|
|
388
|
-
{ path: "operations.createdDate" },
|
|
389
|
-
{ path: "operations.updatedDate" },
|
|
390
|
-
{ path: "operations.pausedUntilOptions.time" }
|
|
391
|
-
]
|
|
448
|
+
paths: TRANSFORM_PATHS_5
|
|
392
449
|
},
|
|
393
450
|
{
|
|
394
451
|
transformFn: transformRESTFloatToSDKFloat,
|
|
395
|
-
paths:
|
|
396
|
-
{
|
|
397
|
-
path: "operations.businessLocationDetails.address.geocode.latitude"
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
path: "operations.businessLocationDetails.address.geocode.longitude"
|
|
401
|
-
}
|
|
402
|
-
]
|
|
452
|
+
paths: TRANSFORM_PATHS_6
|
|
403
453
|
}
|
|
404
454
|
])
|
|
405
455
|
};
|
|
@@ -412,10 +462,7 @@ function listAvailableFulfillmentOptions(payload) {
|
|
|
412
462
|
const serializedData = transformPaths(payload, [
|
|
413
463
|
{
|
|
414
464
|
transformFn: transformSDKFloatToRESTFloat,
|
|
415
|
-
paths:
|
|
416
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
417
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
418
|
-
]
|
|
465
|
+
paths: TRANSFORM_PATHS_7
|
|
419
466
|
}
|
|
420
467
|
]);
|
|
421
468
|
const metadata = {
|
|
@@ -435,29 +482,11 @@ function listAvailableFulfillmentOptions(payload) {
|
|
|
435
482
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
436
483
|
{
|
|
437
484
|
transformFn: transformRESTFloatToSDKFloat,
|
|
438
|
-
paths:
|
|
439
|
-
{
|
|
440
|
-
path: "fulfillmentOptions.pickupOptions.address.geocode.latitude"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
path: "fulfillmentOptions.pickupOptions.address.geocode.longitude"
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
path: "fulfillmentOptions.dineInOptions.address.geocode.latitude"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
path: "fulfillmentOptions.dineInOptions.address.geocode.longitude"
|
|
450
|
-
}
|
|
451
|
-
]
|
|
485
|
+
paths: TRANSFORM_PATHS_8
|
|
452
486
|
},
|
|
453
487
|
{
|
|
454
488
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
455
|
-
paths:
|
|
456
|
-
{ path: "fulfillmentOptions.availability.startTime" },
|
|
457
|
-
{ path: "fulfillmentOptions.availability.endTime" },
|
|
458
|
-
{ path: "fulfillmentOptions.availability.exceptions.startTime" },
|
|
459
|
-
{ path: "fulfillmentOptions.availability.exceptions.endTime" }
|
|
460
|
-
]
|
|
489
|
+
paths: TRANSFORM_PATHS_9
|
|
461
490
|
}
|
|
462
491
|
])
|
|
463
492
|
};
|
|
@@ -470,10 +499,7 @@ function listFirstAvailableTimeSlotForFulfillmentTypes(payload) {
|
|
|
470
499
|
const serializedData = transformPaths(payload, [
|
|
471
500
|
{
|
|
472
501
|
transformFn: transformSDKFloatToRESTFloat,
|
|
473
|
-
paths:
|
|
474
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
475
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
476
|
-
]
|
|
502
|
+
paths: TRANSFORM_PATHS_7
|
|
477
503
|
}
|
|
478
504
|
]);
|
|
479
505
|
const metadata = {
|
|
@@ -493,19 +519,11 @@ function listFirstAvailableTimeSlotForFulfillmentTypes(payload) {
|
|
|
493
519
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
494
520
|
{
|
|
495
521
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
496
|
-
paths:
|
|
497
|
-
{ path: "timeSlots.startTime" },
|
|
498
|
-
{ path: "timeSlots.endTime" }
|
|
499
|
-
]
|
|
522
|
+
paths: TRANSFORM_PATHS_10
|
|
500
523
|
},
|
|
501
524
|
{
|
|
502
525
|
transformFn: transformRESTFloatToSDKFloat,
|
|
503
|
-
paths:
|
|
504
|
-
{ path: "timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
505
|
-
{
|
|
506
|
-
path: "timeSlots.fulfillmentAddress.address.geocode.longitude"
|
|
507
|
-
}
|
|
508
|
-
]
|
|
526
|
+
paths: TRANSFORM_PATHS_11
|
|
509
527
|
}
|
|
510
528
|
])
|
|
511
529
|
};
|
|
@@ -518,10 +536,7 @@ function calculateFirstAvailableTimeSlotPerFulfillmentType(payload) {
|
|
|
518
536
|
const serializedData = transformPaths(payload, [
|
|
519
537
|
{
|
|
520
538
|
transformFn: transformSDKFloatToRESTFloat,
|
|
521
|
-
paths:
|
|
522
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
523
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
524
|
-
]
|
|
539
|
+
paths: TRANSFORM_PATHS_7
|
|
525
540
|
}
|
|
526
541
|
]);
|
|
527
542
|
const metadata = {
|
|
@@ -541,21 +556,11 @@ function calculateFirstAvailableTimeSlotPerFulfillmentType(payload) {
|
|
|
541
556
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
542
557
|
{
|
|
543
558
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
544
|
-
paths:
|
|
545
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
546
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
547
|
-
]
|
|
559
|
+
paths: TRANSFORM_PATHS_12
|
|
548
560
|
},
|
|
549
561
|
{
|
|
550
562
|
transformFn: transformRESTFloatToSDKFloat,
|
|
551
|
-
paths:
|
|
552
|
-
{
|
|
553
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
557
|
-
}
|
|
558
|
-
]
|
|
563
|
+
paths: TRANSFORM_PATHS_13
|
|
559
564
|
}
|
|
560
565
|
])
|
|
561
566
|
};
|
|
@@ -568,10 +573,7 @@ function listFirstAvailableTimeSlotsForOperations(payload) {
|
|
|
568
573
|
const serializedData = transformPaths(payload, [
|
|
569
574
|
{
|
|
570
575
|
transformFn: transformSDKFloatToRESTFloat,
|
|
571
|
-
paths:
|
|
572
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
573
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
574
|
-
]
|
|
576
|
+
paths: TRANSFORM_PATHS_7
|
|
575
577
|
}
|
|
576
578
|
]);
|
|
577
579
|
const metadata = {
|
|
@@ -591,21 +593,11 @@ function listFirstAvailableTimeSlotsForOperations(payload) {
|
|
|
591
593
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
592
594
|
{
|
|
593
595
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
594
|
-
paths:
|
|
595
|
-
{ path: "timeSlots.timeSlots.startTime" },
|
|
596
|
-
{ path: "timeSlots.timeSlots.endTime" }
|
|
597
|
-
]
|
|
596
|
+
paths: TRANSFORM_PATHS_14
|
|
598
597
|
},
|
|
599
598
|
{
|
|
600
599
|
transformFn: transformRESTFloatToSDKFloat,
|
|
601
|
-
paths:
|
|
602
|
-
{
|
|
603
|
-
path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.latitude"
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.longitude"
|
|
607
|
-
}
|
|
608
|
-
]
|
|
600
|
+
paths: TRANSFORM_PATHS_15
|
|
609
601
|
}
|
|
610
602
|
])
|
|
611
603
|
};
|
|
@@ -618,10 +610,7 @@ function calculateFirstAvailableTimeSlotsPerOperation(payload) {
|
|
|
618
610
|
const serializedData = transformPaths(payload, [
|
|
619
611
|
{
|
|
620
612
|
transformFn: transformSDKFloatToRESTFloat,
|
|
621
|
-
paths:
|
|
622
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
623
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
624
|
-
]
|
|
613
|
+
paths: TRANSFORM_PATHS_7
|
|
625
614
|
}
|
|
626
615
|
]);
|
|
627
616
|
const metadata = {
|
|
@@ -641,25 +630,11 @@ function calculateFirstAvailableTimeSlotsPerOperation(payload) {
|
|
|
641
630
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
642
631
|
{
|
|
643
632
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
644
|
-
paths:
|
|
645
|
-
{
|
|
646
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.startTime"
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.endTime"
|
|
650
|
-
}
|
|
651
|
-
]
|
|
633
|
+
paths: TRANSFORM_PATHS_16
|
|
652
634
|
},
|
|
653
635
|
{
|
|
654
636
|
transformFn: transformRESTFloatToSDKFloat,
|
|
655
|
-
paths:
|
|
656
|
-
{
|
|
657
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
661
|
-
}
|
|
662
|
-
]
|
|
637
|
+
paths: TRANSFORM_PATHS_17
|
|
663
638
|
}
|
|
664
639
|
])
|
|
665
640
|
};
|
|
@@ -672,10 +647,7 @@ function listFirstAvailableTimeSlotsForMenus(payload) {
|
|
|
672
647
|
const serializedData = transformPaths(payload, [
|
|
673
648
|
{
|
|
674
649
|
transformFn: transformSDKFloatToRESTFloat,
|
|
675
|
-
paths:
|
|
676
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
677
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
678
|
-
]
|
|
650
|
+
paths: TRANSFORM_PATHS_7
|
|
679
651
|
}
|
|
680
652
|
]);
|
|
681
653
|
const metadata = {
|
|
@@ -695,23 +667,11 @@ function listFirstAvailableTimeSlotsForMenus(payload) {
|
|
|
695
667
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
696
668
|
{
|
|
697
669
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
698
|
-
paths:
|
|
699
|
-
{
|
|
700
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.startTime"
|
|
701
|
-
},
|
|
702
|
-
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.endTime" }
|
|
703
|
-
]
|
|
670
|
+
paths: TRANSFORM_PATHS_18
|
|
704
671
|
},
|
|
705
672
|
{
|
|
706
673
|
transformFn: transformRESTFloatToSDKFloat,
|
|
707
|
-
paths:
|
|
708
|
-
{
|
|
709
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.latitude"
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.longitude"
|
|
713
|
-
}
|
|
714
|
-
]
|
|
674
|
+
paths: TRANSFORM_PATHS_19
|
|
715
675
|
}
|
|
716
676
|
])
|
|
717
677
|
};
|
|
@@ -724,10 +684,7 @@ function calculateFirstAvailableTimeSlotsPerMenu(payload) {
|
|
|
724
684
|
const serializedData = transformPaths(payload, [
|
|
725
685
|
{
|
|
726
686
|
transformFn: transformSDKFloatToRESTFloat,
|
|
727
|
-
paths:
|
|
728
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
729
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
730
|
-
]
|
|
687
|
+
paths: TRANSFORM_PATHS_7
|
|
731
688
|
}
|
|
732
689
|
]);
|
|
733
690
|
const metadata = {
|
|
@@ -747,25 +704,11 @@ function calculateFirstAvailableTimeSlotsPerMenu(payload) {
|
|
|
747
704
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
748
705
|
{
|
|
749
706
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
750
|
-
paths:
|
|
751
|
-
{
|
|
752
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.startTime"
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.endTime"
|
|
756
|
-
}
|
|
757
|
-
]
|
|
707
|
+
paths: TRANSFORM_PATHS_20
|
|
758
708
|
},
|
|
759
709
|
{
|
|
760
710
|
transformFn: transformRESTFloatToSDKFloat,
|
|
761
|
-
paths:
|
|
762
|
-
{
|
|
763
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
767
|
-
}
|
|
768
|
-
]
|
|
711
|
+
paths: TRANSFORM_PATHS_21
|
|
769
712
|
}
|
|
770
713
|
])
|
|
771
714
|
};
|
|
@@ -778,10 +721,7 @@ function calculateFirstAvailableTimeSlotsForItem(payload) {
|
|
|
778
721
|
const serializedData = transformPaths(payload, [
|
|
779
722
|
{
|
|
780
723
|
transformFn: transformSDKFloatToRESTFloat,
|
|
781
|
-
paths:
|
|
782
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
783
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
784
|
-
]
|
|
724
|
+
paths: TRANSFORM_PATHS_7
|
|
785
725
|
}
|
|
786
726
|
]);
|
|
787
727
|
const metadata = {
|
|
@@ -801,21 +741,11 @@ function calculateFirstAvailableTimeSlotsForItem(payload) {
|
|
|
801
741
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
802
742
|
{
|
|
803
743
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
804
|
-
paths:
|
|
805
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
806
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
807
|
-
]
|
|
744
|
+
paths: TRANSFORM_PATHS_12
|
|
808
745
|
},
|
|
809
746
|
{
|
|
810
747
|
transformFn: transformRESTFloatToSDKFloat,
|
|
811
|
-
paths:
|
|
812
|
-
{
|
|
813
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
817
|
-
}
|
|
818
|
-
]
|
|
748
|
+
paths: TRANSFORM_PATHS_13
|
|
819
749
|
}
|
|
820
750
|
])
|
|
821
751
|
};
|
|
@@ -828,10 +758,7 @@ function listAvailableTimeSlotsForDate(payload) {
|
|
|
828
758
|
const serializedData = transformPaths(payload, [
|
|
829
759
|
{
|
|
830
760
|
transformFn: transformSDKFloatToRESTFloat,
|
|
831
|
-
paths:
|
|
832
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
833
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
834
|
-
]
|
|
761
|
+
paths: TRANSFORM_PATHS_7
|
|
835
762
|
}
|
|
836
763
|
]);
|
|
837
764
|
const metadata = {
|
|
@@ -851,19 +778,11 @@ function listAvailableTimeSlotsForDate(payload) {
|
|
|
851
778
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
852
779
|
{
|
|
853
780
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
854
|
-
paths:
|
|
855
|
-
{ path: "timeSlots.startTime" },
|
|
856
|
-
{ path: "timeSlots.endTime" }
|
|
857
|
-
]
|
|
781
|
+
paths: TRANSFORM_PATHS_10
|
|
858
782
|
},
|
|
859
783
|
{
|
|
860
784
|
transformFn: transformRESTFloatToSDKFloat,
|
|
861
|
-
paths:
|
|
862
|
-
{ path: "timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
863
|
-
{
|
|
864
|
-
path: "timeSlots.fulfillmentAddress.address.geocode.longitude"
|
|
865
|
-
}
|
|
866
|
-
]
|
|
785
|
+
paths: TRANSFORM_PATHS_11
|
|
867
786
|
}
|
|
868
787
|
])
|
|
869
788
|
};
|
|
@@ -876,10 +795,7 @@ function calculateAvailableTimeSlotsForDate(payload) {
|
|
|
876
795
|
const serializedData = transformPaths(payload, [
|
|
877
796
|
{
|
|
878
797
|
transformFn: transformSDKFloatToRESTFloat,
|
|
879
|
-
paths:
|
|
880
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
881
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
882
|
-
]
|
|
798
|
+
paths: TRANSFORM_PATHS_7
|
|
883
799
|
}
|
|
884
800
|
]);
|
|
885
801
|
const metadata = {
|
|
@@ -899,21 +815,11 @@ function calculateAvailableTimeSlotsForDate(payload) {
|
|
|
899
815
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
900
816
|
{
|
|
901
817
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
902
|
-
paths:
|
|
903
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
904
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
905
|
-
]
|
|
818
|
+
paths: TRANSFORM_PATHS_12
|
|
906
819
|
},
|
|
907
820
|
{
|
|
908
821
|
transformFn: transformRESTFloatToSDKFloat,
|
|
909
|
-
paths:
|
|
910
|
-
{
|
|
911
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
912
|
-
},
|
|
913
|
-
{
|
|
914
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
915
|
-
}
|
|
916
|
-
]
|
|
822
|
+
paths: TRANSFORM_PATHS_13
|
|
917
823
|
}
|
|
918
824
|
])
|
|
919
825
|
};
|
|
@@ -926,10 +832,7 @@ function listAvailableDatesInRange(payload) {
|
|
|
926
832
|
const serializedData = transformPaths(payload, [
|
|
927
833
|
{
|
|
928
834
|
transformFn: transformSDKFloatToRESTFloat,
|
|
929
|
-
paths:
|
|
930
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
931
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
932
|
-
]
|
|
835
|
+
paths: TRANSFORM_PATHS_7
|
|
933
836
|
}
|
|
934
837
|
]);
|
|
935
838
|
const metadata = {
|
|
@@ -956,10 +859,7 @@ function calculateAvailableDatesInRange(payload) {
|
|
|
956
859
|
const serializedData = transformPaths(payload, [
|
|
957
860
|
{
|
|
958
861
|
transformFn: transformSDKFloatToRESTFloat,
|
|
959
|
-
paths:
|
|
960
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
961
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
962
|
-
]
|
|
862
|
+
paths: TRANSFORM_PATHS_7
|
|
963
863
|
}
|
|
964
864
|
]);
|
|
965
865
|
const metadata = {
|
|
@@ -1050,6 +950,39 @@ import { transformSDKAddressToRESTAddress } from "@wix/sdk-runtime/transformatio
|
|
|
1050
950
|
import { transformRESTAddressToSDKAddress } from "@wix/sdk-runtime/transformations/address";
|
|
1051
951
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
1052
952
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
953
|
+
var TRANSFORM_PATHS_02 = [
|
|
954
|
+
{ path: "operation.businessLocationDetails.address" }
|
|
955
|
+
];
|
|
956
|
+
var TRANSFORM_PATHS_110 = [
|
|
957
|
+
{ path: "operations.businessLocationDetails.address" }
|
|
958
|
+
];
|
|
959
|
+
var TRANSFORM_PATHS_22 = [{ path: "deliveryAddress" }];
|
|
960
|
+
var TRANSFORM_PATHS_32 = [
|
|
961
|
+
{ path: "fulfillmentOptions.pickupOptions.address" },
|
|
962
|
+
{ path: "fulfillmentOptions.dineInOptions.address" }
|
|
963
|
+
];
|
|
964
|
+
var TRANSFORM_PATHS_42 = [{ path: "timeSlots.fulfillmentAddress.address" }];
|
|
965
|
+
var TRANSFORM_PATHS_52 = [
|
|
966
|
+
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
967
|
+
];
|
|
968
|
+
var TRANSFORM_PATHS_62 = [
|
|
969
|
+
{ path: "timeSlots.timeSlots.fulfillmentAddress.address" }
|
|
970
|
+
];
|
|
971
|
+
var TRANSFORM_PATHS_72 = [
|
|
972
|
+
{
|
|
973
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
974
|
+
}
|
|
975
|
+
];
|
|
976
|
+
var TRANSFORM_PATHS_82 = [
|
|
977
|
+
{
|
|
978
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address"
|
|
979
|
+
}
|
|
980
|
+
];
|
|
981
|
+
var TRANSFORM_PATHS_92 = [
|
|
982
|
+
{
|
|
983
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
984
|
+
}
|
|
985
|
+
];
|
|
1053
986
|
var SchedulingType = /* @__PURE__ */ ((SchedulingType2) => {
|
|
1054
987
|
SchedulingType2["ASAP"] = "ASAP";
|
|
1055
988
|
SchedulingType2["PREORDER"] = "PREORDER";
|
|
@@ -1319,7 +1252,7 @@ async function getOperation2(operationId) {
|
|
|
1319
1252
|
transformPaths2(result.data, [
|
|
1320
1253
|
{
|
|
1321
1254
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1322
|
-
paths:
|
|
1255
|
+
paths: TRANSFORM_PATHS_02
|
|
1323
1256
|
}
|
|
1324
1257
|
])
|
|
1325
1258
|
)?.operation;
|
|
@@ -1346,7 +1279,7 @@ async function updateOperation2(_id, operation) {
|
|
|
1346
1279
|
[
|
|
1347
1280
|
{
|
|
1348
1281
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1349
|
-
paths:
|
|
1282
|
+
paths: TRANSFORM_PATHS_02
|
|
1350
1283
|
}
|
|
1351
1284
|
]
|
|
1352
1285
|
);
|
|
@@ -1359,7 +1292,7 @@ async function updateOperation2(_id, operation) {
|
|
|
1359
1292
|
transformPaths2(result.data, [
|
|
1360
1293
|
{
|
|
1361
1294
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1362
|
-
paths:
|
|
1295
|
+
paths: TRANSFORM_PATHS_02
|
|
1363
1296
|
}
|
|
1364
1297
|
])
|
|
1365
1298
|
)?.operation;
|
|
@@ -1428,7 +1361,7 @@ function queryOperation2() {
|
|
|
1428
1361
|
transformPaths2(data, [
|
|
1429
1362
|
{
|
|
1430
1363
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1431
|
-
paths:
|
|
1364
|
+
paths: TRANSFORM_PATHS_110
|
|
1432
1365
|
}
|
|
1433
1366
|
])
|
|
1434
1367
|
);
|
|
@@ -1461,7 +1394,7 @@ async function typedQueryOperation(query) {
|
|
|
1461
1394
|
transformPaths2(result.data, [
|
|
1462
1395
|
{
|
|
1463
1396
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1464
|
-
paths:
|
|
1397
|
+
paths: TRANSFORM_PATHS_110
|
|
1465
1398
|
}
|
|
1466
1399
|
])
|
|
1467
1400
|
);
|
|
@@ -1494,7 +1427,7 @@ async function listOperations2() {
|
|
|
1494
1427
|
transformPaths2(result.data, [
|
|
1495
1428
|
{
|
|
1496
1429
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1497
|
-
paths:
|
|
1430
|
+
paths: TRANSFORM_PATHS_110
|
|
1498
1431
|
}
|
|
1499
1432
|
])
|
|
1500
1433
|
);
|
|
@@ -1522,7 +1455,7 @@ async function listAvailableFulfillmentOptions2(operationId, options) {
|
|
|
1522
1455
|
[
|
|
1523
1456
|
{
|
|
1524
1457
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1525
|
-
paths:
|
|
1458
|
+
paths: TRANSFORM_PATHS_22
|
|
1526
1459
|
}
|
|
1527
1460
|
]
|
|
1528
1461
|
);
|
|
@@ -1537,10 +1470,7 @@ async function listAvailableFulfillmentOptions2(operationId, options) {
|
|
|
1537
1470
|
transformPaths2(result.data, [
|
|
1538
1471
|
{
|
|
1539
1472
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1540
|
-
paths:
|
|
1541
|
-
{ path: "fulfillmentOptions.pickupOptions.address" },
|
|
1542
|
-
{ path: "fulfillmentOptions.dineInOptions.address" }
|
|
1543
|
-
]
|
|
1473
|
+
paths: TRANSFORM_PATHS_32
|
|
1544
1474
|
}
|
|
1545
1475
|
])
|
|
1546
1476
|
);
|
|
@@ -1571,7 +1501,7 @@ async function listFirstAvailableTimeSlotForFulfillmentTypes2(operationId, optio
|
|
|
1571
1501
|
[
|
|
1572
1502
|
{
|
|
1573
1503
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1574
|
-
paths:
|
|
1504
|
+
paths: TRANSFORM_PATHS_22
|
|
1575
1505
|
}
|
|
1576
1506
|
]
|
|
1577
1507
|
);
|
|
@@ -1586,7 +1516,7 @@ async function listFirstAvailableTimeSlotForFulfillmentTypes2(operationId, optio
|
|
|
1586
1516
|
transformPaths2(result.data, [
|
|
1587
1517
|
{
|
|
1588
1518
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1589
|
-
paths:
|
|
1519
|
+
paths: TRANSFORM_PATHS_42
|
|
1590
1520
|
}
|
|
1591
1521
|
])
|
|
1592
1522
|
);
|
|
@@ -1617,7 +1547,7 @@ async function calculateFirstAvailableTimeSlotPerFulfillmentType2(operationId, o
|
|
|
1617
1547
|
[
|
|
1618
1548
|
{
|
|
1619
1549
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1620
|
-
paths:
|
|
1550
|
+
paths: TRANSFORM_PATHS_22
|
|
1621
1551
|
}
|
|
1622
1552
|
]
|
|
1623
1553
|
);
|
|
@@ -1632,9 +1562,7 @@ async function calculateFirstAvailableTimeSlotPerFulfillmentType2(operationId, o
|
|
|
1632
1562
|
transformPaths2(result.data, [
|
|
1633
1563
|
{
|
|
1634
1564
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1635
|
-
paths:
|
|
1636
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
1637
|
-
]
|
|
1565
|
+
paths: TRANSFORM_PATHS_52
|
|
1638
1566
|
}
|
|
1639
1567
|
])
|
|
1640
1568
|
);
|
|
@@ -1665,7 +1593,7 @@ async function listFirstAvailableTimeSlotsForOperations2(operationIds, options)
|
|
|
1665
1593
|
[
|
|
1666
1594
|
{
|
|
1667
1595
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1668
|
-
paths:
|
|
1596
|
+
paths: TRANSFORM_PATHS_22
|
|
1669
1597
|
}
|
|
1670
1598
|
]
|
|
1671
1599
|
);
|
|
@@ -1680,7 +1608,7 @@ async function listFirstAvailableTimeSlotsForOperations2(operationIds, options)
|
|
|
1680
1608
|
transformPaths2(result.data, [
|
|
1681
1609
|
{
|
|
1682
1610
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1683
|
-
paths:
|
|
1611
|
+
paths: TRANSFORM_PATHS_62
|
|
1684
1612
|
}
|
|
1685
1613
|
])
|
|
1686
1614
|
);
|
|
@@ -1711,7 +1639,7 @@ async function calculateFirstAvailableTimeSlotsPerOperation2(operationIds, optio
|
|
|
1711
1639
|
[
|
|
1712
1640
|
{
|
|
1713
1641
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1714
|
-
paths:
|
|
1642
|
+
paths: TRANSFORM_PATHS_22
|
|
1715
1643
|
}
|
|
1716
1644
|
]
|
|
1717
1645
|
);
|
|
@@ -1726,11 +1654,7 @@ async function calculateFirstAvailableTimeSlotsPerOperation2(operationIds, optio
|
|
|
1726
1654
|
transformPaths2(result.data, [
|
|
1727
1655
|
{
|
|
1728
1656
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1729
|
-
paths:
|
|
1730
|
-
{
|
|
1731
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
1732
|
-
}
|
|
1733
|
-
]
|
|
1657
|
+
paths: TRANSFORM_PATHS_72
|
|
1734
1658
|
}
|
|
1735
1659
|
])
|
|
1736
1660
|
);
|
|
@@ -1762,7 +1686,7 @@ async function listFirstAvailableTimeSlotsForMenus2(operationId, options) {
|
|
|
1762
1686
|
[
|
|
1763
1687
|
{
|
|
1764
1688
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1765
|
-
paths:
|
|
1689
|
+
paths: TRANSFORM_PATHS_22
|
|
1766
1690
|
}
|
|
1767
1691
|
]
|
|
1768
1692
|
);
|
|
@@ -1777,11 +1701,7 @@ async function listFirstAvailableTimeSlotsForMenus2(operationId, options) {
|
|
|
1777
1701
|
transformPaths2(result.data, [
|
|
1778
1702
|
{
|
|
1779
1703
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1780
|
-
paths:
|
|
1781
|
-
{
|
|
1782
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address"
|
|
1783
|
-
}
|
|
1784
|
-
]
|
|
1704
|
+
paths: TRANSFORM_PATHS_82
|
|
1785
1705
|
}
|
|
1786
1706
|
])
|
|
1787
1707
|
);
|
|
@@ -1815,7 +1735,7 @@ async function calculateFirstAvailableTimeSlotsPerMenu2(operationId, options) {
|
|
|
1815
1735
|
[
|
|
1816
1736
|
{
|
|
1817
1737
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1818
|
-
paths:
|
|
1738
|
+
paths: TRANSFORM_PATHS_22
|
|
1819
1739
|
}
|
|
1820
1740
|
]
|
|
1821
1741
|
);
|
|
@@ -1830,11 +1750,7 @@ async function calculateFirstAvailableTimeSlotsPerMenu2(operationId, options) {
|
|
|
1830
1750
|
transformPaths2(result.data, [
|
|
1831
1751
|
{
|
|
1832
1752
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1833
|
-
paths:
|
|
1834
|
-
{
|
|
1835
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
1836
|
-
}
|
|
1837
|
-
]
|
|
1753
|
+
paths: TRANSFORM_PATHS_92
|
|
1838
1754
|
}
|
|
1839
1755
|
])
|
|
1840
1756
|
);
|
|
@@ -1870,7 +1786,7 @@ async function calculateFirstAvailableTimeSlotsForItem2(operationId, menuId, opt
|
|
|
1870
1786
|
[
|
|
1871
1787
|
{
|
|
1872
1788
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1873
|
-
paths:
|
|
1789
|
+
paths: TRANSFORM_PATHS_22
|
|
1874
1790
|
}
|
|
1875
1791
|
]
|
|
1876
1792
|
);
|
|
@@ -1885,9 +1801,7 @@ async function calculateFirstAvailableTimeSlotsForItem2(operationId, menuId, opt
|
|
|
1885
1801
|
transformPaths2(result.data, [
|
|
1886
1802
|
{
|
|
1887
1803
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1888
|
-
paths:
|
|
1889
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
1890
|
-
]
|
|
1804
|
+
paths: TRANSFORM_PATHS_52
|
|
1891
1805
|
}
|
|
1892
1806
|
])
|
|
1893
1807
|
);
|
|
@@ -1922,7 +1836,7 @@ async function listAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
1922
1836
|
[
|
|
1923
1837
|
{
|
|
1924
1838
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1925
|
-
paths:
|
|
1839
|
+
paths: TRANSFORM_PATHS_22
|
|
1926
1840
|
}
|
|
1927
1841
|
]
|
|
1928
1842
|
);
|
|
@@ -1937,7 +1851,7 @@ async function listAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
1937
1851
|
transformPaths2(result.data, [
|
|
1938
1852
|
{
|
|
1939
1853
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1940
|
-
paths:
|
|
1854
|
+
paths: TRANSFORM_PATHS_42
|
|
1941
1855
|
}
|
|
1942
1856
|
])
|
|
1943
1857
|
);
|
|
@@ -1970,7 +1884,7 @@ async function calculateAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
1970
1884
|
[
|
|
1971
1885
|
{
|
|
1972
1886
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1973
|
-
paths:
|
|
1887
|
+
paths: TRANSFORM_PATHS_22
|
|
1974
1888
|
}
|
|
1975
1889
|
]
|
|
1976
1890
|
);
|
|
@@ -1985,9 +1899,7 @@ async function calculateAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
1985
1899
|
transformPaths2(result.data, [
|
|
1986
1900
|
{
|
|
1987
1901
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1988
|
-
paths:
|
|
1989
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
1990
|
-
]
|
|
1902
|
+
paths: TRANSFORM_PATHS_52
|
|
1991
1903
|
}
|
|
1992
1904
|
])
|
|
1993
1905
|
);
|
|
@@ -2021,7 +1933,7 @@ async function listAvailableDatesInRange2(operationId, options) {
|
|
|
2021
1933
|
[
|
|
2022
1934
|
{
|
|
2023
1935
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2024
|
-
paths:
|
|
1936
|
+
paths: TRANSFORM_PATHS_22
|
|
2025
1937
|
}
|
|
2026
1938
|
]
|
|
2027
1939
|
);
|
|
@@ -2064,7 +1976,7 @@ async function calculateAvailableDatesInRange2(operationId, options) {
|
|
|
2064
1976
|
[
|
|
2065
1977
|
{
|
|
2066
1978
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2067
|
-
paths:
|
|
1979
|
+
paths: TRANSFORM_PATHS_22
|
|
2068
1980
|
}
|
|
2069
1981
|
]
|
|
2070
1982
|
);
|
|
@@ -2190,6 +2102,26 @@ async function bulkUpdateOperationTagsByFilter2(filter, options) {
|
|
|
2190
2102
|
}
|
|
2191
2103
|
|
|
2192
2104
|
// src/restaurants-operations-v1-operation-operations.public.ts
|
|
2105
|
+
var TRANSFORM_PATHS_03 = [
|
|
2106
|
+
{ path: "entity.createdDate" },
|
|
2107
|
+
{ path: "entity.updatedDate" },
|
|
2108
|
+
{ path: "entity.pausedUntilOptions.time" },
|
|
2109
|
+
{ path: "metadata.eventTime" }
|
|
2110
|
+
];
|
|
2111
|
+
var TRANSFORM_PATHS_111 = [{ path: "entity.businessLocationDetails.address" }];
|
|
2112
|
+
var TRANSFORM_PATHS_23 = [
|
|
2113
|
+
{ path: "entity.createdDate" },
|
|
2114
|
+
{ path: "entity.updatedDate" },
|
|
2115
|
+
{ path: "entity.pausedUntilOptions.time" },
|
|
2116
|
+
{ path: "metadata.eventTime" },
|
|
2117
|
+
{ path: "modifiedFields.createdDate" },
|
|
2118
|
+
{ path: "modifiedFields.updatedDate" },
|
|
2119
|
+
{ path: "modifiedFields.pausedUntilOptions.time" }
|
|
2120
|
+
];
|
|
2121
|
+
var TRANSFORM_PATHS_33 = [
|
|
2122
|
+
{ path: "entity.businessLocationDetails.address" },
|
|
2123
|
+
{ path: "modifiedFields.businessLocationDetails.address" }
|
|
2124
|
+
];
|
|
2193
2125
|
function listBlockedPeriods3(httpClient) {
|
|
2194
2126
|
return (operationId, options) => listBlockedPeriods2(
|
|
2195
2127
|
operationId,
|
|
@@ -2366,16 +2298,11 @@ var onOperationDeleted = /* @__PURE__ */ EventDefinition(
|
|
|
2366
2298
|
transformPaths3(event, [
|
|
2367
2299
|
{
|
|
2368
2300
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
2369
|
-
paths:
|
|
2370
|
-
{ path: "entity.createdDate" },
|
|
2371
|
-
{ path: "entity.updatedDate" },
|
|
2372
|
-
{ path: "entity.pausedUntilOptions.time" },
|
|
2373
|
-
{ path: "metadata.eventTime" }
|
|
2374
|
-
]
|
|
2301
|
+
paths: TRANSFORM_PATHS_03
|
|
2375
2302
|
},
|
|
2376
2303
|
{
|
|
2377
2304
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
2378
|
-
paths:
|
|
2305
|
+
paths: TRANSFORM_PATHS_111
|
|
2379
2306
|
}
|
|
2380
2307
|
])
|
|
2381
2308
|
)
|
|
@@ -2387,22 +2314,11 @@ var onOperationUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
2387
2314
|
transformPaths3(event, [
|
|
2388
2315
|
{
|
|
2389
2316
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
2390
|
-
paths:
|
|
2391
|
-
{ path: "entity.createdDate" },
|
|
2392
|
-
{ path: "entity.updatedDate" },
|
|
2393
|
-
{ path: "entity.pausedUntilOptions.time" },
|
|
2394
|
-
{ path: "metadata.eventTime" },
|
|
2395
|
-
{ path: "modifiedFields.createdDate" },
|
|
2396
|
-
{ path: "modifiedFields.updatedDate" },
|
|
2397
|
-
{ path: "modifiedFields.pausedUntilOptions.time" }
|
|
2398
|
-
]
|
|
2317
|
+
paths: TRANSFORM_PATHS_23
|
|
2399
2318
|
},
|
|
2400
2319
|
{
|
|
2401
2320
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
2402
|
-
paths:
|
|
2403
|
-
{ path: "entity.businessLocationDetails.address" },
|
|
2404
|
-
{ path: "modifiedFields.businessLocationDetails.address" }
|
|
2405
|
-
]
|
|
2321
|
+
paths: TRANSFORM_PATHS_33
|
|
2406
2322
|
}
|
|
2407
2323
|
])
|
|
2408
2324
|
)
|