@wix/table-reservations 1.0.118 → 1.0.120
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 +5 -5
- package/type-bundles/context.bundle.d.ts +327 -60
- package/type-bundles/index.bundle.d.ts +327 -60
- package/type-bundles/meta.bundle.d.ts +52 -0
|
@@ -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
|
/**
|
|
@@ -79,6 +123,8 @@ interface Reservation {
|
|
|
79
123
|
* @readonly
|
|
80
124
|
*/
|
|
81
125
|
paymentStatus?: PaymentStatus;
|
|
126
|
+
/** Wix extended fields */
|
|
127
|
+
extendedFields?: ExtendedFields$1;
|
|
82
128
|
}
|
|
83
129
|
declare enum Status$1 {
|
|
84
130
|
UNKNOWN = "UNKNOWN",
|
|
@@ -192,6 +238,17 @@ declare enum PaymentStatus {
|
|
|
192
238
|
/** A corresponding to reservation order was partially payed. */
|
|
193
239
|
PARTIALLY_PAID = "PARTIALLY_PAID"
|
|
194
240
|
}
|
|
241
|
+
interface ExtendedFields$1 {
|
|
242
|
+
/**
|
|
243
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
244
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
245
|
+
*
|
|
246
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
247
|
+
*
|
|
248
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
249
|
+
*/
|
|
250
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
251
|
+
}
|
|
195
252
|
interface ReservationDelayedDomainEvent extends ReservationDelayedDomainEventBodyTypeOneOf {
|
|
196
253
|
/** Body of a created reservation event. */
|
|
197
254
|
reservationCreated?: ReservationCreated;
|
|
@@ -1292,6 +1349,8 @@ interface UpdateReservation {
|
|
|
1292
1349
|
* @readonly
|
|
1293
1350
|
*/
|
|
1294
1351
|
paymentStatus?: PaymentStatus;
|
|
1352
|
+
/** Wix extended fields */
|
|
1353
|
+
extendedFields?: ExtendedFields$1;
|
|
1295
1354
|
}
|
|
1296
1355
|
interface UpdateReservationOptions {
|
|
1297
1356
|
/**
|
|
@@ -1412,60 +1471,159 @@ interface ReservationsQueryBuilder {
|
|
|
1412
1471
|
find: () => Promise<ReservationsQueryResult>;
|
|
1413
1472
|
}
|
|
1414
1473
|
|
|
1415
|
-
|
|
1416
|
-
interface
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1474
|
+
declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
|
|
1475
|
+
interface CreateReservationSignature {
|
|
1476
|
+
/**
|
|
1477
|
+
* Creates a new reservation.
|
|
1478
|
+
*
|
|
1479
|
+
* `createReservation()` accepts and requires different fields depending on the `status` provided and your permissions.
|
|
1480
|
+
*
|
|
1481
|
+
* **Status and source**
|
|
1482
|
+
*
|
|
1483
|
+
* If a `status` is not provided, it will be set to:
|
|
1484
|
+
* * `RESERVED` if manual approval is not required for confirmation
|
|
1485
|
+
* * `REQUESTED` if manual approval is required for confirmation.
|
|
1486
|
+
*
|
|
1487
|
+
* A reservation created with any `source` other than `WALK_IN` requires the `reservation.reservee.phone` and `reservation.reservee.firstName` fields.
|
|
1488
|
+
* Attempting to create a reservation without these fields will result in an error.
|
|
1489
|
+
*
|
|
1490
|
+
* **Permissions**
|
|
1491
|
+
*
|
|
1492
|
+
* 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.
|
|
1493
|
+
*
|
|
1494
|
+
* 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.
|
|
1495
|
+
*
|
|
1496
|
+
*
|
|
1497
|
+
* > **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()`.
|
|
1498
|
+
* @param - Reservation details.
|
|
1499
|
+
* @param - Options for creating the reservation.
|
|
1500
|
+
* @returns Reservation.
|
|
1501
|
+
*/
|
|
1502
|
+
(reservation: Reservation, options?: CreateReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
|
|
1420
1503
|
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1504
|
+
declare function getReservation$1(httpClient: HttpClient): GetReservationSignature;
|
|
1505
|
+
interface GetReservationSignature {
|
|
1506
|
+
/**
|
|
1507
|
+
* Retrieves a reservation.
|
|
1508
|
+
*
|
|
1509
|
+
* Calling this method with `fieldsets` set to `FULL` requires additional permissions. See this API's Introduction article for more information.
|
|
1510
|
+
* @param - Reservation ID.
|
|
1511
|
+
* @returns Reservation.
|
|
1512
|
+
*/
|
|
1513
|
+
(reservationId: string, options?: GetReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
|
|
1514
|
+
}
|
|
1515
|
+
declare function updateReservation$1(httpClient: HttpClient): UpdateReservationSignature;
|
|
1516
|
+
interface UpdateReservationSignature {
|
|
1517
|
+
/**
|
|
1518
|
+
* Updates a reservation.
|
|
1519
|
+
*
|
|
1520
|
+
* 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.
|
|
1521
|
+
*
|
|
1522
|
+
* 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.
|
|
1523
|
+
* @param - Reservation ID.
|
|
1524
|
+
* @param - Options for updating the reservation.
|
|
1525
|
+
* @param - Reservation information to update.
|
|
1526
|
+
* @returns Reservation.
|
|
1527
|
+
*/
|
|
1528
|
+
(_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
|
|
1529
|
+
}
|
|
1530
|
+
declare function createHeldReservation$1(httpClient: HttpClient): CreateHeldReservationSignature;
|
|
1531
|
+
interface CreateHeldReservationSignature {
|
|
1532
|
+
/**
|
|
1533
|
+
* Creates a new temporary reservation and holds it for the customer for 10 minutes.
|
|
1534
|
+
*
|
|
1535
|
+
* 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.
|
|
1536
|
+
*
|
|
1537
|
+
* You cannot call `updateReservation()` to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use `reserveReservation()`.
|
|
1538
|
+
*
|
|
1539
|
+
* If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using `createReservation()`.
|
|
1540
|
+
*
|
|
1541
|
+
* @param - Held reservation information to update.
|
|
1542
|
+
*/
|
|
1543
|
+
(reservationDetails: HeldReservationDetails): Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
|
|
1544
|
+
}
|
|
1545
|
+
declare function reserveReservation$1(httpClient: HttpClient): ReserveReservationSignature;
|
|
1546
|
+
interface ReserveReservationSignature {
|
|
1547
|
+
/**
|
|
1548
|
+
* Reserves or requests a held reservation.
|
|
1549
|
+
*
|
|
1550
|
+
* Held reservations are temporary reservations with the `HELD` status created by `createHeldReservation()`.
|
|
1551
|
+
*
|
|
1552
|
+
* 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.
|
|
1553
|
+
*
|
|
1554
|
+
* `Reserve Reservation` changes a reservation's `HELD` status to:
|
|
1555
|
+
* * `RESERVED` if the reservation's reservation location does not require manual approval.
|
|
1556
|
+
* * `REQUESTED` if the reservation's reservation location requires manual approval.
|
|
1557
|
+
* @param - Reservation ID.
|
|
1558
|
+
* @param - Reservee details.
|
|
1559
|
+
* @param - Revision number.
|
|
1560
|
+
*
|
|
1561
|
+
* Include the existing `revision` to prevent conflicting updates to reservations.
|
|
1562
|
+
*/
|
|
1563
|
+
(reservationId: string, reservee: Reservee, revision: string | null): Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
|
|
1564
|
+
}
|
|
1565
|
+
declare function cancelReservation$1(httpClient: HttpClient): CancelReservationSignature;
|
|
1566
|
+
interface CancelReservationSignature {
|
|
1567
|
+
/**
|
|
1568
|
+
* Cancels a reservation.
|
|
1569
|
+
*
|
|
1570
|
+
* Sets the reservation status to `CANCELED`.
|
|
1571
|
+
* @param - Reservation ID.
|
|
1572
|
+
* @param - Revision number.
|
|
1573
|
+
*
|
|
1574
|
+
* Include the existing `revision` to prevent conflicting updates to reservations.
|
|
1575
|
+
* @param - Options for canceling the reservation.
|
|
1576
|
+
*/
|
|
1577
|
+
(reservationId: string, revision: string | null, options?: CancelReservationOptions | undefined): Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
|
|
1578
|
+
}
|
|
1579
|
+
declare function deleteReservation$1(httpClient: HttpClient): DeleteReservationSignature;
|
|
1580
|
+
interface DeleteReservationSignature {
|
|
1581
|
+
/**
|
|
1582
|
+
* Deletes a reservation. Only reservations with the `HELD` status can be deleted.
|
|
1583
|
+
* @param - Reservation ID.
|
|
1584
|
+
*/
|
|
1585
|
+
(reservationId: string): Promise<void>;
|
|
1586
|
+
}
|
|
1587
|
+
declare function listReservations$1(httpClient: HttpClient): ListReservationsSignature;
|
|
1588
|
+
interface ListReservationsSignature {
|
|
1589
|
+
/**
|
|
1590
|
+
* Retrieves a list of up to 100 reservations.
|
|
1591
|
+
* @param - Options for listing the reservations.
|
|
1592
|
+
*/
|
|
1593
|
+
(options?: ListReservationsOptions | undefined): Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
|
|
1594
|
+
}
|
|
1595
|
+
declare function queryReservations$1(httpClient: HttpClient): QueryReservationsSignature;
|
|
1596
|
+
interface QueryReservationsSignature {
|
|
1597
|
+
/**
|
|
1598
|
+
* Creates a query to retrieve a list of reservations.
|
|
1599
|
+
*
|
|
1600
|
+
* The `queryReservations()` function builds a query to retrieve a list of reservations and returns a [`ReservationsQueryBuilder`](/reservations/reservations-query-builder) object.
|
|
1601
|
+
*
|
|
1602
|
+
* The returned object contains the query definition, which is used to run the query using the [find()](/reservations/reservations-query-builder/find) function.
|
|
1603
|
+
*
|
|
1604
|
+
* 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.
|
|
1605
|
+
*
|
|
1606
|
+
* `queryReservations()` runs with the following `ReservationsQueryBuilder` defaults, which you can override:
|
|
1607
|
+
*
|
|
1608
|
+
* * [`skip(0)`](/reservations/reservations-query-builder/skip)
|
|
1609
|
+
* * [`limit(50)`](/reservations/reservations-query-builder/limit)
|
|
1610
|
+
* * [`descending('_createdDate')`](/reservations/reservations-query-builder/descending)
|
|
1611
|
+
*
|
|
1612
|
+
* 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).
|
|
1613
|
+
*/
|
|
1614
|
+
(): ReservationsQueryBuilder;
|
|
1615
|
+
}
|
|
1616
|
+
declare function searchReservations$1(httpClient: HttpClient): SearchReservationsSignature;
|
|
1617
|
+
interface SearchReservationsSignature {
|
|
1618
|
+
/**
|
|
1619
|
+
* Use this endpoint to search the fields of the table reservations on a site for a given expression.
|
|
1620
|
+
*
|
|
1621
|
+
* You can also use this endpoint to perform data aggregations on a site's table reservation fields.
|
|
1622
|
+
* 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.
|
|
1623
|
+
* @param - Search query.
|
|
1624
|
+
*/
|
|
1625
|
+
(search: CursorSearch): Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
|
|
1457
1626
|
}
|
|
1458
|
-
|
|
1459
|
-
declare function createReservation$1(httpClient: HttpClient): (reservation: Reservation, options?: CreateReservationOptions) => Promise<Reservation & ReservationNonNullableFields>;
|
|
1460
|
-
declare function getReservation$1(httpClient: HttpClient): (reservationId: string, options?: GetReservationOptions) => Promise<Reservation & ReservationNonNullableFields>;
|
|
1461
|
-
declare function updateReservation$1(httpClient: HttpClient): (_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions) => Promise<Reservation & ReservationNonNullableFields>;
|
|
1462
|
-
declare function createHeldReservation$1(httpClient: HttpClient): (reservationDetails: HeldReservationDetails) => Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
|
|
1463
|
-
declare function reserveReservation$1(httpClient: HttpClient): (reservationId: string, reservee: Reservee, revision: string | null) => Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
|
|
1464
|
-
declare function cancelReservation$1(httpClient: HttpClient): (reservationId: string, revision: string | null, options?: CancelReservationOptions) => Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
|
|
1465
|
-
declare function deleteReservation$1(httpClient: HttpClient): (reservationId: string) => Promise<void>;
|
|
1466
|
-
declare function listReservations$1(httpClient: HttpClient): (options?: ListReservationsOptions) => Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
|
|
1467
|
-
declare function queryReservations$1(httpClient: HttpClient): () => ReservationsQueryBuilder;
|
|
1468
|
-
declare function searchReservations$1(httpClient: HttpClient): (search: CursorSearch) => Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
|
|
1469
1627
|
declare const onReservationCreated$1: EventDefinition<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
|
|
1470
1628
|
|
|
1471
1629
|
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
@@ -1494,6 +1652,9 @@ type _publicSearchReservationsType = typeof searchReservations$1;
|
|
|
1494
1652
|
declare const searchReservations: ReturnType<typeof createRESTModule$2<_publicSearchReservationsType>>;
|
|
1495
1653
|
|
|
1496
1654
|
type _publicOnReservationCreatedType = typeof onReservationCreated$1;
|
|
1655
|
+
/**
|
|
1656
|
+
* Triggered when a held reservation is created.
|
|
1657
|
+
*/
|
|
1497
1658
|
declare const onReservationCreated: ReturnType<typeof createEventModule$1<_publicOnReservationCreatedType>>;
|
|
1498
1659
|
|
|
1499
1660
|
type index_d$2_Aggregation = Aggregation;
|
|
@@ -1636,7 +1797,7 @@ declare const index_d$2_reserveReservation: typeof reserveReservation;
|
|
|
1636
1797
|
declare const index_d$2_searchReservations: typeof searchReservations;
|
|
1637
1798
|
declare const index_d$2_updateReservation: typeof updateReservation;
|
|
1638
1799
|
declare namespace index_d$2 {
|
|
1639
|
-
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 };
|
|
1800
|
+
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 ExtendedFields$1 as ExtendedFields, 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 };
|
|
1640
1801
|
}
|
|
1641
1802
|
|
|
1642
1803
|
interface ReservationLocation {
|
|
@@ -1677,6 +1838,8 @@ interface ReservationLocation {
|
|
|
1677
1838
|
* @readonly
|
|
1678
1839
|
*/
|
|
1679
1840
|
archived?: boolean | null;
|
|
1841
|
+
/** Wix extended fields */
|
|
1842
|
+
extendedFields?: ExtendedFields;
|
|
1680
1843
|
}
|
|
1681
1844
|
interface StreetAddress {
|
|
1682
1845
|
/** Street number. */
|
|
@@ -2105,6 +2268,17 @@ interface Configuration {
|
|
|
2105
2268
|
/** Table management settings. */
|
|
2106
2269
|
tableManagement?: TableManagement;
|
|
2107
2270
|
}
|
|
2271
|
+
interface ExtendedFields {
|
|
2272
|
+
/**
|
|
2273
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
2274
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
2275
|
+
*
|
|
2276
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
2277
|
+
*
|
|
2278
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
2279
|
+
*/
|
|
2280
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
2281
|
+
}
|
|
2108
2282
|
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
2109
2283
|
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
2110
2284
|
metaSiteId?: string;
|
|
@@ -3708,6 +3882,8 @@ interface UpdateReservationLocation {
|
|
|
3708
3882
|
* @readonly
|
|
3709
3883
|
*/
|
|
3710
3884
|
archived?: boolean | null;
|
|
3885
|
+
/** Wix extended fields */
|
|
3886
|
+
extendedFields?: ExtendedFields;
|
|
3711
3887
|
}
|
|
3712
3888
|
interface QueryReservationLocationsOptions {
|
|
3713
3889
|
/**
|
|
@@ -3779,10 +3955,65 @@ interface ListReservationLocationsOptions {
|
|
|
3779
3955
|
fieldsets?: Set[];
|
|
3780
3956
|
}
|
|
3781
3957
|
|
|
3782
|
-
declare function getReservationLocation$1(httpClient: HttpClient):
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3958
|
+
declare function getReservationLocation$1(httpClient: HttpClient): GetReservationLocationSignature;
|
|
3959
|
+
interface GetReservationLocationSignature {
|
|
3960
|
+
/**
|
|
3961
|
+
* Retrieves a reservation location by ID.
|
|
3962
|
+
*
|
|
3963
|
+
* The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
|
|
3964
|
+
* @param - ID of the ReservationLocation to retrieve.
|
|
3965
|
+
* @param - An object representing the available options for retrieving a reservation location.
|
|
3966
|
+
* @returns The retrieved reservation location.
|
|
3967
|
+
*/
|
|
3968
|
+
(reservationLocationId: string, options?: GetReservationLocationOptions | undefined): Promise<ReservationLocation & ReservationLocationNonNullableFields>;
|
|
3969
|
+
}
|
|
3970
|
+
declare function updateReservationLocation$1(httpClient: HttpClient): UpdateReservationLocationSignature;
|
|
3971
|
+
interface UpdateReservationLocationSignature {
|
|
3972
|
+
/**
|
|
3973
|
+
* Updates a reservation location. Supports partial updates.
|
|
3974
|
+
*
|
|
3975
|
+
* 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.
|
|
3976
|
+
*
|
|
3977
|
+
* 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.
|
|
3978
|
+
* @param - Reservation location ID.
|
|
3979
|
+
* @param - Reservation location information to update.
|
|
3980
|
+
* @returns The updated reservation location.
|
|
3981
|
+
*/
|
|
3982
|
+
(_id: string | null, reservationLocation: UpdateReservationLocation): Promise<ReservationLocation & ReservationLocationNonNullableFields>;
|
|
3983
|
+
}
|
|
3984
|
+
declare function queryReservationLocations$1(httpClient: HttpClient): QueryReservationLocationsSignature;
|
|
3985
|
+
interface QueryReservationLocationsSignature {
|
|
3986
|
+
/**
|
|
3987
|
+
* Creates a query to retrieve a list of reservation locations.
|
|
3988
|
+
*
|
|
3989
|
+
*
|
|
3990
|
+
* The `queryReservationLocations()` function builds a query to retrieve a list of reservation locations and returns a [`ReservationLocationsQueryBuilder`](/reservation-locations/reservation-locations-query-builder/) object.
|
|
3991
|
+
*
|
|
3992
|
+
* 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.
|
|
3993
|
+
*
|
|
3994
|
+
* 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.
|
|
3995
|
+
*
|
|
3996
|
+
* `queryReservationLocations()` runs with the following `ReservationLocationsQueryBuilder` defaults, which you can override:
|
|
3997
|
+
*
|
|
3998
|
+
* * [`skip(0)`](/reservation-locations/reservation-locations-query-builder/skip)
|
|
3999
|
+
* * [`limit(50)`](/reservation-locations/reservation-locations-query-builder/limit)
|
|
4000
|
+
* * [`descending('_createdDate')`](/reservation-locations/reservation-locations-query-builder/descending)
|
|
4001
|
+
*
|
|
4002
|
+
* 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).
|
|
4003
|
+
* @param - An object representing the available options for querying reservation locations.
|
|
4004
|
+
*/
|
|
4005
|
+
(options?: QueryReservationLocationsOptions | undefined): ReservationLocationsQueryBuilder;
|
|
4006
|
+
}
|
|
4007
|
+
declare function listReservationLocations$1(httpClient: HttpClient): ListReservationLocationsSignature;
|
|
4008
|
+
interface ListReservationLocationsSignature {
|
|
4009
|
+
/**
|
|
4010
|
+
* Retrieves a list of up to 100 reservation locations.
|
|
4011
|
+
*
|
|
4012
|
+
* The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
|
|
4013
|
+
* @param - An object representing the available options for listing reservation locations.
|
|
4014
|
+
*/
|
|
4015
|
+
(options?: ListReservationLocationsOptions | undefined): Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
|
|
4016
|
+
}
|
|
3786
4017
|
declare const onReservationLocationUpdated$1: EventDefinition<ReservationLocationUpdatedEnvelope, "wix.table_reservations.v1.reservation_location_updated">;
|
|
3787
4018
|
declare const onReservationLocationCreated$1: EventDefinition<ReservationLocationCreatedEnvelope, "wix.table_reservations.v1.reservation_location_created">;
|
|
3788
4019
|
|
|
@@ -3800,9 +4031,15 @@ type _publicListReservationLocationsType = typeof listReservationLocations$1;
|
|
|
3800
4031
|
declare const listReservationLocations: ReturnType<typeof createRESTModule$1<_publicListReservationLocationsType>>;
|
|
3801
4032
|
|
|
3802
4033
|
type _publicOnReservationLocationUpdatedType = typeof onReservationLocationUpdated$1;
|
|
4034
|
+
/**
|
|
4035
|
+
* Triggered when a reservation location is updated.
|
|
4036
|
+
*/
|
|
3803
4037
|
declare const onReservationLocationUpdated: ReturnType<typeof createEventModule<_publicOnReservationLocationUpdatedType>>;
|
|
3804
4038
|
|
|
3805
4039
|
type _publicOnReservationLocationCreatedType = typeof onReservationLocationCreated$1;
|
|
4040
|
+
/**
|
|
4041
|
+
* Triggered when a reservation location is updated.
|
|
4042
|
+
*/
|
|
3806
4043
|
declare const onReservationLocationCreated: ReturnType<typeof createEventModule<_publicOnReservationLocationCreatedType>>;
|
|
3807
4044
|
|
|
3808
4045
|
type index_d$1_ActionEvent = ActionEvent;
|
|
@@ -3848,6 +4085,7 @@ type index_d$1_EntityCreatedEvent = EntityCreatedEvent;
|
|
|
3848
4085
|
type index_d$1_EntityDeletedEvent = EntityDeletedEvent;
|
|
3849
4086
|
type index_d$1_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
3850
4087
|
type index_d$1_EventMetadata = EventMetadata;
|
|
4088
|
+
type index_d$1_ExtendedFields = ExtendedFields;
|
|
3851
4089
|
type index_d$1_Feature = Feature;
|
|
3852
4090
|
type index_d$1_FeatureCancelled = FeatureCancelled;
|
|
3853
4091
|
type index_d$1_FeatureCancelledReasonOneOf = FeatureCancelledReasonOneOf;
|
|
@@ -4010,7 +4248,7 @@ declare const index_d$1_onReservationLocationUpdated: typeof onReservationLocati
|
|
|
4010
4248
|
declare const index_d$1_queryReservationLocations: typeof queryReservationLocations;
|
|
4011
4249
|
declare const index_d$1_updateReservationLocation: typeof updateReservationLocation;
|
|
4012
4250
|
declare namespace index_d$1 {
|
|
4013
|
-
export { type index_d$1_ActionEvent as ActionEvent, type index_d$1_Address as Address, type index_d$1_AddressHint as AddressHint, type index_d$1_AddressLocation as AddressLocation, type index_d$1_App as App, type index_d$1_Asset as Asset, type index_d$1_AssignedFromFloatingReason as AssignedFromFloatingReason, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_BooleanFeature as BooleanFeature, type index_d$1_BusinessSchedule as BusinessSchedule, type index_d$1_CancelRequestedReason as CancelRequestedReason, type index_d$1_Categories as Categories, type index_d$1_ChangeContext as ChangeContext, type index_d$1_ChangeContextPayloadOneOf as ChangeContextPayloadOneOf, type index_d$1_CheckReservationLocationsCreatedRequest as CheckReservationLocationsCreatedRequest, type index_d$1_CheckReservationLocationsCreatedResponse as CheckReservationLocationsCreatedResponse, type index_d$1_CommonBusinessSchedule as CommonBusinessSchedule, index_d$1_CommonDayOfWeek as CommonDayOfWeek, type index_d$1_CommonSpecialHourPeriod as CommonSpecialHourPeriod, type index_d$1_CommonTimePeriod as CommonTimePeriod, type index_d$1_Configuration as Configuration, type index_d$1_ConsentPolicy as ConsentPolicy, type index_d$1_ContractSwitchedReason as ContractSwitchedReason, type index_d$1_CursorPaging as CursorPaging, type index_d$1_CursorPagingMetadata as CursorPagingMetadata, type index_d$1_Cursors as Cursors, type index_d$1_CustomFieldDefinition as CustomFieldDefinition, index_d$1_DayOfWeek as DayOfWeek, type index_d$1_DeleteContext as DeleteContext, type index_d$1_DeleteOrphanReservationLocationRequest as DeleteOrphanReservationLocationRequest, type index_d$1_DeleteOrphanReservationLocationResponse as DeleteOrphanReservationLocationResponse, index_d$1_DeleteStatus as DeleteStatus, type index_d$1_DomainEvent as DomainEvent, type index_d$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$1_EmailMarketingCheckbox as EmailMarketingCheckbox, type index_d$1_Empty as Empty, type index_d$1_EntityCreatedEvent as EntityCreatedEvent, type index_d$1_EntityDeletedEvent as EntityDeletedEvent, type index_d$1_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type index_d$1_Feature as Feature, type index_d$1_FeatureCancelled as FeatureCancelled, type index_d$1_FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOf, type index_d$1_FeatureContext as FeatureContext, type index_d$1_FeatureDisabled as FeatureDisabled, type index_d$1_FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOf, type index_d$1_FeatureEnabled as FeatureEnabled, type index_d$1_FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOf, type index_d$1_FeatureEvent as FeatureEvent, type index_d$1_FeatureEventEventOneOf as FeatureEventEventOneOf, index_d$1_FeaturePeriod as FeaturePeriod, type index_d$1_FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOf, type index_d$1_FeatureUpdated as FeatureUpdated, type index_d$1_FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOf, type index_d$1_FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOf, index_d$1_FieldType as FieldType, type index_d$1_File as File, type index_d$1_GeoCoordinates as GeoCoordinates, type index_d$1_GetReservationLocationOptions as GetReservationLocationOptions, type index_d$1_GetReservationLocationRequest as GetReservationLocationRequest, type index_d$1_GetReservationLocationResponse as GetReservationLocationResponse, type index_d$1_GetReservationLocationResponseNonNullableFields as GetReservationLocationResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$1_InvalidateCache as InvalidateCache, type index_d$1_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d$1_ListReservationLocationsOptions as ListReservationLocationsOptions, type index_d$1_ListReservationLocationsRequest as ListReservationLocationsRequest, type index_d$1_ListReservationLocationsResponse as ListReservationLocationsResponse, type index_d$1_ListReservationLocationsResponseNonNullableFields as ListReservationLocationsResponseNonNullableFields, type index_d$1_Locale as Locale, type index_d$1_Location as Location, type index_d$1_LocationAddress as LocationAddress, type index_d$1_ManualApproval as ManualApproval, type index_d$1_ManualApprovalValueOneOf as ManualApprovalValueOneOf, type index_d$1_ManualFeatureCreationReason as ManualFeatureCreationReason, type index_d$1_MessageEnvelope as MessageEnvelope, type index_d$1_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$1_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, type index_d$1_MigrateOldRestaurantSettingsRequest as MigrateOldRestaurantSettingsRequest, type index_d$1_MigrateOldRestaurantSettingsResponse as MigrateOldRestaurantSettingsResponse, type index_d$1_MigratedFromLegacyReason as MigratedFromLegacyReason, type index_d$1_MigrationParsingError as MigrationParsingError, type index_d$1_MigrationResult as MigrationResult, index_d$1_Mode as Mode, type index_d$1_Multilingual as Multilingual, type index_d$1_MyReservationsField as MyReservationsField, index_d$1_Namespace as Namespace, type index_d$1_NamespaceChanged as NamespaceChanged, type index_d$1_NewFeatureReason as NewFeatureReason, type index_d$1_NoticePeriod as NoticePeriod, type index_d$1_OldCustomField as OldCustomField, type index_d$1_OldInstant as OldInstant, type index_d$1_OldPolicy as OldPolicy, type index_d$1_OldScheduleException as OldScheduleException, type index_d$1_OldScheduleInterval as OldScheduleInterval, type index_d$1_OldTerms as OldTerms, type index_d$1_OnlineReservations as OnlineReservations, type index_d$1_Page as Page, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_ParsedSettings as ParsedSettings, type index_d$1_PartiesSize as PartiesSize, type index_d$1_PartyPacing as PartyPacing, type index_d$1_PartySize as PartySize, index_d$1_PlacementType as PlacementType, type index_d$1_PrivacyPolicy as PrivacyPolicy, type index_d$1_PrivacyPolicyValueOneOf as PrivacyPolicyValueOneOf, type index_d$1_Properties as Properties, type index_d$1_PropertiesChange as PropertiesChange, type index_d$1_QueryReservationLocationsOptions as QueryReservationLocationsOptions, type index_d$1_QueryReservationLocationsRequest as QueryReservationLocationsRequest, type index_d$1_QueryReservationLocationsResponse as QueryReservationLocationsResponse, type index_d$1_QueryReservationLocationsResponseNonNullableFields as QueryReservationLocationsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_QuotaFeature as QuotaFeature, type index_d$1_QuotaInfo as QuotaInfo, type index_d$1_ReassignedFromSiteReason as ReassignedFromSiteReason, type index_d$1_ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReason, type index_d$1_ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReason, type index_d$1_ReservationForm as ReservationForm, type index_d$1_ReservationLocation as ReservationLocation, type index_d$1_ReservationLocationCreatedEnvelope as ReservationLocationCreatedEnvelope, type index_d$1_ReservationLocationNonNullableFields as ReservationLocationNonNullableFields, type index_d$1_ReservationLocationUpdatedEnvelope as ReservationLocationUpdatedEnvelope, type index_d$1_ReservationLocationsQueryBuilder as ReservationLocationsQueryBuilder, type index_d$1_ReservationLocationsQueryResult as ReservationLocationsQueryResult, type index_d$1_ReservationPayment as ReservationPayment, index_d$1_ResolutionMethod as ResolutionMethod, type index_d$1_RestoreInfo as RestoreInfo, type index_d$1_SeatPacing as SeatPacing, type index_d$1_ServiceProvisioned as ServiceProvisioned, type index_d$1_ServiceRemoved as ServiceRemoved, index_d$1_Set as Set, type index_d$1_SiteCloned as SiteCloned, type index_d$1_SiteCreated as SiteCreated, index_d$1_SiteCreatedContext as SiteCreatedContext, type index_d$1_SiteDeleted as SiteDeleted, type index_d$1_SiteHardDeleted as SiteHardDeleted, type index_d$1_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$1_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$1_SitePropertiesEvent as SitePropertiesEvent, type index_d$1_SitePropertiesNotification as SitePropertiesNotification, type index_d$1_SitePublished as SitePublished, type index_d$1_SiteRenamed as SiteRenamed, type index_d$1_SiteTransferred as SiteTransferred, type index_d$1_SiteUndeleted as SiteUndeleted, type index_d$1_SiteUnpublished as SiteUnpublished, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_SpecialHourPeriod as SpecialHourPeriod, index_d$1_State as State, type index_d$1_StreetAddress as StreetAddress, type index_d$1_StudioAssigned as StudioAssigned, type index_d$1_StudioUnassigned as StudioUnassigned, type index_d$1_SupportedLanguage as SupportedLanguage, type TableCombination$1 as TableCombination, type index_d$1_TableDefinition as TableDefinition, type index_d$1_TableManagement as TableManagement, type index_d$1_TablesDeleted as TablesDeleted, type index_d$1_TermsAndConditions as TermsAndConditions, type index_d$1_TermsAndConditionsValueOneOf as TermsAndConditionsValueOneOf, type index_d$1_TimePeriod as TimePeriod, type index_d$1_TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReason, type index_d$1_TransferredToAnotherAccountReason as TransferredToAnotherAccountReason, type index_d$1_Translation as Translation, type index_d$1_TurnoverRule as TurnoverRule, type index_d$1_TurnoverTimeRule as TurnoverTimeRule, type index_d$1_URI as URI, type index_d$1_UnAssingedToFloatingReason as UnAssingedToFloatingReason, index_d$1_Unit as Unit, type index_d$1_UpdateReservationLocation as UpdateReservationLocation, type index_d$1_UpdateReservationLocationRequest as UpdateReservationLocationRequest, type index_d$1_UpdateReservationLocationResponse as UpdateReservationLocationResponse, type index_d$1_UpdateReservationLocationResponseNonNullableFields as UpdateReservationLocationResponseNonNullableFields, type index_d$1_V4SiteCreated as V4SiteCreated, index_d$1_WebhookIdentityType as WebhookIdentityType, type index_d$1__publicGetReservationLocationType as _publicGetReservationLocationType, type index_d$1__publicListReservationLocationsType as _publicListReservationLocationsType, type index_d$1__publicOnReservationLocationCreatedType as _publicOnReservationLocationCreatedType, type index_d$1__publicOnReservationLocationUpdatedType as _publicOnReservationLocationUpdatedType, type index_d$1__publicQueryReservationLocationsType as _publicQueryReservationLocationsType, type index_d$1__publicUpdateReservationLocationType as _publicUpdateReservationLocationType, index_d$1_getReservationLocation as getReservationLocation, index_d$1_listReservationLocations as listReservationLocations, index_d$1_onReservationLocationCreated as onReservationLocationCreated, index_d$1_onReservationLocationUpdated as onReservationLocationUpdated, onReservationLocationCreated$1 as publicOnReservationLocationCreated, onReservationLocationUpdated$1 as publicOnReservationLocationUpdated, index_d$1_queryReservationLocations as queryReservationLocations, index_d$1_updateReservationLocation as updateReservationLocation };
|
|
4251
|
+
export { type index_d$1_ActionEvent as ActionEvent, type index_d$1_Address as Address, type index_d$1_AddressHint as AddressHint, type index_d$1_AddressLocation as AddressLocation, type index_d$1_App as App, type index_d$1_Asset as Asset, type index_d$1_AssignedFromFloatingReason as AssignedFromFloatingReason, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_BooleanFeature as BooleanFeature, type index_d$1_BusinessSchedule as BusinessSchedule, type index_d$1_CancelRequestedReason as CancelRequestedReason, type index_d$1_Categories as Categories, type index_d$1_ChangeContext as ChangeContext, type index_d$1_ChangeContextPayloadOneOf as ChangeContextPayloadOneOf, type index_d$1_CheckReservationLocationsCreatedRequest as CheckReservationLocationsCreatedRequest, type index_d$1_CheckReservationLocationsCreatedResponse as CheckReservationLocationsCreatedResponse, type index_d$1_CommonBusinessSchedule as CommonBusinessSchedule, index_d$1_CommonDayOfWeek as CommonDayOfWeek, type index_d$1_CommonSpecialHourPeriod as CommonSpecialHourPeriod, type index_d$1_CommonTimePeriod as CommonTimePeriod, type index_d$1_Configuration as Configuration, type index_d$1_ConsentPolicy as ConsentPolicy, type index_d$1_ContractSwitchedReason as ContractSwitchedReason, type index_d$1_CursorPaging as CursorPaging, type index_d$1_CursorPagingMetadata as CursorPagingMetadata, type index_d$1_Cursors as Cursors, type index_d$1_CustomFieldDefinition as CustomFieldDefinition, index_d$1_DayOfWeek as DayOfWeek, type index_d$1_DeleteContext as DeleteContext, type index_d$1_DeleteOrphanReservationLocationRequest as DeleteOrphanReservationLocationRequest, type index_d$1_DeleteOrphanReservationLocationResponse as DeleteOrphanReservationLocationResponse, index_d$1_DeleteStatus as DeleteStatus, type index_d$1_DomainEvent as DomainEvent, type index_d$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$1_EmailMarketingCheckbox as EmailMarketingCheckbox, type index_d$1_Empty as Empty, type index_d$1_EntityCreatedEvent as EntityCreatedEvent, type index_d$1_EntityDeletedEvent as EntityDeletedEvent, type index_d$1_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type index_d$1_ExtendedFields as ExtendedFields, type index_d$1_Feature as Feature, type index_d$1_FeatureCancelled as FeatureCancelled, type index_d$1_FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOf, type index_d$1_FeatureContext as FeatureContext, type index_d$1_FeatureDisabled as FeatureDisabled, type index_d$1_FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOf, type index_d$1_FeatureEnabled as FeatureEnabled, type index_d$1_FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOf, type index_d$1_FeatureEvent as FeatureEvent, type index_d$1_FeatureEventEventOneOf as FeatureEventEventOneOf, index_d$1_FeaturePeriod as FeaturePeriod, type index_d$1_FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOf, type index_d$1_FeatureUpdated as FeatureUpdated, type index_d$1_FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOf, type index_d$1_FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOf, index_d$1_FieldType as FieldType, type index_d$1_File as File, type index_d$1_GeoCoordinates as GeoCoordinates, type index_d$1_GetReservationLocationOptions as GetReservationLocationOptions, type index_d$1_GetReservationLocationRequest as GetReservationLocationRequest, type index_d$1_GetReservationLocationResponse as GetReservationLocationResponse, type index_d$1_GetReservationLocationResponseNonNullableFields as GetReservationLocationResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$1_InvalidateCache as InvalidateCache, type index_d$1_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d$1_ListReservationLocationsOptions as ListReservationLocationsOptions, type index_d$1_ListReservationLocationsRequest as ListReservationLocationsRequest, type index_d$1_ListReservationLocationsResponse as ListReservationLocationsResponse, type index_d$1_ListReservationLocationsResponseNonNullableFields as ListReservationLocationsResponseNonNullableFields, type index_d$1_Locale as Locale, type index_d$1_Location as Location, type index_d$1_LocationAddress as LocationAddress, type index_d$1_ManualApproval as ManualApproval, type index_d$1_ManualApprovalValueOneOf as ManualApprovalValueOneOf, type index_d$1_ManualFeatureCreationReason as ManualFeatureCreationReason, type index_d$1_MessageEnvelope as MessageEnvelope, type index_d$1_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$1_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, type index_d$1_MigrateOldRestaurantSettingsRequest as MigrateOldRestaurantSettingsRequest, type index_d$1_MigrateOldRestaurantSettingsResponse as MigrateOldRestaurantSettingsResponse, type index_d$1_MigratedFromLegacyReason as MigratedFromLegacyReason, type index_d$1_MigrationParsingError as MigrationParsingError, type index_d$1_MigrationResult as MigrationResult, index_d$1_Mode as Mode, type index_d$1_Multilingual as Multilingual, type index_d$1_MyReservationsField as MyReservationsField, index_d$1_Namespace as Namespace, type index_d$1_NamespaceChanged as NamespaceChanged, type index_d$1_NewFeatureReason as NewFeatureReason, type index_d$1_NoticePeriod as NoticePeriod, type index_d$1_OldCustomField as OldCustomField, type index_d$1_OldInstant as OldInstant, type index_d$1_OldPolicy as OldPolicy, type index_d$1_OldScheduleException as OldScheduleException, type index_d$1_OldScheduleInterval as OldScheduleInterval, type index_d$1_OldTerms as OldTerms, type index_d$1_OnlineReservations as OnlineReservations, type index_d$1_Page as Page, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_ParsedSettings as ParsedSettings, type index_d$1_PartiesSize as PartiesSize, type index_d$1_PartyPacing as PartyPacing, type index_d$1_PartySize as PartySize, index_d$1_PlacementType as PlacementType, type index_d$1_PrivacyPolicy as PrivacyPolicy, type index_d$1_PrivacyPolicyValueOneOf as PrivacyPolicyValueOneOf, type index_d$1_Properties as Properties, type index_d$1_PropertiesChange as PropertiesChange, type index_d$1_QueryReservationLocationsOptions as QueryReservationLocationsOptions, type index_d$1_QueryReservationLocationsRequest as QueryReservationLocationsRequest, type index_d$1_QueryReservationLocationsResponse as QueryReservationLocationsResponse, type index_d$1_QueryReservationLocationsResponseNonNullableFields as QueryReservationLocationsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_QuotaFeature as QuotaFeature, type index_d$1_QuotaInfo as QuotaInfo, type index_d$1_ReassignedFromSiteReason as ReassignedFromSiteReason, type index_d$1_ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReason, type index_d$1_ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReason, type index_d$1_ReservationForm as ReservationForm, type index_d$1_ReservationLocation as ReservationLocation, type index_d$1_ReservationLocationCreatedEnvelope as ReservationLocationCreatedEnvelope, type index_d$1_ReservationLocationNonNullableFields as ReservationLocationNonNullableFields, type index_d$1_ReservationLocationUpdatedEnvelope as ReservationLocationUpdatedEnvelope, type index_d$1_ReservationLocationsQueryBuilder as ReservationLocationsQueryBuilder, type index_d$1_ReservationLocationsQueryResult as ReservationLocationsQueryResult, type index_d$1_ReservationPayment as ReservationPayment, index_d$1_ResolutionMethod as ResolutionMethod, type index_d$1_RestoreInfo as RestoreInfo, type index_d$1_SeatPacing as SeatPacing, type index_d$1_ServiceProvisioned as ServiceProvisioned, type index_d$1_ServiceRemoved as ServiceRemoved, index_d$1_Set as Set, type index_d$1_SiteCloned as SiteCloned, type index_d$1_SiteCreated as SiteCreated, index_d$1_SiteCreatedContext as SiteCreatedContext, type index_d$1_SiteDeleted as SiteDeleted, type index_d$1_SiteHardDeleted as SiteHardDeleted, type index_d$1_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$1_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$1_SitePropertiesEvent as SitePropertiesEvent, type index_d$1_SitePropertiesNotification as SitePropertiesNotification, type index_d$1_SitePublished as SitePublished, type index_d$1_SiteRenamed as SiteRenamed, type index_d$1_SiteTransferred as SiteTransferred, type index_d$1_SiteUndeleted as SiteUndeleted, type index_d$1_SiteUnpublished as SiteUnpublished, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_SpecialHourPeriod as SpecialHourPeriod, index_d$1_State as State, type index_d$1_StreetAddress as StreetAddress, type index_d$1_StudioAssigned as StudioAssigned, type index_d$1_StudioUnassigned as StudioUnassigned, type index_d$1_SupportedLanguage as SupportedLanguage, type TableCombination$1 as TableCombination, type index_d$1_TableDefinition as TableDefinition, type index_d$1_TableManagement as TableManagement, type index_d$1_TablesDeleted as TablesDeleted, type index_d$1_TermsAndConditions as TermsAndConditions, type index_d$1_TermsAndConditionsValueOneOf as TermsAndConditionsValueOneOf, type index_d$1_TimePeriod as TimePeriod, type index_d$1_TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReason, type index_d$1_TransferredToAnotherAccountReason as TransferredToAnotherAccountReason, type index_d$1_Translation as Translation, type index_d$1_TurnoverRule as TurnoverRule, type index_d$1_TurnoverTimeRule as TurnoverTimeRule, type index_d$1_URI as URI, type index_d$1_UnAssingedToFloatingReason as UnAssingedToFloatingReason, index_d$1_Unit as Unit, type index_d$1_UpdateReservationLocation as UpdateReservationLocation, type index_d$1_UpdateReservationLocationRequest as UpdateReservationLocationRequest, type index_d$1_UpdateReservationLocationResponse as UpdateReservationLocationResponse, type index_d$1_UpdateReservationLocationResponseNonNullableFields as UpdateReservationLocationResponseNonNullableFields, type index_d$1_V4SiteCreated as V4SiteCreated, index_d$1_WebhookIdentityType as WebhookIdentityType, type index_d$1__publicGetReservationLocationType as _publicGetReservationLocationType, type index_d$1__publicListReservationLocationsType as _publicListReservationLocationsType, type index_d$1__publicOnReservationLocationCreatedType as _publicOnReservationLocationCreatedType, type index_d$1__publicOnReservationLocationUpdatedType as _publicOnReservationLocationUpdatedType, type index_d$1__publicQueryReservationLocationsType as _publicQueryReservationLocationsType, type index_d$1__publicUpdateReservationLocationType as _publicUpdateReservationLocationType, index_d$1_getReservationLocation as getReservationLocation, index_d$1_listReservationLocations as listReservationLocations, index_d$1_onReservationLocationCreated as onReservationLocationCreated, index_d$1_onReservationLocationUpdated as onReservationLocationUpdated, onReservationLocationCreated$1 as publicOnReservationLocationCreated, onReservationLocationUpdated$1 as publicOnReservationLocationUpdated, index_d$1_queryReservationLocations as queryReservationLocations, index_d$1_updateReservationLocation as updateReservationLocation };
|
|
4014
4252
|
}
|
|
4015
4253
|
|
|
4016
4254
|
interface TimeSlot {
|
|
@@ -4223,8 +4461,37 @@ interface CheckTimeSlotOptions {
|
|
|
4223
4461
|
excludeReservationId?: string | null;
|
|
4224
4462
|
}
|
|
4225
4463
|
|
|
4226
|
-
declare function getTimeSlots$1(httpClient: HttpClient):
|
|
4227
|
-
|
|
4464
|
+
declare function getTimeSlots$1(httpClient: HttpClient): GetTimeSlotsSignature;
|
|
4465
|
+
interface GetTimeSlotsSignature {
|
|
4466
|
+
/**
|
|
4467
|
+
* Returns a list of time slots at a given restaurant on a given `date`, and their availability for a given `partySize`.
|
|
4468
|
+
*
|
|
4469
|
+
* Without passing optional parameters, the list will contain a single time slot at the given `date`.
|
|
4470
|
+
* Use `slotsBefore` and `slotsAfter` to get additional time slots before and after the given `date`.
|
|
4471
|
+
*
|
|
4472
|
+
* If you do not provide a `duration`, the duration will be calculated automatically based on the reservation location's configuration.
|
|
4473
|
+
* 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.
|
|
4474
|
+
*
|
|
4475
|
+
* The `startDate`s of time slots in the response are 15 minutes apart regardless of the `duration` provided.
|
|
4476
|
+
* @param - ID of the reservation location for which to retrieve time slots.
|
|
4477
|
+
* @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.
|
|
4478
|
+
* @param - Size of the party that needs to be seated during this time slot.
|
|
4479
|
+
*
|
|
4480
|
+
* Min: `1`
|
|
4481
|
+
* @param - Options for retrieving the time slots.
|
|
4482
|
+
*/
|
|
4483
|
+
(reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions | undefined): Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
|
|
4484
|
+
}
|
|
4485
|
+
declare function checkTimeSlot$1(httpClient: HttpClient): CheckTimeSlotSignature;
|
|
4486
|
+
interface CheckTimeSlotSignature {
|
|
4487
|
+
/**
|
|
4488
|
+
* Checks a restaurant's availability to accommodate a reservation for a given party size in a given time slot.
|
|
4489
|
+
*
|
|
4490
|
+
* 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.
|
|
4491
|
+
* @param - ID of the reservation location for which to check the time slot.
|
|
4492
|
+
*/
|
|
4493
|
+
(reservationLocationId: string, options?: CheckTimeSlotOptions | undefined): Promise<CheckTimeSlotResponse & CheckTimeSlotResponseNonNullableFields>;
|
|
4494
|
+
}
|
|
4228
4495
|
|
|
4229
4496
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4230
4497
|
|