@wix/table-reservations 1.0.0
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 +2 -0
- package/build/cjs/index.js +25 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +2 -0
- package/build/cjs/index.typings.js +25 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -0
- package/build/cjs/meta.js +25 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.http.d.ts +21 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.http.js +219 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.http.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.d.ts +20 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.js +102 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.public.d.ts +11 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.public.js +41 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.public.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.types.d.ts +1465 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.types.js +142 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.types.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.universal.d.ts +1455 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.universal.js +488 -0
- package/build/cjs/src/table-reservations-v1-reservation-location.universal.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation.http.d.ts +36 -0
- package/build/cjs/src/table-reservations-v1-reservation.http.js +346 -0
- package/build/cjs/src/table-reservations-v1-reservation.http.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation.meta.d.ts +28 -0
- package/build/cjs/src/table-reservations-v1-reservation.meta.js +176 -0
- package/build/cjs/src/table-reservations-v1-reservation.meta.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation.public.d.ts +15 -0
- package/build/cjs/src/table-reservations-v1-reservation.public.js +61 -0
- package/build/cjs/src/table-reservations-v1-reservation.public.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation.types.d.ts +477 -0
- package/build/cjs/src/table-reservations-v1-reservation.types.js +58 -0
- package/build/cjs/src/table-reservations-v1-reservation.types.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation.universal.d.ts +699 -0
- package/build/cjs/src/table-reservations-v1-reservation.universal.js +607 -0
- package/build/cjs/src/table-reservations-v1-reservation.universal.js.map +1 -0
- package/build/es/index.d.ts +2 -0
- package/build/es/index.js +3 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +2 -0
- package/build/es/index.typings.js +3 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +2 -0
- package/build/es/meta.js +3 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation-location.http.d.ts +21 -0
- package/build/es/src/table-reservations-v1-reservation-location.http.js +212 -0
- package/build/es/src/table-reservations-v1-reservation-location.http.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation-location.meta.d.ts +20 -0
- package/build/es/src/table-reservations-v1-reservation-location.meta.js +76 -0
- package/build/es/src/table-reservations-v1-reservation-location.meta.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation-location.public.d.ts +11 -0
- package/build/es/src/table-reservations-v1-reservation-location.public.js +24 -0
- package/build/es/src/table-reservations-v1-reservation-location.public.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation-location.types.d.ts +1465 -0
- package/build/es/src/table-reservations-v1-reservation-location.types.js +139 -0
- package/build/es/src/table-reservations-v1-reservation-location.types.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation-location.universal.d.ts +1455 -0
- package/build/es/src/table-reservations-v1-reservation-location.universal.js +462 -0
- package/build/es/src/table-reservations-v1-reservation-location.universal.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation.http.d.ts +36 -0
- package/build/es/src/table-reservations-v1-reservation.http.js +335 -0
- package/build/es/src/table-reservations-v1-reservation.http.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation.meta.d.ts +28 -0
- package/build/es/src/table-reservations-v1-reservation.meta.js +146 -0
- package/build/es/src/table-reservations-v1-reservation.meta.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation.public.d.ts +15 -0
- package/build/es/src/table-reservations-v1-reservation.public.js +44 -0
- package/build/es/src/table-reservations-v1-reservation.public.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation.types.d.ts +477 -0
- package/build/es/src/table-reservations-v1-reservation.types.js +55 -0
- package/build/es/src/table-reservations-v1-reservation.types.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation.universal.d.ts +699 -0
- package/build/es/src/table-reservations-v1-reservation.universal.js +577 -0
- package/build/es/src/table-reservations-v1-reservation.universal.js.map +1 -0
- package/meta/package.json +6 -0
- package/package.json +38 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,8CAA8C,CAAC;AAC7E,OAAO,KAAK,oBAAoB,MAAM,uDAAuD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
import { GetReservationLocationRequest, GetReservationLocationResponse, ListReservationLocationsRequest, ListReservationLocationsResponse, QueryReservationLocationsRequest, QueryReservationLocationsResponse, UpdateReservationLocationRequest, UpdateReservationLocationResponse, GetReservationLocationResponseNonNullableFields, UpdateReservationLocationResponseNonNullableFields, QueryReservationLocationsResponseNonNullableFields, ListReservationLocationsResponseNonNullableFields } from './table-reservations-v1-reservation-location.types';
|
|
3
|
+
/** Retrieves a reservation location by ID. */
|
|
4
|
+
export declare function getReservationLocation(payload: GetReservationLocationRequest): RequestOptionsFactory<GetReservationLocationResponse & GetReservationLocationResponseNonNullableFields>;
|
|
5
|
+
/**
|
|
6
|
+
* Updates a reservation location. Supports partial updates.
|
|
7
|
+
*
|
|
8
|
+
* 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.
|
|
9
|
+
*
|
|
10
|
+
* 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.
|
|
11
|
+
*/
|
|
12
|
+
export declare function updateReservationLocation(payload: UpdateReservationLocationRequest): RequestOptionsFactory<UpdateReservationLocationResponse & UpdateReservationLocationResponseNonNullableFields>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves a list of reservation locations given the provided paging, filtering, and sorting. Up to 100 reservation locations can be returned per request.
|
|
15
|
+
*
|
|
16
|
+
* For a detailed list of supported operations, see the [Supported filters and sorting](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservation-locations/supported-filters-and-sorting) article.
|
|
17
|
+
* To learn how to query reservation locations, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
18
|
+
*/
|
|
19
|
+
export declare function queryReservationLocations(payload: QueryReservationLocationsRequest): RequestOptionsFactory<QueryReservationLocationsResponse & QueryReservationLocationsResponseNonNullableFields>;
|
|
20
|
+
/** Retrieves a list of up to 100 reservation locations. */
|
|
21
|
+
export declare function listReservationLocations(payload: ListReservationLocationsRequest): RequestOptionsFactory<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { toURLSearchParams } from '@wix/metro-runtime';
|
|
2
|
+
import { serializer } from '@wix/metro-runtime/ambassador';
|
|
3
|
+
import { resolveUrl } from '@wix/metro-runtime';
|
|
4
|
+
const _address = { geocode: '_addressLocation' };
|
|
5
|
+
const _addressLocation = {
|
|
6
|
+
latitude: 'google.protobuf.DoubleValue',
|
|
7
|
+
longitude: 'google.protobuf.DoubleValue',
|
|
8
|
+
};
|
|
9
|
+
const _getReservationLocationRequest = {};
|
|
10
|
+
const _getReservationLocationResponse = {
|
|
11
|
+
reservationLocation: '_reservationLocation',
|
|
12
|
+
};
|
|
13
|
+
const _listReservationLocationsRequest = {};
|
|
14
|
+
const _listReservationLocationsResponse = {
|
|
15
|
+
reservationLocations: '_reservationLocation',
|
|
16
|
+
};
|
|
17
|
+
const _location = { address: '_address' };
|
|
18
|
+
const _queryReservationLocationsRequest = {};
|
|
19
|
+
const _queryReservationLocationsResponse = {
|
|
20
|
+
reservationLocations: '_reservationLocation',
|
|
21
|
+
};
|
|
22
|
+
const _reservationLocation = {
|
|
23
|
+
createdDate: 'google.protobuf.Timestamp',
|
|
24
|
+
updatedDate: 'google.protobuf.Timestamp',
|
|
25
|
+
location: '_location',
|
|
26
|
+
};
|
|
27
|
+
const _updateReservationLocationRequest = {
|
|
28
|
+
mask: 'google.protobuf.FieldMask',
|
|
29
|
+
reservationLocation: '_reservationLocation',
|
|
30
|
+
};
|
|
31
|
+
const _updateReservationLocationResponse = {
|
|
32
|
+
reservationLocation: '_reservationLocation',
|
|
33
|
+
};
|
|
34
|
+
function resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl(opts) {
|
|
35
|
+
const domainToMappings = {
|
|
36
|
+
'www.wixapis.com': [
|
|
37
|
+
{
|
|
38
|
+
srcPath: '/table-reservations/reservation-locations',
|
|
39
|
+
destPath: '',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
'www._base_domain_': [
|
|
43
|
+
{
|
|
44
|
+
srcPath: '/_api/table-reservations/reservation-locations',
|
|
45
|
+
destPath: '',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
'manage._base_domain_': [
|
|
49
|
+
{
|
|
50
|
+
srcPath: '/_api/table-reservations/reservation-locations',
|
|
51
|
+
destPath: '',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
'editor.wixapps.net': [
|
|
55
|
+
{
|
|
56
|
+
srcPath: '/_api/table-reservations/reservation-locations',
|
|
57
|
+
destPath: '',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
'editor._base_domain_': [
|
|
61
|
+
{
|
|
62
|
+
srcPath: '/_api/table-reservations/reservation-locations',
|
|
63
|
+
destPath: '',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
'blocks._base_domain_': [
|
|
67
|
+
{
|
|
68
|
+
srcPath: '/_api/table-reservations/reservation-locations',
|
|
69
|
+
destPath: '',
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
'create.editorx': [
|
|
73
|
+
{
|
|
74
|
+
srcPath: '/_api/table-reservations/reservation-locations',
|
|
75
|
+
destPath: '',
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
_: [
|
|
79
|
+
{
|
|
80
|
+
srcPath: '/_api/table-reservations/reservation-locations',
|
|
81
|
+
destPath: '',
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
'*.dev.wix-code.com': [
|
|
85
|
+
{
|
|
86
|
+
srcPath: '/_api/table-reservations/reservation-locations',
|
|
87
|
+
destPath: '',
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
};
|
|
91
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
92
|
+
}
|
|
93
|
+
/** Retrieves a reservation location by ID. */
|
|
94
|
+
export function getReservationLocation(payload) {
|
|
95
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_getReservationLocationRequest, {});
|
|
96
|
+
const { fromJSON: fromRes } = serializer(_getReservationLocationResponse, {
|
|
97
|
+
_address,
|
|
98
|
+
_addressLocation,
|
|
99
|
+
_location,
|
|
100
|
+
_reservationLocation,
|
|
101
|
+
});
|
|
102
|
+
function __getReservationLocation({ host }) {
|
|
103
|
+
const serializedData = toReq(payload);
|
|
104
|
+
const metadata = {
|
|
105
|
+
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
106
|
+
method: 'GET',
|
|
107
|
+
methodFqn: 'wix.table_reservations.reservation_location.v1.ReservationLocationsService.GetReservationLocation',
|
|
108
|
+
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({
|
|
109
|
+
protoPath: '/v1/reservation-locations/{reservationLocationId}',
|
|
110
|
+
data: serializedData,
|
|
111
|
+
host,
|
|
112
|
+
}),
|
|
113
|
+
params: toURLSearchParams(serializedData),
|
|
114
|
+
transformResponse: fromRes,
|
|
115
|
+
};
|
|
116
|
+
return metadata;
|
|
117
|
+
}
|
|
118
|
+
__getReservationLocation.fromReq = fromReq;
|
|
119
|
+
return __getReservationLocation;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Updates a reservation location. Supports partial updates.
|
|
123
|
+
*
|
|
124
|
+
* 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.
|
|
125
|
+
*
|
|
126
|
+
* 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.
|
|
127
|
+
*/
|
|
128
|
+
export function updateReservationLocation(payload) {
|
|
129
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_updateReservationLocationRequest, { _address, _addressLocation, _location, _reservationLocation });
|
|
130
|
+
const { fromJSON: fromRes } = serializer(_updateReservationLocationResponse, {
|
|
131
|
+
_address,
|
|
132
|
+
_addressLocation,
|
|
133
|
+
_location,
|
|
134
|
+
_reservationLocation,
|
|
135
|
+
});
|
|
136
|
+
function __updateReservationLocation({ host }) {
|
|
137
|
+
const serializedData = toReq(payload);
|
|
138
|
+
const metadata = {
|
|
139
|
+
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
140
|
+
method: 'PATCH',
|
|
141
|
+
methodFqn: 'wix.table_reservations.reservation_location.v1.ReservationLocationsService.UpdateReservationLocation',
|
|
142
|
+
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({
|
|
143
|
+
protoPath: '/v1/reservation-locations/{reservationLocation.id}',
|
|
144
|
+
data: serializedData,
|
|
145
|
+
host,
|
|
146
|
+
}),
|
|
147
|
+
data: serializedData,
|
|
148
|
+
transformResponse: fromRes,
|
|
149
|
+
};
|
|
150
|
+
return metadata;
|
|
151
|
+
}
|
|
152
|
+
__updateReservationLocation.fromReq = fromReq;
|
|
153
|
+
return __updateReservationLocation;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Retrieves a list of reservation locations given the provided paging, filtering, and sorting. Up to 100 reservation locations can be returned per request.
|
|
157
|
+
*
|
|
158
|
+
* For a detailed list of supported operations, see the [Supported filters and sorting](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservation-locations/supported-filters-and-sorting) article.
|
|
159
|
+
* To learn how to query reservation locations, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
160
|
+
*/
|
|
161
|
+
export function queryReservationLocations(payload) {
|
|
162
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryReservationLocationsRequest, {});
|
|
163
|
+
const { fromJSON: fromRes } = serializer(_queryReservationLocationsResponse, {
|
|
164
|
+
_address,
|
|
165
|
+
_addressLocation,
|
|
166
|
+
_location,
|
|
167
|
+
_reservationLocation,
|
|
168
|
+
});
|
|
169
|
+
function __queryReservationLocations({ host }) {
|
|
170
|
+
const serializedData = toReq(payload);
|
|
171
|
+
const metadata = {
|
|
172
|
+
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
173
|
+
method: 'POST',
|
|
174
|
+
methodFqn: 'wix.table_reservations.reservation_location.v1.ReservationLocationsService.QueryReservationLocations',
|
|
175
|
+
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({
|
|
176
|
+
protoPath: '/v1/reservation-locations/query',
|
|
177
|
+
data: serializedData,
|
|
178
|
+
host,
|
|
179
|
+
}),
|
|
180
|
+
data: serializedData,
|
|
181
|
+
transformResponse: fromRes,
|
|
182
|
+
};
|
|
183
|
+
return metadata;
|
|
184
|
+
}
|
|
185
|
+
__queryReservationLocations.fromReq = fromReq;
|
|
186
|
+
return __queryReservationLocations;
|
|
187
|
+
}
|
|
188
|
+
/** Retrieves a list of up to 100 reservation locations. */
|
|
189
|
+
export function listReservationLocations(payload) {
|
|
190
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_listReservationLocationsRequest, {});
|
|
191
|
+
const { fromJSON: fromRes } = serializer(_listReservationLocationsResponse, {
|
|
192
|
+
_address,
|
|
193
|
+
_addressLocation,
|
|
194
|
+
_location,
|
|
195
|
+
_reservationLocation,
|
|
196
|
+
});
|
|
197
|
+
function __listReservationLocations({ host }) {
|
|
198
|
+
const serializedData = toReq(payload);
|
|
199
|
+
const metadata = {
|
|
200
|
+
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
201
|
+
method: 'GET',
|
|
202
|
+
methodFqn: 'wix.table_reservations.reservation_location.v1.ReservationLocationsService.ListReservationLocations',
|
|
203
|
+
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({ protoPath: '/v1/reservation-locations', data: serializedData, host }),
|
|
204
|
+
params: toURLSearchParams(serializedData),
|
|
205
|
+
transformResponse: fromRes,
|
|
206
|
+
};
|
|
207
|
+
return metadata;
|
|
208
|
+
}
|
|
209
|
+
__listReservationLocations.fromReq = fromReq;
|
|
210
|
+
return __listReservationLocations;
|
|
211
|
+
}
|
|
212
|
+
//# sourceMappingURL=table-reservations-v1-reservation-location.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAkBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kB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B,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,0BAA0B,CAAC,OAAO,GAAG,OAAO,CAAC;IAE7C,OAAO,0BAA0B,CAAC;AACpC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as ambassadorWixTableReservationsV1ReservationLocationTypes from './table-reservations-v1-reservation-location.types';
|
|
2
|
+
import * as ambassadorWixTableReservationsV1ReservationLocationUniversalTypes from './table-reservations-v1-reservation-location.universal';
|
|
3
|
+
export declare 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>;
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,MAAM,OAAO,GAAG,EAAE,qBAAqB,EAAE,wBAAwB,EAAS,CAAC;IAE3E,MAAM,iBAAiB,GACrB,mDAAmD,CAAC,sBAAsB,CACxE,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,mDAAmD;QACzD,UAAU,EAAE,EAAE,qBAAqB,EAAE,uBAAuB,EAAE;QAC9D,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sB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B,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 | undefined) => Promise<import("./table-reservations-v1-reservation-location.universal").GetReservationLocationResponse & import("./table-reservations-v1-reservation-location.universal").GetReservationLocationResponseNonNullableFields>;
|
|
7
|
+
export declare function updateReservationLocation(httpClient: HttpClient): (_id: string | null, reservationLocation: UpdateReservationLocation) => Promise<import("./table-reservations-v1-reservation-location.universal").UpdateReservationLocationResponse & import("./table-reservations-v1-reservation-location.universal").UpdateReservationLocationResponseNonNullableFields>;
|
|
8
|
+
export declare function queryReservationLocations(httpClient: HttpClient): (options?: QueryReservationLocationsOptions | undefined) => import("./table-reservations-v1-reservation-location.universal").ReservationLocationsQueryBuilder;
|
|
9
|
+
export declare function listReservationLocations(httpClient: HttpClient): (options?: ListReservationLocationsOptions | undefined) => Promise<import("./table-reservations-v1-reservation-location.universal").ListReservationLocationsResponse & import("./table-reservations-v1-reservation-location.universal").ListReservationLocationsResponseNonNullableFields>;
|
|
10
|
+
export { DayOfWeek, Unit, FieldType, Set, SortOrder, Mode, State, SiteCreatedContext, Namespace, DeleteStatus, } from './table-reservations-v1-reservation-location.universal';
|
|
11
|
+
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, 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, MigrationParsingError, MigrationResult, CheckReservationLocationsCreatedRequest, CheckReservationLocationsCreatedResponse, DomainEvent, 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, GetReservationLocationResponseNonNullableFields, UpdateReservationLocationResponseNonNullableFields, QueryReservationLocationsResponseNonNullableFields, ListReservationLocationsResponseNonNullableFields, GetReservationLocationOptions, UpdateReservationLocation, QueryReservationLocationsOptions, ReservationLocationsQueryResult, ReservationLocationsQueryBuilder, ListReservationLocationsOptions, } from './table-reservations-v1-reservation-location.universal';
|
|
@@ -0,0 +1,24 @@
|
|
|
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, } from './table-reservations-v1-reservation-location.universal';
|
|
24
|
+
//# sourceMappingURL=table-reservations-v1-reservation-location.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,IAAI,EACJ,KAAK,EACL,kBAAkB,EAClB,SAAS,EACT,YAAY,GACb,MAAM,wDAAwD,CAAC"}
|