@wix/auto_sdk_seatings_seating-reservation 1.0.3 → 1.0.5
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-CzABkBgJ.d.ts} +118 -195
- 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} +99 -419
- 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-CzABkBgJ.d.mts} +118 -195
- 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-CzABkBgJ.d.ts} +118 -195
- 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} +99 -419
- 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-CzABkBgJ.d.mts} +118 -195
- package/package.json +10 -9
- 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 -332
- 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 -1161
- 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 -300
- 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 -332
- 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 -1161
- 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 -300
- 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,22 +282,22 @@ 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
|
-
|
|
300
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
302
301
|
/** Paging options to limit and skip 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`. */
|
|
@@ -321,32 +320,34 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
321
320
|
fieldsets?: string[];
|
|
322
321
|
}
|
|
323
322
|
/** @oneof */
|
|
324
|
-
|
|
323
|
+
interface QueryV2PagingMethodOneOf {
|
|
325
324
|
/** Paging options to limit and skip 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
|
|
334
333
|
*/
|
|
335
334
|
fieldName?: string;
|
|
336
335
|
/** Sort order. */
|
|
337
|
-
order?:
|
|
336
|
+
order?: SortOrderWithLiterals;
|
|
338
337
|
}
|
|
339
|
-
|
|
338
|
+
declare enum SortOrder {
|
|
340
339
|
ASC = "ASC",
|
|
341
340
|
DESC = "DESC"
|
|
342
341
|
}
|
|
343
|
-
|
|
342
|
+
/** @enumType */
|
|
343
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
344
|
+
interface Paging {
|
|
344
345
|
/** Number of items to load. */
|
|
345
346
|
limit?: number | null;
|
|
346
347
|
/** Number of items to skip in the current sort order. */
|
|
347
348
|
offset?: number | null;
|
|
348
349
|
}
|
|
349
|
-
|
|
350
|
+
interface CursorPaging {
|
|
350
351
|
/**
|
|
351
352
|
* Maximum number of items to return in the results.
|
|
352
353
|
* @max 100
|
|
@@ -361,13 +362,13 @@ export interface CursorPaging {
|
|
|
361
362
|
*/
|
|
362
363
|
cursor?: string | null;
|
|
363
364
|
}
|
|
364
|
-
|
|
365
|
+
interface QuerySeatingReservationResponse {
|
|
365
366
|
/** Found reservations */
|
|
366
367
|
reservations?: SeatingReservation[];
|
|
367
368
|
/** Paging meta data */
|
|
368
369
|
metadata?: PagingMetadataV2;
|
|
369
370
|
}
|
|
370
|
-
|
|
371
|
+
interface PagingMetadataV2 {
|
|
371
372
|
/** Number of items returned in the response. */
|
|
372
373
|
count?: number | null;
|
|
373
374
|
/** Offset that was requested. */
|
|
@@ -379,7 +380,7 @@ export interface PagingMetadataV2 {
|
|
|
379
380
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
380
381
|
cursors?: Cursors;
|
|
381
382
|
}
|
|
382
|
-
|
|
383
|
+
interface Cursors {
|
|
383
384
|
/**
|
|
384
385
|
* Cursor string pointing to the next page in the list of results.
|
|
385
386
|
* @maxLength 16000
|
|
@@ -391,18 +392,18 @@ export interface Cursors {
|
|
|
391
392
|
*/
|
|
392
393
|
prev?: string | null;
|
|
393
394
|
}
|
|
394
|
-
|
|
395
|
+
interface DeleteSeatingReservationRequest {
|
|
395
396
|
/**
|
|
396
397
|
* The id of the reservation to delete
|
|
397
398
|
* @format GUID
|
|
398
399
|
*/
|
|
399
400
|
_id: string | null;
|
|
400
401
|
}
|
|
401
|
-
|
|
402
|
+
interface DeleteSeatingReservationResponse {
|
|
402
403
|
/** The deleted reservation */
|
|
403
404
|
reservation?: SeatingReservation;
|
|
404
405
|
}
|
|
405
|
-
|
|
406
|
+
interface DeleteSeatingPlaceReservationRequest {
|
|
406
407
|
/** The id of the place reservation to delete */
|
|
407
408
|
_id?: string | null;
|
|
408
409
|
/**
|
|
@@ -411,9 +412,9 @@ export interface DeleteSeatingPlaceReservationRequest {
|
|
|
411
412
|
*/
|
|
412
413
|
reservationId?: string | null;
|
|
413
414
|
}
|
|
414
|
-
|
|
415
|
+
interface Empty {
|
|
415
416
|
}
|
|
416
|
-
|
|
417
|
+
interface CancelSeatingPlaceReservationsRequest {
|
|
417
418
|
/**
|
|
418
419
|
* The id of the place reservations' reservation
|
|
419
420
|
* @format GUID
|
|
@@ -426,34 +427,34 @@ export interface CancelSeatingPlaceReservationsRequest {
|
|
|
426
427
|
*/
|
|
427
428
|
placeReservations?: PlaceReservationDetails[];
|
|
428
429
|
}
|
|
429
|
-
|
|
430
|
+
interface PlaceReservationDetails {
|
|
430
431
|
placeId?: string;
|
|
431
432
|
occupied?: number;
|
|
432
433
|
}
|
|
433
|
-
|
|
434
|
+
interface CancelSeatingPlaceReservationsResponse {
|
|
434
435
|
/** The reservation with canceled place reservations */
|
|
435
436
|
reservation?: SeatingReservation;
|
|
436
437
|
}
|
|
437
|
-
|
|
438
|
+
interface UpdateSeatingReservationRequest {
|
|
438
439
|
/** A reservation to update */
|
|
439
440
|
reservation?: SeatingReservation;
|
|
440
441
|
}
|
|
441
|
-
|
|
442
|
+
interface UpdateSeatingReservationResponse {
|
|
442
443
|
/** The updated reservation */
|
|
443
444
|
reservation?: SeatingReservation;
|
|
444
445
|
}
|
|
445
|
-
|
|
446
|
+
interface GetReservedPlacesRequest {
|
|
446
447
|
/**
|
|
447
448
|
* Seating plan id
|
|
448
449
|
* @format GUID
|
|
449
450
|
*/
|
|
450
451
|
_id?: string | null;
|
|
451
452
|
}
|
|
452
|
-
|
|
453
|
+
interface GetReservedPlacesResponse {
|
|
453
454
|
/** Reserved places of the plan */
|
|
454
455
|
placeReservations?: PlaceReservation[];
|
|
455
456
|
}
|
|
456
|
-
|
|
457
|
+
interface GetSeatingCategorySummaryRequest {
|
|
457
458
|
/**
|
|
458
459
|
* Seating plan external id
|
|
459
460
|
* @minLength 1
|
|
@@ -461,14 +462,14 @@ export interface GetSeatingCategorySummaryRequest {
|
|
|
461
462
|
*/
|
|
462
463
|
externalId?: string;
|
|
463
464
|
}
|
|
464
|
-
|
|
465
|
+
interface GetSeatingCategorySummaryResponse {
|
|
465
466
|
/**
|
|
466
467
|
* Ticket counts by category
|
|
467
468
|
* @maxSize 50000
|
|
468
469
|
*/
|
|
469
470
|
categories?: CategoryDetails[];
|
|
470
471
|
}
|
|
471
|
-
|
|
472
|
+
interface GetSeatingReservationSummaryRequest {
|
|
472
473
|
/**
|
|
473
474
|
* Seating plan external id
|
|
474
475
|
* @minLength 1
|
|
@@ -476,12 +477,12 @@ export interface GetSeatingReservationSummaryRequest {
|
|
|
476
477
|
*/
|
|
477
478
|
externalId: string;
|
|
478
479
|
}
|
|
479
|
-
|
|
480
|
+
interface GetSeatingReservationSummaryResponse {
|
|
480
481
|
plan?: SeatingPlan;
|
|
481
482
|
/** @maxSize 50000 */
|
|
482
483
|
places?: PlaceReservationDetails[];
|
|
483
484
|
}
|
|
484
|
-
|
|
485
|
+
interface SeatingPlan {
|
|
485
486
|
/**
|
|
486
487
|
* Auto generated unique plan id
|
|
487
488
|
* @format GUID
|
|
@@ -553,7 +554,7 @@ export interface SeatingPlan {
|
|
|
553
554
|
*/
|
|
554
555
|
elementGroups?: ElementGroup[];
|
|
555
556
|
}
|
|
556
|
-
|
|
557
|
+
interface Section {
|
|
557
558
|
/** Unique section id */
|
|
558
559
|
_id?: number;
|
|
559
560
|
/**
|
|
@@ -583,7 +584,7 @@ export interface Section {
|
|
|
583
584
|
*/
|
|
584
585
|
default?: boolean;
|
|
585
586
|
}
|
|
586
|
-
|
|
587
|
+
interface Element {
|
|
587
588
|
/**
|
|
588
589
|
* Unique element id
|
|
589
590
|
* @min 1
|
|
@@ -596,7 +597,7 @@ export interface Element {
|
|
|
596
597
|
*/
|
|
597
598
|
title?: string | null;
|
|
598
599
|
/** Element type */
|
|
599
|
-
type?:
|
|
600
|
+
type?: TypeWithLiterals;
|
|
600
601
|
/**
|
|
601
602
|
* Capacity. None for Shape type Element.
|
|
602
603
|
* @min 1
|
|
@@ -627,7 +628,7 @@ export interface Element {
|
|
|
627
628
|
/** Multi row element relevant for MULTI_ROW element type */
|
|
628
629
|
multiRowProperties?: MultiRowProperties;
|
|
629
630
|
}
|
|
630
|
-
|
|
631
|
+
declare enum Type {
|
|
631
632
|
AREA = "AREA",
|
|
632
633
|
ROW = "ROW",
|
|
633
634
|
MULTI_ROW = "MULTI_ROW",
|
|
@@ -635,7 +636,9 @@ export declare enum Type {
|
|
|
635
636
|
ROUND_TABLE = "ROUND_TABLE",
|
|
636
637
|
SHAPE = "SHAPE"
|
|
637
638
|
}
|
|
638
|
-
|
|
639
|
+
/** @enumType */
|
|
640
|
+
type TypeWithLiterals = Type | 'AREA' | 'ROW' | 'MULTI_ROW' | 'TABLE' | 'ROUND_TABLE' | 'SHAPE';
|
|
641
|
+
interface Sequencing {
|
|
639
642
|
/**
|
|
640
643
|
* First seq element
|
|
641
644
|
* @minLength 1
|
|
@@ -650,7 +653,7 @@ export interface Sequencing {
|
|
|
650
653
|
/** If true - direction right to left. Otherwise left to right. */
|
|
651
654
|
reverseOrder?: boolean | null;
|
|
652
655
|
}
|
|
653
|
-
|
|
656
|
+
interface Place {
|
|
654
657
|
/** Local id of the place in the sequence */
|
|
655
658
|
index?: number;
|
|
656
659
|
/**
|
|
@@ -673,16 +676,16 @@ export interface Place {
|
|
|
673
676
|
* Type of the parent element
|
|
674
677
|
* @readonly
|
|
675
678
|
*/
|
|
676
|
-
elementType?:
|
|
679
|
+
elementType?: TypeWithLiterals;
|
|
677
680
|
/**
|
|
678
681
|
* Assigned category id
|
|
679
682
|
* @readonly
|
|
680
683
|
*/
|
|
681
684
|
categoryId?: number | null;
|
|
682
685
|
/** Place type */
|
|
683
|
-
type?:
|
|
686
|
+
type?: PlaceTypeEnumTypeWithLiterals;
|
|
684
687
|
}
|
|
685
|
-
|
|
688
|
+
declare enum PlaceTypeEnumType {
|
|
686
689
|
UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
|
|
687
690
|
STANDARD = "STANDARD",
|
|
688
691
|
WHEELCHAIR = "WHEELCHAIR",
|
|
@@ -691,11 +694,13 @@ export declare enum PlaceTypeEnumType {
|
|
|
691
694
|
OBSTRUCTED = "OBSTRUCTED",
|
|
692
695
|
DISCOUNT = "DISCOUNT"
|
|
693
696
|
}
|
|
694
|
-
|
|
697
|
+
/** @enumType */
|
|
698
|
+
type PlaceTypeEnumTypeWithLiterals = PlaceTypeEnumType | 'UNKNOWN_PROPERTY' | 'STANDARD' | 'WHEELCHAIR' | 'ACCESSIBLE' | 'COMPANION' | 'OBSTRUCTED' | 'DISCOUNT';
|
|
699
|
+
interface ReservationOptions {
|
|
695
700
|
/** Indicates whether the entire element must be reserved */
|
|
696
701
|
reserveWholeElement?: boolean;
|
|
697
702
|
}
|
|
698
|
-
|
|
703
|
+
interface ElementUiProperties {
|
|
699
704
|
/**
|
|
700
705
|
* @min -1000000
|
|
701
706
|
* @max 1000000
|
|
@@ -720,7 +725,7 @@ export interface ElementUiProperties {
|
|
|
720
725
|
* @max 180
|
|
721
726
|
*/
|
|
722
727
|
rotationAngle?: number | null;
|
|
723
|
-
shapeType?:
|
|
728
|
+
shapeType?: ShapeTypeEnumTypeWithLiterals;
|
|
724
729
|
/**
|
|
725
730
|
* @min 10
|
|
726
731
|
* @max 176
|
|
@@ -734,7 +739,7 @@ export interface ElementUiProperties {
|
|
|
734
739
|
*/
|
|
735
740
|
seatSpacing?: number | null;
|
|
736
741
|
hideLabel?: boolean | null;
|
|
737
|
-
labelPosition?:
|
|
742
|
+
labelPosition?: PositionWithLiterals;
|
|
738
743
|
seatLayout?: number[];
|
|
739
744
|
/** @max 50 */
|
|
740
745
|
emptyTopSeatSpaces?: number | null;
|
|
@@ -767,11 +772,11 @@ export interface ElementUiProperties {
|
|
|
767
772
|
strokeWidth?: number | null;
|
|
768
773
|
/** @max 100 */
|
|
769
774
|
opacity?: number | null;
|
|
770
|
-
icon?:
|
|
775
|
+
icon?: IconWithLiterals;
|
|
771
776
|
image?: Image;
|
|
772
|
-
seatNumbering?:
|
|
777
|
+
seatNumbering?: NumberingWithLiterals;
|
|
773
778
|
}
|
|
774
|
-
|
|
779
|
+
declare enum ShapeTypeEnumType {
|
|
775
780
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
776
781
|
TEXT = "TEXT",
|
|
777
782
|
RECTANGLE = "RECTANGLE",
|
|
@@ -780,14 +785,18 @@ export declare enum ShapeTypeEnumType {
|
|
|
780
785
|
ICON = "ICON",
|
|
781
786
|
IMAGE = "IMAGE"
|
|
782
787
|
}
|
|
783
|
-
|
|
788
|
+
/** @enumType */
|
|
789
|
+
type ShapeTypeEnumTypeWithLiterals = ShapeTypeEnumType | 'UNKNOWN_TYPE' | 'TEXT' | 'RECTANGLE' | 'ELLIPSE' | 'LINE' | 'ICON' | 'IMAGE';
|
|
790
|
+
declare enum Position {
|
|
784
791
|
UNKNOWN_POSITION = "UNKNOWN_POSITION",
|
|
785
792
|
LEFT = "LEFT",
|
|
786
793
|
RIGHT = "RIGHT",
|
|
787
794
|
BOTH = "BOTH",
|
|
788
795
|
NONE = "NONE"
|
|
789
796
|
}
|
|
790
|
-
|
|
797
|
+
/** @enumType */
|
|
798
|
+
type PositionWithLiterals = Position | 'UNKNOWN_POSITION' | 'LEFT' | 'RIGHT' | 'BOTH' | 'NONE';
|
|
799
|
+
declare enum Icon {
|
|
791
800
|
UNKNOWN_ICON = "UNKNOWN_ICON",
|
|
792
801
|
ENTER = "ENTER",
|
|
793
802
|
EXIT = "EXIT",
|
|
@@ -802,7 +811,9 @@ export declare enum Icon {
|
|
|
802
811
|
CHECKROOM = "CHECKROOM",
|
|
803
812
|
STAGE = "STAGE"
|
|
804
813
|
}
|
|
805
|
-
|
|
814
|
+
/** @enumType */
|
|
815
|
+
type IconWithLiterals = Icon | 'UNKNOWN_ICON' | 'ENTER' | 'EXIT' | 'DRINKS' | 'WC' | 'WC_MEN' | 'WC_WOMEN' | 'FOOD' | 'STAIRS' | 'ELEVATOR' | 'SMOKING' | 'CHECKROOM' | 'STAGE';
|
|
816
|
+
interface Image {
|
|
806
817
|
/** WixMedia image ID. */
|
|
807
818
|
_id?: string;
|
|
808
819
|
/**
|
|
@@ -821,13 +832,15 @@ export interface Image {
|
|
|
821
832
|
*/
|
|
822
833
|
uri?: string | null;
|
|
823
834
|
}
|
|
824
|
-
|
|
835
|
+
declare enum Numbering {
|
|
825
836
|
UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
|
|
826
837
|
NUMERIC = "NUMERIC",
|
|
827
838
|
ODD_EVEN = "ODD_EVEN",
|
|
828
839
|
ALPHABETICAL = "ALPHABETICAL"
|
|
829
840
|
}
|
|
830
|
-
|
|
841
|
+
/** @enumType */
|
|
842
|
+
type NumberingWithLiterals = Numbering | 'UNKNOWN_NUMBERING' | 'NUMERIC' | 'ODD_EVEN' | 'ALPHABETICAL';
|
|
843
|
+
interface MultiRowProperties {
|
|
831
844
|
/**
|
|
832
845
|
* Individual rows of the multi row element
|
|
833
846
|
* @maxSize 1000
|
|
@@ -847,7 +860,7 @@ export interface MultiRowProperties {
|
|
|
847
860
|
*/
|
|
848
861
|
seatAmount?: number | null;
|
|
849
862
|
}
|
|
850
|
-
|
|
863
|
+
interface RowElement {
|
|
851
864
|
/**
|
|
852
865
|
* Unique row id
|
|
853
866
|
* @min 1
|
|
@@ -872,7 +885,7 @@ export interface RowElement {
|
|
|
872
885
|
/** Row UI settings */
|
|
873
886
|
uiProperties?: RowElementUiProperties;
|
|
874
887
|
}
|
|
875
|
-
|
|
888
|
+
interface RowElementUiProperties {
|
|
876
889
|
/**
|
|
877
890
|
* Relative x position to the parent element
|
|
878
891
|
* @min -1000000
|
|
@@ -896,11 +909,11 @@ export interface RowElementUiProperties {
|
|
|
896
909
|
*/
|
|
897
910
|
seatSpacing?: number | null;
|
|
898
911
|
/** Label position */
|
|
899
|
-
labelPosition?:
|
|
912
|
+
labelPosition?: PositionWithLiterals;
|
|
900
913
|
/** Seat numbering */
|
|
901
|
-
seatNumbering?:
|
|
914
|
+
seatNumbering?: NumberingWithLiterals;
|
|
902
915
|
}
|
|
903
|
-
|
|
916
|
+
interface VerticalSequencing {
|
|
904
917
|
/**
|
|
905
918
|
* First seq element
|
|
906
919
|
* @minLength 1
|
|
@@ -908,11 +921,11 @@ export interface VerticalSequencing {
|
|
|
908
921
|
*/
|
|
909
922
|
startAt?: string;
|
|
910
923
|
/** Row numbering */
|
|
911
|
-
rowNumbering?:
|
|
924
|
+
rowNumbering?: NumberingWithLiterals;
|
|
912
925
|
/** If true - direction bottom to top. Otherwise top to bottom. */
|
|
913
926
|
reverseOrder?: boolean | null;
|
|
914
927
|
}
|
|
915
|
-
|
|
928
|
+
interface Category {
|
|
916
929
|
/**
|
|
917
930
|
* Local category id within the seating plan
|
|
918
931
|
* @min 1
|
|
@@ -949,7 +962,7 @@ export interface Category {
|
|
|
949
962
|
*/
|
|
950
963
|
places?: Place[];
|
|
951
964
|
}
|
|
952
|
-
|
|
965
|
+
interface ExtendedFields {
|
|
953
966
|
/**
|
|
954
967
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
955
968
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -960,7 +973,7 @@ export interface ExtendedFields {
|
|
|
960
973
|
*/
|
|
961
974
|
namespaces?: Record<string, Record<string, any>>;
|
|
962
975
|
}
|
|
963
|
-
|
|
976
|
+
interface SeatingPlanUiProperties {
|
|
964
977
|
/**
|
|
965
978
|
* #F0F0F0
|
|
966
979
|
* @format COLOR_HEX
|
|
@@ -969,7 +982,7 @@ export interface SeatingPlanUiProperties {
|
|
|
969
982
|
/** @max 100 */
|
|
970
983
|
backgroundOpacity?: number | null;
|
|
971
984
|
}
|
|
972
|
-
|
|
985
|
+
interface ElementGroup {
|
|
973
986
|
/**
|
|
974
987
|
* Unique element group id
|
|
975
988
|
* @min 1
|
|
@@ -980,7 +993,7 @@ export interface ElementGroup {
|
|
|
980
993
|
/** Element group UI settings */
|
|
981
994
|
uiProperties?: ElementGroupUiProperties;
|
|
982
995
|
}
|
|
983
|
-
|
|
996
|
+
interface ElementGroupUiProperties {
|
|
984
997
|
/**
|
|
985
998
|
* x position of the group
|
|
986
999
|
* @min -1000000
|
|
@@ -1010,23 +1023,23 @@ export interface ElementGroupUiProperties {
|
|
|
1010
1023
|
*/
|
|
1011
1024
|
rotationAngle?: number | null;
|
|
1012
1025
|
}
|
|
1013
|
-
|
|
1026
|
+
interface RegenerateSummariesRequest {
|
|
1014
1027
|
/**
|
|
1015
1028
|
* Seating plan id
|
|
1016
1029
|
* @format GUID
|
|
1017
1030
|
*/
|
|
1018
1031
|
planId?: string | null;
|
|
1019
1032
|
}
|
|
1020
|
-
|
|
1033
|
+
interface RegenerateSummariesResponse {
|
|
1021
1034
|
seatingReservationsSummary?: SeatingReservationsSummary;
|
|
1022
1035
|
/** @maxSize 50000 */
|
|
1023
1036
|
categories?: CategoryDetails[];
|
|
1024
1037
|
}
|
|
1025
|
-
|
|
1038
|
+
interface SeatingReservationsSummary {
|
|
1026
1039
|
/** @maxSize 50000 */
|
|
1027
1040
|
places?: PlaceReservationDetails[];
|
|
1028
1041
|
}
|
|
1029
|
-
|
|
1042
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
1030
1043
|
createdEvent?: EntityCreatedEvent;
|
|
1031
1044
|
updatedEvent?: EntityUpdatedEvent;
|
|
1032
1045
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -1061,19 +1074,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1061
1074
|
entityEventSequence?: string | null;
|
|
1062
1075
|
}
|
|
1063
1076
|
/** @oneof */
|
|
1064
|
-
|
|
1077
|
+
interface DomainEventBodyOneOf {
|
|
1065
1078
|
createdEvent?: EntityCreatedEvent;
|
|
1066
1079
|
updatedEvent?: EntityUpdatedEvent;
|
|
1067
1080
|
deletedEvent?: EntityDeletedEvent;
|
|
1068
1081
|
actionEvent?: ActionEvent;
|
|
1069
1082
|
}
|
|
1070
|
-
|
|
1083
|
+
interface EntityCreatedEvent {
|
|
1071
1084
|
entity?: string;
|
|
1072
1085
|
}
|
|
1073
|
-
|
|
1086
|
+
interface RestoreInfo {
|
|
1074
1087
|
deletedDate?: Date | null;
|
|
1075
1088
|
}
|
|
1076
|
-
|
|
1089
|
+
interface EntityUpdatedEvent {
|
|
1077
1090
|
/**
|
|
1078
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.
|
|
1079
1092
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -1081,14 +1094,14 @@ export interface EntityUpdatedEvent {
|
|
|
1081
1094
|
*/
|
|
1082
1095
|
currentEntity?: string;
|
|
1083
1096
|
}
|
|
1084
|
-
|
|
1097
|
+
interface EntityDeletedEvent {
|
|
1085
1098
|
/** Entity that was deleted. */
|
|
1086
1099
|
deletedEntity?: string | null;
|
|
1087
1100
|
}
|
|
1088
|
-
|
|
1101
|
+
interface ActionEvent {
|
|
1089
1102
|
body?: string;
|
|
1090
1103
|
}
|
|
1091
|
-
|
|
1104
|
+
interface MessageEnvelope {
|
|
1092
1105
|
/**
|
|
1093
1106
|
* App instance ID.
|
|
1094
1107
|
* @format GUID
|
|
@@ -1104,7 +1117,7 @@ export interface MessageEnvelope {
|
|
|
1104
1117
|
/** Stringify payload. */
|
|
1105
1118
|
data?: string;
|
|
1106
1119
|
}
|
|
1107
|
-
|
|
1120
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1108
1121
|
/**
|
|
1109
1122
|
* ID of a site visitor that has not logged in to the site.
|
|
1110
1123
|
* @format GUID
|
|
@@ -1126,10 +1139,10 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
1126
1139
|
*/
|
|
1127
1140
|
appId?: string;
|
|
1128
1141
|
/** @readonly */
|
|
1129
|
-
identityType?:
|
|
1142
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1130
1143
|
}
|
|
1131
1144
|
/** @oneof */
|
|
1132
|
-
|
|
1145
|
+
interface IdentificationDataIdOneOf {
|
|
1133
1146
|
/**
|
|
1134
1147
|
* ID of a site visitor that has not logged in to the site.
|
|
1135
1148
|
* @format GUID
|
|
@@ -1151,14 +1164,16 @@ export interface IdentificationDataIdOneOf {
|
|
|
1151
1164
|
*/
|
|
1152
1165
|
appId?: string;
|
|
1153
1166
|
}
|
|
1154
|
-
|
|
1167
|
+
declare enum WebhookIdentityType {
|
|
1155
1168
|
UNKNOWN = "UNKNOWN",
|
|
1156
1169
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1157
1170
|
MEMBER = "MEMBER",
|
|
1158
1171
|
WIX_USER = "WIX_USER",
|
|
1159
1172
|
APP = "APP"
|
|
1160
1173
|
}
|
|
1161
|
-
|
|
1174
|
+
/** @enumType */
|
|
1175
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1176
|
+
interface BaseEventMetadata {
|
|
1162
1177
|
/**
|
|
1163
1178
|
* App instance ID.
|
|
1164
1179
|
* @format GUID
|
|
@@ -1172,7 +1187,7 @@ export interface BaseEventMetadata {
|
|
|
1172
1187
|
/** The identification type and identity data. */
|
|
1173
1188
|
identity?: IdentificationData;
|
|
1174
1189
|
}
|
|
1175
|
-
|
|
1190
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
1176
1191
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1177
1192
|
_id?: string;
|
|
1178
1193
|
/**
|
|
@@ -1202,74 +1217,18 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
1202
1217
|
*/
|
|
1203
1218
|
entityEventSequence?: string | null;
|
|
1204
1219
|
}
|
|
1205
|
-
|
|
1220
|
+
interface SeatingReservationCreatedEnvelope {
|
|
1206
1221
|
entity: SeatingReservation;
|
|
1207
1222
|
metadata: EventMetadata;
|
|
1208
1223
|
}
|
|
1209
|
-
|
|
1210
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1211
|
-
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1212
|
-
* @webhook
|
|
1213
|
-
* @eventType wix.seating.v1.seating_reservation_created
|
|
1214
|
-
* @slug created
|
|
1215
|
-
* @documentationMaturity preview
|
|
1216
|
-
*/
|
|
1217
|
-
export declare function onSeatingReservationCreated(handler: (event: SeatingReservationCreatedEnvelope) => void | Promise<void>): void;
|
|
1218
|
-
export interface SeatingReservationDeletedEnvelope {
|
|
1224
|
+
interface SeatingReservationDeletedEnvelope {
|
|
1219
1225
|
entity: SeatingReservation;
|
|
1220
1226
|
metadata: EventMetadata;
|
|
1221
1227
|
}
|
|
1222
|
-
|
|
1223
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1224
|
-
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1225
|
-
* @webhook
|
|
1226
|
-
* @eventType wix.seating.v1.seating_reservation_deleted
|
|
1227
|
-
* @slug deleted
|
|
1228
|
-
* @documentationMaturity preview
|
|
1229
|
-
*/
|
|
1230
|
-
export declare function onSeatingReservationDeleted(handler: (event: SeatingReservationDeletedEnvelope) => void | Promise<void>): void;
|
|
1231
|
-
type SeatingReservationNonNullablePaths = `reservedPlaces` | `reservedPlaces.${number}._id`;
|
|
1232
|
-
/**
|
|
1233
|
-
* Creates a seating reservation
|
|
1234
|
-
* @public
|
|
1235
|
-
* @documentationMaturity preview
|
|
1236
|
-
* @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
|
|
1237
|
-
* @permissionScope Manage Events
|
|
1238
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1239
|
-
* @applicableIdentity APP
|
|
1240
|
-
* @returns Created reservation
|
|
1241
|
-
* @fqn com.wixpress.seating.SeatingReservationService.CreateSeatingReservation
|
|
1242
|
-
*/
|
|
1243
|
-
export declare function createSeatingReservation(options?: CreateSeatingReservationOptions): Promise<NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths>>;
|
|
1244
|
-
export interface CreateSeatingReservationOptions {
|
|
1228
|
+
interface CreateSeatingReservationOptions {
|
|
1245
1229
|
/** A reservation to create */
|
|
1246
1230
|
reservation?: SeatingReservation;
|
|
1247
1231
|
}
|
|
1248
|
-
/**
|
|
1249
|
-
* Returns seating reservation
|
|
1250
|
-
* @param _id - The id of the reservation to return
|
|
1251
|
-
* @public
|
|
1252
|
-
* @documentationMaturity preview
|
|
1253
|
-
* @requiredField _id
|
|
1254
|
-
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1255
|
-
* @permissionScope Manage Events
|
|
1256
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1257
|
-
* @applicableIdentity APP
|
|
1258
|
-
* @returns Created reservation
|
|
1259
|
-
* @fqn com.wixpress.seating.SeatingReservationService.GetReservation
|
|
1260
|
-
*/
|
|
1261
|
-
export declare function getReservation(_id: string): Promise<NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths>>;
|
|
1262
|
-
/**
|
|
1263
|
-
* Lists seating reservations by query request
|
|
1264
|
-
* @public
|
|
1265
|
-
* @documentationMaturity preview
|
|
1266
|
-
* @permissionScope Manage Events
|
|
1267
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1268
|
-
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1269
|
-
* @applicableIdentity APP
|
|
1270
|
-
* @fqn com.wixpress.seating.SeatingReservationService.QuerySeatingReservation
|
|
1271
|
-
*/
|
|
1272
|
-
export declare function querySeatingReservation(): ReservationsQueryBuilder;
|
|
1273
1232
|
interface QueryCursorResult {
|
|
1274
1233
|
cursors: Cursors;
|
|
1275
1234
|
hasNext: () => boolean;
|
|
@@ -1277,13 +1236,13 @@ interface QueryCursorResult {
|
|
|
1277
1236
|
length: number;
|
|
1278
1237
|
pageSize: number;
|
|
1279
1238
|
}
|
|
1280
|
-
|
|
1239
|
+
interface ReservationsQueryResult extends QueryCursorResult {
|
|
1281
1240
|
items: SeatingReservation[];
|
|
1282
1241
|
query: ReservationsQueryBuilder;
|
|
1283
1242
|
next: () => Promise<ReservationsQueryResult>;
|
|
1284
1243
|
prev: () => Promise<ReservationsQueryResult>;
|
|
1285
1244
|
}
|
|
1286
|
-
|
|
1245
|
+
interface ReservationsQueryBuilder {
|
|
1287
1246
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1288
1247
|
* @documentationMaturity preview
|
|
1289
1248
|
*/
|
|
@@ -1295,32 +1254,7 @@ export interface ReservationsQueryBuilder {
|
|
|
1295
1254
|
/** @documentationMaturity preview */
|
|
1296
1255
|
find: () => Promise<ReservationsQueryResult>;
|
|
1297
1256
|
}
|
|
1298
|
-
|
|
1299
|
-
* Deletes the seating reservation
|
|
1300
|
-
* @param _id - The id of the reservation to delete
|
|
1301
|
-
* @public
|
|
1302
|
-
* @documentationMaturity preview
|
|
1303
|
-
* @requiredField _id
|
|
1304
|
-
* @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
|
|
1305
|
-
* @permissionScope Manage Events
|
|
1306
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1307
|
-
* @applicableIdentity APP
|
|
1308
|
-
* @fqn com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation
|
|
1309
|
-
*/
|
|
1310
|
-
export declare function deleteSeatingReservation(_id: string): Promise<NonNullablePaths<DeleteSeatingReservationResponse, {
|
|
1311
|
-
[P in SeatingReservationNonNullablePaths]: `reservation.${P}`;
|
|
1312
|
-
}[SeatingReservationNonNullablePaths]>>;
|
|
1313
|
-
/** @public
|
|
1314
|
-
* @documentationMaturity preview
|
|
1315
|
-
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1316
|
-
* @permissionScope Manage Events
|
|
1317
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1318
|
-
* @applicableIdentity APP
|
|
1319
|
-
* @applicableIdentity VISITOR
|
|
1320
|
-
* @fqn com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary
|
|
1321
|
-
*/
|
|
1322
|
-
export declare function getSeatingCategorySummary(options?: GetSeatingCategorySummaryOptions): Promise<NonNullablePaths<GetSeatingCategorySummaryResponse, `categories`>>;
|
|
1323
|
-
export interface GetSeatingCategorySummaryOptions {
|
|
1257
|
+
interface GetSeatingCategorySummaryOptions {
|
|
1324
1258
|
/**
|
|
1325
1259
|
* Seating plan external id
|
|
1326
1260
|
* @minLength 1
|
|
@@ -1328,16 +1262,5 @@ export interface GetSeatingCategorySummaryOptions {
|
|
|
1328
1262
|
*/
|
|
1329
1263
|
externalId?: string;
|
|
1330
1264
|
}
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
* @documentationMaturity preview
|
|
1334
|
-
* @requiredField externalId
|
|
1335
|
-
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1336
|
-
* @permissionScope Manage Events
|
|
1337
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1338
|
-
* @applicableIdentity APP
|
|
1339
|
-
* @applicableIdentity VISITOR
|
|
1340
|
-
* @fqn com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary
|
|
1341
|
-
*/
|
|
1342
|
-
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`>>;
|
|
1343
|
-
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 };
|