@wix/table-reservations 1.0.35 → 1.0.37

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.
Files changed (29) hide show
  1. package/build/cjs/src/table-reservations-v1-reservation.http.d.ts +15 -5
  2. package/build/cjs/src/table-reservations-v1-reservation.http.js +15 -5
  3. package/build/cjs/src/table-reservations-v1-reservation.http.js.map +1 -1
  4. package/build/cjs/src/table-reservations-v1-reservation.types.d.ts +17 -17
  5. package/build/cjs/src/table-reservations-v1-reservation.universal.d.ts +46 -36
  6. package/build/cjs/src/table-reservations-v1-reservation.universal.js +17 -7
  7. package/build/cjs/src/table-reservations-v1-reservation.universal.js.map +1 -1
  8. package/build/cjs/src/table-reservations-v1-time-slot.http.d.ts +1 -1
  9. package/build/cjs/src/table-reservations-v1-time-slot.http.js +1 -1
  10. package/build/cjs/src/table-reservations-v1-time-slot.types.d.ts +8 -2
  11. package/build/cjs/src/table-reservations-v1-time-slot.types.js.map +1 -1
  12. package/build/cjs/src/table-reservations-v1-time-slot.universal.d.ts +9 -3
  13. package/build/cjs/src/table-reservations-v1-time-slot.universal.js +1 -1
  14. package/build/cjs/src/table-reservations-v1-time-slot.universal.js.map +1 -1
  15. package/build/es/src/table-reservations-v1-reservation.http.d.ts +15 -5
  16. package/build/es/src/table-reservations-v1-reservation.http.js +15 -5
  17. package/build/es/src/table-reservations-v1-reservation.http.js.map +1 -1
  18. package/build/es/src/table-reservations-v1-reservation.types.d.ts +17 -17
  19. package/build/es/src/table-reservations-v1-reservation.universal.d.ts +46 -36
  20. package/build/es/src/table-reservations-v1-reservation.universal.js +17 -7
  21. package/build/es/src/table-reservations-v1-reservation.universal.js.map +1 -1
  22. package/build/es/src/table-reservations-v1-time-slot.http.d.ts +1 -1
  23. package/build/es/src/table-reservations-v1-time-slot.http.js +1 -1
  24. package/build/es/src/table-reservations-v1-time-slot.types.d.ts +8 -2
  25. package/build/es/src/table-reservations-v1-time-slot.types.js.map +1 -1
  26. package/build/es/src/table-reservations-v1-time-slot.universal.d.ts +9 -3
  27. package/build/es/src/table-reservations-v1-time-slot.universal.js +1 -1
  28. package/build/es/src/table-reservations-v1-time-slot.universal.js.map +1 -1
  29. package/package.json +2 -2
@@ -9,7 +9,13 @@ export interface TimeSlot {
9
9
  startDate?: Date;
10
10
  /** Duration in minutes of this time slot. */
11
11
  duration?: number;
12
- /** Availability status of this time slot. */
12
+ /**
13
+ * Availability status of this time slot.
14
+ *
15
+ * * `AVAILABLE`: The restaurant can accommodate a party of the given size in this time slot.
16
+ * * `UNAVAILABLE`: The restaurant can't accommodate a party of the given size in this time slot.
17
+ * * `NON_WORKING_HOURS`: The restaurant is not open during this time slot.
18
+ */
13
19
  status?: Status;
14
20
  /** Whether manual approval is required to make a reservation in this time slot. */
15
21
  manualApproval?: boolean | null;
@@ -47,7 +53,7 @@ export interface GetTimeSlotsRequest {
47
53
  slotsAfter?: number | null;
48
54
  }
49
55
  export interface GetTimeSlotsResponse {
50
- /** A list of time slots and their availabilities according to the given party size. */
56
+ /** A list of time slots and their availability according to the given party size. */
51
57
  timeSlots?: TimeSlot[];
52
58
  }
53
59
  export interface CheckReservationDetailsRequest {
@@ -126,7 +132,7 @@ export interface GetTimeSlotsResponseNonNullableFields {
126
132
  * Without passing optional parameters, the list will contain a single time slot at the given `date`.
127
133
  * Use `slotsBefore` and `slotsAfter` to get additional time slots before and after the given `date`.
128
134
  *
129
- * If you do not provide a `duration`, it will be calculated by the server based on the reservation location's configuration.
135
+ * If you do not provide a `duration`, the duration will be calculated automatically based on the reservation location's configuration.
130
136
  * 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.
131
137
  * @param reservationLocationId - ID of the reservation location for which to retrieve time slots.
132
138
  * @param date - Date and time for which to retrieve a time slot.
@@ -86,7 +86,7 @@ const _getTimeSlotsResponse = {};
86
86
  * Without passing optional parameters, the list will contain a single time slot at the given `date`.
87
87
  * Use `slotsBefore` and `slotsAfter` to get additional time slots before and after the given `date`.
88
88
  *
89
- * If you do not provide a `duration`, it will be calculated by the server based on the reservation location's configuration.
89
+ * If you do not provide a `duration`, the duration will be calculated automatically based on the reservation location's configuration.
90
90
  * 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.
91
91
  * @param reservationLocationId - ID of the reservation location for which to retrieve time slots.
92
92
  * @param date - Date and time for which to retrieve a time slot.
@@ -1 +1 @@
1
- {"version":3,"file":"table-reservations-v1-time-slot.universal.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,iHAAmG;AAEnG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAa5B,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,iCAAuB,CAAA;IACvB,qCAA2B,CAAA;IAC3B,iDAAuC,CAAA;AACzC,CAAC,EAJW,MAAM,sBAAN,MAAM,QAIjB;AAyED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,sDAAiC,CAAA;IACjC,oDAA+B,CAAA;IAC/B,wDAA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,EAAE,qBAAqB;YACjC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;gBAC/B,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC;YAClC,qBAAqB;YACrB,IAAI;YACJ,SAAS;YACT,OAAO;SACR,CAAC,CAAC;QAEH,MAAM,OAAO,GACX,wCAAwC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAEjE,KAAK,CAAC,wCAAwC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEpE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,2DAAI,CAAC;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;QACtC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,uBAAuB;gBACvB,MAAM;gBACN,WAAW;gBACX,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF;AAvED,oCAuEC"}
1
+ {"version":3,"file":"table-reservations-v1-time-slot.universal.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,iHAAm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E,UAAU,2DAAI,CAAC;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;QACtC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,uBAAuB;gBACvB,MAAM;gBACN,WAAW;gBACX,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF;AAvED,oCAuEC"}
@@ -22,21 +22,31 @@ export declare function getReservation(payload: GetReservationRequest): RequestO
22
22
  /**
23
23
  * Updates a reservation.
24
24
  *
25
+ * The fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, and `ignoreTableCombinationConflicts` should only be included in the request if the call is made by a user with the `MANAGE RESERVATIONS (FULL)` permission scope.
26
+ * Including these fields in the request without the required permissions results in an application error.
27
+ *
25
28
  * Each time the reservation is updated, revision increments by 1. The existing revision must be included when updating the reservation. This ensures you're working with the latest reservation information, and it prevents unintended overwrites.
26
29
  */
27
30
  export declare function updateReservation(payload: UpdateReservationRequest): RequestOptionsFactory<UpdateReservationResponse & UpdateReservationResponseNonNullableFields>;
28
31
  /**
29
- * Creates a new reservation with the `HELD` status.
32
+ * Creates a new temporary reservation and holds it for the customer for 10 minutes.
33
+ *
34
+ * Creates a new reservation with the `HELD` status. `HELD` reservations are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
30
35
  *
31
- * Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
36
+ * You cannot call [`Update Reservation`](#update-reservation) to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use [`Reserve Reservation`](#reserve-reservation).
32
37
  *
33
- * You cannot call [`Update Reservation`](#update-reservation) to change a reservation’s status from `HELD`. Trying to do so will return an error.
38
+ * If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using [`Create Reservation`](#create-reservation).
34
39
  */
35
40
  export declare function createHeldReservation(payload: CreateHeldReservationRequest): RequestOptionsFactory<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
36
41
  /**
37
- * Reserves or requests a `HELD` reservation.
42
+ * Reserves or requests a held reservation.
43
+ *
44
+ * Held reservations are temporary reservations with the `HELD` status created by the [`Create Held Reservation`](#create-held-reservation) endpoint.
45
+ * They are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to call `Reserve Reservation` with a held reservation older than 10 minutes returns an error.
38
46
  *
39
- * `Reserve Reservation` changes a reservation's `HELD` status to `RESERVED`, or to `REQUESTED` if the reservation's reservation location requires manual approval.
47
+ * `Reserve Reservation` changes a reservation's `HELD` status to:
48
+ * * `RESERVED` if the reservation's reservation location does not require manual approval.
49
+ * * `REQUESTED` if the reservation's reservation location requires manual approval.
40
50
  */
41
51
  export declare function reserveReservation(payload: ReserveReservationRequest): RequestOptionsFactory<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
42
52
  /**
@@ -176,6 +176,9 @@ export function getReservation(payload) {
176
176
  /**
177
177
  * Updates a reservation.
178
178
  *
179
+ * The fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, and `ignoreTableCombinationConflicts` should only be included in the request if the call is made by a user with the `MANAGE RESERVATIONS (FULL)` permission scope.
180
+ * Including these fields in the request without the required permissions results in an application error.
181
+ *
179
182
  * Each time the reservation is updated, revision increments by 1. The existing revision must be included when updating the reservation. This ensures you're working with the latest reservation information, and it prevents unintended overwrites.
180
183
  */
181
184
  export function updateReservation(payload) {
@@ -204,11 +207,13 @@ export function updateReservation(payload) {
204
207
  return __updateReservation;
205
208
  }
206
209
  /**
207
- * Creates a new reservation with the `HELD` status.
210
+ * Creates a new temporary reservation and holds it for the customer for 10 minutes.
211
+ *
212
+ * Creates a new reservation with the `HELD` status. `HELD` reservations are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
208
213
  *
209
- * Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
214
+ * You cannot call [`Update Reservation`](#update-reservation) to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use [`Reserve Reservation`](#reserve-reservation).
210
215
  *
211
- * You cannot call [`Update Reservation`](#update-reservation) to change a reservation’s status from `HELD`. Trying to do so will return an error.
216
+ * If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using [`Create Reservation`](#create-reservation).
212
217
  */
213
218
  export function createHeldReservation(payload) {
214
219
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_createHeldReservationRequest, { _heldReservationDetails });
@@ -236,9 +241,14 @@ export function createHeldReservation(payload) {
236
241
  return __createHeldReservation;
237
242
  }
238
243
  /**
239
- * Reserves or requests a `HELD` reservation.
244
+ * Reserves or requests a held reservation.
245
+ *
246
+ * Held reservations are temporary reservations with the `HELD` status created by the [`Create Held Reservation`](#create-held-reservation) endpoint.
247
+ * They are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to call `Reserve Reservation` with a held reservation older than 10 minutes returns an error.
240
248
  *
241
- * `Reserve Reservation` changes a reservation's `HELD` status to `RESERVED`, or to `REQUESTED` if the reservation's reservation location requires manual approval.
249
+ * `Reserve Reservation` changes a reservation's `HELD` status to:
250
+ * * `RESERVED` if the reservation's reservation location does not require manual approval.
251
+ * * `REQUESTED` if the reservation's reservation location requires manual approval.
242
252
  */
243
253
  export function reserveReservation(payload) {
244
254
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_reserveReservationRequest, {});
@@ -1 +1 @@
1
- {"version":3,"file":"table-reservations-v1-reservation.http.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA8BhD,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,0BAA0B,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;AACnE,MAAM,6BAA6B,GAAG;IACpC,kBAAkB,EAAE,yBAAyB;CAC9C,CAAC;AACF,MAAM,8BAA8B,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;AACvE,MAAM,yBAAyB,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;AAClE,MAAM,0BAA0B,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;AACnE,MAAM,QAAQ,GAAG;IACf,SAAS,EAAE,2BAA2B;IACtC,OAAO,EAAE,2BAA2B;CACrC,CAAC;AACF,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;AAChE,MAAM,uBAAuB,GAAG,EAAE,SAAS,EAAE,2BAA2B,EAAE,CAAC;AAC3E,MAAM,wBAAwB,GAAG;IAC/B,aAAa,EAAE,2BAA2B;IAC1C,WAAW,EAAE,2BAA2B;CACzC,CAAC;AACF,MAAM,yBAAyB,GAAG,EAA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D,yBAAyB,EACzB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,0BAA0B,EAAE;QACnE,QAAQ;QACR,YAAY;KACb,CAAC,CAAC;IAEH,SAAS,mBAAmB,CAAC,EAAE,IAAI,EAAO;QACxC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,uCAAuC;YACnD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,6EAA6E;YAC/E,GAAG,EAAE,8DAA8D,CAAC;gBAClE,SAAS,EAAE,wBAAwB;gBACnC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,mBAAmB,CAAC,OAAO,GAAG,OAAO,CAAC;IAEtC,OAAO,mBAAmB,CAAC;AAC7B,CAAC"}
1
+ {"version":3,"file":"table-reservations-v1-reservation.http.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA8BhD,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,0BAA0B,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;AACnE,MAAM,6BAA6B,GAAG;IACpC,kBAAkB,EAAE,yBAAyB;CAC9C,CAAC;AACF,MAAM,8BAA8B,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;AACvE,MAAM,yBAAyB,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;AAClE,MAAM,0BAA0B,GAAG,EAAE,WAAW,EA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B;gBAC7B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,kBAAkB,CAAC,OAAO,GAAG,OAAO,CAAC;IAErC,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,iBAAiB,CAC/B,OAAiC;IAIjC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CACrD,yBAAyB,EACzB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,0BAA0B,EAAE;QACnE,QAAQ;QACR,YAAY;KACb,CAAC,CAAC;IAEH,SAAS,mBAAmB,CAAC,EAAE,IAAI,EAAO;QACxC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,uCAAuC;YACnD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,6EAA6E;YAC/E,GAAG,EAAE,8DAA8D,CAAC;gBAClE,SAAS,EAAE,wBAAwB;gBACnC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,mBAAmB,CAAC,OAAO,GAAG,OAAO,CAAC;IAEtC,OAAO,mBAAmB,CAAC;AAC7B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /** The reservation domain object. */
2
2
  export interface Reservation {
3
3
  /**
4
- * Reservation ID. Read-Only.
4
+ * Reservation ID. Read-only.
5
5
  * @readonly
6
6
  */
7
7
  id?: string | null;
@@ -11,9 +11,9 @@ export interface Reservation {
11
11
  * Reservation source.
12
12
  *
13
13
  * This indicates how the reservation was made.
14
- * `ONLINE` indicates that the customer made the reservation through a website or app.
15
- * `OFFLINE` indicates that the reservation was made by a restaurant employee, for example when a customer calls to make a reservation.
16
- * `WALK-IN` indicates that the customer did not make a reservation beforehand, and the reservation was entered into the system by a restaurant employee when the customer arrived at the restaurant.
14
+ * * `ONLINE` indicates that the customer made the reservation through a website or app.
15
+ * * `OFFLINE` indicates that the reservation was made by a restaurant employee, for example when a customer calls to make a reservation.
16
+ * * `WALK-IN` indicates that the customer did not make a reservation beforehand, and the reservation was entered into the system by a restaurant employee when the customer arrived at the restaurant.
17
17
  */
18
18
  source?: Source;
19
19
  /** Reservation details. */
@@ -86,7 +86,7 @@ export declare enum Source {
86
86
  export interface Details {
87
87
  /** ID of the reservation location at which this reservation will be made. */
88
88
  reservationLocationId?: string | null;
89
- /** Table IDs of tables used for this reservation. */
89
+ /** IDs of tables used for this reservation. */
90
90
  tableIds?: string[] | null;
91
91
  /** Start date and time of the reservation. */
92
92
  startDate?: Date;
@@ -110,17 +110,17 @@ export interface Reservee {
110
110
  /**
111
111
  * Phone number.
112
112
  *
113
- * (This field should begin with a +, followed by the country code, then the rest of the phone number.)
113
+ * This property should begin with a +, followed by the country code, and then the rest of the phone number.
114
114
  *
115
115
  * This field is required if the reservation's `status` is anything other than `WALK_IN`.
116
116
  */
117
117
  phone?: string | null;
118
- /** Whether the reserve has given marketing consent. */
118
+ /** Whether the reservee has given marketing consent. */
119
119
  marketingConsent?: boolean | null;
120
120
  /**
121
121
  * Custom fields for the reservee in key-value pairs.
122
122
  *
123
- * The key is the custom field's ID, and the value is the custom field's value.
123
+ * The key is the custom field's ID, and the value is the custom field's value. For example, a custom field for allergies might have the key-value pair `f4283b2d-6340-4cf9-bae7-8769e6b62127 : "Nuts, Seafood"`.
124
124
  *
125
125
  * Empty fields are not returned.
126
126
  */
@@ -145,9 +145,9 @@ export interface MigrationNote {
145
145
  export interface CreateReservationRequest {
146
146
  /** Reservation details. */
147
147
  reservation: Reservation;
148
- /** Ignore table combination conflicts. This will ensure that the reservation is created even if the required tables are already reserved. */
148
+ /** Ignore table combination conflicts. This ensures that the reservation is created even if the required tables are already reserved. */
149
149
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
150
- /** Ignore reservation location conflicts. This will ensure that the reservation is created even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
150
+ /** Ignore reservation location conflicts. This ensures that the reservation is created even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
151
151
  ignoreReservationLocationConflicts?: Type[];
152
152
  }
153
153
  export declare enum TableCombinationConflictType {
@@ -201,9 +201,9 @@ export interface GetReservationResponse {
201
201
  export interface UpdateReservationRequest {
202
202
  /** Reservation information to update. */
203
203
  reservation: Reservation;
204
- /** Ignored table combination conflicts. This will ensure that the reservation is updated even if the required tables are already reserved. */
204
+ /** Ignored table combination conflicts. This ensures that the reservation is updated even if the required tables are already reserved. */
205
205
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
206
- /** Ignored reservation location conflicts. This will ensure that the reservation is updated even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
206
+ /** Ignored reservation location conflicts. This ensures that the reservation is updated even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
207
207
  ignoreReservationLocationConflicts?: Type[];
208
208
  }
209
209
  export interface UpdateReservationResponse {
@@ -217,7 +217,7 @@ export interface ReservationDataUpdated {
217
217
  oldReservation?: Reservation;
218
218
  }
219
219
  export interface CreateHeldReservationRequest {
220
- /** `HELD` reservation information to update. */
220
+ /** Held reservation information to update. */
221
221
  reservationDetails: HeldReservationDetails;
222
222
  }
223
223
  /** Reservation details when create reservation in status HELD. */
@@ -283,13 +283,13 @@ export interface DeleteReservationResponse {
283
283
  export interface ListReservationsRequest {
284
284
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
285
285
  paging?: CursorPaging;
286
- /** The way how reservations in response should be sorted. */
286
+ /** Defines how reservations in the response are sorted. */
287
287
  sort?: Sorting;
288
- /** Start date from. */
288
+ /** Only reservations starting after this date are returned. */
289
289
  startDateFrom?: Date;
290
- /** Start date to. */
290
+ /** Only reservations starting before this date are returned. */
291
291
  startDateTo?: Date;
292
- /** Only reservations with this status should be returned. */
292
+ /** Only reservations with this status are returned. */
293
293
  status?: Status;
294
294
  }
295
295
  export interface CursorPaging {
@@ -7,7 +7,7 @@ export declare const __debug: {
7
7
  /** The reservation domain object. */
8
8
  export interface Reservation {
9
9
  /**
10
- * Reservation ID. Read-Only.
10
+ * Reservation ID. Read-only.
11
11
  * @readonly
12
12
  */
13
13
  _id?: string | null;
@@ -21,9 +21,9 @@ export interface Reservation {
21
21
  * Reservation source.
22
22
  *
23
23
  * This indicates how the reservation was made.
24
- * `ONLINE` indicates that the customer made the reservation through a website or app.
25
- * `OFFLINE` indicates that the reservation was made by a restaurant employee, for example when a customer calls to make a reservation.
26
- * `WALK-IN` indicates that the customer did not make a reservation beforehand, and the reservation was entered into the system by a restaurant employee when the customer arrived at the restaurant.
24
+ * * `ONLINE` indicates that the customer made the reservation through a website or app.
25
+ * * `OFFLINE` indicates that the reservation was made by a restaurant employee, for example when a customer calls to make a reservation.
26
+ * * `WALK-IN` indicates that the customer did not make a reservation beforehand, and the reservation was entered into the system by a restaurant employee when the customer arrived at the restaurant.
27
27
  */
28
28
  source?: Source;
29
29
  /** Reservation details. */
@@ -96,7 +96,7 @@ export declare enum Source {
96
96
  export interface Details {
97
97
  /** ID of the reservation location at which this reservation will be made. */
98
98
  reservationLocationId?: string | null;
99
- /** Table IDs of tables used for this reservation. */
99
+ /** IDs of tables used for this reservation. */
100
100
  tableIds?: string[] | null;
101
101
  /** Start date and time of the reservation. */
102
102
  startDate?: Date;
@@ -120,17 +120,17 @@ export interface Reservee {
120
120
  /**
121
121
  * Phone number.
122
122
  *
123
- * (This field should begin with a +, followed by the country code, then the rest of the phone number.)
123
+ * This property should begin with a +, followed by the country code, and then the rest of the phone number.
124
124
  *
125
125
  * This field is required if the reservation's `status` is anything other than `WALK_IN`.
126
126
  */
127
127
  phone?: string | null;
128
- /** Whether the reserve has given marketing consent. */
128
+ /** Whether the reservee has given marketing consent. */
129
129
  marketingConsent?: boolean | null;
130
130
  /**
131
131
  * Custom fields for the reservee in key-value pairs.
132
132
  *
133
- * The key is the custom field's ID, and the value is the custom field's value.
133
+ * The key is the custom field's ID, and the value is the custom field's value. For example, a custom field for allergies might have the key-value pair `f4283b2d-6340-4cf9-bae7-8769e6b62127 : "Nuts, Seafood"`.
134
134
  *
135
135
  * Empty fields are not returned.
136
136
  */
@@ -155,9 +155,9 @@ export interface MigrationNote {
155
155
  export interface CreateReservationRequest {
156
156
  /** Reservation details. */
157
157
  reservation: Reservation;
158
- /** Ignore table combination conflicts. This will ensure that the reservation is created even if the required tables are already reserved. */
158
+ /** Ignore table combination conflicts. This ensures that the reservation is created even if the required tables are already reserved. */
159
159
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
160
- /** Ignore reservation location conflicts. This will ensure that the reservation is created even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
160
+ /** Ignore reservation location conflicts. This ensures that the reservation is created even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
161
161
  ignoreReservationLocationConflicts?: Type[];
162
162
  }
163
163
  export declare enum TableCombinationConflictType {
@@ -213,9 +213,9 @@ export interface GetReservationResponse {
213
213
  export interface UpdateReservationRequest {
214
214
  /** Reservation information to update. */
215
215
  reservation: Reservation;
216
- /** Ignored table combination conflicts. This will ensure that the reservation is updated even if the required tables are already reserved. */
216
+ /** Ignored table combination conflicts. This ensures that the reservation is updated even if the required tables are already reserved. */
217
217
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
218
- /** Ignored reservation location conflicts. This will ensure that the reservation is updated even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
218
+ /** Ignored reservation location conflicts. This ensures that the reservation is updated even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
219
219
  ignoreReservationLocationConflicts?: Type[];
220
220
  }
221
221
  export interface UpdateReservationResponse {
@@ -229,7 +229,7 @@ export interface ReservationDataUpdated {
229
229
  oldReservation?: Reservation;
230
230
  }
231
231
  export interface CreateHeldReservationRequest {
232
- /** `HELD` reservation information to update. */
232
+ /** Held reservation information to update. */
233
233
  reservationDetails: HeldReservationDetails;
234
234
  }
235
235
  /** Reservation details when create reservation in status HELD. */
@@ -295,13 +295,13 @@ export interface DeleteReservationResponse {
295
295
  export interface ListReservationsRequest {
296
296
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
297
297
  paging?: CursorPaging;
298
- /** The way how reservations in response should be sorted. */
298
+ /** Defines how reservations in the response are sorted. */
299
299
  sort?: Sorting;
300
- /** Start date from. */
300
+ /** Only reservations starting after this date are returned. */
301
301
  startDateFrom?: Date;
302
- /** Start date to. */
302
+ /** Only reservations starting before this date are returned. */
303
303
  startDateTo?: Date;
304
- /** Only reservations with this status should be returned. */
304
+ /** Only reservations with this status are returned. */
305
305
  status?: Status;
306
306
  }
307
307
  export interface CursorPaging {
@@ -534,9 +534,9 @@ export interface QueryReservationsResponseNonNullableFields {
534
534
  */
535
535
  export declare function createReservation(reservation: Reservation, options?: CreateReservationOptions): Promise<CreateReservationResponse & CreateReservationResponseNonNullableFields>;
536
536
  export interface CreateReservationOptions {
537
- /** Ignore table combination conflicts. This will ensure that the reservation is created even if the required tables are already reserved. */
537
+ /** Ignore table combination conflicts. This ensures that the reservation is created even if the required tables are already reserved. */
538
538
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
539
- /** Ignore reservation location conflicts. This will ensure that the reservation is created even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
539
+ /** Ignore reservation location conflicts. This ensures that the reservation is created even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
540
540
  ignoreReservationLocationConflicts?: Type[];
541
541
  }
542
542
  /**
@@ -569,8 +569,11 @@ export interface GetReservationOptions {
569
569
  /**
570
570
  * Updates a reservation.
571
571
  *
572
+ * The fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, and `ignoreTableCombinationConflicts` should only be included in the request if the call is made by a user with the `MANAGE RESERVATIONS (FULL)` permission scope.
573
+ * Including these fields in the request without the required permissions results in an application error.
574
+ *
572
575
  * Each time the reservation is updated, revision increments by 1. The existing revision must be included when updating the reservation. This ensures you're working with the latest reservation information, and it prevents unintended overwrites.
573
- * @param _id - Reservation ID. Read-Only.
576
+ * @param _id - Reservation ID. Read-only.
574
577
  * @public
575
578
  * @documentationMaturity preview
576
579
  * @requiredField _id
@@ -584,7 +587,7 @@ export interface GetReservationOptions {
584
587
  export declare function updateReservation(_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions): Promise<UpdateReservationResponse & UpdateReservationResponseNonNullableFields>;
585
588
  export interface UpdateReservation {
586
589
  /**
587
- * Reservation ID. Read-Only.
590
+ * Reservation ID. Read-only.
588
591
  * @readonly
589
592
  */
590
593
  _id?: string | null;
@@ -598,9 +601,9 @@ export interface UpdateReservation {
598
601
  * Reservation source.
599
602
  *
600
603
  * This indicates how the reservation was made.
601
- * `ONLINE` indicates that the customer made the reservation through a website or app.
602
- * `OFFLINE` indicates that the reservation was made by a restaurant employee, for example when a customer calls to make a reservation.
603
- * `WALK-IN` indicates that the customer did not make a reservation beforehand, and the reservation was entered into the system by a restaurant employee when the customer arrived at the restaurant.
604
+ * * `ONLINE` indicates that the customer made the reservation through a website or app.
605
+ * * `OFFLINE` indicates that the reservation was made by a restaurant employee, for example when a customer calls to make a reservation.
606
+ * * `WALK-IN` indicates that the customer did not make a reservation beforehand, and the reservation was entered into the system by a restaurant employee when the customer arrived at the restaurant.
604
607
  */
605
608
  source?: Source;
606
609
  /** Reservation details. */
@@ -642,18 +645,20 @@ export interface UpdateReservation {
642
645
  declineReason?: string | null;
643
646
  }
644
647
  export interface UpdateReservationOptions {
645
- /** Ignored table combination conflicts. This will ensure that the reservation is updated even if the required tables are already reserved. */
648
+ /** Ignored table combination conflicts. This ensures that the reservation is updated even if the required tables are already reserved. */
646
649
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
647
- /** Ignored reservation location conflicts. This will ensure that the reservation is updated even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
650
+ /** Ignored reservation location conflicts. This ensures that the reservation is updated even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
648
651
  ignoreReservationLocationConflicts?: Type[];
649
652
  }
650
653
  /**
651
- * Creates a new reservation with the `HELD` status.
654
+ * Creates a new temporary reservation and holds it for the customer for 10 minutes.
655
+ *
656
+ * Creates a new reservation with the `HELD` status. `HELD` reservations are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
652
657
  *
653
- * Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
658
+ * You cannot call [`Update Reservation`](#update-reservation) to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use [`Reserve Reservation`](#reserve-reservation).
654
659
  *
655
- * You cannot call [`Update Reservation`](#update-reservation) to change a reservation’s status from `HELD`. Trying to do so will return an error.
656
- * @param reservationDetails - `HELD` reservation information to update.
660
+ * If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using [`Create Reservation`](#create-reservation).
661
+ * @param reservationDetails - Held reservation information to update.
657
662
  * @public
658
663
  * @documentationMaturity preview
659
664
  * @requiredField reservationDetails
@@ -669,9 +674,14 @@ export interface UpdateReservationOptions {
669
674
  */
670
675
  export declare function createHeldReservation(reservationDetails: HeldReservationDetails): Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
671
676
  /**
672
- * Reserves or requests a `HELD` reservation.
677
+ * Reserves or requests a held reservation.
678
+ *
679
+ * Held reservations are temporary reservations with the `HELD` status created by the [`Create Held Reservation`](#create-held-reservation) endpoint.
680
+ * They are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to call `Reserve Reservation` with a held reservation older than 10 minutes returns an error.
673
681
  *
674
- * `Reserve Reservation` changes a reservation's `HELD` status to `RESERVED`, or to `REQUESTED` if the reservation's reservation location requires manual approval.
682
+ * `Reserve Reservation` changes a reservation's `HELD` status to:
683
+ * * `RESERVED` if the reservation's reservation location does not require manual approval.
684
+ * * `REQUESTED` if the reservation's reservation location requires manual approval.
675
685
  * @param reservationId - Reservation ID.
676
686
  * @param reservee - Reservee details.
677
687
  * @param revision - Revision number.
@@ -730,13 +740,13 @@ export declare function listReservations(options?: ListReservationsOptions): Pro
730
740
  export interface ListReservationsOptions {
731
741
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
732
742
  paging?: CursorPaging;
733
- /** The way how reservations in response should be sorted. */
743
+ /** Defines how reservations in the response are sorted. */
734
744
  sort?: Sorting;
735
- /** Start date from. */
745
+ /** Only reservations starting after this date are returned. */
736
746
  startDateFrom?: Date;
737
- /** Start date to. */
747
+ /** Only reservations starting before this date are returned. */
738
748
  startDateTo?: Date;
739
- /** Only reservations with this status should be returned. */
749
+ /** Only reservations with this status are returned. */
740
750
  status?: Status;
741
751
  }
742
752
  /**
@@ -237,8 +237,11 @@ export function getReservation(reservationId, options) {
237
237
  /**
238
238
  * Updates a reservation.
239
239
  *
240
+ * The fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, and `ignoreTableCombinationConflicts` should only be included in the request if the call is made by a user with the `MANAGE RESERVATIONS (FULL)` permission scope.
241
+ * Including these fields in the request without the required permissions results in an application error.
242
+ *
240
243
  * Each time the reservation is updated, revision increments by 1. The existing revision must be included when updating the reservation. This ensures you're working with the latest reservation information, and it prevents unintended overwrites.
241
- * @param _id - Reservation ID. Read-Only.
244
+ * @param _id - Reservation ID. Read-only.
242
245
  * @public
243
246
  * @documentationMaturity preview
244
247
  * @requiredField _id
@@ -299,12 +302,14 @@ export function updateReservation(_id, reservation, options) {
299
302
  });
300
303
  }
301
304
  /**
302
- * Creates a new reservation with the `HELD` status.
305
+ * Creates a new temporary reservation and holds it for the customer for 10 minutes.
306
+ *
307
+ * Creates a new reservation with the `HELD` status. `HELD` reservations are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
303
308
  *
304
- * Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
309
+ * You cannot call [`Update Reservation`](#update-reservation) to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use [`Reserve Reservation`](#reserve-reservation).
305
310
  *
306
- * You cannot call [`Update Reservation`](#update-reservation) to change a reservation’s status from `HELD`. Trying to do so will return an error.
307
- * @param reservationDetails - `HELD` reservation information to update.
311
+ * If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using [`Create Reservation`](#create-reservation).
312
+ * @param reservationDetails - Held reservation information to update.
308
313
  * @public
309
314
  * @documentationMaturity preview
310
315
  * @requiredField reservationDetails
@@ -362,9 +367,14 @@ export function createHeldReservation(reservationDetails) {
362
367
  });
363
368
  }
364
369
  /**
365
- * Reserves or requests a `HELD` reservation.
370
+ * Reserves or requests a held reservation.
371
+ *
372
+ * Held reservations are temporary reservations with the `HELD` status created by the [`Create Held Reservation`](#create-held-reservation) endpoint.
373
+ * They are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to call `Reserve Reservation` with a held reservation older than 10 minutes returns an error.
366
374
  *
367
- * `Reserve Reservation` changes a reservation's `HELD` status to `RESERVED`, or to `REQUESTED` if the reservation's reservation location requires manual approval.
375
+ * `Reserve Reservation` changes a reservation's `HELD` status to:
376
+ * * `RESERVED` if the reservation's reservation location does not require manual approval.
377
+ * * `REQUESTED` if the reservation's reservation location requires manual approval.
368
378
  * @param reservationId - Reservation ID.
369
379
  * @param reservee - Reservee details.
370
380
  * @param revision - Revision number.