@wix/auto_sdk_table-reservations_reservations 1.0.72 → 1.0.73
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 +0 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +0 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +13 -74
- package/build/cjs/meta.js +0 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.ts → table-reservations-v1-reservation-reservations.universal-B2UDj-mH.d.ts} +12 -74
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +0 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +0 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +13 -74
- package/build/es/meta.mjs +0 -7
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.mts → table-reservations-v1-reservation-reservations.universal-B2UDj-mH.d.mts} +12 -74
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +0 -8
- 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 +0 -8
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +13 -74
- package/build/internal/cjs/meta.js +0 -8
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/{table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.ts → table-reservations-v1-reservation-reservations.universal-B2UDj-mH.d.ts} +12 -74
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +0 -7
- 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 +0 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +13 -74
- package/build/internal/es/meta.mjs +0 -7
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/{table-reservations-v1-reservation-reservations.universal-CGxsEHpN.d.mts → table-reservations-v1-reservation-reservations.universal-B2UDj-mH.d.mts} +12 -74
- package/package.json +2 -2
|
@@ -270,19 +270,20 @@ interface ExtendedFields {
|
|
|
270
270
|
/**
|
|
271
271
|
* Cancellation policy configuration for a reservation location.
|
|
272
272
|
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
273
|
+
* Payment protection is on when `cancellation_fee` is set. The effective method is derived at
|
|
274
|
+
* runtime: with a legacy prepayment-type `payment_policy` / `reservation_payment` on the location
|
|
275
|
+
* → PREPAYMENT; otherwise → CARD_GUARANTEE; with no fee → NO_PAYMENT_METHOD.
|
|
276
|
+
* When a reservation is created, the current policy is copied onto the reservation. Changes to
|
|
277
|
+
* the location's policy do not affect existing reservations.
|
|
276
278
|
*/
|
|
277
279
|
interface CancellationPolicy {
|
|
278
|
-
/**
|
|
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`. */
|
|
280
|
+
/** Cancellation and no-show fee terms. Present ⇒ payment protection is on. */
|
|
283
281
|
cancellationFee?: CancellationFee;
|
|
284
|
-
/**
|
|
285
|
-
|
|
282
|
+
/**
|
|
283
|
+
* Guest-facing policy text shown to the guest before they confirm their reservation.
|
|
284
|
+
* @maxLength 1024
|
|
285
|
+
*/
|
|
286
|
+
guestPolicy?: string | null;
|
|
286
287
|
}
|
|
287
288
|
declare enum FeeUnit {
|
|
288
289
|
/** Amount is calculated for each guest in the reservation. */
|
|
@@ -312,35 +313,6 @@ declare enum WindowUnit {
|
|
|
312
313
|
}
|
|
313
314
|
/** @enumType */
|
|
314
315
|
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
316
|
/** Cancellation and no-show fee calculation terms. */
|
|
345
317
|
interface CancellationFee {
|
|
346
318
|
/**
|
|
@@ -362,39 +334,6 @@ interface CancellationFee {
|
|
|
362
334
|
*/
|
|
363
335
|
freeCancellationWindow?: FreeCancellationWindow;
|
|
364
336
|
}
|
|
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
337
|
/** Cancellation or no-show fee action state for a reservation. */
|
|
399
338
|
interface CancellationFeeState {
|
|
400
339
|
/**
|
|
@@ -2429,7 +2368,6 @@ declare const utils: {
|
|
|
2429
2368
|
search: {
|
|
2430
2369
|
SearchBuilder: () => _wix_sdk_types.SearchBuilder<Reservation, ReservationSearchSpec, ReservationSearch>;
|
|
2431
2370
|
Filter: _wix_sdk_types.FilterFactory<Reservation, ReservationSearchSpec>;
|
|
2432
|
-
/** Minimum value. */
|
|
2433
2371
|
Sort: _wix_sdk_types.SortFactory<ReservationSearchSpec>;
|
|
2434
2372
|
SearchParams: _wix_sdk_types.SearchParamsFactory<ReservationSearchSpec>;
|
|
2435
2373
|
Aggregation: _wix_sdk_types.AggregationFactory<ReservationSearchSpec>;
|
|
@@ -2602,4 +2540,4 @@ declare function bulkArchiveReservations(reservationIds: string[]): Promise<NonN
|
|
|
2602
2540
|
*/
|
|
2603
2541
|
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>>;
|
|
2604
2542
|
|
|
2605
|
-
export {
|
|
2543
|
+
export { type Tables as $, ExperienceBlockingConflictType as A, type BulkArchiveReservationsResponse as B, type CreateReservationOptions as C, Type as D, ExperienceTableCombinationConflictType as E, FeeUnit as F, type GetReservationOptions as G, type HeldReservationDetails as H, IgnoreConflictsType as I, Set as J, SortOrder as K, type ListReservationsOptions as L, SortType as M, SortDirection as N, MissingValues as O, PaymentStatus as P, ScalarType as Q, type Reservation as R, type SearchReservationsResponse as S, TableCombinationConflictType as T, type UpdateReservation as U, NestedAggregationType as V, WindowUnit as W, Interval as X, AggregationType as Y, Mode as Z, WebhookIdentityType as _, type CreateReservationApplicationErrors as a, type AggregationData as a$, type Details as a0, type ReservedBy as a1, type MigrationNote as a2, type TableWithReservationConflicts as a3, type ExtendedFields as a4, type CancellationPolicy as a5, type FreeCancellationWindow as a6, type CancellationFee as a7, type CancellationFeeState as a8, type ReservationDelayedDomainEvent as a9, type CreateHeldReservationRequest as aA, type ReserveReservationRequest as aB, type CancelReservationRequest as aC, type ReservationCanceled as aD, type DeleteReservationRequest as aE, type DeleteReservationResponse as aF, type ListReservationsRequest as aG, type CursorPaging as aH, type Sorting as aI, type CursorPagingMetadata as aJ, type Cursors as aK, type SearchReservationsRequest as aL, type CursorSearch as aM, type CursorSearchPagingMethodOneOf as aN, type Aggregation as aO, type AggregationKindOneOf as aP, type RangeBucket as aQ, type IncludeMissingValuesOptions as aR, type ValueAggregation as aS, type ValueAggregationOptionsOneOf as aT, type RangeAggregation as aU, type ScalarAggregation as aV, type DateHistogramAggregation as aW, type NestedAggregationItem as aX, type NestedAggregationItemKindOneOf as aY, type NestedAggregation as aZ, type SearchDetails as a_, type ReservationDelayedDomainEventBodyTypeOneOf as aa, type ReservationCreated as ab, type ReservationUpdated as ac, type ReservationDelayedDomainEventReservationCanceled as ad, type CreateReservationRequest as ae, type IgnoreConflicts as af, type IgnoreConflictsIgnoreConflictsOptionsOneOf as ag, type StandardOptions as ah, type ExperienceOptions as ai, type CreateReservationResponse as aj, type ReservationDetailsConflicts as ak, type TableCombinationConflict as al, type ReservationLocationConflict as am, type ExperienceBlockingConflict as an, type ExperienceTableCombinationConflict as ao, type ExperienceConflict as ap, type ConflictsStandardOptions as aq, type ConflictsExperienceOptions as ar, type Conflicts as as, type ConflictsOptionsOneOf as at, type CreateGoogleReservationRequest as au, type CreateGoogleReservationResponse as av, type GetReservationRequest as aw, type GetReservationResponse as ax, type UpdateReservationRequest as ay, type UpdateReservationResponse as az, type CreateReservationValidationErrors as b, type WindowUnitWithLiterals as b$, type ValueAggregationResult as b0, type RangeAggregationResult as b1, type NestedAggregationResults as b2, type NestedAggregationResultsResultOneOf as b3, type ValueResults as b4, type RangeResults as b5, type AggregationResultsScalarResult as b6, type NestedValueAggregationResult as b7, type ValueResult as b8, type RangeResult as b9, type RestoreInfo as bA, type EntityUpdatedEvent as bB, type EntityDeletedEvent as bC, type ActionEvent as bD, type Empty as bE, type RemoveReservationMigrationNotesRequest as bF, type RemoveReservationMigrationNotesResponse as bG, type RawHttpRequest as bH, type PathParametersEntry as bI, type QueryParametersEntry as bJ, type HeadersEntry as bK, type RawHttpResponse as bL, type MessageEnvelope as bM, type IdentificationData as bN, type IdentificationDataIdOneOf as bO, type AccountInfo as bP, type BaseEventMetadata as bQ, type EventMetadata as bR, type AccountInfoMetadata as bS, type ReservationSearchSpec as bT, type ReservationsQueryResult as bU, type ReservationQuerySpec as bV, utils as bW, type StatusWithLiterals as bX, type SourceWithLiterals as bY, type PaymentStatusWithLiterals as bZ, type FeeUnitWithLiterals as b_, type ScalarResult as ba, type ScalarDateResult as bb, type NestedResultValue as bc, type NestedResultValueResultOneOf as bd, type Results as be, type DateHistogramResult as bf, type GroupByValueResults as bg, type DateHistogramResults as bh, type NestedResults as bi, type AggregationResultsScalarDateResult as bj, type AggregationResults as bk, type AggregationResultsResultOneOf as bl, type QueryReservationsRequest as bm, type CursorQuery as bn, type CursorQueryPagingMethodOneOf as bo, type QueryReservationsResponse as bp, type BulkArchiveReservationsRequest as bq, type BulkArchiveReservationsResult as br, type ItemMetadata as bs, type ApplicationError as bt, type BulkActionMetadata as bu, type BulkUnarchiveReservationsRequest as bv, type BulkUnarchiveReservationsResult as bw, type DomainEvent as bx, type DomainEventBodyOneOf as by, type EntityCreatedEvent as bz, type UpdateReservationOptions as c, type TableCombinationConflictTypeWithLiterals as c0, type ReservationLocationConflictTypeWithLiterals as c1, type ExperienceTableCombinationConflictTypeWithLiterals as c2, type ExperienceConflictTypeWithLiterals as c3, type ExperienceBlockingConflictTypeWithLiterals as c4, type IgnoreConflictsTypeWithLiterals as c5, type TypeWithLiterals as c6, type SetWithLiterals as c7, type SortOrderWithLiterals as c8, type SortTypeWithLiterals as c9, type SortDirectionWithLiterals as ca, type MissingValuesWithLiterals as cb, type ScalarTypeWithLiterals as cc, type NestedAggregationTypeWithLiterals as cd, type IntervalWithLiterals as ce, type AggregationTypeWithLiterals as cf, type ModeWithLiterals as cg, type WebhookIdentityTypeWithLiterals as ch, type CommonSearchWithEntityContext as ci, type CommonQueryWithEntityContext as cj, onReservationCreated as ck, onReservationDeleted as cl, onReservationUpdated as cm, createReservation as cn, getReservation as co, updateReservation as cp, createHeldReservation as cq, reserveReservation as cr, cancelReservation as cs, deleteReservation as ct, listReservations as cu, queryReservations as cv, bulkArchiveReservations as cw, bulkUnarchiveReservations as cx, 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_table-reservations_reservations",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.73",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"fqdn": "wix.table_reservations.v1.reservation"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "d49dd4f0f9f733f768ff6f5ca18cf7cf19e382bb8392f861cf8c64d5"
|
|
61
61
|
}
|