@wix/auto_sdk_table-reservations_reservations 1.0.71 → 1.0.72
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 +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +20 -10
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{table-reservations-v1-reservation-reservations.universal-BIOtx_qX.d.ts → table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.ts} +20 -9
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +20 -10
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{table-reservations-v1-reservation-reservations.universal-BIOtx_qX.d.mts → table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.mts} +20 -9
- package/build/internal/cjs/index.d.ts +2 -2
- 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.map +1 -1
- package/build/internal/cjs/meta.d.ts +20 -10
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/{table-reservations-v1-reservation-reservations.universal-BIOtx_qX.d.ts → table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.ts} +20 -9
- package/build/internal/es/index.d.mts +2 -2
- 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.map +1 -1
- package/build/internal/es/meta.d.mts +20 -10
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/{table-reservations-v1-reservation-reservations.universal-BIOtx_qX.d.mts → table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.mts} +20 -9
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ai as CreateReservationRequest$1, an as CreateReservationResponse$1, aA as GetReservationRequest$1, aB as GetReservationResponse$1, aC as UpdateReservationRequest$1, aD as UpdateReservationResponse$1, aE as CreateHeldReservationRequest$1, f as CreateHeldReservationResponse$1, aF as ReserveReservationRequest$1, i as ReserveReservationResponse$1, aG as CancelReservationRequest$1, l as CancelReservationResponse$1, aI as DeleteReservationRequest$1, aJ as DeleteReservationResponse$1, aK as ListReservationsRequest$1, n as ListReservationsResponse$1, aP as SearchReservationsRequest$1, S as SearchReservationsResponse$1, bq as QueryReservationsRequest$1, bt as QueryReservationsResponse$1, bu as BulkArchiveReservationsRequest$1, B as BulkArchiveReservationsResponse$1, bz as BulkUnarchiveReservationsRequest$1, p as BulkUnarchiveReservationsResponse$1 } from './table-reservations-v1-reservation-reservations.universal-
|
|
1
|
+
import { ai as CreateReservationRequest$1, an as CreateReservationResponse$1, aA as GetReservationRequest$1, aB as GetReservationResponse$1, aC as UpdateReservationRequest$1, aD as UpdateReservationResponse$1, aE as CreateHeldReservationRequest$1, f as CreateHeldReservationResponse$1, aF as ReserveReservationRequest$1, i as ReserveReservationResponse$1, aG as CancelReservationRequest$1, l as CancelReservationResponse$1, aI as DeleteReservationRequest$1, aJ as DeleteReservationResponse$1, aK as ListReservationsRequest$1, n as ListReservationsResponse$1, aP as SearchReservationsRequest$1, S as SearchReservationsResponse$1, bq as QueryReservationsRequest$1, bt as QueryReservationsResponse$1, bu as BulkArchiveReservationsRequest$1, B as BulkArchiveReservationsResponse$1, bz as BulkUnarchiveReservationsRequest$1, p as BulkUnarchiveReservationsResponse$1 } from './table-reservations-v1-reservation-reservations.universal-CGxsEHpN.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** The reservation domain object. */
|
|
@@ -267,7 +267,7 @@ interface CancellationPolicy {
|
|
|
267
267
|
paymentMethod?: PaymentMethodWithLiterals;
|
|
268
268
|
/** Prepayment terms. Only populated when `payment_method` is `PREPAYMENT`. */
|
|
269
269
|
prepayment?: Prepayment;
|
|
270
|
-
/** Cancellation and no-show fee terms.
|
|
270
|
+
/** Cancellation and no-show fee terms. Populated when `payment_method` is `CARD_GUARANTEE` or `PREPAYMENT`. */
|
|
271
271
|
cancellationFee?: CancellationFee;
|
|
272
272
|
/** Guest-facing policy text or URL shown to the guest before they confirm their reservation. */
|
|
273
273
|
guestPolicy?: GuestPolicy;
|
|
@@ -283,11 +283,12 @@ type FeeUnitWithLiterals = FeeUnit | 'PER_GUEST' | 'PER_RESERVATION';
|
|
|
283
283
|
/** Free-cancellation window before the reservation start time. */
|
|
284
284
|
interface FreeCancellationWindow {
|
|
285
285
|
/**
|
|
286
|
-
* Duration of the window expressed in the chosen `unit`. The
|
|
286
|
+
* Duration of the window expressed in the chosen `unit`. The window must be between 1 hour and 180 days.
|
|
287
|
+
* When `unit` is `HOURS`, the maximum is 4320. When `unit` is `DAYS`, the maximum is 180.
|
|
287
288
|
* @min 1
|
|
288
289
|
* @max 4320
|
|
289
290
|
*/
|
|
290
|
-
|
|
291
|
+
number?: number;
|
|
291
292
|
/** Time unit for the window duration. */
|
|
292
293
|
unit?: WindowUnitWithLiterals;
|
|
293
294
|
}
|
|
@@ -302,14 +303,17 @@ type WindowUnitWithLiterals = WindowUnit | 'HOURS' | 'DAYS';
|
|
|
302
303
|
declare enum PaymentMethod {
|
|
303
304
|
/** Payment protection and cancellation fees are disabled for new reservations. */
|
|
304
305
|
NO_PAYMENT_METHOD = "NO_PAYMENT_METHOD",
|
|
305
|
-
/** Guest pays before the reservation
|
|
306
|
+
/** Guest pays upfront before the reservation is confirmed. A cancellation or no-show fee may apply when the reservation is cancelled late or the guest doesn't show up. */
|
|
306
307
|
PREPAYMENT = "PREPAYMENT",
|
|
307
308
|
/** Guest provides a payment method that may be charged after late cancellation or no-show. */
|
|
308
309
|
CARD_GUARANTEE = "CARD_GUARANTEE"
|
|
309
310
|
}
|
|
310
311
|
/** @enumType */
|
|
311
312
|
type PaymentMethodWithLiterals = PaymentMethod | 'NO_PAYMENT_METHOD' | 'PREPAYMENT' | 'CARD_GUARANTEE';
|
|
312
|
-
/**
|
|
313
|
+
/**
|
|
314
|
+
* Prepayment fee terms. A cancellation or no-show fee may apply based on these terms
|
|
315
|
+
* when the reservation is cancelled late or the guest doesn't show up.
|
|
316
|
+
*/
|
|
313
317
|
interface Prepayment {
|
|
314
318
|
/**
|
|
315
319
|
* Monetary amount to collect per unit. Must be a decimal string with a period as a decimal separator. For example, `"3.99"`.
|
|
@@ -358,7 +362,12 @@ interface GuestPolicy extends GuestPolicyValueOneOf {
|
|
|
358
362
|
* @maxLength 2048
|
|
359
363
|
*/
|
|
360
364
|
url?: string | null;
|
|
361
|
-
/**
|
|
365
|
+
/**
|
|
366
|
+
* Whether the guest-facing policy text was auto-generated from a pre-defined template that interpolates
|
|
367
|
+
* the configured fee terms (amount, fee unit, free-cancellation window). When `false`, the text was
|
|
368
|
+
* written manually by the restaurant owner. Applies only when the `value` oneof is `text`; has no
|
|
369
|
+
* effect when a `url` is provided.
|
|
370
|
+
*/
|
|
362
371
|
generated?: boolean;
|
|
363
372
|
}
|
|
364
373
|
/** @oneof */
|
|
@@ -374,13 +383,14 @@ interface GuestPolicyValueOneOf {
|
|
|
374
383
|
*/
|
|
375
384
|
url?: string | null;
|
|
376
385
|
}
|
|
377
|
-
/**
|
|
386
|
+
/** Cancellation or no-show fee action state for a reservation. */
|
|
378
387
|
interface CancellationFeeState {
|
|
379
388
|
/**
|
|
380
|
-
* Whether
|
|
389
|
+
* Whether a cancellation or no-show fee is currently applicable for this reservation and can be initiated by the
|
|
390
|
+
* restaurant owner. Relevant for both `PREPAYMENT` and `CARD_GUARANTEE` payment methods.
|
|
381
391
|
* @readonly
|
|
382
392
|
*/
|
|
383
|
-
|
|
393
|
+
applicable?: boolean | null;
|
|
384
394
|
}
|
|
385
395
|
interface ReservationDelayedDomainEvent extends ReservationDelayedDomainEventBodyTypeOneOf {
|
|
386
396
|
/** Body of a created reservation event. */
|