@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
|
@@ -279,7 +279,7 @@ interface CancellationPolicy {
|
|
|
279
279
|
paymentMethod?: PaymentMethodWithLiterals;
|
|
280
280
|
/** Prepayment terms. Only populated when `payment_method` is `PREPAYMENT`. */
|
|
281
281
|
prepayment?: Prepayment;
|
|
282
|
-
/** Cancellation and no-show fee terms.
|
|
282
|
+
/** Cancellation and no-show fee terms. Populated when `payment_method` is `CARD_GUARANTEE` or `PREPAYMENT`. */
|
|
283
283
|
cancellationFee?: CancellationFee;
|
|
284
284
|
/** Guest-facing policy text or URL shown to the guest before they confirm their reservation. */
|
|
285
285
|
guestPolicy?: GuestPolicy;
|
|
@@ -295,11 +295,12 @@ type FeeUnitWithLiterals = FeeUnit | 'PER_GUEST' | 'PER_RESERVATION';
|
|
|
295
295
|
/** Free-cancellation window before the reservation start time. */
|
|
296
296
|
interface FreeCancellationWindow {
|
|
297
297
|
/**
|
|
298
|
-
* Duration of the window expressed in the chosen `unit`. The
|
|
298
|
+
* Duration of the window expressed in the chosen `unit`. The window must be between 1 hour and 180 days.
|
|
299
|
+
* When `unit` is `HOURS`, the maximum is 4320. When `unit` is `DAYS`, the maximum is 180.
|
|
299
300
|
* @min 1
|
|
300
301
|
* @max 4320
|
|
301
302
|
*/
|
|
302
|
-
|
|
303
|
+
number?: number;
|
|
303
304
|
/** Time unit for the window duration. */
|
|
304
305
|
unit?: WindowUnitWithLiterals;
|
|
305
306
|
}
|
|
@@ -314,14 +315,17 @@ type WindowUnitWithLiterals = WindowUnit | 'HOURS' | 'DAYS';
|
|
|
314
315
|
declare enum PaymentMethod {
|
|
315
316
|
/** Payment protection and cancellation fees are disabled for new reservations. */
|
|
316
317
|
NO_PAYMENT_METHOD = "NO_PAYMENT_METHOD",
|
|
317
|
-
/** Guest pays before the reservation
|
|
318
|
+
/** 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. */
|
|
318
319
|
PREPAYMENT = "PREPAYMENT",
|
|
319
320
|
/** Guest provides a payment method that may be charged after late cancellation or no-show. */
|
|
320
321
|
CARD_GUARANTEE = "CARD_GUARANTEE"
|
|
321
322
|
}
|
|
322
323
|
/** @enumType */
|
|
323
324
|
type PaymentMethodWithLiterals = PaymentMethod | 'NO_PAYMENT_METHOD' | 'PREPAYMENT' | 'CARD_GUARANTEE';
|
|
324
|
-
/**
|
|
325
|
+
/**
|
|
326
|
+
* Prepayment fee terms. A cancellation or no-show fee may apply based on these terms
|
|
327
|
+
* when the reservation is cancelled late or the guest doesn't show up.
|
|
328
|
+
*/
|
|
325
329
|
interface Prepayment {
|
|
326
330
|
/**
|
|
327
331
|
* Monetary amount to collect per unit. Must be a decimal string with a period as a decimal separator. For example, `"3.99"`.
|
|
@@ -370,7 +374,12 @@ interface GuestPolicy extends GuestPolicyValueOneOf {
|
|
|
370
374
|
* @maxLength 2048
|
|
371
375
|
*/
|
|
372
376
|
url?: string | null;
|
|
373
|
-
/**
|
|
377
|
+
/**
|
|
378
|
+
* Whether the guest-facing policy text was auto-generated from a pre-defined template that interpolates
|
|
379
|
+
* the configured fee terms (amount, fee unit, free-cancellation window). When `false`, the text was
|
|
380
|
+
* written manually by the restaurant owner. Applies only when the `value` oneof is `text`; has no
|
|
381
|
+
* effect when a `url` is provided.
|
|
382
|
+
*/
|
|
374
383
|
generated?: boolean;
|
|
375
384
|
}
|
|
376
385
|
/** @oneof */
|
|
@@ -386,13 +395,14 @@ interface GuestPolicyValueOneOf {
|
|
|
386
395
|
*/
|
|
387
396
|
url?: string | null;
|
|
388
397
|
}
|
|
389
|
-
/**
|
|
398
|
+
/** Cancellation or no-show fee action state for a reservation. */
|
|
390
399
|
interface CancellationFeeState {
|
|
391
400
|
/**
|
|
392
|
-
* Whether
|
|
401
|
+
* Whether a cancellation or no-show fee is currently applicable for this reservation and can be initiated by the
|
|
402
|
+
* restaurant owner. Relevant for both `PREPAYMENT` and `CARD_GUARANTEE` payment methods.
|
|
393
403
|
* @readonly
|
|
394
404
|
*/
|
|
395
|
-
|
|
405
|
+
applicable?: boolean | null;
|
|
396
406
|
}
|
|
397
407
|
interface ReservationDelayedDomainEvent extends ReservationDelayedDomainEventBodyTypeOneOf {
|
|
398
408
|
/** Body of a created reservation event. */
|
|
@@ -2419,6 +2429,7 @@ declare const utils: {
|
|
|
2419
2429
|
search: {
|
|
2420
2430
|
SearchBuilder: () => _wix_sdk_types.SearchBuilder<Reservation, ReservationSearchSpec, ReservationSearch>;
|
|
2421
2431
|
Filter: _wix_sdk_types.FilterFactory<Reservation, ReservationSearchSpec>;
|
|
2432
|
+
/** Minimum value. */
|
|
2422
2433
|
Sort: _wix_sdk_types.SortFactory<ReservationSearchSpec>;
|
|
2423
2434
|
SearchParams: _wix_sdk_types.SearchParamsFactory<ReservationSearchSpec>;
|
|
2424
2435
|
Aggregation: _wix_sdk_types.AggregationFactory<ReservationSearchSpec>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { R as Reservation, C as CreateReservationOptions, a as CreateReservationApplicationErrors, b as CreateReservationValidationErrors, G as GetReservationOptions, U as UpdateReservation, c as UpdateReservationOptions, d as UpdateReservationApplicationErrors, e as UpdateReservationValidationErrors, H as HeldReservationDetails, f as CreateHeldReservationResponse, g as CreateHeldReservationApplicationErrors, h as Reservee, i as ReserveReservationResponse, j as ReserveReservationApplicationErrors, k as CancelReservationOptions, l as CancelReservationResponse, m as CancelReservationApplicationErrors, L as ListReservationsOptions, n as ListReservationsResponse, o as ReservationSearch, S as SearchReservationsResponse, B as BulkArchiveReservationsResponse, p as BulkUnarchiveReservationsResponse, q as ReservationCreatedEnvelope, r as ReservationDeletedEnvelope, s as ReservationUpdatedEnvelope, t as ReservationsQueryBuilder, u as ReservationQuery, v as typedQueryReservations } from './table-reservations-v1-reservation-reservations.universal-
|
|
3
|
-
export { bT as AccountInfo, bW as AccountInfoMetadata, bH as ActionEvent, aS as Aggregation, b3 as AggregationData, aT as AggregationKindOneOf, bo as AggregationResults, bp as AggregationResultsResultOneOf, bn as AggregationResultsScalarDateResult, ba as AggregationResultsScalarResult, Z as AggregationType, ck as AggregationTypeWithLiterals, bx as ApplicationError, bU as BaseEventMetadata, by as BulkActionMetadata, bu as BulkArchiveReservationsRequest, bv as BulkArchiveReservationsResult, bz as BulkUnarchiveReservationsRequest, bA as BulkUnarchiveReservationsResult, aG as CancelReservationRequest, a9 as CancellationFee, ac as CancellationFeeState, a6 as CancellationPolicy, co as CommonQueryWithEntityContext, cn as CommonSearchWithEntityContext, aw as Conflicts, av as ConflictsExperienceOptions, ax as ConflictsOptionsOneOf, au as ConflictsStandardOptions, ay as CreateGoogleReservationRequest, az as CreateGoogleReservationResponse, aE as CreateHeldReservationRequest, ai as CreateReservationRequest, an as CreateReservationResponse, aL as CursorPaging, aN as CursorPagingMetadata, br as CursorQuery, bs as CursorQueryPagingMethodOneOf, aQ as CursorSearch, aR as CursorSearchPagingMethodOneOf, aO as Cursors, a_ as DateHistogramAggregation, bj as DateHistogramResult, bl as DateHistogramResults, aI as DeleteReservationRequest, aJ as DeleteReservationResponse, a1 as Details, bB as DomainEvent, bC as DomainEventBodyOneOf, bI as Empty, bD as EntityCreatedEvent, bG as EntityDeletedEvent, bF as EntityUpdatedEvent, bV as EventMetadata, ar as ExperienceBlockingConflict, D as ExperienceBlockingConflictType, c9 as ExperienceBlockingConflictTypeWithLiterals, at as ExperienceConflict, A as ExperienceConflictType, c8 as ExperienceConflictTypeWithLiterals, am as ExperienceOptions, as as ExperienceTableCombinationConflict, E as ExperienceTableCombinationConflictType, c7 as ExperienceTableCombinationConflictTypeWithLiterals, a5 as ExtendedFields, F as FeeUnit, c2 as FeeUnitWithLiterals, a7 as FreeCancellationWindow, aA as GetReservationRequest, aB as GetReservationResponse, bk as GroupByValueResults, aa as GuestPolicy, ab as GuestPolicyValueOneOf, bO as HeadersEntry, bR as IdentificationData, bS as IdentificationDataIdOneOf, aj as IgnoreConflicts, ak as IgnoreConflictsIgnoreConflictsOptionsOneOf, I as IgnoreConflictsType, ca as IgnoreConflictsTypeWithLiterals, aV as IncludeMissingValuesOptions, Y as Interval, cj as IntervalWithLiterals, bw as ItemMetadata, aK as ListReservationsRequest, bQ as MessageEnvelope, a3 as MigrationNote, Q as MissingValues, cg as MissingValuesWithLiterals, _ as Mode, cl as ModeWithLiterals, b1 as NestedAggregation, a$ as NestedAggregationItem, b0 as NestedAggregationItemKindOneOf, b6 as NestedAggregationResults, b7 as NestedAggregationResultsResultOneOf, X as NestedAggregationType, ci as NestedAggregationTypeWithLiterals, bg as NestedResultValue, bh as NestedResultValueResultOneOf, bm as NestedResults, bb as NestedValueAggregationResult, bM as PathParametersEntry, y as PaymentMethod, c4 as PaymentMethodWithLiterals, P as PaymentStatus, c1 as PaymentStatusWithLiterals, a8 as Prepayment, bN as QueryParametersEntry, bq as QueryReservationsRequest, bt as QueryReservationsResponse, aY as RangeAggregation, b5 as RangeAggregationResult, aU as RangeBucket, bd as RangeResult, b9 as RangeResults, bL as RawHttpRequest, bP as RawHttpResponse, bJ as RemoveReservationMigrationNotesRequest, bK as RemoveReservationMigrationNotesResponse, aH as ReservationCanceled, af as ReservationCreated, ad as ReservationDelayedDomainEvent, ae as ReservationDelayedDomainEventBodyTypeOneOf, ah as ReservationDelayedDomainEventReservationCanceled, ao as ReservationDetailsConflicts, aq as ReservationLocationConflict, z as ReservationLocationConflictType, c6 as ReservationLocationConflictTypeWithLiterals, bZ as ReservationQuerySpec, bX as ReservationSearchSpec, ag as ReservationUpdated, bY as ReservationsQueryResult, aF as ReserveReservationRequest, a2 as ReservedBy, bE as RestoreInfo, bi as Results, aZ as ScalarAggregation, bf as ScalarDateResult, be as ScalarResult, V as ScalarType, ch as ScalarTypeWithLiterals, b2 as SearchDetails, aP as SearchReservationsRequest, K as Set, cc as SetWithLiterals, O as SortDirection, cf as SortDirectionWithLiterals, M as SortOrder, cd as SortOrderWithLiterals, N as SortType, ce as SortTypeWithLiterals, aM as Sorting, x as Source, c0 as SourceWithLiterals, al as StandardOptions, w as Status, b$ as StatusWithLiterals, ap as TableCombinationConflict, T as TableCombinationConflictType, c5 as TableCombinationConflictTypeWithLiterals, a4 as TableWithReservationConflicts, a0 as Tables, J as Type, cb as TypeWithLiterals, aC as UpdateReservationRequest, aD as UpdateReservationResponse, aW as ValueAggregation, aX as ValueAggregationOptionsOneOf, b4 as ValueAggregationResult, bc as ValueResult, b8 as ValueResults, $ as WebhookIdentityType, cm as WebhookIdentityTypeWithLiterals, W as WindowUnit, c3 as WindowUnitWithLiterals, b_ as utils } from './table-reservations-v1-reservation-reservations.universal-
|
|
2
|
+
import { R as Reservation, C as CreateReservationOptions, a as CreateReservationApplicationErrors, b as CreateReservationValidationErrors, G as GetReservationOptions, U as UpdateReservation, c as UpdateReservationOptions, d as UpdateReservationApplicationErrors, e as UpdateReservationValidationErrors, H as HeldReservationDetails, f as CreateHeldReservationResponse, g as CreateHeldReservationApplicationErrors, h as Reservee, i as ReserveReservationResponse, j as ReserveReservationApplicationErrors, k as CancelReservationOptions, l as CancelReservationResponse, m as CancelReservationApplicationErrors, L as ListReservationsOptions, n as ListReservationsResponse, o as ReservationSearch, S as SearchReservationsResponse, B as BulkArchiveReservationsResponse, p as BulkUnarchiveReservationsResponse, q as ReservationCreatedEnvelope, r as ReservationDeletedEnvelope, s as ReservationUpdatedEnvelope, t as ReservationsQueryBuilder, u as ReservationQuery, v as typedQueryReservations } from './table-reservations-v1-reservation-reservations.universal-CGxsEHpN.js';
|
|
3
|
+
export { bT as AccountInfo, bW as AccountInfoMetadata, bH as ActionEvent, aS as Aggregation, b3 as AggregationData, aT as AggregationKindOneOf, bo as AggregationResults, bp as AggregationResultsResultOneOf, bn as AggregationResultsScalarDateResult, ba as AggregationResultsScalarResult, Z as AggregationType, ck as AggregationTypeWithLiterals, bx as ApplicationError, bU as BaseEventMetadata, by as BulkActionMetadata, bu as BulkArchiveReservationsRequest, bv as BulkArchiveReservationsResult, bz as BulkUnarchiveReservationsRequest, bA as BulkUnarchiveReservationsResult, aG as CancelReservationRequest, a9 as CancellationFee, ac as CancellationFeeState, a6 as CancellationPolicy, co as CommonQueryWithEntityContext, cn as CommonSearchWithEntityContext, aw as Conflicts, av as ConflictsExperienceOptions, ax as ConflictsOptionsOneOf, au as ConflictsStandardOptions, ay as CreateGoogleReservationRequest, az as CreateGoogleReservationResponse, aE as CreateHeldReservationRequest, ai as CreateReservationRequest, an as CreateReservationResponse, aL as CursorPaging, aN as CursorPagingMetadata, br as CursorQuery, bs as CursorQueryPagingMethodOneOf, aQ as CursorSearch, aR as CursorSearchPagingMethodOneOf, aO as Cursors, a_ as DateHistogramAggregation, bj as DateHistogramResult, bl as DateHistogramResults, aI as DeleteReservationRequest, aJ as DeleteReservationResponse, a1 as Details, bB as DomainEvent, bC as DomainEventBodyOneOf, bI as Empty, bD as EntityCreatedEvent, bG as EntityDeletedEvent, bF as EntityUpdatedEvent, bV as EventMetadata, ar as ExperienceBlockingConflict, D as ExperienceBlockingConflictType, c9 as ExperienceBlockingConflictTypeWithLiterals, at as ExperienceConflict, A as ExperienceConflictType, c8 as ExperienceConflictTypeWithLiterals, am as ExperienceOptions, as as ExperienceTableCombinationConflict, E as ExperienceTableCombinationConflictType, c7 as ExperienceTableCombinationConflictTypeWithLiterals, a5 as ExtendedFields, F as FeeUnit, c2 as FeeUnitWithLiterals, a7 as FreeCancellationWindow, aA as GetReservationRequest, aB as GetReservationResponse, bk as GroupByValueResults, aa as GuestPolicy, ab as GuestPolicyValueOneOf, bO as HeadersEntry, bR as IdentificationData, bS as IdentificationDataIdOneOf, aj as IgnoreConflicts, ak as IgnoreConflictsIgnoreConflictsOptionsOneOf, I as IgnoreConflictsType, ca as IgnoreConflictsTypeWithLiterals, aV as IncludeMissingValuesOptions, Y as Interval, cj as IntervalWithLiterals, bw as ItemMetadata, aK as ListReservationsRequest, bQ as MessageEnvelope, a3 as MigrationNote, Q as MissingValues, cg as MissingValuesWithLiterals, _ as Mode, cl as ModeWithLiterals, b1 as NestedAggregation, a$ as NestedAggregationItem, b0 as NestedAggregationItemKindOneOf, b6 as NestedAggregationResults, b7 as NestedAggregationResultsResultOneOf, X as NestedAggregationType, ci as NestedAggregationTypeWithLiterals, bg as NestedResultValue, bh as NestedResultValueResultOneOf, bm as NestedResults, bb as NestedValueAggregationResult, bM as PathParametersEntry, y as PaymentMethod, c4 as PaymentMethodWithLiterals, P as PaymentStatus, c1 as PaymentStatusWithLiterals, a8 as Prepayment, bN as QueryParametersEntry, bq as QueryReservationsRequest, bt as QueryReservationsResponse, aY as RangeAggregation, b5 as RangeAggregationResult, aU as RangeBucket, bd as RangeResult, b9 as RangeResults, bL as RawHttpRequest, bP as RawHttpResponse, bJ as RemoveReservationMigrationNotesRequest, bK as RemoveReservationMigrationNotesResponse, aH as ReservationCanceled, af as ReservationCreated, ad as ReservationDelayedDomainEvent, ae as ReservationDelayedDomainEventBodyTypeOneOf, ah as ReservationDelayedDomainEventReservationCanceled, ao as ReservationDetailsConflicts, aq as ReservationLocationConflict, z as ReservationLocationConflictType, c6 as ReservationLocationConflictTypeWithLiterals, bZ as ReservationQuerySpec, bX as ReservationSearchSpec, ag as ReservationUpdated, bY as ReservationsQueryResult, aF as ReserveReservationRequest, a2 as ReservedBy, bE as RestoreInfo, bi as Results, aZ as ScalarAggregation, bf as ScalarDateResult, be as ScalarResult, V as ScalarType, ch as ScalarTypeWithLiterals, b2 as SearchDetails, aP as SearchReservationsRequest, K as Set, cc as SetWithLiterals, O as SortDirection, cf as SortDirectionWithLiterals, M as SortOrder, cd as SortOrderWithLiterals, N as SortType, ce as SortTypeWithLiterals, aM as Sorting, x as Source, c0 as SourceWithLiterals, al as StandardOptions, w as Status, b$ as StatusWithLiterals, ap as TableCombinationConflict, T as TableCombinationConflictType, c5 as TableCombinationConflictTypeWithLiterals, a4 as TableWithReservationConflicts, a0 as Tables, J as Type, cb as TypeWithLiterals, aC as UpdateReservationRequest, aD as UpdateReservationResponse, aW as ValueAggregation, aX as ValueAggregationOptionsOneOf, b4 as ValueAggregationResult, bc as ValueResult, b8 as ValueResults, $ as WebhookIdentityType, cm as WebhookIdentityTypeWithLiterals, W as WindowUnit, c3 as WindowUnitWithLiterals, b_ as utils } from './table-reservations-v1-reservation-reservations.universal-CGxsEHpN.js';
|
|
4
4
|
|
|
5
5
|
declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
|
|
6
6
|
interface CreateReservationSignature {
|