@wix/auto_sdk_restaurants_operations 1.0.95 → 1.0.96
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 +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +1 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +1 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +1 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +1 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +149 -1
- package/build/internal/cjs/index.typings.js +1 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +166 -1
- package/build/internal/cjs/meta.js +1 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +1 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +149 -1
- package/build/internal/es/index.typings.mjs +1 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +166 -1
- package/build/internal/es/meta.mjs +1 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -33,6 +33,26 @@ interface Operation extends OperationOnlineOrderingStatusOptionsOneOf {
|
|
|
33
33
|
_updatedDate?: Date | null;
|
|
34
34
|
/** Operation name. */
|
|
35
35
|
name?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Currently INTERNAL. Whether the operation is enabled.
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
enabled?: boolean | null;
|
|
41
|
+
/**
|
|
42
|
+
* The scheduling data for this operation.
|
|
43
|
+
* Scheduling specifies when an order can be placed for.
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated
|
|
46
|
+
* @replacedBy order_scheduling
|
|
47
|
+
* @targetRemovalDate 2024-03-04
|
|
48
|
+
*/
|
|
49
|
+
scheduling?: Scheduling;
|
|
50
|
+
/**
|
|
51
|
+
* INTERNAL. Profile ID associated with the operation.
|
|
52
|
+
* @internal
|
|
53
|
+
* @format GUID
|
|
54
|
+
*/
|
|
55
|
+
profileId?: string | null;
|
|
36
56
|
/**
|
|
37
57
|
* Whether the operation is the default operation. <br />
|
|
38
58
|
* Default: `false`.
|
|
@@ -63,6 +83,11 @@ interface Operation extends OperationOnlineOrderingStatusOptionsOneOf {
|
|
|
63
83
|
* @readonly
|
|
64
84
|
*/
|
|
65
85
|
businessLocationId?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Information about the business location where this operation is available. This information is taken from the `Location` object ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) corresponding with this operation's `businessLocationId`.
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
businessLocationDetails?: BusinessLocationDetails;
|
|
66
91
|
/** Extended fields. */
|
|
67
92
|
extendedFields?: ExtendedFields;
|
|
68
93
|
/** Tags ([SDK](https://dev.wix.com/docs/sdk/backend-modules/tags/tags/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/tags/introduction)) used to classify and sort different types of operations. */
|
|
@@ -121,6 +146,11 @@ interface AsapScheduling extends AsapSchedulingPreparationTimeOneOf, AsapSchedul
|
|
|
121
146
|
allowSameDayPreorder?: boolean | null;
|
|
122
147
|
/** The type of preorder allowed for the ASAP scheduling. */
|
|
123
148
|
asapPreorderType?: AsapPreorderTypeWithLiterals;
|
|
149
|
+
/**
|
|
150
|
+
* Asap pacing configuration
|
|
151
|
+
* @internal
|
|
152
|
+
*/
|
|
153
|
+
orderPacing?: AsapOrderPacing;
|
|
124
154
|
}
|
|
125
155
|
/** @oneof */
|
|
126
156
|
interface AsapSchedulingPreparationTimeOneOf {
|
|
@@ -291,11 +321,25 @@ interface TimeOfDay {
|
|
|
291
321
|
/** Information about preorders. */
|
|
292
322
|
interface PreorderScheduling {
|
|
293
323
|
method?: PreorderMethod;
|
|
324
|
+
/**
|
|
325
|
+
* Configuration of the fulfillment times. <br />
|
|
326
|
+
* Currently, only `TIME_WINDOWS` is supported.
|
|
327
|
+
* @internal
|
|
328
|
+
* @deprecated
|
|
329
|
+
* @replacedBy fulfillment_times_display
|
|
330
|
+
* @targetRemovalDate 2023-11-11
|
|
331
|
+
*/
|
|
332
|
+
fulfillmentTimesDisplayConfig?: FulfillmentTimesDisplayConfig;
|
|
294
333
|
/**
|
|
295
334
|
* Configuration of the fulfillment times. <br />
|
|
296
335
|
* Currently, only `TIME_WINDOWS` is supported.
|
|
297
336
|
*/
|
|
298
337
|
fulfillmentTimesDisplay?: FulfillmentTimesDisplayConfig;
|
|
338
|
+
/**
|
|
339
|
+
* Preorder pacing configuration
|
|
340
|
+
* @internal
|
|
341
|
+
*/
|
|
342
|
+
orderPacing?: PreOrderPacing;
|
|
299
343
|
}
|
|
300
344
|
/** Method for `PREORDER` scheduling type. */
|
|
301
345
|
interface PreorderMethod extends PreorderMethodMethodOptionsOneOf {
|
|
@@ -335,6 +379,22 @@ declare enum MethodType {
|
|
|
335
379
|
type MethodTypeWithLiterals = MethodType | 'TIME_BOUNDED' | 'WEEKLY_SCHEDULE';
|
|
336
380
|
/** Information about the time range when preorders are time bounded. */
|
|
337
381
|
interface TimeBounded {
|
|
382
|
+
/**
|
|
383
|
+
* Minimum time required to schedule the order.
|
|
384
|
+
* @internal
|
|
385
|
+
* @deprecated
|
|
386
|
+
* @replacedBy min_time_in_advance
|
|
387
|
+
* @targetRemovalDate 2023-11-11
|
|
388
|
+
*/
|
|
389
|
+
minimumInAdvanceTime?: TimeDuration;
|
|
390
|
+
/**
|
|
391
|
+
* Maximum time allowed to schedule the order.
|
|
392
|
+
* @internal
|
|
393
|
+
* @deprecated
|
|
394
|
+
* @replacedBy max_time_in_advance
|
|
395
|
+
* @targetRemovalDate 2023-11-11
|
|
396
|
+
*/
|
|
397
|
+
maximumInAdvanceTime?: TimeDuration;
|
|
338
398
|
/** Minimum time required to schedule the order. */
|
|
339
399
|
minTimeInAdvance?: TimeDuration;
|
|
340
400
|
/** Maximum time allowed to schedule the order. */
|
|
@@ -353,6 +413,15 @@ interface WeeklySchedule {
|
|
|
353
413
|
interface FulfillmentTimesDisplayConfig extends FulfillmentTimesDisplayConfigFulfillmentTimesDisplayOptionsOneOf {
|
|
354
414
|
/** Options for fulfillment time. Required when `fulfillmentTimesType` is `TIME_WINDOWS`. */
|
|
355
415
|
timeWindowsOptions?: TimeDuration;
|
|
416
|
+
/**
|
|
417
|
+
* Type of the fulfillment times.<br />
|
|
418
|
+
* When `TIME_WINDOWS`, `timeWindowsOptions` is a required field.
|
|
419
|
+
* @internal
|
|
420
|
+
* @deprecated
|
|
421
|
+
* @replacedBy type
|
|
422
|
+
* @targetRemovalDate 2023-11-11
|
|
423
|
+
*/
|
|
424
|
+
fulfillmentTimesType?: FulfillmentTimesTypeWithLiterals;
|
|
356
425
|
/**
|
|
357
426
|
* Type of the fulfillment times. <br />
|
|
358
427
|
* When `TIME_WINDOWS`, `timeWindowsOptions` is a required field.
|
|
@@ -438,7 +507,12 @@ declare enum FulfillmentType {
|
|
|
438
507
|
/** Pickup fulfillment. The customer picks up the order from the restaurant. */
|
|
439
508
|
PICKUP = "PICKUP",
|
|
440
509
|
/** Delivery fulfillment. The restaurant, or a representative, delivers the order to the customer. */
|
|
441
|
-
DELIVERY = "DELIVERY"
|
|
510
|
+
DELIVERY = "DELIVERY",
|
|
511
|
+
/**
|
|
512
|
+
* Dine-in fulfillment. The customer places an order and enjoys it at the venue.
|
|
513
|
+
* @internal
|
|
514
|
+
*/
|
|
515
|
+
DINE_IN = "DINE_IN"
|
|
442
516
|
}
|
|
443
517
|
/** @enumType */
|
|
444
518
|
type FulfillmentTypeWithLiterals = FulfillmentType | 'PICKUP' | 'DELIVERY';
|
|
@@ -476,6 +550,11 @@ interface AsapOrderScheduling extends AsapOrderSchedulingAsapFutureHandlingOptio
|
|
|
476
550
|
* When this value is `BUSINESS_DAYS_AHEAD_HANDLING`, `businessDaysAheadHandlingOptions` is a required field.
|
|
477
551
|
*/
|
|
478
552
|
asapFutureHandlingType?: AsapFutureHandlingTypeWithLiterals;
|
|
553
|
+
/**
|
|
554
|
+
* ASAP pacing configuration
|
|
555
|
+
* @internal
|
|
556
|
+
*/
|
|
557
|
+
orderPacing?: AsapOrderPacing;
|
|
479
558
|
}
|
|
480
559
|
/** @oneof */
|
|
481
560
|
interface AsapOrderSchedulingAsapFutureHandlingOptionsOneOf {
|
|
@@ -998,6 +1077,11 @@ interface GetOperationResponse {
|
|
|
998
1077
|
interface UpdateOperationRequest {
|
|
999
1078
|
/** Operation to update. */
|
|
1000
1079
|
operation: Operation;
|
|
1080
|
+
/**
|
|
1081
|
+
* Field mask of the fields to update.
|
|
1082
|
+
* @internal
|
|
1083
|
+
*/
|
|
1084
|
+
mask?: string[];
|
|
1001
1085
|
}
|
|
1002
1086
|
interface UpdateOperationResponse {
|
|
1003
1087
|
/** Updated operation. */
|
|
@@ -1212,6 +1296,16 @@ interface Subdivision {
|
|
|
1212
1296
|
code?: string;
|
|
1213
1297
|
/** Subdivision full name. */
|
|
1214
1298
|
name?: string;
|
|
1299
|
+
/**
|
|
1300
|
+
* Subdivision level
|
|
1301
|
+
* @internal
|
|
1302
|
+
*/
|
|
1303
|
+
type?: SubdivisionTypeWithLiterals;
|
|
1304
|
+
/**
|
|
1305
|
+
* Free text description of subdivision type.
|
|
1306
|
+
* @internal
|
|
1307
|
+
*/
|
|
1308
|
+
typeInfo?: string | null;
|
|
1215
1309
|
}
|
|
1216
1310
|
declare enum SubdivisionType {
|
|
1217
1311
|
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
@@ -1438,6 +1532,13 @@ interface FulfillmentTimeSlot {
|
|
|
1438
1532
|
startTime?: Date | null;
|
|
1439
1533
|
/** End time and date of the time slot. */
|
|
1440
1534
|
endTime?: Date | null;
|
|
1535
|
+
/**
|
|
1536
|
+
* Status of the time slot.
|
|
1537
|
+
* @internal
|
|
1538
|
+
*/
|
|
1539
|
+
timeSlotStatus?: TimeSlotStatusWithLiterals;
|
|
1540
|
+
/** @internal */
|
|
1541
|
+
includedDelayInMinutes?: number | null;
|
|
1441
1542
|
/** Type of the fulfillment. */
|
|
1442
1543
|
fulfilmentType?: FulfillmentTypeWithLiterals;
|
|
1443
1544
|
/** Whether the time slot starts now. */
|
|
@@ -1524,6 +1625,11 @@ interface CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse {
|
|
|
1524
1625
|
interface TimeSlotForFulfillment {
|
|
1525
1626
|
/** Time Slot details. */
|
|
1526
1627
|
timeSlot?: TimeSlot;
|
|
1628
|
+
/**
|
|
1629
|
+
* Status of the time slot.
|
|
1630
|
+
* @internal
|
|
1631
|
+
*/
|
|
1632
|
+
timeSlotStatus?: TimeSlotForFulfillmentTimeSlotStatusWithLiterals;
|
|
1527
1633
|
/**
|
|
1528
1634
|
* Details for each available fulfillment option in the time slot.
|
|
1529
1635
|
* @maxSize 500
|
|
@@ -1539,6 +1645,11 @@ interface TimeSlot {
|
|
|
1539
1645
|
endTime?: Date | null;
|
|
1540
1646
|
/** Order scheduling type used by the operation. */
|
|
1541
1647
|
orderSchedulingType?: OrderSchedulingTypeWithLiterals;
|
|
1648
|
+
/**
|
|
1649
|
+
* Delay in minutes from the original time slot. Only applicable for `ASAP` orders.
|
|
1650
|
+
* @internal
|
|
1651
|
+
*/
|
|
1652
|
+
includedDelayInMinutes?: number | null;
|
|
1542
1653
|
}
|
|
1543
1654
|
declare enum OrderSchedulingType {
|
|
1544
1655
|
/** Immediate ordering. */
|
|
@@ -1757,6 +1868,13 @@ interface PagingMetadata {
|
|
|
1757
1868
|
total?: number | null;
|
|
1758
1869
|
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
1759
1870
|
tooManyToCount?: boolean | null;
|
|
1871
|
+
/**
|
|
1872
|
+
* Indicates if there are more results after the current page.
|
|
1873
|
+
* If `true`, another page of results can be retrieved.
|
|
1874
|
+
* If `false`, this is the last page.
|
|
1875
|
+
* @internal
|
|
1876
|
+
*/
|
|
1877
|
+
hasNext?: boolean | null;
|
|
1760
1878
|
}
|
|
1761
1879
|
interface CalculateFirstAvailableTimeSlotsForItemRequest {
|
|
1762
1880
|
/** @format GUID */
|
|
@@ -1847,6 +1965,11 @@ interface CalculateAvailableTimeSlotsForDateRequest {
|
|
|
1847
1965
|
deliveryAddress?: CommonAddress;
|
|
1848
1966
|
/** Date and time to get the available time slots for. */
|
|
1849
1967
|
date: _Date;
|
|
1968
|
+
/**
|
|
1969
|
+
* in include in the response blocked timeslot. applicable for Preorder. default is false.
|
|
1970
|
+
* @internal
|
|
1971
|
+
*/
|
|
1972
|
+
includeBlockedTimeslots?: boolean;
|
|
1850
1973
|
}
|
|
1851
1974
|
interface CalculateAvailableTimeSlotsForDateResponse {
|
|
1852
1975
|
/**
|
|
@@ -3197,6 +3320,26 @@ interface UpdateOperation {
|
|
|
3197
3320
|
_updatedDate?: Date | null;
|
|
3198
3321
|
/** Operation name. */
|
|
3199
3322
|
name?: string | null;
|
|
3323
|
+
/**
|
|
3324
|
+
* Currently INTERNAL. Whether the operation is enabled.
|
|
3325
|
+
* @internal
|
|
3326
|
+
*/
|
|
3327
|
+
enabled?: boolean | null;
|
|
3328
|
+
/**
|
|
3329
|
+
* The scheduling data for this operation.
|
|
3330
|
+
* Scheduling specifies when an order can be placed for.
|
|
3331
|
+
* @internal
|
|
3332
|
+
* @deprecated
|
|
3333
|
+
* @replacedBy order_scheduling
|
|
3334
|
+
* @targetRemovalDate 2024-03-04
|
|
3335
|
+
*/
|
|
3336
|
+
scheduling?: Scheduling;
|
|
3337
|
+
/**
|
|
3338
|
+
* INTERNAL. Profile ID associated with the operation.
|
|
3339
|
+
* @internal
|
|
3340
|
+
* @format GUID
|
|
3341
|
+
*/
|
|
3342
|
+
profileId?: string | null;
|
|
3200
3343
|
/**
|
|
3201
3344
|
* Whether the operation is the default operation. <br />
|
|
3202
3345
|
* Default: `false`.
|
|
@@ -3227,6 +3370,11 @@ interface UpdateOperation {
|
|
|
3227
3370
|
* @readonly
|
|
3228
3371
|
*/
|
|
3229
3372
|
businessLocationId?: string | null;
|
|
3373
|
+
/**
|
|
3374
|
+
* Information about the business location where this operation is available. This information is taken from the `Location` object ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) corresponding with this operation's `businessLocationId`.
|
|
3375
|
+
* @internal
|
|
3376
|
+
*/
|
|
3377
|
+
businessLocationDetails?: BusinessLocationDetails;
|
|
3230
3378
|
/** Extended fields. */
|
|
3231
3379
|
extendedFields?: ExtendedFields;
|
|
3232
3380
|
/** Tags ([SDK](https://dev.wix.com/docs/sdk/backend-modules/tags/tags/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/tags/introduction)) used to classify and sort different types of operations. */
|
|
@@ -1106,6 +1106,7 @@ var OnlineOrderingStatusType = /* @__PURE__ */ ((OnlineOrderingStatusType2) => {
|
|
|
1106
1106
|
var FulfillmentType = /* @__PURE__ */ ((FulfillmentType2) => {
|
|
1107
1107
|
FulfillmentType2["PICKUP"] = "PICKUP";
|
|
1108
1108
|
FulfillmentType2["DELIVERY"] = "DELIVERY";
|
|
1109
|
+
FulfillmentType2["DINE_IN"] = "DINE_IN";
|
|
1109
1110
|
return FulfillmentType2;
|
|
1110
1111
|
})(FulfillmentType || {});
|
|
1111
1112
|
var PreparationTimePreparationTimeType = /* @__PURE__ */ ((PreparationTimePreparationTimeType2) => {
|