@wix/auto_sdk_seatings_seating-reservation 1.0.13 → 1.0.14
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 +18 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +140 -83
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +121 -71
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +18 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +140 -83
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +121 -71
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -10
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +140 -83
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +121 -71
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +18 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +140 -83
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +121 -71
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,132 +1,139 @@
|
|
|
1
1
|
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* A seating reservation represents a booking for one or more places within a seating plan.
|
|
5
|
+
*
|
|
6
|
+
* Seating reservations track specific seat assignments or area capacity allocations for events. Each reservation can include multiple places across different sections of a venue, with individual capacity requirements for each place. The system maintains referential integrity through both internal Wix identifiers and external system references, enabling seamless integration with third-party ticketing platforms.
|
|
7
|
+
*/
|
|
3
8
|
interface SeatingReservation {
|
|
4
9
|
/**
|
|
5
|
-
*
|
|
10
|
+
* Reservation ID.
|
|
6
11
|
* @format GUID
|
|
7
12
|
* @readonly
|
|
8
13
|
*/
|
|
9
14
|
_id?: string | null;
|
|
10
15
|
/**
|
|
11
|
-
*
|
|
16
|
+
* Seating plan ID.
|
|
12
17
|
* @format GUID
|
|
13
18
|
* @readonly
|
|
14
19
|
*/
|
|
15
20
|
seatingPlanId?: string | null;
|
|
16
21
|
/**
|
|
17
|
-
*
|
|
22
|
+
* External seating plan ID used for integration with third-party venue systems.
|
|
18
23
|
* @minLength 1
|
|
19
24
|
* @maxLength 100
|
|
20
25
|
* @readonly
|
|
21
26
|
*/
|
|
22
27
|
externalSeatingPlanId?: string | null;
|
|
23
28
|
/**
|
|
24
|
-
*
|
|
29
|
+
* Places reserved in this reservation. Each place can have its own capacity requirements.
|
|
25
30
|
* @minSize 1
|
|
26
31
|
* @maxSize 100
|
|
27
32
|
*/
|
|
28
33
|
reservedPlaces?: PlaceReservation[];
|
|
29
34
|
/**
|
|
30
|
-
*
|
|
31
|
-
* Can reference external entities.
|
|
32
|
-
* Format: "{fqdn}:{entity guid}"
|
|
35
|
+
* External reference ID for cross-system integration. Format: `{fqdn}:{entity guid}`. For example, `wix.events.v1.ticket:12345678-1234-1234-1234-123456789012`.
|
|
33
36
|
* @minLength 1
|
|
34
37
|
* @maxLength 100
|
|
35
38
|
*/
|
|
36
39
|
externalId?: string | null;
|
|
37
40
|
/**
|
|
38
|
-
* Revision number, which increments by 1 each time the reservation is updated.
|
|
41
|
+
* Revision number, which increments by 1 each time the reservation is updated. To prevent conflicting changes, the current revision must be passed when updating the reservation. Ignored when creating a reservation.
|
|
39
42
|
* @readonly
|
|
40
43
|
*/
|
|
41
44
|
revision?: string | null;
|
|
42
45
|
}
|
|
46
|
+
/** Individual place reservation within a seating arrangement. */
|
|
43
47
|
interface PlaceReservation {
|
|
44
48
|
/**
|
|
45
|
-
*
|
|
49
|
+
* Place ID. For example, `A1-1-5` for section A, row 1, seat 5.
|
|
46
50
|
* @minLength 5
|
|
47
51
|
* @maxLength 11
|
|
48
52
|
*/
|
|
49
53
|
_id?: string;
|
|
50
54
|
/**
|
|
51
|
-
* Number of
|
|
52
|
-
*
|
|
55
|
+
* Number of people to be seated at this place. Used for area seating where multiple guests can occupy a single reservable location.
|
|
56
|
+
*
|
|
57
|
+
* Default: `1`
|
|
53
58
|
* @min 1
|
|
54
59
|
* @max 50
|
|
55
60
|
*/
|
|
56
61
|
capacity?: number | null;
|
|
57
62
|
/**
|
|
58
|
-
*
|
|
63
|
+
* Section name within the venue. For example, `Orchestra` or `Balcony`.
|
|
59
64
|
* @readonly
|
|
60
65
|
*/
|
|
61
66
|
sectionLabel?: string | null;
|
|
62
67
|
/**
|
|
63
|
-
* Area
|
|
68
|
+
* Area name within a section. Used for general admission or standing areas.
|
|
64
69
|
* @readonly
|
|
65
70
|
*/
|
|
66
71
|
areaLabel?: string | null;
|
|
67
72
|
/**
|
|
68
|
-
* Table
|
|
73
|
+
* Table identifier for table-based seating arrangements.
|
|
69
74
|
* @readonly
|
|
70
75
|
*/
|
|
71
76
|
tableLabel?: string | null;
|
|
72
77
|
/**
|
|
73
|
-
* Row
|
|
78
|
+
* Row identifier within a section or area.
|
|
74
79
|
* @readonly
|
|
75
80
|
*/
|
|
76
81
|
rowLabel?: string | null;
|
|
77
82
|
/**
|
|
78
|
-
*
|
|
83
|
+
* Individual seat identifier within a row or at a table.
|
|
79
84
|
* @readonly
|
|
80
85
|
*/
|
|
81
86
|
seatLabel?: string | null;
|
|
82
87
|
}
|
|
88
|
+
/** Triggers when seating plan category summaries are updated. */
|
|
83
89
|
interface SeatingPlanCategoriesSummaryUpdated {
|
|
84
90
|
/**
|
|
85
|
-
* Seating plan
|
|
91
|
+
* Seating plan ID.
|
|
86
92
|
* @format GUID
|
|
87
93
|
*/
|
|
88
94
|
seatingPlanId?: string;
|
|
89
|
-
/** External seating plan
|
|
95
|
+
/** External seating plan ID. */
|
|
90
96
|
externalSeatingPlanId?: string | null;
|
|
91
97
|
/**
|
|
92
|
-
*
|
|
98
|
+
* Updated category capacity and reservation counts.
|
|
93
99
|
* @maxSize 100
|
|
94
100
|
*/
|
|
95
101
|
categories?: CategoryDetails[];
|
|
96
102
|
/**
|
|
97
|
-
* Summary revision.
|
|
103
|
+
* Summary revision number for cache invalidation.
|
|
98
104
|
* @readonly
|
|
99
105
|
*/
|
|
100
106
|
revision?: string | null;
|
|
101
107
|
}
|
|
108
|
+
/** Category capacity and reservation summary. */
|
|
102
109
|
interface CategoryDetails {
|
|
103
110
|
/**
|
|
104
|
-
* Seating
|
|
111
|
+
* Seating Plan ID.
|
|
105
112
|
* @format GUID
|
|
106
113
|
* @readonly
|
|
107
114
|
*/
|
|
108
115
|
seatingPlanId?: string | null;
|
|
109
116
|
/**
|
|
110
|
-
* External
|
|
117
|
+
* External Seating Plan ID used for integration with third-party systems.
|
|
111
118
|
* @minLength 1
|
|
112
119
|
* @maxLength 100
|
|
113
120
|
* @readonly
|
|
114
121
|
*/
|
|
115
122
|
externalSeatingPlanId?: string | null;
|
|
116
123
|
/**
|
|
117
|
-
* External category
|
|
124
|
+
* External Category ID used for mapping to venue-specific category names. For example, `VIP` or `ORCHESTRA`.
|
|
118
125
|
* @minLength 1
|
|
119
126
|
* @maxLength 100
|
|
120
127
|
* @readonly
|
|
121
128
|
*/
|
|
122
129
|
externalCategoryId?: string | null;
|
|
123
130
|
/**
|
|
124
|
-
* Total capacity in
|
|
131
|
+
* Total seating capacity available in category.
|
|
125
132
|
* @readonly
|
|
126
133
|
*/
|
|
127
134
|
totalCapacity?: number | null;
|
|
128
135
|
/**
|
|
129
|
-
*
|
|
136
|
+
* Number of seats currently reserved in category.
|
|
130
137
|
* @readonly
|
|
131
138
|
*/
|
|
132
139
|
reserved?: number | null;
|
|
@@ -246,57 +253,65 @@ interface CustomTag {
|
|
|
246
253
|
*/
|
|
247
254
|
tag?: string;
|
|
248
255
|
}
|
|
256
|
+
/** Request to create a seating reservation. */
|
|
249
257
|
interface CreateSeatingReservationRequest {
|
|
250
|
-
/**
|
|
258
|
+
/** Reservation to create. */
|
|
251
259
|
reservation?: SeatingReservation;
|
|
252
260
|
}
|
|
261
|
+
/** Response after creating a seating reservation. */
|
|
253
262
|
interface CreateSeatingReservationResponse {
|
|
254
|
-
/** Created reservation */
|
|
263
|
+
/** Created reservation. */
|
|
255
264
|
reservation?: SeatingReservation;
|
|
256
265
|
}
|
|
266
|
+
/** Details about specific places, used for error reporting. */
|
|
257
267
|
interface Places {
|
|
258
268
|
/**
|
|
259
|
-
*
|
|
269
|
+
* List of place identifiers. For example, `A1-1-5` or `VIP-12`.
|
|
260
270
|
* @minSize 1
|
|
261
271
|
* @maxSize 100
|
|
262
272
|
*/
|
|
263
273
|
places?: string[];
|
|
264
274
|
}
|
|
275
|
+
/** Details about places that are unavailable, including capacity conflicts. */
|
|
265
276
|
interface UnavailablePlaces {
|
|
266
277
|
/**
|
|
267
|
-
*
|
|
278
|
+
* List of place identifiers that are unavailable. For example, `A1-1-5` or `VIP-12`.
|
|
268
279
|
* @minSize 1
|
|
269
280
|
* @maxSize 100
|
|
270
281
|
*/
|
|
271
282
|
unavailablePlaces?: string[];
|
|
272
283
|
/**
|
|
273
|
-
*
|
|
284
|
+
* Detailed capacity information for each unavailable place.
|
|
274
285
|
* @minSize 1
|
|
275
286
|
* @maxSize 100
|
|
276
287
|
*/
|
|
277
288
|
reservationErrorDetails?: ReservationErrorDetails[];
|
|
278
289
|
}
|
|
290
|
+
/** Capacity conflict details for a given place. */
|
|
279
291
|
interface ReservationErrorDetails {
|
|
280
|
-
/**
|
|
292
|
+
/** ID of the place with a capacity conflict. */
|
|
281
293
|
_id?: string;
|
|
282
|
-
/**
|
|
294
|
+
/** Currently available capacity at this place. */
|
|
283
295
|
available?: number;
|
|
284
|
-
/** Requested capacity */
|
|
296
|
+
/** Requested capacity that exceeds the available capacity. */
|
|
285
297
|
requested?: number;
|
|
286
298
|
}
|
|
299
|
+
/** Request to retrieve a specific seating reservation. */
|
|
287
300
|
interface GetReservationRequest {
|
|
288
301
|
/**
|
|
289
|
-
*
|
|
302
|
+
* Reservation ID.
|
|
290
303
|
* @format GUID
|
|
291
304
|
*/
|
|
292
305
|
_id: string | null;
|
|
293
306
|
}
|
|
307
|
+
/** Response containing the requested seating reservation. */
|
|
294
308
|
interface GetReservationResponse {
|
|
295
|
-
/**
|
|
309
|
+
/** Retrieved reservation. */
|
|
296
310
|
reservation?: SeatingReservation;
|
|
297
311
|
}
|
|
312
|
+
/** Request to query seating reservations. */
|
|
298
313
|
interface QuerySeatingReservationRequest {
|
|
299
|
-
/**
|
|
314
|
+
/** Query object with filter criteria and pagination settings. */
|
|
300
315
|
query: QueryV2;
|
|
301
316
|
}
|
|
302
317
|
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
@@ -364,10 +379,11 @@ interface CursorPaging {
|
|
|
364
379
|
*/
|
|
365
380
|
cursor?: string | null;
|
|
366
381
|
}
|
|
382
|
+
/** Response containing matching seating reservations. */
|
|
367
383
|
interface QuerySeatingReservationResponse {
|
|
368
|
-
/** Found reservations */
|
|
384
|
+
/** Found reservations matching the query criteria. */
|
|
369
385
|
reservations?: SeatingReservation[];
|
|
370
|
-
/** Paging
|
|
386
|
+
/** Paging metadata for result navigation. */
|
|
371
387
|
metadata?: PagingMetadataV2;
|
|
372
388
|
}
|
|
373
389
|
interface PagingMetadataV2 {
|
|
@@ -394,129 +410,145 @@ interface Cursors {
|
|
|
394
410
|
*/
|
|
395
411
|
prev?: string | null;
|
|
396
412
|
}
|
|
413
|
+
/** Request to delete a seating reservation. */
|
|
397
414
|
interface DeleteSeatingReservationRequest {
|
|
398
415
|
/**
|
|
399
|
-
*
|
|
416
|
+
* Reservation ID.
|
|
400
417
|
* @format GUID
|
|
401
418
|
*/
|
|
402
419
|
_id: string | null;
|
|
403
420
|
}
|
|
421
|
+
/** Response after deleting a seating reservation. */
|
|
404
422
|
interface DeleteSeatingReservationResponse {
|
|
405
|
-
/**
|
|
423
|
+
/** Deleted reservation. */
|
|
406
424
|
reservation?: SeatingReservation;
|
|
407
425
|
}
|
|
426
|
+
/** Request to delete a specific place reservation. */
|
|
408
427
|
interface DeleteSeatingPlaceReservationRequest {
|
|
409
|
-
/**
|
|
428
|
+
/** Place reservation ID. */
|
|
410
429
|
_id?: string | null;
|
|
411
430
|
/**
|
|
412
|
-
*
|
|
431
|
+
* Seating reservation ID that contains the place reservation.
|
|
413
432
|
* @format GUID
|
|
414
433
|
*/
|
|
415
434
|
reservationId?: string | null;
|
|
416
435
|
}
|
|
417
436
|
interface Empty {
|
|
418
437
|
}
|
|
438
|
+
/** Request to cancel specific place reservations. */
|
|
419
439
|
interface CancelSeatingPlaceReservationsRequest {
|
|
420
440
|
/**
|
|
421
|
-
*
|
|
441
|
+
* Seating reservation ID containing the places to cancel.
|
|
422
442
|
* @format GUID
|
|
423
443
|
*/
|
|
424
444
|
reservationId?: string | null;
|
|
425
445
|
/**
|
|
426
|
-
*
|
|
446
|
+
* Place reservations to cancel with their reduced capacity.
|
|
427
447
|
* @minSize 1
|
|
428
448
|
* @maxSize 100
|
|
429
449
|
*/
|
|
430
450
|
placeReservations?: PlaceReservationDetails[];
|
|
431
451
|
}
|
|
452
|
+
/** Occupancy details for a specific place in a seating plan. */
|
|
432
453
|
interface PlaceReservationDetails {
|
|
454
|
+
/** Place ID. */
|
|
433
455
|
placeId?: string;
|
|
456
|
+
/** Number of occupied seats or capacity units at this place. */
|
|
434
457
|
occupied?: number;
|
|
435
458
|
}
|
|
459
|
+
/** Response after canceling place reservations. */
|
|
436
460
|
interface CancelSeatingPlaceReservationsResponse {
|
|
437
|
-
/**
|
|
461
|
+
/** Reservation with canceled place reservations. */
|
|
438
462
|
reservation?: SeatingReservation;
|
|
439
463
|
}
|
|
464
|
+
/** Request to update a seating reservation. */
|
|
440
465
|
interface UpdateSeatingReservationRequest {
|
|
441
|
-
/**
|
|
466
|
+
/** Reservation to update with modified capacity values. */
|
|
442
467
|
reservation?: SeatingReservation;
|
|
443
468
|
}
|
|
469
|
+
/** Response after updating a seating reservation. */
|
|
444
470
|
interface UpdateSeatingReservationResponse {
|
|
445
|
-
/**
|
|
471
|
+
/** Updated reservation. */
|
|
446
472
|
reservation?: SeatingReservation;
|
|
447
473
|
}
|
|
474
|
+
/** Request to retrieve all reserved places for a seating plan. */
|
|
448
475
|
interface GetReservedPlacesRequest {
|
|
449
476
|
/**
|
|
450
|
-
* Seating plan
|
|
477
|
+
* Seating plan ID.
|
|
451
478
|
* @format GUID
|
|
452
479
|
*/
|
|
453
480
|
_id?: string | null;
|
|
454
481
|
}
|
|
482
|
+
/** Response containing all reserved places for a seating plan. */
|
|
455
483
|
interface GetReservedPlacesResponse {
|
|
456
|
-
/** Reserved places
|
|
484
|
+
/** Reserved places in the seating plan. */
|
|
457
485
|
placeReservations?: PlaceReservation[];
|
|
458
486
|
}
|
|
487
|
+
/** Request to list reserved places with optional filtering. */
|
|
459
488
|
interface ListReservedPlacesRequest {
|
|
460
489
|
/**
|
|
461
|
-
* Seating plan
|
|
490
|
+
* Seating plan ID.
|
|
462
491
|
* @format GUID
|
|
463
492
|
*/
|
|
464
493
|
planId?: string | null;
|
|
465
494
|
/**
|
|
466
|
-
* Optional filter by reservation
|
|
495
|
+
* Optional filter by reservation ID.
|
|
467
496
|
* @format GUID
|
|
468
497
|
*/
|
|
469
498
|
reservationId?: string | null;
|
|
470
499
|
/**
|
|
471
|
-
* Optional filter by seat
|
|
500
|
+
* Optional filter by specific seat IDs.
|
|
472
501
|
* @maxSize 50
|
|
473
502
|
* @maxLength 20
|
|
474
503
|
*/
|
|
475
504
|
seatId?: string[];
|
|
476
|
-
/** Paging */
|
|
505
|
+
/** Paging configuration. */
|
|
477
506
|
paging?: Paging;
|
|
478
507
|
}
|
|
508
|
+
/** Response containing filtered reserved places. */
|
|
479
509
|
interface ListReservedPlacesResponse {
|
|
480
|
-
/**
|
|
510
|
+
/** Reserved places matching the filter criteria. */
|
|
481
511
|
reservedPlaces?: ReservedPlace[];
|
|
482
|
-
/** Paging */
|
|
512
|
+
/** Paging metadata for result navigation. */
|
|
483
513
|
pagingMetadata?: PagingMetadata;
|
|
484
514
|
}
|
|
515
|
+
/** Internal representation of a place reservation. */
|
|
485
516
|
interface SeatReservation {
|
|
486
517
|
/**
|
|
487
|
-
* Place reservation
|
|
518
|
+
* Place reservation ID.
|
|
488
519
|
* @maxLength 72
|
|
489
520
|
*/
|
|
490
521
|
seatReservationId?: string | null;
|
|
491
522
|
/**
|
|
492
|
-
*
|
|
523
|
+
* Place ID.
|
|
493
524
|
* @maxLength 20
|
|
494
525
|
*/
|
|
495
526
|
seatId?: string | null;
|
|
496
527
|
/**
|
|
497
|
-
* Seating plan
|
|
528
|
+
* Seating plan ID.
|
|
498
529
|
* @format GUID
|
|
499
530
|
*/
|
|
500
531
|
planId?: string | null;
|
|
501
532
|
/**
|
|
502
|
-
* Seating reservation
|
|
533
|
+
* Seating reservation ID.
|
|
503
534
|
* @format GUID
|
|
504
535
|
*/
|
|
505
536
|
reservationId?: string | null;
|
|
506
537
|
/**
|
|
507
|
-
*
|
|
538
|
+
* Number of occupied spots at this place.
|
|
508
539
|
* @max 50000
|
|
509
540
|
*/
|
|
510
541
|
spots?: number | null;
|
|
511
|
-
/**
|
|
542
|
+
/** Whether this is an area-based reservation (true) or individual seat (false). */
|
|
512
543
|
area?: boolean | null;
|
|
513
544
|
}
|
|
545
|
+
/** Individual reserved place with full context. */
|
|
514
546
|
interface ReservedPlace {
|
|
515
|
-
/** Place reservation */
|
|
547
|
+
/** Place reservation details. */
|
|
516
548
|
seatReservation?: SeatReservation;
|
|
517
|
-
/**
|
|
549
|
+
/** Parent reservation (active). */
|
|
518
550
|
reservation?: SeatingReservation;
|
|
519
|
-
/**
|
|
551
|
+
/** Parent reservation (deleted, for audit trail). */
|
|
520
552
|
reservationFromTrashBin?: SeatingReservation;
|
|
521
553
|
}
|
|
522
554
|
interface PagingMetadata {
|
|
@@ -529,32 +561,40 @@ interface PagingMetadata {
|
|
|
529
561
|
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
530
562
|
tooManyToCount?: boolean | null;
|
|
531
563
|
}
|
|
564
|
+
/** Request to retrieve category-level capacity summary. */
|
|
532
565
|
interface GetSeatingCategorySummaryRequest {
|
|
533
566
|
/**
|
|
534
|
-
*
|
|
567
|
+
* External seating plan ID.
|
|
535
568
|
* @minLength 1
|
|
536
569
|
* @maxLength 100
|
|
537
570
|
*/
|
|
538
571
|
externalId?: string;
|
|
539
572
|
}
|
|
573
|
+
/** Response containing capacity summary by category. */
|
|
540
574
|
interface GetSeatingCategorySummaryResponse {
|
|
541
575
|
/**
|
|
542
|
-
*
|
|
576
|
+
* Capacity and reservation counts by category.
|
|
543
577
|
* @maxSize 50000
|
|
544
578
|
*/
|
|
545
579
|
categories?: CategoryDetails[];
|
|
546
580
|
}
|
|
581
|
+
/** Request to retrieve detailed place-level occupancy data. */
|
|
547
582
|
interface GetSeatingReservationSummaryRequest {
|
|
548
583
|
/**
|
|
549
|
-
*
|
|
584
|
+
* External seating plan ID.
|
|
550
585
|
* @minLength 1
|
|
551
586
|
* @maxLength 100
|
|
552
587
|
*/
|
|
553
588
|
externalId: string;
|
|
554
589
|
}
|
|
590
|
+
/** Response containing complete seating plan and occupancy data. */
|
|
555
591
|
interface GetSeatingReservationSummaryResponse {
|
|
592
|
+
/** Complete seating plan structure. */
|
|
556
593
|
plan?: SeatingPlan;
|
|
557
|
-
/**
|
|
594
|
+
/**
|
|
595
|
+
* Occupancy details for each place in the plan.
|
|
596
|
+
* @maxSize 50000
|
|
597
|
+
*/
|
|
558
598
|
places?: PlaceReservationDetails[];
|
|
559
599
|
}
|
|
560
600
|
/** A seating plan represents the layout and organization of seats within a venue. It defines the physical arrangement of seating areas, pricing categories, and individual places where attendees can be seated or positioned during an event. */
|
|
@@ -1183,20 +1223,30 @@ interface ElementGroupUiProperties {
|
|
|
1183
1223
|
*/
|
|
1184
1224
|
rotationAngle?: number | null;
|
|
1185
1225
|
}
|
|
1226
|
+
/** Request to regenerate cached summaries. */
|
|
1186
1227
|
interface RegenerateSummariesRequest {
|
|
1187
1228
|
/**
|
|
1188
|
-
* Seating plan
|
|
1229
|
+
* Seating plan ID.
|
|
1189
1230
|
* @format GUID
|
|
1190
1231
|
*/
|
|
1191
1232
|
planId?: string | null;
|
|
1192
1233
|
}
|
|
1234
|
+
/** Response after regenerating summaries. */
|
|
1193
1235
|
interface RegenerateSummariesResponse {
|
|
1236
|
+
/** Regenerated place-level occupancy summary. */
|
|
1194
1237
|
seatingReservationsSummary?: SeatingReservationsSummary;
|
|
1195
|
-
/**
|
|
1238
|
+
/**
|
|
1239
|
+
* Regenerated category-level summaries.
|
|
1240
|
+
* @maxSize 50000
|
|
1241
|
+
*/
|
|
1196
1242
|
categories?: CategoryDetails[];
|
|
1197
1243
|
}
|
|
1244
|
+
/** Aggregated occupancy data for all places in a seating plan. */
|
|
1198
1245
|
interface SeatingReservationsSummary {
|
|
1199
|
-
/**
|
|
1246
|
+
/**
|
|
1247
|
+
* Occupancy details for each place.
|
|
1248
|
+
* @maxSize 50000
|
|
1249
|
+
*/
|
|
1200
1250
|
places?: PlaceReservationDetails[];
|
|
1201
1251
|
}
|
|
1202
1252
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1414,35 +1464,35 @@ interface SeatingReservationDeletedEnvelope {
|
|
|
1414
1464
|
*/
|
|
1415
1465
|
declare function onSeatingReservationDeleted(handler: (event: SeatingReservationDeletedEnvelope) => void | Promise<void>): void;
|
|
1416
1466
|
/**
|
|
1417
|
-
* Creates a seating reservation
|
|
1467
|
+
* Creates a seating reservation for one or more places within a seating plan.
|
|
1418
1468
|
* @public
|
|
1419
1469
|
* @documentationMaturity preview
|
|
1420
1470
|
* @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
|
|
1421
1471
|
* @applicableIdentity APP
|
|
1422
|
-
* @returns Created reservation
|
|
1472
|
+
* @returns Created reservation.
|
|
1423
1473
|
* @fqn com.wixpress.seating.SeatingReservationService.CreateSeatingReservation
|
|
1424
1474
|
*/
|
|
1425
1475
|
declare function createSeatingReservation(options?: CreateSeatingReservationOptions): Promise<NonNullablePaths<SeatingReservation, `reservedPlaces` | `reservedPlaces.${number}._id`, 4> & {
|
|
1426
1476
|
__applicationErrorsType?: CreateSeatingReservationApplicationErrors;
|
|
1427
1477
|
}>;
|
|
1428
1478
|
interface CreateSeatingReservationOptions {
|
|
1429
|
-
/**
|
|
1479
|
+
/** Reservation to create. */
|
|
1430
1480
|
reservation?: SeatingReservation;
|
|
1431
1481
|
}
|
|
1432
1482
|
/**
|
|
1433
|
-
*
|
|
1434
|
-
* @param _id -
|
|
1483
|
+
* Retrieves a seating reservation by ID.
|
|
1484
|
+
* @param _id - Reservation ID.
|
|
1435
1485
|
* @public
|
|
1436
1486
|
* @documentationMaturity preview
|
|
1437
1487
|
* @requiredField _id
|
|
1438
1488
|
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1439
1489
|
* @applicableIdentity APP
|
|
1440
|
-
* @returns
|
|
1490
|
+
* @returns Retrieved reservation.
|
|
1441
1491
|
* @fqn com.wixpress.seating.SeatingReservationService.GetReservation
|
|
1442
1492
|
*/
|
|
1443
1493
|
declare function getReservation(_id: string): Promise<NonNullablePaths<SeatingReservation, `reservedPlaces` | `reservedPlaces.${number}._id`, 4>>;
|
|
1444
1494
|
/**
|
|
1445
|
-
*
|
|
1495
|
+
* Retrieves seating reservations that match specified criteria.
|
|
1446
1496
|
* @public
|
|
1447
1497
|
* @documentationMaturity preview
|
|
1448
1498
|
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
@@ -1476,37 +1526,44 @@ interface ReservationsQueryBuilder {
|
|
|
1476
1526
|
find: () => Promise<ReservationsQueryResult>;
|
|
1477
1527
|
}
|
|
1478
1528
|
/**
|
|
1479
|
-
* Deletes
|
|
1480
|
-
* @param _id -
|
|
1529
|
+
* Deletes a seating reservation and releases all reserved places.
|
|
1530
|
+
* @param _id - Reservation ID.
|
|
1481
1531
|
* @public
|
|
1482
1532
|
* @documentationMaturity preview
|
|
1483
1533
|
* @requiredField _id
|
|
1484
1534
|
* @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
|
|
1485
1535
|
* @applicableIdentity APP
|
|
1536
|
+
* @returns Response after deleting a seating reservation.
|
|
1486
1537
|
* @fqn com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation
|
|
1487
1538
|
*/
|
|
1488
1539
|
declare function deleteSeatingReservation(_id: string): Promise<NonNullablePaths<DeleteSeatingReservationResponse, `reservation.reservedPlaces` | `reservation.reservedPlaces.${number}._id`, 5>>;
|
|
1489
|
-
/**
|
|
1540
|
+
/**
|
|
1541
|
+
* Retrieves capacity and reservation summary by seating category.
|
|
1542
|
+
* @public
|
|
1490
1543
|
* @documentationMaturity preview
|
|
1491
1544
|
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1492
1545
|
* @applicableIdentity APP
|
|
1546
|
+
* @returns Response containing capacity summary by category.
|
|
1493
1547
|
* @fqn com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary
|
|
1494
1548
|
*/
|
|
1495
1549
|
declare function getSeatingCategorySummary(options?: GetSeatingCategorySummaryOptions): Promise<NonNullablePaths<GetSeatingCategorySummaryResponse, `categories`, 2>>;
|
|
1496
1550
|
interface GetSeatingCategorySummaryOptions {
|
|
1497
1551
|
/**
|
|
1498
|
-
*
|
|
1552
|
+
* External seating plan ID.
|
|
1499
1553
|
* @minLength 1
|
|
1500
1554
|
* @maxLength 100
|
|
1501
1555
|
*/
|
|
1502
1556
|
externalId?: string;
|
|
1503
1557
|
}
|
|
1504
|
-
/**
|
|
1558
|
+
/**
|
|
1559
|
+
* Retrieves detailed place-level occupancy data for a seating plan.
|
|
1560
|
+
* @param externalId - External seating plan ID.
|
|
1505
1561
|
* @public
|
|
1506
1562
|
* @documentationMaturity preview
|
|
1507
1563
|
* @requiredField externalId
|
|
1508
1564
|
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1509
1565
|
* @applicableIdentity APP
|
|
1566
|
+
* @returns Response containing complete seating plan and occupancy data.
|
|
1510
1567
|
* @fqn com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary
|
|
1511
1568
|
*/
|
|
1512
1569
|
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`, 5>>;
|