@wix/auto_sdk_table-reservations_reservations 1.0.71 → 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 +20 -71
- package/build/cjs/meta.js +0 -8
- 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-B2UDj-mH.d.ts} +19 -70
- 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 +20 -71
- package/build/es/meta.mjs +0 -7
- 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-B2UDj-mH.d.mts} +19 -70
- 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 +20 -71
- 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-BIOtx_qX.d.ts → table-reservations-v1-reservation-reservations.universal-B2UDj-mH.d.ts} +19 -70
- 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 +20 -71
- 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-BIOtx_qX.d.mts → table-reservations-v1-reservation-reservations.universal-B2UDj-mH.d.mts} +19 -70
- 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. Only populated when `payment_method` is `CARD_GUARANTEE`. */
|
|
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. */
|
|
@@ -295,11 +296,12 @@ type FeeUnitWithLiterals = FeeUnit | 'PER_GUEST' | 'PER_RESERVATION';
|
|
|
295
296
|
/** Free-cancellation window before the reservation start time. */
|
|
296
297
|
interface FreeCancellationWindow {
|
|
297
298
|
/**
|
|
298
|
-
* Duration of the window expressed in the chosen `unit`. The
|
|
299
|
+
* Duration of the window expressed in the chosen `unit`. The window must be between 1 hour and 180 days.
|
|
300
|
+
* When `unit` is `HOURS`, the maximum is 4320. When `unit` is `DAYS`, the maximum is 180.
|
|
299
301
|
* @min 1
|
|
300
302
|
* @max 4320
|
|
301
303
|
*/
|
|
302
|
-
|
|
304
|
+
number?: number;
|
|
303
305
|
/** Time unit for the window duration. */
|
|
304
306
|
unit?: WindowUnitWithLiterals;
|
|
305
307
|
}
|
|
@@ -311,32 +313,6 @@ declare enum WindowUnit {
|
|
|
311
313
|
}
|
|
312
314
|
/** @enumType */
|
|
313
315
|
type WindowUnitWithLiterals = WindowUnit | 'HOURS' | 'DAYS';
|
|
314
|
-
declare enum PaymentMethod {
|
|
315
|
-
/** Payment protection and cancellation fees are disabled for new reservations. */
|
|
316
|
-
NO_PAYMENT_METHOD = "NO_PAYMENT_METHOD",
|
|
317
|
-
/** Guest pays before the reservation becomes confirmed. */
|
|
318
|
-
PREPAYMENT = "PREPAYMENT",
|
|
319
|
-
/** Guest provides a payment method that may be charged after late cancellation or no-show. */
|
|
320
|
-
CARD_GUARANTEE = "CARD_GUARANTEE"
|
|
321
|
-
}
|
|
322
|
-
/** @enumType */
|
|
323
|
-
type PaymentMethodWithLiterals = PaymentMethod | 'NO_PAYMENT_METHOD' | 'PREPAYMENT' | 'CARD_GUARANTEE';
|
|
324
|
-
/** Prepayment calculation terms. */
|
|
325
|
-
interface Prepayment {
|
|
326
|
-
/**
|
|
327
|
-
* Monetary amount to collect per unit. Must be a decimal string with a period as a decimal separator. For example, `"3.99"`.
|
|
328
|
-
* @decimalValue options { gt:0.000, maxScale:3 }
|
|
329
|
-
*/
|
|
330
|
-
amount?: string;
|
|
331
|
-
/** Unit used to calculate the total prepayment amount. */
|
|
332
|
-
unit?: FeeUnitWithLiterals;
|
|
333
|
-
/**
|
|
334
|
-
* Minimum party size required for prepayment to apply.
|
|
335
|
-
* @min 1
|
|
336
|
-
* @max 1000
|
|
337
|
-
*/
|
|
338
|
-
minPartySize?: number;
|
|
339
|
-
}
|
|
340
316
|
/** Cancellation and no-show fee calculation terms. */
|
|
341
317
|
interface CancellationFee {
|
|
342
318
|
/**
|
|
@@ -358,41 +334,14 @@ interface CancellationFee {
|
|
|
358
334
|
*/
|
|
359
335
|
freeCancellationWindow?: FreeCancellationWindow;
|
|
360
336
|
}
|
|
361
|
-
/**
|
|
362
|
-
interface GuestPolicy extends GuestPolicyValueOneOf {
|
|
363
|
-
/**
|
|
364
|
-
* Exact policy text shown to the guest.
|
|
365
|
-
* @maxLength 1000000
|
|
366
|
-
*/
|
|
367
|
-
text?: string | null;
|
|
368
|
-
/**
|
|
369
|
-
* Exact policy URL shown to the guest. The content behind the URL is not archived by Wix.
|
|
370
|
-
* @maxLength 2048
|
|
371
|
-
*/
|
|
372
|
-
url?: string | null;
|
|
373
|
-
/** Whether this policy text was generated by an AI assistant and accepted by the restaurant owner. */
|
|
374
|
-
generated?: boolean;
|
|
375
|
-
}
|
|
376
|
-
/** @oneof */
|
|
377
|
-
interface GuestPolicyValueOneOf {
|
|
378
|
-
/**
|
|
379
|
-
* Exact policy text shown to the guest.
|
|
380
|
-
* @maxLength 1000000
|
|
381
|
-
*/
|
|
382
|
-
text?: string | null;
|
|
383
|
-
/**
|
|
384
|
-
* Exact policy URL shown to the guest. The content behind the URL is not archived by Wix.
|
|
385
|
-
* @maxLength 2048
|
|
386
|
-
*/
|
|
387
|
-
url?: string | null;
|
|
388
|
-
}
|
|
389
|
-
/** Compact cancellation or no-show fee action state for a reservation. */
|
|
337
|
+
/** Cancellation or no-show fee action state for a reservation. */
|
|
390
338
|
interface CancellationFeeState {
|
|
391
339
|
/**
|
|
392
|
-
* Whether
|
|
340
|
+
* Whether a cancellation or no-show fee is currently applicable for this reservation and can be initiated by the
|
|
341
|
+
* restaurant owner. Relevant for both `PREPAYMENT` and `CARD_GUARANTEE` payment methods.
|
|
393
342
|
* @readonly
|
|
394
343
|
*/
|
|
395
|
-
|
|
344
|
+
applicable?: boolean | null;
|
|
396
345
|
}
|
|
397
346
|
interface ReservationDelayedDomainEvent extends ReservationDelayedDomainEventBodyTypeOneOf {
|
|
398
347
|
/** Body of a created reservation event. */
|
|
@@ -2591,4 +2540,4 @@ declare function bulkArchiveReservations(reservationIds: string[]): Promise<NonN
|
|
|
2591
2540
|
*/
|
|
2592
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>>;
|
|
2593
2542
|
|
|
2594
|
-
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
|
}
|