@wix/auto_sdk_seatings_seating-reservation 1.0.12 → 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 +18 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +321 -179
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +712 -131
- package/build/cjs/meta.js +109 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +18 -10
- package/build/es/index.mjs +18 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +321 -179
- package/build/es/index.typings.mjs +18 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +712 -131
- package/build/es/meta.mjs +101 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -10
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +321 -179
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +712 -131
- package/build/internal/cjs/meta.js +109 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +18 -10
- package/build/internal/es/index.mjs +18 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +321 -179
- package/build/internal/es/index.typings.mjs +18 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +712 -131
- package/build/internal/es/meta.mjs +101 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -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,509 +561,596 @@ 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
|
}
|
|
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. */
|
|
560
601
|
interface SeatingPlan {
|
|
561
602
|
/**
|
|
562
|
-
*
|
|
603
|
+
* Seating plan ID.
|
|
563
604
|
* @format GUID
|
|
564
605
|
* @readonly
|
|
565
606
|
*/
|
|
566
607
|
_id?: string | null;
|
|
567
608
|
/**
|
|
568
|
-
*
|
|
569
|
-
* Can reference external entities.
|
|
570
|
-
* Format: "{fqdn}:{entity guid}"
|
|
609
|
+
* Client-defined external ID for cross-referencing with external systems. Format: `{fqdn}:{entity_guid}`. For example, `wix.events.v1.event:abc-123-def`.
|
|
571
610
|
* @minLength 1
|
|
572
611
|
* @maxLength 100
|
|
573
612
|
*/
|
|
574
613
|
externalId?: string | null;
|
|
575
614
|
/**
|
|
576
|
-
* Human
|
|
615
|
+
* Human-friendly seating plan title. For example, `Madison Square Garden - Main Floor`.
|
|
577
616
|
* @minLength 1
|
|
578
617
|
* @maxLength 120
|
|
579
618
|
*/
|
|
580
619
|
title?: string | null;
|
|
581
620
|
/**
|
|
582
|
-
*
|
|
621
|
+
* High-level divisions of the venue, such as "Orchestra", "Balcony", or "VIP Section". A default section with `id = 0` is required and serves as the primary seating area.
|
|
583
622
|
* @maxSize 100
|
|
584
623
|
*/
|
|
585
624
|
sections?: Section[];
|
|
586
625
|
/**
|
|
587
|
-
*
|
|
626
|
+
* Pricing tiers or groupings for organizing places, such as "VIP", "General Admission", or "Student Discount". Elements and places can be assigned to categories for pricing and availability management.
|
|
588
627
|
* @maxSize 100
|
|
589
628
|
*/
|
|
590
629
|
categories?: Category[];
|
|
591
630
|
/**
|
|
592
|
-
*
|
|
631
|
+
* Date and time the seating plan was created.
|
|
593
632
|
* @readonly
|
|
594
633
|
*/
|
|
595
634
|
_createdDate?: Date | null;
|
|
596
635
|
/**
|
|
597
|
-
*
|
|
636
|
+
* Date and time the seating plan was updated.
|
|
598
637
|
* @readonly
|
|
599
638
|
*/
|
|
600
639
|
_updatedDate?: Date | null;
|
|
601
640
|
/**
|
|
602
|
-
* Total
|
|
641
|
+
* Total number of seats across all sections and elements in the seating plan. Automatically calculated by summing element capacities.
|
|
603
642
|
* @readonly
|
|
604
643
|
*/
|
|
605
644
|
totalCapacity?: number | null;
|
|
606
645
|
/**
|
|
607
|
-
* Total categories
|
|
646
|
+
* Total number of categories defined in the seating plan. Automatically calculated.
|
|
608
647
|
* @readonly
|
|
609
648
|
*/
|
|
610
649
|
totalCategories?: number | null;
|
|
611
650
|
/**
|
|
612
|
-
* Places not assigned to
|
|
651
|
+
* Places that are not assigned to any category. These places require manual category assignment for pricing and organization.
|
|
613
652
|
* @maxSize 50000
|
|
614
653
|
* @readonly
|
|
615
654
|
*/
|
|
616
655
|
uncategorizedPlaces?: Place[];
|
|
617
656
|
/**
|
|
618
|
-
*
|
|
657
|
+
* Version number of the seating plan, incremented by 1 each time the plan is updated. Used for version management and tracking changes.
|
|
619
658
|
* @readonly
|
|
620
659
|
*/
|
|
621
660
|
version?: string | null;
|
|
622
|
-
/**
|
|
661
|
+
/** Additional custom fields for extending the seating plan with app-specific data. Learn more about @extended fields. */
|
|
623
662
|
extendedFields?: ExtendedFields;
|
|
624
|
-
/**
|
|
663
|
+
/** Visual settings for the seating plan, such as background color and opacity. Used by seating chart interfaces for rendering. */
|
|
625
664
|
uiProperties?: SeatingPlanUiProperties;
|
|
626
665
|
/**
|
|
627
|
-
*
|
|
666
|
+
* Hierarchical groupings of elements for UI organization and bulk operations. Groups can contain multiple elements or nested sub-groups for easier management.
|
|
628
667
|
* @maxSize 1000
|
|
629
668
|
*/
|
|
630
669
|
elementGroups?: ElementGroup[];
|
|
631
670
|
}
|
|
671
|
+
/** A section represents a high-level division within a seating plan, such as "Orchestra", "Balcony", or "VIP Area". Sections contain elements that define the actual seating arrangements. */
|
|
632
672
|
interface Section {
|
|
633
|
-
/**
|
|
673
|
+
/** Section ID. Must be unique within the seating plan. Section with `id = 0` is required as the default section. */
|
|
634
674
|
_id?: number;
|
|
635
675
|
/**
|
|
636
|
-
* Human
|
|
676
|
+
* Human-readable section title. For example, `Orchestra` or `Balcony`.
|
|
637
677
|
* @minLength 1
|
|
638
678
|
* @maxLength 20
|
|
639
679
|
*/
|
|
640
680
|
title?: string | null;
|
|
641
681
|
/**
|
|
642
|
-
* Client configuration object
|
|
682
|
+
* Client configuration object for storing additional section metadata. Read-only field maintained for backward compatibility.
|
|
643
683
|
* @readonly
|
|
644
684
|
*/
|
|
645
685
|
config?: Record<string, any> | null;
|
|
646
686
|
/**
|
|
647
|
-
*
|
|
687
|
+
* Seating elements within this section, such as rows, tables, or general admission areas. Each element generates individual places based on its type and capacity.
|
|
648
688
|
* @maxSize 1000
|
|
649
689
|
*/
|
|
650
690
|
elements?: Element[];
|
|
651
691
|
/**
|
|
652
|
-
* Total capacity
|
|
692
|
+
* Total capacity of all elements within this section. Automatically calculated by summing element capacities.
|
|
653
693
|
* @readonly
|
|
654
694
|
*/
|
|
655
695
|
totalCapacity?: number | null;
|
|
656
696
|
/**
|
|
657
|
-
*
|
|
697
|
+
* Whether this is the default section. Always `true` for section with `id = 0`.
|
|
658
698
|
* @readonly
|
|
659
699
|
*/
|
|
660
700
|
default?: boolean;
|
|
661
701
|
}
|
|
702
|
+
/** An element represents a specific seating configuration within a section, such as a row of seats, a table, or a general admission area. Elements generate individual places based on their type and capacity. */
|
|
662
703
|
interface Element {
|
|
663
704
|
/**
|
|
664
|
-
*
|
|
705
|
+
* Element ID. Must be unique within the seating plan.
|
|
665
706
|
* @min 1
|
|
666
707
|
*/
|
|
667
708
|
_id?: number;
|
|
668
709
|
/**
|
|
669
|
-
* User
|
|
710
|
+
* User-friendly title or label for the element. For example, `Row A` or `VIP Table 1`.
|
|
670
711
|
* @minLength 1
|
|
671
712
|
* @maxLength 50
|
|
672
713
|
*/
|
|
673
714
|
title?: string | null;
|
|
674
|
-
/**
|
|
715
|
+
/** Type of seating element, which determines capacity limits and place generation behavior. See ElementTypeEnum for available types. */
|
|
675
716
|
type?: TypeWithLiterals;
|
|
676
717
|
/**
|
|
677
|
-
*
|
|
718
|
+
* Number of seats or spots in this element. Not applicable for SHAPE type elements. Maximum 50,000 per element.
|
|
678
719
|
* @min 1
|
|
679
720
|
* @max 50000
|
|
680
721
|
*/
|
|
681
722
|
capacity?: number | null;
|
|
682
|
-
/**
|
|
723
|
+
/** ID of the category this element is assigned to for pricing and organization. References a category defined in the seating plan. */
|
|
683
724
|
categoryId?: number | null;
|
|
684
|
-
/**
|
|
725
|
+
/** Configuration for generating place labels and numbering within this element. Defines how seats are labeled (e.g., 1, 2, 3 or A, B, C). */
|
|
685
726
|
sequencing?: Sequencing;
|
|
686
727
|
/**
|
|
687
|
-
*
|
|
728
|
+
* Custom place configurations that override the default generated places for specific positions. Used for accessibility seating, obstructed views, or custom labeling.
|
|
688
729
|
* @maxSize 2000
|
|
689
730
|
*/
|
|
690
731
|
overrides?: Place[];
|
|
691
732
|
/**
|
|
692
|
-
* Final
|
|
733
|
+
* Final sequence of places generated for this element, including any overrides applied. Read-only field populated by the system.
|
|
693
734
|
* @maxSize 200
|
|
694
735
|
* @readonly
|
|
695
736
|
*/
|
|
696
737
|
places?: Place[];
|
|
697
|
-
/**
|
|
738
|
+
/** Constraints on how this element can be reserved or booked. For example, requiring the entire element to be reserved as a unit. */
|
|
698
739
|
reservationOptions?: ReservationOptions;
|
|
699
|
-
/**
|
|
740
|
+
/** Visual positioning and styling properties for rendering this element in a seating chart. Includes coordinates, dimensions, and styling options. */
|
|
700
741
|
uiProperties?: ElementUiProperties;
|
|
701
|
-
/**
|
|
742
|
+
/** ID of the element group this element belongs to for hierarchical organization. References an ElementGroup defined in the seating plan. */
|
|
702
743
|
elementGroupId?: number | null;
|
|
703
|
-
/**
|
|
744
|
+
/** Additional properties for MULTI_ROW type elements, defining individual rows and their configurations. Only applicable when type is MULTI_ROW. */
|
|
704
745
|
multiRowProperties?: MultiRowProperties;
|
|
705
746
|
}
|
|
706
747
|
declare enum Type {
|
|
748
|
+
/** General admission area with a single place containing the full capacity. */
|
|
707
749
|
AREA = "AREA",
|
|
750
|
+
/** Single row of individual seats with sequential labeling. */
|
|
708
751
|
ROW = "ROW",
|
|
752
|
+
/** Multiple rows treated as one element, each with individual capacity and sequencing. */
|
|
709
753
|
MULTI_ROW = "MULTI_ROW",
|
|
754
|
+
/** Rectangular table with individual seats around the perimeter. */
|
|
710
755
|
TABLE = "TABLE",
|
|
756
|
+
/** Circular table with individual seats around the perimeter. */
|
|
711
757
|
ROUND_TABLE = "ROUND_TABLE",
|
|
758
|
+
/** Visual element with no seating capacity, used for decorative or informational purposes. */
|
|
712
759
|
SHAPE = "SHAPE"
|
|
713
760
|
}
|
|
714
761
|
/** @enumType */
|
|
715
762
|
type TypeWithLiterals = Type | 'AREA' | 'ROW' | 'MULTI_ROW' | 'TABLE' | 'ROUND_TABLE' | 'SHAPE';
|
|
763
|
+
/** Configuration for generating sequential labels for places within an element. */
|
|
716
764
|
interface Sequencing {
|
|
717
765
|
/**
|
|
718
|
-
*
|
|
766
|
+
* Starting value for the sequence. For example, `1` for numeric sequences or `A` for alphabetical sequences.
|
|
719
767
|
* @minLength 1
|
|
720
768
|
* @maxLength 4
|
|
721
769
|
*/
|
|
722
770
|
startAt?: string;
|
|
723
771
|
/**
|
|
724
|
-
*
|
|
772
|
+
* Complete sequence of labels to be used for places. Must match the element's capacity. When provided, overrides automatic label generation.
|
|
725
773
|
* @maxSize 2500
|
|
726
774
|
*/
|
|
727
775
|
labels?: string[];
|
|
728
|
-
/**
|
|
776
|
+
/** Whether to apply labels in reverse order (right-to-left instead of left-to-right). Useful for venue-specific numbering conventions. */
|
|
729
777
|
reverseOrder?: boolean | null;
|
|
730
778
|
}
|
|
779
|
+
/** An individual seat or spot within an element where an attendee can be positioned. */
|
|
731
780
|
interface Place {
|
|
732
|
-
/**
|
|
781
|
+
/** Zero-based position of this place within the element's sequence. Used to identify the place's position for overrides. */
|
|
733
782
|
index?: number;
|
|
734
783
|
/**
|
|
735
|
-
*
|
|
784
|
+
* Unique place ID in the format `{section_id}-{element_id}-{label}`. For example, `0-1-A5` for section 0, element 1, seat A5.
|
|
736
785
|
* @readonly
|
|
737
786
|
*/
|
|
738
787
|
_id?: string | null;
|
|
739
788
|
/**
|
|
740
|
-
*
|
|
789
|
+
* Human-readable label for this place, such as `A1`, `12`, or `VIP1`. Generated based on sequencing configuration or custom overrides.
|
|
741
790
|
* @minLength 1
|
|
742
791
|
* @maxLength 4
|
|
743
792
|
*/
|
|
744
793
|
label?: string;
|
|
745
794
|
/**
|
|
746
|
-
*
|
|
795
|
+
* Maximum number of people that can occupy this place. Typically 1 for individual seats, higher for AREA type places.
|
|
747
796
|
* @readonly
|
|
748
797
|
*/
|
|
749
798
|
capacity?: number | null;
|
|
750
799
|
/**
|
|
751
|
-
* Type of the parent element
|
|
800
|
+
* Type of the parent element that contains this place. Inherited from the element's type.
|
|
752
801
|
* @readonly
|
|
753
802
|
*/
|
|
754
803
|
elementType?: TypeWithLiterals;
|
|
755
804
|
/**
|
|
756
|
-
*
|
|
805
|
+
* ID of the category this place is assigned to. Inherited from element or row category assignment.
|
|
757
806
|
* @readonly
|
|
758
807
|
*/
|
|
759
808
|
categoryId?: number | null;
|
|
760
|
-
/**
|
|
809
|
+
/** Special characteristics or accessibility features of this place (standard, wheelchair, accessible, companion, obstructed, discount). */
|
|
761
810
|
type?: PlaceTypeEnumTypeWithLiterals;
|
|
762
811
|
}
|
|
763
812
|
declare enum PlaceTypeEnumType {
|
|
813
|
+
/** Unknown place type. */
|
|
764
814
|
UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
|
|
815
|
+
/** Standard seating with no special accommodations. */
|
|
765
816
|
STANDARD = "STANDARD",
|
|
817
|
+
/** Wheelchair accessible seating space. */
|
|
766
818
|
WHEELCHAIR = "WHEELCHAIR",
|
|
819
|
+
/** Accessible seating for mobility-impaired guests. */
|
|
767
820
|
ACCESSIBLE = "ACCESSIBLE",
|
|
821
|
+
/** Companion seat adjacent to accessible seating. */
|
|
768
822
|
COMPANION = "COMPANION",
|
|
823
|
+
/** Seat with limited or obstructed view. */
|
|
769
824
|
OBSTRUCTED = "OBSTRUCTED",
|
|
825
|
+
/** Discounted pricing seat. */
|
|
770
826
|
DISCOUNT = "DISCOUNT"
|
|
771
827
|
}
|
|
772
828
|
/** @enumType */
|
|
773
829
|
type PlaceTypeEnumTypeWithLiterals = PlaceTypeEnumType | 'UNKNOWN_PROPERTY' | 'STANDARD' | 'WHEELCHAIR' | 'ACCESSIBLE' | 'COMPANION' | 'OBSTRUCTED' | 'DISCOUNT';
|
|
830
|
+
/** Configuration options that control how an element can be reserved or booked. */
|
|
774
831
|
interface ReservationOptions {
|
|
775
|
-
/**
|
|
832
|
+
/** Whether the entire element must be reserved as a single unit. When `true`, individual seats cannot be booked separately. Cannot be used with AREA type elements. */
|
|
776
833
|
reserveWholeElement?: boolean;
|
|
777
834
|
}
|
|
835
|
+
/** Visual positioning and styling properties for rendering elements in a seating chart interface. */
|
|
778
836
|
interface ElementUiProperties {
|
|
779
837
|
/**
|
|
838
|
+
* Horizontal position coordinate of the element in the seating chart coordinate system.
|
|
780
839
|
* @min -1000000
|
|
781
840
|
* @max 1000000
|
|
782
841
|
*/
|
|
783
842
|
x?: number | null;
|
|
784
843
|
/**
|
|
844
|
+
* Vertical position coordinate of the element in the seating chart coordinate system.
|
|
785
845
|
* @min -1000000
|
|
786
846
|
* @max 1000000
|
|
787
847
|
*/
|
|
788
848
|
y?: number | null;
|
|
789
849
|
/**
|
|
850
|
+
* Layering order for overlapping elements. Higher values appear on top of lower values.
|
|
790
851
|
* @min -1000000
|
|
791
852
|
* @max 1000000
|
|
792
853
|
*/
|
|
793
854
|
zIndex?: number | null;
|
|
794
|
-
/**
|
|
855
|
+
/**
|
|
856
|
+
* Width of the element in the coordinate system units.
|
|
857
|
+
* @max 1000000
|
|
858
|
+
*/
|
|
795
859
|
width?: number | null;
|
|
796
|
-
/**
|
|
860
|
+
/**
|
|
861
|
+
* Height of the element in the coordinate system units.
|
|
862
|
+
* @max 1000000
|
|
863
|
+
*/
|
|
797
864
|
height?: number | null;
|
|
798
865
|
/**
|
|
866
|
+
* Rotation angle of the element in degrees. Positive values rotate clockwise.
|
|
799
867
|
* @min -180
|
|
800
868
|
* @max 180
|
|
801
869
|
*/
|
|
802
870
|
rotationAngle?: number | null;
|
|
871
|
+
/** Shape type for SHAPE elements that don't represent seating. Only applicable when element type is SHAPE. */
|
|
803
872
|
shapeType?: ShapeTypeEnumTypeWithLiterals;
|
|
804
873
|
/**
|
|
874
|
+
* Font size for text elements in points.
|
|
805
875
|
* @min 10
|
|
806
876
|
* @max 176
|
|
807
877
|
*/
|
|
808
878
|
fontSize?: number | null;
|
|
809
|
-
/**
|
|
879
|
+
/**
|
|
880
|
+
* Corner radius for rounded rectangular shapes in coordinate system units.
|
|
881
|
+
* @max 1000000
|
|
882
|
+
*/
|
|
810
883
|
cornerRadius?: number | null;
|
|
811
884
|
/**
|
|
885
|
+
* Horizontal spacing between individual seats within the element.
|
|
812
886
|
* @min 1
|
|
813
887
|
* @max 60
|
|
814
888
|
*/
|
|
815
889
|
seatSpacing?: number | null;
|
|
890
|
+
/** Whether to hide labels on seats within this element. When `true`, seat labels are not displayed in the UI. */
|
|
816
891
|
hideLabel?: boolean | null;
|
|
892
|
+
/** Position of labels relative to seats (left, right, both sides, or none). */
|
|
817
893
|
labelPosition?: PositionWithLiterals;
|
|
894
|
+
/** Array defining the arrangement of seats within the element. Each number represents the count of seats in that position. */
|
|
818
895
|
seatLayout?: number[];
|
|
819
|
-
/**
|
|
896
|
+
/**
|
|
897
|
+
* Number of empty spaces at the top of the seating arrangement for visual spacing.
|
|
898
|
+
* @max 50
|
|
899
|
+
*/
|
|
820
900
|
emptyTopSeatSpaces?: number | null;
|
|
821
901
|
/**
|
|
822
|
-
*
|
|
902
|
+
* Text content for TEXT type shape elements. Only applicable when shape_type is TEXT.
|
|
823
903
|
* @minLength 1
|
|
824
904
|
* @maxLength 10000
|
|
825
905
|
*/
|
|
826
906
|
text?: string | null;
|
|
827
907
|
/**
|
|
828
|
-
*
|
|
908
|
+
* Primary color in hexadecimal format. For example, `#FF0000` for red.
|
|
829
909
|
* @format COLOR_HEX
|
|
830
910
|
*/
|
|
831
911
|
color?: string | null;
|
|
832
912
|
/**
|
|
833
|
-
*
|
|
913
|
+
* Fill color for shapes in hexadecimal format. For example, `#00FF00` for green.
|
|
834
914
|
* @format COLOR_HEX
|
|
835
915
|
*/
|
|
836
916
|
fillColor?: string | null;
|
|
837
917
|
/**
|
|
838
|
-
*
|
|
918
|
+
* Border color in hexadecimal format. For example, `#0000FF` for blue.
|
|
839
919
|
* @format COLOR_HEX
|
|
840
920
|
*/
|
|
841
921
|
strokeColor?: string | null;
|
|
842
922
|
/**
|
|
843
|
-
*
|
|
923
|
+
* Border width in pixels for shape outlines.
|
|
844
924
|
* @min 1
|
|
845
925
|
* @max 6
|
|
846
926
|
*/
|
|
847
927
|
strokeWidth?: number | null;
|
|
848
|
-
/**
|
|
928
|
+
/**
|
|
929
|
+
* Opacity level as a percentage from 0 (transparent) to 100 (opaque).
|
|
930
|
+
* @max 100
|
|
931
|
+
*/
|
|
849
932
|
opacity?: number | null;
|
|
933
|
+
/** Icon type for ICON shape elements. Only applicable when shape_type is ICON. */
|
|
850
934
|
icon?: IconWithLiterals;
|
|
935
|
+
/** Image object for IMAGE shape elements. Only applicable when shape_type is IMAGE. */
|
|
851
936
|
image?: Image;
|
|
937
|
+
/** Numbering scheme for seats within this element (numeric, alphabetical, or odd/even). */
|
|
852
938
|
seatNumbering?: NumberingWithLiterals;
|
|
853
939
|
}
|
|
854
940
|
declare enum ShapeTypeEnumType {
|
|
941
|
+
/** Unknown shape type. */
|
|
855
942
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
943
|
+
/** Text label or annotation. */
|
|
856
944
|
TEXT = "TEXT",
|
|
945
|
+
/** Rectangular shape. */
|
|
857
946
|
RECTANGLE = "RECTANGLE",
|
|
947
|
+
/** Circular or oval shape. */
|
|
858
948
|
ELLIPSE = "ELLIPSE",
|
|
949
|
+
/** Straight line. */
|
|
859
950
|
LINE = "LINE",
|
|
951
|
+
/** Predefined icon symbol. */
|
|
860
952
|
ICON = "ICON",
|
|
953
|
+
/** Custom image. */
|
|
861
954
|
IMAGE = "IMAGE"
|
|
862
955
|
}
|
|
863
956
|
/** @enumType */
|
|
864
957
|
type ShapeTypeEnumTypeWithLiterals = ShapeTypeEnumType | 'UNKNOWN_TYPE' | 'TEXT' | 'RECTANGLE' | 'ELLIPSE' | 'LINE' | 'ICON' | 'IMAGE';
|
|
865
958
|
declare enum Position {
|
|
959
|
+
/** Label positioning options for seats and elements. */
|
|
866
960
|
UNKNOWN_POSITION = "UNKNOWN_POSITION",
|
|
961
|
+
/** Labels appear to the left of seats. */
|
|
867
962
|
LEFT = "LEFT",
|
|
963
|
+
/** Labels appear to the right of seats. */
|
|
868
964
|
RIGHT = "RIGHT",
|
|
965
|
+
/** Labels appear on both sides of seats. */
|
|
869
966
|
BOTH = "BOTH",
|
|
967
|
+
/** No labels are displayed. */
|
|
870
968
|
NONE = "NONE"
|
|
871
969
|
}
|
|
872
970
|
/** @enumType */
|
|
873
971
|
type PositionWithLiterals = Position | 'UNKNOWN_POSITION' | 'LEFT' | 'RIGHT' | 'BOTH' | 'NONE';
|
|
874
972
|
declare enum Icon {
|
|
973
|
+
/** Available icon types for venue wayfinding and information. */
|
|
875
974
|
UNKNOWN_ICON = "UNKNOWN_ICON",
|
|
975
|
+
/** Entrance icon. */
|
|
876
976
|
ENTER = "ENTER",
|
|
977
|
+
/** Exit icon. */
|
|
877
978
|
EXIT = "EXIT",
|
|
979
|
+
/** Beverage service icon. */
|
|
878
980
|
DRINKS = "DRINKS",
|
|
981
|
+
/** Restroom icon. */
|
|
879
982
|
WC = "WC",
|
|
983
|
+
/** Men's restroom icon. */
|
|
880
984
|
WC_MEN = "WC_MEN",
|
|
985
|
+
/** Women's restroom icon. */
|
|
881
986
|
WC_WOMEN = "WC_WOMEN",
|
|
987
|
+
/** Food service icon. */
|
|
882
988
|
FOOD = "FOOD",
|
|
989
|
+
/** Stairway icon. */
|
|
883
990
|
STAIRS = "STAIRS",
|
|
991
|
+
/** Elevator icon. */
|
|
884
992
|
ELEVATOR = "ELEVATOR",
|
|
993
|
+
/** Smoking area icon. */
|
|
885
994
|
SMOKING = "SMOKING",
|
|
995
|
+
/** Coat check icon. */
|
|
886
996
|
CHECKROOM = "CHECKROOM",
|
|
997
|
+
/** Stage or performance area icon. */
|
|
887
998
|
STAGE = "STAGE"
|
|
888
999
|
}
|
|
889
1000
|
/** @enumType */
|
|
890
1001
|
type IconWithLiterals = Icon | 'UNKNOWN_ICON' | 'ENTER' | 'EXIT' | 'DRINKS' | 'WC' | 'WC_MEN' | 'WC_WOMEN' | 'FOOD' | 'STAIRS' | 'ELEVATOR' | 'SMOKING' | 'CHECKROOM' | 'STAGE';
|
|
1002
|
+
/** Image reference for use in seating plan visual elements. */
|
|
891
1003
|
interface Image {
|
|
892
|
-
/**
|
|
1004
|
+
/** Image ID from Wix Media Manager. */
|
|
893
1005
|
_id?: string;
|
|
894
1006
|
/**
|
|
895
|
-
* Original image height.
|
|
1007
|
+
* Original image height in pixels.
|
|
896
1008
|
* @readonly
|
|
897
1009
|
*/
|
|
898
1010
|
height?: number;
|
|
899
1011
|
/**
|
|
900
|
-
* Original image width.
|
|
1012
|
+
* Original image width in pixels.
|
|
901
1013
|
* @readonly
|
|
902
1014
|
*/
|
|
903
1015
|
width?: number;
|
|
904
1016
|
/**
|
|
905
|
-
*
|
|
1017
|
+
* Deprecated. Use the `id` field instead for referencing images.
|
|
906
1018
|
* @deprecated
|
|
907
1019
|
*/
|
|
908
1020
|
uri?: string | null;
|
|
909
1021
|
}
|
|
910
1022
|
declare enum Numbering {
|
|
1023
|
+
/** Seat numbering patterns for sequential label generation. */
|
|
911
1024
|
UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
|
|
1025
|
+
/** Sequential numbers (1, 2, 3, ...). */
|
|
912
1026
|
NUMERIC = "NUMERIC",
|
|
1027
|
+
/** Alternating odd and even numbers. */
|
|
913
1028
|
ODD_EVEN = "ODD_EVEN",
|
|
1029
|
+
/** Sequential letters (A, B, C, ...). */
|
|
914
1030
|
ALPHABETICAL = "ALPHABETICAL"
|
|
915
1031
|
}
|
|
916
1032
|
/** @enumType */
|
|
917
1033
|
type NumberingWithLiterals = Numbering | 'UNKNOWN_NUMBERING' | 'NUMERIC' | 'ODD_EVEN' | 'ALPHABETICAL';
|
|
1034
|
+
/** Configuration for multi-row elements that contain multiple individual rows, each with their own capacity and sequencing. */
|
|
918
1035
|
interface MultiRowProperties {
|
|
919
1036
|
/**
|
|
920
|
-
* Individual rows
|
|
1037
|
+
* Individual rows within the multi-row element. Each row has its own capacity, sequencing, and category assignment.
|
|
921
1038
|
* @maxSize 1000
|
|
922
1039
|
*/
|
|
923
1040
|
rows?: RowElement[];
|
|
924
|
-
/**
|
|
1041
|
+
/** Configuration for labeling rows vertically (e.g., Row A, Row B, Row C). Defines how row labels are generated. */
|
|
925
1042
|
verticalSequencing?: VerticalSequencing;
|
|
926
1043
|
/**
|
|
927
|
-
*
|
|
1044
|
+
* Vertical spacing between rows in the multi-row element. Measured in coordinate system units.
|
|
928
1045
|
* @min 1
|
|
929
1046
|
* @max 60
|
|
930
1047
|
*/
|
|
931
1048
|
rowSpacing?: number | null;
|
|
932
1049
|
/**
|
|
933
|
-
*
|
|
1050
|
+
* Number of seats per row in the multi-row element.
|
|
934
1051
|
* @max 50
|
|
935
1052
|
*/
|
|
936
1053
|
seatAmount?: number | null;
|
|
937
1054
|
}
|
|
1055
|
+
/** An individual row within a multi-row element, with its own capacity, sequencing, and category assignment. */
|
|
938
1056
|
interface RowElement {
|
|
939
1057
|
/**
|
|
940
|
-
*
|
|
1058
|
+
* Row ID. Must be unique across all multi-row elements in the seating plan.
|
|
941
1059
|
* @min 1
|
|
942
1060
|
*/
|
|
943
1061
|
_id?: number;
|
|
944
1062
|
/**
|
|
945
|
-
* User
|
|
1063
|
+
* User-friendly title or label for this row. For example, `Row A` or `Front Row`.
|
|
946
1064
|
* @minLength 1
|
|
947
1065
|
* @maxLength 50
|
|
948
1066
|
*/
|
|
949
1067
|
title?: string | null;
|
|
950
1068
|
/**
|
|
951
|
-
*
|
|
1069
|
+
* Number of seats in this row. Maximum 50,000 per row.
|
|
952
1070
|
* @min 1
|
|
953
1071
|
* @max 50000
|
|
954
1072
|
*/
|
|
955
1073
|
capacity?: number | null;
|
|
956
|
-
/**
|
|
1074
|
+
/** Category assignment for this row, which can override the parent element's category. References a category defined in the seating plan. */
|
|
957
1075
|
categoryId?: number | null;
|
|
958
|
-
/**
|
|
1076
|
+
/** Configuration for generating seat labels within this row. Defines numbering scheme and starting position. */
|
|
959
1077
|
sequencing?: Sequencing;
|
|
960
|
-
/**
|
|
1078
|
+
/** Visual properties specific to this row within the multi-row element. Includes positioning relative to parent element. */
|
|
961
1079
|
uiProperties?: RowElementUiProperties;
|
|
962
1080
|
}
|
|
1081
|
+
/** Visual properties specific to individual rows within multi-row elements. */
|
|
963
1082
|
interface RowElementUiProperties {
|
|
964
1083
|
/**
|
|
965
|
-
*
|
|
1084
|
+
* Horizontal position relative to the parent multi-row element's coordinate system.
|
|
966
1085
|
* @min -1000000
|
|
967
1086
|
* @max 1000000
|
|
968
1087
|
*/
|
|
969
1088
|
relativeX?: number | null;
|
|
970
1089
|
/**
|
|
971
|
-
* Width of
|
|
1090
|
+
* Width of this row in coordinate system units.
|
|
972
1091
|
* @max 1000000
|
|
973
1092
|
*/
|
|
974
1093
|
width?: number | null;
|
|
975
1094
|
/**
|
|
976
|
-
*
|
|
1095
|
+
* Number of seats in this row. Overrides the capacity field when specified.
|
|
977
1096
|
* @max 50
|
|
978
1097
|
*/
|
|
979
1098
|
seatAmount?: number | null;
|
|
980
1099
|
/**
|
|
981
|
-
*
|
|
1100
|
+
* Spacing between seats in this row.
|
|
982
1101
|
* @min 1
|
|
983
1102
|
* @max 60
|
|
984
1103
|
*/
|
|
985
1104
|
seatSpacing?: number | null;
|
|
986
|
-
/**
|
|
1105
|
+
/** Position of labels relative to seats in this row (left, right, both sides, or none). // Position of labels relative to seats in this row. */
|
|
987
1106
|
labelPosition?: PositionWithLiterals;
|
|
988
|
-
/**
|
|
1107
|
+
/** Numbering scheme for seats in this row (numeric, alphabetical, or odd/even). */
|
|
989
1108
|
seatNumbering?: NumberingWithLiterals;
|
|
990
1109
|
}
|
|
1110
|
+
/** Configuration for labeling rows vertically in multi-row elements. */
|
|
991
1111
|
interface VerticalSequencing {
|
|
992
1112
|
/**
|
|
993
|
-
*
|
|
1113
|
+
* Starting value for row labeling. For example, `A` for alphabetical sequences or `1` for numeric sequences.
|
|
994
1114
|
* @minLength 1
|
|
995
1115
|
* @maxLength 4
|
|
996
1116
|
*/
|
|
997
1117
|
startAt?: string;
|
|
998
|
-
/**
|
|
1118
|
+
/** Numbering scheme for row labels (numeric, alphabetical, or odd/even). */
|
|
999
1119
|
rowNumbering?: NumberingWithLiterals;
|
|
1000
|
-
/**
|
|
1120
|
+
/** Whether to label rows in reverse order (bottom-to-top instead of top-to-bottom). */
|
|
1001
1121
|
reverseOrder?: boolean | null;
|
|
1002
1122
|
}
|
|
1123
|
+
/** A grouping mechanism for organizing places by pricing tier, access level, or other business criteria. */
|
|
1003
1124
|
interface Category {
|
|
1004
1125
|
/**
|
|
1005
|
-
*
|
|
1126
|
+
* Category ID. Must be unique within the seating plan.
|
|
1006
1127
|
* @min 1
|
|
1007
1128
|
*/
|
|
1008
1129
|
_id?: number;
|
|
1009
1130
|
/**
|
|
1010
|
-
*
|
|
1011
|
-
* Can reference external entities.
|
|
1012
|
-
* Format: "{entity_fqdn}:{entity_id}"
|
|
1131
|
+
* Client-defined external ID for cross-referencing with pricing or ticketing systems. Format: `{entity_fqdn}:{entity_id}`.
|
|
1013
1132
|
* @minLength 1
|
|
1014
1133
|
* @maxLength 100
|
|
1015
1134
|
*/
|
|
1016
1135
|
externalId?: string | null;
|
|
1017
1136
|
/**
|
|
1018
|
-
*
|
|
1137
|
+
* Human-readable category name, such as `VIP`, `General Admission`, or `Student Discount`.
|
|
1019
1138
|
* @minLength 1
|
|
1020
1139
|
* @maxLength 120
|
|
1021
1140
|
*/
|
|
1022
1141
|
title?: string;
|
|
1023
1142
|
/**
|
|
1024
|
-
* Client configuration object
|
|
1143
|
+
* Client configuration object for storing additional category metadata. Read-only field maintained for backward compatibility.
|
|
1025
1144
|
* @readonly
|
|
1026
1145
|
*/
|
|
1027
1146
|
config?: Record<string, any> | null;
|
|
1028
1147
|
/**
|
|
1029
|
-
* Total capacity
|
|
1148
|
+
* Total capacity of all places assigned to this category. Automatically calculated by summing place capacities.
|
|
1030
1149
|
* @readonly
|
|
1031
1150
|
*/
|
|
1032
1151
|
totalCapacity?: number | null;
|
|
1033
1152
|
/**
|
|
1034
|
-
*
|
|
1153
|
+
* All places that are assigned to this category. Populated when using the CATEGORIES fieldset.
|
|
1035
1154
|
* @maxSize 50000
|
|
1036
1155
|
* @readonly
|
|
1037
1156
|
*/
|
|
@@ -1048,70 +1167,86 @@ interface ExtendedFields {
|
|
|
1048
1167
|
*/
|
|
1049
1168
|
namespaces?: Record<string, Record<string, any>>;
|
|
1050
1169
|
}
|
|
1170
|
+
/** Visual styling properties for the overall seating plan background and appearance. */
|
|
1051
1171
|
interface SeatingPlanUiProperties {
|
|
1052
1172
|
/**
|
|
1053
|
-
*
|
|
1173
|
+
* Background color in hexadecimal format. For example, `#F0F0F0` for light gray.
|
|
1054
1174
|
* @format COLOR_HEX
|
|
1055
1175
|
*/
|
|
1056
1176
|
backgroundColor?: string | null;
|
|
1057
|
-
/**
|
|
1177
|
+
/**
|
|
1178
|
+
* Background opacity as a percentage from 0 (transparent) to 100 (opaque).
|
|
1179
|
+
* @max 100
|
|
1180
|
+
*/
|
|
1058
1181
|
backgroundOpacity?: number | null;
|
|
1059
1182
|
}
|
|
1183
|
+
/** A hierarchical grouping of elements for UI organization and bulk operations. */
|
|
1060
1184
|
interface ElementGroup {
|
|
1061
1185
|
/**
|
|
1062
|
-
*
|
|
1186
|
+
* Element group ID. Must be unique within the seating plan.
|
|
1063
1187
|
* @min 1
|
|
1064
1188
|
*/
|
|
1065
1189
|
_id?: number;
|
|
1066
|
-
/**
|
|
1190
|
+
/** ID of the parent group for creating nested group hierarchies. References another ElementGroup in the same seating plan. */
|
|
1067
1191
|
parentElementGroupId?: number | null;
|
|
1068
|
-
/**
|
|
1192
|
+
/** Visual properties for rendering this group in the UI. Includes positioning and dimensions for the group container. */
|
|
1069
1193
|
uiProperties?: ElementGroupUiProperties;
|
|
1070
1194
|
}
|
|
1195
|
+
/** Visual positioning and styling properties for element groups. */
|
|
1071
1196
|
interface ElementGroupUiProperties {
|
|
1072
1197
|
/**
|
|
1073
|
-
*
|
|
1198
|
+
* Horizontal position coordinate of the group container.
|
|
1074
1199
|
* @min -1000000
|
|
1075
1200
|
* @max 1000000
|
|
1076
1201
|
*/
|
|
1077
1202
|
x?: number | null;
|
|
1078
1203
|
/**
|
|
1079
|
-
*
|
|
1204
|
+
* Vertical position coordinate of the group container.
|
|
1080
1205
|
* @min -1000000
|
|
1081
1206
|
* @max 1000000
|
|
1082
1207
|
*/
|
|
1083
1208
|
y?: number | null;
|
|
1084
1209
|
/**
|
|
1085
|
-
*
|
|
1210
|
+
* Width of the group bounding box in coordinate system units.
|
|
1086
1211
|
* @max 1000000
|
|
1087
1212
|
*/
|
|
1088
1213
|
width?: number | null;
|
|
1089
1214
|
/**
|
|
1090
|
-
*
|
|
1215
|
+
* Height of the group bounding box in coordinate system units.
|
|
1091
1216
|
* @max 1000000
|
|
1092
1217
|
*/
|
|
1093
1218
|
height?: number | null;
|
|
1094
1219
|
/**
|
|
1095
|
-
*
|
|
1220
|
+
* Rotation angle of the group in degrees. Applied to all elements within the group.
|
|
1096
1221
|
* @min -180
|
|
1097
1222
|
* @max 180
|
|
1098
1223
|
*/
|
|
1099
1224
|
rotationAngle?: number | null;
|
|
1100
1225
|
}
|
|
1226
|
+
/** Request to regenerate cached summaries. */
|
|
1101
1227
|
interface RegenerateSummariesRequest {
|
|
1102
1228
|
/**
|
|
1103
|
-
* Seating plan
|
|
1229
|
+
* Seating plan ID.
|
|
1104
1230
|
* @format GUID
|
|
1105
1231
|
*/
|
|
1106
1232
|
planId?: string | null;
|
|
1107
1233
|
}
|
|
1234
|
+
/** Response after regenerating summaries. */
|
|
1108
1235
|
interface RegenerateSummariesResponse {
|
|
1236
|
+
/** Regenerated place-level occupancy summary. */
|
|
1109
1237
|
seatingReservationsSummary?: SeatingReservationsSummary;
|
|
1110
|
-
/**
|
|
1238
|
+
/**
|
|
1239
|
+
* Regenerated category-level summaries.
|
|
1240
|
+
* @maxSize 50000
|
|
1241
|
+
*/
|
|
1111
1242
|
categories?: CategoryDetails[];
|
|
1112
1243
|
}
|
|
1244
|
+
/** Aggregated occupancy data for all places in a seating plan. */
|
|
1113
1245
|
interface SeatingReservationsSummary {
|
|
1114
|
-
/**
|
|
1246
|
+
/**
|
|
1247
|
+
* Occupancy details for each place.
|
|
1248
|
+
* @maxSize 50000
|
|
1249
|
+
*/
|
|
1115
1250
|
places?: PlaceReservationDetails[];
|
|
1116
1251
|
}
|
|
1117
1252
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1329,35 +1464,35 @@ interface SeatingReservationDeletedEnvelope {
|
|
|
1329
1464
|
*/
|
|
1330
1465
|
declare function onSeatingReservationDeleted(handler: (event: SeatingReservationDeletedEnvelope) => void | Promise<void>): void;
|
|
1331
1466
|
/**
|
|
1332
|
-
* Creates a seating reservation
|
|
1467
|
+
* Creates a seating reservation for one or more places within a seating plan.
|
|
1333
1468
|
* @public
|
|
1334
1469
|
* @documentationMaturity preview
|
|
1335
1470
|
* @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
|
|
1336
1471
|
* @applicableIdentity APP
|
|
1337
|
-
* @returns Created reservation
|
|
1472
|
+
* @returns Created reservation.
|
|
1338
1473
|
* @fqn com.wixpress.seating.SeatingReservationService.CreateSeatingReservation
|
|
1339
1474
|
*/
|
|
1340
1475
|
declare function createSeatingReservation(options?: CreateSeatingReservationOptions): Promise<NonNullablePaths<SeatingReservation, `reservedPlaces` | `reservedPlaces.${number}._id`, 4> & {
|
|
1341
1476
|
__applicationErrorsType?: CreateSeatingReservationApplicationErrors;
|
|
1342
1477
|
}>;
|
|
1343
1478
|
interface CreateSeatingReservationOptions {
|
|
1344
|
-
/**
|
|
1479
|
+
/** Reservation to create. */
|
|
1345
1480
|
reservation?: SeatingReservation;
|
|
1346
1481
|
}
|
|
1347
1482
|
/**
|
|
1348
|
-
*
|
|
1349
|
-
* @param _id -
|
|
1483
|
+
* Retrieves a seating reservation by ID.
|
|
1484
|
+
* @param _id - Reservation ID.
|
|
1350
1485
|
* @public
|
|
1351
1486
|
* @documentationMaturity preview
|
|
1352
1487
|
* @requiredField _id
|
|
1353
1488
|
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1354
1489
|
* @applicableIdentity APP
|
|
1355
|
-
* @returns
|
|
1490
|
+
* @returns Retrieved reservation.
|
|
1356
1491
|
* @fqn com.wixpress.seating.SeatingReservationService.GetReservation
|
|
1357
1492
|
*/
|
|
1358
1493
|
declare function getReservation(_id: string): Promise<NonNullablePaths<SeatingReservation, `reservedPlaces` | `reservedPlaces.${number}._id`, 4>>;
|
|
1359
1494
|
/**
|
|
1360
|
-
*
|
|
1495
|
+
* Retrieves seating reservations that match specified criteria.
|
|
1361
1496
|
* @public
|
|
1362
1497
|
* @documentationMaturity preview
|
|
1363
1498
|
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
@@ -1391,37 +1526,44 @@ interface ReservationsQueryBuilder {
|
|
|
1391
1526
|
find: () => Promise<ReservationsQueryResult>;
|
|
1392
1527
|
}
|
|
1393
1528
|
/**
|
|
1394
|
-
* Deletes
|
|
1395
|
-
* @param _id -
|
|
1529
|
+
* Deletes a seating reservation and releases all reserved places.
|
|
1530
|
+
* @param _id - Reservation ID.
|
|
1396
1531
|
* @public
|
|
1397
1532
|
* @documentationMaturity preview
|
|
1398
1533
|
* @requiredField _id
|
|
1399
1534
|
* @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
|
|
1400
1535
|
* @applicableIdentity APP
|
|
1536
|
+
* @returns Response after deleting a seating reservation.
|
|
1401
1537
|
* @fqn com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation
|
|
1402
1538
|
*/
|
|
1403
1539
|
declare function deleteSeatingReservation(_id: string): Promise<NonNullablePaths<DeleteSeatingReservationResponse, `reservation.reservedPlaces` | `reservation.reservedPlaces.${number}._id`, 5>>;
|
|
1404
|
-
/**
|
|
1540
|
+
/**
|
|
1541
|
+
* Retrieves capacity and reservation summary by seating category.
|
|
1542
|
+
* @public
|
|
1405
1543
|
* @documentationMaturity preview
|
|
1406
1544
|
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1407
1545
|
* @applicableIdentity APP
|
|
1546
|
+
* @returns Response containing capacity summary by category.
|
|
1408
1547
|
* @fqn com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary
|
|
1409
1548
|
*/
|
|
1410
1549
|
declare function getSeatingCategorySummary(options?: GetSeatingCategorySummaryOptions): Promise<NonNullablePaths<GetSeatingCategorySummaryResponse, `categories`, 2>>;
|
|
1411
1550
|
interface GetSeatingCategorySummaryOptions {
|
|
1412
1551
|
/**
|
|
1413
|
-
*
|
|
1552
|
+
* External seating plan ID.
|
|
1414
1553
|
* @minLength 1
|
|
1415
1554
|
* @maxLength 100
|
|
1416
1555
|
*/
|
|
1417
1556
|
externalId?: string;
|
|
1418
1557
|
}
|
|
1419
|
-
/**
|
|
1558
|
+
/**
|
|
1559
|
+
* Retrieves detailed place-level occupancy data for a seating plan.
|
|
1560
|
+
* @param externalId - External seating plan ID.
|
|
1420
1561
|
* @public
|
|
1421
1562
|
* @documentationMaturity preview
|
|
1422
1563
|
* @requiredField externalId
|
|
1423
1564
|
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1424
1565
|
* @applicableIdentity APP
|
|
1566
|
+
* @returns Response containing complete seating plan and occupancy data.
|
|
1425
1567
|
* @fqn com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary
|
|
1426
1568
|
*/
|
|
1427
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>>;
|