@wix/auto_sdk_table-reservations_reservations 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +13 -10
- package/build/cjs/index.js +11 -11
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +8 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +17 -14
- package/build/cjs/meta.js +8 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{table-reservations-v1-reservation-reservations.universal-BtPRFS9k.d.ts → table-reservations-v1-reservation-reservations.universal-CFbgZcWS.d.ts} +32 -17
- package/build/es/index.d.mts +13 -10
- package/build/es/index.mjs +10 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +7 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +17 -14
- package/build/es/meta.mjs +7 -7
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{table-reservations-v1-reservation-reservations.universal-BtPRFS9k.d.mts → table-reservations-v1-reservation-reservations.universal-CFbgZcWS.d.mts} +32 -17
- package/build/internal/cjs/index.d.ts +13 -10
- package/build/internal/cjs/index.js +11 -11
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +8 -8
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +17 -14
- package/build/internal/cjs/meta.js +8 -8
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/{table-reservations-v1-reservation-reservations.universal-BtPRFS9k.d.ts → table-reservations-v1-reservation-reservations.universal-CFbgZcWS.d.ts} +32 -17
- package/build/internal/es/index.d.mts +13 -10
- package/build/internal/es/index.mjs +10 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +7 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +17 -14
- package/build/internal/es/meta.mjs +7 -7
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/{table-reservations-v1-reservation-reservations.universal-BtPRFS9k.d.mts → table-reservations-v1-reservation-reservations.universal-CFbgZcWS.d.mts} +32 -17
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a1 as CreateReservationRequest$1, a2 as CreateReservationResponse$1, a6 as GetReservationRequest$1, a7 as GetReservationResponse$1, a8 as UpdateReservationRequest$1, a9 as UpdateReservationResponse$1, aa as CreateHeldReservationRequest$1, f as CreateHeldReservationResponse$1, ab as ReserveReservationRequest$1, i as ReserveReservationResponse$1, ac as CancelReservationRequest$1, l as CancelReservationResponse$1, ae as DeleteReservationRequest$1, af as DeleteReservationResponse$1, ag as ListReservationsRequest$1, n as ListReservationsResponse$1, al as QueryReservationsRequest$1, ao as QueryReservationsResponse$1, ap as SearchReservationsRequest$1, S as SearchReservationsResponse$1, a_ as BulkArchiveReservationsRequest$1, B as BulkArchiveReservationsResponse$1, b3 as
|
|
1
|
+
import { a1 as CreateReservationRequest$1, a2 as CreateReservationResponse$1, a6 as GetReservationRequest$1, a7 as GetReservationResponse$1, a8 as UpdateReservationRequest$1, a9 as UpdateReservationResponse$1, aa as CreateHeldReservationRequest$1, f as CreateHeldReservationResponse$1, ab as ReserveReservationRequest$1, i as ReserveReservationResponse$1, ac as CancelReservationRequest$1, l as CancelReservationResponse$1, ae as DeleteReservationRequest$1, af as DeleteReservationResponse$1, ag as ListReservationsRequest$1, n as ListReservationsResponse$1, al as QueryReservationsRequest$1, ao as QueryReservationsResponse$1, ap as SearchReservationsRequest$1, S as SearchReservationsResponse$1, a_ as BulkArchiveReservationsRequest$1, B as BulkArchiveReservationsResponse$1, b3 as BulkUnarchiveReservationsRequest$1, q as BulkUnarchiveReservationsResponse$1 } from './table-reservations-v1-reservation-reservations.universal-CFbgZcWS.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** The reservation domain object. */
|
|
@@ -80,6 +80,9 @@ interface Reservation {
|
|
|
80
80
|
extendedFields?: ExtendedFields;
|
|
81
81
|
/**
|
|
82
82
|
* Whether the reservation is archived.
|
|
83
|
+
*
|
|
84
|
+
* Archived reservations aren't shown in the dashboard along with other reservations. However, they can still be viewed in a separate section.
|
|
85
|
+
* Archived reservations can't be updated with Update Reservation.
|
|
83
86
|
* @readonly
|
|
84
87
|
*/
|
|
85
88
|
archived?: boolean | null;
|
|
@@ -1005,7 +1008,7 @@ interface AggregationResultsResultOneOf {
|
|
|
1005
1008
|
}
|
|
1006
1009
|
interface BulkArchiveReservationsRequest {
|
|
1007
1010
|
/**
|
|
1008
|
-
*
|
|
1011
|
+
* IDs of reservations to archive.
|
|
1009
1012
|
* @minSize 1
|
|
1010
1013
|
* @maxSize 100
|
|
1011
1014
|
* @format GUID
|
|
@@ -1014,16 +1017,16 @@ interface BulkArchiveReservationsRequest {
|
|
|
1014
1017
|
}
|
|
1015
1018
|
interface BulkArchiveReservationsResponse {
|
|
1016
1019
|
/**
|
|
1017
|
-
*
|
|
1020
|
+
* Result of bulk archive action
|
|
1018
1021
|
* @minSize 1
|
|
1019
1022
|
* @maxSize 100
|
|
1020
1023
|
*/
|
|
1021
1024
|
results?: BulkArchiveReservationsResult[];
|
|
1022
|
-
/**
|
|
1025
|
+
/** Metadata for the API call. */
|
|
1023
1026
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1024
1027
|
}
|
|
1025
1028
|
interface BulkArchiveReservationsResult {
|
|
1026
|
-
/**
|
|
1029
|
+
/** Metadata about archiving the reservation. */
|
|
1027
1030
|
itemMetadata?: ItemMetadata;
|
|
1028
1031
|
}
|
|
1029
1032
|
interface ItemMetadata {
|
|
@@ -1055,7 +1058,7 @@ interface BulkActionMetadata {
|
|
|
1055
1058
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1056
1059
|
undetailedFailures?: number;
|
|
1057
1060
|
}
|
|
1058
|
-
interface
|
|
1061
|
+
interface BulkUnarchiveReservationsRequest {
|
|
1059
1062
|
/**
|
|
1060
1063
|
* Reservation IDs to unarchive.
|
|
1061
1064
|
* @minSize 1
|
|
@@ -1064,18 +1067,18 @@ interface BulkUnArchiveReservationsRequest {
|
|
|
1064
1067
|
*/
|
|
1065
1068
|
reservationIds: string[];
|
|
1066
1069
|
}
|
|
1067
|
-
interface
|
|
1070
|
+
interface BulkUnarchiveReservationsResponse {
|
|
1068
1071
|
/**
|
|
1069
|
-
*
|
|
1072
|
+
* Result of bulk unarchive action
|
|
1070
1073
|
* @minSize 1
|
|
1071
1074
|
* @maxSize 100
|
|
1072
1075
|
*/
|
|
1073
|
-
results?:
|
|
1074
|
-
/**
|
|
1076
|
+
results?: BulkUnarchiveReservationsResult[];
|
|
1077
|
+
/** Metadata for the API call. */
|
|
1075
1078
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1076
1079
|
}
|
|
1077
|
-
interface
|
|
1078
|
-
/**
|
|
1080
|
+
interface BulkUnarchiveReservationsResult {
|
|
1081
|
+
/** Metadata about unarchiving the reservation. */
|
|
1079
1082
|
itemMetadata?: ItemMetadata;
|
|
1080
1083
|
}
|
|
1081
1084
|
|
|
@@ -1110,6 +1113,6 @@ declare function listReservations(): __PublicMethodMetaInfo<'GET', {}, ListReser
|
|
|
1110
1113
|
declare function queryReservations(): __PublicMethodMetaInfo<'POST', {}, QueryReservationsRequest$1, QueryReservationsRequest, QueryReservationsResponse$1, QueryReservationsResponse>;
|
|
1111
1114
|
declare function searchReservations(): __PublicMethodMetaInfo<'POST', {}, SearchReservationsRequest$1, SearchReservationsRequest, SearchReservationsResponse$1, SearchReservationsResponse>;
|
|
1112
1115
|
declare function bulkArchiveReservations(): __PublicMethodMetaInfo<'POST', {}, BulkArchiveReservationsRequest$1, BulkArchiveReservationsRequest, BulkArchiveReservationsResponse$1, BulkArchiveReservationsResponse>;
|
|
1113
|
-
declare function
|
|
1116
|
+
declare function bulkUnarchiveReservations(): __PublicMethodMetaInfo<'POST', {}, BulkUnarchiveReservationsRequest$1, BulkUnarchiveReservationsRequest, BulkUnarchiveReservationsResponse$1, BulkUnarchiveReservationsResponse>;
|
|
1114
1117
|
|
|
1115
|
-
export { type __PublicMethodMetaInfo, bulkArchiveReservations,
|
|
1118
|
+
export { type __PublicMethodMetaInfo, bulkArchiveReservations, bulkUnarchiveReservations, cancelReservation, createHeldReservation, createReservation, deleteReservation, getReservation, listReservations, queryReservations, reserveReservation, searchReservations, updateReservation };
|
package/build/cjs/meta.js
CHANGED
|
@@ -21,7 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
23
|
bulkArchiveReservations: () => bulkArchiveReservations2,
|
|
24
|
-
|
|
24
|
+
bulkUnarchiveReservations: () => bulkUnarchiveReservations2,
|
|
25
25
|
cancelReservation: () => cancelReservation2,
|
|
26
26
|
createHeldReservation: () => createHeldReservation2,
|
|
27
27
|
createReservation: () => createReservation2,
|
|
@@ -516,12 +516,12 @@ function bulkArchiveReservations(payload) {
|
|
|
516
516
|
}
|
|
517
517
|
return __bulkArchiveReservations;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
function
|
|
519
|
+
function bulkUnarchiveReservations(payload) {
|
|
520
|
+
function __bulkUnarchiveReservations({ host }) {
|
|
521
521
|
const metadata = {
|
|
522
522
|
entityFqdn: "wix.table_reservations.v1.reservation",
|
|
523
523
|
method: "POST",
|
|
524
|
-
methodFqn: "wix.table_reservations.reservation.v1.ReservationsService.
|
|
524
|
+
methodFqn: "wix.table_reservations.reservation.v1.ReservationsService.BulkUnarchiveReservations",
|
|
525
525
|
packageName: PACKAGE_NAME,
|
|
526
526
|
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
527
527
|
protoPath: "/v1/bulk/reservations/unarchive",
|
|
@@ -532,7 +532,7 @@ function bulkUnArchiveReservations(payload) {
|
|
|
532
532
|
};
|
|
533
533
|
return metadata;
|
|
534
534
|
}
|
|
535
|
-
return
|
|
535
|
+
return __bulkUnarchiveReservations;
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
// src/table-reservations-v1-reservation-reservations.meta.ts
|
|
@@ -736,9 +736,9 @@ function bulkArchiveReservations2() {
|
|
|
736
736
|
__originalResponseType: null
|
|
737
737
|
};
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function bulkUnarchiveReservations2() {
|
|
740
740
|
const payload = {};
|
|
741
|
-
const getRequestOptions =
|
|
741
|
+
const getRequestOptions = bulkUnarchiveReservations(
|
|
742
742
|
payload
|
|
743
743
|
);
|
|
744
744
|
const getUrl = (context) => {
|
|
@@ -759,7 +759,7 @@ function bulkUnArchiveReservations2() {
|
|
|
759
759
|
// Annotate the CommonJS export names for ESM import in node:
|
|
760
760
|
0 && (module.exports = {
|
|
761
761
|
bulkArchiveReservations,
|
|
762
|
-
|
|
762
|
+
bulkUnarchiveReservations,
|
|
763
763
|
cancelReservation,
|
|
764
764
|
createHeldReservation,
|
|
765
765
|
createReservation,
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/table-reservations-v1-reservation-reservations.http.ts","../../src/table-reservations-v1-reservation-reservations.meta.ts"],"sourcesContent":["export * from './src/table-reservations-v1-reservation-reservations.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixTableReservationsReservationV1ReservationsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/table-reservations/reservations',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_table-reservations_reservations';\n\n/**\n * Creates a new reservation.\n *\n * `createReservation()` accepts and requires different fields depending on the `status` provided and your permissions.\n *\n * **Status and source**\n *\n * If a `status` is not provided, it will be set to:\n * * `RESERVED` if manual approval is not required for confirmation\n * * `REQUESTED` if manual approval is required for confirmation.\n *\n * A reservation created with any `source` other than `WALK_IN` requires the `reservation.reservee.phone` and `reservation.reservee.firstName` fields.\n * Attempting to create a reservation without these fields will result in an error.\n *\n * **Permissions**\n *\n * 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.\n *\n * 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.\n *\n *\n * > **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()`.\n */\nexport function createReservation(payload: object): RequestOptionsFactory<any> {\n function __createReservation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.CreateReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createReservation;\n}\n\n/**\n * Retrieves a reservation.\n *\n * Calling this method with `fieldsets` set to `FULL` requires additional permissions. See this API's Introduction article for more information.\n */\nexport function getReservation(payload: object): RequestOptionsFactory<any> {\n function __getReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'GET' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.GetReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/{reservationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getReservation;\n}\n\n/**\n * Updates a reservation.\n *\n * 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.\n *\n * 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.\n */\nexport function updateReservation(payload: object): RequestOptionsFactory<any> {\n function __updateReservation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.UpdateReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/{reservation.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateReservation;\n}\n\n/**\n * Creates a new temporary reservation and holds it for the customer for 10 minutes.\n *\n * 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.\n *\n * You cannot call `updateReservation()` to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use `reserveReservation()`.\n *\n * If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using `createReservation()`.\n *\n */\nexport function createHeldReservation(\n payload: object\n): RequestOptionsFactory<any> {\n function __createHeldReservation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'reservationDetails.startDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.CreateHeldReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/hold',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createHeldReservation;\n}\n\n/**\n * Reserves or requests a held reservation.\n *\n * Held reservations are temporary reservations with the `HELD` status created by `createHeldReservation()`.\n *\n * 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.\n *\n * `Reserve Reservation` changes a reservation's `HELD` status to:\n * * `RESERVED` if the reservation's reservation location does not require manual approval.\n * * `REQUESTED` if the reservation's reservation location requires manual approval.\n */\nexport function reserveReservation(\n payload: object\n): RequestOptionsFactory<any> {\n function __reserveReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.ReserveReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/{reservationId}/reserve',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __reserveReservation;\n}\n\n/**\n * Cancels a reservation.\n *\n * Sets the reservation status to `CANCELED`.\n */\nexport function cancelReservation(payload: object): RequestOptionsFactory<any> {\n function __cancelReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.CancelReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/{reservationId}/cancel',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __cancelReservation;\n}\n\n/** Deletes a reservation. Only reservations with the `HELD` status can be deleted. */\nexport function deleteReservation(payload: object): RequestOptionsFactory<any> {\n function __deleteReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.DeleteReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/{reservationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteReservation;\n}\n\n/** Retrieves a list of up to 100 reservations. */\nexport function listReservations(payload: object): RequestOptionsFactory<any> {\n function __listReservations({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'startDateFrom' }, { path: 'startDateTo' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'GET' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.ListReservations',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservations.createdDate' },\n { path: 'reservations.updatedDate' },\n { path: 'reservations.details.startDate' },\n { path: 'reservations.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listReservations;\n}\n\n/**\n * Creates a query to retrieve a list of reservations.\n *\n * The `queryReservations()` function builds a query to retrieve a list of reservations and returns a `ReservationsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [find()](/reservations/reservations-query-builder/find) function.\n *\n * 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.\n *\n * `queryReservations()` runs with the following `ReservationsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(50)`](/reservations/reservations-query-builder/limit)\n * * [`descending('_createdDate')`](/reservations/reservations-query-builder/descending)\n *\n * 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-result/items) property in [`ReservationsQueryResult`](/reservations/reservations-query-result).\n */\nexport function queryReservations(payload: object): RequestOptionsFactory<any> {\n function __queryReservations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.QueryReservations',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservations.createdDate' },\n { path: 'reservations.updatedDate' },\n { path: 'reservations.details.startDate' },\n { path: 'reservations.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryReservations;\n}\n\n/**\n * Use this method to search the fields of the table reservations on a site for a given expression.\n *\n * You can also use this method to perform data aggregations on a site's table reservation fields.\n * 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.\n */\nexport function searchReservations(\n payload: object\n): RequestOptionsFactory<any> {\n function __searchReservations({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'search.aggregations.range.buckets.from' },\n { path: 'search.aggregations.range.buckets.to' },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',\n },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.SearchReservations',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/search',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservations.createdDate' },\n { path: 'reservations.updatedDate' },\n { path: 'reservations.details.startDate' },\n { path: 'reservations.details.endDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'aggregationData.results.ranges.results.from' },\n { path: 'aggregationData.results.ranges.results.to' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',\n },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.from',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.to',\n },\n { path: 'aggregationData.results.scalar.value' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.scalar.value',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchReservations;\n}\n\n/** Bulk archive reservations. */\nexport function bulkArchiveReservations(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkArchiveReservations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.BulkArchiveReservations',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/bulk/reservations/archive',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkArchiveReservations;\n}\n\n/** Bulk unarchive reservations. */\nexport function bulkUnArchiveReservations(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUnArchiveReservations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.BulkUnArchiveReservations',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/bulk/reservations/unarchive',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUnArchiveReservations;\n}\n","import * as ambassadorWixTableReservationsV1Reservation from './table-reservations-v1-reservation-reservations.http.js';\nimport * as ambassadorWixTableReservationsV1ReservationTypes from './table-reservations-v1-reservation-reservations.types.js';\nimport * as ambassadorWixTableReservationsV1ReservationUniversalTypes from './table-reservations-v1-reservation-reservations.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createReservation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.CreateReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.CreateReservationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.createReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getReservation(): __PublicMethodMetaInfo<\n 'GET',\n { reservationId: string },\n ambassadorWixTableReservationsV1ReservationUniversalTypes.GetReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.GetReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.GetReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.GetReservationResponse\n> {\n const payload = { reservationId: ':reservationId' } as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.getReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/reservations/{reservationId}',\n pathParams: { reservationId: 'reservationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateReservation(): __PublicMethodMetaInfo<\n 'PATCH',\n { reservationId: string },\n ambassadorWixTableReservationsV1ReservationUniversalTypes.UpdateReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.UpdateReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.UpdateReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.UpdateReservationResponse\n> {\n const payload = { reservation: { id: ':reservationId' } } as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.updateReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/reservations/{reservation.id}',\n pathParams: { reservationId: 'reservationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createHeldReservation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateHeldReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.CreateHeldReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateHeldReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.CreateHeldReservationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.createHeldReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations/hold',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function reserveReservation(): __PublicMethodMetaInfo<\n 'POST',\n { reservationId: string },\n ambassadorWixTableReservationsV1ReservationUniversalTypes.ReserveReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.ReserveReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.ReserveReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.ReserveReservationResponse\n> {\n const payload = { reservationId: ':reservationId' } as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.reserveReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations/{reservationId}/reserve',\n pathParams: { reservationId: 'reservationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function cancelReservation(): __PublicMethodMetaInfo<\n 'POST',\n { reservationId: string },\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CancelReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.CancelReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CancelReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.CancelReservationResponse\n> {\n const payload = { reservationId: ':reservationId' } as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.cancelReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations/{reservationId}/cancel',\n pathParams: { reservationId: 'reservationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteReservation(): __PublicMethodMetaInfo<\n 'DELETE',\n { reservationId: string },\n ambassadorWixTableReservationsV1ReservationUniversalTypes.DeleteReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.DeleteReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.DeleteReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.DeleteReservationResponse\n> {\n const payload = { reservationId: ':reservationId' } as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.deleteReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/reservations/{reservationId}',\n pathParams: { reservationId: 'reservationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listReservations(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.ListReservationsRequest,\n ambassadorWixTableReservationsV1ReservationTypes.ListReservationsRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.ListReservationsResponse,\n ambassadorWixTableReservationsV1ReservationTypes.ListReservationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.listReservations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/reservations',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryReservations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.QueryReservationsRequest,\n ambassadorWixTableReservationsV1ReservationTypes.QueryReservationsRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.QueryReservationsResponse,\n ambassadorWixTableReservationsV1ReservationTypes.QueryReservationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.queryReservations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function searchReservations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.SearchReservationsRequest,\n ambassadorWixTableReservationsV1ReservationTypes.SearchReservationsRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.SearchReservationsResponse,\n ambassadorWixTableReservationsV1ReservationTypes.SearchReservationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.searchReservations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations/search',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkArchiveReservations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.BulkArchiveReservationsRequest,\n ambassadorWixTableReservationsV1ReservationTypes.BulkArchiveReservationsRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.BulkArchiveReservationsResponse,\n ambassadorWixTableReservationsV1ReservationTypes.BulkArchiveReservationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.bulkArchiveReservations(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/reservations/archive',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUnArchiveReservations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.BulkUnArchiveReservationsRequest,\n ambassadorWixTableReservationsV1ReservationTypes.BulkUnArchiveReservationsRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.BulkUnArchiveReservationsResponse,\n ambassadorWixTableReservationsV1ReservationTypes.BulkUnArchiveReservationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.bulkUnArchiveReservations(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/reservations/unarchive',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6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AC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkArchiveReservations","bulkUnArchiveReservations","cancelReservation","createHeldReservation","createReservation","deleteReservation","getReservation","listReservations","queryReservations","reserveReservation","searchReservations","updateReservation","import_float","import_timestamp","import_rest_modules","payload","createReservation","getReservation","updateReservation","createHeldReservation","reserveReservation","cancelReservation","deleteReservation","listReservations","queryReservations","searchReservations","bulkArchiveReservations","bulkUnArchiveReservations"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/table-reservations-v1-reservation-reservations.http.ts","../../src/table-reservations-v1-reservation-reservations.meta.ts"],"sourcesContent":["export * from './src/table-reservations-v1-reservation-reservations.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixTableReservationsReservationV1ReservationsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/table-reservations/reservations',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/table-reservations/reservations',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_table-reservations_reservations';\n\n/**\n * Creates a new reservation.\n *\n * `createReservation()` accepts and requires different fields depending on the `status` provided and your permissions.\n *\n * **Status and source**\n *\n * If a `status` is not provided, it will be set to:\n * * `RESERVED` if manual approval is not required for confirmation\n * * `REQUESTED` if manual approval is required for confirmation.\n *\n * A reservation created with any `source` other than `WALK_IN` requires the `reservation.reservee.phone` and `reservation.reservee.firstName` fields.\n * Attempting to create a reservation without these fields will result in an error.\n *\n * **Permissions**\n *\n * 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.\n *\n * 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.\n *\n *\n * > **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()`.\n */\nexport function createReservation(payload: object): RequestOptionsFactory<any> {\n function __createReservation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.CreateReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createReservation;\n}\n\n/**\n * Retrieves a reservation.\n *\n * Calling this method with `fieldsets` set to `FULL` requires additional permissions. See this API's Introduction article for more information.\n */\nexport function getReservation(payload: object): RequestOptionsFactory<any> {\n function __getReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'GET' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.GetReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/{reservationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getReservation;\n}\n\n/**\n * Updates a reservation.\n *\n * 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.\n *\n * 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.\n */\nexport function updateReservation(payload: object): RequestOptionsFactory<any> {\n function __updateReservation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.UpdateReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/{reservation.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateReservation;\n}\n\n/**\n * Creates a new temporary reservation and holds it for the customer for 10 minutes.\n *\n * 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.\n *\n * You cannot call `updateReservation()` to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use `reserveReservation()`.\n *\n * If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using `createReservation()`.\n *\n */\nexport function createHeldReservation(\n payload: object\n): RequestOptionsFactory<any> {\n function __createHeldReservation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'reservationDetails.startDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.CreateHeldReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/hold',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createHeldReservation;\n}\n\n/**\n * Reserves or requests a held reservation.\n *\n * Held reservations are temporary reservations with the `HELD` status created by `createHeldReservation()`.\n *\n * 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.\n *\n * `Reserve Reservation` changes a reservation's `HELD` status to:\n * * `RESERVED` if the reservation's reservation location does not require manual approval.\n * * `REQUESTED` if the reservation's reservation location requires manual approval.\n */\nexport function reserveReservation(\n payload: object\n): RequestOptionsFactory<any> {\n function __reserveReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.ReserveReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/{reservationId}/reserve',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __reserveReservation;\n}\n\n/**\n * Cancels a reservation.\n *\n * Sets the reservation status to `CANCELED`.\n */\nexport function cancelReservation(payload: object): RequestOptionsFactory<any> {\n function __cancelReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.CancelReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/{reservationId}/cancel',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservation.createdDate' },\n { path: 'reservation.updatedDate' },\n { path: 'reservation.details.startDate' },\n { path: 'reservation.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __cancelReservation;\n}\n\n/** Deletes a reservation. Only reservations with the `HELD` status can be deleted. */\nexport function deleteReservation(payload: object): RequestOptionsFactory<any> {\n function __deleteReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.DeleteReservation',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/{reservationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteReservation;\n}\n\n/** Retrieves a list of up to 100 reservations. */\nexport function listReservations(payload: object): RequestOptionsFactory<any> {\n function __listReservations({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'startDateFrom' }, { path: 'startDateTo' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'GET' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.ListReservations',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservations.createdDate' },\n { path: 'reservations.updatedDate' },\n { path: 'reservations.details.startDate' },\n { path: 'reservations.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listReservations;\n}\n\n/**\n * Creates a query to retrieve a list of reservations.\n *\n * The `queryReservations()` function builds a query to retrieve a list of reservations and returns a `ReservationsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [find()](/reservations/reservations-query-builder/find) function.\n *\n * 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.\n *\n * `queryReservations()` runs with the following `ReservationsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(50)`](/reservations/reservations-query-builder/limit)\n * * [`descending('_createdDate')`](/reservations/reservations-query-builder/descending)\n *\n * 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-result/items) property in [`ReservationsQueryResult`](/reservations/reservations-query-result).\n */\nexport function queryReservations(payload: object): RequestOptionsFactory<any> {\n function __queryReservations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.QueryReservations',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservations.createdDate' },\n { path: 'reservations.updatedDate' },\n { path: 'reservations.details.startDate' },\n { path: 'reservations.details.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryReservations;\n}\n\n/**\n * Use this method to search the fields of the table reservations on a site for a given expression.\n *\n * You can also use this method to perform data aggregations on a site's table reservation fields.\n * 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.\n */\nexport function searchReservations(\n payload: object\n): RequestOptionsFactory<any> {\n function __searchReservations({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'search.aggregations.range.buckets.from' },\n { path: 'search.aggregations.range.buckets.to' },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',\n },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.SearchReservations',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/reservations/search',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reservations.createdDate' },\n { path: 'reservations.updatedDate' },\n { path: 'reservations.details.startDate' },\n { path: 'reservations.details.endDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'aggregationData.results.ranges.results.from' },\n { path: 'aggregationData.results.ranges.results.to' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',\n },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.from',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.to',\n },\n { path: 'aggregationData.results.scalar.value' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.scalar.value',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchReservations;\n}\n\n/**\n * Archives multiple reservations at once.\n *\n * Archived reservations aren't shown in the dashboard along with other reservations. However, they can still be viewed in a separate section.\n * Archived reservations can't be updated with Update Reservation.\n */\nexport function bulkArchiveReservations(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkArchiveReservations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.BulkArchiveReservations',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/bulk/reservations/archive',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkArchiveReservations;\n}\n\n/** Unarchives multiple reservations at once. */\nexport function bulkUnarchiveReservations(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUnarchiveReservations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.table_reservations.v1.reservation',\n method: 'POST' as any,\n methodFqn:\n 'wix.table_reservations.reservation.v1.ReservationsService.BulkUnarchiveReservations',\n packageName: PACKAGE_NAME,\n url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({\n protoPath: '/v1/bulk/reservations/unarchive',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUnarchiveReservations;\n}\n","import * as ambassadorWixTableReservationsV1Reservation from './table-reservations-v1-reservation-reservations.http.js';\nimport * as ambassadorWixTableReservationsV1ReservationTypes from './table-reservations-v1-reservation-reservations.types.js';\nimport * as ambassadorWixTableReservationsV1ReservationUniversalTypes from './table-reservations-v1-reservation-reservations.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createReservation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.CreateReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.CreateReservationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.createReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getReservation(): __PublicMethodMetaInfo<\n 'GET',\n { reservationId: string },\n ambassadorWixTableReservationsV1ReservationUniversalTypes.GetReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.GetReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.GetReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.GetReservationResponse\n> {\n const payload = { reservationId: ':reservationId' } as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.getReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/reservations/{reservationId}',\n pathParams: { reservationId: 'reservationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateReservation(): __PublicMethodMetaInfo<\n 'PATCH',\n { reservationId: string },\n ambassadorWixTableReservationsV1ReservationUniversalTypes.UpdateReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.UpdateReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.UpdateReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.UpdateReservationResponse\n> {\n const payload = { reservation: { id: ':reservationId' } } as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.updateReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/reservations/{reservation.id}',\n pathParams: { reservationId: 'reservationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createHeldReservation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateHeldReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.CreateHeldReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateHeldReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.CreateHeldReservationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.createHeldReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations/hold',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function reserveReservation(): __PublicMethodMetaInfo<\n 'POST',\n { reservationId: string },\n ambassadorWixTableReservationsV1ReservationUniversalTypes.ReserveReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.ReserveReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.ReserveReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.ReserveReservationResponse\n> {\n const payload = { reservationId: ':reservationId' } as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.reserveReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations/{reservationId}/reserve',\n pathParams: { reservationId: 'reservationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function cancelReservation(): __PublicMethodMetaInfo<\n 'POST',\n { reservationId: string },\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CancelReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.CancelReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.CancelReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.CancelReservationResponse\n> {\n const payload = { reservationId: ':reservationId' } as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.cancelReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations/{reservationId}/cancel',\n pathParams: { reservationId: 'reservationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteReservation(): __PublicMethodMetaInfo<\n 'DELETE',\n { reservationId: string },\n ambassadorWixTableReservationsV1ReservationUniversalTypes.DeleteReservationRequest,\n ambassadorWixTableReservationsV1ReservationTypes.DeleteReservationRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.DeleteReservationResponse,\n ambassadorWixTableReservationsV1ReservationTypes.DeleteReservationResponse\n> {\n const payload = { reservationId: ':reservationId' } as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.deleteReservation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/reservations/{reservationId}',\n pathParams: { reservationId: 'reservationId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listReservations(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.ListReservationsRequest,\n ambassadorWixTableReservationsV1ReservationTypes.ListReservationsRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.ListReservationsResponse,\n ambassadorWixTableReservationsV1ReservationTypes.ListReservationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.listReservations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/reservations',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryReservations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.QueryReservationsRequest,\n ambassadorWixTableReservationsV1ReservationTypes.QueryReservationsRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.QueryReservationsResponse,\n ambassadorWixTableReservationsV1ReservationTypes.QueryReservationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.queryReservations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function searchReservations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.SearchReservationsRequest,\n ambassadorWixTableReservationsV1ReservationTypes.SearchReservationsRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.SearchReservationsResponse,\n ambassadorWixTableReservationsV1ReservationTypes.SearchReservationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.searchReservations(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/reservations/search',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkArchiveReservations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.BulkArchiveReservationsRequest,\n ambassadorWixTableReservationsV1ReservationTypes.BulkArchiveReservationsRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.BulkArchiveReservationsResponse,\n ambassadorWixTableReservationsV1ReservationTypes.BulkArchiveReservationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.bulkArchiveReservations(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/reservations/archive',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUnarchiveReservations(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTableReservationsV1ReservationUniversalTypes.BulkUnarchiveReservationsRequest,\n ambassadorWixTableReservationsV1ReservationTypes.BulkUnarchiveReservationsRequest,\n ambassadorWixTableReservationsV1ReservationUniversalTypes.BulkUnarchiveReservationsResponse,\n ambassadorWixTableReservationsV1ReservationTypes.BulkUnarchiveReservationsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTableReservationsV1Reservation.bulkUnarchiveReservations(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/reservations/unarchive',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,+DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AA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;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,2BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwC;AAAA,IAC1C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,6BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwC;AAAA,IAC1C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkArchiveReservations","bulkUnarchiveReservations","cancelReservation","createHeldReservation","createReservation","deleteReservation","getReservation","listReservations","queryReservations","reserveReservation","searchReservations","updateReservation","import_float","import_timestamp","import_rest_modules","payload","createReservation","getReservation","updateReservation","createHeldReservation","reserveReservation","cancelReservation","deleteReservation","listReservations","queryReservations","searchReservations","bulkArchiveReservations","bulkUnarchiveReservations"]}
|
|
@@ -91,6 +91,9 @@ interface Reservation {
|
|
|
91
91
|
extendedFields?: ExtendedFields;
|
|
92
92
|
/**
|
|
93
93
|
* Whether the reservation is archived.
|
|
94
|
+
*
|
|
95
|
+
* Archived reservations aren't shown in the dashboard along with other reservations. However, they can still be viewed in a separate section.
|
|
96
|
+
* Archived reservations can't be updated with Update Reservation.
|
|
94
97
|
* @readonly
|
|
95
98
|
*/
|
|
96
99
|
archived?: boolean | null;
|
|
@@ -1091,7 +1094,7 @@ interface AggregationResultsResultOneOf {
|
|
|
1091
1094
|
}
|
|
1092
1095
|
interface BulkArchiveReservationsRequest {
|
|
1093
1096
|
/**
|
|
1094
|
-
*
|
|
1097
|
+
* IDs of reservations to archive.
|
|
1095
1098
|
* @minSize 1
|
|
1096
1099
|
* @maxSize 100
|
|
1097
1100
|
* @format GUID
|
|
@@ -1100,16 +1103,16 @@ interface BulkArchiveReservationsRequest {
|
|
|
1100
1103
|
}
|
|
1101
1104
|
interface BulkArchiveReservationsResponse {
|
|
1102
1105
|
/**
|
|
1103
|
-
*
|
|
1106
|
+
* Result of bulk archive action
|
|
1104
1107
|
* @minSize 1
|
|
1105
1108
|
* @maxSize 100
|
|
1106
1109
|
*/
|
|
1107
1110
|
results?: BulkArchiveReservationsResult[];
|
|
1108
|
-
/**
|
|
1111
|
+
/** Metadata for the API call. */
|
|
1109
1112
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1110
1113
|
}
|
|
1111
1114
|
interface BulkArchiveReservationsResult {
|
|
1112
|
-
/**
|
|
1115
|
+
/** Metadata about archiving the reservation. */
|
|
1113
1116
|
itemMetadata?: ItemMetadata;
|
|
1114
1117
|
}
|
|
1115
1118
|
interface ItemMetadata {
|
|
@@ -1141,7 +1144,7 @@ interface BulkActionMetadata {
|
|
|
1141
1144
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1142
1145
|
undetailedFailures?: number;
|
|
1143
1146
|
}
|
|
1144
|
-
interface
|
|
1147
|
+
interface BulkUnarchiveReservationsRequest {
|
|
1145
1148
|
/**
|
|
1146
1149
|
* Reservation IDs to unarchive.
|
|
1147
1150
|
* @minSize 1
|
|
@@ -1150,18 +1153,18 @@ interface BulkUnArchiveReservationsRequest {
|
|
|
1150
1153
|
*/
|
|
1151
1154
|
reservationIds: string[];
|
|
1152
1155
|
}
|
|
1153
|
-
interface
|
|
1156
|
+
interface BulkUnarchiveReservationsResponse {
|
|
1154
1157
|
/**
|
|
1155
|
-
*
|
|
1158
|
+
* Result of bulk unarchive action
|
|
1156
1159
|
* @minSize 1
|
|
1157
1160
|
* @maxSize 100
|
|
1158
1161
|
*/
|
|
1159
|
-
results?:
|
|
1160
|
-
/**
|
|
1162
|
+
results?: BulkUnarchiveReservationsResult[];
|
|
1163
|
+
/** Metadata for the API call. */
|
|
1161
1164
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1162
1165
|
}
|
|
1163
|
-
interface
|
|
1164
|
-
/**
|
|
1166
|
+
interface BulkUnarchiveReservationsResult {
|
|
1167
|
+
/** Metadata about unarchiving the reservation. */
|
|
1165
1168
|
itemMetadata?: ItemMetadata;
|
|
1166
1169
|
}
|
|
1167
1170
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1683,6 +1686,9 @@ interface UpdateReservation {
|
|
|
1683
1686
|
extendedFields?: ExtendedFields;
|
|
1684
1687
|
/**
|
|
1685
1688
|
* Whether the reservation is archived.
|
|
1689
|
+
*
|
|
1690
|
+
* Archived reservations aren't shown in the dashboard along with other reservations. However, they can still be viewed in a separate section.
|
|
1691
|
+
* Archived reservations can't be updated with Update Reservation.
|
|
1686
1692
|
* @readonly
|
|
1687
1693
|
*/
|
|
1688
1694
|
archived?: boolean | null;
|
|
@@ -1912,6 +1918,12 @@ interface ReservationsQueryBuilder {
|
|
|
1912
1918
|
find: () => Promise<ReservationsQueryResult>;
|
|
1913
1919
|
}
|
|
1914
1920
|
interface ReservationSearchSpec extends SearchSpec {
|
|
1921
|
+
searchable: [
|
|
1922
|
+
'reservee.email',
|
|
1923
|
+
'reservee.firstName',
|
|
1924
|
+
'reservee.lastName',
|
|
1925
|
+
'reservee.phone'
|
|
1926
|
+
];
|
|
1915
1927
|
aggregatable: [
|
|
1916
1928
|
'_createdDate',
|
|
1917
1929
|
'_updatedDate',
|
|
@@ -2071,8 +2083,11 @@ type ReservationSearch = {
|
|
|
2071
2083
|
timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
|
|
2072
2084
|
};
|
|
2073
2085
|
/**
|
|
2074
|
-
*
|
|
2075
|
-
*
|
|
2086
|
+
* Archives multiple reservations at once.
|
|
2087
|
+
*
|
|
2088
|
+
* Archived reservations aren't shown in the dashboard along with other reservations. However, they can still be viewed in a separate section.
|
|
2089
|
+
* Archived reservations can't be updated with Update Reservation.
|
|
2090
|
+
* @param reservationIds - IDs of reservations to archive.
|
|
2076
2091
|
* @public
|
|
2077
2092
|
* @documentationMaturity preview
|
|
2078
2093
|
* @requiredField reservationIds
|
|
@@ -2082,15 +2097,15 @@ type ReservationSearch = {
|
|
|
2082
2097
|
*/
|
|
2083
2098
|
declare function bulkArchiveReservations(reservationIds: string[]): Promise<NonNullablePaths<BulkArchiveReservationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
2084
2099
|
/**
|
|
2085
|
-
*
|
|
2100
|
+
* Unarchives multiple reservations at once.
|
|
2086
2101
|
* @param reservationIds - Reservation IDs to unarchive.
|
|
2087
2102
|
* @public
|
|
2088
2103
|
* @documentationMaturity preview
|
|
2089
2104
|
* @requiredField reservationIds
|
|
2090
2105
|
* @permissionId TABLE_RESERVATIONS.RESERVATION_UNARCHIVE
|
|
2091
2106
|
* @applicableIdentity APP
|
|
2092
|
-
* @fqn wix.table_reservations.reservation.v1.ReservationsService.
|
|
2107
|
+
* @fqn wix.table_reservations.reservation.v1.ReservationsService.BulkUnarchiveReservations
|
|
2093
2108
|
*/
|
|
2094
|
-
declare function
|
|
2109
|
+
declare function bulkUnarchiveReservations(reservationIds: string[]): Promise<NonNullablePaths<BulkUnarchiveReservationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
2095
2110
|
|
|
2096
|
-
export { type ReservationUpdated as $, SortDirection as A, type BulkArchiveReservationsResponse as B, type CreateReservationOptions as C, ScalarType as D, AggregationType as E, Mode as F, type GetReservationOptions as G, type HeldReservationDetails as H, Interval as I, type Tables as J, type Details as K, type ListReservationsOptions as L, MissingValues as M, NestedAggregationType as N, type ReservedBy as O, PaymentStatus as P, type MigrationNote as Q, type Reservation as R, type SearchReservationsResponse as S, TableCombinationConflictType as T, type UpdateReservation as U, type TableWithReservationConflicts as V, WebhookIdentityType as W, type ExtendedFields as X, type ReservationDelayedDomainEvent as Y, type ReservationDelayedDomainEventBodyTypeOneOf as Z, type ReservationCreated as _, type CreateReservationApplicationErrors as a, type BulkArchiveReservationsResult as a$, type ReservationDelayedDomainEventReservationCanceled as a0, type CreateReservationRequest as a1, type CreateReservationResponse as a2, type ReservationDetailsConflicts as a3, type TableCombinationConflict as a4, type ReservationLocationConflict as a5, type GetReservationRequest as a6, type GetReservationResponse as a7, type UpdateReservationRequest as a8, type UpdateReservationResponse as a9, type DateHistogramAggregation as aA, type NestedAggregationItem as aB, type NestedAggregationItemKindOneOf as aC, type NestedAggregation as aD, type SearchDetails as aE, type AggregationData as aF, type ValueAggregationResult as aG, type RangeAggregationResult as aH, type NestedAggregationResults as aI, type NestedAggregationResultsResultOneOf as aJ, type ValueResults as aK, type RangeResults as aL, type AggregationResultsScalarResult as aM, type NestedValueAggregationResult as aN, type ValueResult as aO, type RangeResult as aP, type ScalarResult as aQ, type NestedResultValue as aR, type NestedResultValueResultOneOf as aS, type Results as aT, type DateHistogramResult as aU, type GroupByValueResults as aV, type DateHistogramResults as aW, type NestedResults as aX, type AggregationResults as aY, type AggregationResultsResultOneOf as aZ, type BulkArchiveReservationsRequest as a_, type CreateHeldReservationRequest as aa, type ReserveReservationRequest as ab, type CancelReservationRequest as ac, type ReservationCanceled as ad, type DeleteReservationRequest as ae, type DeleteReservationResponse as af, type ListReservationsRequest as ag, type CursorPaging as ah, type Sorting as ai, type CursorPagingMetadata as aj, type Cursors as ak, type QueryReservationsRequest as al, type CursorQuery as am, type CursorQueryPagingMethodOneOf as an, type QueryReservationsResponse as ao, type SearchReservationsRequest as ap, type CursorSearch as aq, type CursorSearchPagingMethodOneOf as ar, type Aggregation as as, type AggregationKindOneOf as at, type RangeBucket as au, type IncludeMissingValuesOptions as av, type ValueAggregation as aw, type ValueAggregationOptionsOneOf as ax, type RangeAggregation as ay, type ScalarAggregation as az, type CreateReservationValidationErrors as b, type ItemMetadata as b0, type ApplicationError as b1, type BulkActionMetadata as b2, type
|
|
2111
|
+
export { type ReservationUpdated as $, SortDirection as A, type BulkArchiveReservationsResponse as B, type CreateReservationOptions as C, ScalarType as D, AggregationType as E, Mode as F, type GetReservationOptions as G, type HeldReservationDetails as H, Interval as I, type Tables as J, type Details as K, type ListReservationsOptions as L, MissingValues as M, NestedAggregationType as N, type ReservedBy as O, PaymentStatus as P, type MigrationNote as Q, type Reservation as R, type SearchReservationsResponse as S, TableCombinationConflictType as T, type UpdateReservation as U, type TableWithReservationConflicts as V, WebhookIdentityType as W, type ExtendedFields as X, type ReservationDelayedDomainEvent as Y, type ReservationDelayedDomainEventBodyTypeOneOf as Z, type ReservationCreated as _, type CreateReservationApplicationErrors as a, type BulkArchiveReservationsResult as a$, type ReservationDelayedDomainEventReservationCanceled as a0, type CreateReservationRequest as a1, type CreateReservationResponse as a2, type ReservationDetailsConflicts as a3, type TableCombinationConflict as a4, type ReservationLocationConflict as a5, type GetReservationRequest as a6, type GetReservationResponse as a7, type UpdateReservationRequest as a8, type UpdateReservationResponse as a9, type DateHistogramAggregation as aA, type NestedAggregationItem as aB, type NestedAggregationItemKindOneOf as aC, type NestedAggregation as aD, type SearchDetails as aE, type AggregationData as aF, type ValueAggregationResult as aG, type RangeAggregationResult as aH, type NestedAggregationResults as aI, type NestedAggregationResultsResultOneOf as aJ, type ValueResults as aK, type RangeResults as aL, type AggregationResultsScalarResult as aM, type NestedValueAggregationResult as aN, type ValueResult as aO, type RangeResult as aP, type ScalarResult as aQ, type NestedResultValue as aR, type NestedResultValueResultOneOf as aS, type Results as aT, type DateHistogramResult as aU, type GroupByValueResults as aV, type DateHistogramResults as aW, type NestedResults as aX, type AggregationResults as aY, type AggregationResultsResultOneOf as aZ, type BulkArchiveReservationsRequest as a_, type CreateHeldReservationRequest as aa, type ReserveReservationRequest as ab, type CancelReservationRequest as ac, type ReservationCanceled as ad, type DeleteReservationRequest as ae, type DeleteReservationResponse as af, type ListReservationsRequest as ag, type CursorPaging as ah, type Sorting as ai, type CursorPagingMetadata as aj, type Cursors as ak, type QueryReservationsRequest as al, type CursorQuery as am, type CursorQueryPagingMethodOneOf as an, type QueryReservationsResponse as ao, type SearchReservationsRequest as ap, type CursorSearch as aq, type CursorSearchPagingMethodOneOf as ar, type Aggregation as as, type AggregationKindOneOf as at, type RangeBucket as au, type IncludeMissingValuesOptions as av, type ValueAggregation as aw, type ValueAggregationOptionsOneOf as ax, type RangeAggregation as ay, type ScalarAggregation as az, type CreateReservationValidationErrors as b, type ItemMetadata as b0, type ApplicationError as b1, type BulkActionMetadata as b2, type BulkUnarchiveReservationsRequest as b3, type BulkUnarchiveReservationsResult as b4, type DomainEvent as b5, type DomainEventBodyOneOf as b6, type EntityCreatedEvent as b7, type RestoreInfo as b8, type EntityUpdatedEvent as b9, type MissingValuesWithLiterals as bA, type ScalarTypeWithLiterals as bB, type NestedAggregationTypeWithLiterals as bC, type IntervalWithLiterals as bD, type AggregationTypeWithLiterals as bE, type ModeWithLiterals as bF, type WebhookIdentityTypeWithLiterals as bG, onReservationCreated as bH, onReservationDeleted as bI, onReservationUpdated as bJ, createReservation as bK, getReservation as bL, updateReservation as bM, createHeldReservation as bN, reserveReservation as bO, cancelReservation as bP, deleteReservation as bQ, listReservations as bR, queryReservations as bS, type CommonSearchWithEntityContext as bT, bulkArchiveReservations as bU, bulkUnarchiveReservations as bV, type EntityDeletedEvent as ba, type ActionEvent as bb, type Empty as bc, type RemoveReservationMigrationNotesRequest as bd, type RemoveReservationMigrationNotesResponse as be, type RawHttpRequest as bf, type PathParametersEntry as bg, type QueryParametersEntry as bh, type HeadersEntry as bi, type RawHttpResponse as bj, type MessageEnvelope as bk, type IdentificationData as bl, type IdentificationDataIdOneOf as bm, type BaseEventMetadata as bn, type EventMetadata as bo, type ReservationsQueryResult as bp, type ReservationSearchSpec as bq, type StatusWithLiterals as br, type SourceWithLiterals as bs, type PaymentStatusWithLiterals as bt, type TableCombinationConflictTypeWithLiterals as bu, type TypeWithLiterals as bv, type SetWithLiterals as bw, type SortOrderWithLiterals as bx, type SortTypeWithLiterals as by, type SortDirectionWithLiterals as bz, type UpdateReservationOptions as c, type UpdateReservationApplicationErrors as d, type UpdateReservationValidationErrors as e, type CreateHeldReservationResponse as f, type CreateHeldReservationApplicationErrors as g, type Reservee as h, type ReserveReservationResponse as i, type ReserveReservationApplicationErrors as j, type CancelReservationOptions as k, type CancelReservationResponse as l, type CancelReservationApplicationErrors as m, type ListReservationsResponse as n, type ReservationsQueryBuilder as o, type ReservationSearch as p, type BulkUnarchiveReservationsResponse as q, type ReservationCreatedEnvelope as r, type ReservationDeletedEnvelope as s, type ReservationUpdatedEnvelope as t, Status as u, Source as v, Type as w, Set as x, SortOrder as y, SortType as z };
|
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { R as Reservation, C as CreateReservationOptions, a as CreateReservationApplicationErrors, b as CreateReservationValidationErrors, G as GetReservationOptions, U as UpdateReservation, c as UpdateReservationOptions, d as UpdateReservationApplicationErrors, e as UpdateReservationValidationErrors, H as HeldReservationDetails, f as CreateHeldReservationResponse, g as CreateHeldReservationApplicationErrors, h as Reservee, i as ReserveReservationResponse, j as ReserveReservationApplicationErrors, k as CancelReservationOptions, l as CancelReservationResponse, m as CancelReservationApplicationErrors, L as ListReservationsOptions, n as ListReservationsResponse, o as ReservationsQueryBuilder, p as ReservationSearch, S as SearchReservationsResponse, B as BulkArchiveReservationsResponse, q as
|
|
3
|
-
export { bb as ActionEvent, as as Aggregation, aF as AggregationData, at as AggregationKindOneOf, aY as AggregationResults, aZ as AggregationResultsResultOneOf, aM as AggregationResultsScalarResult, E as AggregationType, b1 as ApplicationError, bn as BaseEventMetadata, b2 as BulkActionMetadata, a_ as BulkArchiveReservationsRequest, a$ as BulkArchiveReservationsResult, b3 as
|
|
2
|
+
import { R as Reservation, C as CreateReservationOptions, a as CreateReservationApplicationErrors, b as CreateReservationValidationErrors, G as GetReservationOptions, U as UpdateReservation, c as UpdateReservationOptions, d as UpdateReservationApplicationErrors, e as UpdateReservationValidationErrors, H as HeldReservationDetails, f as CreateHeldReservationResponse, g as CreateHeldReservationApplicationErrors, h as Reservee, i as ReserveReservationResponse, j as ReserveReservationApplicationErrors, k as CancelReservationOptions, l as CancelReservationResponse, m as CancelReservationApplicationErrors, L as ListReservationsOptions, n as ListReservationsResponse, o as ReservationsQueryBuilder, p as ReservationSearch, S as SearchReservationsResponse, B as BulkArchiveReservationsResponse, q as BulkUnarchiveReservationsResponse, r as ReservationCreatedEnvelope, s as ReservationDeletedEnvelope, t as ReservationUpdatedEnvelope } from './table-reservations-v1-reservation-reservations.universal-CFbgZcWS.mjs';
|
|
3
|
+
export { bb as ActionEvent, as as Aggregation, aF as AggregationData, at as AggregationKindOneOf, aY as AggregationResults, aZ as AggregationResultsResultOneOf, aM as AggregationResultsScalarResult, E as AggregationType, b1 as ApplicationError, bn as BaseEventMetadata, b2 as BulkActionMetadata, a_ as BulkArchiveReservationsRequest, a$ as BulkArchiveReservationsResult, b3 as BulkUnarchiveReservationsRequest, b4 as BulkUnarchiveReservationsResult, ac as CancelReservationRequest, aa as CreateHeldReservationRequest, a1 as CreateReservationRequest, a2 as CreateReservationResponse, ah as CursorPaging, aj as CursorPagingMetadata, am as CursorQuery, an as CursorQueryPagingMethodOneOf, aq as CursorSearch, ar as CursorSearchPagingMethodOneOf, ak as Cursors, aA as DateHistogramAggregation, aU as DateHistogramResult, aW as DateHistogramResults, ae as DeleteReservationRequest, af as DeleteReservationResponse, K as Details, b5 as DomainEvent, b6 as DomainEventBodyOneOf, bc as Empty, b7 as EntityCreatedEvent, ba as EntityDeletedEvent, b9 as EntityUpdatedEvent, bo as EventMetadata, X as ExtendedFields, a6 as GetReservationRequest, a7 as GetReservationResponse, aV as GroupByValueResults, bi as HeadersEntry, bl as IdentificationData, bm as IdentificationDataIdOneOf, av as IncludeMissingValuesOptions, I as Interval, b0 as ItemMetadata, ag as ListReservationsRequest, bk as MessageEnvelope, Q as MigrationNote, M as MissingValues, F as Mode, aD as NestedAggregation, aB as NestedAggregationItem, aC as NestedAggregationItemKindOneOf, aI as NestedAggregationResults, aJ as NestedAggregationResultsResultOneOf, N as NestedAggregationType, aR as NestedResultValue, aS as NestedResultValueResultOneOf, aX as NestedResults, aN as NestedValueAggregationResult, bg as PathParametersEntry, P as PaymentStatus, bh as QueryParametersEntry, al as QueryReservationsRequest, ao as QueryReservationsResponse, ay as RangeAggregation, aH as RangeAggregationResult, au as RangeBucket, aP as RangeResult, aL as RangeResults, bf as RawHttpRequest, bj as RawHttpResponse, bd as RemoveReservationMigrationNotesRequest, be as RemoveReservationMigrationNotesResponse, ad as ReservationCanceled, _ as ReservationCreated, Y as ReservationDelayedDomainEvent, Z as ReservationDelayedDomainEventBodyTypeOneOf, a0 as ReservationDelayedDomainEventReservationCanceled, a3 as ReservationDetailsConflicts, a5 as ReservationLocationConflict, bq as ReservationSearchSpec, $ as ReservationUpdated, bp as ReservationsQueryResult, ab as ReserveReservationRequest, O as ReservedBy, b8 as RestoreInfo, aT as Results, az as ScalarAggregation, aQ as ScalarResult, D as ScalarType, aE as SearchDetails, ap as SearchReservationsRequest, x as Set, A as SortDirection, y as SortOrder, z as SortType, ai as Sorting, v as Source, u as Status, a4 as TableCombinationConflict, T as TableCombinationConflictType, V as TableWithReservationConflicts, J as Tables, w as Type, a8 as UpdateReservationRequest, a9 as UpdateReservationResponse, aw as ValueAggregation, ax as ValueAggregationOptionsOneOf, aG as ValueAggregationResult, aO as ValueResult, aK as ValueResults, W as WebhookIdentityType } from './table-reservations-v1-reservation-reservations.universal-CFbgZcWS.mjs';
|
|
4
4
|
|
|
5
5
|
type ReservationNonNullablePaths = `status` | `source` | `details.tableIds` | `details.tables.ids` | `paymentStatus`;
|
|
6
6
|
declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
|
|
@@ -180,18 +180,21 @@ interface SearchReservationsSignature {
|
|
|
180
180
|
declare function bulkArchiveReservations$1(httpClient: HttpClient): BulkArchiveReservationsSignature;
|
|
181
181
|
interface BulkArchiveReservationsSignature {
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
183
|
+
* Archives multiple reservations at once.
|
|
184
|
+
*
|
|
185
|
+
* Archived reservations aren't shown in the dashboard along with other reservations. However, they can still be viewed in a separate section.
|
|
186
|
+
* Archived reservations can't be updated with Update Reservation.
|
|
187
|
+
* @param - IDs of reservations to archive.
|
|
185
188
|
*/
|
|
186
189
|
(reservationIds: string[]): Promise<NonNullablePaths<BulkArchiveReservationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
187
190
|
}
|
|
188
|
-
declare function
|
|
189
|
-
interface
|
|
191
|
+
declare function bulkUnarchiveReservations$1(httpClient: HttpClient): BulkUnarchiveReservationsSignature;
|
|
192
|
+
interface BulkUnarchiveReservationsSignature {
|
|
190
193
|
/**
|
|
191
|
-
*
|
|
194
|
+
* Unarchives multiple reservations at once.
|
|
192
195
|
* @param - Reservation IDs to unarchive.
|
|
193
196
|
*/
|
|
194
|
-
(reservationIds: string[]): Promise<NonNullablePaths<
|
|
197
|
+
(reservationIds: string[]): Promise<NonNullablePaths<BulkUnarchiveReservationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
195
198
|
}
|
|
196
199
|
declare const onReservationCreated$1: EventDefinition<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
|
|
197
200
|
declare const onReservationDeleted$1: EventDefinition<ReservationDeletedEnvelope, "wix.table_reservations.v1.reservation_deleted">;
|
|
@@ -208,7 +211,7 @@ declare const listReservations: MaybeContext<BuildRESTFunction<typeof listReserv
|
|
|
208
211
|
declare const queryReservations: MaybeContext<BuildRESTFunction<typeof queryReservations$1> & typeof queryReservations$1>;
|
|
209
212
|
declare const searchReservations: MaybeContext<BuildRESTFunction<typeof searchReservations$1> & typeof searchReservations$1>;
|
|
210
213
|
declare const bulkArchiveReservations: MaybeContext<BuildRESTFunction<typeof bulkArchiveReservations$1> & typeof bulkArchiveReservations$1>;
|
|
211
|
-
declare const
|
|
214
|
+
declare const bulkUnarchiveReservations: MaybeContext<BuildRESTFunction<typeof bulkUnarchiveReservations$1> & typeof bulkUnarchiveReservations$1>;
|
|
212
215
|
/**
|
|
213
216
|
* Triggered when a held reservation is created.
|
|
214
217
|
*/
|
|
@@ -222,4 +225,4 @@ declare const onReservationDeleted: BuildEventDefinition<typeof onReservationDel
|
|
|
222
225
|
*/
|
|
223
226
|
declare const onReservationUpdated: BuildEventDefinition<typeof onReservationUpdated$1>;
|
|
224
227
|
|
|
225
|
-
export { BulkArchiveReservationsResponse,
|
|
228
|
+
export { BulkArchiveReservationsResponse, BulkUnarchiveReservationsResponse, CancelReservationOptions, CancelReservationResponse, CreateHeldReservationResponse, CreateReservationOptions, GetReservationOptions, HeldReservationDetails, ListReservationsOptions, ListReservationsResponse, Reservation, ReservationCreatedEnvelope, ReservationDeletedEnvelope, ReservationUpdatedEnvelope, ReservationsQueryBuilder, ReserveReservationResponse, Reservee, SearchReservationsResponse, UpdateReservation, UpdateReservationOptions, bulkArchiveReservations, bulkUnarchiveReservations, cancelReservation, createHeldReservation, createReservation, deleteReservation, getReservation, listReservations, onReservationCreated, onReservationDeleted, onReservationUpdated, queryReservations, reserveReservation, searchReservations, updateReservation };
|