@wix/seatings 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3110 @@
1
+ interface SeatingPlan$3 {
2
+ /**
3
+ * Auto generated unique plan id
4
+ * @readonly
5
+ */
6
+ id?: string | null;
7
+ /**
8
+ * A client defined external id for cross referencing.
9
+ * Can reference external entities.
10
+ * Format: "{fqdn}:{entity guid}"
11
+ */
12
+ externalId?: string | null;
13
+ /** Human friendly plan title */
14
+ title?: string | null;
15
+ /** Sections of the plan. Seating plan is divided in high level sections. */
16
+ sections?: Section$3[];
17
+ /** Categories for plan element grouping. */
18
+ categories?: Category$3[];
19
+ /**
20
+ * Seating plan created timestamp.
21
+ * @readonly
22
+ */
23
+ createdDate?: Date;
24
+ /**
25
+ * Seating plan updated timestamp.
26
+ * @readonly
27
+ */
28
+ updatedDate?: Date;
29
+ /**
30
+ * Total capacity
31
+ * @readonly
32
+ */
33
+ totalCapacity?: number | null;
34
+ /**
35
+ * Total categories
36
+ * @readonly
37
+ */
38
+ totalCategories?: number | null;
39
+ /**
40
+ * Places not assigned to categories
41
+ * @readonly
42
+ */
43
+ uncategorizedPlaces?: Place$3[];
44
+ /**
45
+ * A version of the seating plan
46
+ * @readonly
47
+ */
48
+ version?: string | null;
49
+ /** Data extensions */
50
+ extendedFields?: ExtendedFields$3;
51
+ /** Seating Plan UI settings */
52
+ uiProperties?: SeatingPlanUiProperties$3;
53
+ }
54
+ interface Section$3 {
55
+ /** Unique section id */
56
+ id?: number;
57
+ /** Human readable section title */
58
+ title?: string | null;
59
+ /**
60
+ * Client configuration object
61
+ * @readonly
62
+ */
63
+ config?: Record<string, any> | null;
64
+ /** Elements of the section. */
65
+ elements?: Element$3[];
66
+ /**
67
+ * Total capacity
68
+ * @readonly
69
+ */
70
+ totalCapacity?: number | null;
71
+ /**
72
+ * Is default section
73
+ * @readonly
74
+ */
75
+ default?: boolean;
76
+ }
77
+ interface Element$3 {
78
+ /** Unique element id */
79
+ id?: number;
80
+ /** User friendly title/label of the element. */
81
+ title?: string | null;
82
+ /** Element type */
83
+ type?: Type$3;
84
+ /** Capacity. None for Shape type Element. */
85
+ capacity?: number | null;
86
+ /** Assigned to a category */
87
+ categoryId?: number | null;
88
+ /** A place numbering meta data */
89
+ sequencing?: Sequencing$3;
90
+ /**
91
+ * Place override (by seq_id)
92
+ * @deprecated
93
+ */
94
+ overrides?: Place$3[];
95
+ /**
96
+ * Final place sequence with overrides
97
+ * @readonly
98
+ */
99
+ places?: Place$3[];
100
+ /** Element reservation options */
101
+ reservationOptions?: ReservationOptions$3;
102
+ /** Element UI settings */
103
+ uiProperties?: ElementUiProperties$3;
104
+ }
105
+ declare enum Type$3 {
106
+ AREA = "AREA",
107
+ ROW = "ROW",
108
+ MULTI_ROW = "MULTI_ROW",
109
+ TABLE = "TABLE",
110
+ ROUND_TABLE = "ROUND_TABLE",
111
+ SHAPE = "SHAPE"
112
+ }
113
+ interface Sequencing$3 {
114
+ /** First seq element */
115
+ startAt?: string;
116
+ /** Finite generated seq of labels */
117
+ labels?: string[];
118
+ /** If true - direction right to left. Otherwise left to right. */
119
+ reverseOrder?: boolean | null;
120
+ }
121
+ interface Place$3 {
122
+ /**
123
+ * Local id of the place in the sequence
124
+ * @deprecated
125
+ * @removalDate 2024-07-01
126
+ */
127
+ index?: number;
128
+ /**
129
+ * Generated composite unique id in the seating plan.
130
+ * @readonly
131
+ */
132
+ id?: string | null;
133
+ /** Unique label of the place */
134
+ label?: string;
135
+ /**
136
+ * Max capacity per place
137
+ * @readonly
138
+ */
139
+ capacity?: number | null;
140
+ /**
141
+ * Type of the parent element
142
+ * @readonly
143
+ */
144
+ elementType?: Type$3;
145
+ /**
146
+ * Assigned category id
147
+ * @readonly
148
+ */
149
+ categoryId?: number | null;
150
+ }
151
+ interface ReservationOptions$3 {
152
+ /** Indicates whether the entire element must be reserved */
153
+ reserveWholeElement?: boolean;
154
+ }
155
+ interface ElementUiProperties$3 {
156
+ x?: number | null;
157
+ y?: number | null;
158
+ zIndex?: number | null;
159
+ width?: number | null;
160
+ height?: number | null;
161
+ rotationAngle?: number | null;
162
+ shapeType?: ShapeTypeEnumType$3;
163
+ fontSize?: number | null;
164
+ cornerRadius?: number | null;
165
+ seatSpacing?: number | null;
166
+ hideLabel?: boolean | null;
167
+ labelPosition?: Position$3;
168
+ seatLayout?: number[];
169
+ emptyTopSeatSpaces?: number | null;
170
+ /** needs research */
171
+ text?: string | null;
172
+ /** #F0F0F0 */
173
+ color?: string | null;
174
+ /** #F0F0F0 */
175
+ fillColor?: string | null;
176
+ /** #F0F0F0 */
177
+ strokeColor?: string | null;
178
+ /** px */
179
+ strokeWidth?: number | null;
180
+ opacity?: number | null;
181
+ icon?: Icon$3;
182
+ image?: Image$3;
183
+ seatNumbering?: Numbering$3;
184
+ }
185
+ declare enum ShapeTypeEnumType$3 {
186
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
187
+ TEXT = "TEXT",
188
+ RECTANGLE = "RECTANGLE",
189
+ ELLIPSE = "ELLIPSE",
190
+ LINE = "LINE",
191
+ ICON = "ICON",
192
+ IMAGE = "IMAGE"
193
+ }
194
+ declare enum Position$3 {
195
+ UNKNOWN_POSITION = "UNKNOWN_POSITION",
196
+ LEFT = "LEFT",
197
+ RIGHT = "RIGHT",
198
+ BOTH = "BOTH",
199
+ NONE = "NONE"
200
+ }
201
+ declare enum Icon$3 {
202
+ UNKNOWN_ICON = "UNKNOWN_ICON",
203
+ ENTER = "ENTER",
204
+ EXIT = "EXIT",
205
+ DRINKS = "DRINKS",
206
+ WC = "WC",
207
+ WC_MEN = "WC_MEN",
208
+ WC_WOMEN = "WC_WOMEN",
209
+ FOOD = "FOOD",
210
+ STAIRS = "STAIRS",
211
+ ELEVATOR = "ELEVATOR",
212
+ SMOKING = "SMOKING",
213
+ CHECKROOM = "CHECKROOM",
214
+ STAGE = "STAGE"
215
+ }
216
+ interface Image$3 {
217
+ /** WixMedia image ID. */
218
+ id?: string;
219
+ /**
220
+ * Original image height.
221
+ * @readonly
222
+ */
223
+ height?: number;
224
+ /**
225
+ * Original image width.
226
+ * @readonly
227
+ */
228
+ width?: number;
229
+ /**
230
+ * WixMedia image URI.
231
+ * @deprecated
232
+ */
233
+ uri?: string | null;
234
+ }
235
+ declare enum Numbering$3 {
236
+ UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
237
+ NUMERIC = "NUMERIC",
238
+ ODD_EVEN = "ODD_EVEN",
239
+ ALPHABETICAL = "ALPHABETICAL"
240
+ }
241
+ interface Category$3 {
242
+ /** Local category id within the seating plan */
243
+ id?: number;
244
+ /**
245
+ * A client defined external id for cross referencing.
246
+ * Can reference external entities.
247
+ * Format: "{entity_fqdn}:{entity_id}"
248
+ */
249
+ externalId?: string | null;
250
+ /** Category label */
251
+ title?: string;
252
+ /**
253
+ * Client configuration object
254
+ * @readonly
255
+ */
256
+ config?: Record<string, any> | null;
257
+ /**
258
+ * Total capacity
259
+ * @readonly
260
+ */
261
+ totalCapacity?: number | null;
262
+ /**
263
+ * Possible places
264
+ * @readonly
265
+ */
266
+ places?: Place$3[];
267
+ }
268
+ interface ExtendedFields$3 {
269
+ /**
270
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
271
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
272
+ *
273
+ * You can only access fields for which you have the appropriate permissions.
274
+ *
275
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
276
+ */
277
+ namespaces?: Record<string, Record<string, any>>;
278
+ }
279
+ interface SeatingPlanUiProperties$3 {
280
+ /** #F0F0F0 */
281
+ backgroundColor?: string | null;
282
+ backgroundOpacity?: number | null;
283
+ }
284
+ interface CreateSeatingPlanRequest$1 {
285
+ /** A plan to be created */
286
+ plan: SeatingPlan$3;
287
+ }
288
+ interface CreateSeatingPlanResponse$1 {
289
+ /** The created plan */
290
+ plan?: SeatingPlan$3;
291
+ }
292
+ interface UpdateSeatingPlanRequest$1 {
293
+ /** The plan updates */
294
+ plan?: SeatingPlan$3;
295
+ }
296
+ interface UpdateSeatingPlanResponse$1 {
297
+ /** The updated plan */
298
+ plan?: SeatingPlan$3;
299
+ }
300
+ interface CopySeatingPlanRequest$1 {
301
+ /** The id of the plan to be copied */
302
+ id: string | null;
303
+ /** New plan title */
304
+ title: string | null;
305
+ /** Format: "{fqdn}:{entity guid}" */
306
+ externalId: string | null;
307
+ }
308
+ interface CopySeatingPlanResponse$1 {
309
+ /** The copied plan */
310
+ plan?: SeatingPlan$3;
311
+ }
312
+ interface QuerySeatingPlanRequest$1 {
313
+ /**
314
+ * Generic query object
315
+ * Possible fieldsets: "elements", "categories", "places", "config".
316
+ */
317
+ query: QueryV2$3;
318
+ /** A fieldset for the response */
319
+ fieldset?: Fieldset$1[];
320
+ }
321
+ interface QueryV2$3 extends QueryV2PagingMethodOneOf$3 {
322
+ /** Paging options to limit and skip the number of items. */
323
+ paging?: Paging$3;
324
+ /** 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`. */
325
+ cursorPaging?: CursorPaging$3;
326
+ /**
327
+ * Filter object in the following format:
328
+ * `"filter" : {
329
+ * "fieldName1": "value1",
330
+ * "fieldName2":{"$operator":"value2"}
331
+ * }`
332
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
333
+ */
334
+ filter?: Record<string, any> | null;
335
+ /**
336
+ * Sort object in the following format:
337
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
338
+ */
339
+ sort?: Sorting$3[];
340
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
341
+ fields?: string[];
342
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
343
+ fieldsets?: string[];
344
+ }
345
+ /** @oneof */
346
+ interface QueryV2PagingMethodOneOf$3 {
347
+ /** Paging options to limit and skip the number of items. */
348
+ paging?: Paging$3;
349
+ /** 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`. */
350
+ cursorPaging?: CursorPaging$3;
351
+ }
352
+ interface Sorting$3 {
353
+ /** Name of the field to sort by. */
354
+ fieldName?: string;
355
+ /** Sort order. */
356
+ order?: SortOrder$3;
357
+ }
358
+ declare enum SortOrder$3 {
359
+ ASC = "ASC",
360
+ DESC = "DESC"
361
+ }
362
+ interface Paging$3 {
363
+ /** Number of items to load. */
364
+ limit?: number | null;
365
+ /** Number of items to skip in the current sort order. */
366
+ offset?: number | null;
367
+ }
368
+ interface CursorPaging$3 {
369
+ /** Maximum number of items to return in the results. */
370
+ limit?: number | null;
371
+ /**
372
+ * Pointer to the next or previous page in the list of results.
373
+ *
374
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
375
+ * Not relevant for the first request.
376
+ */
377
+ cursor?: string | null;
378
+ }
379
+ declare enum Fieldset$1 {
380
+ ELEMENTS = "ELEMENTS",
381
+ CATEGORIES = "CATEGORIES",
382
+ PLACES = "PLACES",
383
+ CONFIG = "CONFIG",
384
+ ELEMENT_GROUPS = "ELEMENT_GROUPS"
385
+ }
386
+ interface QuerySeatingPlanResponse$1 {
387
+ /** Plan results */
388
+ plans?: SeatingPlan$3[];
389
+ }
390
+ interface GetSeatingPlanRequest$1 {
391
+ /** The id of the plan */
392
+ id: string | null;
393
+ /**
394
+ * A fieldset for the response
395
+ * @deprecated
396
+ */
397
+ fieldset?: Fieldset$1[];
398
+ /**
399
+ * Projection on the result object - list of named projections.
400
+ * Possible values: "elements", "categories", "places", "config".
401
+ */
402
+ fieldsets?: string[];
403
+ /** Seating Plan Mask */
404
+ seatingPlanMask?: SeatingPlanMask$1;
405
+ }
406
+ interface SeatingPlanMask$1 {
407
+ /** Filter seating plan by place ids */
408
+ placeId?: string[];
409
+ }
410
+ interface GetSeatingPlanResponse$1 {
411
+ /** The plan */
412
+ plan?: SeatingPlan$3;
413
+ }
414
+ interface FindSeatingPlanRequest$1 {
415
+ /** The filter of the plan */
416
+ filter: Record<string, any> | null;
417
+ /**
418
+ * A fieldset for the response
419
+ * @deprecated
420
+ */
421
+ fieldset?: Fieldset$1[];
422
+ /**
423
+ * Projection on the result object - list of named projections.
424
+ * Possible values: "elements", "categories", "places", "config".
425
+ */
426
+ fieldsets?: string[];
427
+ /** Seating Plan Mask */
428
+ seatingPlanMask?: SeatingPlanMask$1;
429
+ }
430
+ interface FindSeatingPlanResponse$1 {
431
+ /** The plan */
432
+ plan?: SeatingPlan$3;
433
+ }
434
+ interface DeleteSeatingPlanRequest$1 {
435
+ /** The id of the plan */
436
+ id: string | null;
437
+ }
438
+ interface DeleteSeatingPlanResponse$1 {
439
+ /** Deleted plan */
440
+ plan?: SeatingPlan$3;
441
+ }
442
+ interface UpdateSeatingPlanThumbnailRequest$1 {
443
+ thumbnail: SeatingPlanThumbnail$1;
444
+ }
445
+ interface SeatingPlanThumbnail$1 {
446
+ /** @readonly */
447
+ id?: string | null;
448
+ img?: string | null;
449
+ }
450
+ interface UpdateSeatingPlanThumbnailResponse$1 {
451
+ thumbnail?: SeatingPlanThumbnail$1;
452
+ }
453
+ interface GetSeatingPlanThumbnailRequest$1 {
454
+ /** @readonly */
455
+ id: string | null;
456
+ }
457
+ interface GetSeatingPlanThumbnailResponse$1 {
458
+ thumbnail?: SeatingPlanThumbnail$1;
459
+ }
460
+ interface CreateSeatingPlanResponseNonNullableFields$1 {
461
+ plan?: {
462
+ sections: {
463
+ id: number;
464
+ elements: {
465
+ id: number;
466
+ type: Type$3;
467
+ sequencing?: {
468
+ startAt: string;
469
+ labels: string[];
470
+ };
471
+ overrides: {
472
+ index: number;
473
+ label: string;
474
+ elementType: Type$3;
475
+ }[];
476
+ places: {
477
+ index: number;
478
+ label: string;
479
+ elementType: Type$3;
480
+ }[];
481
+ reservationOptions?: {
482
+ reserveWholeElement: boolean;
483
+ };
484
+ uiProperties?: {
485
+ shapeType: ShapeTypeEnumType$3;
486
+ labelPosition: Position$3;
487
+ seatLayout: number[];
488
+ icon: Icon$3;
489
+ image?: {
490
+ id: string;
491
+ height: number;
492
+ width: number;
493
+ };
494
+ seatNumbering: Numbering$3;
495
+ };
496
+ multiRowProperties?: {
497
+ rows: {
498
+ id: number;
499
+ sequencing?: {
500
+ startAt: string;
501
+ labels: string[];
502
+ };
503
+ uiProperties?: {
504
+ labelPosition: Position$3;
505
+ seatNumbering: Numbering$3;
506
+ };
507
+ }[];
508
+ verticalSequencing?: {
509
+ startAt: string;
510
+ rowNumbering: Numbering$3;
511
+ };
512
+ };
513
+ }[];
514
+ default: boolean;
515
+ }[];
516
+ categories: {
517
+ id: number;
518
+ title: string;
519
+ places: {
520
+ index: number;
521
+ label: string;
522
+ elementType: Type$3;
523
+ }[];
524
+ }[];
525
+ uncategorizedPlaces: {
526
+ index: number;
527
+ label: string;
528
+ elementType: Type$3;
529
+ }[];
530
+ elementGroups: {
531
+ id: number;
532
+ }[];
533
+ };
534
+ }
535
+ interface UpdateSeatingPlanResponseNonNullableFields$1 {
536
+ plan?: {
537
+ sections: {
538
+ id: number;
539
+ elements: {
540
+ id: number;
541
+ type: Type$3;
542
+ sequencing?: {
543
+ startAt: string;
544
+ labels: string[];
545
+ };
546
+ overrides: {
547
+ index: number;
548
+ label: string;
549
+ elementType: Type$3;
550
+ }[];
551
+ places: {
552
+ index: number;
553
+ label: string;
554
+ elementType: Type$3;
555
+ }[];
556
+ reservationOptions?: {
557
+ reserveWholeElement: boolean;
558
+ };
559
+ uiProperties?: {
560
+ shapeType: ShapeTypeEnumType$3;
561
+ labelPosition: Position$3;
562
+ seatLayout: number[];
563
+ icon: Icon$3;
564
+ image?: {
565
+ id: string;
566
+ height: number;
567
+ width: number;
568
+ };
569
+ seatNumbering: Numbering$3;
570
+ };
571
+ multiRowProperties?: {
572
+ rows: {
573
+ id: number;
574
+ sequencing?: {
575
+ startAt: string;
576
+ labels: string[];
577
+ };
578
+ uiProperties?: {
579
+ labelPosition: Position$3;
580
+ seatNumbering: Numbering$3;
581
+ };
582
+ }[];
583
+ verticalSequencing?: {
584
+ startAt: string;
585
+ rowNumbering: Numbering$3;
586
+ };
587
+ };
588
+ }[];
589
+ default: boolean;
590
+ }[];
591
+ categories: {
592
+ id: number;
593
+ title: string;
594
+ places: {
595
+ index: number;
596
+ label: string;
597
+ elementType: Type$3;
598
+ }[];
599
+ }[];
600
+ uncategorizedPlaces: {
601
+ index: number;
602
+ label: string;
603
+ elementType: Type$3;
604
+ }[];
605
+ elementGroups: {
606
+ id: number;
607
+ }[];
608
+ };
609
+ }
610
+ interface CopySeatingPlanResponseNonNullableFields$1 {
611
+ plan?: {
612
+ sections: {
613
+ id: number;
614
+ elements: {
615
+ id: number;
616
+ type: Type$3;
617
+ sequencing?: {
618
+ startAt: string;
619
+ labels: string[];
620
+ };
621
+ overrides: {
622
+ index: number;
623
+ label: string;
624
+ elementType: Type$3;
625
+ }[];
626
+ places: {
627
+ index: number;
628
+ label: string;
629
+ elementType: Type$3;
630
+ }[];
631
+ reservationOptions?: {
632
+ reserveWholeElement: boolean;
633
+ };
634
+ uiProperties?: {
635
+ shapeType: ShapeTypeEnumType$3;
636
+ labelPosition: Position$3;
637
+ seatLayout: number[];
638
+ icon: Icon$3;
639
+ image?: {
640
+ id: string;
641
+ height: number;
642
+ width: number;
643
+ };
644
+ seatNumbering: Numbering$3;
645
+ };
646
+ multiRowProperties?: {
647
+ rows: {
648
+ id: number;
649
+ sequencing?: {
650
+ startAt: string;
651
+ labels: string[];
652
+ };
653
+ uiProperties?: {
654
+ labelPosition: Position$3;
655
+ seatNumbering: Numbering$3;
656
+ };
657
+ }[];
658
+ verticalSequencing?: {
659
+ startAt: string;
660
+ rowNumbering: Numbering$3;
661
+ };
662
+ };
663
+ }[];
664
+ default: boolean;
665
+ }[];
666
+ categories: {
667
+ id: number;
668
+ title: string;
669
+ places: {
670
+ index: number;
671
+ label: string;
672
+ elementType: Type$3;
673
+ }[];
674
+ }[];
675
+ uncategorizedPlaces: {
676
+ index: number;
677
+ label: string;
678
+ elementType: Type$3;
679
+ }[];
680
+ elementGroups: {
681
+ id: number;
682
+ }[];
683
+ };
684
+ }
685
+ interface QuerySeatingPlanResponseNonNullableFields$1 {
686
+ plans: {
687
+ sections: {
688
+ id: number;
689
+ elements: {
690
+ id: number;
691
+ type: Type$3;
692
+ sequencing?: {
693
+ startAt: string;
694
+ labels: string[];
695
+ };
696
+ overrides: {
697
+ index: number;
698
+ label: string;
699
+ elementType: Type$3;
700
+ }[];
701
+ places: {
702
+ index: number;
703
+ label: string;
704
+ elementType: Type$3;
705
+ }[];
706
+ reservationOptions?: {
707
+ reserveWholeElement: boolean;
708
+ };
709
+ uiProperties?: {
710
+ shapeType: ShapeTypeEnumType$3;
711
+ labelPosition: Position$3;
712
+ seatLayout: number[];
713
+ icon: Icon$3;
714
+ image?: {
715
+ id: string;
716
+ height: number;
717
+ width: number;
718
+ };
719
+ seatNumbering: Numbering$3;
720
+ };
721
+ multiRowProperties?: {
722
+ rows: {
723
+ id: number;
724
+ sequencing?: {
725
+ startAt: string;
726
+ labels: string[];
727
+ };
728
+ uiProperties?: {
729
+ labelPosition: Position$3;
730
+ seatNumbering: Numbering$3;
731
+ };
732
+ }[];
733
+ verticalSequencing?: {
734
+ startAt: string;
735
+ rowNumbering: Numbering$3;
736
+ };
737
+ };
738
+ }[];
739
+ default: boolean;
740
+ }[];
741
+ categories: {
742
+ id: number;
743
+ title: string;
744
+ places: {
745
+ index: number;
746
+ label: string;
747
+ elementType: Type$3;
748
+ }[];
749
+ }[];
750
+ uncategorizedPlaces: {
751
+ index: number;
752
+ label: string;
753
+ elementType: Type$3;
754
+ }[];
755
+ elementGroups: {
756
+ id: number;
757
+ }[];
758
+ }[];
759
+ }
760
+ interface GetSeatingPlanResponseNonNullableFields$1 {
761
+ plan?: {
762
+ sections: {
763
+ id: number;
764
+ elements: {
765
+ id: number;
766
+ type: Type$3;
767
+ sequencing?: {
768
+ startAt: string;
769
+ labels: string[];
770
+ };
771
+ overrides: {
772
+ index: number;
773
+ label: string;
774
+ elementType: Type$3;
775
+ }[];
776
+ places: {
777
+ index: number;
778
+ label: string;
779
+ elementType: Type$3;
780
+ }[];
781
+ reservationOptions?: {
782
+ reserveWholeElement: boolean;
783
+ };
784
+ uiProperties?: {
785
+ shapeType: ShapeTypeEnumType$3;
786
+ labelPosition: Position$3;
787
+ seatLayout: number[];
788
+ icon: Icon$3;
789
+ image?: {
790
+ id: string;
791
+ height: number;
792
+ width: number;
793
+ };
794
+ seatNumbering: Numbering$3;
795
+ };
796
+ multiRowProperties?: {
797
+ rows: {
798
+ id: number;
799
+ sequencing?: {
800
+ startAt: string;
801
+ labels: string[];
802
+ };
803
+ uiProperties?: {
804
+ labelPosition: Position$3;
805
+ seatNumbering: Numbering$3;
806
+ };
807
+ }[];
808
+ verticalSequencing?: {
809
+ startAt: string;
810
+ rowNumbering: Numbering$3;
811
+ };
812
+ };
813
+ }[];
814
+ default: boolean;
815
+ }[];
816
+ categories: {
817
+ id: number;
818
+ title: string;
819
+ places: {
820
+ index: number;
821
+ label: string;
822
+ elementType: Type$3;
823
+ }[];
824
+ }[];
825
+ uncategorizedPlaces: {
826
+ index: number;
827
+ label: string;
828
+ elementType: Type$3;
829
+ }[];
830
+ elementGroups: {
831
+ id: number;
832
+ }[];
833
+ };
834
+ }
835
+ interface FindSeatingPlanResponseNonNullableFields$1 {
836
+ plan?: {
837
+ sections: {
838
+ id: number;
839
+ elements: {
840
+ id: number;
841
+ type: Type$3;
842
+ sequencing?: {
843
+ startAt: string;
844
+ labels: string[];
845
+ };
846
+ overrides: {
847
+ index: number;
848
+ label: string;
849
+ elementType: Type$3;
850
+ }[];
851
+ places: {
852
+ index: number;
853
+ label: string;
854
+ elementType: Type$3;
855
+ }[];
856
+ reservationOptions?: {
857
+ reserveWholeElement: boolean;
858
+ };
859
+ uiProperties?: {
860
+ shapeType: ShapeTypeEnumType$3;
861
+ labelPosition: Position$3;
862
+ seatLayout: number[];
863
+ icon: Icon$3;
864
+ image?: {
865
+ id: string;
866
+ height: number;
867
+ width: number;
868
+ };
869
+ seatNumbering: Numbering$3;
870
+ };
871
+ multiRowProperties?: {
872
+ rows: {
873
+ id: number;
874
+ sequencing?: {
875
+ startAt: string;
876
+ labels: string[];
877
+ };
878
+ uiProperties?: {
879
+ labelPosition: Position$3;
880
+ seatNumbering: Numbering$3;
881
+ };
882
+ }[];
883
+ verticalSequencing?: {
884
+ startAt: string;
885
+ rowNumbering: Numbering$3;
886
+ };
887
+ };
888
+ }[];
889
+ default: boolean;
890
+ }[];
891
+ categories: {
892
+ id: number;
893
+ title: string;
894
+ places: {
895
+ index: number;
896
+ label: string;
897
+ elementType: Type$3;
898
+ }[];
899
+ }[];
900
+ uncategorizedPlaces: {
901
+ index: number;
902
+ label: string;
903
+ elementType: Type$3;
904
+ }[];
905
+ elementGroups: {
906
+ id: number;
907
+ }[];
908
+ };
909
+ }
910
+ interface DeleteSeatingPlanResponseNonNullableFields$1 {
911
+ plan?: {
912
+ sections: {
913
+ id: number;
914
+ elements: {
915
+ id: number;
916
+ type: Type$3;
917
+ sequencing?: {
918
+ startAt: string;
919
+ labels: string[];
920
+ };
921
+ overrides: {
922
+ index: number;
923
+ label: string;
924
+ elementType: Type$3;
925
+ }[];
926
+ places: {
927
+ index: number;
928
+ label: string;
929
+ elementType: Type$3;
930
+ }[];
931
+ reservationOptions?: {
932
+ reserveWholeElement: boolean;
933
+ };
934
+ uiProperties?: {
935
+ shapeType: ShapeTypeEnumType$3;
936
+ labelPosition: Position$3;
937
+ seatLayout: number[];
938
+ icon: Icon$3;
939
+ image?: {
940
+ id: string;
941
+ height: number;
942
+ width: number;
943
+ };
944
+ seatNumbering: Numbering$3;
945
+ };
946
+ multiRowProperties?: {
947
+ rows: {
948
+ id: number;
949
+ sequencing?: {
950
+ startAt: string;
951
+ labels: string[];
952
+ };
953
+ uiProperties?: {
954
+ labelPosition: Position$3;
955
+ seatNumbering: Numbering$3;
956
+ };
957
+ }[];
958
+ verticalSequencing?: {
959
+ startAt: string;
960
+ rowNumbering: Numbering$3;
961
+ };
962
+ };
963
+ }[];
964
+ default: boolean;
965
+ }[];
966
+ categories: {
967
+ id: number;
968
+ title: string;
969
+ places: {
970
+ index: number;
971
+ label: string;
972
+ elementType: Type$3;
973
+ }[];
974
+ }[];
975
+ uncategorizedPlaces: {
976
+ index: number;
977
+ label: string;
978
+ elementType: Type$3;
979
+ }[];
980
+ elementGroups: {
981
+ id: number;
982
+ }[];
983
+ };
984
+ }
985
+
986
+ interface SeatingPlan$2 {
987
+ /**
988
+ * Auto generated unique plan id
989
+ * @readonly
990
+ */
991
+ _id?: string | null;
992
+ /**
993
+ * A client defined external id for cross referencing.
994
+ * Can reference external entities.
995
+ * Format: "{fqdn}:{entity guid}"
996
+ */
997
+ externalId?: string | null;
998
+ /** Human friendly plan title */
999
+ title?: string | null;
1000
+ /** Sections of the plan. Seating plan is divided in high level sections. */
1001
+ sections?: Section$2[];
1002
+ /** Categories for plan element grouping. */
1003
+ categories?: Category$2[];
1004
+ /**
1005
+ * Seating plan created timestamp.
1006
+ * @readonly
1007
+ */
1008
+ _createdDate?: Date;
1009
+ /**
1010
+ * Seating plan updated timestamp.
1011
+ * @readonly
1012
+ */
1013
+ _updatedDate?: Date;
1014
+ /**
1015
+ * Total capacity
1016
+ * @readonly
1017
+ */
1018
+ totalCapacity?: number | null;
1019
+ /**
1020
+ * Total categories
1021
+ * @readonly
1022
+ */
1023
+ totalCategories?: number | null;
1024
+ /**
1025
+ * Places not assigned to categories
1026
+ * @readonly
1027
+ */
1028
+ uncategorizedPlaces?: Place$2[];
1029
+ /**
1030
+ * A version of the seating plan
1031
+ * @readonly
1032
+ */
1033
+ version?: string | null;
1034
+ /** Data extensions */
1035
+ extendedFields?: ExtendedFields$2;
1036
+ /** Seating Plan UI settings */
1037
+ uiProperties?: SeatingPlanUiProperties$2;
1038
+ }
1039
+ interface Section$2 {
1040
+ /** Unique section id */
1041
+ _id?: number;
1042
+ /** Human readable section title */
1043
+ title?: string | null;
1044
+ /**
1045
+ * Client configuration object
1046
+ * @readonly
1047
+ */
1048
+ config?: Record<string, any> | null;
1049
+ /** Elements of the section. */
1050
+ elements?: Element$2[];
1051
+ /**
1052
+ * Total capacity
1053
+ * @readonly
1054
+ */
1055
+ totalCapacity?: number | null;
1056
+ /**
1057
+ * Is default section
1058
+ * @readonly
1059
+ */
1060
+ default?: boolean;
1061
+ }
1062
+ interface Element$2 {
1063
+ /** Unique element id */
1064
+ _id?: number;
1065
+ /** User friendly title/label of the element. */
1066
+ title?: string | null;
1067
+ /** Element type */
1068
+ type?: Type$2;
1069
+ /** Capacity. None for Shape type Element. */
1070
+ capacity?: number | null;
1071
+ /** Assigned to a category */
1072
+ categoryId?: number | null;
1073
+ /** A place numbering meta data */
1074
+ sequencing?: Sequencing$2;
1075
+ /**
1076
+ * Place override (by seq_id)
1077
+ * @deprecated
1078
+ */
1079
+ overrides?: Place$2[];
1080
+ /**
1081
+ * Final place sequence with overrides
1082
+ * @readonly
1083
+ */
1084
+ places?: Place$2[];
1085
+ /** Element reservation options */
1086
+ reservationOptions?: ReservationOptions$2;
1087
+ /** Element UI settings */
1088
+ uiProperties?: ElementUiProperties$2;
1089
+ }
1090
+ declare enum Type$2 {
1091
+ AREA = "AREA",
1092
+ ROW = "ROW",
1093
+ MULTI_ROW = "MULTI_ROW",
1094
+ TABLE = "TABLE",
1095
+ ROUND_TABLE = "ROUND_TABLE",
1096
+ SHAPE = "SHAPE"
1097
+ }
1098
+ interface Sequencing$2 {
1099
+ /** First seq element */
1100
+ startAt?: string;
1101
+ /** Finite generated seq of labels */
1102
+ labels?: string[];
1103
+ /** If true - direction right to left. Otherwise left to right. */
1104
+ reverseOrder?: boolean | null;
1105
+ }
1106
+ interface Place$2 {
1107
+ /**
1108
+ * Local id of the place in the sequence
1109
+ * @deprecated
1110
+ * @removalDate 2024-07-01
1111
+ */
1112
+ index?: number;
1113
+ /**
1114
+ * Generated composite unique id in the seating plan.
1115
+ * @readonly
1116
+ */
1117
+ _id?: string | null;
1118
+ /** Unique label of the place */
1119
+ label?: string;
1120
+ /**
1121
+ * Max capacity per place
1122
+ * @readonly
1123
+ */
1124
+ capacity?: number | null;
1125
+ /**
1126
+ * Type of the parent element
1127
+ * @readonly
1128
+ */
1129
+ elementType?: Type$2;
1130
+ /**
1131
+ * Assigned category id
1132
+ * @readonly
1133
+ */
1134
+ categoryId?: number | null;
1135
+ }
1136
+ interface ReservationOptions$2 {
1137
+ /** Indicates whether the entire element must be reserved */
1138
+ reserveWholeElement?: boolean;
1139
+ }
1140
+ interface ElementUiProperties$2 {
1141
+ x?: number | null;
1142
+ y?: number | null;
1143
+ zIndex?: number | null;
1144
+ width?: number | null;
1145
+ height?: number | null;
1146
+ rotationAngle?: number | null;
1147
+ shapeType?: ShapeTypeEnumType$2;
1148
+ fontSize?: number | null;
1149
+ cornerRadius?: number | null;
1150
+ seatSpacing?: number | null;
1151
+ hideLabel?: boolean | null;
1152
+ labelPosition?: Position$2;
1153
+ seatLayout?: number[];
1154
+ emptyTopSeatSpaces?: number | null;
1155
+ /** needs research */
1156
+ text?: string | null;
1157
+ /** #F0F0F0 */
1158
+ color?: string | null;
1159
+ /** #F0F0F0 */
1160
+ fillColor?: string | null;
1161
+ /** #F0F0F0 */
1162
+ strokeColor?: string | null;
1163
+ /** px */
1164
+ strokeWidth?: number | null;
1165
+ opacity?: number | null;
1166
+ icon?: Icon$2;
1167
+ image?: Image$2;
1168
+ seatNumbering?: Numbering$2;
1169
+ }
1170
+ declare enum ShapeTypeEnumType$2 {
1171
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
1172
+ TEXT = "TEXT",
1173
+ RECTANGLE = "RECTANGLE",
1174
+ ELLIPSE = "ELLIPSE",
1175
+ LINE = "LINE",
1176
+ ICON = "ICON",
1177
+ IMAGE = "IMAGE"
1178
+ }
1179
+ declare enum Position$2 {
1180
+ UNKNOWN_POSITION = "UNKNOWN_POSITION",
1181
+ LEFT = "LEFT",
1182
+ RIGHT = "RIGHT",
1183
+ BOTH = "BOTH",
1184
+ NONE = "NONE"
1185
+ }
1186
+ declare enum Icon$2 {
1187
+ UNKNOWN_ICON = "UNKNOWN_ICON",
1188
+ ENTER = "ENTER",
1189
+ EXIT = "EXIT",
1190
+ DRINKS = "DRINKS",
1191
+ WC = "WC",
1192
+ WC_MEN = "WC_MEN",
1193
+ WC_WOMEN = "WC_WOMEN",
1194
+ FOOD = "FOOD",
1195
+ STAIRS = "STAIRS",
1196
+ ELEVATOR = "ELEVATOR",
1197
+ SMOKING = "SMOKING",
1198
+ CHECKROOM = "CHECKROOM",
1199
+ STAGE = "STAGE"
1200
+ }
1201
+ interface Image$2 {
1202
+ /** WixMedia image ID. */
1203
+ _id?: string;
1204
+ /**
1205
+ * Original image height.
1206
+ * @readonly
1207
+ */
1208
+ height?: number;
1209
+ /**
1210
+ * Original image width.
1211
+ * @readonly
1212
+ */
1213
+ width?: number;
1214
+ /**
1215
+ * WixMedia image URI.
1216
+ * @deprecated
1217
+ */
1218
+ uri?: string | null;
1219
+ }
1220
+ declare enum Numbering$2 {
1221
+ UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
1222
+ NUMERIC = "NUMERIC",
1223
+ ODD_EVEN = "ODD_EVEN",
1224
+ ALPHABETICAL = "ALPHABETICAL"
1225
+ }
1226
+ interface Category$2 {
1227
+ /** Local category id within the seating plan */
1228
+ _id?: number;
1229
+ /**
1230
+ * A client defined external id for cross referencing.
1231
+ * Can reference external entities.
1232
+ * Format: "{entity_fqdn}:{entity_id}"
1233
+ */
1234
+ externalId?: string | null;
1235
+ /** Category label */
1236
+ title?: string;
1237
+ /**
1238
+ * Client configuration object
1239
+ * @readonly
1240
+ */
1241
+ config?: Record<string, any> | null;
1242
+ /**
1243
+ * Total capacity
1244
+ * @readonly
1245
+ */
1246
+ totalCapacity?: number | null;
1247
+ /**
1248
+ * Possible places
1249
+ * @readonly
1250
+ */
1251
+ places?: Place$2[];
1252
+ }
1253
+ interface ExtendedFields$2 {
1254
+ /**
1255
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
1256
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
1257
+ *
1258
+ * You can only access fields for which you have the appropriate permissions.
1259
+ *
1260
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
1261
+ */
1262
+ namespaces?: Record<string, Record<string, any>>;
1263
+ }
1264
+ interface SeatingPlanUiProperties$2 {
1265
+ /** #F0F0F0 */
1266
+ backgroundColor?: string | null;
1267
+ backgroundOpacity?: number | null;
1268
+ }
1269
+ interface CreateSeatingPlanRequest {
1270
+ /** A plan to be created */
1271
+ plan: SeatingPlan$2;
1272
+ }
1273
+ interface CreateSeatingPlanResponse {
1274
+ /** The created plan */
1275
+ plan?: SeatingPlan$2;
1276
+ }
1277
+ interface UpdateSeatingPlanRequest {
1278
+ /** The plan updates */
1279
+ plan?: SeatingPlan$2;
1280
+ }
1281
+ interface UpdateSeatingPlanResponse {
1282
+ /** The updated plan */
1283
+ plan?: SeatingPlan$2;
1284
+ }
1285
+ interface CopySeatingPlanRequest {
1286
+ /** The id of the plan to be copied */
1287
+ _id: string | null;
1288
+ /** New plan title */
1289
+ title: string | null;
1290
+ /** Format: "{fqdn}:{entity guid}" */
1291
+ externalId: string | null;
1292
+ }
1293
+ interface CopySeatingPlanResponse {
1294
+ /** The copied plan */
1295
+ plan?: SeatingPlan$2;
1296
+ }
1297
+ interface QuerySeatingPlanRequest {
1298
+ /**
1299
+ * Generic query object
1300
+ * Possible fieldsets: "elements", "categories", "places", "config".
1301
+ */
1302
+ query: QueryV2$2;
1303
+ /** A fieldset for the response */
1304
+ fieldset?: Fieldset[];
1305
+ }
1306
+ interface QueryV2$2 extends QueryV2PagingMethodOneOf$2 {
1307
+ /** Paging options to limit and skip the number of items. */
1308
+ paging?: Paging$2;
1309
+ /** 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`. */
1310
+ cursorPaging?: CursorPaging$2;
1311
+ /**
1312
+ * Filter object in the following format:
1313
+ * `"filter" : {
1314
+ * "fieldName1": "value1",
1315
+ * "fieldName2":{"$operator":"value2"}
1316
+ * }`
1317
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
1318
+ */
1319
+ filter?: Record<string, any> | null;
1320
+ /**
1321
+ * Sort object in the following format:
1322
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
1323
+ */
1324
+ sort?: Sorting$2[];
1325
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
1326
+ fields?: string[];
1327
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
1328
+ fieldsets?: string[];
1329
+ }
1330
+ /** @oneof */
1331
+ interface QueryV2PagingMethodOneOf$2 {
1332
+ /** Paging options to limit and skip the number of items. */
1333
+ paging?: Paging$2;
1334
+ /** 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`. */
1335
+ cursorPaging?: CursorPaging$2;
1336
+ }
1337
+ interface Sorting$2 {
1338
+ /** Name of the field to sort by. */
1339
+ fieldName?: string;
1340
+ /** Sort order. */
1341
+ order?: SortOrder$2;
1342
+ }
1343
+ declare enum SortOrder$2 {
1344
+ ASC = "ASC",
1345
+ DESC = "DESC"
1346
+ }
1347
+ interface Paging$2 {
1348
+ /** Number of items to load. */
1349
+ limit?: number | null;
1350
+ /** Number of items to skip in the current sort order. */
1351
+ offset?: number | null;
1352
+ }
1353
+ interface CursorPaging$2 {
1354
+ /** Maximum number of items to return in the results. */
1355
+ limit?: number | null;
1356
+ /**
1357
+ * Pointer to the next or previous page in the list of results.
1358
+ *
1359
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1360
+ * Not relevant for the first request.
1361
+ */
1362
+ cursor?: string | null;
1363
+ }
1364
+ declare enum Fieldset {
1365
+ ELEMENTS = "ELEMENTS",
1366
+ CATEGORIES = "CATEGORIES",
1367
+ PLACES = "PLACES",
1368
+ CONFIG = "CONFIG",
1369
+ ELEMENT_GROUPS = "ELEMENT_GROUPS"
1370
+ }
1371
+ interface QuerySeatingPlanResponse {
1372
+ /** Plan results */
1373
+ plans?: SeatingPlan$2[];
1374
+ }
1375
+ interface GetSeatingPlanRequest {
1376
+ /** The id of the plan */
1377
+ _id: string | null;
1378
+ /**
1379
+ * A fieldset for the response
1380
+ * @deprecated
1381
+ */
1382
+ fieldset?: Fieldset[];
1383
+ /**
1384
+ * Projection on the result object - list of named projections.
1385
+ * Possible values: "elements", "categories", "places", "config".
1386
+ */
1387
+ fieldsets?: string[];
1388
+ /** Seating Plan Mask */
1389
+ seatingPlanMask?: SeatingPlanMask;
1390
+ }
1391
+ interface SeatingPlanMask {
1392
+ /** Filter seating plan by place ids */
1393
+ placeId?: string[];
1394
+ }
1395
+ interface GetSeatingPlanResponse {
1396
+ /** The plan */
1397
+ plan?: SeatingPlan$2;
1398
+ }
1399
+ interface FindSeatingPlanRequest {
1400
+ /** The filter of the plan */
1401
+ filter: Record<string, any> | null;
1402
+ /**
1403
+ * A fieldset for the response
1404
+ * @deprecated
1405
+ */
1406
+ fieldset?: Fieldset[];
1407
+ /**
1408
+ * Projection on the result object - list of named projections.
1409
+ * Possible values: "elements", "categories", "places", "config".
1410
+ */
1411
+ fieldsets?: string[];
1412
+ /** Seating Plan Mask */
1413
+ seatingPlanMask?: SeatingPlanMask;
1414
+ }
1415
+ interface FindSeatingPlanResponse {
1416
+ /** The plan */
1417
+ plan?: SeatingPlan$2;
1418
+ }
1419
+ interface DeleteSeatingPlanRequest {
1420
+ /** The id of the plan */
1421
+ _id: string | null;
1422
+ }
1423
+ interface DeleteSeatingPlanResponse {
1424
+ /** Deleted plan */
1425
+ plan?: SeatingPlan$2;
1426
+ }
1427
+ interface UpdateSeatingPlanThumbnailRequest {
1428
+ thumbnail: SeatingPlanThumbnail;
1429
+ }
1430
+ interface SeatingPlanThumbnail {
1431
+ /** @readonly */
1432
+ _id?: string | null;
1433
+ img?: string | null;
1434
+ }
1435
+ interface UpdateSeatingPlanThumbnailResponse {
1436
+ thumbnail?: SeatingPlanThumbnail;
1437
+ }
1438
+ interface GetSeatingPlanThumbnailRequest {
1439
+ /** @readonly */
1440
+ _id: string | null;
1441
+ }
1442
+ interface GetSeatingPlanThumbnailResponse {
1443
+ thumbnail?: SeatingPlanThumbnail;
1444
+ }
1445
+ interface CreateSeatingPlanResponseNonNullableFields {
1446
+ plan?: {
1447
+ sections: {
1448
+ _id: number;
1449
+ elements: {
1450
+ _id: number;
1451
+ type: Type$2;
1452
+ sequencing?: {
1453
+ startAt: string;
1454
+ labels: string[];
1455
+ };
1456
+ overrides: {
1457
+ index: number;
1458
+ label: string;
1459
+ elementType: Type$2;
1460
+ }[];
1461
+ places: {
1462
+ index: number;
1463
+ label: string;
1464
+ elementType: Type$2;
1465
+ }[];
1466
+ reservationOptions?: {
1467
+ reserveWholeElement: boolean;
1468
+ };
1469
+ uiProperties?: {
1470
+ shapeType: ShapeTypeEnumType$2;
1471
+ labelPosition: Position$2;
1472
+ seatLayout: number[];
1473
+ icon: Icon$2;
1474
+ image?: {
1475
+ _id: string;
1476
+ height: number;
1477
+ width: number;
1478
+ };
1479
+ seatNumbering: Numbering$2;
1480
+ };
1481
+ }[];
1482
+ default: boolean;
1483
+ }[];
1484
+ categories: {
1485
+ _id: number;
1486
+ title: string;
1487
+ places: {
1488
+ index: number;
1489
+ label: string;
1490
+ elementType: Type$2;
1491
+ }[];
1492
+ }[];
1493
+ uncategorizedPlaces: {
1494
+ index: number;
1495
+ label: string;
1496
+ elementType: Type$2;
1497
+ }[];
1498
+ };
1499
+ }
1500
+ interface UpdateSeatingPlanResponseNonNullableFields {
1501
+ plan?: {
1502
+ sections: {
1503
+ _id: number;
1504
+ elements: {
1505
+ _id: number;
1506
+ type: Type$2;
1507
+ sequencing?: {
1508
+ startAt: string;
1509
+ labels: string[];
1510
+ };
1511
+ overrides: {
1512
+ index: number;
1513
+ label: string;
1514
+ elementType: Type$2;
1515
+ }[];
1516
+ places: {
1517
+ index: number;
1518
+ label: string;
1519
+ elementType: Type$2;
1520
+ }[];
1521
+ reservationOptions?: {
1522
+ reserveWholeElement: boolean;
1523
+ };
1524
+ uiProperties?: {
1525
+ shapeType: ShapeTypeEnumType$2;
1526
+ labelPosition: Position$2;
1527
+ seatLayout: number[];
1528
+ icon: Icon$2;
1529
+ image?: {
1530
+ _id: string;
1531
+ height: number;
1532
+ width: number;
1533
+ };
1534
+ seatNumbering: Numbering$2;
1535
+ };
1536
+ }[];
1537
+ default: boolean;
1538
+ }[];
1539
+ categories: {
1540
+ _id: number;
1541
+ title: string;
1542
+ places: {
1543
+ index: number;
1544
+ label: string;
1545
+ elementType: Type$2;
1546
+ }[];
1547
+ }[];
1548
+ uncategorizedPlaces: {
1549
+ index: number;
1550
+ label: string;
1551
+ elementType: Type$2;
1552
+ }[];
1553
+ };
1554
+ }
1555
+ interface CopySeatingPlanResponseNonNullableFields {
1556
+ plan?: {
1557
+ sections: {
1558
+ _id: number;
1559
+ elements: {
1560
+ _id: number;
1561
+ type: Type$2;
1562
+ sequencing?: {
1563
+ startAt: string;
1564
+ labels: string[];
1565
+ };
1566
+ overrides: {
1567
+ index: number;
1568
+ label: string;
1569
+ elementType: Type$2;
1570
+ }[];
1571
+ places: {
1572
+ index: number;
1573
+ label: string;
1574
+ elementType: Type$2;
1575
+ }[];
1576
+ reservationOptions?: {
1577
+ reserveWholeElement: boolean;
1578
+ };
1579
+ uiProperties?: {
1580
+ shapeType: ShapeTypeEnumType$2;
1581
+ labelPosition: Position$2;
1582
+ seatLayout: number[];
1583
+ icon: Icon$2;
1584
+ image?: {
1585
+ _id: string;
1586
+ height: number;
1587
+ width: number;
1588
+ };
1589
+ seatNumbering: Numbering$2;
1590
+ };
1591
+ }[];
1592
+ default: boolean;
1593
+ }[];
1594
+ categories: {
1595
+ _id: number;
1596
+ title: string;
1597
+ places: {
1598
+ index: number;
1599
+ label: string;
1600
+ elementType: Type$2;
1601
+ }[];
1602
+ }[];
1603
+ uncategorizedPlaces: {
1604
+ index: number;
1605
+ label: string;
1606
+ elementType: Type$2;
1607
+ }[];
1608
+ };
1609
+ }
1610
+ interface QuerySeatingPlanResponseNonNullableFields {
1611
+ plans: {
1612
+ sections: {
1613
+ _id: number;
1614
+ elements: {
1615
+ _id: number;
1616
+ type: Type$2;
1617
+ sequencing?: {
1618
+ startAt: string;
1619
+ labels: string[];
1620
+ };
1621
+ overrides: {
1622
+ index: number;
1623
+ label: string;
1624
+ elementType: Type$2;
1625
+ }[];
1626
+ places: {
1627
+ index: number;
1628
+ label: string;
1629
+ elementType: Type$2;
1630
+ }[];
1631
+ reservationOptions?: {
1632
+ reserveWholeElement: boolean;
1633
+ };
1634
+ uiProperties?: {
1635
+ shapeType: ShapeTypeEnumType$2;
1636
+ labelPosition: Position$2;
1637
+ seatLayout: number[];
1638
+ icon: Icon$2;
1639
+ image?: {
1640
+ _id: string;
1641
+ height: number;
1642
+ width: number;
1643
+ };
1644
+ seatNumbering: Numbering$2;
1645
+ };
1646
+ }[];
1647
+ default: boolean;
1648
+ }[];
1649
+ categories: {
1650
+ _id: number;
1651
+ title: string;
1652
+ places: {
1653
+ index: number;
1654
+ label: string;
1655
+ elementType: Type$2;
1656
+ }[];
1657
+ }[];
1658
+ uncategorizedPlaces: {
1659
+ index: number;
1660
+ label: string;
1661
+ elementType: Type$2;
1662
+ }[];
1663
+ }[];
1664
+ }
1665
+ interface GetSeatingPlanResponseNonNullableFields {
1666
+ plan?: {
1667
+ sections: {
1668
+ _id: number;
1669
+ elements: {
1670
+ _id: number;
1671
+ type: Type$2;
1672
+ sequencing?: {
1673
+ startAt: string;
1674
+ labels: string[];
1675
+ };
1676
+ overrides: {
1677
+ index: number;
1678
+ label: string;
1679
+ elementType: Type$2;
1680
+ }[];
1681
+ places: {
1682
+ index: number;
1683
+ label: string;
1684
+ elementType: Type$2;
1685
+ }[];
1686
+ reservationOptions?: {
1687
+ reserveWholeElement: boolean;
1688
+ };
1689
+ uiProperties?: {
1690
+ shapeType: ShapeTypeEnumType$2;
1691
+ labelPosition: Position$2;
1692
+ seatLayout: number[];
1693
+ icon: Icon$2;
1694
+ image?: {
1695
+ _id: string;
1696
+ height: number;
1697
+ width: number;
1698
+ };
1699
+ seatNumbering: Numbering$2;
1700
+ };
1701
+ }[];
1702
+ default: boolean;
1703
+ }[];
1704
+ categories: {
1705
+ _id: number;
1706
+ title: string;
1707
+ places: {
1708
+ index: number;
1709
+ label: string;
1710
+ elementType: Type$2;
1711
+ }[];
1712
+ }[];
1713
+ uncategorizedPlaces: {
1714
+ index: number;
1715
+ label: string;
1716
+ elementType: Type$2;
1717
+ }[];
1718
+ };
1719
+ }
1720
+ interface FindSeatingPlanResponseNonNullableFields {
1721
+ plan?: {
1722
+ sections: {
1723
+ _id: number;
1724
+ elements: {
1725
+ _id: number;
1726
+ type: Type$2;
1727
+ sequencing?: {
1728
+ startAt: string;
1729
+ labels: string[];
1730
+ };
1731
+ overrides: {
1732
+ index: number;
1733
+ label: string;
1734
+ elementType: Type$2;
1735
+ }[];
1736
+ places: {
1737
+ index: number;
1738
+ label: string;
1739
+ elementType: Type$2;
1740
+ }[];
1741
+ reservationOptions?: {
1742
+ reserveWholeElement: boolean;
1743
+ };
1744
+ uiProperties?: {
1745
+ shapeType: ShapeTypeEnumType$2;
1746
+ labelPosition: Position$2;
1747
+ seatLayout: number[];
1748
+ icon: Icon$2;
1749
+ image?: {
1750
+ _id: string;
1751
+ height: number;
1752
+ width: number;
1753
+ };
1754
+ seatNumbering: Numbering$2;
1755
+ };
1756
+ }[];
1757
+ default: boolean;
1758
+ }[];
1759
+ categories: {
1760
+ _id: number;
1761
+ title: string;
1762
+ places: {
1763
+ index: number;
1764
+ label: string;
1765
+ elementType: Type$2;
1766
+ }[];
1767
+ }[];
1768
+ uncategorizedPlaces: {
1769
+ index: number;
1770
+ label: string;
1771
+ elementType: Type$2;
1772
+ }[];
1773
+ };
1774
+ }
1775
+ interface DeleteSeatingPlanResponseNonNullableFields {
1776
+ plan?: {
1777
+ sections: {
1778
+ _id: number;
1779
+ elements: {
1780
+ _id: number;
1781
+ type: Type$2;
1782
+ sequencing?: {
1783
+ startAt: string;
1784
+ labels: string[];
1785
+ };
1786
+ overrides: {
1787
+ index: number;
1788
+ label: string;
1789
+ elementType: Type$2;
1790
+ }[];
1791
+ places: {
1792
+ index: number;
1793
+ label: string;
1794
+ elementType: Type$2;
1795
+ }[];
1796
+ reservationOptions?: {
1797
+ reserveWholeElement: boolean;
1798
+ };
1799
+ uiProperties?: {
1800
+ shapeType: ShapeTypeEnumType$2;
1801
+ labelPosition: Position$2;
1802
+ seatLayout: number[];
1803
+ icon: Icon$2;
1804
+ image?: {
1805
+ _id: string;
1806
+ height: number;
1807
+ width: number;
1808
+ };
1809
+ seatNumbering: Numbering$2;
1810
+ };
1811
+ }[];
1812
+ default: boolean;
1813
+ }[];
1814
+ categories: {
1815
+ _id: number;
1816
+ title: string;
1817
+ places: {
1818
+ index: number;
1819
+ label: string;
1820
+ elementType: Type$2;
1821
+ }[];
1822
+ }[];
1823
+ uncategorizedPlaces: {
1824
+ index: number;
1825
+ label: string;
1826
+ elementType: Type$2;
1827
+ }[];
1828
+ };
1829
+ }
1830
+
1831
+ type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1832
+ getUrl: (context: any) => string;
1833
+ httpMethod: K;
1834
+ path: string;
1835
+ pathParams: M;
1836
+ __requestType: T;
1837
+ __originalRequestType: S;
1838
+ __responseType: Q;
1839
+ __originalResponseType: R;
1840
+ };
1841
+ declare function createSeatingPlan(): __PublicMethodMetaInfo$1<'POST', {}, CreateSeatingPlanRequest, CreateSeatingPlanRequest$1, CreateSeatingPlanResponse & CreateSeatingPlanResponseNonNullableFields, CreateSeatingPlanResponse$1 & CreateSeatingPlanResponseNonNullableFields$1>;
1842
+ declare function updateSeatingPlan(): __PublicMethodMetaInfo$1<'PUT', {}, UpdateSeatingPlanRequest, UpdateSeatingPlanRequest$1, UpdateSeatingPlanResponse & UpdateSeatingPlanResponseNonNullableFields, UpdateSeatingPlanResponse$1 & UpdateSeatingPlanResponseNonNullableFields$1>;
1843
+ declare function copySeatingPlan(): __PublicMethodMetaInfo$1<'POST', {}, CopySeatingPlanRequest, CopySeatingPlanRequest$1, CopySeatingPlanResponse & CopySeatingPlanResponseNonNullableFields, CopySeatingPlanResponse$1 & CopySeatingPlanResponseNonNullableFields$1>;
1844
+ declare function querySeatingPlan(): __PublicMethodMetaInfo$1<'POST', {}, QuerySeatingPlanRequest, QuerySeatingPlanRequest$1, QuerySeatingPlanResponse & QuerySeatingPlanResponseNonNullableFields, QuerySeatingPlanResponse$1 & QuerySeatingPlanResponseNonNullableFields$1>;
1845
+ declare function getSeatingPlan(): __PublicMethodMetaInfo$1<'GET', {
1846
+ id: string;
1847
+ }, GetSeatingPlanRequest, GetSeatingPlanRequest$1, GetSeatingPlanResponse & GetSeatingPlanResponseNonNullableFields, GetSeatingPlanResponse$1 & GetSeatingPlanResponseNonNullableFields$1>;
1848
+ declare function findSeatingPlan(): __PublicMethodMetaInfo$1<'POST', {}, FindSeatingPlanRequest, FindSeatingPlanRequest$1, FindSeatingPlanResponse & FindSeatingPlanResponseNonNullableFields, FindSeatingPlanResponse$1 & FindSeatingPlanResponseNonNullableFields$1>;
1849
+ declare function deleteSeatingPlan(): __PublicMethodMetaInfo$1<'DELETE', {
1850
+ id: string;
1851
+ }, DeleteSeatingPlanRequest, DeleteSeatingPlanRequest$1, DeleteSeatingPlanResponse & DeleteSeatingPlanResponseNonNullableFields, DeleteSeatingPlanResponse$1 & DeleteSeatingPlanResponseNonNullableFields$1>;
1852
+ declare function updateSeatingPlanThumbnail(): __PublicMethodMetaInfo$1<'POST', {}, UpdateSeatingPlanThumbnailRequest, UpdateSeatingPlanThumbnailRequest$1, UpdateSeatingPlanThumbnailResponse, UpdateSeatingPlanThumbnailResponse$1>;
1853
+ declare function getSeatingPlanThumbnail(): __PublicMethodMetaInfo$1<'GET', {}, GetSeatingPlanThumbnailRequest, GetSeatingPlanThumbnailRequest$1, GetSeatingPlanThumbnailResponse, GetSeatingPlanThumbnailResponse$1>;
1854
+
1855
+ declare const meta$1_copySeatingPlan: typeof copySeatingPlan;
1856
+ declare const meta$1_createSeatingPlan: typeof createSeatingPlan;
1857
+ declare const meta$1_deleteSeatingPlan: typeof deleteSeatingPlan;
1858
+ declare const meta$1_findSeatingPlan: typeof findSeatingPlan;
1859
+ declare const meta$1_getSeatingPlan: typeof getSeatingPlan;
1860
+ declare const meta$1_getSeatingPlanThumbnail: typeof getSeatingPlanThumbnail;
1861
+ declare const meta$1_querySeatingPlan: typeof querySeatingPlan;
1862
+ declare const meta$1_updateSeatingPlan: typeof updateSeatingPlan;
1863
+ declare const meta$1_updateSeatingPlanThumbnail: typeof updateSeatingPlanThumbnail;
1864
+ declare namespace meta$1 {
1865
+ export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_copySeatingPlan as copySeatingPlan, meta$1_createSeatingPlan as createSeatingPlan, meta$1_deleteSeatingPlan as deleteSeatingPlan, meta$1_findSeatingPlan as findSeatingPlan, meta$1_getSeatingPlan as getSeatingPlan, meta$1_getSeatingPlanThumbnail as getSeatingPlanThumbnail, meta$1_querySeatingPlan as querySeatingPlan, meta$1_updateSeatingPlan as updateSeatingPlan, meta$1_updateSeatingPlanThumbnail as updateSeatingPlanThumbnail };
1866
+ }
1867
+
1868
+ interface SeatingReservation$1 {
1869
+ /**
1870
+ * The id of the reservation
1871
+ * @readonly
1872
+ */
1873
+ id?: string | null;
1874
+ /**
1875
+ * The seating plan id
1876
+ * @readonly
1877
+ */
1878
+ seatingPlanId?: string | null;
1879
+ /**
1880
+ * The external seating plan id
1881
+ * @readonly
1882
+ */
1883
+ externalSeatingPlanId?: string | null;
1884
+ /** Reserved places */
1885
+ reservedPlaces?: PlaceReservation$1[];
1886
+ /**
1887
+ * A client defined external id for cross referencing.
1888
+ * Can reference external entities.
1889
+ * Format: "{fqdn}:{entity guid}"
1890
+ */
1891
+ externalId?: string | null;
1892
+ }
1893
+ interface PlaceReservation$1 {
1894
+ /** The place id. */
1895
+ id?: string;
1896
+ /**
1897
+ * Number of places in the spot. If not provided - defaults to 1.
1898
+ * Used to reserve for more that one place in areas.
1899
+ */
1900
+ capacity?: number | null;
1901
+ /**
1902
+ * Optional section label.
1903
+ * @readonly
1904
+ */
1905
+ sectionLabel?: string | null;
1906
+ /**
1907
+ * Area label.
1908
+ * @readonly
1909
+ */
1910
+ areaLabel?: string | null;
1911
+ /**
1912
+ * Table label.
1913
+ * @readonly
1914
+ */
1915
+ tableLabel?: string | null;
1916
+ /**
1917
+ * Row label.
1918
+ * @readonly
1919
+ */
1920
+ rowLabel?: string | null;
1921
+ /**
1922
+ * Seat label in a row or table.
1923
+ * @readonly
1924
+ */
1925
+ seatLabel?: string | null;
1926
+ }
1927
+ interface CategoryDetails$1 {
1928
+ /**
1929
+ * Seating plan id
1930
+ * @readonly
1931
+ */
1932
+ seatingPlanId?: string | null;
1933
+ /**
1934
+ * External seating plan id
1935
+ * @readonly
1936
+ */
1937
+ externalSeatingPlanId?: string | null;
1938
+ /**
1939
+ * External category id
1940
+ * @readonly
1941
+ */
1942
+ externalCategoryId?: string | null;
1943
+ /**
1944
+ * Total capacity in the category
1945
+ * @readonly
1946
+ */
1947
+ totalCapacity?: number | null;
1948
+ /**
1949
+ * Already reserved capacity
1950
+ * @readonly
1951
+ */
1952
+ reserved?: number | null;
1953
+ }
1954
+ interface CreateSeatingReservationRequest$1 {
1955
+ /** A reservation to create */
1956
+ reservation?: SeatingReservation$1;
1957
+ }
1958
+ interface CreateSeatingReservationResponse$1 {
1959
+ /** Created reservation */
1960
+ reservation?: SeatingReservation$1;
1961
+ }
1962
+ interface GetReservationRequest$1 {
1963
+ /** The id of the reservation to return */
1964
+ id: string | null;
1965
+ }
1966
+ interface GetReservationResponse$1 {
1967
+ /** Created reservation */
1968
+ reservation?: SeatingReservation$1;
1969
+ }
1970
+ interface QuerySeatingReservationRequest$1 {
1971
+ /** A query object */
1972
+ query: QueryV2$1;
1973
+ }
1974
+ interface QueryV2$1 extends QueryV2PagingMethodOneOf$1 {
1975
+ /** Paging options to limit and skip the number of items. */
1976
+ paging?: Paging$1;
1977
+ /** 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`. */
1978
+ cursorPaging?: CursorPaging$1;
1979
+ /**
1980
+ * Filter object in the following format:
1981
+ * `"filter" : {
1982
+ * "fieldName1": "value1",
1983
+ * "fieldName2":{"$operator":"value2"}
1984
+ * }`
1985
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
1986
+ */
1987
+ filter?: Record<string, any> | null;
1988
+ /**
1989
+ * Sort object in the following format:
1990
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
1991
+ */
1992
+ sort?: Sorting$1[];
1993
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
1994
+ fields?: string[];
1995
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
1996
+ fieldsets?: string[];
1997
+ }
1998
+ /** @oneof */
1999
+ interface QueryV2PagingMethodOneOf$1 {
2000
+ /** Paging options to limit and skip the number of items. */
2001
+ paging?: Paging$1;
2002
+ /** 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`. */
2003
+ cursorPaging?: CursorPaging$1;
2004
+ }
2005
+ interface Sorting$1 {
2006
+ /** Name of the field to sort by. */
2007
+ fieldName?: string;
2008
+ /** Sort order. */
2009
+ order?: SortOrder$1;
2010
+ }
2011
+ declare enum SortOrder$1 {
2012
+ ASC = "ASC",
2013
+ DESC = "DESC"
2014
+ }
2015
+ interface Paging$1 {
2016
+ /** Number of items to load. */
2017
+ limit?: number | null;
2018
+ /** Number of items to skip in the current sort order. */
2019
+ offset?: number | null;
2020
+ }
2021
+ interface CursorPaging$1 {
2022
+ /** Maximum number of items to return in the results. */
2023
+ limit?: number | null;
2024
+ /**
2025
+ * Pointer to the next or previous page in the list of results.
2026
+ *
2027
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2028
+ * Not relevant for the first request.
2029
+ */
2030
+ cursor?: string | null;
2031
+ }
2032
+ interface QuerySeatingReservationResponse$1 {
2033
+ /** Found reservations */
2034
+ reservations?: SeatingReservation$1[];
2035
+ /** Paging meta data */
2036
+ metadata?: PagingMetadataV2$1;
2037
+ }
2038
+ interface PagingMetadataV2$1 {
2039
+ /** Number of items returned in the response. */
2040
+ count?: number | null;
2041
+ /** Offset that was requested. */
2042
+ offset?: number | null;
2043
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
2044
+ total?: number | null;
2045
+ /** Flag that indicates the server failed to calculate the `total` field. */
2046
+ tooManyToCount?: boolean | null;
2047
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2048
+ cursors?: Cursors$1;
2049
+ }
2050
+ interface Cursors$1 {
2051
+ /** Cursor string pointing to the next page in the list of results. */
2052
+ next?: string | null;
2053
+ /** Cursor pointing to the previous page in the list of results. */
2054
+ prev?: string | null;
2055
+ }
2056
+ interface DeleteSeatingReservationRequest$1 {
2057
+ /** The id of the reservation to delete */
2058
+ id: string | null;
2059
+ }
2060
+ interface DeleteSeatingReservationResponse$1 {
2061
+ /** The deleted reservation */
2062
+ reservation?: SeatingReservation$1;
2063
+ }
2064
+ interface GetSeatingCategoriesSummaryRequest$1 {
2065
+ /** Seating plan external id */
2066
+ externalId?: string[];
2067
+ }
2068
+ interface GetSeatingCategoriesSummaryResponse$1 {
2069
+ /** Ticket counts by category */
2070
+ categories?: CategoryDetails$1[];
2071
+ }
2072
+ interface GetSeatingReservationsSummaryRequest$1 {
2073
+ /** Filter for seating plan */
2074
+ filter: Record<string, any> | null;
2075
+ }
2076
+ interface GetSeatingReservationsSummaryResponse$1 {
2077
+ plan?: SeatingPlan$1;
2078
+ seatingReservationsSummary?: SeatingReservationsSummary$1;
2079
+ }
2080
+ interface SeatingPlan$1 {
2081
+ /**
2082
+ * Auto generated unique plan id
2083
+ * @readonly
2084
+ */
2085
+ id?: string | null;
2086
+ /**
2087
+ * A client defined external id for cross referencing.
2088
+ * Can reference external entities.
2089
+ * Format: "{fqdn}:{entity guid}"
2090
+ */
2091
+ externalId?: string | null;
2092
+ /** Human friendly plan title */
2093
+ title?: string | null;
2094
+ /** Sections of the plan. Seating plan is divided in high level sections. */
2095
+ sections?: Section$1[];
2096
+ /** Categories for plan element grouping. */
2097
+ categories?: Category$1[];
2098
+ /**
2099
+ * Seating plan created timestamp.
2100
+ * @readonly
2101
+ */
2102
+ createdDate?: Date;
2103
+ /**
2104
+ * Seating plan updated timestamp.
2105
+ * @readonly
2106
+ */
2107
+ updatedDate?: Date;
2108
+ /**
2109
+ * Total capacity
2110
+ * @readonly
2111
+ */
2112
+ totalCapacity?: number | null;
2113
+ /**
2114
+ * Total categories
2115
+ * @readonly
2116
+ */
2117
+ totalCategories?: number | null;
2118
+ /**
2119
+ * Places not assigned to categories
2120
+ * @readonly
2121
+ */
2122
+ uncategorizedPlaces?: Place$1[];
2123
+ /**
2124
+ * A version of the seating plan
2125
+ * @readonly
2126
+ */
2127
+ version?: string | null;
2128
+ /** Data extensions */
2129
+ extendedFields?: ExtendedFields$1;
2130
+ /** Seating Plan UI settings */
2131
+ uiProperties?: SeatingPlanUiProperties$1;
2132
+ }
2133
+ interface Section$1 {
2134
+ /** Unique section id */
2135
+ id?: number;
2136
+ /** Human readable section title */
2137
+ title?: string | null;
2138
+ /**
2139
+ * Client configuration object
2140
+ * @readonly
2141
+ */
2142
+ config?: Record<string, any> | null;
2143
+ /** Elements of the section. */
2144
+ elements?: Element$1[];
2145
+ /**
2146
+ * Total capacity
2147
+ * @readonly
2148
+ */
2149
+ totalCapacity?: number | null;
2150
+ /**
2151
+ * Is default section
2152
+ * @readonly
2153
+ */
2154
+ default?: boolean;
2155
+ }
2156
+ interface Element$1 {
2157
+ /** Unique element id */
2158
+ id?: number;
2159
+ /** User friendly title/label of the element. */
2160
+ title?: string | null;
2161
+ /** Element type */
2162
+ type?: Type$1;
2163
+ /** Capacity. None for Shape type Element. */
2164
+ capacity?: number | null;
2165
+ /** Assigned to a category */
2166
+ categoryId?: number | null;
2167
+ /** A place numbering meta data */
2168
+ sequencing?: Sequencing$1;
2169
+ /**
2170
+ * Place override (by seq_id)
2171
+ * @deprecated
2172
+ */
2173
+ overrides?: Place$1[];
2174
+ /**
2175
+ * Final place sequence with overrides
2176
+ * @readonly
2177
+ */
2178
+ places?: Place$1[];
2179
+ /** Element reservation options */
2180
+ reservationOptions?: ReservationOptions$1;
2181
+ /** Element UI settings */
2182
+ uiProperties?: ElementUiProperties$1;
2183
+ }
2184
+ declare enum Type$1 {
2185
+ AREA = "AREA",
2186
+ ROW = "ROW",
2187
+ MULTI_ROW = "MULTI_ROW",
2188
+ TABLE = "TABLE",
2189
+ ROUND_TABLE = "ROUND_TABLE",
2190
+ SHAPE = "SHAPE"
2191
+ }
2192
+ interface Sequencing$1 {
2193
+ /** First seq element */
2194
+ startAt?: string;
2195
+ /** Finite generated seq of labels */
2196
+ labels?: string[];
2197
+ /** If true - direction right to left. Otherwise left to right. */
2198
+ reverseOrder?: boolean | null;
2199
+ }
2200
+ interface Place$1 {
2201
+ /**
2202
+ * Local id of the place in the sequence
2203
+ * @deprecated
2204
+ * @removalDate 2024-07-01
2205
+ */
2206
+ index?: number;
2207
+ /**
2208
+ * Generated composite unique id in the seating plan.
2209
+ * @readonly
2210
+ */
2211
+ id?: string | null;
2212
+ /** Unique label of the place */
2213
+ label?: string;
2214
+ /**
2215
+ * Max capacity per place
2216
+ * @readonly
2217
+ */
2218
+ capacity?: number | null;
2219
+ /**
2220
+ * Type of the parent element
2221
+ * @readonly
2222
+ */
2223
+ elementType?: Type$1;
2224
+ /**
2225
+ * Assigned category id
2226
+ * @readonly
2227
+ */
2228
+ categoryId?: number | null;
2229
+ }
2230
+ interface ReservationOptions$1 {
2231
+ /** Indicates whether the entire element must be reserved */
2232
+ reserveWholeElement?: boolean;
2233
+ }
2234
+ interface ElementUiProperties$1 {
2235
+ x?: number | null;
2236
+ y?: number | null;
2237
+ zIndex?: number | null;
2238
+ width?: number | null;
2239
+ height?: number | null;
2240
+ rotationAngle?: number | null;
2241
+ shapeType?: ShapeTypeEnumType$1;
2242
+ fontSize?: number | null;
2243
+ cornerRadius?: number | null;
2244
+ seatSpacing?: number | null;
2245
+ hideLabel?: boolean | null;
2246
+ labelPosition?: Position$1;
2247
+ seatLayout?: number[];
2248
+ emptyTopSeatSpaces?: number | null;
2249
+ /** needs research */
2250
+ text?: string | null;
2251
+ /** #F0F0F0 */
2252
+ color?: string | null;
2253
+ /** #F0F0F0 */
2254
+ fillColor?: string | null;
2255
+ /** #F0F0F0 */
2256
+ strokeColor?: string | null;
2257
+ /** px */
2258
+ strokeWidth?: number | null;
2259
+ opacity?: number | null;
2260
+ icon?: Icon$1;
2261
+ image?: Image$1;
2262
+ seatNumbering?: Numbering$1;
2263
+ }
2264
+ declare enum ShapeTypeEnumType$1 {
2265
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
2266
+ TEXT = "TEXT",
2267
+ RECTANGLE = "RECTANGLE",
2268
+ ELLIPSE = "ELLIPSE",
2269
+ LINE = "LINE",
2270
+ ICON = "ICON",
2271
+ IMAGE = "IMAGE"
2272
+ }
2273
+ declare enum Position$1 {
2274
+ UNKNOWN_POSITION = "UNKNOWN_POSITION",
2275
+ LEFT = "LEFT",
2276
+ RIGHT = "RIGHT",
2277
+ BOTH = "BOTH",
2278
+ NONE = "NONE"
2279
+ }
2280
+ declare enum Icon$1 {
2281
+ UNKNOWN_ICON = "UNKNOWN_ICON",
2282
+ ENTER = "ENTER",
2283
+ EXIT = "EXIT",
2284
+ DRINKS = "DRINKS",
2285
+ WC = "WC",
2286
+ WC_MEN = "WC_MEN",
2287
+ WC_WOMEN = "WC_WOMEN",
2288
+ FOOD = "FOOD",
2289
+ STAIRS = "STAIRS",
2290
+ ELEVATOR = "ELEVATOR",
2291
+ SMOKING = "SMOKING",
2292
+ CHECKROOM = "CHECKROOM",
2293
+ STAGE = "STAGE"
2294
+ }
2295
+ interface Image$1 {
2296
+ /** WixMedia image ID. */
2297
+ id?: string;
2298
+ /**
2299
+ * Original image height.
2300
+ * @readonly
2301
+ */
2302
+ height?: number;
2303
+ /**
2304
+ * Original image width.
2305
+ * @readonly
2306
+ */
2307
+ width?: number;
2308
+ /**
2309
+ * WixMedia image URI.
2310
+ * @deprecated
2311
+ */
2312
+ uri?: string | null;
2313
+ }
2314
+ declare enum Numbering$1 {
2315
+ UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
2316
+ NUMERIC = "NUMERIC",
2317
+ ODD_EVEN = "ODD_EVEN",
2318
+ ALPHABETICAL = "ALPHABETICAL"
2319
+ }
2320
+ interface Category$1 {
2321
+ /** Local category id within the seating plan */
2322
+ id?: number;
2323
+ /**
2324
+ * A client defined external id for cross referencing.
2325
+ * Can reference external entities.
2326
+ * Format: "{entity_fqdn}:{entity_id}"
2327
+ */
2328
+ externalId?: string | null;
2329
+ /** Category label */
2330
+ title?: string;
2331
+ /**
2332
+ * Client configuration object
2333
+ * @readonly
2334
+ */
2335
+ config?: Record<string, any> | null;
2336
+ /**
2337
+ * Total capacity
2338
+ * @readonly
2339
+ */
2340
+ totalCapacity?: number | null;
2341
+ /**
2342
+ * Possible places
2343
+ * @readonly
2344
+ */
2345
+ places?: Place$1[];
2346
+ }
2347
+ interface ExtendedFields$1 {
2348
+ /**
2349
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
2350
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
2351
+ *
2352
+ * You can only access fields for which you have the appropriate permissions.
2353
+ *
2354
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
2355
+ */
2356
+ namespaces?: Record<string, Record<string, any>>;
2357
+ }
2358
+ interface SeatingPlanUiProperties$1 {
2359
+ /** #F0F0F0 */
2360
+ backgroundColor?: string | null;
2361
+ backgroundOpacity?: number | null;
2362
+ }
2363
+ interface SeatingReservationsSummary$1 {
2364
+ places?: PlaceReservationDetails$1[];
2365
+ }
2366
+ interface PlaceReservationDetails$1 {
2367
+ placeId?: string;
2368
+ occupied?: number;
2369
+ }
2370
+ interface CreateSeatingReservationResponseNonNullableFields$1 {
2371
+ reservation?: {
2372
+ reservedPlaces: {
2373
+ id: string;
2374
+ }[];
2375
+ };
2376
+ }
2377
+ interface GetReservationResponseNonNullableFields$1 {
2378
+ reservation?: {
2379
+ reservedPlaces: {
2380
+ id: string;
2381
+ }[];
2382
+ };
2383
+ }
2384
+ interface QuerySeatingReservationResponseNonNullableFields$1 {
2385
+ reservations: {
2386
+ reservedPlaces: {
2387
+ id: string;
2388
+ }[];
2389
+ }[];
2390
+ }
2391
+ interface DeleteSeatingReservationResponseNonNullableFields$1 {
2392
+ reservation?: {
2393
+ reservedPlaces: {
2394
+ id: string;
2395
+ }[];
2396
+ };
2397
+ }
2398
+ interface GetSeatingCategoriesSummaryResponseNonNullableFields$1 {
2399
+ categories: CategoryDetails$1[];
2400
+ }
2401
+ interface GetSeatingReservationsSummaryResponseNonNullableFields$1 {
2402
+ plan?: {
2403
+ sections: {
2404
+ id: number;
2405
+ elements: {
2406
+ id: number;
2407
+ type: Type$1;
2408
+ sequencing?: {
2409
+ startAt: string;
2410
+ labels: string[];
2411
+ };
2412
+ overrides: {
2413
+ index: number;
2414
+ label: string;
2415
+ elementType: Type$1;
2416
+ }[];
2417
+ places: {
2418
+ index: number;
2419
+ label: string;
2420
+ elementType: Type$1;
2421
+ }[];
2422
+ reservationOptions?: {
2423
+ reserveWholeElement: boolean;
2424
+ };
2425
+ uiProperties?: {
2426
+ shapeType: ShapeTypeEnumType$1;
2427
+ labelPosition: Position$1;
2428
+ seatLayout: number[];
2429
+ icon: Icon$1;
2430
+ image?: {
2431
+ id: string;
2432
+ height: number;
2433
+ width: number;
2434
+ };
2435
+ seatNumbering: Numbering$1;
2436
+ };
2437
+ multiRowProperties?: {
2438
+ rows: {
2439
+ id: number;
2440
+ sequencing?: {
2441
+ startAt: string;
2442
+ labels: string[];
2443
+ };
2444
+ uiProperties?: {
2445
+ labelPosition: Position$1;
2446
+ seatNumbering: Numbering$1;
2447
+ };
2448
+ }[];
2449
+ verticalSequencing?: {
2450
+ startAt: string;
2451
+ rowNumbering: Numbering$1;
2452
+ };
2453
+ };
2454
+ }[];
2455
+ default: boolean;
2456
+ }[];
2457
+ categories: {
2458
+ id: number;
2459
+ title: string;
2460
+ places: {
2461
+ index: number;
2462
+ label: string;
2463
+ elementType: Type$1;
2464
+ }[];
2465
+ }[];
2466
+ uncategorizedPlaces: {
2467
+ index: number;
2468
+ label: string;
2469
+ elementType: Type$1;
2470
+ }[];
2471
+ elementGroups: {
2472
+ id: number;
2473
+ }[];
2474
+ };
2475
+ seatingReservationsSummary?: {
2476
+ places: {
2477
+ placeId: string;
2478
+ occupied: number;
2479
+ }[];
2480
+ };
2481
+ }
2482
+
2483
+ interface SeatingReservation {
2484
+ /**
2485
+ * The id of the reservation
2486
+ * @readonly
2487
+ */
2488
+ _id?: string | null;
2489
+ /**
2490
+ * The seating plan id
2491
+ * @readonly
2492
+ */
2493
+ seatingPlanId?: string | null;
2494
+ /**
2495
+ * The external seating plan id
2496
+ * @readonly
2497
+ */
2498
+ externalSeatingPlanId?: string | null;
2499
+ /** Reserved places */
2500
+ reservedPlaces?: PlaceReservation[];
2501
+ /**
2502
+ * A client defined external id for cross referencing.
2503
+ * Can reference external entities.
2504
+ * Format: "{fqdn}:{entity guid}"
2505
+ */
2506
+ externalId?: string | null;
2507
+ }
2508
+ interface PlaceReservation {
2509
+ /** The place id. */
2510
+ _id?: string;
2511
+ /**
2512
+ * Number of places in the spot. If not provided - defaults to 1.
2513
+ * Used to reserve for more that one place in areas.
2514
+ */
2515
+ capacity?: number | null;
2516
+ /**
2517
+ * Optional section label.
2518
+ * @readonly
2519
+ */
2520
+ sectionLabel?: string | null;
2521
+ /**
2522
+ * Area label.
2523
+ * @readonly
2524
+ */
2525
+ areaLabel?: string | null;
2526
+ /**
2527
+ * Table label.
2528
+ * @readonly
2529
+ */
2530
+ tableLabel?: string | null;
2531
+ /**
2532
+ * Row label.
2533
+ * @readonly
2534
+ */
2535
+ rowLabel?: string | null;
2536
+ /**
2537
+ * Seat label in a row or table.
2538
+ * @readonly
2539
+ */
2540
+ seatLabel?: string | null;
2541
+ }
2542
+ interface CategoryDetails {
2543
+ /**
2544
+ * Seating plan id
2545
+ * @readonly
2546
+ */
2547
+ seatingPlanId?: string | null;
2548
+ /**
2549
+ * External seating plan id
2550
+ * @readonly
2551
+ */
2552
+ externalSeatingPlanId?: string | null;
2553
+ /**
2554
+ * External category id
2555
+ * @readonly
2556
+ */
2557
+ externalCategoryId?: string | null;
2558
+ /**
2559
+ * Total capacity in the category
2560
+ * @readonly
2561
+ */
2562
+ totalCapacity?: number | null;
2563
+ /**
2564
+ * Already reserved capacity
2565
+ * @readonly
2566
+ */
2567
+ reserved?: number | null;
2568
+ }
2569
+ interface CreateSeatingReservationRequest {
2570
+ /** A reservation to create */
2571
+ reservation?: SeatingReservation;
2572
+ }
2573
+ interface CreateSeatingReservationResponse {
2574
+ /** Created reservation */
2575
+ reservation?: SeatingReservation;
2576
+ }
2577
+ interface GetReservationRequest {
2578
+ /** The id of the reservation to return */
2579
+ _id: string | null;
2580
+ }
2581
+ interface GetReservationResponse {
2582
+ /** Created reservation */
2583
+ reservation?: SeatingReservation;
2584
+ }
2585
+ interface QuerySeatingReservationRequest {
2586
+ /** A query object */
2587
+ query: QueryV2;
2588
+ }
2589
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
2590
+ /** Paging options to limit and skip the number of items. */
2591
+ paging?: Paging;
2592
+ /** 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`. */
2593
+ cursorPaging?: CursorPaging;
2594
+ /**
2595
+ * Filter object in the following format:
2596
+ * `"filter" : {
2597
+ * "fieldName1": "value1",
2598
+ * "fieldName2":{"$operator":"value2"}
2599
+ * }`
2600
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2601
+ */
2602
+ filter?: Record<string, any> | null;
2603
+ /**
2604
+ * Sort object in the following format:
2605
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2606
+ */
2607
+ sort?: Sorting[];
2608
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
2609
+ fields?: string[];
2610
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
2611
+ fieldsets?: string[];
2612
+ }
2613
+ /** @oneof */
2614
+ interface QueryV2PagingMethodOneOf {
2615
+ /** Paging options to limit and skip the number of items. */
2616
+ paging?: Paging;
2617
+ /** 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`. */
2618
+ cursorPaging?: CursorPaging;
2619
+ }
2620
+ interface Sorting {
2621
+ /** Name of the field to sort by. */
2622
+ fieldName?: string;
2623
+ /** Sort order. */
2624
+ order?: SortOrder;
2625
+ }
2626
+ declare enum SortOrder {
2627
+ ASC = "ASC",
2628
+ DESC = "DESC"
2629
+ }
2630
+ interface Paging {
2631
+ /** Number of items to load. */
2632
+ limit?: number | null;
2633
+ /** Number of items to skip in the current sort order. */
2634
+ offset?: number | null;
2635
+ }
2636
+ interface CursorPaging {
2637
+ /** Maximum number of items to return in the results. */
2638
+ limit?: number | null;
2639
+ /**
2640
+ * Pointer to the next or previous page in the list of results.
2641
+ *
2642
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2643
+ * Not relevant for the first request.
2644
+ */
2645
+ cursor?: string | null;
2646
+ }
2647
+ interface QuerySeatingReservationResponse {
2648
+ /** Found reservations */
2649
+ reservations?: SeatingReservation[];
2650
+ /** Paging meta data */
2651
+ metadata?: PagingMetadataV2;
2652
+ }
2653
+ interface PagingMetadataV2 {
2654
+ /** Number of items returned in the response. */
2655
+ count?: number | null;
2656
+ /** Offset that was requested. */
2657
+ offset?: number | null;
2658
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
2659
+ total?: number | null;
2660
+ /** Flag that indicates the server failed to calculate the `total` field. */
2661
+ tooManyToCount?: boolean | null;
2662
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2663
+ cursors?: Cursors;
2664
+ }
2665
+ interface Cursors {
2666
+ /** Cursor string pointing to the next page in the list of results. */
2667
+ next?: string | null;
2668
+ /** Cursor pointing to the previous page in the list of results. */
2669
+ prev?: string | null;
2670
+ }
2671
+ interface DeleteSeatingReservationRequest {
2672
+ /** The id of the reservation to delete */
2673
+ _id: string | null;
2674
+ }
2675
+ interface DeleteSeatingReservationResponse {
2676
+ /** The deleted reservation */
2677
+ reservation?: SeatingReservation;
2678
+ }
2679
+ interface GetSeatingCategoriesSummaryRequest {
2680
+ /** Seating plan external id */
2681
+ externalId?: string[];
2682
+ }
2683
+ interface GetSeatingCategoriesSummaryResponse {
2684
+ /** Ticket counts by category */
2685
+ categories?: CategoryDetails[];
2686
+ }
2687
+ interface GetSeatingReservationsSummaryRequest {
2688
+ /** Filter for seating plan */
2689
+ filter: Record<string, any> | null;
2690
+ }
2691
+ interface GetSeatingReservationsSummaryResponse {
2692
+ plan?: SeatingPlan;
2693
+ seatingReservationsSummary?: SeatingReservationsSummary;
2694
+ }
2695
+ interface SeatingPlan {
2696
+ /**
2697
+ * Auto generated unique plan id
2698
+ * @readonly
2699
+ */
2700
+ _id?: string | null;
2701
+ /**
2702
+ * A client defined external id for cross referencing.
2703
+ * Can reference external entities.
2704
+ * Format: "{fqdn}:{entity guid}"
2705
+ */
2706
+ externalId?: string | null;
2707
+ /** Human friendly plan title */
2708
+ title?: string | null;
2709
+ /** Sections of the plan. Seating plan is divided in high level sections. */
2710
+ sections?: Section[];
2711
+ /** Categories for plan element grouping. */
2712
+ categories?: Category[];
2713
+ /**
2714
+ * Seating plan created timestamp.
2715
+ * @readonly
2716
+ */
2717
+ _createdDate?: Date;
2718
+ /**
2719
+ * Seating plan updated timestamp.
2720
+ * @readonly
2721
+ */
2722
+ _updatedDate?: Date;
2723
+ /**
2724
+ * Total capacity
2725
+ * @readonly
2726
+ */
2727
+ totalCapacity?: number | null;
2728
+ /**
2729
+ * Total categories
2730
+ * @readonly
2731
+ */
2732
+ totalCategories?: number | null;
2733
+ /**
2734
+ * Places not assigned to categories
2735
+ * @readonly
2736
+ */
2737
+ uncategorizedPlaces?: Place[];
2738
+ /**
2739
+ * A version of the seating plan
2740
+ * @readonly
2741
+ */
2742
+ version?: string | null;
2743
+ /** Data extensions */
2744
+ extendedFields?: ExtendedFields;
2745
+ /** Seating Plan UI settings */
2746
+ uiProperties?: SeatingPlanUiProperties;
2747
+ }
2748
+ interface Section {
2749
+ /** Unique section id */
2750
+ _id?: number;
2751
+ /** Human readable section title */
2752
+ title?: string | null;
2753
+ /**
2754
+ * Client configuration object
2755
+ * @readonly
2756
+ */
2757
+ config?: Record<string, any> | null;
2758
+ /** Elements of the section. */
2759
+ elements?: Element[];
2760
+ /**
2761
+ * Total capacity
2762
+ * @readonly
2763
+ */
2764
+ totalCapacity?: number | null;
2765
+ /**
2766
+ * Is default section
2767
+ * @readonly
2768
+ */
2769
+ default?: boolean;
2770
+ }
2771
+ interface Element {
2772
+ /** Unique element id */
2773
+ _id?: number;
2774
+ /** User friendly title/label of the element. */
2775
+ title?: string | null;
2776
+ /** Element type */
2777
+ type?: Type;
2778
+ /** Capacity. None for Shape type Element. */
2779
+ capacity?: number | null;
2780
+ /** Assigned to a category */
2781
+ categoryId?: number | null;
2782
+ /** A place numbering meta data */
2783
+ sequencing?: Sequencing;
2784
+ /**
2785
+ * Place override (by seq_id)
2786
+ * @deprecated
2787
+ */
2788
+ overrides?: Place[];
2789
+ /**
2790
+ * Final place sequence with overrides
2791
+ * @readonly
2792
+ */
2793
+ places?: Place[];
2794
+ /** Element reservation options */
2795
+ reservationOptions?: ReservationOptions;
2796
+ /** Element UI settings */
2797
+ uiProperties?: ElementUiProperties;
2798
+ }
2799
+ declare enum Type {
2800
+ AREA = "AREA",
2801
+ ROW = "ROW",
2802
+ MULTI_ROW = "MULTI_ROW",
2803
+ TABLE = "TABLE",
2804
+ ROUND_TABLE = "ROUND_TABLE",
2805
+ SHAPE = "SHAPE"
2806
+ }
2807
+ interface Sequencing {
2808
+ /** First seq element */
2809
+ startAt?: string;
2810
+ /** Finite generated seq of labels */
2811
+ labels?: string[];
2812
+ /** If true - direction right to left. Otherwise left to right. */
2813
+ reverseOrder?: boolean | null;
2814
+ }
2815
+ interface Place {
2816
+ /**
2817
+ * Local id of the place in the sequence
2818
+ * @deprecated
2819
+ * @removalDate 2024-07-01
2820
+ */
2821
+ index?: number;
2822
+ /**
2823
+ * Generated composite unique id in the seating plan.
2824
+ * @readonly
2825
+ */
2826
+ _id?: string | null;
2827
+ /** Unique label of the place */
2828
+ label?: string;
2829
+ /**
2830
+ * Max capacity per place
2831
+ * @readonly
2832
+ */
2833
+ capacity?: number | null;
2834
+ /**
2835
+ * Type of the parent element
2836
+ * @readonly
2837
+ */
2838
+ elementType?: Type;
2839
+ /**
2840
+ * Assigned category id
2841
+ * @readonly
2842
+ */
2843
+ categoryId?: number | null;
2844
+ }
2845
+ interface ReservationOptions {
2846
+ /** Indicates whether the entire element must be reserved */
2847
+ reserveWholeElement?: boolean;
2848
+ }
2849
+ interface ElementUiProperties {
2850
+ x?: number | null;
2851
+ y?: number | null;
2852
+ zIndex?: number | null;
2853
+ width?: number | null;
2854
+ height?: number | null;
2855
+ rotationAngle?: number | null;
2856
+ shapeType?: ShapeTypeEnumType;
2857
+ fontSize?: number | null;
2858
+ cornerRadius?: number | null;
2859
+ seatSpacing?: number | null;
2860
+ hideLabel?: boolean | null;
2861
+ labelPosition?: Position;
2862
+ seatLayout?: number[];
2863
+ emptyTopSeatSpaces?: number | null;
2864
+ /** needs research */
2865
+ text?: string | null;
2866
+ /** #F0F0F0 */
2867
+ color?: string | null;
2868
+ /** #F0F0F0 */
2869
+ fillColor?: string | null;
2870
+ /** #F0F0F0 */
2871
+ strokeColor?: string | null;
2872
+ /** px */
2873
+ strokeWidth?: number | null;
2874
+ opacity?: number | null;
2875
+ icon?: Icon;
2876
+ image?: Image;
2877
+ seatNumbering?: Numbering;
2878
+ }
2879
+ declare enum ShapeTypeEnumType {
2880
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
2881
+ TEXT = "TEXT",
2882
+ RECTANGLE = "RECTANGLE",
2883
+ ELLIPSE = "ELLIPSE",
2884
+ LINE = "LINE",
2885
+ ICON = "ICON",
2886
+ IMAGE = "IMAGE"
2887
+ }
2888
+ declare enum Position {
2889
+ UNKNOWN_POSITION = "UNKNOWN_POSITION",
2890
+ LEFT = "LEFT",
2891
+ RIGHT = "RIGHT",
2892
+ BOTH = "BOTH",
2893
+ NONE = "NONE"
2894
+ }
2895
+ declare enum Icon {
2896
+ UNKNOWN_ICON = "UNKNOWN_ICON",
2897
+ ENTER = "ENTER",
2898
+ EXIT = "EXIT",
2899
+ DRINKS = "DRINKS",
2900
+ WC = "WC",
2901
+ WC_MEN = "WC_MEN",
2902
+ WC_WOMEN = "WC_WOMEN",
2903
+ FOOD = "FOOD",
2904
+ STAIRS = "STAIRS",
2905
+ ELEVATOR = "ELEVATOR",
2906
+ SMOKING = "SMOKING",
2907
+ CHECKROOM = "CHECKROOM",
2908
+ STAGE = "STAGE"
2909
+ }
2910
+ interface Image {
2911
+ /** WixMedia image ID. */
2912
+ _id?: string;
2913
+ /**
2914
+ * Original image height.
2915
+ * @readonly
2916
+ */
2917
+ height?: number;
2918
+ /**
2919
+ * Original image width.
2920
+ * @readonly
2921
+ */
2922
+ width?: number;
2923
+ /**
2924
+ * WixMedia image URI.
2925
+ * @deprecated
2926
+ */
2927
+ uri?: string | null;
2928
+ }
2929
+ declare enum Numbering {
2930
+ UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
2931
+ NUMERIC = "NUMERIC",
2932
+ ODD_EVEN = "ODD_EVEN",
2933
+ ALPHABETICAL = "ALPHABETICAL"
2934
+ }
2935
+ interface Category {
2936
+ /** Local category id within the seating plan */
2937
+ _id?: number;
2938
+ /**
2939
+ * A client defined external id for cross referencing.
2940
+ * Can reference external entities.
2941
+ * Format: "{entity_fqdn}:{entity_id}"
2942
+ */
2943
+ externalId?: string | null;
2944
+ /** Category label */
2945
+ title?: string;
2946
+ /**
2947
+ * Client configuration object
2948
+ * @readonly
2949
+ */
2950
+ config?: Record<string, any> | null;
2951
+ /**
2952
+ * Total capacity
2953
+ * @readonly
2954
+ */
2955
+ totalCapacity?: number | null;
2956
+ /**
2957
+ * Possible places
2958
+ * @readonly
2959
+ */
2960
+ places?: Place[];
2961
+ }
2962
+ interface ExtendedFields {
2963
+ /**
2964
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
2965
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
2966
+ *
2967
+ * You can only access fields for which you have the appropriate permissions.
2968
+ *
2969
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
2970
+ */
2971
+ namespaces?: Record<string, Record<string, any>>;
2972
+ }
2973
+ interface SeatingPlanUiProperties {
2974
+ /** #F0F0F0 */
2975
+ backgroundColor?: string | null;
2976
+ backgroundOpacity?: number | null;
2977
+ }
2978
+ interface SeatingReservationsSummary {
2979
+ places?: PlaceReservationDetails[];
2980
+ }
2981
+ interface PlaceReservationDetails {
2982
+ placeId?: string;
2983
+ occupied?: number;
2984
+ }
2985
+ interface CreateSeatingReservationResponseNonNullableFields {
2986
+ reservation?: {
2987
+ reservedPlaces: {
2988
+ _id: string;
2989
+ }[];
2990
+ };
2991
+ }
2992
+ interface GetReservationResponseNonNullableFields {
2993
+ reservation?: {
2994
+ reservedPlaces: {
2995
+ _id: string;
2996
+ }[];
2997
+ };
2998
+ }
2999
+ interface QuerySeatingReservationResponseNonNullableFields {
3000
+ reservations: {
3001
+ reservedPlaces: {
3002
+ _id: string;
3003
+ }[];
3004
+ }[];
3005
+ }
3006
+ interface DeleteSeatingReservationResponseNonNullableFields {
3007
+ reservation?: {
3008
+ reservedPlaces: {
3009
+ _id: string;
3010
+ }[];
3011
+ };
3012
+ }
3013
+ interface GetSeatingCategoriesSummaryResponseNonNullableFields {
3014
+ categories: CategoryDetails[];
3015
+ }
3016
+ interface GetSeatingReservationsSummaryResponseNonNullableFields {
3017
+ plan?: {
3018
+ sections: {
3019
+ _id: number;
3020
+ elements: {
3021
+ _id: number;
3022
+ type: Type;
3023
+ sequencing?: {
3024
+ startAt: string;
3025
+ labels: string[];
3026
+ };
3027
+ overrides: {
3028
+ index: number;
3029
+ label: string;
3030
+ elementType: Type;
3031
+ }[];
3032
+ places: {
3033
+ index: number;
3034
+ label: string;
3035
+ elementType: Type;
3036
+ }[];
3037
+ reservationOptions?: {
3038
+ reserveWholeElement: boolean;
3039
+ };
3040
+ uiProperties?: {
3041
+ shapeType: ShapeTypeEnumType;
3042
+ labelPosition: Position;
3043
+ seatLayout: number[];
3044
+ icon: Icon;
3045
+ image?: {
3046
+ _id: string;
3047
+ height: number;
3048
+ width: number;
3049
+ };
3050
+ seatNumbering: Numbering;
3051
+ };
3052
+ }[];
3053
+ default: boolean;
3054
+ }[];
3055
+ categories: {
3056
+ _id: number;
3057
+ title: string;
3058
+ places: {
3059
+ index: number;
3060
+ label: string;
3061
+ elementType: Type;
3062
+ }[];
3063
+ }[];
3064
+ uncategorizedPlaces: {
3065
+ index: number;
3066
+ label: string;
3067
+ elementType: Type;
3068
+ }[];
3069
+ };
3070
+ seatingReservationsSummary?: {
3071
+ places: {
3072
+ placeId: string;
3073
+ occupied: number;
3074
+ }[];
3075
+ };
3076
+ }
3077
+
3078
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3079
+ getUrl: (context: any) => string;
3080
+ httpMethod: K;
3081
+ path: string;
3082
+ pathParams: M;
3083
+ __requestType: T;
3084
+ __originalRequestType: S;
3085
+ __responseType: Q;
3086
+ __originalResponseType: R;
3087
+ };
3088
+ declare function createSeatingReservation(): __PublicMethodMetaInfo<'POST', {}, CreateSeatingReservationRequest, CreateSeatingReservationRequest$1, CreateSeatingReservationResponse & CreateSeatingReservationResponseNonNullableFields, CreateSeatingReservationResponse$1 & CreateSeatingReservationResponseNonNullableFields$1>;
3089
+ declare function getReservation(): __PublicMethodMetaInfo<'GET', {
3090
+ id: string;
3091
+ }, GetReservationRequest, GetReservationRequest$1, GetReservationResponse & GetReservationResponseNonNullableFields, GetReservationResponse$1 & GetReservationResponseNonNullableFields$1>;
3092
+ declare function querySeatingReservation(): __PublicMethodMetaInfo<'POST', {}, QuerySeatingReservationRequest, QuerySeatingReservationRequest$1, QuerySeatingReservationResponse & QuerySeatingReservationResponseNonNullableFields, QuerySeatingReservationResponse$1 & QuerySeatingReservationResponseNonNullableFields$1>;
3093
+ declare function deleteSeatingReservation(): __PublicMethodMetaInfo<'DELETE', {
3094
+ id: string;
3095
+ }, DeleteSeatingReservationRequest, DeleteSeatingReservationRequest$1, DeleteSeatingReservationResponse & DeleteSeatingReservationResponseNonNullableFields, DeleteSeatingReservationResponse$1 & DeleteSeatingReservationResponseNonNullableFields$1>;
3096
+ declare function getSeatingCategoriesSummary(): __PublicMethodMetaInfo<'GET', {}, GetSeatingCategoriesSummaryRequest, GetSeatingCategoriesSummaryRequest$1, GetSeatingCategoriesSummaryResponse & GetSeatingCategoriesSummaryResponseNonNullableFields, GetSeatingCategoriesSummaryResponse$1 & GetSeatingCategoriesSummaryResponseNonNullableFields$1>;
3097
+ declare function getSeatingReservationsSummary(): __PublicMethodMetaInfo<'POST', {}, GetSeatingReservationsSummaryRequest, GetSeatingReservationsSummaryRequest$1, GetSeatingReservationsSummaryResponse & GetSeatingReservationsSummaryResponseNonNullableFields, GetSeatingReservationsSummaryResponse$1 & GetSeatingReservationsSummaryResponseNonNullableFields$1>;
3098
+
3099
+ type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
3100
+ declare const meta_createSeatingReservation: typeof createSeatingReservation;
3101
+ declare const meta_deleteSeatingReservation: typeof deleteSeatingReservation;
3102
+ declare const meta_getReservation: typeof getReservation;
3103
+ declare const meta_getSeatingCategoriesSummary: typeof getSeatingCategoriesSummary;
3104
+ declare const meta_getSeatingReservationsSummary: typeof getSeatingReservationsSummary;
3105
+ declare const meta_querySeatingReservation: typeof querySeatingReservation;
3106
+ declare namespace meta {
3107
+ export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_createSeatingReservation as createSeatingReservation, meta_deleteSeatingReservation as deleteSeatingReservation, meta_getReservation as getReservation, meta_getSeatingCategoriesSummary as getSeatingCategoriesSummary, meta_getSeatingReservationsSummary as getSeatingReservationsSummary, meta_querySeatingReservation as querySeatingReservation };
3108
+ }
3109
+
3110
+ export { meta$1 as seatingPlan, meta as seatingReservation };