@wix/auto_sdk_table-reservations_reservations 1.0.70 → 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.
Files changed (41) hide show
  1. package/build/cjs/index.d.ts +2 -2
  2. package/build/cjs/index.js +22 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -2
  5. package/build/cjs/index.typings.js +22 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +139 -2
  8. package/build/cjs/meta.js +22 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/{table-reservations-v1-reservation-reservations.universal-dRJkta2b.d.ts → table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.ts} +139 -1
  11. package/build/es/index.d.mts +2 -2
  12. package/build/es/index.mjs +19 -0
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +2 -2
  15. package/build/es/index.typings.mjs +19 -0
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +139 -2
  18. package/build/es/meta.mjs +19 -0
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/{table-reservations-v1-reservation-reservations.universal-dRJkta2b.d.mts → table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.mts} +139 -1
  21. package/build/internal/cjs/index.d.ts +2 -2
  22. package/build/internal/cjs/index.js +22 -0
  23. package/build/internal/cjs/index.js.map +1 -1
  24. package/build/internal/cjs/index.typings.d.ts +2 -2
  25. package/build/internal/cjs/index.typings.js +22 -0
  26. package/build/internal/cjs/index.typings.js.map +1 -1
  27. package/build/internal/cjs/meta.d.ts +139 -2
  28. package/build/internal/cjs/meta.js +22 -0
  29. package/build/internal/cjs/meta.js.map +1 -1
  30. package/build/internal/cjs/{table-reservations-v1-reservation-reservations.universal-dRJkta2b.d.ts → table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.ts} +139 -1
  31. package/build/internal/es/index.d.mts +2 -2
  32. package/build/internal/es/index.mjs +19 -0
  33. package/build/internal/es/index.mjs.map +1 -1
  34. package/build/internal/es/index.typings.d.mts +2 -2
  35. package/build/internal/es/index.typings.mjs +19 -0
  36. package/build/internal/es/index.typings.mjs.map +1 -1
  37. package/build/internal/es/meta.d.mts +139 -2
  38. package/build/internal/es/meta.mjs +19 -0
  39. package/build/internal/es/meta.mjs.map +1 -1
  40. package/build/internal/es/{table-reservations-v1-reservation-reservations.universal-dRJkta2b.d.mts → table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.mts} +139 -1
  41. package/package.json +2 -2
@@ -267,6 +267,143 @@ interface ExtendedFields {
267
267
  */
268
268
  namespaces?: Record<string, Record<string, any>>;
269
269
  }
270
+ /**
271
+ * Cancellation policy configuration for a reservation location.
272
+ *
273
+ * Defines the payment method and fee terms applied to reservations. When a reservation is created,
274
+ * the current policy is copied onto the reservation. Changes to the location's policy do not affect
275
+ * existing reservations.
276
+ */
277
+ interface CancellationPolicy {
278
+ /** Payment method for this policy. */
279
+ paymentMethod?: PaymentMethodWithLiterals;
280
+ /** Prepayment terms. Only populated when `payment_method` is `PREPAYMENT`. */
281
+ prepayment?: Prepayment;
282
+ /** Cancellation and no-show fee terms. Populated when `payment_method` is `CARD_GUARANTEE` or `PREPAYMENT`. */
283
+ cancellationFee?: CancellationFee;
284
+ /** Guest-facing policy text or URL shown to the guest before they confirm their reservation. */
285
+ guestPolicy?: GuestPolicy;
286
+ }
287
+ declare enum FeeUnit {
288
+ /** Amount is calculated for each guest in the reservation. */
289
+ PER_GUEST = "PER_GUEST",
290
+ /** Amount is calculated once for the reservation. */
291
+ PER_RESERVATION = "PER_RESERVATION"
292
+ }
293
+ /** @enumType */
294
+ type FeeUnitWithLiterals = FeeUnit | 'PER_GUEST' | 'PER_RESERVATION';
295
+ /** Free-cancellation window before the reservation start time. */
296
+ interface FreeCancellationWindow {
297
+ /**
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.
300
+ * @min 1
301
+ * @max 4320
302
+ */
303
+ number?: number;
304
+ /** Time unit for the window duration. */
305
+ unit?: WindowUnitWithLiterals;
306
+ }
307
+ declare enum WindowUnit {
308
+ /** Window is measured in hours. */
309
+ HOURS = "HOURS",
310
+ /** Window is measured in days. */
311
+ DAYS = "DAYS"
312
+ }
313
+ /** @enumType */
314
+ type WindowUnitWithLiterals = WindowUnit | 'HOURS' | 'DAYS';
315
+ declare enum PaymentMethod {
316
+ /** Payment protection and cancellation fees are disabled for new reservations. */
317
+ NO_PAYMENT_METHOD = "NO_PAYMENT_METHOD",
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. */
319
+ PREPAYMENT = "PREPAYMENT",
320
+ /** Guest provides a payment method that may be charged after late cancellation or no-show. */
321
+ CARD_GUARANTEE = "CARD_GUARANTEE"
322
+ }
323
+ /** @enumType */
324
+ type PaymentMethodWithLiterals = PaymentMethod | 'NO_PAYMENT_METHOD' | 'PREPAYMENT' | 'CARD_GUARANTEE';
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
+ */
329
+ interface Prepayment {
330
+ /**
331
+ * Monetary amount to collect per unit. Must be a decimal string with a period as a decimal separator. For example, `"3.99"`.
332
+ * @decimalValue options { gt:0.000, maxScale:3 }
333
+ */
334
+ amount?: string;
335
+ /** Unit used to calculate the total prepayment amount. */
336
+ unit?: FeeUnitWithLiterals;
337
+ /**
338
+ * Minimum party size required for prepayment to apply.
339
+ * @min 1
340
+ * @max 1000
341
+ */
342
+ minPartySize?: number;
343
+ }
344
+ /** Cancellation and no-show fee calculation terms. */
345
+ interface CancellationFee {
346
+ /**
347
+ * Monetary amount to charge or retain per unit. Must be a decimal string with a period as a decimal separator. For example, `"3.99"`.
348
+ * @decimalValue options { gt:0.000, maxScale:3 }
349
+ */
350
+ amount?: string;
351
+ /** Unit used to calculate the total fee amount. */
352
+ unit?: FeeUnitWithLiterals;
353
+ /**
354
+ * Minimum party size required for the fee to apply.
355
+ * @min 1
356
+ * @max 1000
357
+ */
358
+ minPartySize?: number;
359
+ /**
360
+ * Period before the reservation start time during which cancellation is free.
361
+ * When absent, all cancellations incur the fee.
362
+ */
363
+ freeCancellationWindow?: FreeCancellationWindow;
364
+ }
365
+ /** Guest-facing policy disclosure. */
366
+ interface GuestPolicy extends GuestPolicyValueOneOf {
367
+ /**
368
+ * Exact policy text shown to the guest.
369
+ * @maxLength 1000000
370
+ */
371
+ text?: string | null;
372
+ /**
373
+ * Exact policy URL shown to the guest. The content behind the URL is not archived by Wix.
374
+ * @maxLength 2048
375
+ */
376
+ url?: string | null;
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
+ */
383
+ generated?: boolean;
384
+ }
385
+ /** @oneof */
386
+ interface GuestPolicyValueOneOf {
387
+ /**
388
+ * Exact policy text shown to the guest.
389
+ * @maxLength 1000000
390
+ */
391
+ text?: string | null;
392
+ /**
393
+ * Exact policy URL shown to the guest. The content behind the URL is not archived by Wix.
394
+ * @maxLength 2048
395
+ */
396
+ url?: string | null;
397
+ }
398
+ /** Cancellation or no-show fee action state for a reservation. */
399
+ interface CancellationFeeState {
400
+ /**
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.
403
+ * @readonly
404
+ */
405
+ applicable?: boolean | null;
406
+ }
270
407
  interface ReservationDelayedDomainEvent extends ReservationDelayedDomainEventBodyTypeOneOf {
271
408
  /** Body of a created reservation event. */
272
409
  reservationCreated?: ReservationCreated;
@@ -2292,6 +2429,7 @@ declare const utils: {
2292
2429
  search: {
2293
2430
  SearchBuilder: () => _wix_sdk_types.SearchBuilder<Reservation, ReservationSearchSpec, ReservationSearch>;
2294
2431
  Filter: _wix_sdk_types.FilterFactory<Reservation, ReservationSearchSpec>;
2432
+ /** Minimum value. */
2295
2433
  Sort: _wix_sdk_types.SortFactory<ReservationSearchSpec>;
2296
2434
  SearchParams: _wix_sdk_types.SearchParamsFactory<ReservationSearchSpec>;
2297
2435
  Aggregation: _wix_sdk_types.AggregationFactory<ReservationSearchSpec>;
@@ -2464,4 +2602,4 @@ declare function bulkArchiveReservations(reservationIds: string[]): Promise<NonN
2464
2602
  */
2465
2603
  declare function bulkUnarchiveReservations(reservationIds: string[]): Promise<NonNullablePaths<BulkUnarchiveReservationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
2466
2604
 
2467
- export { type ReservedBy as $, ExperienceBlockingConflictType as A, type BulkArchiveReservationsResponse as B, type CreateReservationOptions as C, Type as D, ExperienceTableCombinationConflictType as E, Set as F, type GetReservationOptions as G, type HeldReservationDetails as H, IgnoreConflictsType as I, SortOrder as J, SortType as K, type ListReservationsOptions as L, SortDirection as M, MissingValues as N, ScalarType as O, PaymentStatus as P, NestedAggregationType as Q, type Reservation as R, type SearchReservationsResponse as S, TableCombinationConflictType as T, type UpdateReservation as U, Interval as V, AggregationType as W, Mode as X, WebhookIdentityType as Y, type Tables as Z, type Details as _, type CreateReservationApplicationErrors as a, type RangeResults as a$, type MigrationNote as a0, type TableWithReservationConflicts as a1, type ExtendedFields as a2, type ReservationDelayedDomainEvent as a3, type ReservationDelayedDomainEventBodyTypeOneOf as a4, type ReservationCreated as a5, type ReservationUpdated as a6, type ReservationDelayedDomainEventReservationCanceled as a7, type CreateReservationRequest as a8, type IgnoreConflicts as a9, type ListReservationsRequest as aA, type CursorPaging as aB, type Sorting as aC, type CursorPagingMetadata as aD, type Cursors as aE, type SearchReservationsRequest as aF, type CursorSearch as aG, type CursorSearchPagingMethodOneOf as aH, type Aggregation as aI, type AggregationKindOneOf as aJ, type RangeBucket as aK, type IncludeMissingValuesOptions as aL, type ValueAggregation as aM, type ValueAggregationOptionsOneOf as aN, type RangeAggregation as aO, type ScalarAggregation as aP, type DateHistogramAggregation as aQ, type NestedAggregationItem as aR, type NestedAggregationItemKindOneOf as aS, type NestedAggregation as aT, type SearchDetails as aU, type AggregationData as aV, type ValueAggregationResult as aW, type RangeAggregationResult as aX, type NestedAggregationResults as aY, type NestedAggregationResultsResultOneOf as aZ, type ValueResults as a_, type IgnoreConflictsIgnoreConflictsOptionsOneOf as aa, type StandardOptions as ab, type ExperienceOptions as ac, type CreateReservationResponse as ad, type ReservationDetailsConflicts as ae, type TableCombinationConflict as af, type ReservationLocationConflict as ag, type ExperienceBlockingConflict as ah, type ExperienceTableCombinationConflict as ai, type ExperienceConflict as aj, type ConflictsStandardOptions as ak, type ConflictsExperienceOptions as al, type Conflicts as am, type ConflictsOptionsOneOf as an, type CreateGoogleReservationRequest as ao, type CreateGoogleReservationResponse as ap, type GetReservationRequest as aq, type GetReservationResponse as ar, type UpdateReservationRequest as as, type UpdateReservationResponse as at, type CreateHeldReservationRequest as au, type ReserveReservationRequest as av, type CancelReservationRequest as aw, type ReservationCanceled as ax, type DeleteReservationRequest as ay, type DeleteReservationResponse as az, type CreateReservationValidationErrors as b, type SetWithLiterals as b$, type AggregationResultsScalarResult as b0, type NestedValueAggregationResult as b1, type ValueResult as b2, type RangeResult as b3, type ScalarResult as b4, type ScalarDateResult as b5, type NestedResultValue as b6, type NestedResultValueResultOneOf as b7, type Results as b8, type DateHistogramResult as b9, type RemoveReservationMigrationNotesResponse as bA, type RawHttpRequest as bB, type PathParametersEntry as bC, type QueryParametersEntry as bD, type HeadersEntry as bE, type RawHttpResponse as bF, type MessageEnvelope as bG, type IdentificationData as bH, type IdentificationDataIdOneOf as bI, type AccountInfo as bJ, type BaseEventMetadata as bK, type EventMetadata as bL, type AccountInfoMetadata as bM, type ReservationSearchSpec as bN, type ReservationsQueryResult as bO, type ReservationQuerySpec as bP, utils as bQ, type StatusWithLiterals as bR, type SourceWithLiterals as bS, type PaymentStatusWithLiterals as bT, type TableCombinationConflictTypeWithLiterals as bU, type ReservationLocationConflictTypeWithLiterals as bV, type ExperienceTableCombinationConflictTypeWithLiterals as bW, type ExperienceConflictTypeWithLiterals as bX, type ExperienceBlockingConflictTypeWithLiterals as bY, type IgnoreConflictsTypeWithLiterals as bZ, type TypeWithLiterals as b_, type GroupByValueResults as ba, type DateHistogramResults as bb, type NestedResults as bc, type AggregationResultsScalarDateResult as bd, type AggregationResults as be, type AggregationResultsResultOneOf as bf, type QueryReservationsRequest as bg, type CursorQuery as bh, type CursorQueryPagingMethodOneOf as bi, type QueryReservationsResponse as bj, type BulkArchiveReservationsRequest as bk, type BulkArchiveReservationsResult as bl, type ItemMetadata as bm, type ApplicationError as bn, type BulkActionMetadata as bo, type BulkUnarchiveReservationsRequest as bp, type BulkUnarchiveReservationsResult as bq, type DomainEvent as br, type DomainEventBodyOneOf as bs, type EntityCreatedEvent as bt, type RestoreInfo as bu, type EntityUpdatedEvent as bv, type EntityDeletedEvent as bw, type ActionEvent as bx, type Empty as by, type RemoveReservationMigrationNotesRequest as bz, type UpdateReservationOptions as c, type SortOrderWithLiterals as c0, type SortTypeWithLiterals as c1, type SortDirectionWithLiterals as c2, type MissingValuesWithLiterals as c3, type ScalarTypeWithLiterals as c4, type NestedAggregationTypeWithLiterals as c5, type IntervalWithLiterals as c6, type AggregationTypeWithLiterals as c7, type ModeWithLiterals as c8, type WebhookIdentityTypeWithLiterals as c9, type CommonSearchWithEntityContext as ca, type CommonQueryWithEntityContext as cb, onReservationCreated as cc, onReservationDeleted as cd, onReservationUpdated as ce, createReservation as cf, getReservation as cg, updateReservation as ch, createHeldReservation as ci, reserveReservation as cj, cancelReservation as ck, deleteReservation as cl, listReservations as cm, queryReservations as cn, bulkArchiveReservations as co, bulkUnarchiveReservations as cp, type UpdateReservationApplicationErrors as d, type UpdateReservationValidationErrors as e, type CreateHeldReservationResponse as f, type CreateHeldReservationApplicationErrors as g, type Reservee as h, type ReserveReservationResponse as i, type ReserveReservationApplicationErrors as j, type CancelReservationOptions as k, type CancelReservationResponse as l, type CancelReservationApplicationErrors as m, type ListReservationsResponse as n, type ReservationSearch as o, type BulkUnarchiveReservationsResponse as p, type ReservationCreatedEnvelope as q, type ReservationDeletedEnvelope as r, type ReservationUpdatedEnvelope as s, type ReservationsQueryBuilder as t, type ReservationQuery as u, typedQueryReservations as v, Status as w, Source as x, ReservationLocationConflictType as y, ExperienceConflictType as z };
2605
+ export { WebhookIdentityType as $, ExperienceConflictType as A, type BulkArchiveReservationsResponse as B, type CreateReservationOptions as C, ExperienceBlockingConflictType as D, ExperienceTableCombinationConflictType as E, FeeUnit as F, type GetReservationOptions as G, type HeldReservationDetails as H, IgnoreConflictsType as I, Type as J, Set as K, type ListReservationsOptions as L, SortOrder as M, SortType as N, SortDirection as O, PaymentStatus as P, MissingValues as Q, type Reservation as R, type SearchReservationsResponse as S, TableCombinationConflictType as T, type UpdateReservation as U, ScalarType as V, WindowUnit as W, NestedAggregationType as X, Interval as Y, AggregationType as Z, Mode as _, type CreateReservationApplicationErrors as a, type NestedAggregationItem as a$, type Tables as a0, type Details as a1, type ReservedBy as a2, type MigrationNote as a3, type TableWithReservationConflicts as a4, type ExtendedFields as a5, type CancellationPolicy as a6, type FreeCancellationWindow as a7, type Prepayment as a8, type CancellationFee as a9, type GetReservationRequest as aA, type GetReservationResponse as aB, type UpdateReservationRequest as aC, type UpdateReservationResponse as aD, type CreateHeldReservationRequest as aE, type ReserveReservationRequest as aF, type CancelReservationRequest as aG, type ReservationCanceled as aH, type DeleteReservationRequest as aI, type DeleteReservationResponse as aJ, type ListReservationsRequest as aK, type CursorPaging as aL, type Sorting as aM, type CursorPagingMetadata as aN, type Cursors as aO, type SearchReservationsRequest as aP, type CursorSearch as aQ, type CursorSearchPagingMethodOneOf as aR, type Aggregation as aS, type AggregationKindOneOf as aT, type RangeBucket as aU, type IncludeMissingValuesOptions as aV, type ValueAggregation as aW, type ValueAggregationOptionsOneOf as aX, type RangeAggregation as aY, type ScalarAggregation as aZ, type DateHistogramAggregation as a_, type GuestPolicy as aa, type GuestPolicyValueOneOf as ab, type CancellationFeeState as ac, type ReservationDelayedDomainEvent as ad, type ReservationDelayedDomainEventBodyTypeOneOf as ae, type ReservationCreated as af, type ReservationUpdated as ag, type ReservationDelayedDomainEventReservationCanceled as ah, type CreateReservationRequest as ai, type IgnoreConflicts as aj, type IgnoreConflictsIgnoreConflictsOptionsOneOf as ak, type StandardOptions as al, type ExperienceOptions as am, type CreateReservationResponse as an, type ReservationDetailsConflicts as ao, type TableCombinationConflict as ap, type ReservationLocationConflict as aq, type ExperienceBlockingConflict as ar, type ExperienceTableCombinationConflict as as, type ExperienceConflict as at, type ConflictsStandardOptions as au, type ConflictsExperienceOptions as av, type Conflicts as aw, type ConflictsOptionsOneOf as ax, type CreateGoogleReservationRequest as ay, type CreateGoogleReservationResponse as az, type CreateReservationValidationErrors as b, type StatusWithLiterals as b$, type NestedAggregationItemKindOneOf as b0, type NestedAggregation as b1, type SearchDetails as b2, type AggregationData as b3, type ValueAggregationResult as b4, type RangeAggregationResult as b5, type NestedAggregationResults as b6, type NestedAggregationResultsResultOneOf as b7, type ValueResults as b8, type RangeResults as b9, type BulkUnarchiveReservationsResult as bA, type DomainEvent as bB, type DomainEventBodyOneOf as bC, type EntityCreatedEvent as bD, type RestoreInfo as bE, type EntityUpdatedEvent as bF, type EntityDeletedEvent as bG, type ActionEvent as bH, type Empty as bI, type RemoveReservationMigrationNotesRequest as bJ, type RemoveReservationMigrationNotesResponse as bK, type RawHttpRequest as bL, type PathParametersEntry as bM, type QueryParametersEntry as bN, type HeadersEntry as bO, type RawHttpResponse as bP, type MessageEnvelope as bQ, type IdentificationData as bR, type IdentificationDataIdOneOf as bS, type AccountInfo as bT, type BaseEventMetadata as bU, type EventMetadata as bV, type AccountInfoMetadata as bW, type ReservationSearchSpec as bX, type ReservationsQueryResult as bY, type ReservationQuerySpec as bZ, utils as b_, type AggregationResultsScalarResult as ba, type NestedValueAggregationResult as bb, type ValueResult as bc, type RangeResult as bd, type ScalarResult as be, type ScalarDateResult as bf, type NestedResultValue as bg, type NestedResultValueResultOneOf as bh, type Results as bi, type DateHistogramResult as bj, type GroupByValueResults as bk, type DateHistogramResults as bl, type NestedResults as bm, type AggregationResultsScalarDateResult as bn, type AggregationResults as bo, type AggregationResultsResultOneOf as bp, type QueryReservationsRequest as bq, type CursorQuery as br, type CursorQueryPagingMethodOneOf as bs, type QueryReservationsResponse as bt, type BulkArchiveReservationsRequest as bu, type BulkArchiveReservationsResult as bv, type ItemMetadata as bw, type ApplicationError as bx, type BulkActionMetadata as by, type BulkUnarchiveReservationsRequest as bz, type UpdateReservationOptions as c, type SourceWithLiterals as c0, type PaymentStatusWithLiterals as c1, type FeeUnitWithLiterals as c2, type WindowUnitWithLiterals as c3, type PaymentMethodWithLiterals as c4, type TableCombinationConflictTypeWithLiterals as c5, type ReservationLocationConflictTypeWithLiterals as c6, type ExperienceTableCombinationConflictTypeWithLiterals as c7, type ExperienceConflictTypeWithLiterals as c8, type ExperienceBlockingConflictTypeWithLiterals as c9, queryReservations as cA, bulkArchiveReservations as cB, bulkUnarchiveReservations as cC, type IgnoreConflictsTypeWithLiterals as ca, type TypeWithLiterals as cb, type SetWithLiterals as cc, type SortOrderWithLiterals as cd, type SortTypeWithLiterals as ce, type SortDirectionWithLiterals as cf, type MissingValuesWithLiterals as cg, type ScalarTypeWithLiterals as ch, type NestedAggregationTypeWithLiterals as ci, type IntervalWithLiterals as cj, type AggregationTypeWithLiterals as ck, type ModeWithLiterals as cl, type WebhookIdentityTypeWithLiterals as cm, type CommonSearchWithEntityContext as cn, type CommonQueryWithEntityContext as co, onReservationCreated as cp, onReservationDeleted as cq, onReservationUpdated as cr, createReservation as cs, getReservation as ct, updateReservation as cu, createHeldReservation as cv, reserveReservation as cw, cancelReservation as cx, deleteReservation as cy, listReservations as cz, type UpdateReservationApplicationErrors as d, type UpdateReservationValidationErrors as e, type CreateHeldReservationResponse as f, type CreateHeldReservationApplicationErrors as g, type Reservee as h, type ReserveReservationResponse as i, type ReserveReservationApplicationErrors as j, type CancelReservationOptions as k, type CancelReservationResponse as l, type CancelReservationApplicationErrors as m, type ListReservationsResponse as n, type ReservationSearch as o, type BulkUnarchiveReservationsResponse as p, type ReservationCreatedEnvelope as q, type ReservationDeletedEnvelope as r, type ReservationUpdatedEnvelope as s, type ReservationsQueryBuilder as t, type ReservationQuery as u, typedQueryReservations as v, Status as w, Source as x, PaymentMethod as y, ReservationLocationConflictType as z };
@@ -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-dRJkta2b.js';
3
- export { bJ as AccountInfo, bM as AccountInfoMetadata, bx as ActionEvent, aI as Aggregation, aV as AggregationData, aJ as AggregationKindOneOf, be as AggregationResults, bf as AggregationResultsResultOneOf, bd as AggregationResultsScalarDateResult, b0 as AggregationResultsScalarResult, W as AggregationType, c7 as AggregationTypeWithLiterals, bn as ApplicationError, bK as BaseEventMetadata, bo as BulkActionMetadata, bk as BulkArchiveReservationsRequest, bl as BulkArchiveReservationsResult, bp as BulkUnarchiveReservationsRequest, bq as BulkUnarchiveReservationsResult, aw as CancelReservationRequest, cb as CommonQueryWithEntityContext, ca as CommonSearchWithEntityContext, am as Conflicts, al as ConflictsExperienceOptions, an as ConflictsOptionsOneOf, ak as ConflictsStandardOptions, ao as CreateGoogleReservationRequest, ap as CreateGoogleReservationResponse, au as CreateHeldReservationRequest, a8 as CreateReservationRequest, ad as CreateReservationResponse, aB as CursorPaging, aD as CursorPagingMetadata, bh as CursorQuery, bi as CursorQueryPagingMethodOneOf, aG as CursorSearch, aH as CursorSearchPagingMethodOneOf, aE as Cursors, aQ as DateHistogramAggregation, b9 as DateHistogramResult, bb as DateHistogramResults, ay as DeleteReservationRequest, az as DeleteReservationResponse, _ as Details, br as DomainEvent, bs as DomainEventBodyOneOf, by as Empty, bt as EntityCreatedEvent, bw as EntityDeletedEvent, bv as EntityUpdatedEvent, bL as EventMetadata, ah as ExperienceBlockingConflict, A as ExperienceBlockingConflictType, bY as ExperienceBlockingConflictTypeWithLiterals, aj as ExperienceConflict, z as ExperienceConflictType, bX as ExperienceConflictTypeWithLiterals, ac as ExperienceOptions, ai as ExperienceTableCombinationConflict, E as ExperienceTableCombinationConflictType, bW as ExperienceTableCombinationConflictTypeWithLiterals, a2 as ExtendedFields, aq as GetReservationRequest, ar as GetReservationResponse, ba as GroupByValueResults, bE as HeadersEntry, bH as IdentificationData, bI as IdentificationDataIdOneOf, a9 as IgnoreConflicts, aa as IgnoreConflictsIgnoreConflictsOptionsOneOf, I as IgnoreConflictsType, bZ as IgnoreConflictsTypeWithLiterals, aL as IncludeMissingValuesOptions, V as Interval, c6 as IntervalWithLiterals, bm as ItemMetadata, aA as ListReservationsRequest, bG as MessageEnvelope, a0 as MigrationNote, N as MissingValues, c3 as MissingValuesWithLiterals, X as Mode, c8 as ModeWithLiterals, aT as NestedAggregation, aR as NestedAggregationItem, aS as NestedAggregationItemKindOneOf, aY as NestedAggregationResults, aZ as NestedAggregationResultsResultOneOf, Q as NestedAggregationType, c5 as NestedAggregationTypeWithLiterals, b6 as NestedResultValue, b7 as NestedResultValueResultOneOf, bc as NestedResults, b1 as NestedValueAggregationResult, bC as PathParametersEntry, P as PaymentStatus, bT as PaymentStatusWithLiterals, bD as QueryParametersEntry, bg as QueryReservationsRequest, bj as QueryReservationsResponse, aO as RangeAggregation, aX as RangeAggregationResult, aK as RangeBucket, b3 as RangeResult, a$ as RangeResults, bB as RawHttpRequest, bF as RawHttpResponse, bz as RemoveReservationMigrationNotesRequest, bA as RemoveReservationMigrationNotesResponse, ax as ReservationCanceled, a5 as ReservationCreated, a3 as ReservationDelayedDomainEvent, a4 as ReservationDelayedDomainEventBodyTypeOneOf, a7 as ReservationDelayedDomainEventReservationCanceled, ae as ReservationDetailsConflicts, ag as ReservationLocationConflict, y as ReservationLocationConflictType, bV as ReservationLocationConflictTypeWithLiterals, bP as ReservationQuerySpec, bN as ReservationSearchSpec, a6 as ReservationUpdated, bO as ReservationsQueryResult, av as ReserveReservationRequest, $ as ReservedBy, bu as RestoreInfo, b8 as Results, aP as ScalarAggregation, b5 as ScalarDateResult, b4 as ScalarResult, O as ScalarType, c4 as ScalarTypeWithLiterals, aU as SearchDetails, aF as SearchReservationsRequest, F as Set, b$ as SetWithLiterals, M as SortDirection, c2 as SortDirectionWithLiterals, J as SortOrder, c0 as SortOrderWithLiterals, K as SortType, c1 as SortTypeWithLiterals, aC as Sorting, x as Source, bS as SourceWithLiterals, ab as StandardOptions, w as Status, bR as StatusWithLiterals, af as TableCombinationConflict, T as TableCombinationConflictType, bU as TableCombinationConflictTypeWithLiterals, a1 as TableWithReservationConflicts, Z as Tables, D as Type, b_ as TypeWithLiterals, as as UpdateReservationRequest, at as UpdateReservationResponse, aM as ValueAggregation, aN as ValueAggregationOptionsOneOf, aW as ValueAggregationResult, b2 as ValueResult, a_ as ValueResults, Y as WebhookIdentityType, c9 as WebhookIdentityTypeWithLiterals, bQ as utils } from './table-reservations-v1-reservation-reservations.universal-dRJkta2b.js';
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 {
@@ -24,11 +24,13 @@ __export(index_exports, {
24
24
  ExperienceBlockingConflictType: () => ExperienceBlockingConflictType,
25
25
  ExperienceConflictType: () => ExperienceConflictType,
26
26
  ExperienceTableCombinationConflictType: () => ExperienceTableCombinationConflictType,
27
+ FeeUnit: () => FeeUnit,
27
28
  IgnoreConflictsType: () => IgnoreConflictsType,
28
29
  Interval: () => Interval,
29
30
  MissingValues: () => MissingValues,
30
31
  Mode: () => Mode,
31
32
  NestedAggregationType: () => NestedAggregationType,
33
+ PaymentMethod: () => PaymentMethod,
32
34
  PaymentStatus: () => PaymentStatus,
33
35
  ReservationLocationConflictType: () => ReservationLocationConflictType,
34
36
  ScalarType: () => ScalarType,
@@ -41,6 +43,7 @@ __export(index_exports, {
41
43
  TableCombinationConflictType: () => TableCombinationConflictType,
42
44
  Type: () => Type,
43
45
  WebhookIdentityType: () => WebhookIdentityType,
46
+ WindowUnit: () => WindowUnit,
44
47
  bulkArchiveReservations: () => bulkArchiveReservations4,
45
48
  bulkUnarchiveReservations: () => bulkUnarchiveReservations4,
46
49
  cancelReservation: () => cancelReservation4,
@@ -638,6 +641,22 @@ var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
638
641
  PaymentStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
639
642
  return PaymentStatus2;
640
643
  })(PaymentStatus || {});
644
+ var FeeUnit = /* @__PURE__ */ ((FeeUnit2) => {
645
+ FeeUnit2["PER_GUEST"] = "PER_GUEST";
646
+ FeeUnit2["PER_RESERVATION"] = "PER_RESERVATION";
647
+ return FeeUnit2;
648
+ })(FeeUnit || {});
649
+ var WindowUnit = /* @__PURE__ */ ((WindowUnit2) => {
650
+ WindowUnit2["HOURS"] = "HOURS";
651
+ WindowUnit2["DAYS"] = "DAYS";
652
+ return WindowUnit2;
653
+ })(WindowUnit || {});
654
+ var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
655
+ PaymentMethod2["NO_PAYMENT_METHOD"] = "NO_PAYMENT_METHOD";
656
+ PaymentMethod2["PREPAYMENT"] = "PREPAYMENT";
657
+ PaymentMethod2["CARD_GUARANTEE"] = "CARD_GUARANTEE";
658
+ return PaymentMethod2;
659
+ })(PaymentMethod || {});
641
660
  var TableCombinationConflictType = /* @__PURE__ */ ((TableCombinationConflictType2) => {
642
661
  TableCombinationConflictType2["UNKNOWN"] = "UNKNOWN";
643
662
  TableCombinationConflictType2["RESERVED"] = "RESERVED";
@@ -1356,11 +1375,13 @@ var onReservationUpdated2 = (0, import_event_definition_modules.createEventModul
1356
1375
  ExperienceBlockingConflictType,
1357
1376
  ExperienceConflictType,
1358
1377
  ExperienceTableCombinationConflictType,
1378
+ FeeUnit,
1359
1379
  IgnoreConflictsType,
1360
1380
  Interval,
1361
1381
  MissingValues,
1362
1382
  Mode,
1363
1383
  NestedAggregationType,
1384
+ PaymentMethod,
1364
1385
  PaymentStatus,
1365
1386
  ReservationLocationConflictType,
1366
1387
  ScalarType,
@@ -1373,6 +1394,7 @@ var onReservationUpdated2 = (0, import_event_definition_modules.createEventModul
1373
1394
  TableCombinationConflictType,
1374
1395
  Type,
1375
1396
  WebhookIdentityType,
1397
+ WindowUnit,
1376
1398
  bulkArchiveReservations,
1377
1399
  bulkUnarchiveReservations,
1378
1400
  cancelReservation,