@wix/auto_sdk_seatings_seating-reservation 1.0.4 → 1.0.6
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 +61 -1
- package/build/cjs/index.js +613 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +841 -1
- package/build/cjs/meta.js +369 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → cjs/seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.d.ts} +102 -199
- package/build/es/index.d.mts +61 -0
- package/build/es/index.mjs +577 -0
- package/build/es/index.mjs.map +1 -0
- package/build/{cjs/src/seating-v1-seating-reservation-seating-reservation.types.d.ts → es/meta.d.mts} +85 -421
- package/build/es/meta.mjs +340 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/{cjs/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → es/seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.d.mts} +102 -199
- package/build/internal/cjs/index.d.ts +61 -1
- package/build/internal/cjs/index.js +613 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +841 -1
- package/build/internal/cjs/meta.js +369 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/{es/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → cjs/seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.d.ts} +102 -199
- package/build/internal/es/index.d.mts +61 -0
- package/build/internal/es/index.mjs +577 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/{cjs/src/seating-v1-seating-reservation-seating-reservation.types.d.ts → es/meta.d.mts} +85 -421
- package/build/internal/es/meta.mjs +340 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/{es/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → internal/es/seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.d.mts} +102 -199
- package/package.json +9 -8
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -28
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -232
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -142
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -67
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -77
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -336
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -17
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -223
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -110
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -50
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +0 -1177
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -74
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -304
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -28
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -232
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -142
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -67
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -77
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -336
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -17
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -223
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -110
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -50
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +0 -1177
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -74
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -304
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface SeatingReservation {
|
|
1
|
+
interface SeatingReservation {
|
|
3
2
|
/**
|
|
4
3
|
* The id of the reservation
|
|
5
4
|
* @format GUID
|
|
@@ -39,7 +38,7 @@ export interface SeatingReservation {
|
|
|
39
38
|
*/
|
|
40
39
|
revision?: string | null;
|
|
41
40
|
}
|
|
42
|
-
|
|
41
|
+
interface PlaceReservation {
|
|
43
42
|
/**
|
|
44
43
|
* The place id.
|
|
45
44
|
* @minLength 5
|
|
@@ -79,7 +78,7 @@ export interface PlaceReservation {
|
|
|
79
78
|
*/
|
|
80
79
|
seatLabel?: string | null;
|
|
81
80
|
}
|
|
82
|
-
|
|
81
|
+
interface SeatingPlanCategoriesSummaryUpdated {
|
|
83
82
|
/**
|
|
84
83
|
* Seating plan id
|
|
85
84
|
* @format GUID
|
|
@@ -98,7 +97,7 @@ export interface SeatingPlanCategoriesSummaryUpdated {
|
|
|
98
97
|
*/
|
|
99
98
|
revision?: string | null;
|
|
100
99
|
}
|
|
101
|
-
|
|
100
|
+
interface CategoryDetails {
|
|
102
101
|
/**
|
|
103
102
|
* Seating plan id
|
|
104
103
|
* @format GUID
|
|
@@ -130,7 +129,7 @@ export interface CategoryDetails {
|
|
|
130
129
|
*/
|
|
131
130
|
reserved?: number | null;
|
|
132
131
|
}
|
|
133
|
-
|
|
132
|
+
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
134
133
|
/**
|
|
135
134
|
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
136
135
|
* @format GUID
|
|
@@ -161,7 +160,7 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
|
161
160
|
hardPurge?: boolean;
|
|
162
161
|
}
|
|
163
162
|
/** @oneof */
|
|
164
|
-
|
|
163
|
+
interface InvalidateCacheGetByOneOf {
|
|
165
164
|
/**
|
|
166
165
|
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
167
166
|
* @format GUID
|
|
@@ -183,7 +182,7 @@ export interface InvalidateCacheGetByOneOf {
|
|
|
183
182
|
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
|
|
184
183
|
customTag?: CustomTag;
|
|
185
184
|
}
|
|
186
|
-
|
|
185
|
+
interface App {
|
|
187
186
|
/**
|
|
188
187
|
* The AppDefId
|
|
189
188
|
* @minLength 1
|
|
@@ -195,7 +194,7 @@ export interface App {
|
|
|
195
194
|
*/
|
|
196
195
|
instanceId?: string;
|
|
197
196
|
}
|
|
198
|
-
|
|
197
|
+
interface Page {
|
|
199
198
|
/**
|
|
200
199
|
* the msid the page is on
|
|
201
200
|
* @format GUID
|
|
@@ -207,7 +206,7 @@ export interface Page {
|
|
|
207
206
|
*/
|
|
208
207
|
pageId?: string;
|
|
209
208
|
}
|
|
210
|
-
|
|
209
|
+
interface URI {
|
|
211
210
|
/**
|
|
212
211
|
* the msid the URI is on
|
|
213
212
|
* @format GUID
|
|
@@ -219,7 +218,7 @@ export interface URI {
|
|
|
219
218
|
*/
|
|
220
219
|
uriPath?: string;
|
|
221
220
|
}
|
|
222
|
-
|
|
221
|
+
interface File {
|
|
223
222
|
/**
|
|
224
223
|
* the msid the file is related to
|
|
225
224
|
* @format GUID
|
|
@@ -232,7 +231,7 @@ export interface File {
|
|
|
232
231
|
*/
|
|
233
232
|
fileName?: string;
|
|
234
233
|
}
|
|
235
|
-
|
|
234
|
+
interface CustomTag {
|
|
236
235
|
/**
|
|
237
236
|
* the msid the tag is related to
|
|
238
237
|
* @format GUID
|
|
@@ -245,15 +244,15 @@ export interface CustomTag {
|
|
|
245
244
|
*/
|
|
246
245
|
tag?: string;
|
|
247
246
|
}
|
|
248
|
-
|
|
247
|
+
interface CreateSeatingReservationRequest {
|
|
249
248
|
/** A reservation to create */
|
|
250
249
|
reservation?: SeatingReservation;
|
|
251
250
|
}
|
|
252
|
-
|
|
251
|
+
interface CreateSeatingReservationResponse {
|
|
253
252
|
/** Created reservation */
|
|
254
253
|
reservation?: SeatingReservation;
|
|
255
254
|
}
|
|
256
|
-
|
|
255
|
+
interface Places {
|
|
257
256
|
/**
|
|
258
257
|
* Places
|
|
259
258
|
* @minSize 1
|
|
@@ -261,7 +260,7 @@ export interface Places {
|
|
|
261
260
|
*/
|
|
262
261
|
places?: string[];
|
|
263
262
|
}
|
|
264
|
-
|
|
263
|
+
interface UnavailablePlaces {
|
|
265
264
|
/**
|
|
266
265
|
* Places that cannot be reserved
|
|
267
266
|
* @minSize 1
|
|
@@ -275,7 +274,7 @@ export interface UnavailablePlaces {
|
|
|
275
274
|
*/
|
|
276
275
|
reservationErrorDetails?: ReservationErrorDetails[];
|
|
277
276
|
}
|
|
278
|
-
|
|
277
|
+
interface ReservationErrorDetails {
|
|
279
278
|
/** Place */
|
|
280
279
|
_id?: string;
|
|
281
280
|
/** Available capacity */
|
|
@@ -283,36 +282,36 @@ export interface ReservationErrorDetails {
|
|
|
283
282
|
/** Requested capacity */
|
|
284
283
|
requested?: number;
|
|
285
284
|
}
|
|
286
|
-
|
|
285
|
+
interface GetReservationRequest {
|
|
287
286
|
/**
|
|
288
287
|
* The id of the reservation to return
|
|
289
288
|
* @format GUID
|
|
290
289
|
*/
|
|
291
290
|
_id: string | null;
|
|
292
291
|
}
|
|
293
|
-
|
|
292
|
+
interface GetReservationResponse {
|
|
294
293
|
/** Created reservation */
|
|
295
294
|
reservation?: SeatingReservation;
|
|
296
295
|
}
|
|
297
|
-
|
|
296
|
+
interface QuerySeatingReservationRequest {
|
|
298
297
|
/** A query object */
|
|
299
298
|
query: QueryV2;
|
|
300
299
|
}
|
|
301
|
-
|
|
302
|
-
/** Paging options to limit and
|
|
300
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
301
|
+
/** Paging options to limit and offset the number of items. */
|
|
303
302
|
paging?: Paging;
|
|
304
303
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
305
304
|
cursorPaging?: CursorPaging;
|
|
306
305
|
/**
|
|
307
306
|
* Filter object.
|
|
308
307
|
*
|
|
309
|
-
* Learn more about
|
|
308
|
+
* Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
310
309
|
*/
|
|
311
310
|
filter?: Record<string, any> | null;
|
|
312
311
|
/**
|
|
313
312
|
* Sort object.
|
|
314
313
|
*
|
|
315
|
-
* Learn more about
|
|
314
|
+
* Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
316
315
|
*/
|
|
317
316
|
sort?: Sorting[];
|
|
318
317
|
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
@@ -321,13 +320,13 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
321
320
|
fieldsets?: string[];
|
|
322
321
|
}
|
|
323
322
|
/** @oneof */
|
|
324
|
-
|
|
325
|
-
/** Paging options to limit and
|
|
323
|
+
interface QueryV2PagingMethodOneOf {
|
|
324
|
+
/** Paging options to limit and offset the number of items. */
|
|
326
325
|
paging?: Paging;
|
|
327
326
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
328
327
|
cursorPaging?: CursorPaging;
|
|
329
328
|
}
|
|
330
|
-
|
|
329
|
+
interface Sorting {
|
|
331
330
|
/**
|
|
332
331
|
* Name of the field to sort by.
|
|
333
332
|
* @maxLength 512
|
|
@@ -336,19 +335,19 @@ export interface Sorting {
|
|
|
336
335
|
/** Sort order. */
|
|
337
336
|
order?: SortOrderWithLiterals;
|
|
338
337
|
}
|
|
339
|
-
|
|
338
|
+
declare enum SortOrder {
|
|
340
339
|
ASC = "ASC",
|
|
341
340
|
DESC = "DESC"
|
|
342
341
|
}
|
|
343
342
|
/** @enumType */
|
|
344
|
-
|
|
345
|
-
|
|
343
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
344
|
+
interface Paging {
|
|
346
345
|
/** Number of items to load. */
|
|
347
346
|
limit?: number | null;
|
|
348
347
|
/** Number of items to skip in the current sort order. */
|
|
349
348
|
offset?: number | null;
|
|
350
349
|
}
|
|
351
|
-
|
|
350
|
+
interface CursorPaging {
|
|
352
351
|
/**
|
|
353
352
|
* Maximum number of items to return in the results.
|
|
354
353
|
* @max 100
|
|
@@ -363,13 +362,13 @@ export interface CursorPaging {
|
|
|
363
362
|
*/
|
|
364
363
|
cursor?: string | null;
|
|
365
364
|
}
|
|
366
|
-
|
|
365
|
+
interface QuerySeatingReservationResponse {
|
|
367
366
|
/** Found reservations */
|
|
368
367
|
reservations?: SeatingReservation[];
|
|
369
368
|
/** Paging meta data */
|
|
370
369
|
metadata?: PagingMetadataV2;
|
|
371
370
|
}
|
|
372
|
-
|
|
371
|
+
interface PagingMetadataV2 {
|
|
373
372
|
/** Number of items returned in the response. */
|
|
374
373
|
count?: number | null;
|
|
375
374
|
/** Offset that was requested. */
|
|
@@ -381,7 +380,7 @@ export interface PagingMetadataV2 {
|
|
|
381
380
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
382
381
|
cursors?: Cursors;
|
|
383
382
|
}
|
|
384
|
-
|
|
383
|
+
interface Cursors {
|
|
385
384
|
/**
|
|
386
385
|
* Cursor string pointing to the next page in the list of results.
|
|
387
386
|
* @maxLength 16000
|
|
@@ -393,18 +392,18 @@ export interface Cursors {
|
|
|
393
392
|
*/
|
|
394
393
|
prev?: string | null;
|
|
395
394
|
}
|
|
396
|
-
|
|
395
|
+
interface DeleteSeatingReservationRequest {
|
|
397
396
|
/**
|
|
398
397
|
* The id of the reservation to delete
|
|
399
398
|
* @format GUID
|
|
400
399
|
*/
|
|
401
400
|
_id: string | null;
|
|
402
401
|
}
|
|
403
|
-
|
|
402
|
+
interface DeleteSeatingReservationResponse {
|
|
404
403
|
/** The deleted reservation */
|
|
405
404
|
reservation?: SeatingReservation;
|
|
406
405
|
}
|
|
407
|
-
|
|
406
|
+
interface DeleteSeatingPlaceReservationRequest {
|
|
408
407
|
/** The id of the place reservation to delete */
|
|
409
408
|
_id?: string | null;
|
|
410
409
|
/**
|
|
@@ -413,9 +412,9 @@ export interface DeleteSeatingPlaceReservationRequest {
|
|
|
413
412
|
*/
|
|
414
413
|
reservationId?: string | null;
|
|
415
414
|
}
|
|
416
|
-
|
|
415
|
+
interface Empty {
|
|
417
416
|
}
|
|
418
|
-
|
|
417
|
+
interface CancelSeatingPlaceReservationsRequest {
|
|
419
418
|
/**
|
|
420
419
|
* The id of the place reservations' reservation
|
|
421
420
|
* @format GUID
|
|
@@ -428,34 +427,34 @@ export interface CancelSeatingPlaceReservationsRequest {
|
|
|
428
427
|
*/
|
|
429
428
|
placeReservations?: PlaceReservationDetails[];
|
|
430
429
|
}
|
|
431
|
-
|
|
430
|
+
interface PlaceReservationDetails {
|
|
432
431
|
placeId?: string;
|
|
433
432
|
occupied?: number;
|
|
434
433
|
}
|
|
435
|
-
|
|
434
|
+
interface CancelSeatingPlaceReservationsResponse {
|
|
436
435
|
/** The reservation with canceled place reservations */
|
|
437
436
|
reservation?: SeatingReservation;
|
|
438
437
|
}
|
|
439
|
-
|
|
438
|
+
interface UpdateSeatingReservationRequest {
|
|
440
439
|
/** A reservation to update */
|
|
441
440
|
reservation?: SeatingReservation;
|
|
442
441
|
}
|
|
443
|
-
|
|
442
|
+
interface UpdateSeatingReservationResponse {
|
|
444
443
|
/** The updated reservation */
|
|
445
444
|
reservation?: SeatingReservation;
|
|
446
445
|
}
|
|
447
|
-
|
|
446
|
+
interface GetReservedPlacesRequest {
|
|
448
447
|
/**
|
|
449
448
|
* Seating plan id
|
|
450
449
|
* @format GUID
|
|
451
450
|
*/
|
|
452
451
|
_id?: string | null;
|
|
453
452
|
}
|
|
454
|
-
|
|
453
|
+
interface GetReservedPlacesResponse {
|
|
455
454
|
/** Reserved places of the plan */
|
|
456
455
|
placeReservations?: PlaceReservation[];
|
|
457
456
|
}
|
|
458
|
-
|
|
457
|
+
interface GetSeatingCategorySummaryRequest {
|
|
459
458
|
/**
|
|
460
459
|
* Seating plan external id
|
|
461
460
|
* @minLength 1
|
|
@@ -463,14 +462,14 @@ export interface GetSeatingCategorySummaryRequest {
|
|
|
463
462
|
*/
|
|
464
463
|
externalId?: string;
|
|
465
464
|
}
|
|
466
|
-
|
|
465
|
+
interface GetSeatingCategorySummaryResponse {
|
|
467
466
|
/**
|
|
468
467
|
* Ticket counts by category
|
|
469
468
|
* @maxSize 50000
|
|
470
469
|
*/
|
|
471
470
|
categories?: CategoryDetails[];
|
|
472
471
|
}
|
|
473
|
-
|
|
472
|
+
interface GetSeatingReservationSummaryRequest {
|
|
474
473
|
/**
|
|
475
474
|
* Seating plan external id
|
|
476
475
|
* @minLength 1
|
|
@@ -478,12 +477,12 @@ export interface GetSeatingReservationSummaryRequest {
|
|
|
478
477
|
*/
|
|
479
478
|
externalId: string;
|
|
480
479
|
}
|
|
481
|
-
|
|
480
|
+
interface GetSeatingReservationSummaryResponse {
|
|
482
481
|
plan?: SeatingPlan;
|
|
483
482
|
/** @maxSize 50000 */
|
|
484
483
|
places?: PlaceReservationDetails[];
|
|
485
484
|
}
|
|
486
|
-
|
|
485
|
+
interface SeatingPlan {
|
|
487
486
|
/**
|
|
488
487
|
* Auto generated unique plan id
|
|
489
488
|
* @format GUID
|
|
@@ -555,7 +554,7 @@ export interface SeatingPlan {
|
|
|
555
554
|
*/
|
|
556
555
|
elementGroups?: ElementGroup[];
|
|
557
556
|
}
|
|
558
|
-
|
|
557
|
+
interface Section {
|
|
559
558
|
/** Unique section id */
|
|
560
559
|
_id?: number;
|
|
561
560
|
/**
|
|
@@ -585,7 +584,7 @@ export interface Section {
|
|
|
585
584
|
*/
|
|
586
585
|
default?: boolean;
|
|
587
586
|
}
|
|
588
|
-
|
|
587
|
+
interface Element {
|
|
589
588
|
/**
|
|
590
589
|
* Unique element id
|
|
591
590
|
* @min 1
|
|
@@ -629,7 +628,7 @@ export interface Element {
|
|
|
629
628
|
/** Multi row element relevant for MULTI_ROW element type */
|
|
630
629
|
multiRowProperties?: MultiRowProperties;
|
|
631
630
|
}
|
|
632
|
-
|
|
631
|
+
declare enum Type {
|
|
633
632
|
AREA = "AREA",
|
|
634
633
|
ROW = "ROW",
|
|
635
634
|
MULTI_ROW = "MULTI_ROW",
|
|
@@ -638,8 +637,8 @@ export declare enum Type {
|
|
|
638
637
|
SHAPE = "SHAPE"
|
|
639
638
|
}
|
|
640
639
|
/** @enumType */
|
|
641
|
-
|
|
642
|
-
|
|
640
|
+
type TypeWithLiterals = Type | 'AREA' | 'ROW' | 'MULTI_ROW' | 'TABLE' | 'ROUND_TABLE' | 'SHAPE';
|
|
641
|
+
interface Sequencing {
|
|
643
642
|
/**
|
|
644
643
|
* First seq element
|
|
645
644
|
* @minLength 1
|
|
@@ -654,7 +653,7 @@ export interface Sequencing {
|
|
|
654
653
|
/** If true - direction right to left. Otherwise left to right. */
|
|
655
654
|
reverseOrder?: boolean | null;
|
|
656
655
|
}
|
|
657
|
-
|
|
656
|
+
interface Place {
|
|
658
657
|
/** Local id of the place in the sequence */
|
|
659
658
|
index?: number;
|
|
660
659
|
/**
|
|
@@ -686,7 +685,7 @@ export interface Place {
|
|
|
686
685
|
/** Place type */
|
|
687
686
|
type?: PlaceTypeEnumTypeWithLiterals;
|
|
688
687
|
}
|
|
689
|
-
|
|
688
|
+
declare enum PlaceTypeEnumType {
|
|
690
689
|
UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
|
|
691
690
|
STANDARD = "STANDARD",
|
|
692
691
|
WHEELCHAIR = "WHEELCHAIR",
|
|
@@ -696,12 +695,12 @@ export declare enum PlaceTypeEnumType {
|
|
|
696
695
|
DISCOUNT = "DISCOUNT"
|
|
697
696
|
}
|
|
698
697
|
/** @enumType */
|
|
699
|
-
|
|
700
|
-
|
|
698
|
+
type PlaceTypeEnumTypeWithLiterals = PlaceTypeEnumType | 'UNKNOWN_PROPERTY' | 'STANDARD' | 'WHEELCHAIR' | 'ACCESSIBLE' | 'COMPANION' | 'OBSTRUCTED' | 'DISCOUNT';
|
|
699
|
+
interface ReservationOptions {
|
|
701
700
|
/** Indicates whether the entire element must be reserved */
|
|
702
701
|
reserveWholeElement?: boolean;
|
|
703
702
|
}
|
|
704
|
-
|
|
703
|
+
interface ElementUiProperties {
|
|
705
704
|
/**
|
|
706
705
|
* @min -1000000
|
|
707
706
|
* @max 1000000
|
|
@@ -777,7 +776,7 @@ export interface ElementUiProperties {
|
|
|
777
776
|
image?: Image;
|
|
778
777
|
seatNumbering?: NumberingWithLiterals;
|
|
779
778
|
}
|
|
780
|
-
|
|
779
|
+
declare enum ShapeTypeEnumType {
|
|
781
780
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
782
781
|
TEXT = "TEXT",
|
|
783
782
|
RECTANGLE = "RECTANGLE",
|
|
@@ -787,8 +786,8 @@ export declare enum ShapeTypeEnumType {
|
|
|
787
786
|
IMAGE = "IMAGE"
|
|
788
787
|
}
|
|
789
788
|
/** @enumType */
|
|
790
|
-
|
|
791
|
-
|
|
789
|
+
type ShapeTypeEnumTypeWithLiterals = ShapeTypeEnumType | 'UNKNOWN_TYPE' | 'TEXT' | 'RECTANGLE' | 'ELLIPSE' | 'LINE' | 'ICON' | 'IMAGE';
|
|
790
|
+
declare enum Position {
|
|
792
791
|
UNKNOWN_POSITION = "UNKNOWN_POSITION",
|
|
793
792
|
LEFT = "LEFT",
|
|
794
793
|
RIGHT = "RIGHT",
|
|
@@ -796,8 +795,8 @@ export declare enum Position {
|
|
|
796
795
|
NONE = "NONE"
|
|
797
796
|
}
|
|
798
797
|
/** @enumType */
|
|
799
|
-
|
|
800
|
-
|
|
798
|
+
type PositionWithLiterals = Position | 'UNKNOWN_POSITION' | 'LEFT' | 'RIGHT' | 'BOTH' | 'NONE';
|
|
799
|
+
declare enum Icon {
|
|
801
800
|
UNKNOWN_ICON = "UNKNOWN_ICON",
|
|
802
801
|
ENTER = "ENTER",
|
|
803
802
|
EXIT = "EXIT",
|
|
@@ -813,8 +812,8 @@ export declare enum Icon {
|
|
|
813
812
|
STAGE = "STAGE"
|
|
814
813
|
}
|
|
815
814
|
/** @enumType */
|
|
816
|
-
|
|
817
|
-
|
|
815
|
+
type IconWithLiterals = Icon | 'UNKNOWN_ICON' | 'ENTER' | 'EXIT' | 'DRINKS' | 'WC' | 'WC_MEN' | 'WC_WOMEN' | 'FOOD' | 'STAIRS' | 'ELEVATOR' | 'SMOKING' | 'CHECKROOM' | 'STAGE';
|
|
816
|
+
interface Image {
|
|
818
817
|
/** WixMedia image ID. */
|
|
819
818
|
_id?: string;
|
|
820
819
|
/**
|
|
@@ -833,15 +832,15 @@ export interface Image {
|
|
|
833
832
|
*/
|
|
834
833
|
uri?: string | null;
|
|
835
834
|
}
|
|
836
|
-
|
|
835
|
+
declare enum Numbering {
|
|
837
836
|
UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
|
|
838
837
|
NUMERIC = "NUMERIC",
|
|
839
838
|
ODD_EVEN = "ODD_EVEN",
|
|
840
839
|
ALPHABETICAL = "ALPHABETICAL"
|
|
841
840
|
}
|
|
842
841
|
/** @enumType */
|
|
843
|
-
|
|
844
|
-
|
|
842
|
+
type NumberingWithLiterals = Numbering | 'UNKNOWN_NUMBERING' | 'NUMERIC' | 'ODD_EVEN' | 'ALPHABETICAL';
|
|
843
|
+
interface MultiRowProperties {
|
|
845
844
|
/**
|
|
846
845
|
* Individual rows of the multi row element
|
|
847
846
|
* @maxSize 1000
|
|
@@ -861,7 +860,7 @@ export interface MultiRowProperties {
|
|
|
861
860
|
*/
|
|
862
861
|
seatAmount?: number | null;
|
|
863
862
|
}
|
|
864
|
-
|
|
863
|
+
interface RowElement {
|
|
865
864
|
/**
|
|
866
865
|
* Unique row id
|
|
867
866
|
* @min 1
|
|
@@ -886,7 +885,7 @@ export interface RowElement {
|
|
|
886
885
|
/** Row UI settings */
|
|
887
886
|
uiProperties?: RowElementUiProperties;
|
|
888
887
|
}
|
|
889
|
-
|
|
888
|
+
interface RowElementUiProperties {
|
|
890
889
|
/**
|
|
891
890
|
* Relative x position to the parent element
|
|
892
891
|
* @min -1000000
|
|
@@ -914,7 +913,7 @@ export interface RowElementUiProperties {
|
|
|
914
913
|
/** Seat numbering */
|
|
915
914
|
seatNumbering?: NumberingWithLiterals;
|
|
916
915
|
}
|
|
917
|
-
|
|
916
|
+
interface VerticalSequencing {
|
|
918
917
|
/**
|
|
919
918
|
* First seq element
|
|
920
919
|
* @minLength 1
|
|
@@ -926,7 +925,7 @@ export interface VerticalSequencing {
|
|
|
926
925
|
/** If true - direction bottom to top. Otherwise top to bottom. */
|
|
927
926
|
reverseOrder?: boolean | null;
|
|
928
927
|
}
|
|
929
|
-
|
|
928
|
+
interface Category {
|
|
930
929
|
/**
|
|
931
930
|
* Local category id within the seating plan
|
|
932
931
|
* @min 1
|
|
@@ -963,7 +962,7 @@ export interface Category {
|
|
|
963
962
|
*/
|
|
964
963
|
places?: Place[];
|
|
965
964
|
}
|
|
966
|
-
|
|
965
|
+
interface ExtendedFields {
|
|
967
966
|
/**
|
|
968
967
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
969
968
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -974,7 +973,7 @@ export interface ExtendedFields {
|
|
|
974
973
|
*/
|
|
975
974
|
namespaces?: Record<string, Record<string, any>>;
|
|
976
975
|
}
|
|
977
|
-
|
|
976
|
+
interface SeatingPlanUiProperties {
|
|
978
977
|
/**
|
|
979
978
|
* #F0F0F0
|
|
980
979
|
* @format COLOR_HEX
|
|
@@ -983,7 +982,7 @@ export interface SeatingPlanUiProperties {
|
|
|
983
982
|
/** @max 100 */
|
|
984
983
|
backgroundOpacity?: number | null;
|
|
985
984
|
}
|
|
986
|
-
|
|
985
|
+
interface ElementGroup {
|
|
987
986
|
/**
|
|
988
987
|
* Unique element group id
|
|
989
988
|
* @min 1
|
|
@@ -994,7 +993,7 @@ export interface ElementGroup {
|
|
|
994
993
|
/** Element group UI settings */
|
|
995
994
|
uiProperties?: ElementGroupUiProperties;
|
|
996
995
|
}
|
|
997
|
-
|
|
996
|
+
interface ElementGroupUiProperties {
|
|
998
997
|
/**
|
|
999
998
|
* x position of the group
|
|
1000
999
|
* @min -1000000
|
|
@@ -1024,23 +1023,23 @@ export interface ElementGroupUiProperties {
|
|
|
1024
1023
|
*/
|
|
1025
1024
|
rotationAngle?: number | null;
|
|
1026
1025
|
}
|
|
1027
|
-
|
|
1026
|
+
interface RegenerateSummariesRequest {
|
|
1028
1027
|
/**
|
|
1029
1028
|
* Seating plan id
|
|
1030
1029
|
* @format GUID
|
|
1031
1030
|
*/
|
|
1032
1031
|
planId?: string | null;
|
|
1033
1032
|
}
|
|
1034
|
-
|
|
1033
|
+
interface RegenerateSummariesResponse {
|
|
1035
1034
|
seatingReservationsSummary?: SeatingReservationsSummary;
|
|
1036
1035
|
/** @maxSize 50000 */
|
|
1037
1036
|
categories?: CategoryDetails[];
|
|
1038
1037
|
}
|
|
1039
|
-
|
|
1038
|
+
interface SeatingReservationsSummary {
|
|
1040
1039
|
/** @maxSize 50000 */
|
|
1041
1040
|
places?: PlaceReservationDetails[];
|
|
1042
1041
|
}
|
|
1043
|
-
|
|
1042
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
1044
1043
|
createdEvent?: EntityCreatedEvent;
|
|
1045
1044
|
updatedEvent?: EntityUpdatedEvent;
|
|
1046
1045
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -1075,19 +1074,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1075
1074
|
entityEventSequence?: string | null;
|
|
1076
1075
|
}
|
|
1077
1076
|
/** @oneof */
|
|
1078
|
-
|
|
1077
|
+
interface DomainEventBodyOneOf {
|
|
1079
1078
|
createdEvent?: EntityCreatedEvent;
|
|
1080
1079
|
updatedEvent?: EntityUpdatedEvent;
|
|
1081
1080
|
deletedEvent?: EntityDeletedEvent;
|
|
1082
1081
|
actionEvent?: ActionEvent;
|
|
1083
1082
|
}
|
|
1084
|
-
|
|
1083
|
+
interface EntityCreatedEvent {
|
|
1085
1084
|
entity?: string;
|
|
1086
1085
|
}
|
|
1087
|
-
|
|
1086
|
+
interface RestoreInfo {
|
|
1088
1087
|
deletedDate?: Date | null;
|
|
1089
1088
|
}
|
|
1090
|
-
|
|
1089
|
+
interface EntityUpdatedEvent {
|
|
1091
1090
|
/**
|
|
1092
1091
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1093
1092
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -1095,14 +1094,14 @@ export interface EntityUpdatedEvent {
|
|
|
1095
1094
|
*/
|
|
1096
1095
|
currentEntity?: string;
|
|
1097
1096
|
}
|
|
1098
|
-
|
|
1097
|
+
interface EntityDeletedEvent {
|
|
1099
1098
|
/** Entity that was deleted. */
|
|
1100
1099
|
deletedEntity?: string | null;
|
|
1101
1100
|
}
|
|
1102
|
-
|
|
1101
|
+
interface ActionEvent {
|
|
1103
1102
|
body?: string;
|
|
1104
1103
|
}
|
|
1105
|
-
|
|
1104
|
+
interface MessageEnvelope {
|
|
1106
1105
|
/**
|
|
1107
1106
|
* App instance ID.
|
|
1108
1107
|
* @format GUID
|
|
@@ -1118,7 +1117,7 @@ export interface MessageEnvelope {
|
|
|
1118
1117
|
/** Stringify payload. */
|
|
1119
1118
|
data?: string;
|
|
1120
1119
|
}
|
|
1121
|
-
|
|
1120
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1122
1121
|
/**
|
|
1123
1122
|
* ID of a site visitor that has not logged in to the site.
|
|
1124
1123
|
* @format GUID
|
|
@@ -1143,7 +1142,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
1143
1142
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1144
1143
|
}
|
|
1145
1144
|
/** @oneof */
|
|
1146
|
-
|
|
1145
|
+
interface IdentificationDataIdOneOf {
|
|
1147
1146
|
/**
|
|
1148
1147
|
* ID of a site visitor that has not logged in to the site.
|
|
1149
1148
|
* @format GUID
|
|
@@ -1165,7 +1164,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
1165
1164
|
*/
|
|
1166
1165
|
appId?: string;
|
|
1167
1166
|
}
|
|
1168
|
-
|
|
1167
|
+
declare enum WebhookIdentityType {
|
|
1169
1168
|
UNKNOWN = "UNKNOWN",
|
|
1170
1169
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1171
1170
|
MEMBER = "MEMBER",
|
|
@@ -1173,8 +1172,8 @@ export declare enum WebhookIdentityType {
|
|
|
1173
1172
|
APP = "APP"
|
|
1174
1173
|
}
|
|
1175
1174
|
/** @enumType */
|
|
1176
|
-
|
|
1177
|
-
|
|
1175
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1176
|
+
interface BaseEventMetadata {
|
|
1178
1177
|
/**
|
|
1179
1178
|
* App instance ID.
|
|
1180
1179
|
* @format GUID
|
|
@@ -1188,7 +1187,7 @@ export interface BaseEventMetadata {
|
|
|
1188
1187
|
/** The identification type and identity data. */
|
|
1189
1188
|
identity?: IdentificationData;
|
|
1190
1189
|
}
|
|
1191
|
-
|
|
1190
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
1192
1191
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1193
1192
|
_id?: string;
|
|
1194
1193
|
/**
|
|
@@ -1218,74 +1217,18 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
1218
1217
|
*/
|
|
1219
1218
|
entityEventSequence?: string | null;
|
|
1220
1219
|
}
|
|
1221
|
-
|
|
1220
|
+
interface SeatingReservationCreatedEnvelope {
|
|
1222
1221
|
entity: SeatingReservation;
|
|
1223
1222
|
metadata: EventMetadata;
|
|
1224
1223
|
}
|
|
1225
|
-
|
|
1226
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1227
|
-
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1228
|
-
* @webhook
|
|
1229
|
-
* @eventType wix.seating.v1.seating_reservation_created
|
|
1230
|
-
* @slug created
|
|
1231
|
-
* @documentationMaturity preview
|
|
1232
|
-
*/
|
|
1233
|
-
export declare function onSeatingReservationCreated(handler: (event: SeatingReservationCreatedEnvelope) => void | Promise<void>): void;
|
|
1234
|
-
export interface SeatingReservationDeletedEnvelope {
|
|
1224
|
+
interface SeatingReservationDeletedEnvelope {
|
|
1235
1225
|
entity: SeatingReservation;
|
|
1236
1226
|
metadata: EventMetadata;
|
|
1237
1227
|
}
|
|
1238
|
-
|
|
1239
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1240
|
-
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1241
|
-
* @webhook
|
|
1242
|
-
* @eventType wix.seating.v1.seating_reservation_deleted
|
|
1243
|
-
* @slug deleted
|
|
1244
|
-
* @documentationMaturity preview
|
|
1245
|
-
*/
|
|
1246
|
-
export declare function onSeatingReservationDeleted(handler: (event: SeatingReservationDeletedEnvelope) => void | Promise<void>): void;
|
|
1247
|
-
type SeatingReservationNonNullablePaths = `reservedPlaces` | `reservedPlaces.${number}._id`;
|
|
1248
|
-
/**
|
|
1249
|
-
* Creates a seating reservation
|
|
1250
|
-
* @public
|
|
1251
|
-
* @documentationMaturity preview
|
|
1252
|
-
* @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
|
|
1253
|
-
* @permissionScope Manage Events
|
|
1254
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1255
|
-
* @applicableIdentity APP
|
|
1256
|
-
* @returns Created reservation
|
|
1257
|
-
* @fqn com.wixpress.seating.SeatingReservationService.CreateSeatingReservation
|
|
1258
|
-
*/
|
|
1259
|
-
export declare function createSeatingReservation(options?: CreateSeatingReservationOptions): Promise<NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths>>;
|
|
1260
|
-
export interface CreateSeatingReservationOptions {
|
|
1228
|
+
interface CreateSeatingReservationOptions {
|
|
1261
1229
|
/** A reservation to create */
|
|
1262
1230
|
reservation?: SeatingReservation;
|
|
1263
1231
|
}
|
|
1264
|
-
/**
|
|
1265
|
-
* Returns seating reservation
|
|
1266
|
-
* @param _id - The id of the reservation to return
|
|
1267
|
-
* @public
|
|
1268
|
-
* @documentationMaturity preview
|
|
1269
|
-
* @requiredField _id
|
|
1270
|
-
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1271
|
-
* @permissionScope Manage Events
|
|
1272
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1273
|
-
* @applicableIdentity APP
|
|
1274
|
-
* @returns Created reservation
|
|
1275
|
-
* @fqn com.wixpress.seating.SeatingReservationService.GetReservation
|
|
1276
|
-
*/
|
|
1277
|
-
export declare function getReservation(_id: string): Promise<NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths>>;
|
|
1278
|
-
/**
|
|
1279
|
-
* Lists seating reservations by query request
|
|
1280
|
-
* @public
|
|
1281
|
-
* @documentationMaturity preview
|
|
1282
|
-
* @permissionScope Manage Events
|
|
1283
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1284
|
-
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1285
|
-
* @applicableIdentity APP
|
|
1286
|
-
* @fqn com.wixpress.seating.SeatingReservationService.QuerySeatingReservation
|
|
1287
|
-
*/
|
|
1288
|
-
export declare function querySeatingReservation(): ReservationsQueryBuilder;
|
|
1289
1232
|
interface QueryCursorResult {
|
|
1290
1233
|
cursors: Cursors;
|
|
1291
1234
|
hasNext: () => boolean;
|
|
@@ -1293,13 +1236,13 @@ interface QueryCursorResult {
|
|
|
1293
1236
|
length: number;
|
|
1294
1237
|
pageSize: number;
|
|
1295
1238
|
}
|
|
1296
|
-
|
|
1239
|
+
interface ReservationsQueryResult extends QueryCursorResult {
|
|
1297
1240
|
items: SeatingReservation[];
|
|
1298
1241
|
query: ReservationsQueryBuilder;
|
|
1299
1242
|
next: () => Promise<ReservationsQueryResult>;
|
|
1300
1243
|
prev: () => Promise<ReservationsQueryResult>;
|
|
1301
1244
|
}
|
|
1302
|
-
|
|
1245
|
+
interface ReservationsQueryBuilder {
|
|
1303
1246
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1304
1247
|
* @documentationMaturity preview
|
|
1305
1248
|
*/
|
|
@@ -1311,34 +1254,7 @@ export interface ReservationsQueryBuilder {
|
|
|
1311
1254
|
/** @documentationMaturity preview */
|
|
1312
1255
|
find: () => Promise<ReservationsQueryResult>;
|
|
1313
1256
|
}
|
|
1314
|
-
|
|
1315
|
-
* Deletes the seating reservation
|
|
1316
|
-
* @param _id - The id of the reservation to delete
|
|
1317
|
-
* @public
|
|
1318
|
-
* @documentationMaturity preview
|
|
1319
|
-
* @requiredField _id
|
|
1320
|
-
* @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
|
|
1321
|
-
* @permissionScope Manage Events
|
|
1322
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1323
|
-
* @applicableIdentity APP
|
|
1324
|
-
* @fqn com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation
|
|
1325
|
-
*/
|
|
1326
|
-
export declare function deleteSeatingReservation(_id: string): Promise<NonNullablePaths<DeleteSeatingReservationResponse, {
|
|
1327
|
-
[P in SeatingReservationNonNullablePaths]: `reservation.${P}`;
|
|
1328
|
-
}[SeatingReservationNonNullablePaths]>>;
|
|
1329
|
-
/** @public
|
|
1330
|
-
* @documentationMaturity preview
|
|
1331
|
-
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1332
|
-
* @permissionScope Manage Events
|
|
1333
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1334
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1335
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1336
|
-
* @applicableIdentity APP
|
|
1337
|
-
* @applicableIdentity VISITOR
|
|
1338
|
-
* @fqn com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary
|
|
1339
|
-
*/
|
|
1340
|
-
export declare function getSeatingCategorySummary(options?: GetSeatingCategorySummaryOptions): Promise<NonNullablePaths<GetSeatingCategorySummaryResponse, `categories`>>;
|
|
1341
|
-
export interface GetSeatingCategorySummaryOptions {
|
|
1257
|
+
interface GetSeatingCategorySummaryOptions {
|
|
1342
1258
|
/**
|
|
1343
1259
|
* Seating plan external id
|
|
1344
1260
|
* @minLength 1
|
|
@@ -1346,18 +1262,5 @@ export interface GetSeatingCategorySummaryOptions {
|
|
|
1346
1262
|
*/
|
|
1347
1263
|
externalId?: string;
|
|
1348
1264
|
}
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
* @documentationMaturity preview
|
|
1352
|
-
* @requiredField externalId
|
|
1353
|
-
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1354
|
-
* @permissionScope Manage Events
|
|
1355
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1356
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1357
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1358
|
-
* @applicableIdentity APP
|
|
1359
|
-
* @applicableIdentity VISITOR
|
|
1360
|
-
* @fqn com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary
|
|
1361
|
-
*/
|
|
1362
|
-
export declare function getSeatingReservationSummary(externalId: string): Promise<NonNullablePaths<GetSeatingReservationSummaryResponse, `plan.sections` | `plan.sections.${number}._id` | `plan.sections.${number}.default` | `plan.categories` | `plan.categories.${number}._id` | `plan.categories.${number}.title` | `plan.uncategorizedPlaces` | `plan.elementGroups` | `plan.elementGroups.${number}._id` | `places` | `places.${number}.placeId` | `places.${number}.occupied`>>;
|
|
1363
|
-
export {};
|
|
1265
|
+
|
|
1266
|
+
export { type GetSeatingCategorySummaryRequest as $, type App as A, type QuerySeatingReservationResponse as B, type CreateSeatingReservationOptions as C, type DeleteSeatingReservationResponse as D, type PagingMetadataV2 as E, type File as F, type GetSeatingCategorySummaryOptions as G, type Cursors as H, Icon as I, type DeleteSeatingReservationRequest as J, type DeleteSeatingPlaceReservationRequest as K, type Empty as L, type CancelSeatingPlaceReservationsRequest as M, Numbering as N, type PlaceReservationDetails as O, PlaceTypeEnumType as P, type QuerySeatingReservationRequest as Q, type ReservationsQueryBuilder as R, type SeatingReservation as S, Type as T, type URI as U, type CancelSeatingPlaceReservationsResponse as V, WebhookIdentityType as W, type UpdateSeatingReservationRequest as X, type UpdateSeatingReservationResponse as Y, type GetReservedPlacesRequest as Z, type GetReservedPlacesResponse as _, type GetSeatingCategorySummaryResponse as a, type GetSeatingReservationSummaryRequest as a0, type SeatingPlan as a1, type Section as a2, type Element as a3, type Sequencing as a4, type Place as a5, type ReservationOptions as a6, type ElementUiProperties as a7, type Image as a8, type MultiRowProperties as a9, type RowElement as aa, type RowElementUiProperties as ab, type VerticalSequencing as ac, type Category as ad, type ExtendedFields as ae, type SeatingPlanUiProperties as af, type ElementGroup as ag, type ElementGroupUiProperties as ah, type RegenerateSummariesRequest as ai, type RegenerateSummariesResponse as aj, type SeatingReservationsSummary as ak, type DomainEvent as al, type DomainEventBodyOneOf as am, type EntityCreatedEvent as an, type RestoreInfo as ao, type EntityUpdatedEvent as ap, type EntityDeletedEvent as aq, type ActionEvent as ar, type MessageEnvelope as as, type IdentificationData as at, type IdentificationDataIdOneOf as au, type BaseEventMetadata as av, type EventMetadata as aw, type ReservationsQueryResult as ax, type GetSeatingReservationSummaryResponse as b, type SeatingReservationCreatedEnvelope as c, type SeatingReservationDeletedEnvelope as d, SortOrder as e, ShapeTypeEnumType as f, Position as g, type PlaceReservation as h, type SeatingPlanCategoriesSummaryUpdated as i, type CategoryDetails as j, type InvalidateCache as k, type InvalidateCacheGetByOneOf as l, type Page as m, type CustomTag as n, type CreateSeatingReservationRequest as o, type CreateSeatingReservationResponse as p, type Places as q, type UnavailablePlaces as r, type ReservationErrorDetails as s, type GetReservationRequest as t, type GetReservationResponse as u, type QueryV2 as v, type QueryV2PagingMethodOneOf as w, type Sorting as x, type Paging as y, type CursorPaging as z };
|