@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,259 +0,0 @@
|
|
|
1
|
-
import { toURLSearchParams } from '@wix/metro-runtime';
|
|
2
|
-
import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';
|
|
3
|
-
import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
|
|
4
|
-
import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
5
|
-
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
6
|
-
import { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';
|
|
7
|
-
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
8
|
-
import { resolveUrl } from '@wix/metro-runtime';
|
|
9
|
-
function resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl(opts) {
|
|
10
|
-
const domainToMappings = {
|
|
11
|
-
'www.wixapis.com': [
|
|
12
|
-
{
|
|
13
|
-
srcPath: '/table-reservations/reservation-locations',
|
|
14
|
-
destPath: '',
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
'www._base_domain_': [
|
|
18
|
-
{
|
|
19
|
-
srcPath: '/_api/table-reservations/reservation-locations',
|
|
20
|
-
destPath: '',
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
'manage._base_domain_': [
|
|
24
|
-
{
|
|
25
|
-
srcPath: '/_api/table-reservations/reservation-locations',
|
|
26
|
-
destPath: '',
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
'editor.wixapps.net': [
|
|
30
|
-
{
|
|
31
|
-
srcPath: '/_api/table-reservations/reservation-locations',
|
|
32
|
-
destPath: '',
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
'editor._base_domain_': [
|
|
36
|
-
{
|
|
37
|
-
srcPath: '/_api/table-reservations/reservation-locations',
|
|
38
|
-
destPath: '',
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
'blocks._base_domain_': [
|
|
42
|
-
{
|
|
43
|
-
srcPath: '/_api/table-reservations/reservation-locations',
|
|
44
|
-
destPath: '',
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
'create.editorx': [
|
|
48
|
-
{
|
|
49
|
-
srcPath: '/_api/table-reservations/reservation-locations',
|
|
50
|
-
destPath: '',
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
_: [
|
|
54
|
-
{
|
|
55
|
-
srcPath: '/_api/table-reservations/reservation-locations',
|
|
56
|
-
destPath: '',
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
'*.dev.wix-code.com': [
|
|
60
|
-
{
|
|
61
|
-
srcPath: '/_api/table-reservations/reservation-locations',
|
|
62
|
-
destPath: '',
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
};
|
|
66
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Retrieves a reservation location by ID.
|
|
70
|
-
*
|
|
71
|
-
* The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
|
|
72
|
-
*/
|
|
73
|
-
export function getReservationLocation(payload) {
|
|
74
|
-
function __getReservationLocation({ host }) {
|
|
75
|
-
const metadata = {
|
|
76
|
-
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
77
|
-
method: 'GET',
|
|
78
|
-
methodFqn: 'wix.table_reservations.reservation_location.v1.ReservationLocationsService.GetReservationLocation',
|
|
79
|
-
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({
|
|
80
|
-
protoPath: '/v1/reservation-locations/{reservationLocationId}',
|
|
81
|
-
data: payload,
|
|
82
|
-
host,
|
|
83
|
-
}),
|
|
84
|
-
params: toURLSearchParams(payload),
|
|
85
|
-
transformResponse: (payload) => transformPaths(payload, [
|
|
86
|
-
{
|
|
87
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
88
|
-
paths: [
|
|
89
|
-
{ path: 'reservationLocation.createdDate' },
|
|
90
|
-
{ path: 'reservationLocation.updatedDate' },
|
|
91
|
-
],
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
95
|
-
paths: [
|
|
96
|
-
{ path: 'reservationLocation.location.address.geocode.latitude' },
|
|
97
|
-
{
|
|
98
|
-
path: 'reservationLocation.location.address.geocode.longitude',
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
},
|
|
102
|
-
]),
|
|
103
|
-
};
|
|
104
|
-
return metadata;
|
|
105
|
-
}
|
|
106
|
-
return __getReservationLocation;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Updates a reservation location. Supports partial updates.
|
|
110
|
-
*
|
|
111
|
-
* Each time the reservation location is updated, `revision` increments by 1. The existing revision must be included when updating the reservation location. This ensures you're working with the latest reservation location information, and it prevents unintended overwrites.
|
|
112
|
-
*
|
|
113
|
-
* You cannot use this endpoint to change a reservation location's `location` object. Attempting to do so will cause the server to return an application error.
|
|
114
|
-
*/
|
|
115
|
-
export function updateReservationLocation(payload) {
|
|
116
|
-
function __updateReservationLocation({ host }) {
|
|
117
|
-
const serializedData = transformPaths(payload, [
|
|
118
|
-
{
|
|
119
|
-
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
120
|
-
paths: [{ path: 'mask' }],
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
124
|
-
paths: [
|
|
125
|
-
{ path: 'reservationLocation.createdDate' },
|
|
126
|
-
{ path: 'reservationLocation.updatedDate' },
|
|
127
|
-
],
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
131
|
-
paths: [
|
|
132
|
-
{ path: 'reservationLocation.location.address.geocode.latitude' },
|
|
133
|
-
{ path: 'reservationLocation.location.address.geocode.longitude' },
|
|
134
|
-
],
|
|
135
|
-
},
|
|
136
|
-
]);
|
|
137
|
-
const metadata = {
|
|
138
|
-
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
139
|
-
method: 'PATCH',
|
|
140
|
-
methodFqn: 'wix.table_reservations.reservation_location.v1.ReservationLocationsService.UpdateReservationLocation',
|
|
141
|
-
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({
|
|
142
|
-
protoPath: '/v1/reservation-locations/{reservationLocation.id}',
|
|
143
|
-
data: serializedData,
|
|
144
|
-
host,
|
|
145
|
-
}),
|
|
146
|
-
data: serializedData,
|
|
147
|
-
transformResponse: (payload) => transformPaths(payload, [
|
|
148
|
-
{
|
|
149
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
150
|
-
paths: [
|
|
151
|
-
{ path: 'reservationLocation.createdDate' },
|
|
152
|
-
{ path: 'reservationLocation.updatedDate' },
|
|
153
|
-
],
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
157
|
-
paths: [
|
|
158
|
-
{ path: 'reservationLocation.location.address.geocode.latitude' },
|
|
159
|
-
{
|
|
160
|
-
path: 'reservationLocation.location.address.geocode.longitude',
|
|
161
|
-
},
|
|
162
|
-
],
|
|
163
|
-
},
|
|
164
|
-
]),
|
|
165
|
-
};
|
|
166
|
-
return metadata;
|
|
167
|
-
}
|
|
168
|
-
return __updateReservationLocation;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Creates a query to retrieve a list of reservation locations.
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
* The `queryReservationLocations()` function builds a query to retrieve a list of reservation locations and returns a [`ReservationLocationsQueryBuilder`](#ReservationLocationsQueryBuilder) object.
|
|
175
|
-
*
|
|
176
|
-
* The returned object contains the query definition, which is used to run the query using the [find()](#ReservationLocationsQueryBuilder/find) function.
|
|
177
|
-
*
|
|
178
|
-
* You can refine the query by chaining `ReservationLocationsQueryBuilder` functions onto the query. `ReservationLocationsQueryBuilder` functions enable you to filter, sort, and control the results that `queryReservationLocations()` returns.
|
|
179
|
-
*
|
|
180
|
-
* `queryReservationLocations()` runs with the following `ReservationLocationsQueryBuilder` defaults, which you can override:
|
|
181
|
-
*
|
|
182
|
-
* * [`skip(0)`](#ReservationLocationsQueryBuilder/skip)
|
|
183
|
-
* * [`limit(50)`](#ReservationLocationsQueryBuilder/limit)
|
|
184
|
-
* * [`descending('_createdDate')`](#ReservationLocationsQueryBuilder/descending)
|
|
185
|
-
*
|
|
186
|
-
* The following `ReservationLocationsQueryBuilder` functions are supported for `queryReservationLocations()`. For a full description of the reservation location object, see the object returned for the [`items`](#ReservationLocationsQueryResult/items) property in [`ReservationLocationsQueryResult`](#ReservationLocationsQueryResult).
|
|
187
|
-
*/
|
|
188
|
-
export function queryReservationLocations(payload) {
|
|
189
|
-
function __queryReservationLocations({ host }) {
|
|
190
|
-
const metadata = {
|
|
191
|
-
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
192
|
-
method: 'POST',
|
|
193
|
-
methodFqn: 'wix.table_reservations.reservation_location.v1.ReservationLocationsService.QueryReservationLocations',
|
|
194
|
-
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({ protoPath: '/v1/reservation-locations/query', data: payload, host }),
|
|
195
|
-
data: payload,
|
|
196
|
-
transformResponse: (payload) => transformPaths(payload, [
|
|
197
|
-
{
|
|
198
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
199
|
-
paths: [
|
|
200
|
-
{ path: 'reservationLocations.createdDate' },
|
|
201
|
-
{ path: 'reservationLocations.updatedDate' },
|
|
202
|
-
],
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
206
|
-
paths: [
|
|
207
|
-
{
|
|
208
|
-
path: 'reservationLocations.location.address.geocode.latitude',
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
path: 'reservationLocations.location.address.geocode.longitude',
|
|
212
|
-
},
|
|
213
|
-
],
|
|
214
|
-
},
|
|
215
|
-
]),
|
|
216
|
-
};
|
|
217
|
-
return metadata;
|
|
218
|
-
}
|
|
219
|
-
return __queryReservationLocations;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Retrieves a list of up to 100 reservation locations.
|
|
223
|
-
*
|
|
224
|
-
* The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
|
|
225
|
-
*/
|
|
226
|
-
export function listReservationLocations(payload) {
|
|
227
|
-
function __listReservationLocations({ host }) {
|
|
228
|
-
const metadata = {
|
|
229
|
-
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
230
|
-
method: 'GET',
|
|
231
|
-
methodFqn: 'wix.table_reservations.reservation_location.v1.ReservationLocationsService.ListReservationLocations',
|
|
232
|
-
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({ protoPath: '/v1/reservation-locations', data: payload, host }),
|
|
233
|
-
params: toURLSearchParams(payload),
|
|
234
|
-
transformResponse: (payload) => transformPaths(payload, [
|
|
235
|
-
{
|
|
236
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
237
|
-
paths: [
|
|
238
|
-
{ path: 'reservationLocations.createdDate' },
|
|
239
|
-
{ path: 'reservationLocations.updatedDate' },
|
|
240
|
-
],
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
244
|
-
paths: [
|
|
245
|
-
{
|
|
246
|
-
path: 'reservationLocations.location.address.geocode.latitude',
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
path: 'reservationLocations.location.address.geocode.longitude',
|
|
250
|
-
},
|
|
251
|
-
],
|
|
252
|
-
},
|
|
253
|
-
]),
|
|
254
|
-
};
|
|
255
|
-
return metadata;
|
|
256
|
-
}
|
|
257
|
-
return __listReservationLocations;
|
|
258
|
-
}
|
|
259
|
-
//# sourceMappingURL=table-reservations-v1-reservation-location.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-reservation-location.http.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIhD,SAAS,8EAA8E,CACrF,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,2CAA2C;gBACpD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,gDAAgD;gBACzD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,gDAAgD;gBAC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M,EAAE,KAAY;YACpB,SAAS,EACP,qGAAqG;YACvG,GAAG,EAAE,8EAA8E,CACjF,EAAE,SAAS,EAAE,2BAA2B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAChE;YACD,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,oCAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,kCAAkC,EAAE;wBAC5C,EAAE,IAAI,EAAE,kCAAkC,EAAE;qBAC7C;iBACF;gBACD;oBACE,WAAW,EAAE,4BAA4B;oBACzC,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,wDAAwD;yBAC/D;wBACD;4BACE,IAAI,EAAE,yDAAyD;yBAChE;qBACF;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,0BAA0B,CAAC;AACpC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixTableReservationsV1ReservationLocationTypes from './table-reservations-v1-reservation-location.types';
|
|
2
|
-
import * as ambassadorWixTableReservationsV1ReservationLocationUniversalTypes from './table-reservations-v1-reservation-location.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 getReservationLocation(): __PublicMethodMetaInfo<'GET', {
|
|
14
|
-
reservationLocationId: string;
|
|
15
|
-
}, ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.GetReservationLocationRequest, ambassadorWixTableReservationsV1ReservationLocationTypes.GetReservationLocationRequest, ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.GetReservationLocationResponse & ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.GetReservationLocationResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationLocationTypes.GetReservationLocationResponse & ambassadorWixTableReservationsV1ReservationLocationTypes.GetReservationLocationResponseNonNullableFields>;
|
|
16
|
-
export declare function updateReservationLocation(): __PublicMethodMetaInfo<'PATCH', {
|
|
17
|
-
reservationLocationId: string;
|
|
18
|
-
}, ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.UpdateReservationLocationRequest, ambassadorWixTableReservationsV1ReservationLocationTypes.UpdateReservationLocationRequest, ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.UpdateReservationLocationResponse & ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.UpdateReservationLocationResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationLocationTypes.UpdateReservationLocationResponse & ambassadorWixTableReservationsV1ReservationLocationTypes.UpdateReservationLocationResponseNonNullableFields>;
|
|
19
|
-
export declare function queryReservationLocations(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.QueryReservationLocationsRequest, ambassadorWixTableReservationsV1ReservationLocationTypes.QueryReservationLocationsRequest, ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.QueryReservationLocationsResponse & ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.QueryReservationLocationsResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationLocationTypes.QueryReservationLocationsResponse & ambassadorWixTableReservationsV1ReservationLocationTypes.QueryReservationLocationsResponseNonNullableFields>;
|
|
20
|
-
export declare function listReservationLocations(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.ListReservationLocationsRequest, ambassadorWixTableReservationsV1ReservationLocationTypes.ListReservationLocationsRequest, ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.ListReservationLocationsResponse & ambassadorWixTableReservationsV1ReservationLocationUniversalTypes.ListReservationLocationsResponseNonNullableFields, ambassadorWixTableReservationsV1ReservationLocationTypes.ListReservationLocationsResponse & ambassadorWixTableReservationsV1ReservationLocationTypes.ListReservationLocationsResponseNonNullableFields>;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixTableReservationsV1ReservationLocation from './table-reservations-v1-reservation-location.http';
|
|
2
|
-
export function getReservationLocation() {
|
|
3
|
-
const payload = { reservationLocationId: ':reservationLocationId' };
|
|
4
|
-
const getRequestOptions = ambassadorWixTableReservationsV1ReservationLocation.getReservationLocation(payload);
|
|
5
|
-
const getUrl = (context) => {
|
|
6
|
-
const { url } = getRequestOptions(context);
|
|
7
|
-
return url;
|
|
8
|
-
};
|
|
9
|
-
return {
|
|
10
|
-
getUrl,
|
|
11
|
-
httpMethod: 'GET',
|
|
12
|
-
path: '/v1/reservation-locations/{reservationLocationId}',
|
|
13
|
-
pathParams: { reservationLocationId: 'reservationLocationId' },
|
|
14
|
-
__requestType: null,
|
|
15
|
-
__originalRequestType: null,
|
|
16
|
-
__responseType: null,
|
|
17
|
-
__originalResponseType: null,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function updateReservationLocation() {
|
|
21
|
-
const payload = {
|
|
22
|
-
reservationLocation: { id: ':reservationLocationId' },
|
|
23
|
-
};
|
|
24
|
-
const getRequestOptions = ambassadorWixTableReservationsV1ReservationLocation.updateReservationLocation(payload);
|
|
25
|
-
const getUrl = (context) => {
|
|
26
|
-
const { url } = getRequestOptions(context);
|
|
27
|
-
return url;
|
|
28
|
-
};
|
|
29
|
-
return {
|
|
30
|
-
getUrl,
|
|
31
|
-
httpMethod: 'PATCH',
|
|
32
|
-
path: '/v1/reservation-locations/{reservationLocation.id}',
|
|
33
|
-
pathParams: { reservationLocationId: 'reservationLocationId' },
|
|
34
|
-
__requestType: null,
|
|
35
|
-
__originalRequestType: null,
|
|
36
|
-
__responseType: null,
|
|
37
|
-
__originalResponseType: null,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export function queryReservationLocations() {
|
|
41
|
-
const payload = {};
|
|
42
|
-
const getRequestOptions = ambassadorWixTableReservationsV1ReservationLocation.queryReservationLocations(payload);
|
|
43
|
-
const getUrl = (context) => {
|
|
44
|
-
const { url } = getRequestOptions(context);
|
|
45
|
-
return url;
|
|
46
|
-
};
|
|
47
|
-
return {
|
|
48
|
-
getUrl,
|
|
49
|
-
httpMethod: 'POST',
|
|
50
|
-
path: '/v1/reservation-locations/query',
|
|
51
|
-
pathParams: {},
|
|
52
|
-
__requestType: null,
|
|
53
|
-
__originalRequestType: null,
|
|
54
|
-
__responseType: null,
|
|
55
|
-
__originalResponseType: null,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
export function listReservationLocations() {
|
|
59
|
-
const payload = {};
|
|
60
|
-
const getRequestOptions = ambassadorWixTableReservationsV1ReservationLocation.listReservationLocations(payload);
|
|
61
|
-
const getUrl = (context) => {
|
|
62
|
-
const { url } = getRequestOptions(context);
|
|
63
|
-
return url;
|
|
64
|
-
};
|
|
65
|
-
return {
|
|
66
|
-
getUrl,
|
|
67
|
-
httpMethod: 'GET',
|
|
68
|
-
path: '/v1/reservation-locations',
|
|
69
|
-
pathParams: {},
|
|
70
|
-
__requestType: null,
|
|
71
|
-
__originalRequestType: null,
|
|
72
|
-
__responseType: null,
|
|
73
|
-
__originalResponseType: null,
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=table-reservations-v1-reservation-location.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-reservation-location.meta.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,mDAAmD,MAAM,mDAAmD,CAAC;AAsBzH,MAAM,UAAU,sBAAsB;IAUpC,MA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ACrB,mDAAmD,CAAC,yBAAyB,CAC3E,OAAO,CACR,CAAC;IAEJ,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,iCAAiC;QACvC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB;IAUtC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,mDAAmD,CAAC,wBAAwB,CAC1E,OAAO,CACR,CAAC;IAEJ,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,2BAA2B;QACjC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { UpdateReservationLocation, GetReservationLocationOptions, ListReservationLocationsOptions, QueryReservationLocationsOptions } from './table-reservations-v1-reservation-location.universal';
|
|
3
|
-
export declare const __metadata: {
|
|
4
|
-
PACKAGE_NAME: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function getReservationLocation(httpClient: HttpClient): (reservationLocationId: string, options?: GetReservationLocationOptions) => Promise<import("./table-reservations-v1-reservation-location.universal").ReservationLocation & {
|
|
7
|
-
configuration?: {
|
|
8
|
-
onlineReservations?: {
|
|
9
|
-
seatPacing?: {
|
|
10
|
-
number: number;
|
|
11
|
-
enabled: boolean;
|
|
12
|
-
} | undefined;
|
|
13
|
-
partyPacing?: {
|
|
14
|
-
number: number;
|
|
15
|
-
enabled: boolean;
|
|
16
|
-
} | undefined;
|
|
17
|
-
partySize?: {
|
|
18
|
-
min: number;
|
|
19
|
-
max: number;
|
|
20
|
-
} | undefined;
|
|
21
|
-
minimumReservationNotice?: {
|
|
22
|
-
number: number;
|
|
23
|
-
unit: import("./table-reservations-v1-reservation-location.universal").Unit;
|
|
24
|
-
} | undefined;
|
|
25
|
-
turnoverTimeRules: {
|
|
26
|
-
seatsMin: number;
|
|
27
|
-
seatsMax: number;
|
|
28
|
-
minutes: number;
|
|
29
|
-
}[];
|
|
30
|
-
businessSchedule?: {
|
|
31
|
-
periods: {
|
|
32
|
-
openDay: import("./table-reservations-v1-reservation-location.universal").DayOfWeek;
|
|
33
|
-
openTime: string;
|
|
34
|
-
closeDay: import("./table-reservations-v1-reservation-location.universal").DayOfWeek;
|
|
35
|
-
closeTime: string;
|
|
36
|
-
}[];
|
|
37
|
-
specialHourPeriod: {
|
|
38
|
-
startDate: string;
|
|
39
|
-
endDate: string;
|
|
40
|
-
isClosed: boolean;
|
|
41
|
-
comment: string;
|
|
42
|
-
}[];
|
|
43
|
-
} | undefined;
|
|
44
|
-
manualApproval?: {
|
|
45
|
-
partySizeThreshold: number;
|
|
46
|
-
customApprovalsProviderId: string;
|
|
47
|
-
enabled: boolean;
|
|
48
|
-
} | undefined;
|
|
49
|
-
} | undefined;
|
|
50
|
-
reservationForm?: {
|
|
51
|
-
termsAndConditions?: {
|
|
52
|
-
url: string;
|
|
53
|
-
enabled: boolean;
|
|
54
|
-
} | undefined;
|
|
55
|
-
privacyPolicy?: {
|
|
56
|
-
url: string;
|
|
57
|
-
enabled: boolean;
|
|
58
|
-
} | undefined;
|
|
59
|
-
customFieldDefinitions: {
|
|
60
|
-
name: string;
|
|
61
|
-
required: boolean;
|
|
62
|
-
}[];
|
|
63
|
-
emailMarketingCheckbox?: {
|
|
64
|
-
enabled: boolean;
|
|
65
|
-
checkedByDefault: boolean;
|
|
66
|
-
} | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
myReservationsFields: {
|
|
69
|
-
fieldType: import("./table-reservations-v1-reservation-location.universal").FieldType;
|
|
70
|
-
shown: boolean;
|
|
71
|
-
}[];
|
|
72
|
-
tableManagement?: {
|
|
73
|
-
tableDefinitions: {
|
|
74
|
-
name: string;
|
|
75
|
-
seatsMin: number;
|
|
76
|
-
seatsMax: number;
|
|
77
|
-
}[];
|
|
78
|
-
deletedTableDefinitions: {
|
|
79
|
-
name: string;
|
|
80
|
-
seatsMin: number;
|
|
81
|
-
seatsMax: number;
|
|
82
|
-
}[];
|
|
83
|
-
tableCombinations: {
|
|
84
|
-
seatsMin: number;
|
|
85
|
-
seatsMax: number;
|
|
86
|
-
}[];
|
|
87
|
-
} | undefined;
|
|
88
|
-
} | undefined;
|
|
89
|
-
}>;
|
|
90
|
-
export declare function updateReservationLocation(httpClient: HttpClient): (_id: string | null, reservationLocation: UpdateReservationLocation) => Promise<import("./table-reservations-v1-reservation-location.universal").ReservationLocation & {
|
|
91
|
-
configuration?: {
|
|
92
|
-
onlineReservations?: {
|
|
93
|
-
seatPacing?: {
|
|
94
|
-
number: number;
|
|
95
|
-
enabled: boolean;
|
|
96
|
-
} | undefined;
|
|
97
|
-
partyPacing?: {
|
|
98
|
-
number: number;
|
|
99
|
-
enabled: boolean;
|
|
100
|
-
} | undefined;
|
|
101
|
-
partySize?: {
|
|
102
|
-
min: number;
|
|
103
|
-
max: number;
|
|
104
|
-
} | undefined;
|
|
105
|
-
minimumReservationNotice?: {
|
|
106
|
-
number: number;
|
|
107
|
-
unit: import("./table-reservations-v1-reservation-location.universal").Unit;
|
|
108
|
-
} | undefined;
|
|
109
|
-
turnoverTimeRules: {
|
|
110
|
-
seatsMin: number;
|
|
111
|
-
seatsMax: number;
|
|
112
|
-
minutes: number;
|
|
113
|
-
}[];
|
|
114
|
-
businessSchedule?: {
|
|
115
|
-
periods: {
|
|
116
|
-
openDay: import("./table-reservations-v1-reservation-location.universal").DayOfWeek;
|
|
117
|
-
openTime: string;
|
|
118
|
-
closeDay: import("./table-reservations-v1-reservation-location.universal").DayOfWeek;
|
|
119
|
-
closeTime: string;
|
|
120
|
-
}[];
|
|
121
|
-
specialHourPeriod: {
|
|
122
|
-
startDate: string;
|
|
123
|
-
endDate: string;
|
|
124
|
-
isClosed: boolean;
|
|
125
|
-
comment: string;
|
|
126
|
-
}[];
|
|
127
|
-
} | undefined;
|
|
128
|
-
manualApproval?: {
|
|
129
|
-
partySizeThreshold: number;
|
|
130
|
-
customApprovalsProviderId: string;
|
|
131
|
-
enabled: boolean;
|
|
132
|
-
} | undefined;
|
|
133
|
-
} | undefined;
|
|
134
|
-
reservationForm?: {
|
|
135
|
-
termsAndConditions?: {
|
|
136
|
-
url: string;
|
|
137
|
-
enabled: boolean;
|
|
138
|
-
} | undefined;
|
|
139
|
-
privacyPolicy?: {
|
|
140
|
-
url: string;
|
|
141
|
-
enabled: boolean;
|
|
142
|
-
} | undefined;
|
|
143
|
-
customFieldDefinitions: {
|
|
144
|
-
name: string;
|
|
145
|
-
required: boolean;
|
|
146
|
-
}[];
|
|
147
|
-
emailMarketingCheckbox?: {
|
|
148
|
-
enabled: boolean;
|
|
149
|
-
checkedByDefault: boolean;
|
|
150
|
-
} | undefined;
|
|
151
|
-
} | undefined;
|
|
152
|
-
myReservationsFields: {
|
|
153
|
-
fieldType: import("./table-reservations-v1-reservation-location.universal").FieldType;
|
|
154
|
-
shown: boolean;
|
|
155
|
-
}[];
|
|
156
|
-
tableManagement?: {
|
|
157
|
-
tableDefinitions: {
|
|
158
|
-
name: string;
|
|
159
|
-
seatsMin: number;
|
|
160
|
-
seatsMax: number;
|
|
161
|
-
}[];
|
|
162
|
-
deletedTableDefinitions: {
|
|
163
|
-
name: string;
|
|
164
|
-
seatsMin: number;
|
|
165
|
-
seatsMax: number;
|
|
166
|
-
}[];
|
|
167
|
-
tableCombinations: {
|
|
168
|
-
seatsMin: number;
|
|
169
|
-
seatsMax: number;
|
|
170
|
-
}[];
|
|
171
|
-
} | undefined;
|
|
172
|
-
} | undefined;
|
|
173
|
-
}>;
|
|
174
|
-
export declare function queryReservationLocations(httpClient: HttpClient): (options?: QueryReservationLocationsOptions) => import("./table-reservations-v1-reservation-location.universal").ReservationLocationsQueryBuilder;
|
|
175
|
-
export declare function listReservationLocations(httpClient: HttpClient): (options?: ListReservationLocationsOptions) => Promise<import("./table-reservations-v1-reservation-location.universal").ListReservationLocationsResponse & import("./table-reservations-v1-reservation-location.universal").ListReservationLocationsResponseNonNullableFields>;
|
|
176
|
-
export { DayOfWeek, Unit, FieldType, Set, SortOrder, Mode, State, SiteCreatedContext, Namespace, DeleteStatus, PlacementType, V4DayOfWeek, ResolutionMethod, FeaturePeriod, } from './table-reservations-v1-reservation-location.universal';
|
|
177
|
-
export { ReservationLocation, StreetAddress, AddressLocation, Address, BusinessSchedule, TimePeriod, SpecialHourPeriod, TableDefinition, TableCombination, SeatPacing, PartyPacing, PartiesSize, PartySize, NoticePeriod, TurnoverTimeRule, TurnoverRule, ManualApproval, ManualApprovalValueOneOf, TermsAndConditions, TermsAndConditionsValueOneOf, PrivacyPolicy, PrivacyPolicyValueOneOf, CustomFieldDefinition, EmailMarketingCheckbox, OnlineReservations, ReservationForm, MyReservationsField, TableManagement, ReservationPayment, Location, Configuration, InvalidateCache, InvalidateCacheGetByOneOf, App, Page, URI, GetReservationLocationRequest, GetReservationLocationResponse, UpdateReservationLocationRequest, UpdateReservationLocationResponse, TablesDeleted, QueryReservationLocationsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryReservationLocationsResponse, PagingMetadataV2, Cursors, ListReservationLocationsRequest, ListReservationLocationsResponse, CursorPagingMetadata, DeleteOrphanReservationLocationRequest, DeleteOrphanReservationLocationResponse, MigrateOldRestaurantSettingsRequest, MigrateOldRestaurantSettingsResponse, ParsedSettings, OldScheduleInterval, OldCustomField, OldPolicy, OldTerms, OldScheduleException, OldInstant, MigrationParsingError, MigrationResult, CheckReservationLocationsCreatedRequest, CheckReservationLocationsCreatedResponse, DomainEvent, DomainCreatedEvent, DomainDeletedEvent, DomainUpdatedEvent, DomainActionEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Asset, SiteCreated, SiteTransferred, SiteDeleted, DeleteContext, SiteUndeleted, SitePublished, SiteUnpublished, SiteMarkedAsTemplate, SiteMarkedAsWixSite, ServiceProvisioned, ServiceRemoved, SiteRenamed, SiteHardDeleted, NamespaceChanged, StudioAssigned, StudioUnassigned, SitePropertiesNotification, SitePropertiesEvent, Properties, Categories, Locale, V4Address, AddressHint, GeoCoordinates, V4BusinessSchedule, V4TimePeriod, V4SpecialHourPeriod, Multilingual, SupportedLanguage, ConsentPolicy, Translation, ChangeContext, ChangeContextPayloadOneOf, PropertiesChange, V4SiteCreated, SiteCloned, FeatureEvent, FeatureEventEventOneOf, FeatureEnabled, FeatureEnabledReasonOneOf, Feature, FeatureQuantityInfoOneOf, FeatureContext, BooleanFeature, QuotaFeature, QuotaInfo, TransferredFromAnotherAccountReason, ReassignedFromSiteReason, AssignedFromFloatingReason, NewFeatureReason, ContractSwitchedReason, ManualFeatureCreationReason, MigratedFromLegacyReason, FeatureDisabled, FeatureDisabledReasonOneOf, UnAssingedToFloatingReason, ReplacedByAnotherSubscriptionReason, ReassignedToAnotherSiteReason, FeatureUpdated, FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf, FeatureCancelled, FeatureCancelledReasonOneOf, TransferredToAnotherAccountReason, CancelRequestedReason, GetReservationLocationResponseNonNullableFields, UpdateReservationLocationResponseNonNullableFields, QueryReservationLocationsResponseNonNullableFields, ListReservationLocationsResponseNonNullableFields, GetReservationLocationOptions, UpdateReservationLocation, QueryReservationLocationsOptions, ReservationLocationsQueryResult, ReservationLocationsQueryBuilder, ListReservationLocationsOptions, } from './table-reservations-v1-reservation-location.universal';
|
|
178
|
-
export { onReservationLocationUpdated, onReservationLocationCreated, } from './table-reservations-v1-reservation-location.universal';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getReservationLocation as universalGetReservationLocation, updateReservationLocation as universalUpdateReservationLocation, queryReservationLocations as universalQueryReservationLocations, listReservationLocations as universalListReservationLocations, } from './table-reservations-v1-reservation-location.universal';
|
|
2
|
-
export const __metadata = { PACKAGE_NAME: '@wix/table-reservations' };
|
|
3
|
-
export function getReservationLocation(httpClient) {
|
|
4
|
-
return (reservationLocationId, options) => universalGetReservationLocation(reservationLocationId, options,
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
{ httpClient });
|
|
7
|
-
}
|
|
8
|
-
export function updateReservationLocation(httpClient) {
|
|
9
|
-
return (_id, reservationLocation) => universalUpdateReservationLocation(_id, reservationLocation,
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
{ httpClient });
|
|
12
|
-
}
|
|
13
|
-
export function queryReservationLocations(httpClient) {
|
|
14
|
-
return (options) => universalQueryReservationLocations(options,
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
{ httpClient });
|
|
17
|
-
}
|
|
18
|
-
export function listReservationLocations(httpClient) {
|
|
19
|
-
return (options) => universalListReservationLocations(options,
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
{ httpClient });
|
|
22
|
-
}
|
|
23
|
-
export { DayOfWeek, Unit, FieldType, Set, SortOrder, Mode, State, SiteCreatedContext, Namespace, DeleteStatus, PlacementType, V4DayOfWeek, ResolutionMethod, FeaturePeriod, } from './table-reservations-v1-reservation-location.universal';
|
|
24
|
-
export { onReservationLocationUpdated, onReservationLocationCreated, } from './table-reservations-v1-reservation-location.universal';
|
|
25
|
-
//# sourceMappingURL=table-reservations-v1-reservation-location.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-reservation-location.public.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,sBAAsB,IAAI,+BAA+B,EACzD,yBAAyB,IAAI,kCAAkC,EAC/D,yBAAyB,IAAI,kCAAkC,EAC/D,wBAAwB,IAAI,iCAAiC,GAK9D,MAAM,wDAAwD,CAAC;AAEhE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,yBAAyB,EAAE,CAAC;AAEtE,MAAM,UAAU,sBAAsB,CAAC,UAAsB;IAC3D,OAAO,CACL,qBAA6B,EAC7B,OAAuC,EACvC,EAAE,CACF,+BAA+B,CAC7B,qBAAqB,EACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,UAAsB;IAC9D,OAAO,CAAC,GAAkB,EAAE,mBAA8C,EAAE,EAAE,CAC5E,kCAAkC,CAChC,GAAG,EACH,mBAAmB;IACnB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,UAAsB;IAC9D,OAAO,CAAC,OAA0C,EAAE,EAAE,CACpD,kCAAkC,CAChC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,UAAsB;IAC7D,OAAO,CAAC,OAAyC,EAAE,EAAE,CACnD,iCAAiC,CAC/B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,SAAS,EACT,IAAI,EACJ,SAAS,EACT,GAAG,EACH,SAAS,EACT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