@wix/table-reservations 1.0.77 → 1.0.79
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/context.d.ts +3 -3
- package/build/cjs/context.js +3 -3
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +3 -3
- package/build/cjs/index.js +3 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -3
- package/build/cjs/meta.js +3 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +3 -3
- package/build/es/context.js +3 -3
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +3 -3
- package/build/es/index.js +3 -3
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +3 -3
- package/build/es/meta.js +3 -3
- package/build/es/meta.js.map +1 -1
- package/package.json +13 -9
- package/build/cjs/index.typings.d.ts +0 -3
- package/build/cjs/index.typings.js +0 -30
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.context.d.ts +0 -6
- package/build/cjs/src/table-reservations-v1-reservation-location.context.js +0 -73
- package/build/cjs/src/table-reservations-v1-reservation-location.context.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.http.d.ts +0 -40
- package/build/cjs/src/table-reservations-v1-reservation-location.http.js +0 -266
- package/build/cjs/src/table-reservations-v1-reservation-location.http.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.d.ts +0 -20
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.js +0 -106
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.public.d.ts +0 -178
- package/build/cjs/src/table-reservations-v1-reservation-location.public.js +0 -48
- package/build/cjs/src/table-reservations-v1-reservation-location.public.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.types.d.ts +0 -2260
- package/build/cjs/src/table-reservations-v1-reservation-location.types.js +0 -187
- package/build/cjs/src/table-reservations-v1-reservation-location.types.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.universal.d.ts +0 -2333
- package/build/cjs/src/table-reservations-v1-reservation-location.universal.js +0 -613
- package/build/cjs/src/table-reservations-v1-reservation-location.universal.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.context.d.ts +0 -11
- package/build/cjs/src/table-reservations-v1-reservation.context.js +0 -158
- package/build/cjs/src/table-reservations-v1-reservation.context.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.http.d.ts +0 -89
- package/build/cjs/src/table-reservations-v1-reservation.http.js +0 -508
- package/build/cjs/src/table-reservations-v1-reservation.http.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.meta.d.ts +0 -29
- package/build/cjs/src/table-reservations-v1-reservation.meta.js +0 -199
- package/build/cjs/src/table-reservations-v1-reservation.meta.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.public.d.ts +0 -26
- package/build/cjs/src/table-reservations-v1-reservation.public.js +0 -78
- package/build/cjs/src/table-reservations-v1-reservation.public.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.types.d.ts +0 -976
- package/build/cjs/src/table-reservations-v1-reservation.types.js +0 -119
- package/build/cjs/src/table-reservations-v1-reservation.types.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-reservation.universal.d.ts +0 -1382
- package/build/cjs/src/table-reservations-v1-reservation.universal.js +0 -872
- package/build/cjs/src/table-reservations-v1-reservation.universal.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.context.d.ts +0 -3
- package/build/cjs/src/table-reservations-v1-time-slot.context.js +0 -22
- package/build/cjs/src/table-reservations-v1-time-slot.context.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.http.d.ts +0 -13
- package/build/cjs/src/table-reservations-v1-time-slot.http.js +0 -126
- package/build/cjs/src/table-reservations-v1-time-slot.http.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.meta.d.ts +0 -13
- package/build/cjs/src/table-reservations-v1-time-slot.meta.js +0 -47
- package/build/cjs/src/table-reservations-v1-time-slot.meta.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.public.d.ts +0 -8
- package/build/cjs/src/table-reservations-v1-time-slot.public.js +0 -17
- package/build/cjs/src/table-reservations-v1-time-slot.public.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.types.d.ts +0 -137
- package/build/cjs/src/table-reservations-v1-time-slot.types.js +0 -32
- package/build/cjs/src/table-reservations-v1-time-slot.types.js.map +0 -1
- package/build/cjs/src/table-reservations-v1-time-slot.universal.d.ts +0 -178
- package/build/cjs/src/table-reservations-v1-time-slot.universal.js +0 -166
- package/build/cjs/src/table-reservations-v1-time-slot.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -3
- package/build/es/index.typings.js +0 -4
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.context.d.ts +0 -6
- package/build/es/src/table-reservations-v1-reservation-location.context.js +0 -66
- package/build/es/src/table-reservations-v1-reservation-location.context.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.http.d.ts +0 -40
- package/build/es/src/table-reservations-v1-reservation-location.http.js +0 -259
- package/build/es/src/table-reservations-v1-reservation-location.http.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.meta.d.ts +0 -20
- package/build/es/src/table-reservations-v1-reservation-location.meta.js +0 -76
- package/build/es/src/table-reservations-v1-reservation-location.meta.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.public.d.ts +0 -178
- package/build/es/src/table-reservations-v1-reservation-location.public.js +0 -25
- package/build/es/src/table-reservations-v1-reservation-location.public.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.types.d.ts +0 -2260
- package/build/es/src/table-reservations-v1-reservation-location.types.js +0 -184
- package/build/es/src/table-reservations-v1-reservation-location.types.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation-location.universal.d.ts +0 -2333
- package/build/es/src/table-reservations-v1-reservation-location.universal.js +0 -583
- package/build/es/src/table-reservations-v1-reservation-location.universal.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.context.d.ts +0 -11
- package/build/es/src/table-reservations-v1-reservation.context.js +0 -146
- package/build/es/src/table-reservations-v1-reservation.context.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.http.d.ts +0 -89
- package/build/es/src/table-reservations-v1-reservation.http.js +0 -496
- package/build/es/src/table-reservations-v1-reservation.http.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.meta.d.ts +0 -29
- package/build/es/src/table-reservations-v1-reservation.meta.js +0 -164
- package/build/es/src/table-reservations-v1-reservation.meta.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.public.d.ts +0 -26
- package/build/es/src/table-reservations-v1-reservation.public.js +0 -50
- package/build/es/src/table-reservations-v1-reservation.public.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.types.d.ts +0 -976
- package/build/es/src/table-reservations-v1-reservation.types.js +0 -116
- package/build/es/src/table-reservations-v1-reservation.types.js.map +0 -1
- package/build/es/src/table-reservations-v1-reservation.universal.d.ts +0 -1382
- package/build/es/src/table-reservations-v1-reservation.universal.js +0 -837
- package/build/es/src/table-reservations-v1-reservation.universal.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.context.d.ts +0 -3
- package/build/es/src/table-reservations-v1-time-slot.context.js +0 -18
- package/build/es/src/table-reservations-v1-time-slot.context.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.http.d.ts +0 -13
- package/build/es/src/table-reservations-v1-time-slot.http.js +0 -122
- package/build/es/src/table-reservations-v1-time-slot.http.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.meta.d.ts +0 -13
- package/build/es/src/table-reservations-v1-time-slot.meta.js +0 -20
- package/build/es/src/table-reservations-v1-time-slot.meta.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.public.d.ts +0 -8
- package/build/es/src/table-reservations-v1-time-slot.public.js +0 -9
- package/build/es/src/table-reservations-v1-time-slot.public.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.types.d.ts +0 -137
- package/build/es/src/table-reservations-v1-time-slot.types.js +0 -29
- package/build/es/src/table-reservations-v1-time-slot.types.js.map +0 -1
- package/build/es/src/table-reservations-v1-time-slot.universal.d.ts +0 -178
- package/build/es/src/table-reservations-v1-time-slot.universal.js +0 -139
- package/build/es/src/table-reservations-v1-time-slot.universal.js.map +0 -1
|
@@ -1,508 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchReservations = exports.queryReservations = exports.listReservations = exports.cancelReservation = exports.reserveReservation = exports.createHeldReservation = exports.updateReservation = exports.getReservation = exports.createReservation = void 0;
|
|
4
|
-
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
5
|
-
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
6
|
-
const float_2 = require("@wix/sdk-runtime/transformations/float");
|
|
7
|
-
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
8
|
-
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
9
|
-
const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
|
|
10
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
11
|
-
const metro_runtime_2 = require("@wix/metro-runtime");
|
|
12
|
-
function resolveWixTableReservationsReservationV1ReservationsServiceUrl(opts) {
|
|
13
|
-
const domainToMappings = {
|
|
14
|
-
_: [
|
|
15
|
-
{
|
|
16
|
-
srcPath: '/_api/table-reservations/reservations',
|
|
17
|
-
destPath: '',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
'editor.wixapps.net': [
|
|
21
|
-
{
|
|
22
|
-
srcPath: '/_api/table-reservations/reservations',
|
|
23
|
-
destPath: '',
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
'manage._base_domain_': [
|
|
27
|
-
{
|
|
28
|
-
srcPath: '/_api/table-reservations/reservations',
|
|
29
|
-
destPath: '',
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
'www._base_domain_': [
|
|
33
|
-
{
|
|
34
|
-
srcPath: '/_api/table-reservations/reservations',
|
|
35
|
-
destPath: '',
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
'api._api_base_domain_': [
|
|
39
|
-
{
|
|
40
|
-
srcPath: '/table-reservations/reservations',
|
|
41
|
-
destPath: '',
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
'*.dev.wix-code.com': [
|
|
45
|
-
{
|
|
46
|
-
srcPath: '/_api/table-reservations/reservations',
|
|
47
|
-
destPath: '',
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
'editor._base_domain_': [
|
|
51
|
-
{
|
|
52
|
-
srcPath: '/_api/table-reservations/reservations',
|
|
53
|
-
destPath: '',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
'blocks._base_domain_': [
|
|
57
|
-
{
|
|
58
|
-
srcPath: '/_api/table-reservations/reservations',
|
|
59
|
-
destPath: '',
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
'create.editorx': [
|
|
63
|
-
{
|
|
64
|
-
srcPath: '/_api/table-reservations/reservations',
|
|
65
|
-
destPath: '',
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
'bo._base_domain_': [
|
|
69
|
-
{
|
|
70
|
-
srcPath: '/_api/table-reservations/reservations',
|
|
71
|
-
destPath: '',
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
'wixbo.ai': [
|
|
75
|
-
{
|
|
76
|
-
srcPath: '/_api/table-reservations/reservations',
|
|
77
|
-
destPath: '',
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
'www.wixapis.com': [
|
|
81
|
-
{
|
|
82
|
-
srcPath: '/table-reservations/reservations',
|
|
83
|
-
destPath: '',
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
};
|
|
87
|
-
return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Creates a new reservation.
|
|
91
|
-
*
|
|
92
|
-
* `createReservation()` accepts and requires different fields depending on the `status` provided and your permissions.
|
|
93
|
-
*
|
|
94
|
-
* **Status and source**
|
|
95
|
-
*
|
|
96
|
-
* If a `status` is not provided, it will be set to:
|
|
97
|
-
* * `RESERVED` if manual approval is not required for confirmation
|
|
98
|
-
* * `REQUESTED` if manual approval is required for confirmation.
|
|
99
|
-
*
|
|
100
|
-
* A reservation created with any `source` other than `WALK_IN` requires the `reservation.reservee.phone` and `reservation.reservee.firstName` fields.
|
|
101
|
-
* Attempting to create a reservation without these fields will result in an error.
|
|
102
|
-
*
|
|
103
|
-
* **Permissions**
|
|
104
|
-
*
|
|
105
|
-
* 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.
|
|
106
|
-
*
|
|
107
|
-
* 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.
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* > **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()`.
|
|
111
|
-
*/
|
|
112
|
-
function createReservation(payload) {
|
|
113
|
-
function __createReservation({ host }) {
|
|
114
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
115
|
-
{
|
|
116
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
117
|
-
paths: [
|
|
118
|
-
{ path: 'reservation.createdDate' },
|
|
119
|
-
{ path: 'reservation.updatedDate' },
|
|
120
|
-
{ path: 'reservation.details.startDate' },
|
|
121
|
-
{ path: 'reservation.details.endDate' },
|
|
122
|
-
],
|
|
123
|
-
},
|
|
124
|
-
]);
|
|
125
|
-
const metadata = {
|
|
126
|
-
entityFqdn: 'wix.table_reservations.v1.reservation',
|
|
127
|
-
method: 'POST',
|
|
128
|
-
methodFqn: 'wix.table_reservations.reservation.v1.ReservationsService.CreateReservation',
|
|
129
|
-
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
130
|
-
protoPath: '/v1/reservations',
|
|
131
|
-
data: serializedData,
|
|
132
|
-
host,
|
|
133
|
-
}),
|
|
134
|
-
data: serializedData,
|
|
135
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
136
|
-
{
|
|
137
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
138
|
-
paths: [
|
|
139
|
-
{ path: 'reservation.createdDate' },
|
|
140
|
-
{ path: 'reservation.updatedDate' },
|
|
141
|
-
{ path: 'reservation.details.startDate' },
|
|
142
|
-
{ path: 'reservation.details.endDate' },
|
|
143
|
-
],
|
|
144
|
-
},
|
|
145
|
-
]),
|
|
146
|
-
};
|
|
147
|
-
return metadata;
|
|
148
|
-
}
|
|
149
|
-
return __createReservation;
|
|
150
|
-
}
|
|
151
|
-
exports.createReservation = createReservation;
|
|
152
|
-
/**
|
|
153
|
-
* Retrieves a reservation.
|
|
154
|
-
*
|
|
155
|
-
* Calling this method with `fieldsets` set to `FULL` requires additional permissions. See this API's Introduction article for more information.
|
|
156
|
-
*/
|
|
157
|
-
function getReservation(payload) {
|
|
158
|
-
function __getReservation({ host }) {
|
|
159
|
-
const metadata = {
|
|
160
|
-
entityFqdn: 'wix.table_reservations.v1.reservation',
|
|
161
|
-
method: 'GET',
|
|
162
|
-
methodFqn: 'wix.table_reservations.reservation.v1.ReservationsService.GetReservation',
|
|
163
|
-
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
164
|
-
protoPath: '/v1/reservations/{reservationId}',
|
|
165
|
-
data: payload,
|
|
166
|
-
host,
|
|
167
|
-
}),
|
|
168
|
-
params: (0, metro_runtime_1.toURLSearchParams)(payload),
|
|
169
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
170
|
-
{
|
|
171
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
172
|
-
paths: [
|
|
173
|
-
{ path: 'reservation.createdDate' },
|
|
174
|
-
{ path: 'reservation.updatedDate' },
|
|
175
|
-
{ path: 'reservation.details.startDate' },
|
|
176
|
-
{ path: 'reservation.details.endDate' },
|
|
177
|
-
],
|
|
178
|
-
},
|
|
179
|
-
]),
|
|
180
|
-
};
|
|
181
|
-
return metadata;
|
|
182
|
-
}
|
|
183
|
-
return __getReservation;
|
|
184
|
-
}
|
|
185
|
-
exports.getReservation = getReservation;
|
|
186
|
-
/**
|
|
187
|
-
* Updates a reservation.
|
|
188
|
-
*
|
|
189
|
-
* 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.
|
|
190
|
-
*
|
|
191
|
-
* 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.
|
|
192
|
-
*/
|
|
193
|
-
function updateReservation(payload) {
|
|
194
|
-
function __updateReservation({ host }) {
|
|
195
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
196
|
-
{
|
|
197
|
-
transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
|
|
198
|
-
paths: [{ path: 'mask' }],
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
202
|
-
paths: [
|
|
203
|
-
{ path: 'reservation.createdDate' },
|
|
204
|
-
{ path: 'reservation.updatedDate' },
|
|
205
|
-
{ path: 'reservation.details.startDate' },
|
|
206
|
-
{ path: 'reservation.details.endDate' },
|
|
207
|
-
],
|
|
208
|
-
},
|
|
209
|
-
]);
|
|
210
|
-
const metadata = {
|
|
211
|
-
entityFqdn: 'wix.table_reservations.v1.reservation',
|
|
212
|
-
method: 'PATCH',
|
|
213
|
-
methodFqn: 'wix.table_reservations.reservation.v1.ReservationsService.UpdateReservation',
|
|
214
|
-
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
215
|
-
protoPath: '/v1/reservations/{reservation.id}',
|
|
216
|
-
data: serializedData,
|
|
217
|
-
host,
|
|
218
|
-
}),
|
|
219
|
-
data: serializedData,
|
|
220
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
221
|
-
{
|
|
222
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
223
|
-
paths: [
|
|
224
|
-
{ path: 'reservation.createdDate' },
|
|
225
|
-
{ path: 'reservation.updatedDate' },
|
|
226
|
-
{ path: 'reservation.details.startDate' },
|
|
227
|
-
{ path: 'reservation.details.endDate' },
|
|
228
|
-
],
|
|
229
|
-
},
|
|
230
|
-
]),
|
|
231
|
-
};
|
|
232
|
-
return metadata;
|
|
233
|
-
}
|
|
234
|
-
return __updateReservation;
|
|
235
|
-
}
|
|
236
|
-
exports.updateReservation = updateReservation;
|
|
237
|
-
/**
|
|
238
|
-
* Creates a new temporary reservation and holds it for the customer for 10 minutes.
|
|
239
|
-
*
|
|
240
|
-
* 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.
|
|
241
|
-
*
|
|
242
|
-
* You cannot call `updateReservation()` to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use `reserveReservation()`.
|
|
243
|
-
*
|
|
244
|
-
* If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using `createReservation()`.
|
|
245
|
-
*
|
|
246
|
-
*/
|
|
247
|
-
function createHeldReservation(payload) {
|
|
248
|
-
function __createHeldReservation({ host }) {
|
|
249
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
250
|
-
{
|
|
251
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
252
|
-
paths: [{ path: 'reservationDetails.startDate' }],
|
|
253
|
-
},
|
|
254
|
-
]);
|
|
255
|
-
const metadata = {
|
|
256
|
-
entityFqdn: 'wix.table_reservations.v1.reservation',
|
|
257
|
-
method: 'POST',
|
|
258
|
-
methodFqn: 'wix.table_reservations.reservation.v1.ReservationsService.CreateHeldReservation',
|
|
259
|
-
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
260
|
-
protoPath: '/v1/reservations/hold',
|
|
261
|
-
data: serializedData,
|
|
262
|
-
host,
|
|
263
|
-
}),
|
|
264
|
-
data: serializedData,
|
|
265
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
266
|
-
{
|
|
267
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
268
|
-
paths: [
|
|
269
|
-
{ path: 'reservation.createdDate' },
|
|
270
|
-
{ path: 'reservation.updatedDate' },
|
|
271
|
-
{ path: 'reservation.details.startDate' },
|
|
272
|
-
{ path: 'reservation.details.endDate' },
|
|
273
|
-
],
|
|
274
|
-
},
|
|
275
|
-
]),
|
|
276
|
-
};
|
|
277
|
-
return metadata;
|
|
278
|
-
}
|
|
279
|
-
return __createHeldReservation;
|
|
280
|
-
}
|
|
281
|
-
exports.createHeldReservation = createHeldReservation;
|
|
282
|
-
/**
|
|
283
|
-
* Reserves or requests a held reservation.
|
|
284
|
-
*
|
|
285
|
-
* Held reservations are temporary reservations with the `HELD` status created by `createHeldReservation()`.
|
|
286
|
-
*
|
|
287
|
-
* 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.
|
|
288
|
-
*
|
|
289
|
-
* `Reserve Reservation` changes a reservation's `HELD` status to:
|
|
290
|
-
* * `RESERVED` if the reservation's reservation location does not require manual approval.
|
|
291
|
-
* * `REQUESTED` if the reservation's reservation location requires manual approval.
|
|
292
|
-
*/
|
|
293
|
-
function reserveReservation(payload) {
|
|
294
|
-
function __reserveReservation({ host }) {
|
|
295
|
-
const metadata = {
|
|
296
|
-
entityFqdn: 'wix.table_reservations.v1.reservation',
|
|
297
|
-
method: 'POST',
|
|
298
|
-
methodFqn: 'wix.table_reservations.reservation.v1.ReservationsService.ReserveReservation',
|
|
299
|
-
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
300
|
-
protoPath: '/v1/reservations/{reservationId}/reserve',
|
|
301
|
-
data: payload,
|
|
302
|
-
host,
|
|
303
|
-
}),
|
|
304
|
-
data: payload,
|
|
305
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
306
|
-
{
|
|
307
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
308
|
-
paths: [
|
|
309
|
-
{ path: 'reservation.createdDate' },
|
|
310
|
-
{ path: 'reservation.updatedDate' },
|
|
311
|
-
{ path: 'reservation.details.startDate' },
|
|
312
|
-
{ path: 'reservation.details.endDate' },
|
|
313
|
-
],
|
|
314
|
-
},
|
|
315
|
-
]),
|
|
316
|
-
};
|
|
317
|
-
return metadata;
|
|
318
|
-
}
|
|
319
|
-
return __reserveReservation;
|
|
320
|
-
}
|
|
321
|
-
exports.reserveReservation = reserveReservation;
|
|
322
|
-
/**
|
|
323
|
-
* Cancels a reservation.
|
|
324
|
-
*
|
|
325
|
-
* Sets the reservation status to `CANCELED`.
|
|
326
|
-
*/
|
|
327
|
-
function cancelReservation(payload) {
|
|
328
|
-
function __cancelReservation({ host }) {
|
|
329
|
-
const metadata = {
|
|
330
|
-
entityFqdn: 'wix.table_reservations.v1.reservation',
|
|
331
|
-
method: 'POST',
|
|
332
|
-
methodFqn: 'wix.table_reservations.reservation.v1.ReservationsService.CancelReservation',
|
|
333
|
-
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
334
|
-
protoPath: '/v1/reservations/{reservationId}/cancel',
|
|
335
|
-
data: payload,
|
|
336
|
-
host,
|
|
337
|
-
}),
|
|
338
|
-
data: payload,
|
|
339
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
340
|
-
{
|
|
341
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
342
|
-
paths: [
|
|
343
|
-
{ path: 'reservation.createdDate' },
|
|
344
|
-
{ path: 'reservation.updatedDate' },
|
|
345
|
-
{ path: 'reservation.details.startDate' },
|
|
346
|
-
{ path: 'reservation.details.endDate' },
|
|
347
|
-
],
|
|
348
|
-
},
|
|
349
|
-
]),
|
|
350
|
-
};
|
|
351
|
-
return metadata;
|
|
352
|
-
}
|
|
353
|
-
return __cancelReservation;
|
|
354
|
-
}
|
|
355
|
-
exports.cancelReservation = cancelReservation;
|
|
356
|
-
/** Retrieves a list of up to 100 reservations. */
|
|
357
|
-
function listReservations(payload) {
|
|
358
|
-
function __listReservations({ host }) {
|
|
359
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
360
|
-
{
|
|
361
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
362
|
-
paths: [{ path: 'startDateFrom' }, { path: 'startDateTo' }],
|
|
363
|
-
},
|
|
364
|
-
]);
|
|
365
|
-
const metadata = {
|
|
366
|
-
entityFqdn: 'wix.table_reservations.v1.reservation',
|
|
367
|
-
method: 'GET',
|
|
368
|
-
methodFqn: 'wix.table_reservations.reservation.v1.ReservationsService.ListReservations',
|
|
369
|
-
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
370
|
-
protoPath: '/v1/reservations',
|
|
371
|
-
data: serializedData,
|
|
372
|
-
host,
|
|
373
|
-
}),
|
|
374
|
-
params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
|
|
375
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
376
|
-
{
|
|
377
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
378
|
-
paths: [
|
|
379
|
-
{ path: 'reservations.createdDate' },
|
|
380
|
-
{ path: 'reservations.updatedDate' },
|
|
381
|
-
{ path: 'reservations.details.startDate' },
|
|
382
|
-
{ path: 'reservations.details.endDate' },
|
|
383
|
-
],
|
|
384
|
-
},
|
|
385
|
-
]),
|
|
386
|
-
};
|
|
387
|
-
return metadata;
|
|
388
|
-
}
|
|
389
|
-
return __listReservations;
|
|
390
|
-
}
|
|
391
|
-
exports.listReservations = listReservations;
|
|
392
|
-
/**
|
|
393
|
-
* Creates a query to retrieve a list of reservations.
|
|
394
|
-
*
|
|
395
|
-
* The `queryReservations()` function builds a query to retrieve a list of reservations and returns a [`ReservationsQueryBuilder`](#ReservationsQueryBuilder) object.
|
|
396
|
-
*
|
|
397
|
-
* The returned object contains the query definition, which is used to run the query using the [find()](#ReservationsQueryBuilder/find) function.
|
|
398
|
-
*
|
|
399
|
-
* 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.
|
|
400
|
-
*
|
|
401
|
-
* `queryReservations()` runs with the following `ReservationsQueryBuilder` defaults, which you can override:
|
|
402
|
-
*
|
|
403
|
-
* * [`skip(0)`](#ReservationsQueryBuilder/skip)
|
|
404
|
-
* * [`limit(50)`](#ReservationsQueryBuilder/limit)
|
|
405
|
-
* * [`descending('_createdDate')`](#ReservationsQueryBuilder/descending)
|
|
406
|
-
*
|
|
407
|
-
* The following `ReservationsQueryBuilder` functions are supported for `queryReservations()`. For a full description of the reservation object, see the object returned for the [`items`](#ReservationsQueryResult/items) property in [`ReservationsQueryResult`](#ReservationsQueryResult).
|
|
408
|
-
*/
|
|
409
|
-
function queryReservations(payload) {
|
|
410
|
-
function __queryReservations({ host }) {
|
|
411
|
-
const metadata = {
|
|
412
|
-
entityFqdn: 'wix.table_reservations.v1.reservation',
|
|
413
|
-
method: 'POST',
|
|
414
|
-
methodFqn: 'wix.table_reservations.reservation.v1.ReservationsService.QueryReservations',
|
|
415
|
-
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
416
|
-
protoPath: '/v1/reservations/query',
|
|
417
|
-
data: payload,
|
|
418
|
-
host,
|
|
419
|
-
}),
|
|
420
|
-
data: payload,
|
|
421
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
422
|
-
{
|
|
423
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
424
|
-
paths: [
|
|
425
|
-
{ path: 'reservations.createdDate' },
|
|
426
|
-
{ path: 'reservations.updatedDate' },
|
|
427
|
-
{ path: 'reservations.details.startDate' },
|
|
428
|
-
{ path: 'reservations.details.endDate' },
|
|
429
|
-
],
|
|
430
|
-
},
|
|
431
|
-
]),
|
|
432
|
-
};
|
|
433
|
-
return metadata;
|
|
434
|
-
}
|
|
435
|
-
return __queryReservations;
|
|
436
|
-
}
|
|
437
|
-
exports.queryReservations = queryReservations;
|
|
438
|
-
function searchReservations(payload) {
|
|
439
|
-
function __searchReservations({ host }) {
|
|
440
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
441
|
-
{
|
|
442
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
443
|
-
paths: [
|
|
444
|
-
{ path: 'search.aggregations.range.buckets.from' },
|
|
445
|
-
{ path: 'search.aggregations.range.buckets.to' },
|
|
446
|
-
{
|
|
447
|
-
path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',
|
|
451
|
-
},
|
|
452
|
-
],
|
|
453
|
-
},
|
|
454
|
-
]);
|
|
455
|
-
const metadata = {
|
|
456
|
-
entityFqdn: 'wix.table_reservations.v1.reservation',
|
|
457
|
-
method: 'POST',
|
|
458
|
-
methodFqn: 'wix.table_reservations.reservation.v1.ReservationsService.SearchReservations',
|
|
459
|
-
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
460
|
-
protoPath: '/v1/reservations/search',
|
|
461
|
-
data: serializedData,
|
|
462
|
-
host,
|
|
463
|
-
}),
|
|
464
|
-
data: serializedData,
|
|
465
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
466
|
-
{
|
|
467
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
468
|
-
paths: [
|
|
469
|
-
{ path: 'reservations.createdDate' },
|
|
470
|
-
{ path: 'reservations.updatedDate' },
|
|
471
|
-
{ path: 'reservations.details.startDate' },
|
|
472
|
-
{ path: 'reservations.details.endDate' },
|
|
473
|
-
],
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
477
|
-
paths: [
|
|
478
|
-
{ path: 'aggregationData.results.ranges.results.from' },
|
|
479
|
-
{ path: 'aggregationData.results.ranges.results.to' },
|
|
480
|
-
{
|
|
481
|
-
path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
path: 'aggregationData.results.nested.results.results.range.from',
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
path: 'aggregationData.results.nested.results.results.range.to',
|
|
491
|
-
},
|
|
492
|
-
{ path: 'aggregationData.results.scalar.value' },
|
|
493
|
-
{
|
|
494
|
-
path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
path: 'aggregationData.results.nested.results.results.scalar.value',
|
|
498
|
-
},
|
|
499
|
-
],
|
|
500
|
-
},
|
|
501
|
-
]),
|
|
502
|
-
};
|
|
503
|
-
return metadata;
|
|
504
|
-
}
|
|
505
|
-
return __searchReservations;
|
|
506
|
-
}
|
|
507
|
-
exports.searchReservations = searchReservations;
|
|
508
|
-
//# sourceMappingURL=table-reservations-v1-reservation.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-reservation.http.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,sDAAgD;AAIhD,SAAS,8DAA8D,CACrE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,kCAAkC;gBAC3C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE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AE,IAAI,EAAE,2CAA2C,EAAE;wBACrD;4BACE,IAAI,EAAE,kFAAkF;yBACzF;wBACD;4BACE,IAAI,EAAE,gFAAgF;yBACvF;wBACD;4BACE,IAAI,EAAE,2DAA2D;yBAClE;wBACD;4BACE,IAAI,EAAE,yDAAyD;yBAChE;wBACD,EAAE,IAAI,EAAE,sCAAsC,EAAE;wBAChD;4BACE,IAAI,EAAE,2EAA2E;yBAClF;wBACD;4BACE,IAAI,EAAE,6DAA6D;yBACpE;qBACF;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AA1ED,gDA0EC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixTableReservationsV1ReservationTypes from './table-reservations-v1-reservation.types';
|
|
2
|
-
import * as ambassadorWixTableReservationsV1ReservationUniversalTypes from './table-reservations-v1-reservation.universal';
|
|
3
|
-
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
-
getUrl: (context: any) => string;
|
|
5
|
-
httpMethod: K;
|
|
6
|
-
path: string;
|
|
7
|
-
pathParams: M;
|
|
8
|
-
__requestType: T;
|
|
9
|
-
__originalRequestType: S;
|
|
10
|
-
__responseType: Q;
|
|
11
|
-
__originalResponseType: R;
|
|
12
|
-
};
|
|
13
|
-
export declare function createReservation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateReservationRequest, ambassadorWixTableReservationsV1ReservationTypes.CreateReservationRequest, ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateReservationResponse & ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateReservationResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationTypes.CreateReservationResponse & ambassadorWixTableReservationsV1ReservationTypes.CreateReservationResponseNonNullableFields>;
|
|
14
|
-
export declare function getReservation(): __PublicMethodMetaInfo<'GET', {
|
|
15
|
-
reservationId: string;
|
|
16
|
-
}, ambassadorWixTableReservationsV1ReservationUniversalTypes.GetReservationRequest, ambassadorWixTableReservationsV1ReservationTypes.GetReservationRequest, ambassadorWixTableReservationsV1ReservationUniversalTypes.GetReservationResponse & ambassadorWixTableReservationsV1ReservationUniversalTypes.GetReservationResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationTypes.GetReservationResponse & ambassadorWixTableReservationsV1ReservationTypes.GetReservationResponseNonNullableFields>;
|
|
17
|
-
export declare function updateReservation(): __PublicMethodMetaInfo<'PATCH', {
|
|
18
|
-
reservationId: string;
|
|
19
|
-
}, ambassadorWixTableReservationsV1ReservationUniversalTypes.UpdateReservationRequest, ambassadorWixTableReservationsV1ReservationTypes.UpdateReservationRequest, ambassadorWixTableReservationsV1ReservationUniversalTypes.UpdateReservationResponse & ambassadorWixTableReservationsV1ReservationUniversalTypes.UpdateReservationResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationTypes.UpdateReservationResponse & ambassadorWixTableReservationsV1ReservationTypes.UpdateReservationResponseNonNullableFields>;
|
|
20
|
-
export declare function createHeldReservation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateHeldReservationRequest, ambassadorWixTableReservationsV1ReservationTypes.CreateHeldReservationRequest, ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateHeldReservationResponse & ambassadorWixTableReservationsV1ReservationUniversalTypes.CreateHeldReservationResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationTypes.CreateHeldReservationResponse & ambassadorWixTableReservationsV1ReservationTypes.CreateHeldReservationResponseNonNullableFields>;
|
|
21
|
-
export declare function reserveReservation(): __PublicMethodMetaInfo<'POST', {
|
|
22
|
-
reservationId: string;
|
|
23
|
-
}, ambassadorWixTableReservationsV1ReservationUniversalTypes.ReserveReservationRequest, ambassadorWixTableReservationsV1ReservationTypes.ReserveReservationRequest, ambassadorWixTableReservationsV1ReservationUniversalTypes.ReserveReservationResponse & ambassadorWixTableReservationsV1ReservationUniversalTypes.ReserveReservationResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationTypes.ReserveReservationResponse & ambassadorWixTableReservationsV1ReservationTypes.ReserveReservationResponseNonNullableFields>;
|
|
24
|
-
export declare function cancelReservation(): __PublicMethodMetaInfo<'POST', {
|
|
25
|
-
reservationId: string;
|
|
26
|
-
}, ambassadorWixTableReservationsV1ReservationUniversalTypes.CancelReservationRequest, ambassadorWixTableReservationsV1ReservationTypes.CancelReservationRequest, ambassadorWixTableReservationsV1ReservationUniversalTypes.CancelReservationResponse & ambassadorWixTableReservationsV1ReservationUniversalTypes.CancelReservationResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationTypes.CancelReservationResponse & ambassadorWixTableReservationsV1ReservationTypes.CancelReservationResponseNonNullableFields>;
|
|
27
|
-
export declare function listReservations(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixTableReservationsV1ReservationUniversalTypes.ListReservationsRequest, ambassadorWixTableReservationsV1ReservationTypes.ListReservationsRequest, ambassadorWixTableReservationsV1ReservationUniversalTypes.ListReservationsResponse & ambassadorWixTableReservationsV1ReservationUniversalTypes.ListReservationsResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationTypes.ListReservationsResponse & ambassadorWixTableReservationsV1ReservationTypes.ListReservationsResponseNonNullableFields>;
|
|
28
|
-
export declare function queryReservations(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixTableReservationsV1ReservationUniversalTypes.QueryReservationsRequest, ambassadorWixTableReservationsV1ReservationTypes.QueryReservationsRequest, ambassadorWixTableReservationsV1ReservationUniversalTypes.QueryReservationsResponse & ambassadorWixTableReservationsV1ReservationUniversalTypes.QueryReservationsResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationTypes.QueryReservationsResponse & ambassadorWixTableReservationsV1ReservationTypes.QueryReservationsResponseNonNullableFields>;
|
|
29
|
-
export declare function searchReservations(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixTableReservationsV1ReservationUniversalTypes.SearchReservationsRequest, ambassadorWixTableReservationsV1ReservationTypes.SearchReservationsRequest, ambassadorWixTableReservationsV1ReservationUniversalTypes.SearchReservationsResponse & ambassadorWixTableReservationsV1ReservationUniversalTypes.SearchReservationsResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationTypes.SearchReservationsResponse & ambassadorWixTableReservationsV1ReservationTypes.SearchReservationsResponseNonNullableFields>;
|