@wix/auto_sdk_table-reservations_reservations 1.0.37 → 1.0.39
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 +3 -3
- package/build/cjs/index.js +8 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +8 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +31 -13
- package/build/cjs/meta.js +0 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{table-reservations-v1-reservation-reservations.universal-BiohAEHh.d.ts → table-reservations-v1-reservation-reservations.universal-nFEfinIM.d.ts} +51 -17
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +8 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +8 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +31 -13
- package/build/es/meta.mjs +0 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{table-reservations-v1-reservation-reservations.universal-BiohAEHh.d.mts → table-reservations-v1-reservation-reservations.universal-nFEfinIM.d.mts} +51 -17
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.js +8 -5
- 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 +8 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +31 -13
- package/build/internal/cjs/meta.js +0 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/{table-reservations-v1-reservation-reservations.universal-BiohAEHh.d.ts → table-reservations-v1-reservation-reservations.universal-nFEfinIM.d.ts} +51 -17
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.mjs +8 -5
- 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 +8 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +31 -13
- package/build/internal/es/meta.mjs +0 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/{table-reservations-v1-reservation-reservations.universal-BiohAEHh.d.mts → table-reservations-v1-reservation-reservations.universal-nFEfinIM.d.mts} +51 -17
- package/package.json +2 -2
|
@@ -44,7 +44,7 @@ interface Reservation {
|
|
|
44
44
|
/**
|
|
45
45
|
* Information about the person making the reservation.
|
|
46
46
|
*
|
|
47
|
-
* This field is required if the reservation's `
|
|
47
|
+
* This field is required if the reservation's `source` is anything other than `WALK_IN`.
|
|
48
48
|
* @readonly
|
|
49
49
|
*/
|
|
50
50
|
reservedBy?: ReservedBy;
|
|
@@ -126,12 +126,11 @@ declare enum Status {
|
|
|
126
126
|
REQUESTED = "REQUESTED",
|
|
127
127
|
/** The restaurant’s owner or staff declined the customer’s request to make the reservation. */
|
|
128
128
|
DECLINED = "DECLINED",
|
|
129
|
-
PAYMENT_PENDING = "PAYMENT_PENDING",
|
|
130
129
|
/** The reservation is awaiting payment. It will expire in 10 minutes from the created time unless the customer provides payment information. This phase temporarily reserves the required number of seats and tables for the given party size at the chosen time. */
|
|
131
130
|
PAYMENT_INFORMATION_PENDING = "PAYMENT_INFORMATION_PENDING"
|
|
132
131
|
}
|
|
133
132
|
/** @enumType */
|
|
134
|
-
type StatusWithLiterals = Status | 'UNKNOWN' | 'HELD' | 'RESERVED' | 'CANCELED' | 'FINISHED' | 'NO_SHOW' | 'SEATED' | 'REQUESTED' | 'DECLINED' | '
|
|
133
|
+
type StatusWithLiterals = Status | 'UNKNOWN' | 'HELD' | 'RESERVED' | 'CANCELED' | 'FINISHED' | 'NO_SHOW' | 'SEATED' | 'REQUESTED' | 'DECLINED' | 'PAYMENT_INFORMATION_PENDING';
|
|
135
134
|
declare enum Source {
|
|
136
135
|
/** Undefined reservation source. */
|
|
137
136
|
UNKNOWN = "UNKNOWN",
|
|
@@ -178,7 +177,7 @@ interface Reservee {
|
|
|
178
177
|
/**
|
|
179
178
|
* First name.
|
|
180
179
|
*
|
|
181
|
-
* This field is required if the reservation's `
|
|
180
|
+
* This field is required if the reservation's `source` is anything other than `WALK_IN`.
|
|
182
181
|
* @maxLength 1000
|
|
183
182
|
*/
|
|
184
183
|
firstName?: string | null;
|
|
@@ -197,7 +196,7 @@ interface Reservee {
|
|
|
197
196
|
*
|
|
198
197
|
* This property should begin with a +, followed by the country code, and then the rest of the phone number. For example, `"+972555555555"`.
|
|
199
198
|
*
|
|
200
|
-
* This field is required if the reservation's `
|
|
199
|
+
* This field is required if the reservation's `source` is anything other than `WALK_IN`.
|
|
201
200
|
* @format PHONE
|
|
202
201
|
*/
|
|
203
202
|
phone?: string | null;
|
|
@@ -316,6 +315,9 @@ interface CreateReservationRequest {
|
|
|
316
315
|
* * `"TOO_SMALL"`: The party is too small for the selected table.
|
|
317
316
|
* * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
|
|
318
317
|
* @maxSize 10
|
|
318
|
+
* @deprecated
|
|
319
|
+
* @replacedBy ignore_conflicts
|
|
320
|
+
* @targetRemovalDate 2025-12-05
|
|
319
321
|
*/
|
|
320
322
|
ignoreTableCombinationConflicts?: TableCombinationConflictTypeWithLiterals[];
|
|
321
323
|
/**
|
|
@@ -325,8 +327,13 @@ interface CreateReservationRequest {
|
|
|
325
327
|
* * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
|
|
326
328
|
* * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
|
|
327
329
|
* @maxSize 10
|
|
330
|
+
* @deprecated
|
|
331
|
+
* @replacedBy ignore_conflicts
|
|
332
|
+
* @targetRemovalDate 2025-12-05
|
|
328
333
|
*/
|
|
329
334
|
ignoreReservationLocationConflicts?: ReservationLocationConflictTypeWithLiterals[];
|
|
335
|
+
/** Conflicts to ignore. */
|
|
336
|
+
ignoreConflicts?: IgnoreConflicts;
|
|
330
337
|
}
|
|
331
338
|
declare enum TableCombinationConflictType {
|
|
332
339
|
/** Undefined conflict type. */
|
|
@@ -444,11 +451,17 @@ interface ReservationDetailsConflicts {
|
|
|
444
451
|
/**
|
|
445
452
|
* Table combinations conflicts.
|
|
446
453
|
* @maxSize 10
|
|
454
|
+
* @deprecated
|
|
455
|
+
* @replacedBy conflicts
|
|
456
|
+
* @targetRemovalDate 2025-12-05
|
|
447
457
|
*/
|
|
448
458
|
tableCombinationConflicts?: TableCombinationConflict[];
|
|
449
459
|
/**
|
|
450
460
|
* Reservation location conflicts.
|
|
451
461
|
* @maxSize 10
|
|
462
|
+
* @deprecated
|
|
463
|
+
* @replacedBy conflicts
|
|
464
|
+
* @targetRemovalDate 2025-12-05
|
|
452
465
|
*/
|
|
453
466
|
reservationLocationConflicts?: ReservationLocationConflict[];
|
|
454
467
|
/** Conflicts. */
|
|
@@ -532,10 +545,7 @@ interface GetReservationRequest {
|
|
|
532
545
|
fieldsets?: SetWithLiterals[];
|
|
533
546
|
}
|
|
534
547
|
declare enum Set {
|
|
535
|
-
/**
|
|
536
|
-
* Returns `id`, `status`, `details.reservationLocationId`, `details.startDate`, `details.endDate`, `details.partySize`, `createdDate`, `revision`, `declineReason`,
|
|
537
|
-
* `configuration.reservationForm.customFieldDefinitions`, `configuration.reservationForm.lastNameRequired`, `configuration.reservationForm.emailRequired`, `configuration.reservationForm.emailMarketingCheckbox`.
|
|
538
|
-
*/
|
|
548
|
+
/** Returns `id`, `status`, `details.reservationLocationId`, `details.experienceId`, `details.startDate`, `details.endDate`, `details.partySize`, `createdDate`, `revision`, `declineReason`, `paymentStatus`. */
|
|
539
549
|
PUBLIC = "PUBLIC",
|
|
540
550
|
/** Returns all fields. */
|
|
541
551
|
FULL = "FULL"
|
|
@@ -552,10 +562,20 @@ interface UpdateReservationRequest {
|
|
|
552
562
|
/**
|
|
553
563
|
* Ignore table combination conflicts of the types included in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
|
|
554
564
|
* @maxSize 10
|
|
565
|
+
* @deprecated
|
|
566
|
+
* @replacedBy ignore_conflicts
|
|
567
|
+
* @targetRemovalDate 2025-12-05
|
|
555
568
|
*/
|
|
556
569
|
ignoreTableCombinationConflicts?: TableCombinationConflictTypeWithLiterals[];
|
|
557
|
-
/**
|
|
570
|
+
/**
|
|
571
|
+
* @maxSize 10
|
|
572
|
+
* @deprecated
|
|
573
|
+
* @replacedBy ignore_conflicts
|
|
574
|
+
* @targetRemovalDate 2025-12-05
|
|
575
|
+
*/
|
|
558
576
|
ignoreReservationLocationConflicts?: ReservationLocationConflictTypeWithLiterals[];
|
|
577
|
+
/** Conflicts to ignore. */
|
|
578
|
+
ignoreConflicts?: IgnoreConflicts;
|
|
559
579
|
}
|
|
560
580
|
interface UpdateReservationResponse {
|
|
561
581
|
/** Reservation. */
|
|
@@ -619,8 +639,6 @@ interface CancelReservationRequest {
|
|
|
619
639
|
/**
|
|
620
640
|
* The phone number that was provided when the reservation was created.
|
|
621
641
|
*
|
|
622
|
-
* This is required for reservations with any `source` other than `WALK_IN`.
|
|
623
|
-
*
|
|
624
642
|
* This requirement provides additional security by ensuring that the canceling party knows both the reservation's `reservationId` and the reservee's `phone`.
|
|
625
643
|
* @format PHONE
|
|
626
644
|
*/
|
|
@@ -1579,7 +1597,7 @@ interface ReservationCreatedEnvelope {
|
|
|
1579
1597
|
metadata: EventMetadata;
|
|
1580
1598
|
}
|
|
1581
1599
|
/**
|
|
1582
|
-
* Triggered when a
|
|
1600
|
+
* Triggered when a reservation is created.
|
|
1583
1601
|
* @permissionScope Manage Reservations (Medium)
|
|
1584
1602
|
* @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-MEDIUM
|
|
1585
1603
|
* @permissionScope Manage Reservations (Full)
|
|
@@ -1684,6 +1702,9 @@ interface CreateReservationOptions {
|
|
|
1684
1702
|
* * `"TOO_SMALL"`: The party is too small for the selected table.
|
|
1685
1703
|
* * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
|
|
1686
1704
|
* @maxSize 10
|
|
1705
|
+
* @deprecated
|
|
1706
|
+
* @replacedBy ignore_conflicts
|
|
1707
|
+
* @targetRemovalDate 2025-12-05
|
|
1687
1708
|
*/
|
|
1688
1709
|
ignoreTableCombinationConflicts?: TableCombinationConflictTypeWithLiterals[];
|
|
1689
1710
|
/**
|
|
@@ -1693,8 +1714,13 @@ interface CreateReservationOptions {
|
|
|
1693
1714
|
* * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
|
|
1694
1715
|
* * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
|
|
1695
1716
|
* @maxSize 10
|
|
1717
|
+
* @deprecated
|
|
1718
|
+
* @replacedBy ignore_conflicts
|
|
1719
|
+
* @targetRemovalDate 2025-12-05
|
|
1696
1720
|
*/
|
|
1697
1721
|
ignoreReservationLocationConflicts?: ReservationLocationConflictTypeWithLiterals[];
|
|
1722
|
+
/** Conflicts to ignore. */
|
|
1723
|
+
ignoreConflicts?: IgnoreConflicts;
|
|
1698
1724
|
}
|
|
1699
1725
|
/**
|
|
1700
1726
|
* Retrieves a reservation.
|
|
@@ -1780,7 +1806,7 @@ interface UpdateReservation {
|
|
|
1780
1806
|
/**
|
|
1781
1807
|
* Information about the person making the reservation.
|
|
1782
1808
|
*
|
|
1783
|
-
* This field is required if the reservation's `
|
|
1809
|
+
* This field is required if the reservation's `source` is anything other than `WALK_IN`.
|
|
1784
1810
|
* @readonly
|
|
1785
1811
|
*/
|
|
1786
1812
|
reservedBy?: ReservedBy;
|
|
@@ -1838,10 +1864,20 @@ interface UpdateReservationOptions {
|
|
|
1838
1864
|
/**
|
|
1839
1865
|
* Ignore table combination conflicts of the types included in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
|
|
1840
1866
|
* @maxSize 10
|
|
1867
|
+
* @deprecated
|
|
1868
|
+
* @replacedBy ignore_conflicts
|
|
1869
|
+
* @targetRemovalDate 2025-12-05
|
|
1841
1870
|
*/
|
|
1842
1871
|
ignoreTableCombinationConflicts?: TableCombinationConflictTypeWithLiterals[];
|
|
1843
|
-
/**
|
|
1872
|
+
/**
|
|
1873
|
+
* @maxSize 10
|
|
1874
|
+
* @deprecated
|
|
1875
|
+
* @replacedBy ignore_conflicts
|
|
1876
|
+
* @targetRemovalDate 2025-12-05
|
|
1877
|
+
*/
|
|
1844
1878
|
ignoreReservationLocationConflicts?: ReservationLocationConflictTypeWithLiterals[];
|
|
1879
|
+
/** Conflicts to ignore. */
|
|
1880
|
+
ignoreConflicts?: IgnoreConflicts;
|
|
1845
1881
|
}
|
|
1846
1882
|
/**
|
|
1847
1883
|
* Creates a new temporary reservation and holds it for the customer for 10 minutes.
|
|
@@ -1919,8 +1955,6 @@ interface CancelReservationOptions {
|
|
|
1919
1955
|
/**
|
|
1920
1956
|
* The phone number that was provided when the reservation was created.
|
|
1921
1957
|
*
|
|
1922
|
-
* This is required for reservations with any `source` other than `WALK_IN`.
|
|
1923
|
-
*
|
|
1924
1958
|
* This requirement provides additional security by ensuring that the canceling party knows both the reservation's `reservationId` and the reservee's `phone`.
|
|
1925
1959
|
* @format PHONE
|
|
1926
1960
|
*/
|
package/build/es/index.d.mts
CHANGED
|
@@ -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 ReservationsQueryBuilder, p as ReservationSearch, S as SearchReservationsResponse, B as BulkArchiveReservationsResponse, q as BulkUnarchiveReservationsResponse, r as ReservationCreatedEnvelope, s as ReservationDeletedEnvelope, t as ReservationUpdatedEnvelope } from './table-reservations-v1-reservation-reservations.universal-
|
|
3
|
-
export { bp as ActionEvent, aG as Aggregation, aT as AggregationData, aH as AggregationKindOneOf, ba as AggregationResults, bb as AggregationResultsResultOneOf, a_ as AggregationResultsScalarResult, O as AggregationType, bW as AggregationTypeWithLiterals, bf as ApplicationError, bB as BaseEventMetadata, bg as BulkActionMetadata, bc as BulkArchiveReservationsRequest, bd as BulkArchiveReservationsResult, bh as BulkUnarchiveReservationsRequest, bi as BulkUnarchiveReservationsResult, aq as CancelReservationRequest, bZ as CommonSearchWithEntityContext, ai as Conflicts, ah as ConflictsExperienceOptions, aj as ConflictsOptionsOneOf, ag as ConflictsStandardOptions, ao as CreateHeldReservationRequest, a5 as CreateReservationRequest, aa as CreateReservationResponse, av as CursorPaging, ax as CursorPagingMetadata, aA as CursorQuery, aB as CursorQueryPagingMethodOneOf, aE as CursorSearch, aF as CursorSearchPagingMethodOneOf, ay as Cursors, aO as DateHistogramAggregation, b6 as DateHistogramResult, b8 as DateHistogramResults, as as DeleteReservationRequest, at as DeleteReservationResponse, X as Details, bj as DomainEvent, bk as DomainEventBodyOneOf, bq as Empty, bl as EntityCreatedEvent, bo as EntityDeletedEvent, bn as EntityUpdatedEvent, bC as EventMetadata, af as ExperienceConflict, x as ExperienceConflictType, bL as ExperienceConflictTypeWithLiterals, a9 as ExperienceOptions, ae as ExperienceTableCombinationConflict, E as ExperienceTableCombinationConflictType, bK as ExperienceTableCombinationConflictTypeWithLiterals, $ as ExtendedFields, ak as GetReservationRequest, al as GetReservationResponse, b7 as GroupByValueResults, bw as HeadersEntry, bz as IdentificationData, bA as IdentificationDataIdOneOf, a6 as IgnoreConflicts, a7 as IgnoreConflictsIgnoreConflictsOptionsOneOf, I as IgnoreConflictsType, bM as IgnoreConflictsTypeWithLiterals, aJ as IncludeMissingValuesOptions, K as Interval, bV as IntervalWithLiterals, be as ItemMetadata, au as ListReservationsRequest, by as MessageEnvelope, Z as MigrationNote, M as MissingValues, bS as MissingValuesWithLiterals, Q as Mode, bX as ModeWithLiterals, aR as NestedAggregation, aP as NestedAggregationItem, aQ as NestedAggregationItemKindOneOf, aW as NestedAggregationResults, aX as NestedAggregationResultsResultOneOf, N as NestedAggregationType, bU as NestedAggregationTypeWithLiterals, b3 as NestedResultValue, b4 as NestedResultValueResultOneOf, b9 as NestedResults, a$ as NestedValueAggregationResult, bu as PathParametersEntry, P as PaymentStatus, bH as PaymentStatusWithLiterals, bv as QueryParametersEntry, az as QueryReservationsRequest, aC as QueryReservationsResponse, aM as RangeAggregation, aV as RangeAggregationResult, aI as RangeBucket, b1 as RangeResult, aZ as RangeResults, bt as RawHttpRequest, bx as RawHttpResponse, br as RemoveReservationMigrationNotesRequest, bs as RemoveReservationMigrationNotesResponse, ar as ReservationCanceled, a2 as ReservationCreated, a0 as ReservationDelayedDomainEvent, a1 as ReservationDelayedDomainEventBodyTypeOneOf, a4 as ReservationDelayedDomainEventReservationCanceled, ab as ReservationDetailsConflicts, ad as ReservationLocationConflict, w as ReservationLocationConflictType, bJ as ReservationLocationConflictTypeWithLiterals, bE as ReservationSearchSpec, a3 as ReservationUpdated, bD as ReservationsQueryResult, ap as ReserveReservationRequest, Y as ReservedBy, bm as RestoreInfo, b5 as Results, aN as ScalarAggregation, b2 as ScalarResult, J as ScalarType, bT as ScalarTypeWithLiterals, aS as SearchDetails, aD as SearchReservationsRequest, z as Set, bO as SetWithLiterals, F as SortDirection, bR as SortDirectionWithLiterals, A as SortOrder, bP as SortOrderWithLiterals, D as SortType, bQ as SortTypeWithLiterals, aw as Sorting, v as Source, bG as SourceWithLiterals, a8 as StandardOptions, u as Status, bF as StatusWithLiterals, ac as TableCombinationConflict, T as TableCombinationConflictType, bI as TableCombinationConflictTypeWithLiterals, _ as TableWithReservationConflicts, V as Tables, y as Type, bN as TypeWithLiterals, am as UpdateReservationRequest, an as UpdateReservationResponse, aK as ValueAggregation, aL as ValueAggregationOptionsOneOf, aU as ValueAggregationResult, b0 as ValueResult, aY as ValueResults, W as WebhookIdentityType, bY as WebhookIdentityTypeWithLiterals } 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 ReservationsQueryBuilder, p as ReservationSearch, S as SearchReservationsResponse, B as BulkArchiveReservationsResponse, q as BulkUnarchiveReservationsResponse, r as ReservationCreatedEnvelope, s as ReservationDeletedEnvelope, t as ReservationUpdatedEnvelope } from './table-reservations-v1-reservation-reservations.universal-nFEfinIM.mjs';
|
|
3
|
+
export { bp as ActionEvent, aG as Aggregation, aT as AggregationData, aH as AggregationKindOneOf, ba as AggregationResults, bb as AggregationResultsResultOneOf, a_ as AggregationResultsScalarResult, O as AggregationType, bW as AggregationTypeWithLiterals, bf as ApplicationError, bB as BaseEventMetadata, bg as BulkActionMetadata, bc as BulkArchiveReservationsRequest, bd as BulkArchiveReservationsResult, bh as BulkUnarchiveReservationsRequest, bi as BulkUnarchiveReservationsResult, aq as CancelReservationRequest, bZ as CommonSearchWithEntityContext, ai as Conflicts, ah as ConflictsExperienceOptions, aj as ConflictsOptionsOneOf, ag as ConflictsStandardOptions, ao as CreateHeldReservationRequest, a5 as CreateReservationRequest, aa as CreateReservationResponse, av as CursorPaging, ax as CursorPagingMetadata, aA as CursorQuery, aB as CursorQueryPagingMethodOneOf, aE as CursorSearch, aF as CursorSearchPagingMethodOneOf, ay as Cursors, aO as DateHistogramAggregation, b6 as DateHistogramResult, b8 as DateHistogramResults, as as DeleteReservationRequest, at as DeleteReservationResponse, X as Details, bj as DomainEvent, bk as DomainEventBodyOneOf, bq as Empty, bl as EntityCreatedEvent, bo as EntityDeletedEvent, bn as EntityUpdatedEvent, bC as EventMetadata, af as ExperienceConflict, x as ExperienceConflictType, bL as ExperienceConflictTypeWithLiterals, a9 as ExperienceOptions, ae as ExperienceTableCombinationConflict, E as ExperienceTableCombinationConflictType, bK as ExperienceTableCombinationConflictTypeWithLiterals, $ as ExtendedFields, ak as GetReservationRequest, al as GetReservationResponse, b7 as GroupByValueResults, bw as HeadersEntry, bz as IdentificationData, bA as IdentificationDataIdOneOf, a6 as IgnoreConflicts, a7 as IgnoreConflictsIgnoreConflictsOptionsOneOf, I as IgnoreConflictsType, bM as IgnoreConflictsTypeWithLiterals, aJ as IncludeMissingValuesOptions, K as Interval, bV as IntervalWithLiterals, be as ItemMetadata, au as ListReservationsRequest, by as MessageEnvelope, Z as MigrationNote, M as MissingValues, bS as MissingValuesWithLiterals, Q as Mode, bX as ModeWithLiterals, aR as NestedAggregation, aP as NestedAggregationItem, aQ as NestedAggregationItemKindOneOf, aW as NestedAggregationResults, aX as NestedAggregationResultsResultOneOf, N as NestedAggregationType, bU as NestedAggregationTypeWithLiterals, b3 as NestedResultValue, b4 as NestedResultValueResultOneOf, b9 as NestedResults, a$ as NestedValueAggregationResult, bu as PathParametersEntry, P as PaymentStatus, bH as PaymentStatusWithLiterals, bv as QueryParametersEntry, az as QueryReservationsRequest, aC as QueryReservationsResponse, aM as RangeAggregation, aV as RangeAggregationResult, aI as RangeBucket, b1 as RangeResult, aZ as RangeResults, bt as RawHttpRequest, bx as RawHttpResponse, br as RemoveReservationMigrationNotesRequest, bs as RemoveReservationMigrationNotesResponse, ar as ReservationCanceled, a2 as ReservationCreated, a0 as ReservationDelayedDomainEvent, a1 as ReservationDelayedDomainEventBodyTypeOneOf, a4 as ReservationDelayedDomainEventReservationCanceled, ab as ReservationDetailsConflicts, ad as ReservationLocationConflict, w as ReservationLocationConflictType, bJ as ReservationLocationConflictTypeWithLiterals, bE as ReservationSearchSpec, a3 as ReservationUpdated, bD as ReservationsQueryResult, ap as ReserveReservationRequest, Y as ReservedBy, bm as RestoreInfo, b5 as Results, aN as ScalarAggregation, b2 as ScalarResult, J as ScalarType, bT as ScalarTypeWithLiterals, aS as SearchDetails, aD as SearchReservationsRequest, z as Set, bO as SetWithLiterals, F as SortDirection, bR as SortDirectionWithLiterals, A as SortOrder, bP as SortOrderWithLiterals, D as SortType, bQ as SortTypeWithLiterals, aw as Sorting, v as Source, bG as SourceWithLiterals, a8 as StandardOptions, u as Status, bF as StatusWithLiterals, ac as TableCombinationConflict, T as TableCombinationConflictType, bI as TableCombinationConflictTypeWithLiterals, _ as TableWithReservationConflicts, V as Tables, y as Type, bN as TypeWithLiterals, am as UpdateReservationRequest, an as UpdateReservationResponse, aK as ValueAggregation, aL as ValueAggregationOptionsOneOf, aU as ValueAggregationResult, b0 as ValueResult, aY as ValueResults, W as WebhookIdentityType, bY as WebhookIdentityTypeWithLiterals } from './table-reservations-v1-reservation-reservations.universal-nFEfinIM.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
|
|
6
6
|
interface CreateReservationSignature {
|
|
@@ -202,7 +202,7 @@ declare const searchReservations: MaybeContext<BuildRESTFunction<typeof searchRe
|
|
|
202
202
|
declare const bulkArchiveReservations: MaybeContext<BuildRESTFunction<typeof bulkArchiveReservations$1> & typeof bulkArchiveReservations$1>;
|
|
203
203
|
declare const bulkUnarchiveReservations: MaybeContext<BuildRESTFunction<typeof bulkUnarchiveReservations$1> & typeof bulkUnarchiveReservations$1>;
|
|
204
204
|
/**
|
|
205
|
-
* Triggered when a
|
|
205
|
+
* Triggered when a reservation is created.
|
|
206
206
|
*/
|
|
207
207
|
declare const onReservationCreated: BuildEventDefinition<typeof onReservationCreated$1> & typeof onReservationCreated$1;
|
|
208
208
|
/**
|
package/build/es/index.mjs
CHANGED
|
@@ -560,7 +560,6 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
560
560
|
Status2["SEATED"] = "SEATED";
|
|
561
561
|
Status2["REQUESTED"] = "REQUESTED";
|
|
562
562
|
Status2["DECLINED"] = "DECLINED";
|
|
563
|
-
Status2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
564
563
|
Status2["PAYMENT_INFORMATION_PENDING"] = "PAYMENT_INFORMATION_PENDING";
|
|
565
564
|
return Status2;
|
|
566
565
|
})(Status || {});
|
|
@@ -697,7 +696,8 @@ async function createReservation2(reservation, options) {
|
|
|
697
696
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
698
697
|
reservation,
|
|
699
698
|
ignoreTableCombinationConflicts: options?.ignoreTableCombinationConflicts,
|
|
700
|
-
ignoreReservationLocationConflicts: options?.ignoreReservationLocationConflicts
|
|
699
|
+
ignoreReservationLocationConflicts: options?.ignoreReservationLocationConflicts,
|
|
700
|
+
ignoreConflicts: options?.ignoreConflicts
|
|
701
701
|
});
|
|
702
702
|
const reqOpts = createReservation(payload);
|
|
703
703
|
sideEffects?.onSiteCall?.();
|
|
@@ -713,7 +713,8 @@ async function createReservation2(reservation, options) {
|
|
|
713
713
|
explicitPathsToArguments: {
|
|
714
714
|
reservation: "$[0]",
|
|
715
715
|
ignoreTableCombinationConflicts: "$[1].ignoreTableCombinationConflicts",
|
|
716
|
-
ignoreReservationLocationConflicts: "$[1].ignoreReservationLocationConflicts"
|
|
716
|
+
ignoreReservationLocationConflicts: "$[1].ignoreReservationLocationConflicts",
|
|
717
|
+
ignoreConflicts: "$[1].ignoreConflicts"
|
|
717
718
|
},
|
|
718
719
|
singleArgumentUnchanged: false
|
|
719
720
|
},
|
|
@@ -757,7 +758,8 @@ async function updateReservation2(_id, reservation, options) {
|
|
|
757
758
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
758
759
|
reservation: { ...reservation, id: _id },
|
|
759
760
|
ignoreTableCombinationConflicts: options?.ignoreTableCombinationConflicts,
|
|
760
|
-
ignoreReservationLocationConflicts: options?.ignoreReservationLocationConflicts
|
|
761
|
+
ignoreReservationLocationConflicts: options?.ignoreReservationLocationConflicts,
|
|
762
|
+
ignoreConflicts: options?.ignoreConflicts
|
|
761
763
|
});
|
|
762
764
|
const reqOpts = updateReservation(payload);
|
|
763
765
|
sideEffects?.onSiteCall?.();
|
|
@@ -773,7 +775,8 @@ async function updateReservation2(_id, reservation, options) {
|
|
|
773
775
|
explicitPathsToArguments: {
|
|
774
776
|
"reservation.id": "$[0]",
|
|
775
777
|
ignoreTableCombinationConflicts: "$[2].ignoreTableCombinationConflicts",
|
|
776
|
-
ignoreReservationLocationConflicts: "$[2].ignoreReservationLocationConflicts"
|
|
778
|
+
ignoreReservationLocationConflicts: "$[2].ignoreReservationLocationConflicts",
|
|
779
|
+
ignoreConflicts: "$[2].ignoreConflicts"
|
|
777
780
|
},
|
|
778
781
|
singleArgumentUnchanged: false
|
|
779
782
|
},
|