@wix/table-reservations 1.0.78 → 1.0.80
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/context.d.ts +3 -3
- package/build/cjs/context.js +3 -3
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +3 -3
- package/build/cjs/index.js +3 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -3
- package/build/cjs/meta.js +3 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +3 -3
- package/build/es/context.js +3 -3
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +3 -3
- package/build/es/index.js +3 -3
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +3 -3
- package/build/es/meta.js +3 -3
- package/build/es/meta.js.map +1 -1
- package/package.json +13 -9
- package/build/cjs/index.typings.d.ts +0 -3
- package/build/cjs/index.typings.js +0 -30
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.context.d.ts +0 -6
- package/build/cjs/src/table-reservations-v1-reservation-location.context.js +0 -73
- package/build/cjs/src/table-reservations-v1-reservation-location.context.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.http.d.ts +0 -40
- package/build/cjs/src/table-reservations-v1-reservation-location.http.js +0 -266
- package/build/cjs/src/table-reservations-v1-reservation-location.http.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.d.ts +0 -20
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.js +0 -106
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.public.d.ts +0 -178
- package/build/cjs/src/table-reservations-v1-reservation-location.public.js +0 -48
- package/build/cjs/src/table-reservations-v1-reservation-location.public.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.types.d.ts +0 -2260
- package/build/cjs/src/table-reservations-v1-reservation-location.types.js +0 -187
- package/build/cjs/src/table-reservations-v1-reservation-location.types.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.universal.d.ts +0 -2333
- package/build/cjs/src/table-reservations-v1-reservation-location.universal.js +0 -613
- package/build/cjs/src/table-reservations-v1-reservation-location.universal.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.context.d.ts +0 -11
- package/build/cjs/src/table-reservations-v1-reservation.context.js +0 -158
- package/build/cjs/src/table-reservations-v1-reservation.context.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.http.d.ts +0 -89
- package/build/cjs/src/table-reservations-v1-reservation.http.js +0 -508
- package/build/cjs/src/table-reservations-v1-reservation.http.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.meta.d.ts +0 -29
- package/build/cjs/src/table-reservations-v1-reservation.meta.js +0 -199
- package/build/cjs/src/table-reservations-v1-reservation.meta.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.public.d.ts +0 -29
- package/build/cjs/src/table-reservations-v1-reservation.public.js +0 -79
- package/build/cjs/src/table-reservations-v1-reservation.public.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.types.d.ts +0 -1005
- package/build/cjs/src/table-reservations-v1-reservation.types.js +0 -135
- package/build/cjs/src/table-reservations-v1-reservation.types.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.universal.d.ts +0 -1416
- package/build/cjs/src/table-reservations-v1-reservation.universal.js +0 -888
- package/build/cjs/src/table-reservations-v1-reservation.universal.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.context.d.ts +0 -3
- package/build/cjs/src/table-reservations-v1-time-slot.context.js +0 -22
- package/build/cjs/src/table-reservations-v1-time-slot.context.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.http.d.ts +0 -13
- package/build/cjs/src/table-reservations-v1-time-slot.http.js +0 -126
- package/build/cjs/src/table-reservations-v1-time-slot.http.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.meta.d.ts +0 -13
- package/build/cjs/src/table-reservations-v1-time-slot.meta.js +0 -47
- package/build/cjs/src/table-reservations-v1-time-slot.meta.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.public.d.ts +0 -8
- package/build/cjs/src/table-reservations-v1-time-slot.public.js +0 -17
- package/build/cjs/src/table-reservations-v1-time-slot.public.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.types.d.ts +0 -137
- package/build/cjs/src/table-reservations-v1-time-slot.types.js +0 -32
- package/build/cjs/src/table-reservations-v1-time-slot.types.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.universal.d.ts +0 -178
- package/build/cjs/src/table-reservations-v1-time-slot.universal.js +0 -166
- package/build/cjs/src/table-reservations-v1-time-slot.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -3
- package/build/es/index.typings.js +0 -4
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.context.d.ts +0 -6
- package/build/es/src/table-reservations-v1-reservation-location.context.js +0 -66
- package/build/es/src/table-reservations-v1-reservation-location.context.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.http.d.ts +0 -40
- package/build/es/src/table-reservations-v1-reservation-location.http.js +0 -259
- package/build/es/src/table-reservations-v1-reservation-location.http.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.meta.d.ts +0 -20
- package/build/es/src/table-reservations-v1-reservation-location.meta.js +0 -76
- package/build/es/src/table-reservations-v1-reservation-location.meta.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.public.d.ts +0 -178
- package/build/es/src/table-reservations-v1-reservation-location.public.js +0 -25
- package/build/es/src/table-reservations-v1-reservation-location.public.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.types.d.ts +0 -2260
- package/build/es/src/table-reservations-v1-reservation-location.types.js +0 -184
- package/build/es/src/table-reservations-v1-reservation-location.types.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.universal.d.ts +0 -2333
- package/build/es/src/table-reservations-v1-reservation-location.universal.js +0 -583
- package/build/es/src/table-reservations-v1-reservation-location.universal.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.context.d.ts +0 -11
- package/build/es/src/table-reservations-v1-reservation.context.js +0 -146
- package/build/es/src/table-reservations-v1-reservation.context.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.http.d.ts +0 -89
- package/build/es/src/table-reservations-v1-reservation.http.js +0 -496
- package/build/es/src/table-reservations-v1-reservation.http.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.meta.d.ts +0 -29
- package/build/es/src/table-reservations-v1-reservation.meta.js +0 -164
- package/build/es/src/table-reservations-v1-reservation.meta.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.public.d.ts +0 -29
- package/build/es/src/table-reservations-v1-reservation.public.js +0 -50
- package/build/es/src/table-reservations-v1-reservation.public.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.types.d.ts +0 -1005
- package/build/es/src/table-reservations-v1-reservation.types.js +0 -132
- package/build/es/src/table-reservations-v1-reservation.types.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.universal.d.ts +0 -1416
- package/build/es/src/table-reservations-v1-reservation.universal.js +0 -853
- package/build/es/src/table-reservations-v1-reservation.universal.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.context.d.ts +0 -3
- package/build/es/src/table-reservations-v1-time-slot.context.js +0 -18
- package/build/es/src/table-reservations-v1-time-slot.context.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.http.d.ts +0 -13
- package/build/es/src/table-reservations-v1-time-slot.http.js +0 -122
- package/build/es/src/table-reservations-v1-time-slot.http.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.meta.d.ts +0 -13
- package/build/es/src/table-reservations-v1-time-slot.meta.js +0 -20
- package/build/es/src/table-reservations-v1-time-slot.meta.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.public.d.ts +0 -8
- package/build/es/src/table-reservations-v1-time-slot.public.js +0 -9
- package/build/es/src/table-reservations-v1-time-slot.public.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.types.d.ts +0 -137
- package/build/es/src/table-reservations-v1-time-slot.types.js +0 -29
- package/build/es/src/table-reservations-v1-time-slot.types.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.universal.d.ts +0 -178
- package/build/es/src/table-reservations-v1-time-slot.universal.js +0 -139
- package/build/es/src/table-reservations-v1-time-slot.universal.js.map +0 -1
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
export interface TimeSlot {
|
|
2
|
-
/** Start date and time of this time slot. */
|
|
3
|
-
startDate?: Date;
|
|
4
|
-
/** Duration in minutes of this time slot. */
|
|
5
|
-
duration?: number;
|
|
6
|
-
/**
|
|
7
|
-
* Availability status of this time slot.
|
|
8
|
-
*
|
|
9
|
-
* * `AVAILABLE`: The restaurant can accommodate a party of the given size in this time slot.
|
|
10
|
-
* * `UNAVAILABLE`: The restaurant can't accommodate a party of the given size in this time slot.
|
|
11
|
-
* * `NON_WORKING_HOURS`: The restaurant is not open during this time slot.
|
|
12
|
-
*/
|
|
13
|
-
status?: Status;
|
|
14
|
-
/** Whether manual approval is required to make a reservation in this time slot. */
|
|
15
|
-
manualApproval?: boolean | null;
|
|
16
|
-
}
|
|
17
|
-
export declare enum Status {
|
|
18
|
-
AVAILABLE = "AVAILABLE",
|
|
19
|
-
UNAVAILABLE = "UNAVAILABLE",
|
|
20
|
-
NON_WORKING_HOURS = "NON_WORKING_HOURS"
|
|
21
|
-
}
|
|
22
|
-
/** Table combination. */
|
|
23
|
-
export interface TimeSlotTableCombination {
|
|
24
|
-
/** Table IDs of the tables in the combination. */
|
|
25
|
-
tableIds?: string[];
|
|
26
|
-
}
|
|
27
|
-
export interface GetTimeSlotsRequest {
|
|
28
|
-
/** ID of the reservation location for which to retrieve time slots. */
|
|
29
|
-
reservationLocationId: string;
|
|
30
|
-
/** Date and time for which to retrieve a time slot. */
|
|
31
|
-
date: Date;
|
|
32
|
-
/**
|
|
33
|
-
* Duration in minutes of the time slot.
|
|
34
|
-
*
|
|
35
|
-
* Min: `5`
|
|
36
|
-
*/
|
|
37
|
-
duration?: number | null;
|
|
38
|
-
/**
|
|
39
|
-
* Size of the party that needs to be seated during this time slot.
|
|
40
|
-
*
|
|
41
|
-
* Min: `1`
|
|
42
|
-
*/
|
|
43
|
-
partySize: number | null;
|
|
44
|
-
/** The number of time slots to retrieve before the given `date`. */
|
|
45
|
-
slotsBefore?: number | null;
|
|
46
|
-
/** The number of time slots to retrieve after the given `date`. */
|
|
47
|
-
slotsAfter?: number | null;
|
|
48
|
-
}
|
|
49
|
-
export interface GetTimeSlotsResponse {
|
|
50
|
-
/** A list of time slots and their availability according to the given party size. */
|
|
51
|
-
timeSlots?: TimeSlot[];
|
|
52
|
-
}
|
|
53
|
-
export interface CheckReservationDetailsRequest {
|
|
54
|
-
/** Reservation location ID. */
|
|
55
|
-
reservationLocationId?: string;
|
|
56
|
-
/** Date. */
|
|
57
|
-
date?: Date;
|
|
58
|
-
/** Duration. */
|
|
59
|
-
duration?: number | null;
|
|
60
|
-
/** Party size. */
|
|
61
|
-
partySize?: number | null;
|
|
62
|
-
/** Reservation, that should be ignored during the check. */
|
|
63
|
-
excludeReservationId?: string | null;
|
|
64
|
-
/** Requested table combination. */
|
|
65
|
-
tableIds?: string[];
|
|
66
|
-
}
|
|
67
|
-
export interface CheckReservationDetailsResponse {
|
|
68
|
-
/** Tables states. */
|
|
69
|
-
tables?: Table[];
|
|
70
|
-
/** Table combinations states. */
|
|
71
|
-
tableCombinations?: TableCombination[];
|
|
72
|
-
/** Reservation location conflicts. */
|
|
73
|
-
reservationLocationConflicts?: ReservationLocationConflict[];
|
|
74
|
-
/** Requested table combination state. */
|
|
75
|
-
requestedTableCombination?: TableCombination;
|
|
76
|
-
/** List of reserved tables with corresponding reservation ids. */
|
|
77
|
-
tableReservedConflicts?: TableReservedConflict[];
|
|
78
|
-
/** Whether manual approval is required to make a reservation in this time slot. */
|
|
79
|
-
manualApproval?: boolean | null;
|
|
80
|
-
/** Whether payment is required to make a reservation in this time slot. */
|
|
81
|
-
paymentRequired?: boolean | null;
|
|
82
|
-
}
|
|
83
|
-
export interface Table {
|
|
84
|
-
_id?: string;
|
|
85
|
-
/** Table conflicts. */
|
|
86
|
-
tableConflicts?: TableConflict[];
|
|
87
|
-
}
|
|
88
|
-
export interface TableConflict {
|
|
89
|
-
/** Conflict type. */
|
|
90
|
-
type?: TableConflictType;
|
|
91
|
-
}
|
|
92
|
-
export declare enum TableConflictType {
|
|
93
|
-
UNKNOWN = "UNKNOWN",
|
|
94
|
-
TABLE_RESERVED = "TABLE_RESERVED",
|
|
95
|
-
TABLE_TOO_BIG = "TABLE_TOO_BIG",
|
|
96
|
-
TABLE_TOO_SMALL = "TABLE_TOO_SMALL",
|
|
97
|
-
OFFLINE_ONLY = "OFFLINE_ONLY"
|
|
98
|
-
}
|
|
99
|
-
export interface TableCombination {
|
|
100
|
-
tableIds?: string[];
|
|
101
|
-
tableCombinationConflicts?: TableCombinationConflict[];
|
|
102
|
-
}
|
|
103
|
-
export interface TableCombinationConflict {
|
|
104
|
-
/** Conflict type. */
|
|
105
|
-
type?: TableCombinationConflictType;
|
|
106
|
-
}
|
|
107
|
-
export declare enum TableCombinationConflictType {
|
|
108
|
-
UNKNOWN = "UNKNOWN",
|
|
109
|
-
RESERVED = "RESERVED",
|
|
110
|
-
TOO_BIG = "TOO_BIG",
|
|
111
|
-
TOO_SMALL = "TOO_SMALL",
|
|
112
|
-
OFFLINE_ONLY = "OFFLINE_ONLY"
|
|
113
|
-
}
|
|
114
|
-
export interface ReservationLocationConflict {
|
|
115
|
-
/** Reservation location conflict type. */
|
|
116
|
-
type?: Type;
|
|
117
|
-
}
|
|
118
|
-
export declare enum Type {
|
|
119
|
-
UNKNOWN = "UNKNOWN",
|
|
120
|
-
PARTY_PACING = "PARTY_PACING",
|
|
121
|
-
SEAT_PACING = "SEAT_PACING"
|
|
122
|
-
}
|
|
123
|
-
export interface TableReservedConflict {
|
|
124
|
-
/** Table id. */
|
|
125
|
-
tableId?: string;
|
|
126
|
-
/** List of reservation ids. */
|
|
127
|
-
reservationIds?: string[];
|
|
128
|
-
}
|
|
129
|
-
export interface GetTimeSlotsResponseNonNullableFields {
|
|
130
|
-
timeSlots: {
|
|
131
|
-
duration: number;
|
|
132
|
-
status: Status;
|
|
133
|
-
}[];
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Returns a list of time slots at a given restaurant on a given `date`, and their availability for a given `partySize`.
|
|
137
|
-
*
|
|
138
|
-
* Without passing optional parameters, the list will contain a single time slot at the given `date`.
|
|
139
|
-
* Use `slotsBefore` and `slotsAfter` to get additional time slots before and after the given `date`.
|
|
140
|
-
*
|
|
141
|
-
* If you do not provide a `duration`, the duration will be calculated automatically based on the reservation location's configuration.
|
|
142
|
-
* The reservation location's settings used to determine the duration are its `defaultTurnoverTime` and `turnoverTimeRules`. These specify how much time should be allotted for a reservation of a party of a given size.
|
|
143
|
-
*
|
|
144
|
-
* The `startDate`s of time slots in the response are 15 minutes apart regardless of the `duration` provided.
|
|
145
|
-
* @param reservationLocationId - ID of the reservation location for which to retrieve time slots.
|
|
146
|
-
* @param date - Date and time for which to retrieve a time slot.
|
|
147
|
-
* @param partySize - Size of the party that needs to be seated during this time slot.
|
|
148
|
-
*
|
|
149
|
-
* Min: `1`
|
|
150
|
-
* @public
|
|
151
|
-
* @documentationMaturity preview
|
|
152
|
-
* @requiredField date
|
|
153
|
-
* @requiredField partySize
|
|
154
|
-
* @requiredField reservationLocationId
|
|
155
|
-
* @param options - Options for retrieving the time slots.
|
|
156
|
-
* @permissionScope Manage Reservations (Medium)
|
|
157
|
-
* @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-MEDIUM
|
|
158
|
-
* @permissionScope Manage Reservations (Full)
|
|
159
|
-
* @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-FULL
|
|
160
|
-
* @permissionScope Manage Reservations (Basic)
|
|
161
|
-
* @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-BASIC
|
|
162
|
-
* @applicableIdentity APP
|
|
163
|
-
* @applicableIdentity MEMBER
|
|
164
|
-
* @applicableIdentity VISITOR
|
|
165
|
-
*/
|
|
166
|
-
export declare function getTimeSlots(reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions): Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
|
|
167
|
-
export interface GetTimeSlotsOptions {
|
|
168
|
-
/**
|
|
169
|
-
* Duration in minutes of the time slot.
|
|
170
|
-
*
|
|
171
|
-
* Min: `5`
|
|
172
|
-
*/
|
|
173
|
-
duration?: number | null;
|
|
174
|
-
/** The number of time slots to retrieve before the given `date`. */
|
|
175
|
-
slotsBefore?: number | null;
|
|
176
|
-
/** The number of time slots to retrieve after the given `date`. */
|
|
177
|
-
slotsAfter?: number | null;
|
|
178
|
-
}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.getTimeSlots = exports.Type = exports.TableCombinationConflictType = exports.TableConflictType = exports.Status = void 0;
|
|
36
|
-
const velo_1 = require("@wix/metro-runtime/velo");
|
|
37
|
-
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
38
|
-
const ambassadorWixTableReservationsV1TimeSlot = __importStar(require("./table-reservations-v1-time-slot.http"));
|
|
39
|
-
const _toVeloEntity = '$';
|
|
40
|
-
const _fromVeloEntity = '$';
|
|
41
|
-
var Status;
|
|
42
|
-
(function (Status) {
|
|
43
|
-
Status["AVAILABLE"] = "AVAILABLE";
|
|
44
|
-
Status["UNAVAILABLE"] = "UNAVAILABLE";
|
|
45
|
-
Status["NON_WORKING_HOURS"] = "NON_WORKING_HOURS";
|
|
46
|
-
})(Status || (exports.Status = Status = {}));
|
|
47
|
-
var TableConflictType;
|
|
48
|
-
(function (TableConflictType) {
|
|
49
|
-
TableConflictType["UNKNOWN"] = "UNKNOWN";
|
|
50
|
-
TableConflictType["TABLE_RESERVED"] = "TABLE_RESERVED";
|
|
51
|
-
TableConflictType["TABLE_TOO_BIG"] = "TABLE_TOO_BIG";
|
|
52
|
-
TableConflictType["TABLE_TOO_SMALL"] = "TABLE_TOO_SMALL";
|
|
53
|
-
TableConflictType["OFFLINE_ONLY"] = "OFFLINE_ONLY";
|
|
54
|
-
})(TableConflictType || (exports.TableConflictType = TableConflictType = {}));
|
|
55
|
-
var TableCombinationConflictType;
|
|
56
|
-
(function (TableCombinationConflictType) {
|
|
57
|
-
TableCombinationConflictType["UNKNOWN"] = "UNKNOWN";
|
|
58
|
-
TableCombinationConflictType["RESERVED"] = "RESERVED";
|
|
59
|
-
TableCombinationConflictType["TOO_BIG"] = "TOO_BIG";
|
|
60
|
-
TableCombinationConflictType["TOO_SMALL"] = "TOO_SMALL";
|
|
61
|
-
TableCombinationConflictType["OFFLINE_ONLY"] = "OFFLINE_ONLY";
|
|
62
|
-
})(TableCombinationConflictType || (exports.TableCombinationConflictType = TableCombinationConflictType = {}));
|
|
63
|
-
var Type;
|
|
64
|
-
(function (Type) {
|
|
65
|
-
Type["UNKNOWN"] = "UNKNOWN";
|
|
66
|
-
Type["PARTY_PACING"] = "PARTY_PACING";
|
|
67
|
-
Type["SEAT_PACING"] = "SEAT_PACING";
|
|
68
|
-
})(Type || (exports.Type = Type = {}));
|
|
69
|
-
const _getTimeSlotsRequest = {};
|
|
70
|
-
const _getTimeSlotsResponse = {};
|
|
71
|
-
/**
|
|
72
|
-
* Returns a list of time slots at a given restaurant on a given `date`, and their availability for a given `partySize`.
|
|
73
|
-
*
|
|
74
|
-
* Without passing optional parameters, the list will contain a single time slot at the given `date`.
|
|
75
|
-
* Use `slotsBefore` and `slotsAfter` to get additional time slots before and after the given `date`.
|
|
76
|
-
*
|
|
77
|
-
* If you do not provide a `duration`, the duration will be calculated automatically based on the reservation location's configuration.
|
|
78
|
-
* The reservation location's settings used to determine the duration are its `defaultTurnoverTime` and `turnoverTimeRules`. These specify how much time should be allotted for a reservation of a party of a given size.
|
|
79
|
-
*
|
|
80
|
-
* The `startDate`s of time slots in the response are 15 minutes apart regardless of the `duration` provided.
|
|
81
|
-
* @param reservationLocationId - ID of the reservation location for which to retrieve time slots.
|
|
82
|
-
* @param date - Date and time for which to retrieve a time slot.
|
|
83
|
-
* @param partySize - Size of the party that needs to be seated during this time slot.
|
|
84
|
-
*
|
|
85
|
-
* Min: `1`
|
|
86
|
-
* @public
|
|
87
|
-
* @documentationMaturity preview
|
|
88
|
-
* @requiredField date
|
|
89
|
-
* @requiredField partySize
|
|
90
|
-
* @requiredField reservationLocationId
|
|
91
|
-
* @param options - Options for retrieving the time slots.
|
|
92
|
-
* @permissionScope Manage Reservations (Medium)
|
|
93
|
-
* @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-MEDIUM
|
|
94
|
-
* @permissionScope Manage Reservations (Full)
|
|
95
|
-
* @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-FULL
|
|
96
|
-
* @permissionScope Manage Reservations (Basic)
|
|
97
|
-
* @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-BASIC
|
|
98
|
-
* @applicableIdentity APP
|
|
99
|
-
* @applicableIdentity MEMBER
|
|
100
|
-
* @applicableIdentity VISITOR
|
|
101
|
-
*/
|
|
102
|
-
function getTimeSlots(reservationLocationId, date, partySize, options) {
|
|
103
|
-
var _a, _b, _c;
|
|
104
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
105
|
-
const requestTransformation = {
|
|
106
|
-
reservationLocationId: '$[0]',
|
|
107
|
-
date: '$[1]',
|
|
108
|
-
partySize: '$[2]',
|
|
109
|
-
duration: '$[3].duration',
|
|
110
|
-
slotsBefore: '$[3].slotsBefore',
|
|
111
|
-
slotsAfter: '$[3].slotsAfter',
|
|
112
|
-
};
|
|
113
|
-
const responseTransformation = '$';
|
|
114
|
-
// @ts-ignore
|
|
115
|
-
const { httpClient, sideEffects } = arguments[4];
|
|
116
|
-
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
117
|
-
rootSchema: _getTimeSlotsRequest,
|
|
118
|
-
depSchemas: {},
|
|
119
|
-
fqdnTransformation: {
|
|
120
|
-
paths: [],
|
|
121
|
-
transformation: _fromVeloEntity,
|
|
122
|
-
},
|
|
123
|
-
customTransformation: requestTransformation,
|
|
124
|
-
});
|
|
125
|
-
const { fromJSON } = (0, velo_1.serializer)({
|
|
126
|
-
rootSchema: _getTimeSlotsResponse,
|
|
127
|
-
depSchemas: {},
|
|
128
|
-
fqdnTransformation: {
|
|
129
|
-
paths: [...['Array#timeSlots']],
|
|
130
|
-
transformation: _toVeloEntity,
|
|
131
|
-
},
|
|
132
|
-
customTransformation: responseTransformation,
|
|
133
|
-
});
|
|
134
|
-
const payload = toAmbassadorRequest([
|
|
135
|
-
reservationLocationId,
|
|
136
|
-
date,
|
|
137
|
-
partySize,
|
|
138
|
-
options,
|
|
139
|
-
]);
|
|
140
|
-
const reqOpts = ambassadorWixTableReservationsV1TimeSlot.getTimeSlots(payload);
|
|
141
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
142
|
-
try {
|
|
143
|
-
const result = yield httpClient.request(reqOpts);
|
|
144
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
145
|
-
return fromJSON(result.data);
|
|
146
|
-
}
|
|
147
|
-
catch (err) {
|
|
148
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
149
|
-
spreadPathsToArguments: {},
|
|
150
|
-
explicitPathsToArguments: {
|
|
151
|
-
reservationLocationId: '$[0]',
|
|
152
|
-
date: '$[1]',
|
|
153
|
-
partySize: '$[2]',
|
|
154
|
-
duration: '$[3].duration',
|
|
155
|
-
slotsBefore: '$[3].slotsBefore',
|
|
156
|
-
slotsAfter: '$[3].slotsAfter',
|
|
157
|
-
},
|
|
158
|
-
singleArgumentUnchanged: false,
|
|
159
|
-
}, ['reservationLocationId', 'date', 'partySize', 'options']);
|
|
160
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
161
|
-
throw transformedError;
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
exports.getTimeSlots = getTimeSlots;
|
|
166
|
-
//# sourceMappingURL=table-reservations-v1-time-slot.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-time-slot.universal.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.universal.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * as reservations from './src/table-reservations-v1-reservation.universal';
|
|
2
|
-
export * as reservationLocations from './src/table-reservations-v1-reservation-location.universal';
|
|
3
|
-
export * as timeSlots from './src/table-reservations-v1-time-slot.universal';
|
|
4
|
-
//# sourceMappingURL=index.typings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,mDAAmD,CAAC;AAClF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAC;AACnG,OAAO,KAAK,SAAS,MAAM,iDAAiD,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { getReservationLocation as publicGetReservationLocation, updateReservationLocation as publicUpdateReservationLocation, queryReservationLocations as publicQueryReservationLocations, listReservationLocations as publicListReservationLocations } from './table-reservations-v1-reservation-location.public';
|
|
2
|
-
import { BuildRESTFunction } from '@wix/sdk-types';
|
|
3
|
-
export declare const getReservationLocation: BuildRESTFunction<typeof publicGetReservationLocation>;
|
|
4
|
-
export declare const updateReservationLocation: BuildRESTFunction<typeof publicUpdateReservationLocation>;
|
|
5
|
-
export declare const queryReservationLocations: BuildRESTFunction<typeof publicQueryReservationLocations>;
|
|
6
|
-
export declare const listReservationLocations: BuildRESTFunction<typeof publicListReservationLocations>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { getReservationLocation as publicGetReservationLocation, updateReservationLocation as publicUpdateReservationLocation, queryReservationLocations as publicQueryReservationLocations, listReservationLocations as publicListReservationLocations, } from './table-reservations-v1-reservation-location.public';
|
|
2
|
-
export const getReservationLocation = (...args) => {
|
|
3
|
-
var _a;
|
|
4
|
-
const context =
|
|
5
|
-
// @ts-expect-error
|
|
6
|
-
typeof $wixContext !== 'undefined'
|
|
7
|
-
? // @ts-expect-error
|
|
8
|
-
$wixContext
|
|
9
|
-
: // @ts-expect-error
|
|
10
|
-
globalThis.__wix_context__;
|
|
11
|
-
if (!context) {
|
|
12
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
13
|
-
}
|
|
14
|
-
return context
|
|
15
|
-
.initWixModules(publicGetReservationLocation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
16
|
-
.apply(undefined, args);
|
|
17
|
-
};
|
|
18
|
-
export const updateReservationLocation = (...args) => {
|
|
19
|
-
var _a;
|
|
20
|
-
const context =
|
|
21
|
-
// @ts-expect-error
|
|
22
|
-
typeof $wixContext !== 'undefined'
|
|
23
|
-
? // @ts-expect-error
|
|
24
|
-
$wixContext
|
|
25
|
-
: // @ts-expect-error
|
|
26
|
-
globalThis.__wix_context__;
|
|
27
|
-
if (!context) {
|
|
28
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
29
|
-
}
|
|
30
|
-
return context
|
|
31
|
-
.initWixModules(publicUpdateReservationLocation, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
32
|
-
.apply(undefined, args);
|
|
33
|
-
};
|
|
34
|
-
export const queryReservationLocations = (...args) => {
|
|
35
|
-
var _a;
|
|
36
|
-
const context =
|
|
37
|
-
// @ts-expect-error
|
|
38
|
-
typeof $wixContext !== 'undefined'
|
|
39
|
-
? // @ts-expect-error
|
|
40
|
-
$wixContext
|
|
41
|
-
: // @ts-expect-error
|
|
42
|
-
globalThis.__wix_context__;
|
|
43
|
-
if (!context) {
|
|
44
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
45
|
-
}
|
|
46
|
-
return context
|
|
47
|
-
.initWixModules(publicQueryReservationLocations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
48
|
-
.apply(undefined, args);
|
|
49
|
-
};
|
|
50
|
-
export const listReservationLocations = (...args) => {
|
|
51
|
-
var _a;
|
|
52
|
-
const context =
|
|
53
|
-
// @ts-expect-error
|
|
54
|
-
typeof $wixContext !== 'undefined'
|
|
55
|
-
? // @ts-expect-error
|
|
56
|
-
$wixContext
|
|
57
|
-
: // @ts-expect-error
|
|
58
|
-
globalThis.__wix_context__;
|
|
59
|
-
if (!context) {
|
|
60
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
61
|
-
}
|
|
62
|
-
return context
|
|
63
|
-
.initWixModules(publicListReservationLocations, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
64
|
-
.apply(undefined, args);
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=table-reservations-v1-reservation-location.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-reservation-location.context.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,IAAI,4BAA4B,EACtD,yBAAyB,IAAI,+BAA+B,EAC5D,yBAAyB,IAAI,+BAA+B,EAC5D,wBAAwB,IAAI,8BAA8B,GAC3D,MAAM,qDAAqD,CAAC;AAG7D,MAAM,CAAC,MAAM,sBAAsB,GAE/B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,4BAA4B,EAC5B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAElC,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,+BAA+B,EAC/B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAElC,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,+BAA+B,EAC/B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,wBAAwB,GAEjC,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,8BAA8B,EAC9B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieves a reservation location by ID.
|
|
4
|
-
*
|
|
5
|
-
* The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getReservationLocation(payload: object): RequestOptionsFactory<any>;
|
|
8
|
-
/**
|
|
9
|
-
* Updates a reservation location. Supports partial updates.
|
|
10
|
-
*
|
|
11
|
-
* Each time the reservation location is updated, `revision` increments by 1. The existing revision must be included when updating the reservation location. This ensures you're working with the latest reservation location information, and it prevents unintended overwrites.
|
|
12
|
-
*
|
|
13
|
-
* You cannot use this endpoint to change a reservation location's `location` object. Attempting to do so will cause the server to return an application error.
|
|
14
|
-
*/
|
|
15
|
-
export declare function updateReservationLocation(payload: object): RequestOptionsFactory<any>;
|
|
16
|
-
/**
|
|
17
|
-
* Creates a query to retrieve a list of reservation locations.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* The `queryReservationLocations()` function builds a query to retrieve a list of reservation locations and returns a [`ReservationLocationsQueryBuilder`](#ReservationLocationsQueryBuilder) object.
|
|
21
|
-
*
|
|
22
|
-
* The returned object contains the query definition, which is used to run the query using the [find()](#ReservationLocationsQueryBuilder/find) function.
|
|
23
|
-
*
|
|
24
|
-
* You can refine the query by chaining `ReservationLocationsQueryBuilder` functions onto the query. `ReservationLocationsQueryBuilder` functions enable you to filter, sort, and control the results that `queryReservationLocations()` returns.
|
|
25
|
-
*
|
|
26
|
-
* `queryReservationLocations()` runs with the following `ReservationLocationsQueryBuilder` defaults, which you can override:
|
|
27
|
-
*
|
|
28
|
-
* * [`skip(0)`](#ReservationLocationsQueryBuilder/skip)
|
|
29
|
-
* * [`limit(50)`](#ReservationLocationsQueryBuilder/limit)
|
|
30
|
-
* * [`descending('_createdDate')`](#ReservationLocationsQueryBuilder/descending)
|
|
31
|
-
*
|
|
32
|
-
* The following `ReservationLocationsQueryBuilder` functions are supported for `queryReservationLocations()`. For a full description of the reservation location object, see the object returned for the [`items`](#ReservationLocationsQueryResult/items) property in [`ReservationLocationsQueryResult`](#ReservationLocationsQueryResult).
|
|
33
|
-
*/
|
|
34
|
-
export declare function queryReservationLocations(payload: object): RequestOptionsFactory<any>;
|
|
35
|
-
/**
|
|
36
|
-
* Retrieves a list of up to 100 reservation locations.
|
|
37
|
-
*
|
|
38
|
-
* The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
|
|
39
|
-
*/
|
|
40
|
-
export declare function listReservationLocations(payload: object): RequestOptionsFactory<any>;
|