@wix/auto_sdk_table-reservations_reservations 1.0.37 → 1.0.39
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.d.ts +3 -3
- package/build/cjs/index.js +8 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +8 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +31 -13
- package/build/cjs/meta.js +0 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{table-reservations-v1-reservation-reservations.universal-BiohAEHh.d.ts → table-reservations-v1-reservation-reservations.universal-nFEfinIM.d.ts} +51 -17
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +8 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +8 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +31 -13
- package/build/es/meta.mjs +0 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{table-reservations-v1-reservation-reservations.universal-BiohAEHh.d.mts → table-reservations-v1-reservation-reservations.universal-nFEfinIM.d.mts} +51 -17
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.js +8 -5
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +8 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +31 -13
- package/build/internal/cjs/meta.js +0 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/{table-reservations-v1-reservation-reservations.universal-BiohAEHh.d.ts → table-reservations-v1-reservation-reservations.universal-nFEfinIM.d.ts} +51 -17
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.mjs +8 -5
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +8 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +31 -13
- package/build/internal/es/meta.mjs +0 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/{table-reservations-v1-reservation-reservations.universal-BiohAEHh.d.mts → table-reservations-v1-reservation-reservations.universal-nFEfinIM.d.mts} +51 -17
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a5 as CreateReservationRequest$1, aa as CreateReservationResponse$1, ak as GetReservationRequest$1, al as GetReservationResponse$1, am as UpdateReservationRequest$1, an as UpdateReservationResponse$1, ao as CreateHeldReservationRequest$1, f as CreateHeldReservationResponse$1, ap as ReserveReservationRequest$1, i as ReserveReservationResponse$1, aq as CancelReservationRequest$1, l as CancelReservationResponse$1, as as DeleteReservationRequest$1, at as DeleteReservationResponse$1, au as ListReservationsRequest$1, n as ListReservationsResponse$1, az as QueryReservationsRequest$1, aC as QueryReservationsResponse$1, aD as SearchReservationsRequest$1, S as SearchReservationsResponse$1, bc as BulkArchiveReservationsRequest$1, B as BulkArchiveReservationsResponse$1, bh as BulkUnarchiveReservationsRequest$1, q as BulkUnarchiveReservationsResponse$1 } from './table-reservations-v1-reservation-reservations.universal-
|
|
1
|
+
import { a5 as CreateReservationRequest$1, aa as CreateReservationResponse$1, ak as GetReservationRequest$1, al as GetReservationResponse$1, am as UpdateReservationRequest$1, an as UpdateReservationResponse$1, ao as CreateHeldReservationRequest$1, f as CreateHeldReservationResponse$1, ap as ReserveReservationRequest$1, i as ReserveReservationResponse$1, aq as CancelReservationRequest$1, l as CancelReservationResponse$1, as as DeleteReservationRequest$1, at as DeleteReservationResponse$1, au as ListReservationsRequest$1, n as ListReservationsResponse$1, az as QueryReservationsRequest$1, aC as QueryReservationsResponse$1, aD as SearchReservationsRequest$1, S as SearchReservationsResponse$1, bc as BulkArchiveReservationsRequest$1, B as BulkArchiveReservationsResponse$1, bh as BulkUnarchiveReservationsRequest$1, q as BulkUnarchiveReservationsResponse$1 } from './table-reservations-v1-reservation-reservations.universal-nFEfinIM.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** The reservation domain object. */
|
|
@@ -33,7 +33,7 @@ interface Reservation {
|
|
|
33
33
|
/**
|
|
34
34
|
* Information about the person making the reservation.
|
|
35
35
|
*
|
|
36
|
-
* This field is required if the reservation's `
|
|
36
|
+
* This field is required if the reservation's `source` is anything other than `WALK_IN`.
|
|
37
37
|
* @readonly
|
|
38
38
|
*/
|
|
39
39
|
reservedBy?: ReservedBy;
|
|
@@ -115,12 +115,11 @@ declare enum Status {
|
|
|
115
115
|
REQUESTED = "REQUESTED",
|
|
116
116
|
/** The restaurant’s owner or staff declined the customer’s request to make the reservation. */
|
|
117
117
|
DECLINED = "DECLINED",
|
|
118
|
-
PAYMENT_PENDING = "PAYMENT_PENDING",
|
|
119
118
|
/** The reservation is awaiting payment. It will expire in 10 minutes from the created time unless the customer provides payment information. This phase temporarily reserves the required number of seats and tables for the given party size at the chosen time. */
|
|
120
119
|
PAYMENT_INFORMATION_PENDING = "PAYMENT_INFORMATION_PENDING"
|
|
121
120
|
}
|
|
122
121
|
/** @enumType */
|
|
123
|
-
type StatusWithLiterals = Status | 'UNKNOWN' | 'HELD' | 'RESERVED' | 'CANCELED' | 'FINISHED' | 'NO_SHOW' | 'SEATED' | 'REQUESTED' | 'DECLINED' | '
|
|
122
|
+
type StatusWithLiterals = Status | 'UNKNOWN' | 'HELD' | 'RESERVED' | 'CANCELED' | 'FINISHED' | 'NO_SHOW' | 'SEATED' | 'REQUESTED' | 'DECLINED' | 'PAYMENT_INFORMATION_PENDING';
|
|
124
123
|
declare enum Source {
|
|
125
124
|
/** Undefined reservation source. */
|
|
126
125
|
UNKNOWN = "UNKNOWN",
|
|
@@ -167,7 +166,7 @@ interface Reservee {
|
|
|
167
166
|
/**
|
|
168
167
|
* First name.
|
|
169
168
|
*
|
|
170
|
-
* This field is required if the reservation's `
|
|
169
|
+
* This field is required if the reservation's `source` is anything other than `WALK_IN`.
|
|
171
170
|
* @maxLength 1000
|
|
172
171
|
*/
|
|
173
172
|
firstName?: string | null;
|
|
@@ -186,7 +185,7 @@ interface Reservee {
|
|
|
186
185
|
*
|
|
187
186
|
* This property should begin with a +, followed by the country code, and then the rest of the phone number. For example, `"+972555555555"`.
|
|
188
187
|
*
|
|
189
|
-
* This field is required if the reservation's `
|
|
188
|
+
* This field is required if the reservation's `source` is anything other than `WALK_IN`.
|
|
190
189
|
* @format PHONE
|
|
191
190
|
*/
|
|
192
191
|
phone?: string | null;
|
|
@@ -305,6 +304,9 @@ interface CreateReservationRequest {
|
|
|
305
304
|
* * `"TOO_SMALL"`: The party is too small for the selected table.
|
|
306
305
|
* * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
|
|
307
306
|
* @maxSize 10
|
|
307
|
+
* @deprecated
|
|
308
|
+
* @replacedBy ignore_conflicts
|
|
309
|
+
* @targetRemovalDate 2025-12-05
|
|
308
310
|
*/
|
|
309
311
|
ignoreTableCombinationConflicts?: TableCombinationConflictTypeWithLiterals[];
|
|
310
312
|
/**
|
|
@@ -314,8 +316,13 @@ interface CreateReservationRequest {
|
|
|
314
316
|
* * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
|
|
315
317
|
* * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
|
|
316
318
|
* @maxSize 10
|
|
319
|
+
* @deprecated
|
|
320
|
+
* @replacedBy ignore_conflicts
|
|
321
|
+
* @targetRemovalDate 2025-12-05
|
|
317
322
|
*/
|
|
318
323
|
ignoreReservationLocationConflicts?: ReservationLocationConflictTypeWithLiterals[];
|
|
324
|
+
/** Conflicts to ignore. */
|
|
325
|
+
ignoreConflicts?: IgnoreConflicts;
|
|
319
326
|
}
|
|
320
327
|
declare enum TableCombinationConflictType {
|
|
321
328
|
/** Undefined conflict type. */
|
|
@@ -433,11 +440,17 @@ interface ReservationDetailsConflicts {
|
|
|
433
440
|
/**
|
|
434
441
|
* Table combinations conflicts.
|
|
435
442
|
* @maxSize 10
|
|
443
|
+
* @deprecated
|
|
444
|
+
* @replacedBy conflicts
|
|
445
|
+
* @targetRemovalDate 2025-12-05
|
|
436
446
|
*/
|
|
437
447
|
tableCombinationConflicts?: TableCombinationConflict[];
|
|
438
448
|
/**
|
|
439
449
|
* Reservation location conflicts.
|
|
440
450
|
* @maxSize 10
|
|
451
|
+
* @deprecated
|
|
452
|
+
* @replacedBy conflicts
|
|
453
|
+
* @targetRemovalDate 2025-12-05
|
|
441
454
|
*/
|
|
442
455
|
reservationLocationConflicts?: ReservationLocationConflict[];
|
|
443
456
|
/** Conflicts. */
|
|
@@ -518,10 +531,7 @@ interface GetReservationRequest {
|
|
|
518
531
|
fieldsets?: SetWithLiterals[];
|
|
519
532
|
}
|
|
520
533
|
declare enum Set {
|
|
521
|
-
/**
|
|
522
|
-
* Returns `id`, `status`, `details.reservationLocationId`, `details.startDate`, `details.endDate`, `details.partySize`, `createdDate`, `revision`, `declineReason`,
|
|
523
|
-
* `configuration.reservationForm.customFieldDefinitions`, `configuration.reservationForm.lastNameRequired`, `configuration.reservationForm.emailRequired`, `configuration.reservationForm.emailMarketingCheckbox`.
|
|
524
|
-
*/
|
|
534
|
+
/** Returns `id`, `status`, `details.reservationLocationId`, `details.experienceId`, `details.startDate`, `details.endDate`, `details.partySize`, `createdDate`, `revision`, `declineReason`, `paymentStatus`. */
|
|
525
535
|
PUBLIC = "PUBLIC",
|
|
526
536
|
/** Returns all fields. */
|
|
527
537
|
FULL = "FULL"
|
|
@@ -538,10 +548,20 @@ interface UpdateReservationRequest {
|
|
|
538
548
|
/**
|
|
539
549
|
* Ignore table combination conflicts of the types included in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
|
|
540
550
|
* @maxSize 10
|
|
551
|
+
* @deprecated
|
|
552
|
+
* @replacedBy ignore_conflicts
|
|
553
|
+
* @targetRemovalDate 2025-12-05
|
|
541
554
|
*/
|
|
542
555
|
ignoreTableCombinationConflicts?: TableCombinationConflictTypeWithLiterals[];
|
|
543
|
-
/**
|
|
556
|
+
/**
|
|
557
|
+
* @maxSize 10
|
|
558
|
+
* @deprecated
|
|
559
|
+
* @replacedBy ignore_conflicts
|
|
560
|
+
* @targetRemovalDate 2025-12-05
|
|
561
|
+
*/
|
|
544
562
|
ignoreReservationLocationConflicts?: ReservationLocationConflictTypeWithLiterals[];
|
|
563
|
+
/** Conflicts to ignore. */
|
|
564
|
+
ignoreConflicts?: IgnoreConflicts;
|
|
545
565
|
}
|
|
546
566
|
interface UpdateReservationResponse {
|
|
547
567
|
/** Reservation. */
|
|
@@ -605,8 +625,6 @@ interface CancelReservationRequest {
|
|
|
605
625
|
/**
|
|
606
626
|
* The phone number that was provided when the reservation was created.
|
|
607
627
|
*
|
|
608
|
-
* This is required for reservations with any `source` other than `WALK_IN`.
|
|
609
|
-
*
|
|
610
628
|
* This requirement provides additional security by ensuring that the canceling party knows both the reservation's `reservationId` and the reservee's `phone`.
|
|
611
629
|
* @format PHONE
|
|
612
630
|
*/
|
package/build/cjs/meta.js
CHANGED
|
@@ -602,7 +602,6 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
602
602
|
Status2["SEATED"] = "SEATED";
|
|
603
603
|
Status2["REQUESTED"] = "REQUESTED";
|
|
604
604
|
Status2["DECLINED"] = "DECLINED";
|
|
605
|
-
Status2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
606
605
|
Status2["PAYMENT_INFORMATION_PENDING"] = "PAYMENT_INFORMATION_PENDING";
|
|
607
606
|
return Status2;
|
|
608
607
|
})(Status || {});
|