@wix/auto_sdk_restaurants_operations 1.0.101 → 1.0.102
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 +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -98,6 +98,114 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
98
98
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
99
99
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
100
100
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
101
|
+
var TRANSFORM_PATHS_0 = [{ path: "from" }, { path: "until" }];
|
|
102
|
+
var TRANSFORM_PATHS_1 = [
|
|
103
|
+
{ path: "blockPeriods.from" },
|
|
104
|
+
{ path: "blockPeriods.until" }
|
|
105
|
+
];
|
|
106
|
+
var TRANSFORM_PATHS_2 = [
|
|
107
|
+
{ path: "operation.createdDate" },
|
|
108
|
+
{ path: "operation.updatedDate" },
|
|
109
|
+
{ path: "operation.pausedUntilOptions.time" }
|
|
110
|
+
];
|
|
111
|
+
var TRANSFORM_PATHS_3 = [
|
|
112
|
+
{ path: "operation.businessLocationDetails.address.geocode.latitude" },
|
|
113
|
+
{ path: "operation.businessLocationDetails.address.geocode.longitude" }
|
|
114
|
+
];
|
|
115
|
+
var TRANSFORM_PATHS_4 = [{ path: "mask" }];
|
|
116
|
+
var TRANSFORM_PATHS_5 = [
|
|
117
|
+
{ path: "operations.createdDate" },
|
|
118
|
+
{ path: "operations.updatedDate" },
|
|
119
|
+
{ path: "operations.pausedUntilOptions.time" }
|
|
120
|
+
];
|
|
121
|
+
var TRANSFORM_PATHS_6 = [
|
|
122
|
+
{ path: "operations.businessLocationDetails.address.geocode.latitude" },
|
|
123
|
+
{ path: "operations.businessLocationDetails.address.geocode.longitude" }
|
|
124
|
+
];
|
|
125
|
+
var TRANSFORM_PATHS_7 = [
|
|
126
|
+
{ path: "deliveryAddress.geocode.latitude" },
|
|
127
|
+
{ path: "deliveryAddress.geocode.longitude" }
|
|
128
|
+
];
|
|
129
|
+
var TRANSFORM_PATHS_8 = [
|
|
130
|
+
{ path: "fulfillmentOptions.pickupOptions.address.geocode.latitude" },
|
|
131
|
+
{ path: "fulfillmentOptions.pickupOptions.address.geocode.longitude" },
|
|
132
|
+
{ path: "fulfillmentOptions.dineInOptions.address.geocode.latitude" },
|
|
133
|
+
{ path: "fulfillmentOptions.dineInOptions.address.geocode.longitude" }
|
|
134
|
+
];
|
|
135
|
+
var TRANSFORM_PATHS_9 = [
|
|
136
|
+
{ path: "fulfillmentOptions.availability.startTime" },
|
|
137
|
+
{ path: "fulfillmentOptions.availability.endTime" },
|
|
138
|
+
{ path: "fulfillmentOptions.availability.exceptions.startTime" },
|
|
139
|
+
{ path: "fulfillmentOptions.availability.exceptions.endTime" }
|
|
140
|
+
];
|
|
141
|
+
var TRANSFORM_PATHS_10 = [
|
|
142
|
+
{ path: "timeSlots.startTime" },
|
|
143
|
+
{ path: "timeSlots.endTime" }
|
|
144
|
+
];
|
|
145
|
+
var TRANSFORM_PATHS_11 = [
|
|
146
|
+
{ path: "timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
147
|
+
{ path: "timeSlots.fulfillmentAddress.address.geocode.longitude" }
|
|
148
|
+
];
|
|
149
|
+
var TRANSFORM_PATHS_12 = [
|
|
150
|
+
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
151
|
+
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
152
|
+
];
|
|
153
|
+
var TRANSFORM_PATHS_13 = [
|
|
154
|
+
{
|
|
155
|
+
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
159
|
+
}
|
|
160
|
+
];
|
|
161
|
+
var TRANSFORM_PATHS_14 = [
|
|
162
|
+
{ path: "timeSlots.timeSlots.startTime" },
|
|
163
|
+
{ path: "timeSlots.timeSlots.endTime" }
|
|
164
|
+
];
|
|
165
|
+
var TRANSFORM_PATHS_15 = [
|
|
166
|
+
{ path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
167
|
+
{ path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.longitude" }
|
|
168
|
+
];
|
|
169
|
+
var TRANSFORM_PATHS_16 = [
|
|
170
|
+
{
|
|
171
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.startTime"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.endTime"
|
|
175
|
+
}
|
|
176
|
+
];
|
|
177
|
+
var TRANSFORM_PATHS_17 = [
|
|
178
|
+
{
|
|
179
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
183
|
+
}
|
|
184
|
+
];
|
|
185
|
+
var TRANSFORM_PATHS_18 = [
|
|
186
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.startTime" },
|
|
187
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.endTime" }
|
|
188
|
+
];
|
|
189
|
+
var TRANSFORM_PATHS_19 = [
|
|
190
|
+
{
|
|
191
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.latitude"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.longitude"
|
|
195
|
+
}
|
|
196
|
+
];
|
|
197
|
+
var TRANSFORM_PATHS_20 = [
|
|
198
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
199
|
+
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
200
|
+
];
|
|
201
|
+
var TRANSFORM_PATHS_21 = [
|
|
202
|
+
{
|
|
203
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
207
|
+
}
|
|
208
|
+
];
|
|
101
209
|
function resolveWixRestaurantsOperationsV1OperationsServiceUrl(opts) {
|
|
102
210
|
const domainToMappings = {
|
|
103
211
|
"manage._base_domain_": [
|
|
@@ -238,7 +346,7 @@ function listBlockedPeriods(payload) {
|
|
|
238
346
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
239
347
|
{
|
|
240
348
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
241
|
-
paths:
|
|
349
|
+
paths: TRANSFORM_PATHS_0
|
|
242
350
|
}
|
|
243
351
|
]);
|
|
244
352
|
const metadata = {
|
|
@@ -258,10 +366,7 @@ function listBlockedPeriods(payload) {
|
|
|
258
366
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
259
367
|
{
|
|
260
368
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
261
|
-
paths:
|
|
262
|
-
{ path: "blockPeriods.from" },
|
|
263
|
-
{ path: "blockPeriods.until" }
|
|
264
|
-
]
|
|
369
|
+
paths: TRANSFORM_PATHS_1
|
|
265
370
|
}
|
|
266
371
|
])
|
|
267
372
|
};
|
|
@@ -288,22 +393,11 @@ function getOperation(payload) {
|
|
|
288
393
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
289
394
|
{
|
|
290
395
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
291
|
-
paths:
|
|
292
|
-
{ path: "operation.createdDate" },
|
|
293
|
-
{ path: "operation.updatedDate" },
|
|
294
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
295
|
-
]
|
|
396
|
+
paths: TRANSFORM_PATHS_2
|
|
296
397
|
},
|
|
297
398
|
{
|
|
298
399
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
299
|
-
paths:
|
|
300
|
-
{
|
|
301
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
305
|
-
}
|
|
306
|
-
]
|
|
400
|
+
paths: TRANSFORM_PATHS_3
|
|
307
401
|
}
|
|
308
402
|
])
|
|
309
403
|
};
|
|
@@ -316,26 +410,15 @@ function updateOperation(payload) {
|
|
|
316
410
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
317
411
|
{
|
|
318
412
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
319
|
-
paths:
|
|
413
|
+
paths: TRANSFORM_PATHS_4
|
|
320
414
|
},
|
|
321
415
|
{
|
|
322
416
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
323
|
-
paths:
|
|
324
|
-
{ path: "operation.createdDate" },
|
|
325
|
-
{ path: "operation.updatedDate" },
|
|
326
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
327
|
-
]
|
|
417
|
+
paths: TRANSFORM_PATHS_2
|
|
328
418
|
},
|
|
329
419
|
{
|
|
330
420
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
331
|
-
paths:
|
|
332
|
-
{
|
|
333
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
337
|
-
}
|
|
338
|
-
]
|
|
421
|
+
paths: TRANSFORM_PATHS_3
|
|
339
422
|
}
|
|
340
423
|
]);
|
|
341
424
|
const metadata = {
|
|
@@ -355,22 +438,11 @@ function updateOperation(payload) {
|
|
|
355
438
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
356
439
|
{
|
|
357
440
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
358
|
-
paths:
|
|
359
|
-
{ path: "operation.createdDate" },
|
|
360
|
-
{ path: "operation.updatedDate" },
|
|
361
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
362
|
-
]
|
|
441
|
+
paths: TRANSFORM_PATHS_2
|
|
363
442
|
},
|
|
364
443
|
{
|
|
365
444
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
366
|
-
paths:
|
|
367
|
-
{
|
|
368
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
372
|
-
}
|
|
373
|
-
]
|
|
445
|
+
paths: TRANSFORM_PATHS_3
|
|
374
446
|
}
|
|
375
447
|
])
|
|
376
448
|
};
|
|
@@ -418,22 +490,11 @@ function queryOperation(payload) {
|
|
|
418
490
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
419
491
|
{
|
|
420
492
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
421
|
-
paths:
|
|
422
|
-
{ path: "operations.createdDate" },
|
|
423
|
-
{ path: "operations.updatedDate" },
|
|
424
|
-
{ path: "operations.pausedUntilOptions.time" }
|
|
425
|
-
]
|
|
493
|
+
paths: TRANSFORM_PATHS_5
|
|
426
494
|
},
|
|
427
495
|
{
|
|
428
496
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
429
|
-
paths:
|
|
430
|
-
{
|
|
431
|
-
path: "operations.businessLocationDetails.address.geocode.latitude"
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
path: "operations.businessLocationDetails.address.geocode.longitude"
|
|
435
|
-
}
|
|
436
|
-
]
|
|
497
|
+
paths: TRANSFORM_PATHS_6
|
|
437
498
|
}
|
|
438
499
|
])
|
|
439
500
|
};
|
|
@@ -460,22 +521,11 @@ function listOperations(payload) {
|
|
|
460
521
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
461
522
|
{
|
|
462
523
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
463
|
-
paths:
|
|
464
|
-
{ path: "operations.createdDate" },
|
|
465
|
-
{ path: "operations.updatedDate" },
|
|
466
|
-
{ path: "operations.pausedUntilOptions.time" }
|
|
467
|
-
]
|
|
524
|
+
paths: TRANSFORM_PATHS_5
|
|
468
525
|
},
|
|
469
526
|
{
|
|
470
527
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
471
|
-
paths:
|
|
472
|
-
{
|
|
473
|
-
path: "operations.businessLocationDetails.address.geocode.latitude"
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
path: "operations.businessLocationDetails.address.geocode.longitude"
|
|
477
|
-
}
|
|
478
|
-
]
|
|
528
|
+
paths: TRANSFORM_PATHS_6
|
|
479
529
|
}
|
|
480
530
|
])
|
|
481
531
|
};
|
|
@@ -488,10 +538,7 @@ function listAvailableFulfillmentOptions(payload) {
|
|
|
488
538
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
489
539
|
{
|
|
490
540
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
491
|
-
paths:
|
|
492
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
493
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
494
|
-
]
|
|
541
|
+
paths: TRANSFORM_PATHS_7
|
|
495
542
|
}
|
|
496
543
|
]);
|
|
497
544
|
const metadata = {
|
|
@@ -511,29 +558,11 @@ function listAvailableFulfillmentOptions(payload) {
|
|
|
511
558
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
512
559
|
{
|
|
513
560
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
514
|
-
paths:
|
|
515
|
-
{
|
|
516
|
-
path: "fulfillmentOptions.pickupOptions.address.geocode.latitude"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
path: "fulfillmentOptions.pickupOptions.address.geocode.longitude"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
path: "fulfillmentOptions.dineInOptions.address.geocode.latitude"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
path: "fulfillmentOptions.dineInOptions.address.geocode.longitude"
|
|
526
|
-
}
|
|
527
|
-
]
|
|
561
|
+
paths: TRANSFORM_PATHS_8
|
|
528
562
|
},
|
|
529
563
|
{
|
|
530
564
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
531
|
-
paths:
|
|
532
|
-
{ path: "fulfillmentOptions.availability.startTime" },
|
|
533
|
-
{ path: "fulfillmentOptions.availability.endTime" },
|
|
534
|
-
{ path: "fulfillmentOptions.availability.exceptions.startTime" },
|
|
535
|
-
{ path: "fulfillmentOptions.availability.exceptions.endTime" }
|
|
536
|
-
]
|
|
565
|
+
paths: TRANSFORM_PATHS_9
|
|
537
566
|
}
|
|
538
567
|
])
|
|
539
568
|
};
|
|
@@ -546,10 +575,7 @@ function listFirstAvailableTimeSlotForFulfillmentTypes(payload) {
|
|
|
546
575
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
547
576
|
{
|
|
548
577
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
549
|
-
paths:
|
|
550
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
551
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
552
|
-
]
|
|
578
|
+
paths: TRANSFORM_PATHS_7
|
|
553
579
|
}
|
|
554
580
|
]);
|
|
555
581
|
const metadata = {
|
|
@@ -569,19 +595,11 @@ function listFirstAvailableTimeSlotForFulfillmentTypes(payload) {
|
|
|
569
595
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
570
596
|
{
|
|
571
597
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
572
|
-
paths:
|
|
573
|
-
{ path: "timeSlots.startTime" },
|
|
574
|
-
{ path: "timeSlots.endTime" }
|
|
575
|
-
]
|
|
598
|
+
paths: TRANSFORM_PATHS_10
|
|
576
599
|
},
|
|
577
600
|
{
|
|
578
601
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
579
|
-
paths:
|
|
580
|
-
{ path: "timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
581
|
-
{
|
|
582
|
-
path: "timeSlots.fulfillmentAddress.address.geocode.longitude"
|
|
583
|
-
}
|
|
584
|
-
]
|
|
602
|
+
paths: TRANSFORM_PATHS_11
|
|
585
603
|
}
|
|
586
604
|
])
|
|
587
605
|
};
|
|
@@ -594,10 +612,7 @@ function calculateFirstAvailableTimeSlotPerFulfillmentType(payload) {
|
|
|
594
612
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
595
613
|
{
|
|
596
614
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
597
|
-
paths:
|
|
598
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
599
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
600
|
-
]
|
|
615
|
+
paths: TRANSFORM_PATHS_7
|
|
601
616
|
}
|
|
602
617
|
]);
|
|
603
618
|
const metadata = {
|
|
@@ -617,21 +632,11 @@ function calculateFirstAvailableTimeSlotPerFulfillmentType(payload) {
|
|
|
617
632
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
618
633
|
{
|
|
619
634
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
620
|
-
paths:
|
|
621
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
622
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
623
|
-
]
|
|
635
|
+
paths: TRANSFORM_PATHS_12
|
|
624
636
|
},
|
|
625
637
|
{
|
|
626
638
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
627
|
-
paths:
|
|
628
|
-
{
|
|
629
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
633
|
-
}
|
|
634
|
-
]
|
|
639
|
+
paths: TRANSFORM_PATHS_13
|
|
635
640
|
}
|
|
636
641
|
])
|
|
637
642
|
};
|
|
@@ -644,10 +649,7 @@ function listFirstAvailableTimeSlotsForOperations(payload) {
|
|
|
644
649
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
645
650
|
{
|
|
646
651
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
647
|
-
paths:
|
|
648
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
649
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
650
|
-
]
|
|
652
|
+
paths: TRANSFORM_PATHS_7
|
|
651
653
|
}
|
|
652
654
|
]);
|
|
653
655
|
const metadata = {
|
|
@@ -667,21 +669,11 @@ function listFirstAvailableTimeSlotsForOperations(payload) {
|
|
|
667
669
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
668
670
|
{
|
|
669
671
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
670
|
-
paths:
|
|
671
|
-
{ path: "timeSlots.timeSlots.startTime" },
|
|
672
|
-
{ path: "timeSlots.timeSlots.endTime" }
|
|
673
|
-
]
|
|
672
|
+
paths: TRANSFORM_PATHS_14
|
|
674
673
|
},
|
|
675
674
|
{
|
|
676
675
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
677
|
-
paths:
|
|
678
|
-
{
|
|
679
|
-
path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.latitude"
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
path: "timeSlots.timeSlots.fulfillmentAddress.address.geocode.longitude"
|
|
683
|
-
}
|
|
684
|
-
]
|
|
676
|
+
paths: TRANSFORM_PATHS_15
|
|
685
677
|
}
|
|
686
678
|
])
|
|
687
679
|
};
|
|
@@ -694,10 +686,7 @@ function calculateFirstAvailableTimeSlotsPerOperation(payload) {
|
|
|
694
686
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
695
687
|
{
|
|
696
688
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
697
|
-
paths:
|
|
698
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
699
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
700
|
-
]
|
|
689
|
+
paths: TRANSFORM_PATHS_7
|
|
701
690
|
}
|
|
702
691
|
]);
|
|
703
692
|
const metadata = {
|
|
@@ -717,25 +706,11 @@ function calculateFirstAvailableTimeSlotsPerOperation(payload) {
|
|
|
717
706
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
718
707
|
{
|
|
719
708
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
720
|
-
paths:
|
|
721
|
-
{
|
|
722
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.startTime"
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.timeSlot.endTime"
|
|
726
|
-
}
|
|
727
|
-
]
|
|
709
|
+
paths: TRANSFORM_PATHS_16
|
|
728
710
|
},
|
|
729
711
|
{
|
|
730
712
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
731
|
-
paths:
|
|
732
|
-
{
|
|
733
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
734
|
-
},
|
|
735
|
-
{
|
|
736
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
737
|
-
}
|
|
738
|
-
]
|
|
713
|
+
paths: TRANSFORM_PATHS_17
|
|
739
714
|
}
|
|
740
715
|
])
|
|
741
716
|
};
|
|
@@ -748,10 +723,7 @@ function listFirstAvailableTimeSlotsForMenus(payload) {
|
|
|
748
723
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
749
724
|
{
|
|
750
725
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
751
|
-
paths:
|
|
752
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
753
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
754
|
-
]
|
|
726
|
+
paths: TRANSFORM_PATHS_7
|
|
755
727
|
}
|
|
756
728
|
]);
|
|
757
729
|
const metadata = {
|
|
@@ -771,23 +743,11 @@ function listFirstAvailableTimeSlotsForMenus(payload) {
|
|
|
771
743
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
772
744
|
{
|
|
773
745
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
774
|
-
paths:
|
|
775
|
-
{
|
|
776
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.startTime"
|
|
777
|
-
},
|
|
778
|
-
{ path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.endTime" }
|
|
779
|
-
]
|
|
746
|
+
paths: TRANSFORM_PATHS_18
|
|
780
747
|
},
|
|
781
748
|
{
|
|
782
749
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
783
|
-
paths:
|
|
784
|
-
{
|
|
785
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.latitude"
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address.geocode.longitude"
|
|
789
|
-
}
|
|
790
|
-
]
|
|
750
|
+
paths: TRANSFORM_PATHS_19
|
|
791
751
|
}
|
|
792
752
|
])
|
|
793
753
|
};
|
|
@@ -800,10 +760,7 @@ function calculateFirstAvailableTimeSlotsPerMenu(payload) {
|
|
|
800
760
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
801
761
|
{
|
|
802
762
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
803
|
-
paths:
|
|
804
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
805
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
806
|
-
]
|
|
763
|
+
paths: TRANSFORM_PATHS_7
|
|
807
764
|
}
|
|
808
765
|
]);
|
|
809
766
|
const metadata = {
|
|
@@ -823,25 +780,11 @@ function calculateFirstAvailableTimeSlotsPerMenu(payload) {
|
|
|
823
780
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
824
781
|
{
|
|
825
782
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
826
|
-
paths:
|
|
827
|
-
{
|
|
828
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.startTime"
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.timeSlot.endTime"
|
|
832
|
-
}
|
|
833
|
-
]
|
|
783
|
+
paths: TRANSFORM_PATHS_20
|
|
834
784
|
},
|
|
835
785
|
{
|
|
836
786
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
837
|
-
paths:
|
|
838
|
-
{
|
|
839
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
843
|
-
}
|
|
844
|
-
]
|
|
787
|
+
paths: TRANSFORM_PATHS_21
|
|
845
788
|
}
|
|
846
789
|
])
|
|
847
790
|
};
|
|
@@ -854,10 +797,7 @@ function calculateFirstAvailableTimeSlotsForItem(payload) {
|
|
|
854
797
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
855
798
|
{
|
|
856
799
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
857
|
-
paths:
|
|
858
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
859
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
860
|
-
]
|
|
800
|
+
paths: TRANSFORM_PATHS_7
|
|
861
801
|
}
|
|
862
802
|
]);
|
|
863
803
|
const metadata = {
|
|
@@ -877,21 +817,11 @@ function calculateFirstAvailableTimeSlotsForItem(payload) {
|
|
|
877
817
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
878
818
|
{
|
|
879
819
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
880
|
-
paths:
|
|
881
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
882
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
883
|
-
]
|
|
820
|
+
paths: TRANSFORM_PATHS_12
|
|
884
821
|
},
|
|
885
822
|
{
|
|
886
823
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
887
|
-
paths:
|
|
888
|
-
{
|
|
889
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
893
|
-
}
|
|
894
|
-
]
|
|
824
|
+
paths: TRANSFORM_PATHS_13
|
|
895
825
|
}
|
|
896
826
|
])
|
|
897
827
|
};
|
|
@@ -904,10 +834,7 @@ function listAvailableTimeSlotsForDate(payload) {
|
|
|
904
834
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
905
835
|
{
|
|
906
836
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
907
|
-
paths:
|
|
908
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
909
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
910
|
-
]
|
|
837
|
+
paths: TRANSFORM_PATHS_7
|
|
911
838
|
}
|
|
912
839
|
]);
|
|
913
840
|
const metadata = {
|
|
@@ -927,19 +854,11 @@ function listAvailableTimeSlotsForDate(payload) {
|
|
|
927
854
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
928
855
|
{
|
|
929
856
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
930
|
-
paths:
|
|
931
|
-
{ path: "timeSlots.startTime" },
|
|
932
|
-
{ path: "timeSlots.endTime" }
|
|
933
|
-
]
|
|
857
|
+
paths: TRANSFORM_PATHS_10
|
|
934
858
|
},
|
|
935
859
|
{
|
|
936
860
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
937
|
-
paths:
|
|
938
|
-
{ path: "timeSlots.fulfillmentAddress.address.geocode.latitude" },
|
|
939
|
-
{
|
|
940
|
-
path: "timeSlots.fulfillmentAddress.address.geocode.longitude"
|
|
941
|
-
}
|
|
942
|
-
]
|
|
861
|
+
paths: TRANSFORM_PATHS_11
|
|
943
862
|
}
|
|
944
863
|
])
|
|
945
864
|
};
|
|
@@ -952,10 +871,7 @@ function calculateAvailableTimeSlotsForDate(payload) {
|
|
|
952
871
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
953
872
|
{
|
|
954
873
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
955
|
-
paths:
|
|
956
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
957
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
958
|
-
]
|
|
874
|
+
paths: TRANSFORM_PATHS_7
|
|
959
875
|
}
|
|
960
876
|
]);
|
|
961
877
|
const metadata = {
|
|
@@ -975,21 +891,11 @@ function calculateAvailableTimeSlotsForDate(payload) {
|
|
|
975
891
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
976
892
|
{
|
|
977
893
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
978
|
-
paths:
|
|
979
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
|
|
980
|
-
{ path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
|
|
981
|
-
]
|
|
894
|
+
paths: TRANSFORM_PATHS_12
|
|
982
895
|
},
|
|
983
896
|
{
|
|
984
897
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
985
|
-
paths:
|
|
986
|
-
{
|
|
987
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
|
|
991
|
-
}
|
|
992
|
-
]
|
|
898
|
+
paths: TRANSFORM_PATHS_13
|
|
993
899
|
}
|
|
994
900
|
])
|
|
995
901
|
};
|
|
@@ -1002,10 +908,7 @@ function listAvailableDatesInRange(payload) {
|
|
|
1002
908
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1003
909
|
{
|
|
1004
910
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1005
|
-
paths:
|
|
1006
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
1007
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
1008
|
-
]
|
|
911
|
+
paths: TRANSFORM_PATHS_7
|
|
1009
912
|
}
|
|
1010
913
|
]);
|
|
1011
914
|
const metadata = {
|
|
@@ -1032,10 +935,7 @@ function calculateAvailableDatesInRange(payload) {
|
|
|
1032
935
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1033
936
|
{
|
|
1034
937
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1035
|
-
paths:
|
|
1036
|
-
{ path: "deliveryAddress.geocode.latitude" },
|
|
1037
|
-
{ path: "deliveryAddress.geocode.longitude" }
|
|
1038
|
-
]
|
|
938
|
+
paths: TRANSFORM_PATHS_7
|
|
1039
939
|
}
|
|
1040
940
|
]);
|
|
1041
941
|
const metadata = {
|
|
@@ -1126,6 +1026,39 @@ var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
|
1126
1026
|
var import_address2 = require("@wix/sdk-runtime/transformations/address");
|
|
1127
1027
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
1128
1028
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
1029
|
+
var TRANSFORM_PATHS_02 = [
|
|
1030
|
+
{ path: "operation.businessLocationDetails.address" }
|
|
1031
|
+
];
|
|
1032
|
+
var TRANSFORM_PATHS_110 = [
|
|
1033
|
+
{ path: "operations.businessLocationDetails.address" }
|
|
1034
|
+
];
|
|
1035
|
+
var TRANSFORM_PATHS_22 = [{ path: "deliveryAddress" }];
|
|
1036
|
+
var TRANSFORM_PATHS_32 = [
|
|
1037
|
+
{ path: "fulfillmentOptions.pickupOptions.address" },
|
|
1038
|
+
{ path: "fulfillmentOptions.dineInOptions.address" }
|
|
1039
|
+
];
|
|
1040
|
+
var TRANSFORM_PATHS_42 = [{ path: "timeSlots.fulfillmentAddress.address" }];
|
|
1041
|
+
var TRANSFORM_PATHS_52 = [
|
|
1042
|
+
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
1043
|
+
];
|
|
1044
|
+
var TRANSFORM_PATHS_62 = [
|
|
1045
|
+
{ path: "timeSlots.timeSlots.fulfillmentAddress.address" }
|
|
1046
|
+
];
|
|
1047
|
+
var TRANSFORM_PATHS_72 = [
|
|
1048
|
+
{
|
|
1049
|
+
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
1050
|
+
}
|
|
1051
|
+
];
|
|
1052
|
+
var TRANSFORM_PATHS_82 = [
|
|
1053
|
+
{
|
|
1054
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address"
|
|
1055
|
+
}
|
|
1056
|
+
];
|
|
1057
|
+
var TRANSFORM_PATHS_92 = [
|
|
1058
|
+
{
|
|
1059
|
+
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
1060
|
+
}
|
|
1061
|
+
];
|
|
1129
1062
|
var SchedulingType = /* @__PURE__ */ ((SchedulingType2) => {
|
|
1130
1063
|
SchedulingType2["ASAP"] = "ASAP";
|
|
1131
1064
|
SchedulingType2["PREORDER"] = "PREORDER";
|
|
@@ -1395,7 +1328,7 @@ async function getOperation2(operationId) {
|
|
|
1395
1328
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1396
1329
|
{
|
|
1397
1330
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1398
|
-
paths:
|
|
1331
|
+
paths: TRANSFORM_PATHS_02
|
|
1399
1332
|
}
|
|
1400
1333
|
])
|
|
1401
1334
|
)?.operation;
|
|
@@ -1422,7 +1355,7 @@ async function updateOperation2(_id, operation) {
|
|
|
1422
1355
|
[
|
|
1423
1356
|
{
|
|
1424
1357
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1425
|
-
paths:
|
|
1358
|
+
paths: TRANSFORM_PATHS_02
|
|
1426
1359
|
}
|
|
1427
1360
|
]
|
|
1428
1361
|
);
|
|
@@ -1435,7 +1368,7 @@ async function updateOperation2(_id, operation) {
|
|
|
1435
1368
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1436
1369
|
{
|
|
1437
1370
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1438
|
-
paths:
|
|
1371
|
+
paths: TRANSFORM_PATHS_02
|
|
1439
1372
|
}
|
|
1440
1373
|
])
|
|
1441
1374
|
)?.operation;
|
|
@@ -1504,7 +1437,7 @@ function queryOperation2() {
|
|
|
1504
1437
|
(0, import_transform_paths2.transformPaths)(data, [
|
|
1505
1438
|
{
|
|
1506
1439
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1507
|
-
paths:
|
|
1440
|
+
paths: TRANSFORM_PATHS_110
|
|
1508
1441
|
}
|
|
1509
1442
|
])
|
|
1510
1443
|
);
|
|
@@ -1537,7 +1470,7 @@ async function typedQueryOperation(query) {
|
|
|
1537
1470
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1538
1471
|
{
|
|
1539
1472
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1540
|
-
paths:
|
|
1473
|
+
paths: TRANSFORM_PATHS_110
|
|
1541
1474
|
}
|
|
1542
1475
|
])
|
|
1543
1476
|
);
|
|
@@ -1570,7 +1503,7 @@ async function listOperations2() {
|
|
|
1570
1503
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1571
1504
|
{
|
|
1572
1505
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1573
|
-
paths:
|
|
1506
|
+
paths: TRANSFORM_PATHS_110
|
|
1574
1507
|
}
|
|
1575
1508
|
])
|
|
1576
1509
|
);
|
|
@@ -1598,7 +1531,7 @@ async function listAvailableFulfillmentOptions2(operationId, options) {
|
|
|
1598
1531
|
[
|
|
1599
1532
|
{
|
|
1600
1533
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1601
|
-
paths:
|
|
1534
|
+
paths: TRANSFORM_PATHS_22
|
|
1602
1535
|
}
|
|
1603
1536
|
]
|
|
1604
1537
|
);
|
|
@@ -1613,10 +1546,7 @@ async function listAvailableFulfillmentOptions2(operationId, options) {
|
|
|
1613
1546
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1614
1547
|
{
|
|
1615
1548
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1616
|
-
paths:
|
|
1617
|
-
{ path: "fulfillmentOptions.pickupOptions.address" },
|
|
1618
|
-
{ path: "fulfillmentOptions.dineInOptions.address" }
|
|
1619
|
-
]
|
|
1549
|
+
paths: TRANSFORM_PATHS_32
|
|
1620
1550
|
}
|
|
1621
1551
|
])
|
|
1622
1552
|
);
|
|
@@ -1647,7 +1577,7 @@ async function listFirstAvailableTimeSlotForFulfillmentTypes2(operationId, optio
|
|
|
1647
1577
|
[
|
|
1648
1578
|
{
|
|
1649
1579
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1650
|
-
paths:
|
|
1580
|
+
paths: TRANSFORM_PATHS_22
|
|
1651
1581
|
}
|
|
1652
1582
|
]
|
|
1653
1583
|
);
|
|
@@ -1662,7 +1592,7 @@ async function listFirstAvailableTimeSlotForFulfillmentTypes2(operationId, optio
|
|
|
1662
1592
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1663
1593
|
{
|
|
1664
1594
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1665
|
-
paths:
|
|
1595
|
+
paths: TRANSFORM_PATHS_42
|
|
1666
1596
|
}
|
|
1667
1597
|
])
|
|
1668
1598
|
);
|
|
@@ -1693,7 +1623,7 @@ async function calculateFirstAvailableTimeSlotPerFulfillmentType2(operationId, o
|
|
|
1693
1623
|
[
|
|
1694
1624
|
{
|
|
1695
1625
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1696
|
-
paths:
|
|
1626
|
+
paths: TRANSFORM_PATHS_22
|
|
1697
1627
|
}
|
|
1698
1628
|
]
|
|
1699
1629
|
);
|
|
@@ -1708,9 +1638,7 @@ async function calculateFirstAvailableTimeSlotPerFulfillmentType2(operationId, o
|
|
|
1708
1638
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1709
1639
|
{
|
|
1710
1640
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1711
|
-
paths:
|
|
1712
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
1713
|
-
]
|
|
1641
|
+
paths: TRANSFORM_PATHS_52
|
|
1714
1642
|
}
|
|
1715
1643
|
])
|
|
1716
1644
|
);
|
|
@@ -1741,7 +1669,7 @@ async function listFirstAvailableTimeSlotsForOperations2(operationIds, options)
|
|
|
1741
1669
|
[
|
|
1742
1670
|
{
|
|
1743
1671
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1744
|
-
paths:
|
|
1672
|
+
paths: TRANSFORM_PATHS_22
|
|
1745
1673
|
}
|
|
1746
1674
|
]
|
|
1747
1675
|
);
|
|
@@ -1756,7 +1684,7 @@ async function listFirstAvailableTimeSlotsForOperations2(operationIds, options)
|
|
|
1756
1684
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1757
1685
|
{
|
|
1758
1686
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1759
|
-
paths:
|
|
1687
|
+
paths: TRANSFORM_PATHS_62
|
|
1760
1688
|
}
|
|
1761
1689
|
])
|
|
1762
1690
|
);
|
|
@@ -1787,7 +1715,7 @@ async function calculateFirstAvailableTimeSlotsPerOperation2(operationIds, optio
|
|
|
1787
1715
|
[
|
|
1788
1716
|
{
|
|
1789
1717
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1790
|
-
paths:
|
|
1718
|
+
paths: TRANSFORM_PATHS_22
|
|
1791
1719
|
}
|
|
1792
1720
|
]
|
|
1793
1721
|
);
|
|
@@ -1802,11 +1730,7 @@ async function calculateFirstAvailableTimeSlotsPerOperation2(operationIds, optio
|
|
|
1802
1730
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1803
1731
|
{
|
|
1804
1732
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1805
|
-
paths:
|
|
1806
|
-
{
|
|
1807
|
-
path: "timeSlotsPerOperation.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
1808
|
-
}
|
|
1809
|
-
]
|
|
1733
|
+
paths: TRANSFORM_PATHS_72
|
|
1810
1734
|
}
|
|
1811
1735
|
])
|
|
1812
1736
|
);
|
|
@@ -1838,7 +1762,7 @@ async function listFirstAvailableTimeSlotsForMenus2(operationId, options) {
|
|
|
1838
1762
|
[
|
|
1839
1763
|
{
|
|
1840
1764
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1841
|
-
paths:
|
|
1765
|
+
paths: TRANSFORM_PATHS_22
|
|
1842
1766
|
}
|
|
1843
1767
|
]
|
|
1844
1768
|
);
|
|
@@ -1853,11 +1777,7 @@ async function listFirstAvailableTimeSlotsForMenus2(operationId, options) {
|
|
|
1853
1777
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1854
1778
|
{
|
|
1855
1779
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1856
|
-
paths:
|
|
1857
|
-
{
|
|
1858
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentAddress.address"
|
|
1859
|
-
}
|
|
1860
|
-
]
|
|
1780
|
+
paths: TRANSFORM_PATHS_82
|
|
1861
1781
|
}
|
|
1862
1782
|
])
|
|
1863
1783
|
);
|
|
@@ -1891,7 +1811,7 @@ async function calculateFirstAvailableTimeSlotsPerMenu2(operationId, options) {
|
|
|
1891
1811
|
[
|
|
1892
1812
|
{
|
|
1893
1813
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1894
|
-
paths:
|
|
1814
|
+
paths: TRANSFORM_PATHS_22
|
|
1895
1815
|
}
|
|
1896
1816
|
]
|
|
1897
1817
|
);
|
|
@@ -1906,11 +1826,7 @@ async function calculateFirstAvailableTimeSlotsPerMenu2(operationId, options) {
|
|
|
1906
1826
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1907
1827
|
{
|
|
1908
1828
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1909
|
-
paths:
|
|
1910
|
-
{
|
|
1911
|
-
path: "timeSlotsPerMenu.timeslotsPerFulfillmentType.fulfillmentInfo.address"
|
|
1912
|
-
}
|
|
1913
|
-
]
|
|
1829
|
+
paths: TRANSFORM_PATHS_92
|
|
1914
1830
|
}
|
|
1915
1831
|
])
|
|
1916
1832
|
);
|
|
@@ -1946,7 +1862,7 @@ async function calculateFirstAvailableTimeSlotsForItem2(operationId, menuId, opt
|
|
|
1946
1862
|
[
|
|
1947
1863
|
{
|
|
1948
1864
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1949
|
-
paths:
|
|
1865
|
+
paths: TRANSFORM_PATHS_22
|
|
1950
1866
|
}
|
|
1951
1867
|
]
|
|
1952
1868
|
);
|
|
@@ -1961,9 +1877,7 @@ async function calculateFirstAvailableTimeSlotsForItem2(operationId, menuId, opt
|
|
|
1961
1877
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1962
1878
|
{
|
|
1963
1879
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1964
|
-
paths:
|
|
1965
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
1966
|
-
]
|
|
1880
|
+
paths: TRANSFORM_PATHS_52
|
|
1967
1881
|
}
|
|
1968
1882
|
])
|
|
1969
1883
|
);
|
|
@@ -1998,7 +1912,7 @@ async function listAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
1998
1912
|
[
|
|
1999
1913
|
{
|
|
2000
1914
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2001
|
-
paths:
|
|
1915
|
+
paths: TRANSFORM_PATHS_22
|
|
2002
1916
|
}
|
|
2003
1917
|
]
|
|
2004
1918
|
);
|
|
@@ -2013,7 +1927,7 @@ async function listAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
2013
1927
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2014
1928
|
{
|
|
2015
1929
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2016
|
-
paths:
|
|
1930
|
+
paths: TRANSFORM_PATHS_42
|
|
2017
1931
|
}
|
|
2018
1932
|
])
|
|
2019
1933
|
);
|
|
@@ -2046,7 +1960,7 @@ async function calculateAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
2046
1960
|
[
|
|
2047
1961
|
{
|
|
2048
1962
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2049
|
-
paths:
|
|
1963
|
+
paths: TRANSFORM_PATHS_22
|
|
2050
1964
|
}
|
|
2051
1965
|
]
|
|
2052
1966
|
);
|
|
@@ -2061,9 +1975,7 @@ async function calculateAvailableTimeSlotsForDate2(operationId, options) {
|
|
|
2061
1975
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2062
1976
|
{
|
|
2063
1977
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2064
|
-
paths:
|
|
2065
|
-
{ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
|
|
2066
|
-
]
|
|
1978
|
+
paths: TRANSFORM_PATHS_52
|
|
2067
1979
|
}
|
|
2068
1980
|
])
|
|
2069
1981
|
);
|
|
@@ -2097,7 +2009,7 @@ async function listAvailableDatesInRange2(operationId, options) {
|
|
|
2097
2009
|
[
|
|
2098
2010
|
{
|
|
2099
2011
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2100
|
-
paths:
|
|
2012
|
+
paths: TRANSFORM_PATHS_22
|
|
2101
2013
|
}
|
|
2102
2014
|
]
|
|
2103
2015
|
);
|
|
@@ -2140,7 +2052,7 @@ async function calculateAvailableDatesInRange2(operationId, options) {
|
|
|
2140
2052
|
[
|
|
2141
2053
|
{
|
|
2142
2054
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2143
|
-
paths:
|
|
2055
|
+
paths: TRANSFORM_PATHS_22
|
|
2144
2056
|
}
|
|
2145
2057
|
]
|
|
2146
2058
|
);
|
|
@@ -2266,6 +2178,26 @@ async function bulkUpdateOperationTagsByFilter2(filter, options) {
|
|
|
2266
2178
|
}
|
|
2267
2179
|
|
|
2268
2180
|
// src/restaurants-operations-v1-operation-operations.public.ts
|
|
2181
|
+
var TRANSFORM_PATHS_03 = [
|
|
2182
|
+
{ path: "entity.createdDate" },
|
|
2183
|
+
{ path: "entity.updatedDate" },
|
|
2184
|
+
{ path: "entity.pausedUntilOptions.time" },
|
|
2185
|
+
{ path: "metadata.eventTime" }
|
|
2186
|
+
];
|
|
2187
|
+
var TRANSFORM_PATHS_111 = [{ path: "entity.businessLocationDetails.address" }];
|
|
2188
|
+
var TRANSFORM_PATHS_23 = [
|
|
2189
|
+
{ path: "entity.createdDate" },
|
|
2190
|
+
{ path: "entity.updatedDate" },
|
|
2191
|
+
{ path: "entity.pausedUntilOptions.time" },
|
|
2192
|
+
{ path: "metadata.eventTime" },
|
|
2193
|
+
{ path: "modifiedFields.createdDate" },
|
|
2194
|
+
{ path: "modifiedFields.updatedDate" },
|
|
2195
|
+
{ path: "modifiedFields.pausedUntilOptions.time" }
|
|
2196
|
+
];
|
|
2197
|
+
var TRANSFORM_PATHS_33 = [
|
|
2198
|
+
{ path: "entity.businessLocationDetails.address" },
|
|
2199
|
+
{ path: "modifiedFields.businessLocationDetails.address" }
|
|
2200
|
+
];
|
|
2269
2201
|
function listBlockedPeriods3(httpClient) {
|
|
2270
2202
|
return (operationId, options) => listBlockedPeriods2(
|
|
2271
2203
|
operationId,
|
|
@@ -2442,16 +2374,11 @@ var onOperationDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2442
2374
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2443
2375
|
{
|
|
2444
2376
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2445
|
-
paths:
|
|
2446
|
-
{ path: "entity.createdDate" },
|
|
2447
|
-
{ path: "entity.updatedDate" },
|
|
2448
|
-
{ path: "entity.pausedUntilOptions.time" },
|
|
2449
|
-
{ path: "metadata.eventTime" }
|
|
2450
|
-
]
|
|
2377
|
+
paths: TRANSFORM_PATHS_03
|
|
2451
2378
|
},
|
|
2452
2379
|
{
|
|
2453
2380
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2454
|
-
paths:
|
|
2381
|
+
paths: TRANSFORM_PATHS_111
|
|
2455
2382
|
}
|
|
2456
2383
|
])
|
|
2457
2384
|
)
|
|
@@ -2463,22 +2390,11 @@ var onOperationUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2463
2390
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2464
2391
|
{
|
|
2465
2392
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2466
|
-
paths:
|
|
2467
|
-
{ path: "entity.createdDate" },
|
|
2468
|
-
{ path: "entity.updatedDate" },
|
|
2469
|
-
{ path: "entity.pausedUntilOptions.time" },
|
|
2470
|
-
{ path: "metadata.eventTime" },
|
|
2471
|
-
{ path: "modifiedFields.createdDate" },
|
|
2472
|
-
{ path: "modifiedFields.updatedDate" },
|
|
2473
|
-
{ path: "modifiedFields.pausedUntilOptions.time" }
|
|
2474
|
-
]
|
|
2393
|
+
paths: TRANSFORM_PATHS_23
|
|
2475
2394
|
},
|
|
2476
2395
|
{
|
|
2477
2396
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2478
|
-
paths:
|
|
2479
|
-
{ path: "entity.businessLocationDetails.address" },
|
|
2480
|
-
{ path: "modifiedFields.businessLocationDetails.address" }
|
|
2481
|
-
]
|
|
2397
|
+
paths: TRANSFORM_PATHS_33
|
|
2482
2398
|
}
|
|
2483
2399
|
])
|
|
2484
2400
|
)
|