@wix/table-reservations 1.0.117 → 1.0.119

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/table-reservations",
3
- "version": "1.0.117",
3
+ "version": "1.0.119",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,9 +18,9 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/table-reservations_reservation-locations": "1.0.40",
22
- "@wix/table-reservations_reservations": "1.0.35",
23
- "@wix/table-reservations_time-slots": "1.0.38"
21
+ "@wix/table-reservations_reservation-locations": "1.0.41",
22
+ "@wix/table-reservations_reservations": "1.0.37",
23
+ "@wix/table-reservations_time-slots": "1.0.39"
24
24
  },
25
25
  "devDependencies": {
26
26
  "glob": "^10.4.1",
@@ -45,5 +45,5 @@
45
45
  "fqdn": ""
46
46
  }
47
47
  },
48
- "falconPackageHash": "7e3304c826c5324365e7c8539985eba5c717cda82c9847b6451003ab"
48
+ "falconPackageHash": "ee219035473bc54f3047debfe407f36873031fc5ac43ad3b45bce872"
49
49
  }
@@ -1,3 +1,47 @@
1
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
2
+ interface HttpClient {
3
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
4
+ fetchWithAuth: typeof fetch;
5
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
6
+ }
7
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
8
+ type HttpResponse<T = any> = {
9
+ data: T;
10
+ status: number;
11
+ statusText: string;
12
+ headers: any;
13
+ request?: any;
14
+ };
15
+ type RequestOptions<_TResponse = any, Data = any> = {
16
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
17
+ url: string;
18
+ data?: Data;
19
+ params?: URLSearchParams;
20
+ } & APIMetadata;
21
+ type APIMetadata = {
22
+ methodFqn?: string;
23
+ entityFqdn?: string;
24
+ packageName?: string;
25
+ };
26
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
27
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
28
+ __type: 'event-definition';
29
+ type: Type;
30
+ isDomainEvent?: boolean;
31
+ transformations?: (envelope: unknown) => Payload;
32
+ __payload: Payload;
33
+ };
34
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
35
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
36
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
37
+
38
+ declare global {
39
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
40
+ interface SymbolConstructor {
41
+ readonly observable: symbol;
42
+ }
43
+ }
44
+
1
45
  /** The reservation domain object. */
2
46
  interface Reservation {
3
47
  /**
@@ -505,7 +549,7 @@ interface SearchReservationsRequest {
505
549
  search: CursorSearch;
506
550
  }
507
551
  interface CursorSearch extends CursorSearchPagingMethodOneOf {
508
- /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
552
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursorPaging.cursor' can't be used together with 'filter' or 'sort'. */
509
553
  cursorPaging?: CursorPaging$1;
510
554
  /**
511
555
  * Filter object in the following format:
@@ -533,7 +577,7 @@ interface CursorSearch extends CursorSearchPagingMethodOneOf {
533
577
  }
534
578
  /** @oneof */
535
579
  interface CursorSearchPagingMethodOneOf {
536
- /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
580
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursorPaging.cursor' can't be used together with 'filter' or 'sort'. */
537
581
  cursorPaging?: CursorPaging$1;
538
582
  }
539
583
  interface Aggregation extends AggregationKindOneOf {
@@ -721,7 +765,7 @@ interface SearchDetails {
721
765
  /**
722
766
  * Fields to search in.
723
767
  *
724
- * Searchable fields are `reservee.first_name`, `reservee.last_name`, `reservee.phone`, and `reservee.email`.
768
+ * Searchable fields are `reservee.firstName`, `reservee.lastName`, `reservee.phone`, and `reservee.email`.
725
769
  *
726
770
  * If the array is empty, all fields are searched.
727
771
  */
@@ -1144,14 +1188,6 @@ interface SearchReservationsResponseNonNullableFields {
1144
1188
  reservations: ReservationNonNullableFields[];
1145
1189
  aggregationData?: AggregationDataNonNullableFields;
1146
1190
  }
1147
- interface HeadersEntryNonNullableFields {
1148
- key: string;
1149
- value: string;
1150
- }
1151
- interface RawHttpResponseNonNullableFields {
1152
- body: Uint8Array;
1153
- headers: HeadersEntryNonNullableFields[];
1154
- }
1155
1191
  interface BaseEventMetadata$1 {
1156
1192
  /** App instance ID. */
1157
1193
  instanceId?: string | null;
@@ -1419,71 +1455,160 @@ interface ReservationsQueryBuilder {
1419
1455
  /** @documentationMaturity preview */
1420
1456
  find: () => Promise<ReservationsQueryResult>;
1421
1457
  }
1422
- interface GetCalendarInviteFileWebhookOptions {
1423
- body?: Uint8Array;
1424
- pathParams?: PathParametersEntry[];
1425
- queryParams?: QueryParametersEntry[];
1426
- headers?: HeadersEntry[];
1427
- method?: string;
1428
- rawPath?: string;
1429
- rawQuery?: string;
1430
- }
1431
1458
 
1432
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
1433
- interface HttpClient {
1434
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1435
- fetchWithAuth: typeof fetch;
1436
- wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
1459
+ declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
1460
+ interface CreateReservationSignature {
1461
+ /**
1462
+ * Creates a new reservation.
1463
+ *
1464
+ * `createReservation()` accepts and requires different fields depending on the `status` provided and your permissions.
1465
+ *
1466
+ * **Status and source**
1467
+ *
1468
+ * If a `status` is not provided, it will be set to:
1469
+ * * `RESERVED` if manual approval is not required for confirmation
1470
+ * * `REQUESTED` if manual approval is required for confirmation.
1471
+ *
1472
+ * A reservation created with any `source` other than `WALK_IN` requires the `reservation.reservee.phone` and `reservation.reservee.firstName` fields.
1473
+ * Attempting to create a reservation without these fields will result in an error.
1474
+ *
1475
+ * **Permissions**
1476
+ *
1477
+ * Including the fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, or `ignoreTableCombinationConflicts` in the request requires additional permissions. See this API's Introduction article for more information.
1478
+ *
1479
+ * If `source` is not provided, its value is set depending on the permissions of the user making the call. See this API's Introduction article for more information.
1480
+ *
1481
+ *
1482
+ * > **Note:** `createReservation()` requires all details of the reservation upfront. The process of creating a reservation can be broken up using `createHeldReservation`. `createHeldReservation` creates a temporary reservation that expires automatically unless it is completed with the addition of more details using `reserveReservation()`.
1483
+ * @param - Reservation details.
1484
+ * @param - Options for creating the reservation.
1485
+ * @returns Reservation.
1486
+ */
1487
+ (reservation: Reservation, options?: CreateReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
1437
1488
  }
1438
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
1439
- type HttpResponse<T = any> = {
1440
- data: T;
1441
- status: number;
1442
- statusText: string;
1443
- headers: any;
1444
- request?: any;
1445
- };
1446
- type RequestOptions<_TResponse = any, Data = any> = {
1447
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1448
- url: string;
1449
- data?: Data;
1450
- params?: URLSearchParams;
1451
- } & APIMetadata;
1452
- type APIMetadata = {
1453
- methodFqn?: string;
1454
- entityFqdn?: string;
1455
- packageName?: string;
1456
- };
1457
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
1458
- type EventDefinition<Payload = unknown, Type extends string = string> = {
1459
- __type: 'event-definition';
1460
- type: Type;
1461
- isDomainEvent?: boolean;
1462
- transformations?: (envelope: unknown) => Payload;
1463
- __payload: Payload;
1464
- };
1465
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
1466
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
1467
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
1468
-
1469
- declare global {
1470
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1471
- interface SymbolConstructor {
1472
- readonly observable: symbol;
1473
- }
1489
+ declare function getReservation$1(httpClient: HttpClient): GetReservationSignature;
1490
+ interface GetReservationSignature {
1491
+ /**
1492
+ * Retrieves a reservation.
1493
+ *
1494
+ * Calling this method with `fieldsets` set to `FULL` requires additional permissions. See this API's Introduction article for more information.
1495
+ * @param - Reservation ID.
1496
+ * @returns Reservation.
1497
+ */
1498
+ (reservationId: string, options?: GetReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
1499
+ }
1500
+ declare function updateReservation$1(httpClient: HttpClient): UpdateReservationSignature;
1501
+ interface UpdateReservationSignature {
1502
+ /**
1503
+ * Updates a reservation.
1504
+ *
1505
+ * Including the fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, and `ignoreTableCombinationConflicts` in the request requires additional permissions. See this API's Introduction article for more information.
1506
+ *
1507
+ * Each time the reservation is updated, revision increments by 1. The existing revision must be included when updating the reservation. This ensures you're working with the latest reservation information, and it prevents unintended overwrites.
1508
+ * @param - Reservation ID.
1509
+ * @param - Options for updating the reservation.
1510
+ * @param - Reservation information to update.
1511
+ * @returns Reservation.
1512
+ */
1513
+ (_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
1514
+ }
1515
+ declare function createHeldReservation$1(httpClient: HttpClient): CreateHeldReservationSignature;
1516
+ interface CreateHeldReservationSignature {
1517
+ /**
1518
+ * Creates a new temporary reservation and holds it for the customer for 10 minutes.
1519
+ *
1520
+ * Creates a new reservation with the `HELD` status. `HELD` reservations are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
1521
+ *
1522
+ * You cannot call `updateReservation()` to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use `reserveReservation()`.
1523
+ *
1524
+ * If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using `createReservation()`.
1525
+ *
1526
+ * @param - Held reservation information to update.
1527
+ */
1528
+ (reservationDetails: HeldReservationDetails): Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
1529
+ }
1530
+ declare function reserveReservation$1(httpClient: HttpClient): ReserveReservationSignature;
1531
+ interface ReserveReservationSignature {
1532
+ /**
1533
+ * Reserves or requests a held reservation.
1534
+ *
1535
+ * Held reservations are temporary reservations with the `HELD` status created by `createHeldReservation()`.
1536
+ *
1537
+ * They are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to call `Reserve Reservation` with a held reservation older than 10 minutes returns an error.
1538
+ *
1539
+ * `Reserve Reservation` changes a reservation's `HELD` status to:
1540
+ * * `RESERVED` if the reservation's reservation location does not require manual approval.
1541
+ * * `REQUESTED` if the reservation's reservation location requires manual approval.
1542
+ * @param - Reservation ID.
1543
+ * @param - Reservee details.
1544
+ * @param - Revision number.
1545
+ *
1546
+ * Include the existing `revision` to prevent conflicting updates to reservations.
1547
+ */
1548
+ (reservationId: string, reservee: Reservee, revision: string | null): Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
1549
+ }
1550
+ declare function cancelReservation$1(httpClient: HttpClient): CancelReservationSignature;
1551
+ interface CancelReservationSignature {
1552
+ /**
1553
+ * Cancels a reservation.
1554
+ *
1555
+ * Sets the reservation status to `CANCELED`.
1556
+ * @param - Reservation ID.
1557
+ * @param - Revision number.
1558
+ *
1559
+ * Include the existing `revision` to prevent conflicting updates to reservations.
1560
+ * @param - Options for canceling the reservation.
1561
+ */
1562
+ (reservationId: string, revision: string | null, options?: CancelReservationOptions | undefined): Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
1563
+ }
1564
+ declare function deleteReservation$1(httpClient: HttpClient): DeleteReservationSignature;
1565
+ interface DeleteReservationSignature {
1566
+ /**
1567
+ * Deletes a reservation. Only reservations with the `HELD` status can be deleted.
1568
+ * @param - Reservation ID.
1569
+ */
1570
+ (reservationId: string): Promise<void>;
1571
+ }
1572
+ declare function listReservations$1(httpClient: HttpClient): ListReservationsSignature;
1573
+ interface ListReservationsSignature {
1574
+ /**
1575
+ * Retrieves a list of up to 100 reservations.
1576
+ * @param - Options for listing the reservations.
1577
+ */
1578
+ (options?: ListReservationsOptions | undefined): Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
1579
+ }
1580
+ declare function queryReservations$1(httpClient: HttpClient): QueryReservationsSignature;
1581
+ interface QueryReservationsSignature {
1582
+ /**
1583
+ * Creates a query to retrieve a list of reservations.
1584
+ *
1585
+ * The `queryReservations()` function builds a query to retrieve a list of reservations and returns a [`ReservationsQueryBuilder`](/reservations/reservations-query-builder) object.
1586
+ *
1587
+ * The returned object contains the query definition, which is used to run the query using the [find()](/reservations/reservations-query-builder/find) function.
1588
+ *
1589
+ * You can refine the query by chaining `ReservationsQueryBuilder` functions onto the query. `ReservationsQueryBuilder` functions enable you to filter, sort, and control the results that `queryReservations()` returns.
1590
+ *
1591
+ * `queryReservations()` runs with the following `ReservationsQueryBuilder` defaults, which you can override:
1592
+ *
1593
+ * * [`skip(0)`](/reservations/reservations-query-builder/skip)
1594
+ * * [`limit(50)`](/reservations/reservations-query-builder/limit)
1595
+ * * [`descending('_createdDate')`](/reservations/reservations-query-builder/descending)
1596
+ *
1597
+ * The following `ReservationsQueryBuilder` functions are supported for `queryReservations()`. For a full description of the reservation object, see the object returned for the [`items`](/reservations/reservations-query-builder/items) property in [`ReservationsQueryResult`](/reservations/reservations-query-result).
1598
+ */
1599
+ (): ReservationsQueryBuilder;
1600
+ }
1601
+ declare function searchReservations$1(httpClient: HttpClient): SearchReservationsSignature;
1602
+ interface SearchReservationsSignature {
1603
+ /**
1604
+ * Use this endpoint to search the fields of the table reservations on a site for a given expression.
1605
+ *
1606
+ * You can also use this endpoint to perform data aggregations on a site's table reservation fields.
1607
+ * For a detailed list of supported operations, see the [Sorting, Filtering, and Search](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservations/sorting-filtering-and-search) article.
1608
+ * @param - Search query.
1609
+ */
1610
+ (search: CursorSearch): Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
1474
1611
  }
1475
-
1476
- declare function createReservation$1(httpClient: HttpClient): (reservation: Reservation, options?: CreateReservationOptions) => Promise<Reservation & ReservationNonNullableFields>;
1477
- declare function getReservation$1(httpClient: HttpClient): (reservationId: string, options?: GetReservationOptions) => Promise<Reservation & ReservationNonNullableFields>;
1478
- declare function updateReservation$1(httpClient: HttpClient): (_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions) => Promise<Reservation & ReservationNonNullableFields>;
1479
- declare function createHeldReservation$1(httpClient: HttpClient): (reservationDetails: HeldReservationDetails) => Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
1480
- declare function reserveReservation$1(httpClient: HttpClient): (reservationId: string, reservee: Reservee, revision: string | null) => Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
1481
- declare function cancelReservation$1(httpClient: HttpClient): (reservationId: string, revision: string | null, options?: CancelReservationOptions) => Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
1482
- declare function deleteReservation$1(httpClient: HttpClient): (reservationId: string) => Promise<void>;
1483
- declare function listReservations$1(httpClient: HttpClient): (options?: ListReservationsOptions) => Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
1484
- declare function queryReservations$1(httpClient: HttpClient): () => ReservationsQueryBuilder;
1485
- declare function searchReservations$1(httpClient: HttpClient): (search: CursorSearch) => Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
1486
- declare function getCalendarInviteFileWebhook$1(httpClient: HttpClient): (options?: GetCalendarInviteFileWebhookOptions) => Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
1487
1612
  declare const onReservationCreated$1: EventDefinition<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
1488
1613
 
1489
1614
  declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
@@ -1510,10 +1635,11 @@ type _publicQueryReservationsType = typeof queryReservations$1;
1510
1635
  declare const queryReservations: ReturnType<typeof createRESTModule$2<_publicQueryReservationsType>>;
1511
1636
  type _publicSearchReservationsType = typeof searchReservations$1;
1512
1637
  declare const searchReservations: ReturnType<typeof createRESTModule$2<_publicSearchReservationsType>>;
1513
- type _publicGetCalendarInviteFileWebhookType = typeof getCalendarInviteFileWebhook$1;
1514
- declare const getCalendarInviteFileWebhook: ReturnType<typeof createRESTModule$2<_publicGetCalendarInviteFileWebhookType>>;
1515
1638
 
1516
1639
  type _publicOnReservationCreatedType = typeof onReservationCreated$1;
1640
+ /**
1641
+ * Triggered when a held reservation is created.
1642
+ */
1517
1643
  declare const onReservationCreated: ReturnType<typeof createEventModule$1<_publicOnReservationCreatedType>>;
1518
1644
 
1519
1645
  type context$2_Aggregation = Aggregation;
@@ -1545,7 +1671,6 @@ type context$2_DateHistogramResults = DateHistogramResults;
1545
1671
  type context$2_DeleteReservationRequest = DeleteReservationRequest;
1546
1672
  type context$2_DeleteReservationResponse = DeleteReservationResponse;
1547
1673
  type context$2_Details = Details;
1548
- type context$2_GetCalendarInviteFileWebhookOptions = GetCalendarInviteFileWebhookOptions;
1549
1674
  type context$2_GetReservationOptions = GetReservationOptions;
1550
1675
  type context$2_GetReservationRequest = GetReservationRequest;
1551
1676
  type context$2_GetReservationResponse = GetReservationResponse;
@@ -1588,7 +1713,6 @@ type context$2_RangeResult = RangeResult;
1588
1713
  type context$2_RangeResults = RangeResults;
1589
1714
  type context$2_RawHttpRequest = RawHttpRequest;
1590
1715
  type context$2_RawHttpResponse = RawHttpResponse;
1591
- type context$2_RawHttpResponseNonNullableFields = RawHttpResponseNonNullableFields;
1592
1716
  type context$2_RemoveReservationMigrationNotesRequest = RemoveReservationMigrationNotesRequest;
1593
1717
  type context$2_RemoveReservationMigrationNotesResponse = RemoveReservationMigrationNotesResponse;
1594
1718
  type context$2_Reservation = Reservation;
@@ -1639,7 +1763,6 @@ type context$2__publicCancelReservationType = _publicCancelReservationType;
1639
1763
  type context$2__publicCreateHeldReservationType = _publicCreateHeldReservationType;
1640
1764
  type context$2__publicCreateReservationType = _publicCreateReservationType;
1641
1765
  type context$2__publicDeleteReservationType = _publicDeleteReservationType;
1642
- type context$2__publicGetCalendarInviteFileWebhookType = _publicGetCalendarInviteFileWebhookType;
1643
1766
  type context$2__publicGetReservationType = _publicGetReservationType;
1644
1767
  type context$2__publicListReservationsType = _publicListReservationsType;
1645
1768
  type context$2__publicOnReservationCreatedType = _publicOnReservationCreatedType;
@@ -1651,7 +1774,6 @@ declare const context$2_cancelReservation: typeof cancelReservation;
1651
1774
  declare const context$2_createHeldReservation: typeof createHeldReservation;
1652
1775
  declare const context$2_createReservation: typeof createReservation;
1653
1776
  declare const context$2_deleteReservation: typeof deleteReservation;
1654
- declare const context$2_getCalendarInviteFileWebhook: typeof getCalendarInviteFileWebhook;
1655
1777
  declare const context$2_getReservation: typeof getReservation;
1656
1778
  declare const context$2_listReservations: typeof listReservations;
1657
1779
  declare const context$2_onReservationCreated: typeof onReservationCreated;
@@ -1660,7 +1782,7 @@ declare const context$2_reserveReservation: typeof reserveReservation;
1660
1782
  declare const context$2_searchReservations: typeof searchReservations;
1661
1783
  declare const context$2_updateReservation: typeof updateReservation;
1662
1784
  declare namespace context$2 {
1663
- export { type ActionEvent$1 as ActionEvent, type context$2_Aggregation as Aggregation, type context$2_AggregationData as AggregationData, type context$2_AggregationKindOneOf as AggregationKindOneOf, type context$2_AggregationResults as AggregationResults, type context$2_AggregationResultsResultOneOf as AggregationResultsResultOneOf, type context$2_AggregationResultsScalarResult as AggregationResultsScalarResult, context$2_AggregationType as AggregationType, type BaseEventMetadata$1 as BaseEventMetadata, type context$2_CancelReservationOptions as CancelReservationOptions, type context$2_CancelReservationRequest as CancelReservationRequest, type context$2_CancelReservationResponse as CancelReservationResponse, type context$2_CancelReservationResponseNonNullableFields as CancelReservationResponseNonNullableFields, type context$2_CreateHeldReservationRequest as CreateHeldReservationRequest, type context$2_CreateHeldReservationResponse as CreateHeldReservationResponse, type context$2_CreateHeldReservationResponseNonNullableFields as CreateHeldReservationResponseNonNullableFields, type context$2_CreateReservationOptions as CreateReservationOptions, type context$2_CreateReservationRequest as CreateReservationRequest, type context$2_CreateReservationResponse as CreateReservationResponse, type context$2_CreateReservationResponseNonNullableFields as CreateReservationResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type context$2_CursorQuery as CursorQuery, type context$2_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context$2_CursorSearch as CursorSearch, type context$2_CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOf, type Cursors$1 as Cursors, type context$2_DateHistogramAggregation as DateHistogramAggregation, type context$2_DateHistogramResult as DateHistogramResult, type context$2_DateHistogramResults as DateHistogramResults, type context$2_DeleteReservationRequest as DeleteReservationRequest, type context$2_DeleteReservationResponse as DeleteReservationResponse, type context$2_Details as Details, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$2_GetCalendarInviteFileWebhookOptions as GetCalendarInviteFileWebhookOptions, type context$2_GetReservationOptions as GetReservationOptions, type context$2_GetReservationRequest as GetReservationRequest, type context$2_GetReservationResponse as GetReservationResponse, type context$2_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type context$2_GroupByValueResults as GroupByValueResults, type context$2_HeadersEntry as HeadersEntry, type context$2_HeldReservationDetails as HeldReservationDetails, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$2_IncludeMissingValuesOptions as IncludeMissingValuesOptions, context$2_Interval as Interval, type context$2_ListReservationsOptions as ListReservationsOptions, type context$2_ListReservationsRequest as ListReservationsRequest, type context$2_ListReservationsResponse as ListReservationsResponse, type context$2_ListReservationsResponseNonNullableFields as ListReservationsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type context$2_MigrationNote as MigrationNote, context$2_MissingValues as MissingValues, Mode$1 as Mode, type context$2_NestedAggregation as NestedAggregation, type context$2_NestedAggregationItem as NestedAggregationItem, type context$2_NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOf, type context$2_NestedAggregationResults as NestedAggregationResults, type context$2_NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOf, context$2_NestedAggregationType as NestedAggregationType, type context$2_NestedResultValue as NestedResultValue, type context$2_NestedResultValueResultOneOf as NestedResultValueResultOneOf, type context$2_NestedResults as NestedResults, type context$2_NestedValueAggregationResult as NestedValueAggregationResult, type context$2_PathParametersEntry as PathParametersEntry, context$2_PaymentStatus as PaymentStatus, type context$2_QueryParametersEntry as QueryParametersEntry, type context$2_QueryReservationsRequest as QueryReservationsRequest, type context$2_QueryReservationsResponse as QueryReservationsResponse, type context$2_QueryReservationsResponseNonNullableFields as QueryReservationsResponseNonNullableFields, type context$2_RangeAggregation as RangeAggregation, type context$2_RangeAggregationResult as RangeAggregationResult, type context$2_RangeBucket as RangeBucket, type context$2_RangeResult as RangeResult, type context$2_RangeResults as RangeResults, type context$2_RawHttpRequest as RawHttpRequest, type context$2_RawHttpResponse as RawHttpResponse, type context$2_RawHttpResponseNonNullableFields as RawHttpResponseNonNullableFields, type context$2_RemoveReservationMigrationNotesRequest as RemoveReservationMigrationNotesRequest, type context$2_RemoveReservationMigrationNotesResponse as RemoveReservationMigrationNotesResponse, type context$2_Reservation as Reservation, type context$2_ReservationCanceled as ReservationCanceled, type context$2_ReservationCreated as ReservationCreated, type context$2_ReservationCreatedEnvelope as ReservationCreatedEnvelope, type context$2_ReservationDataUpdated as ReservationDataUpdated, type context$2_ReservationDelayedDomainEvent as ReservationDelayedDomainEvent, type context$2_ReservationDelayedDomainEventBodyTypeOneOf as ReservationDelayedDomainEventBodyTypeOneOf, type context$2_ReservationDelayedDomainEventReservationCanceled as ReservationDelayedDomainEventReservationCanceled, type context$2_ReservationDetailsConflicts as ReservationDetailsConflicts, type ReservationLocationConflict$1 as ReservationLocationConflict, type context$2_ReservationNonNullableFields as ReservationNonNullableFields, type context$2_ReservationUpdated as ReservationUpdated, type context$2_ReservationsQueryBuilder as ReservationsQueryBuilder, type context$2_ReservationsQueryResult as ReservationsQueryResult, type context$2_ReserveReservationRequest as ReserveReservationRequest, type context$2_ReserveReservationResponse as ReserveReservationResponse, type context$2_ReserveReservationResponseNonNullableFields as ReserveReservationResponseNonNullableFields, type context$2_ReservedBy as ReservedBy, type context$2_Reservee as Reservee, type RestoreInfo$1 as RestoreInfo, type context$2_Results as Results, type context$2_ScalarAggregation as ScalarAggregation, type context$2_ScalarResult as ScalarResult, context$2_ScalarType as ScalarType, type context$2_SearchDetails as SearchDetails, type context$2_SearchReservationsRequest as SearchReservationsRequest, type context$2_SearchReservationsResponse as SearchReservationsResponse, type context$2_SearchReservationsResponseNonNullableFields as SearchReservationsResponseNonNullableFields, Set$1 as Set, context$2_SortDirection as SortDirection, SortOrder$1 as SortOrder, context$2_SortType as SortType, type Sorting$1 as Sorting, context$2_Source as Source, Status$1 as Status, type TableCombinationConflict$1 as TableCombinationConflict, TableCombinationConflictType$1 as TableCombinationConflictType, type context$2_TableWithReservationConflicts as TableWithReservationConflicts, Type$1 as Type, type context$2_UpdateReservation as UpdateReservation, type context$2_UpdateReservationOptions as UpdateReservationOptions, type context$2_UpdateReservationRequest as UpdateReservationRequest, type context$2_UpdateReservationResponse as UpdateReservationResponse, type context$2_UpdateReservationResponseNonNullableFields as UpdateReservationResponseNonNullableFields, type context$2_ValueAggregation as ValueAggregation, type context$2_ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOf, type context$2_ValueAggregationResult as ValueAggregationResult, type context$2_ValueResult as ValueResult, type context$2_ValueResults as ValueResults, WebhookIdentityType$1 as WebhookIdentityType, type context$2__publicCancelReservationType as _publicCancelReservationType, type context$2__publicCreateHeldReservationType as _publicCreateHeldReservationType, type context$2__publicCreateReservationType as _publicCreateReservationType, type context$2__publicDeleteReservationType as _publicDeleteReservationType, type context$2__publicGetCalendarInviteFileWebhookType as _publicGetCalendarInviteFileWebhookType, type context$2__publicGetReservationType as _publicGetReservationType, type context$2__publicListReservationsType as _publicListReservationsType, type context$2__publicOnReservationCreatedType as _publicOnReservationCreatedType, type context$2__publicQueryReservationsType as _publicQueryReservationsType, type context$2__publicReserveReservationType as _publicReserveReservationType, type context$2__publicSearchReservationsType as _publicSearchReservationsType, type context$2__publicUpdateReservationType as _publicUpdateReservationType, context$2_cancelReservation as cancelReservation, context$2_createHeldReservation as createHeldReservation, context$2_createReservation as createReservation, context$2_deleteReservation as deleteReservation, context$2_getCalendarInviteFileWebhook as getCalendarInviteFileWebhook, context$2_getReservation as getReservation, context$2_listReservations as listReservations, context$2_onReservationCreated as onReservationCreated, onReservationCreated$1 as publicOnReservationCreated, context$2_queryReservations as queryReservations, context$2_reserveReservation as reserveReservation, context$2_searchReservations as searchReservations, context$2_updateReservation as updateReservation };
1785
+ export { type ActionEvent$1 as ActionEvent, type context$2_Aggregation as Aggregation, type context$2_AggregationData as AggregationData, type context$2_AggregationKindOneOf as AggregationKindOneOf, type context$2_AggregationResults as AggregationResults, type context$2_AggregationResultsResultOneOf as AggregationResultsResultOneOf, type context$2_AggregationResultsScalarResult as AggregationResultsScalarResult, context$2_AggregationType as AggregationType, type BaseEventMetadata$1 as BaseEventMetadata, type context$2_CancelReservationOptions as CancelReservationOptions, type context$2_CancelReservationRequest as CancelReservationRequest, type context$2_CancelReservationResponse as CancelReservationResponse, type context$2_CancelReservationResponseNonNullableFields as CancelReservationResponseNonNullableFields, type context$2_CreateHeldReservationRequest as CreateHeldReservationRequest, type context$2_CreateHeldReservationResponse as CreateHeldReservationResponse, type context$2_CreateHeldReservationResponseNonNullableFields as CreateHeldReservationResponseNonNullableFields, type context$2_CreateReservationOptions as CreateReservationOptions, type context$2_CreateReservationRequest as CreateReservationRequest, type context$2_CreateReservationResponse as CreateReservationResponse, type context$2_CreateReservationResponseNonNullableFields as CreateReservationResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type context$2_CursorQuery as CursorQuery, type context$2_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context$2_CursorSearch as CursorSearch, type context$2_CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOf, type Cursors$1 as Cursors, type context$2_DateHistogramAggregation as DateHistogramAggregation, type context$2_DateHistogramResult as DateHistogramResult, type context$2_DateHistogramResults as DateHistogramResults, type context$2_DeleteReservationRequest as DeleteReservationRequest, type context$2_DeleteReservationResponse as DeleteReservationResponse, type context$2_Details as Details, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$2_GetReservationOptions as GetReservationOptions, type context$2_GetReservationRequest as GetReservationRequest, type context$2_GetReservationResponse as GetReservationResponse, type context$2_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type context$2_GroupByValueResults as GroupByValueResults, type context$2_HeadersEntry as HeadersEntry, type context$2_HeldReservationDetails as HeldReservationDetails, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$2_IncludeMissingValuesOptions as IncludeMissingValuesOptions, context$2_Interval as Interval, type context$2_ListReservationsOptions as ListReservationsOptions, type context$2_ListReservationsRequest as ListReservationsRequest, type context$2_ListReservationsResponse as ListReservationsResponse, type context$2_ListReservationsResponseNonNullableFields as ListReservationsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type context$2_MigrationNote as MigrationNote, context$2_MissingValues as MissingValues, Mode$1 as Mode, type context$2_NestedAggregation as NestedAggregation, type context$2_NestedAggregationItem as NestedAggregationItem, type context$2_NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOf, type context$2_NestedAggregationResults as NestedAggregationResults, type context$2_NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOf, context$2_NestedAggregationType as NestedAggregationType, type context$2_NestedResultValue as NestedResultValue, type context$2_NestedResultValueResultOneOf as NestedResultValueResultOneOf, type context$2_NestedResults as NestedResults, type context$2_NestedValueAggregationResult as NestedValueAggregationResult, type context$2_PathParametersEntry as PathParametersEntry, context$2_PaymentStatus as PaymentStatus, type context$2_QueryParametersEntry as QueryParametersEntry, type context$2_QueryReservationsRequest as QueryReservationsRequest, type context$2_QueryReservationsResponse as QueryReservationsResponse, type context$2_QueryReservationsResponseNonNullableFields as QueryReservationsResponseNonNullableFields, type context$2_RangeAggregation as RangeAggregation, type context$2_RangeAggregationResult as RangeAggregationResult, type context$2_RangeBucket as RangeBucket, type context$2_RangeResult as RangeResult, type context$2_RangeResults as RangeResults, type context$2_RawHttpRequest as RawHttpRequest, type context$2_RawHttpResponse as RawHttpResponse, type context$2_RemoveReservationMigrationNotesRequest as RemoveReservationMigrationNotesRequest, type context$2_RemoveReservationMigrationNotesResponse as RemoveReservationMigrationNotesResponse, type context$2_Reservation as Reservation, type context$2_ReservationCanceled as ReservationCanceled, type context$2_ReservationCreated as ReservationCreated, type context$2_ReservationCreatedEnvelope as ReservationCreatedEnvelope, type context$2_ReservationDataUpdated as ReservationDataUpdated, type context$2_ReservationDelayedDomainEvent as ReservationDelayedDomainEvent, type context$2_ReservationDelayedDomainEventBodyTypeOneOf as ReservationDelayedDomainEventBodyTypeOneOf, type context$2_ReservationDelayedDomainEventReservationCanceled as ReservationDelayedDomainEventReservationCanceled, type context$2_ReservationDetailsConflicts as ReservationDetailsConflicts, type ReservationLocationConflict$1 as ReservationLocationConflict, type context$2_ReservationNonNullableFields as ReservationNonNullableFields, type context$2_ReservationUpdated as ReservationUpdated, type context$2_ReservationsQueryBuilder as ReservationsQueryBuilder, type context$2_ReservationsQueryResult as ReservationsQueryResult, type context$2_ReserveReservationRequest as ReserveReservationRequest, type context$2_ReserveReservationResponse as ReserveReservationResponse, type context$2_ReserveReservationResponseNonNullableFields as ReserveReservationResponseNonNullableFields, type context$2_ReservedBy as ReservedBy, type context$2_Reservee as Reservee, type RestoreInfo$1 as RestoreInfo, type context$2_Results as Results, type context$2_ScalarAggregation as ScalarAggregation, type context$2_ScalarResult as ScalarResult, context$2_ScalarType as ScalarType, type context$2_SearchDetails as SearchDetails, type context$2_SearchReservationsRequest as SearchReservationsRequest, type context$2_SearchReservationsResponse as SearchReservationsResponse, type context$2_SearchReservationsResponseNonNullableFields as SearchReservationsResponseNonNullableFields, Set$1 as Set, context$2_SortDirection as SortDirection, SortOrder$1 as SortOrder, context$2_SortType as SortType, type Sorting$1 as Sorting, context$2_Source as Source, Status$1 as Status, type TableCombinationConflict$1 as TableCombinationConflict, TableCombinationConflictType$1 as TableCombinationConflictType, type context$2_TableWithReservationConflicts as TableWithReservationConflicts, Type$1 as Type, type context$2_UpdateReservation as UpdateReservation, type context$2_UpdateReservationOptions as UpdateReservationOptions, type context$2_UpdateReservationRequest as UpdateReservationRequest, type context$2_UpdateReservationResponse as UpdateReservationResponse, type context$2_UpdateReservationResponseNonNullableFields as UpdateReservationResponseNonNullableFields, type context$2_ValueAggregation as ValueAggregation, type context$2_ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOf, type context$2_ValueAggregationResult as ValueAggregationResult, type context$2_ValueResult as ValueResult, type context$2_ValueResults as ValueResults, WebhookIdentityType$1 as WebhookIdentityType, type context$2__publicCancelReservationType as _publicCancelReservationType, type context$2__publicCreateHeldReservationType as _publicCreateHeldReservationType, type context$2__publicCreateReservationType as _publicCreateReservationType, type context$2__publicDeleteReservationType as _publicDeleteReservationType, type context$2__publicGetReservationType as _publicGetReservationType, type context$2__publicListReservationsType as _publicListReservationsType, type context$2__publicOnReservationCreatedType as _publicOnReservationCreatedType, type context$2__publicQueryReservationsType as _publicQueryReservationsType, type context$2__publicReserveReservationType as _publicReserveReservationType, type context$2__publicSearchReservationsType as _publicSearchReservationsType, type context$2__publicUpdateReservationType as _publicUpdateReservationType, context$2_cancelReservation as cancelReservation, context$2_createHeldReservation as createHeldReservation, context$2_createReservation as createReservation, context$2_deleteReservation as deleteReservation, context$2_getReservation as getReservation, context$2_listReservations as listReservations, context$2_onReservationCreated as onReservationCreated, onReservationCreated$1 as publicOnReservationCreated, context$2_queryReservations as queryReservations, context$2_reserveReservation as reserveReservation, context$2_searchReservations as searchReservations, context$2_updateReservation as updateReservation };
1664
1786
  }
1665
1787
 
1666
1788
  interface ReservationLocation {
@@ -3803,10 +3925,65 @@ interface ListReservationLocationsOptions {
3803
3925
  fieldsets?: Set[];
3804
3926
  }
3805
3927
 
3806
- declare function getReservationLocation$1(httpClient: HttpClient): (reservationLocationId: string, options?: GetReservationLocationOptions) => Promise<ReservationLocation & ReservationLocationNonNullableFields>;
3807
- declare function updateReservationLocation$1(httpClient: HttpClient): (_id: string | null, reservationLocation: UpdateReservationLocation) => Promise<ReservationLocation & ReservationLocationNonNullableFields>;
3808
- declare function queryReservationLocations$1(httpClient: HttpClient): (options?: QueryReservationLocationsOptions) => ReservationLocationsQueryBuilder;
3809
- declare function listReservationLocations$1(httpClient: HttpClient): (options?: ListReservationLocationsOptions) => Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
3928
+ declare function getReservationLocation$1(httpClient: HttpClient): GetReservationLocationSignature;
3929
+ interface GetReservationLocationSignature {
3930
+ /**
3931
+ * Retrieves a reservation location by ID.
3932
+ *
3933
+ * The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
3934
+ * @param - ID of the ReservationLocation to retrieve.
3935
+ * @param - An object representing the available options for retrieving a reservation location.
3936
+ * @returns The retrieved reservation location.
3937
+ */
3938
+ (reservationLocationId: string, options?: GetReservationLocationOptions | undefined): Promise<ReservationLocation & ReservationLocationNonNullableFields>;
3939
+ }
3940
+ declare function updateReservationLocation$1(httpClient: HttpClient): UpdateReservationLocationSignature;
3941
+ interface UpdateReservationLocationSignature {
3942
+ /**
3943
+ * Updates a reservation location. Supports partial updates.
3944
+ *
3945
+ * Each time the reservation location is updated, `revision` increments by 1. The existing revision must be included when updating the reservation location. This ensures you're working with the latest reservation location information, and it prevents unintended overwrites.
3946
+ *
3947
+ * You cannot use this endpoint to change a reservation location's `location` object. Attempting to do so will cause the server to return an application error.
3948
+ * @param - Reservation location ID.
3949
+ * @param - Reservation location information to update.
3950
+ * @returns The updated reservation location.
3951
+ */
3952
+ (_id: string | null, reservationLocation: UpdateReservationLocation): Promise<ReservationLocation & ReservationLocationNonNullableFields>;
3953
+ }
3954
+ declare function queryReservationLocations$1(httpClient: HttpClient): QueryReservationLocationsSignature;
3955
+ interface QueryReservationLocationsSignature {
3956
+ /**
3957
+ * Creates a query to retrieve a list of reservation locations.
3958
+ *
3959
+ *
3960
+ * The `queryReservationLocations()` function builds a query to retrieve a list of reservation locations and returns a [`ReservationLocationsQueryBuilder`](/reservation-locations/reservation-locations-query-builder/) object.
3961
+ *
3962
+ * The returned object contains the query definition, which is used to run the query using the [find()](/reservation-locations/reservation-locations-query-builder/find) function.
3963
+ *
3964
+ * You can refine the query by chaining `ReservationLocationsQueryBuilder` functions onto the query. `ReservationLocationsQueryBuilder` functions enable you to filter, sort, and control the results that `queryReservationLocations()` returns.
3965
+ *
3966
+ * `queryReservationLocations()` runs with the following `ReservationLocationsQueryBuilder` defaults, which you can override:
3967
+ *
3968
+ * * [`skip(0)`](/reservation-locations/reservation-locations-query-builder/skip)
3969
+ * * [`limit(50)`](/reservation-locations/reservation-locations-query-builder/limit)
3970
+ * * [`descending('_createdDate')`](/reservation-locations/reservation-locations-query-builder/descending)
3971
+ *
3972
+ * The following `ReservationLocationsQueryBuilder` functions are supported for `queryReservationLocations()`. For a full description of the reservation location object, see the object returned for the [`items`](/reservation-locations/reservation-locations-query-result/items) property in [`ReservationLocationsQueryResult`](/reservation-locations/reservation-locations-query-result).
3973
+ * @param - An object representing the available options for querying reservation locations.
3974
+ */
3975
+ (options?: QueryReservationLocationsOptions | undefined): ReservationLocationsQueryBuilder;
3976
+ }
3977
+ declare function listReservationLocations$1(httpClient: HttpClient): ListReservationLocationsSignature;
3978
+ interface ListReservationLocationsSignature {
3979
+ /**
3980
+ * Retrieves a list of up to 100 reservation locations.
3981
+ *
3982
+ * The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
3983
+ * @param - An object representing the available options for listing reservation locations.
3984
+ */
3985
+ (options?: ListReservationLocationsOptions | undefined): Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
3986
+ }
3810
3987
  declare const onReservationLocationUpdated$1: EventDefinition<ReservationLocationUpdatedEnvelope, "wix.table_reservations.v1.reservation_location_updated">;
3811
3988
  declare const onReservationLocationCreated$1: EventDefinition<ReservationLocationCreatedEnvelope, "wix.table_reservations.v1.reservation_location_created">;
3812
3989
 
@@ -3824,9 +4001,15 @@ type _publicListReservationLocationsType = typeof listReservationLocations$1;
3824
4001
  declare const listReservationLocations: ReturnType<typeof createRESTModule$1<_publicListReservationLocationsType>>;
3825
4002
 
3826
4003
  type _publicOnReservationLocationUpdatedType = typeof onReservationLocationUpdated$1;
4004
+ /**
4005
+ * Triggered when a reservation location is updated.
4006
+ */
3827
4007
  declare const onReservationLocationUpdated: ReturnType<typeof createEventModule<_publicOnReservationLocationUpdatedType>>;
3828
4008
 
3829
4009
  type _publicOnReservationLocationCreatedType = typeof onReservationLocationCreated$1;
4010
+ /**
4011
+ * Triggered when a reservation location is updated.
4012
+ */
3830
4013
  declare const onReservationLocationCreated: ReturnType<typeof createEventModule<_publicOnReservationLocationCreatedType>>;
3831
4014
 
3832
4015
  type context$1_ActionEvent = ActionEvent;
@@ -4247,8 +4430,37 @@ interface CheckTimeSlotOptions {
4247
4430
  excludeReservationId?: string | null;
4248
4431
  }
4249
4432
 
4250
- declare function getTimeSlots$1(httpClient: HttpClient): (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions) => Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
4251
- declare function checkTimeSlot$1(httpClient: HttpClient): (reservationLocationId: string, options?: CheckTimeSlotOptions) => Promise<CheckTimeSlotResponse & CheckTimeSlotResponseNonNullableFields>;
4433
+ declare function getTimeSlots$1(httpClient: HttpClient): GetTimeSlotsSignature;
4434
+ interface GetTimeSlotsSignature {
4435
+ /**
4436
+ * Returns a list of time slots at a given restaurant on a given `date`, and their availability for a given `partySize`.
4437
+ *
4438
+ * Without passing optional parameters, the list will contain a single time slot at the given `date`.
4439
+ * Use `slotsBefore` and `slotsAfter` to get additional time slots before and after the given `date`.
4440
+ *
4441
+ * If you do not provide a `duration`, the duration will be calculated automatically based on the reservation location's configuration.
4442
+ * The reservation location's settings used to determine the duration are its `defaultTurnoverTime` and `turnoverTimeRules`. These specify how much time should be allotted for a reservation of a party of a given size.
4443
+ *
4444
+ * The `startDate`s of time slots in the response are 15 minutes apart regardless of the `duration` provided.
4445
+ * @param - ID of the reservation location for which to retrieve time slots.
4446
+ * @param - Date and time for which to retrieve a time slot in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#coordinated_Universal_Time_(UTC)) format.
4447
+ * @param - Size of the party that needs to be seated during this time slot.
4448
+ *
4449
+ * Min: `1`
4450
+ * @param - Options for retrieving the time slots.
4451
+ */
4452
+ (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions | undefined): Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
4453
+ }
4454
+ declare function checkTimeSlot$1(httpClient: HttpClient): CheckTimeSlotSignature;
4455
+ interface CheckTimeSlotSignature {
4456
+ /**
4457
+ * Checks a restaurant's availability to accommodate a reservation for a given party size in a given time slot.
4458
+ *
4459
+ * This endpoint returns availability information for the restaurant's table combinations, and flags any party pacing or seat pacing conflicts that the proposed reservation would cause.
4460
+ * @param - ID of the reservation location for which to check the time slot.
4461
+ */
4462
+ (reservationLocationId: string, options?: CheckTimeSlotOptions | undefined): Promise<CheckTimeSlotResponse & CheckTimeSlotResponseNonNullableFields>;
4463
+ }
4252
4464
 
4253
4465
  declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
4254
4466
 
@@ -1,3 +1,47 @@
1
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
2
+ interface HttpClient {
3
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
4
+ fetchWithAuth: typeof fetch;
5
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
6
+ }
7
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
8
+ type HttpResponse<T = any> = {
9
+ data: T;
10
+ status: number;
11
+ statusText: string;
12
+ headers: any;
13
+ request?: any;
14
+ };
15
+ type RequestOptions<_TResponse = any, Data = any> = {
16
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
17
+ url: string;
18
+ data?: Data;
19
+ params?: URLSearchParams;
20
+ } & APIMetadata;
21
+ type APIMetadata = {
22
+ methodFqn?: string;
23
+ entityFqdn?: string;
24
+ packageName?: string;
25
+ };
26
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
27
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
28
+ __type: 'event-definition';
29
+ type: Type;
30
+ isDomainEvent?: boolean;
31
+ transformations?: (envelope: unknown) => Payload;
32
+ __payload: Payload;
33
+ };
34
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
35
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
36
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
37
+
38
+ declare global {
39
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
40
+ interface SymbolConstructor {
41
+ readonly observable: symbol;
42
+ }
43
+ }
44
+
1
45
  /** The reservation domain object. */
2
46
  interface Reservation {
3
47
  /**
@@ -505,7 +549,7 @@ interface SearchReservationsRequest {
505
549
  search: CursorSearch;
506
550
  }
507
551
  interface CursorSearch extends CursorSearchPagingMethodOneOf {
508
- /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
552
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursorPaging.cursor' can't be used together with 'filter' or 'sort'. */
509
553
  cursorPaging?: CursorPaging$1;
510
554
  /**
511
555
  * Filter object in the following format:
@@ -533,7 +577,7 @@ interface CursorSearch extends CursorSearchPagingMethodOneOf {
533
577
  }
534
578
  /** @oneof */
535
579
  interface CursorSearchPagingMethodOneOf {
536
- /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
580
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursorPaging.cursor' can't be used together with 'filter' or 'sort'. */
537
581
  cursorPaging?: CursorPaging$1;
538
582
  }
539
583
  interface Aggregation extends AggregationKindOneOf {
@@ -721,7 +765,7 @@ interface SearchDetails {
721
765
  /**
722
766
  * Fields to search in.
723
767
  *
724
- * Searchable fields are `reservee.first_name`, `reservee.last_name`, `reservee.phone`, and `reservee.email`.
768
+ * Searchable fields are `reservee.firstName`, `reservee.lastName`, `reservee.phone`, and `reservee.email`.
725
769
  *
726
770
  * If the array is empty, all fields are searched.
727
771
  */
@@ -1144,14 +1188,6 @@ interface SearchReservationsResponseNonNullableFields {
1144
1188
  reservations: ReservationNonNullableFields[];
1145
1189
  aggregationData?: AggregationDataNonNullableFields;
1146
1190
  }
1147
- interface HeadersEntryNonNullableFields {
1148
- key: string;
1149
- value: string;
1150
- }
1151
- interface RawHttpResponseNonNullableFields {
1152
- body: Uint8Array;
1153
- headers: HeadersEntryNonNullableFields[];
1154
- }
1155
1191
  interface BaseEventMetadata$1 {
1156
1192
  /** App instance ID. */
1157
1193
  instanceId?: string | null;
@@ -1419,71 +1455,160 @@ interface ReservationsQueryBuilder {
1419
1455
  /** @documentationMaturity preview */
1420
1456
  find: () => Promise<ReservationsQueryResult>;
1421
1457
  }
1422
- interface GetCalendarInviteFileWebhookOptions {
1423
- body?: Uint8Array;
1424
- pathParams?: PathParametersEntry[];
1425
- queryParams?: QueryParametersEntry[];
1426
- headers?: HeadersEntry[];
1427
- method?: string;
1428
- rawPath?: string;
1429
- rawQuery?: string;
1430
- }
1431
1458
 
1432
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
1433
- interface HttpClient {
1434
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1435
- fetchWithAuth: typeof fetch;
1436
- wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
1459
+ declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
1460
+ interface CreateReservationSignature {
1461
+ /**
1462
+ * Creates a new reservation.
1463
+ *
1464
+ * `createReservation()` accepts and requires different fields depending on the `status` provided and your permissions.
1465
+ *
1466
+ * **Status and source**
1467
+ *
1468
+ * If a `status` is not provided, it will be set to:
1469
+ * * `RESERVED` if manual approval is not required for confirmation
1470
+ * * `REQUESTED` if manual approval is required for confirmation.
1471
+ *
1472
+ * A reservation created with any `source` other than `WALK_IN` requires the `reservation.reservee.phone` and `reservation.reservee.firstName` fields.
1473
+ * Attempting to create a reservation without these fields will result in an error.
1474
+ *
1475
+ * **Permissions**
1476
+ *
1477
+ * Including the fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, or `ignoreTableCombinationConflicts` in the request requires additional permissions. See this API's Introduction article for more information.
1478
+ *
1479
+ * If `source` is not provided, its value is set depending on the permissions of the user making the call. See this API's Introduction article for more information.
1480
+ *
1481
+ *
1482
+ * > **Note:** `createReservation()` requires all details of the reservation upfront. The process of creating a reservation can be broken up using `createHeldReservation`. `createHeldReservation` creates a temporary reservation that expires automatically unless it is completed with the addition of more details using `reserveReservation()`.
1483
+ * @param - Reservation details.
1484
+ * @param - Options for creating the reservation.
1485
+ * @returns Reservation.
1486
+ */
1487
+ (reservation: Reservation, options?: CreateReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
1437
1488
  }
1438
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
1439
- type HttpResponse<T = any> = {
1440
- data: T;
1441
- status: number;
1442
- statusText: string;
1443
- headers: any;
1444
- request?: any;
1445
- };
1446
- type RequestOptions<_TResponse = any, Data = any> = {
1447
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1448
- url: string;
1449
- data?: Data;
1450
- params?: URLSearchParams;
1451
- } & APIMetadata;
1452
- type APIMetadata = {
1453
- methodFqn?: string;
1454
- entityFqdn?: string;
1455
- packageName?: string;
1456
- };
1457
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
1458
- type EventDefinition<Payload = unknown, Type extends string = string> = {
1459
- __type: 'event-definition';
1460
- type: Type;
1461
- isDomainEvent?: boolean;
1462
- transformations?: (envelope: unknown) => Payload;
1463
- __payload: Payload;
1464
- };
1465
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
1466
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
1467
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
1468
-
1469
- declare global {
1470
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1471
- interface SymbolConstructor {
1472
- readonly observable: symbol;
1473
- }
1489
+ declare function getReservation$1(httpClient: HttpClient): GetReservationSignature;
1490
+ interface GetReservationSignature {
1491
+ /**
1492
+ * Retrieves a reservation.
1493
+ *
1494
+ * Calling this method with `fieldsets` set to `FULL` requires additional permissions. See this API's Introduction article for more information.
1495
+ * @param - Reservation ID.
1496
+ * @returns Reservation.
1497
+ */
1498
+ (reservationId: string, options?: GetReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
1499
+ }
1500
+ declare function updateReservation$1(httpClient: HttpClient): UpdateReservationSignature;
1501
+ interface UpdateReservationSignature {
1502
+ /**
1503
+ * Updates a reservation.
1504
+ *
1505
+ * Including the fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, and `ignoreTableCombinationConflicts` in the request requires additional permissions. See this API's Introduction article for more information.
1506
+ *
1507
+ * Each time the reservation is updated, revision increments by 1. The existing revision must be included when updating the reservation. This ensures you're working with the latest reservation information, and it prevents unintended overwrites.
1508
+ * @param - Reservation ID.
1509
+ * @param - Options for updating the reservation.
1510
+ * @param - Reservation information to update.
1511
+ * @returns Reservation.
1512
+ */
1513
+ (_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
1514
+ }
1515
+ declare function createHeldReservation$1(httpClient: HttpClient): CreateHeldReservationSignature;
1516
+ interface CreateHeldReservationSignature {
1517
+ /**
1518
+ * Creates a new temporary reservation and holds it for the customer for 10 minutes.
1519
+ *
1520
+ * Creates a new reservation with the `HELD` status. `HELD` reservations are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
1521
+ *
1522
+ * You cannot call `updateReservation()` to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use `reserveReservation()`.
1523
+ *
1524
+ * If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using `createReservation()`.
1525
+ *
1526
+ * @param - Held reservation information to update.
1527
+ */
1528
+ (reservationDetails: HeldReservationDetails): Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
1529
+ }
1530
+ declare function reserveReservation$1(httpClient: HttpClient): ReserveReservationSignature;
1531
+ interface ReserveReservationSignature {
1532
+ /**
1533
+ * Reserves or requests a held reservation.
1534
+ *
1535
+ * Held reservations are temporary reservations with the `HELD` status created by `createHeldReservation()`.
1536
+ *
1537
+ * They are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to call `Reserve Reservation` with a held reservation older than 10 minutes returns an error.
1538
+ *
1539
+ * `Reserve Reservation` changes a reservation's `HELD` status to:
1540
+ * * `RESERVED` if the reservation's reservation location does not require manual approval.
1541
+ * * `REQUESTED` if the reservation's reservation location requires manual approval.
1542
+ * @param - Reservation ID.
1543
+ * @param - Reservee details.
1544
+ * @param - Revision number.
1545
+ *
1546
+ * Include the existing `revision` to prevent conflicting updates to reservations.
1547
+ */
1548
+ (reservationId: string, reservee: Reservee, revision: string | null): Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
1549
+ }
1550
+ declare function cancelReservation$1(httpClient: HttpClient): CancelReservationSignature;
1551
+ interface CancelReservationSignature {
1552
+ /**
1553
+ * Cancels a reservation.
1554
+ *
1555
+ * Sets the reservation status to `CANCELED`.
1556
+ * @param - Reservation ID.
1557
+ * @param - Revision number.
1558
+ *
1559
+ * Include the existing `revision` to prevent conflicting updates to reservations.
1560
+ * @param - Options for canceling the reservation.
1561
+ */
1562
+ (reservationId: string, revision: string | null, options?: CancelReservationOptions | undefined): Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
1563
+ }
1564
+ declare function deleteReservation$1(httpClient: HttpClient): DeleteReservationSignature;
1565
+ interface DeleteReservationSignature {
1566
+ /**
1567
+ * Deletes a reservation. Only reservations with the `HELD` status can be deleted.
1568
+ * @param - Reservation ID.
1569
+ */
1570
+ (reservationId: string): Promise<void>;
1571
+ }
1572
+ declare function listReservations$1(httpClient: HttpClient): ListReservationsSignature;
1573
+ interface ListReservationsSignature {
1574
+ /**
1575
+ * Retrieves a list of up to 100 reservations.
1576
+ * @param - Options for listing the reservations.
1577
+ */
1578
+ (options?: ListReservationsOptions | undefined): Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
1579
+ }
1580
+ declare function queryReservations$1(httpClient: HttpClient): QueryReservationsSignature;
1581
+ interface QueryReservationsSignature {
1582
+ /**
1583
+ * Creates a query to retrieve a list of reservations.
1584
+ *
1585
+ * The `queryReservations()` function builds a query to retrieve a list of reservations and returns a [`ReservationsQueryBuilder`](/reservations/reservations-query-builder) object.
1586
+ *
1587
+ * The returned object contains the query definition, which is used to run the query using the [find()](/reservations/reservations-query-builder/find) function.
1588
+ *
1589
+ * You can refine the query by chaining `ReservationsQueryBuilder` functions onto the query. `ReservationsQueryBuilder` functions enable you to filter, sort, and control the results that `queryReservations()` returns.
1590
+ *
1591
+ * `queryReservations()` runs with the following `ReservationsQueryBuilder` defaults, which you can override:
1592
+ *
1593
+ * * [`skip(0)`](/reservations/reservations-query-builder/skip)
1594
+ * * [`limit(50)`](/reservations/reservations-query-builder/limit)
1595
+ * * [`descending('_createdDate')`](/reservations/reservations-query-builder/descending)
1596
+ *
1597
+ * The following `ReservationsQueryBuilder` functions are supported for `queryReservations()`. For a full description of the reservation object, see the object returned for the [`items`](/reservations/reservations-query-builder/items) property in [`ReservationsQueryResult`](/reservations/reservations-query-result).
1598
+ */
1599
+ (): ReservationsQueryBuilder;
1600
+ }
1601
+ declare function searchReservations$1(httpClient: HttpClient): SearchReservationsSignature;
1602
+ interface SearchReservationsSignature {
1603
+ /**
1604
+ * Use this endpoint to search the fields of the table reservations on a site for a given expression.
1605
+ *
1606
+ * You can also use this endpoint to perform data aggregations on a site's table reservation fields.
1607
+ * For a detailed list of supported operations, see the [Sorting, Filtering, and Search](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservations/sorting-filtering-and-search) article.
1608
+ * @param - Search query.
1609
+ */
1610
+ (search: CursorSearch): Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
1474
1611
  }
1475
-
1476
- declare function createReservation$1(httpClient: HttpClient): (reservation: Reservation, options?: CreateReservationOptions) => Promise<Reservation & ReservationNonNullableFields>;
1477
- declare function getReservation$1(httpClient: HttpClient): (reservationId: string, options?: GetReservationOptions) => Promise<Reservation & ReservationNonNullableFields>;
1478
- declare function updateReservation$1(httpClient: HttpClient): (_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions) => Promise<Reservation & ReservationNonNullableFields>;
1479
- declare function createHeldReservation$1(httpClient: HttpClient): (reservationDetails: HeldReservationDetails) => Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
1480
- declare function reserveReservation$1(httpClient: HttpClient): (reservationId: string, reservee: Reservee, revision: string | null) => Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
1481
- declare function cancelReservation$1(httpClient: HttpClient): (reservationId: string, revision: string | null, options?: CancelReservationOptions) => Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
1482
- declare function deleteReservation$1(httpClient: HttpClient): (reservationId: string) => Promise<void>;
1483
- declare function listReservations$1(httpClient: HttpClient): (options?: ListReservationsOptions) => Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
1484
- declare function queryReservations$1(httpClient: HttpClient): () => ReservationsQueryBuilder;
1485
- declare function searchReservations$1(httpClient: HttpClient): (search: CursorSearch) => Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
1486
- declare function getCalendarInviteFileWebhook$1(httpClient: HttpClient): (options?: GetCalendarInviteFileWebhookOptions) => Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
1487
1612
  declare const onReservationCreated$1: EventDefinition<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
1488
1613
 
1489
1614
  declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
@@ -1510,10 +1635,11 @@ type _publicQueryReservationsType = typeof queryReservations$1;
1510
1635
  declare const queryReservations: ReturnType<typeof createRESTModule$2<_publicQueryReservationsType>>;
1511
1636
  type _publicSearchReservationsType = typeof searchReservations$1;
1512
1637
  declare const searchReservations: ReturnType<typeof createRESTModule$2<_publicSearchReservationsType>>;
1513
- type _publicGetCalendarInviteFileWebhookType = typeof getCalendarInviteFileWebhook$1;
1514
- declare const getCalendarInviteFileWebhook: ReturnType<typeof createRESTModule$2<_publicGetCalendarInviteFileWebhookType>>;
1515
1638
 
1516
1639
  type _publicOnReservationCreatedType = typeof onReservationCreated$1;
1640
+ /**
1641
+ * Triggered when a held reservation is created.
1642
+ */
1517
1643
  declare const onReservationCreated: ReturnType<typeof createEventModule$1<_publicOnReservationCreatedType>>;
1518
1644
 
1519
1645
  type index_d$2_Aggregation = Aggregation;
@@ -1545,7 +1671,6 @@ type index_d$2_DateHistogramResults = DateHistogramResults;
1545
1671
  type index_d$2_DeleteReservationRequest = DeleteReservationRequest;
1546
1672
  type index_d$2_DeleteReservationResponse = DeleteReservationResponse;
1547
1673
  type index_d$2_Details = Details;
1548
- type index_d$2_GetCalendarInviteFileWebhookOptions = GetCalendarInviteFileWebhookOptions;
1549
1674
  type index_d$2_GetReservationOptions = GetReservationOptions;
1550
1675
  type index_d$2_GetReservationRequest = GetReservationRequest;
1551
1676
  type index_d$2_GetReservationResponse = GetReservationResponse;
@@ -1588,7 +1713,6 @@ type index_d$2_RangeResult = RangeResult;
1588
1713
  type index_d$2_RangeResults = RangeResults;
1589
1714
  type index_d$2_RawHttpRequest = RawHttpRequest;
1590
1715
  type index_d$2_RawHttpResponse = RawHttpResponse;
1591
- type index_d$2_RawHttpResponseNonNullableFields = RawHttpResponseNonNullableFields;
1592
1716
  type index_d$2_RemoveReservationMigrationNotesRequest = RemoveReservationMigrationNotesRequest;
1593
1717
  type index_d$2_RemoveReservationMigrationNotesResponse = RemoveReservationMigrationNotesResponse;
1594
1718
  type index_d$2_Reservation = Reservation;
@@ -1639,7 +1763,6 @@ type index_d$2__publicCancelReservationType = _publicCancelReservationType;
1639
1763
  type index_d$2__publicCreateHeldReservationType = _publicCreateHeldReservationType;
1640
1764
  type index_d$2__publicCreateReservationType = _publicCreateReservationType;
1641
1765
  type index_d$2__publicDeleteReservationType = _publicDeleteReservationType;
1642
- type index_d$2__publicGetCalendarInviteFileWebhookType = _publicGetCalendarInviteFileWebhookType;
1643
1766
  type index_d$2__publicGetReservationType = _publicGetReservationType;
1644
1767
  type index_d$2__publicListReservationsType = _publicListReservationsType;
1645
1768
  type index_d$2__publicOnReservationCreatedType = _publicOnReservationCreatedType;
@@ -1651,7 +1774,6 @@ declare const index_d$2_cancelReservation: typeof cancelReservation;
1651
1774
  declare const index_d$2_createHeldReservation: typeof createHeldReservation;
1652
1775
  declare const index_d$2_createReservation: typeof createReservation;
1653
1776
  declare const index_d$2_deleteReservation: typeof deleteReservation;
1654
- declare const index_d$2_getCalendarInviteFileWebhook: typeof getCalendarInviteFileWebhook;
1655
1777
  declare const index_d$2_getReservation: typeof getReservation;
1656
1778
  declare const index_d$2_listReservations: typeof listReservations;
1657
1779
  declare const index_d$2_onReservationCreated: typeof onReservationCreated;
@@ -1660,7 +1782,7 @@ declare const index_d$2_reserveReservation: typeof reserveReservation;
1660
1782
  declare const index_d$2_searchReservations: typeof searchReservations;
1661
1783
  declare const index_d$2_updateReservation: typeof updateReservation;
1662
1784
  declare namespace index_d$2 {
1663
- export { type ActionEvent$1 as ActionEvent, type index_d$2_Aggregation as Aggregation, type index_d$2_AggregationData as AggregationData, type index_d$2_AggregationKindOneOf as AggregationKindOneOf, type index_d$2_AggregationResults as AggregationResults, type index_d$2_AggregationResultsResultOneOf as AggregationResultsResultOneOf, type index_d$2_AggregationResultsScalarResult as AggregationResultsScalarResult, index_d$2_AggregationType as AggregationType, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_CancelReservationOptions as CancelReservationOptions, type index_d$2_CancelReservationRequest as CancelReservationRequest, type index_d$2_CancelReservationResponse as CancelReservationResponse, type index_d$2_CancelReservationResponseNonNullableFields as CancelReservationResponseNonNullableFields, type index_d$2_CreateHeldReservationRequest as CreateHeldReservationRequest, type index_d$2_CreateHeldReservationResponse as CreateHeldReservationResponse, type index_d$2_CreateHeldReservationResponseNonNullableFields as CreateHeldReservationResponseNonNullableFields, type index_d$2_CreateReservationOptions as CreateReservationOptions, type index_d$2_CreateReservationRequest as CreateReservationRequest, type index_d$2_CreateReservationResponse as CreateReservationResponse, type index_d$2_CreateReservationResponseNonNullableFields as CreateReservationResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type index_d$2_CursorQuery as CursorQuery, type index_d$2_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d$2_CursorSearch as CursorSearch, type index_d$2_CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$2_DateHistogramAggregation as DateHistogramAggregation, type index_d$2_DateHistogramResult as DateHistogramResult, type index_d$2_DateHistogramResults as DateHistogramResults, type index_d$2_DeleteReservationRequest as DeleteReservationRequest, type index_d$2_DeleteReservationResponse as DeleteReservationResponse, type index_d$2_Details as Details, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$2_GetCalendarInviteFileWebhookOptions as GetCalendarInviteFileWebhookOptions, type index_d$2_GetReservationOptions as GetReservationOptions, type index_d$2_GetReservationRequest as GetReservationRequest, type index_d$2_GetReservationResponse as GetReservationResponse, type index_d$2_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type index_d$2_GroupByValueResults as GroupByValueResults, type index_d$2_HeadersEntry as HeadersEntry, type index_d$2_HeldReservationDetails as HeldReservationDetails, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$2_IncludeMissingValuesOptions as IncludeMissingValuesOptions, index_d$2_Interval as Interval, type index_d$2_ListReservationsOptions as ListReservationsOptions, type index_d$2_ListReservationsRequest as ListReservationsRequest, type index_d$2_ListReservationsResponse as ListReservationsResponse, type index_d$2_ListReservationsResponseNonNullableFields as ListReservationsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_MigrationNote as MigrationNote, index_d$2_MissingValues as MissingValues, Mode$1 as Mode, type index_d$2_NestedAggregation as NestedAggregation, type index_d$2_NestedAggregationItem as NestedAggregationItem, type index_d$2_NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOf, type index_d$2_NestedAggregationResults as NestedAggregationResults, type index_d$2_NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOf, index_d$2_NestedAggregationType as NestedAggregationType, type index_d$2_NestedResultValue as NestedResultValue, type index_d$2_NestedResultValueResultOneOf as NestedResultValueResultOneOf, type index_d$2_NestedResults as NestedResults, type index_d$2_NestedValueAggregationResult as NestedValueAggregationResult, type index_d$2_PathParametersEntry as PathParametersEntry, index_d$2_PaymentStatus as PaymentStatus, type index_d$2_QueryParametersEntry as QueryParametersEntry, type index_d$2_QueryReservationsRequest as QueryReservationsRequest, type index_d$2_QueryReservationsResponse as QueryReservationsResponse, type index_d$2_QueryReservationsResponseNonNullableFields as QueryReservationsResponseNonNullableFields, type index_d$2_RangeAggregation as RangeAggregation, type index_d$2_RangeAggregationResult as RangeAggregationResult, type index_d$2_RangeBucket as RangeBucket, type index_d$2_RangeResult as RangeResult, type index_d$2_RangeResults as RangeResults, type index_d$2_RawHttpRequest as RawHttpRequest, type index_d$2_RawHttpResponse as RawHttpResponse, type index_d$2_RawHttpResponseNonNullableFields as RawHttpResponseNonNullableFields, type index_d$2_RemoveReservationMigrationNotesRequest as RemoveReservationMigrationNotesRequest, type index_d$2_RemoveReservationMigrationNotesResponse as RemoveReservationMigrationNotesResponse, type index_d$2_Reservation as Reservation, type index_d$2_ReservationCanceled as ReservationCanceled, type index_d$2_ReservationCreated as ReservationCreated, type index_d$2_ReservationCreatedEnvelope as ReservationCreatedEnvelope, type index_d$2_ReservationDataUpdated as ReservationDataUpdated, type index_d$2_ReservationDelayedDomainEvent as ReservationDelayedDomainEvent, type index_d$2_ReservationDelayedDomainEventBodyTypeOneOf as ReservationDelayedDomainEventBodyTypeOneOf, type index_d$2_ReservationDelayedDomainEventReservationCanceled as ReservationDelayedDomainEventReservationCanceled, type index_d$2_ReservationDetailsConflicts as ReservationDetailsConflicts, type ReservationLocationConflict$1 as ReservationLocationConflict, type index_d$2_ReservationNonNullableFields as ReservationNonNullableFields, type index_d$2_ReservationUpdated as ReservationUpdated, type index_d$2_ReservationsQueryBuilder as ReservationsQueryBuilder, type index_d$2_ReservationsQueryResult as ReservationsQueryResult, type index_d$2_ReserveReservationRequest as ReserveReservationRequest, type index_d$2_ReserveReservationResponse as ReserveReservationResponse, type index_d$2_ReserveReservationResponseNonNullableFields as ReserveReservationResponseNonNullableFields, type index_d$2_ReservedBy as ReservedBy, type index_d$2_Reservee as Reservee, type RestoreInfo$1 as RestoreInfo, type index_d$2_Results as Results, type index_d$2_ScalarAggregation as ScalarAggregation, type index_d$2_ScalarResult as ScalarResult, index_d$2_ScalarType as ScalarType, type index_d$2_SearchDetails as SearchDetails, type index_d$2_SearchReservationsRequest as SearchReservationsRequest, type index_d$2_SearchReservationsResponse as SearchReservationsResponse, type index_d$2_SearchReservationsResponseNonNullableFields as SearchReservationsResponseNonNullableFields, Set$1 as Set, index_d$2_SortDirection as SortDirection, SortOrder$1 as SortOrder, index_d$2_SortType as SortType, type Sorting$1 as Sorting, index_d$2_Source as Source, Status$1 as Status, type TableCombinationConflict$1 as TableCombinationConflict, TableCombinationConflictType$1 as TableCombinationConflictType, type index_d$2_TableWithReservationConflicts as TableWithReservationConflicts, Type$1 as Type, type index_d$2_UpdateReservation as UpdateReservation, type index_d$2_UpdateReservationOptions as UpdateReservationOptions, type index_d$2_UpdateReservationRequest as UpdateReservationRequest, type index_d$2_UpdateReservationResponse as UpdateReservationResponse, type index_d$2_UpdateReservationResponseNonNullableFields as UpdateReservationResponseNonNullableFields, type index_d$2_ValueAggregation as ValueAggregation, type index_d$2_ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOf, type index_d$2_ValueAggregationResult as ValueAggregationResult, type index_d$2_ValueResult as ValueResult, type index_d$2_ValueResults as ValueResults, WebhookIdentityType$1 as WebhookIdentityType, type index_d$2__publicCancelReservationType as _publicCancelReservationType, type index_d$2__publicCreateHeldReservationType as _publicCreateHeldReservationType, type index_d$2__publicCreateReservationType as _publicCreateReservationType, type index_d$2__publicDeleteReservationType as _publicDeleteReservationType, type index_d$2__publicGetCalendarInviteFileWebhookType as _publicGetCalendarInviteFileWebhookType, type index_d$2__publicGetReservationType as _publicGetReservationType, type index_d$2__publicListReservationsType as _publicListReservationsType, type index_d$2__publicOnReservationCreatedType as _publicOnReservationCreatedType, type index_d$2__publicQueryReservationsType as _publicQueryReservationsType, type index_d$2__publicReserveReservationType as _publicReserveReservationType, type index_d$2__publicSearchReservationsType as _publicSearchReservationsType, type index_d$2__publicUpdateReservationType as _publicUpdateReservationType, index_d$2_cancelReservation as cancelReservation, index_d$2_createHeldReservation as createHeldReservation, index_d$2_createReservation as createReservation, index_d$2_deleteReservation as deleteReservation, index_d$2_getCalendarInviteFileWebhook as getCalendarInviteFileWebhook, index_d$2_getReservation as getReservation, index_d$2_listReservations as listReservations, index_d$2_onReservationCreated as onReservationCreated, onReservationCreated$1 as publicOnReservationCreated, index_d$2_queryReservations as queryReservations, index_d$2_reserveReservation as reserveReservation, index_d$2_searchReservations as searchReservations, index_d$2_updateReservation as updateReservation };
1785
+ export { type ActionEvent$1 as ActionEvent, type index_d$2_Aggregation as Aggregation, type index_d$2_AggregationData as AggregationData, type index_d$2_AggregationKindOneOf as AggregationKindOneOf, type index_d$2_AggregationResults as AggregationResults, type index_d$2_AggregationResultsResultOneOf as AggregationResultsResultOneOf, type index_d$2_AggregationResultsScalarResult as AggregationResultsScalarResult, index_d$2_AggregationType as AggregationType, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_CancelReservationOptions as CancelReservationOptions, type index_d$2_CancelReservationRequest as CancelReservationRequest, type index_d$2_CancelReservationResponse as CancelReservationResponse, type index_d$2_CancelReservationResponseNonNullableFields as CancelReservationResponseNonNullableFields, type index_d$2_CreateHeldReservationRequest as CreateHeldReservationRequest, type index_d$2_CreateHeldReservationResponse as CreateHeldReservationResponse, type index_d$2_CreateHeldReservationResponseNonNullableFields as CreateHeldReservationResponseNonNullableFields, type index_d$2_CreateReservationOptions as CreateReservationOptions, type index_d$2_CreateReservationRequest as CreateReservationRequest, type index_d$2_CreateReservationResponse as CreateReservationResponse, type index_d$2_CreateReservationResponseNonNullableFields as CreateReservationResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type index_d$2_CursorQuery as CursorQuery, type index_d$2_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d$2_CursorSearch as CursorSearch, type index_d$2_CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$2_DateHistogramAggregation as DateHistogramAggregation, type index_d$2_DateHistogramResult as DateHistogramResult, type index_d$2_DateHistogramResults as DateHistogramResults, type index_d$2_DeleteReservationRequest as DeleteReservationRequest, type index_d$2_DeleteReservationResponse as DeleteReservationResponse, type index_d$2_Details as Details, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$2_GetReservationOptions as GetReservationOptions, type index_d$2_GetReservationRequest as GetReservationRequest, type index_d$2_GetReservationResponse as GetReservationResponse, type index_d$2_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type index_d$2_GroupByValueResults as GroupByValueResults, type index_d$2_HeadersEntry as HeadersEntry, type index_d$2_HeldReservationDetails as HeldReservationDetails, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$2_IncludeMissingValuesOptions as IncludeMissingValuesOptions, index_d$2_Interval as Interval, type index_d$2_ListReservationsOptions as ListReservationsOptions, type index_d$2_ListReservationsRequest as ListReservationsRequest, type index_d$2_ListReservationsResponse as ListReservationsResponse, type index_d$2_ListReservationsResponseNonNullableFields as ListReservationsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_MigrationNote as MigrationNote, index_d$2_MissingValues as MissingValues, Mode$1 as Mode, type index_d$2_NestedAggregation as NestedAggregation, type index_d$2_NestedAggregationItem as NestedAggregationItem, type index_d$2_NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOf, type index_d$2_NestedAggregationResults as NestedAggregationResults, type index_d$2_NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOf, index_d$2_NestedAggregationType as NestedAggregationType, type index_d$2_NestedResultValue as NestedResultValue, type index_d$2_NestedResultValueResultOneOf as NestedResultValueResultOneOf, type index_d$2_NestedResults as NestedResults, type index_d$2_NestedValueAggregationResult as NestedValueAggregationResult, type index_d$2_PathParametersEntry as PathParametersEntry, index_d$2_PaymentStatus as PaymentStatus, type index_d$2_QueryParametersEntry as QueryParametersEntry, type index_d$2_QueryReservationsRequest as QueryReservationsRequest, type index_d$2_QueryReservationsResponse as QueryReservationsResponse, type index_d$2_QueryReservationsResponseNonNullableFields as QueryReservationsResponseNonNullableFields, type index_d$2_RangeAggregation as RangeAggregation, type index_d$2_RangeAggregationResult as RangeAggregationResult, type index_d$2_RangeBucket as RangeBucket, type index_d$2_RangeResult as RangeResult, type index_d$2_RangeResults as RangeResults, type index_d$2_RawHttpRequest as RawHttpRequest, type index_d$2_RawHttpResponse as RawHttpResponse, type index_d$2_RemoveReservationMigrationNotesRequest as RemoveReservationMigrationNotesRequest, type index_d$2_RemoveReservationMigrationNotesResponse as RemoveReservationMigrationNotesResponse, type index_d$2_Reservation as Reservation, type index_d$2_ReservationCanceled as ReservationCanceled, type index_d$2_ReservationCreated as ReservationCreated, type index_d$2_ReservationCreatedEnvelope as ReservationCreatedEnvelope, type index_d$2_ReservationDataUpdated as ReservationDataUpdated, type index_d$2_ReservationDelayedDomainEvent as ReservationDelayedDomainEvent, type index_d$2_ReservationDelayedDomainEventBodyTypeOneOf as ReservationDelayedDomainEventBodyTypeOneOf, type index_d$2_ReservationDelayedDomainEventReservationCanceled as ReservationDelayedDomainEventReservationCanceled, type index_d$2_ReservationDetailsConflicts as ReservationDetailsConflicts, type ReservationLocationConflict$1 as ReservationLocationConflict, type index_d$2_ReservationNonNullableFields as ReservationNonNullableFields, type index_d$2_ReservationUpdated as ReservationUpdated, type index_d$2_ReservationsQueryBuilder as ReservationsQueryBuilder, type index_d$2_ReservationsQueryResult as ReservationsQueryResult, type index_d$2_ReserveReservationRequest as ReserveReservationRequest, type index_d$2_ReserveReservationResponse as ReserveReservationResponse, type index_d$2_ReserveReservationResponseNonNullableFields as ReserveReservationResponseNonNullableFields, type index_d$2_ReservedBy as ReservedBy, type index_d$2_Reservee as Reservee, type RestoreInfo$1 as RestoreInfo, type index_d$2_Results as Results, type index_d$2_ScalarAggregation as ScalarAggregation, type index_d$2_ScalarResult as ScalarResult, index_d$2_ScalarType as ScalarType, type index_d$2_SearchDetails as SearchDetails, type index_d$2_SearchReservationsRequest as SearchReservationsRequest, type index_d$2_SearchReservationsResponse as SearchReservationsResponse, type index_d$2_SearchReservationsResponseNonNullableFields as SearchReservationsResponseNonNullableFields, Set$1 as Set, index_d$2_SortDirection as SortDirection, SortOrder$1 as SortOrder, index_d$2_SortType as SortType, type Sorting$1 as Sorting, index_d$2_Source as Source, Status$1 as Status, type TableCombinationConflict$1 as TableCombinationConflict, TableCombinationConflictType$1 as TableCombinationConflictType, type index_d$2_TableWithReservationConflicts as TableWithReservationConflicts, Type$1 as Type, type index_d$2_UpdateReservation as UpdateReservation, type index_d$2_UpdateReservationOptions as UpdateReservationOptions, type index_d$2_UpdateReservationRequest as UpdateReservationRequest, type index_d$2_UpdateReservationResponse as UpdateReservationResponse, type index_d$2_UpdateReservationResponseNonNullableFields as UpdateReservationResponseNonNullableFields, type index_d$2_ValueAggregation as ValueAggregation, type index_d$2_ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOf, type index_d$2_ValueAggregationResult as ValueAggregationResult, type index_d$2_ValueResult as ValueResult, type index_d$2_ValueResults as ValueResults, WebhookIdentityType$1 as WebhookIdentityType, type index_d$2__publicCancelReservationType as _publicCancelReservationType, type index_d$2__publicCreateHeldReservationType as _publicCreateHeldReservationType, type index_d$2__publicCreateReservationType as _publicCreateReservationType, type index_d$2__publicDeleteReservationType as _publicDeleteReservationType, type index_d$2__publicGetReservationType as _publicGetReservationType, type index_d$2__publicListReservationsType as _publicListReservationsType, type index_d$2__publicOnReservationCreatedType as _publicOnReservationCreatedType, type index_d$2__publicQueryReservationsType as _publicQueryReservationsType, type index_d$2__publicReserveReservationType as _publicReserveReservationType, type index_d$2__publicSearchReservationsType as _publicSearchReservationsType, type index_d$2__publicUpdateReservationType as _publicUpdateReservationType, index_d$2_cancelReservation as cancelReservation, index_d$2_createHeldReservation as createHeldReservation, index_d$2_createReservation as createReservation, index_d$2_deleteReservation as deleteReservation, index_d$2_getReservation as getReservation, index_d$2_listReservations as listReservations, index_d$2_onReservationCreated as onReservationCreated, onReservationCreated$1 as publicOnReservationCreated, index_d$2_queryReservations as queryReservations, index_d$2_reserveReservation as reserveReservation, index_d$2_searchReservations as searchReservations, index_d$2_updateReservation as updateReservation };
1664
1786
  }
1665
1787
 
1666
1788
  interface ReservationLocation {
@@ -3803,10 +3925,65 @@ interface ListReservationLocationsOptions {
3803
3925
  fieldsets?: Set[];
3804
3926
  }
3805
3927
 
3806
- declare function getReservationLocation$1(httpClient: HttpClient): (reservationLocationId: string, options?: GetReservationLocationOptions) => Promise<ReservationLocation & ReservationLocationNonNullableFields>;
3807
- declare function updateReservationLocation$1(httpClient: HttpClient): (_id: string | null, reservationLocation: UpdateReservationLocation) => Promise<ReservationLocation & ReservationLocationNonNullableFields>;
3808
- declare function queryReservationLocations$1(httpClient: HttpClient): (options?: QueryReservationLocationsOptions) => ReservationLocationsQueryBuilder;
3809
- declare function listReservationLocations$1(httpClient: HttpClient): (options?: ListReservationLocationsOptions) => Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
3928
+ declare function getReservationLocation$1(httpClient: HttpClient): GetReservationLocationSignature;
3929
+ interface GetReservationLocationSignature {
3930
+ /**
3931
+ * Retrieves a reservation location by ID.
3932
+ *
3933
+ * The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
3934
+ * @param - ID of the ReservationLocation to retrieve.
3935
+ * @param - An object representing the available options for retrieving a reservation location.
3936
+ * @returns The retrieved reservation location.
3937
+ */
3938
+ (reservationLocationId: string, options?: GetReservationLocationOptions | undefined): Promise<ReservationLocation & ReservationLocationNonNullableFields>;
3939
+ }
3940
+ declare function updateReservationLocation$1(httpClient: HttpClient): UpdateReservationLocationSignature;
3941
+ interface UpdateReservationLocationSignature {
3942
+ /**
3943
+ * Updates a reservation location. Supports partial updates.
3944
+ *
3945
+ * Each time the reservation location is updated, `revision` increments by 1. The existing revision must be included when updating the reservation location. This ensures you're working with the latest reservation location information, and it prevents unintended overwrites.
3946
+ *
3947
+ * You cannot use this endpoint to change a reservation location's `location` object. Attempting to do so will cause the server to return an application error.
3948
+ * @param - Reservation location ID.
3949
+ * @param - Reservation location information to update.
3950
+ * @returns The updated reservation location.
3951
+ */
3952
+ (_id: string | null, reservationLocation: UpdateReservationLocation): Promise<ReservationLocation & ReservationLocationNonNullableFields>;
3953
+ }
3954
+ declare function queryReservationLocations$1(httpClient: HttpClient): QueryReservationLocationsSignature;
3955
+ interface QueryReservationLocationsSignature {
3956
+ /**
3957
+ * Creates a query to retrieve a list of reservation locations.
3958
+ *
3959
+ *
3960
+ * The `queryReservationLocations()` function builds a query to retrieve a list of reservation locations and returns a [`ReservationLocationsQueryBuilder`](/reservation-locations/reservation-locations-query-builder/) object.
3961
+ *
3962
+ * The returned object contains the query definition, which is used to run the query using the [find()](/reservation-locations/reservation-locations-query-builder/find) function.
3963
+ *
3964
+ * You can refine the query by chaining `ReservationLocationsQueryBuilder` functions onto the query. `ReservationLocationsQueryBuilder` functions enable you to filter, sort, and control the results that `queryReservationLocations()` returns.
3965
+ *
3966
+ * `queryReservationLocations()` runs with the following `ReservationLocationsQueryBuilder` defaults, which you can override:
3967
+ *
3968
+ * * [`skip(0)`](/reservation-locations/reservation-locations-query-builder/skip)
3969
+ * * [`limit(50)`](/reservation-locations/reservation-locations-query-builder/limit)
3970
+ * * [`descending('_createdDate')`](/reservation-locations/reservation-locations-query-builder/descending)
3971
+ *
3972
+ * The following `ReservationLocationsQueryBuilder` functions are supported for `queryReservationLocations()`. For a full description of the reservation location object, see the object returned for the [`items`](/reservation-locations/reservation-locations-query-result/items) property in [`ReservationLocationsQueryResult`](/reservation-locations/reservation-locations-query-result).
3973
+ * @param - An object representing the available options for querying reservation locations.
3974
+ */
3975
+ (options?: QueryReservationLocationsOptions | undefined): ReservationLocationsQueryBuilder;
3976
+ }
3977
+ declare function listReservationLocations$1(httpClient: HttpClient): ListReservationLocationsSignature;
3978
+ interface ListReservationLocationsSignature {
3979
+ /**
3980
+ * Retrieves a list of up to 100 reservation locations.
3981
+ *
3982
+ * The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
3983
+ * @param - An object representing the available options for listing reservation locations.
3984
+ */
3985
+ (options?: ListReservationLocationsOptions | undefined): Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
3986
+ }
3810
3987
  declare const onReservationLocationUpdated$1: EventDefinition<ReservationLocationUpdatedEnvelope, "wix.table_reservations.v1.reservation_location_updated">;
3811
3988
  declare const onReservationLocationCreated$1: EventDefinition<ReservationLocationCreatedEnvelope, "wix.table_reservations.v1.reservation_location_created">;
3812
3989
 
@@ -3824,9 +4001,15 @@ type _publicListReservationLocationsType = typeof listReservationLocations$1;
3824
4001
  declare const listReservationLocations: ReturnType<typeof createRESTModule$1<_publicListReservationLocationsType>>;
3825
4002
 
3826
4003
  type _publicOnReservationLocationUpdatedType = typeof onReservationLocationUpdated$1;
4004
+ /**
4005
+ * Triggered when a reservation location is updated.
4006
+ */
3827
4007
  declare const onReservationLocationUpdated: ReturnType<typeof createEventModule<_publicOnReservationLocationUpdatedType>>;
3828
4008
 
3829
4009
  type _publicOnReservationLocationCreatedType = typeof onReservationLocationCreated$1;
4010
+ /**
4011
+ * Triggered when a reservation location is updated.
4012
+ */
3830
4013
  declare const onReservationLocationCreated: ReturnType<typeof createEventModule<_publicOnReservationLocationCreatedType>>;
3831
4014
 
3832
4015
  type index_d$1_ActionEvent = ActionEvent;
@@ -4247,8 +4430,37 @@ interface CheckTimeSlotOptions {
4247
4430
  excludeReservationId?: string | null;
4248
4431
  }
4249
4432
 
4250
- declare function getTimeSlots$1(httpClient: HttpClient): (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions) => Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
4251
- declare function checkTimeSlot$1(httpClient: HttpClient): (reservationLocationId: string, options?: CheckTimeSlotOptions) => Promise<CheckTimeSlotResponse & CheckTimeSlotResponseNonNullableFields>;
4433
+ declare function getTimeSlots$1(httpClient: HttpClient): GetTimeSlotsSignature;
4434
+ interface GetTimeSlotsSignature {
4435
+ /**
4436
+ * Returns a list of time slots at a given restaurant on a given `date`, and their availability for a given `partySize`.
4437
+ *
4438
+ * Without passing optional parameters, the list will contain a single time slot at the given `date`.
4439
+ * Use `slotsBefore` and `slotsAfter` to get additional time slots before and after the given `date`.
4440
+ *
4441
+ * If you do not provide a `duration`, the duration will be calculated automatically based on the reservation location's configuration.
4442
+ * The reservation location's settings used to determine the duration are its `defaultTurnoverTime` and `turnoverTimeRules`. These specify how much time should be allotted for a reservation of a party of a given size.
4443
+ *
4444
+ * The `startDate`s of time slots in the response are 15 minutes apart regardless of the `duration` provided.
4445
+ * @param - ID of the reservation location for which to retrieve time slots.
4446
+ * @param - Date and time for which to retrieve a time slot in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#coordinated_Universal_Time_(UTC)) format.
4447
+ * @param - Size of the party that needs to be seated during this time slot.
4448
+ *
4449
+ * Min: `1`
4450
+ * @param - Options for retrieving the time slots.
4451
+ */
4452
+ (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions | undefined): Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
4453
+ }
4454
+ declare function checkTimeSlot$1(httpClient: HttpClient): CheckTimeSlotSignature;
4455
+ interface CheckTimeSlotSignature {
4456
+ /**
4457
+ * Checks a restaurant's availability to accommodate a reservation for a given party size in a given time slot.
4458
+ *
4459
+ * This endpoint returns availability information for the restaurant's table combinations, and flags any party pacing or seat pacing conflicts that the proposed reservation would cause.
4460
+ * @param - ID of the reservation location for which to check the time slot.
4461
+ */
4462
+ (reservationLocationId: string, options?: CheckTimeSlotOptions | undefined): Promise<CheckTimeSlotResponse & CheckTimeSlotResponseNonNullableFields>;
4463
+ }
4252
4464
 
4253
4465
  declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
4254
4466
 
@@ -440,7 +440,7 @@ interface SearchReservationsRequest$1 {
440
440
  search: CursorSearch$1;
441
441
  }
442
442
  interface CursorSearch$1 extends CursorSearchPagingMethodOneOf$1 {
443
- /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
443
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursorPaging.cursor' can't be used together with 'filter' or 'sort'. */
444
444
  cursorPaging?: CursorPaging$3;
445
445
  /**
446
446
  * Filter object in the following format:
@@ -468,7 +468,7 @@ interface CursorSearch$1 extends CursorSearchPagingMethodOneOf$1 {
468
468
  }
469
469
  /** @oneof */
470
470
  interface CursorSearchPagingMethodOneOf$1 {
471
- /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
471
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursorPaging.cursor' can't be used together with 'filter' or 'sort'. */
472
472
  cursorPaging?: CursorPaging$3;
473
473
  }
474
474
  interface Aggregation$1 extends AggregationKindOneOf$1 {
@@ -656,7 +656,7 @@ interface SearchDetails$1 {
656
656
  /**
657
657
  * Fields to search in.
658
658
  *
659
- * Searchable fields are `reservee.first_name`, `reservee.last_name`, `reservee.phone`, and `reservee.email`.
659
+ * Searchable fields are `reservee.firstName`, `reservee.lastName`, `reservee.phone`, and `reservee.email`.
660
660
  *
661
661
  * If the array is empty, all fields are searched.
662
662
  */
@@ -840,32 +840,6 @@ interface AggregationResultsResultOneOf$1 {
840
840
  /** Nested aggregation results. */
841
841
  nested?: NestedResults$1;
842
842
  }
843
- interface RawHttpRequest$1 {
844
- body?: Uint8Array;
845
- pathParams?: PathParametersEntry$1[];
846
- queryParams?: QueryParametersEntry$1[];
847
- headers?: HeadersEntry$1[];
848
- method?: string;
849
- rawPath?: string;
850
- rawQuery?: string;
851
- }
852
- interface PathParametersEntry$1 {
853
- key?: string;
854
- value?: string;
855
- }
856
- interface QueryParametersEntry$1 {
857
- key?: string;
858
- value?: string;
859
- }
860
- interface HeadersEntry$1 {
861
- key?: string;
862
- value?: string;
863
- }
864
- interface RawHttpResponse$1 {
865
- body?: Uint8Array;
866
- statusCode?: number | null;
867
- headers?: HeadersEntry$1[];
868
- }
869
843
  interface TableWithReservationConflictsNonNullableFields$1 {
870
844
  tableId: string;
871
845
  reservationIds: string[];
@@ -956,14 +930,6 @@ interface SearchReservationsResponseNonNullableFields$1 {
956
930
  reservations: ReservationNonNullableFields$1[];
957
931
  aggregationData?: AggregationDataNonNullableFields$1;
958
932
  }
959
- interface HeadersEntryNonNullableFields$1 {
960
- key: string;
961
- value: string;
962
- }
963
- interface RawHttpResponseNonNullableFields$1 {
964
- body: Uint8Array;
965
- headers: HeadersEntryNonNullableFields$1[];
966
- }
967
933
 
968
934
  /** The reservation domain object. */
969
935
  interface Reservation {
@@ -1407,7 +1373,7 @@ interface SearchReservationsRequest {
1407
1373
  search: CursorSearch;
1408
1374
  }
1409
1375
  interface CursorSearch extends CursorSearchPagingMethodOneOf {
1410
- /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
1376
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursorPaging.cursor' can't be used together with 'filter' or 'sort'. */
1411
1377
  cursorPaging?: CursorPaging$2;
1412
1378
  /**
1413
1379
  * Filter object in the following format:
@@ -1435,7 +1401,7 @@ interface CursorSearch extends CursorSearchPagingMethodOneOf {
1435
1401
  }
1436
1402
  /** @oneof */
1437
1403
  interface CursorSearchPagingMethodOneOf {
1438
- /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'. */
1404
+ /** Cursor pointing to a page of results. Can't be used together with 'paging'. 'cursorPaging.cursor' can't be used together with 'filter' or 'sort'. */
1439
1405
  cursorPaging?: CursorPaging$2;
1440
1406
  }
1441
1407
  interface Aggregation extends AggregationKindOneOf {
@@ -1623,7 +1589,7 @@ interface SearchDetails {
1623
1589
  /**
1624
1590
  * Fields to search in.
1625
1591
  *
1626
- * Searchable fields are `reservee.first_name`, `reservee.last_name`, `reservee.phone`, and `reservee.email`.
1592
+ * Searchable fields are `reservee.firstName`, `reservee.lastName`, `reservee.phone`, and `reservee.email`.
1627
1593
  *
1628
1594
  * If the array is empty, all fields are searched.
1629
1595
  */
@@ -1807,32 +1773,6 @@ interface AggregationResultsResultOneOf {
1807
1773
  /** Nested aggregation results. */
1808
1774
  nested?: NestedResults;
1809
1775
  }
1810
- interface RawHttpRequest {
1811
- body?: Uint8Array;
1812
- pathParams?: PathParametersEntry[];
1813
- queryParams?: QueryParametersEntry[];
1814
- headers?: HeadersEntry[];
1815
- method?: string;
1816
- rawPath?: string;
1817
- rawQuery?: string;
1818
- }
1819
- interface PathParametersEntry {
1820
- key?: string;
1821
- value?: string;
1822
- }
1823
- interface QueryParametersEntry {
1824
- key?: string;
1825
- value?: string;
1826
- }
1827
- interface HeadersEntry {
1828
- key?: string;
1829
- value?: string;
1830
- }
1831
- interface RawHttpResponse {
1832
- body?: Uint8Array;
1833
- statusCode?: number | null;
1834
- headers?: HeadersEntry[];
1835
- }
1836
1776
  interface TableWithReservationConflictsNonNullableFields {
1837
1777
  tableId: string;
1838
1778
  reservationIds: string[];
@@ -1923,14 +1863,6 @@ interface SearchReservationsResponseNonNullableFields {
1923
1863
  reservations: ReservationNonNullableFields[];
1924
1864
  aggregationData?: AggregationDataNonNullableFields;
1925
1865
  }
1926
- interface HeadersEntryNonNullableFields {
1927
- key: string;
1928
- value: string;
1929
- }
1930
- interface RawHttpResponseNonNullableFields {
1931
- body: Uint8Array;
1932
- headers: HeadersEntryNonNullableFields[];
1933
- }
1934
1866
 
1935
1867
  type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1936
1868
  getUrl: (context: any) => string;
@@ -1962,15 +1894,11 @@ declare function deleteReservation(): __PublicMethodMetaInfo$2<'DELETE', {
1962
1894
  declare function listReservations(): __PublicMethodMetaInfo$2<'GET', {}, ListReservationsRequest, ListReservationsRequest$1, ListReservationsResponse & ListReservationsResponseNonNullableFields, ListReservationsResponse$1 & ListReservationsResponseNonNullableFields$1>;
1963
1895
  declare function queryReservations(): __PublicMethodMetaInfo$2<'POST', {}, QueryReservationsRequest, QueryReservationsRequest$1, QueryReservationsResponse & QueryReservationsResponseNonNullableFields, QueryReservationsResponse$1 & QueryReservationsResponseNonNullableFields$1>;
1964
1896
  declare function searchReservations(): __PublicMethodMetaInfo$2<'POST', {}, SearchReservationsRequest, SearchReservationsRequest$1, SearchReservationsResponse & SearchReservationsResponseNonNullableFields, SearchReservationsResponse$1 & SearchReservationsResponseNonNullableFields$1>;
1965
- declare function getCalendarInviteFileWebhook(): __PublicMethodMetaInfo$2<'GET', {
1966
- id: string;
1967
- }, RawHttpRequest, RawHttpRequest$1, RawHttpResponse & RawHttpResponseNonNullableFields, RawHttpResponse$1 & RawHttpResponseNonNullableFields$1>;
1968
1897
 
1969
1898
  declare const meta$2_cancelReservation: typeof cancelReservation;
1970
1899
  declare const meta$2_createHeldReservation: typeof createHeldReservation;
1971
1900
  declare const meta$2_createReservation: typeof createReservation;
1972
1901
  declare const meta$2_deleteReservation: typeof deleteReservation;
1973
- declare const meta$2_getCalendarInviteFileWebhook: typeof getCalendarInviteFileWebhook;
1974
1902
  declare const meta$2_getReservation: typeof getReservation;
1975
1903
  declare const meta$2_listReservations: typeof listReservations;
1976
1904
  declare const meta$2_queryReservations: typeof queryReservations;
@@ -1978,7 +1906,7 @@ declare const meta$2_reserveReservation: typeof reserveReservation;
1978
1906
  declare const meta$2_searchReservations: typeof searchReservations;
1979
1907
  declare const meta$2_updateReservation: typeof updateReservation;
1980
1908
  declare namespace meta$2 {
1981
- export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_cancelReservation as cancelReservation, meta$2_createHeldReservation as createHeldReservation, meta$2_createReservation as createReservation, meta$2_deleteReservation as deleteReservation, meta$2_getCalendarInviteFileWebhook as getCalendarInviteFileWebhook, meta$2_getReservation as getReservation, meta$2_listReservations as listReservations, meta$2_queryReservations as queryReservations, meta$2_reserveReservation as reserveReservation, meta$2_searchReservations as searchReservations, meta$2_updateReservation as updateReservation };
1909
+ export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_cancelReservation as cancelReservation, meta$2_createHeldReservation as createHeldReservation, meta$2_createReservation as createReservation, meta$2_deleteReservation as deleteReservation, meta$2_getReservation as getReservation, meta$2_listReservations as listReservations, meta$2_queryReservations as queryReservations, meta$2_reserveReservation as reserveReservation, meta$2_searchReservations as searchReservations, meta$2_updateReservation as updateReservation };
1982
1910
  }
1983
1911
 
1984
1912
  interface ReservationLocation$1 {