@wix/seatings 1.0.10 → 1.0.12

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.
@@ -42,23 +42,1085 @@ declare global {
42
42
  }
43
43
  }
44
44
 
45
- declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
45
+ interface SeatingPlan$1 {
46
+ /**
47
+ * Auto generated unique plan id
48
+ * @readonly
49
+ */
50
+ _id?: string | null;
51
+ /**
52
+ * A client defined external id for cross referencing.
53
+ * Can reference external entities.
54
+ * Format: "{fqdn}:{entity guid}"
55
+ */
56
+ externalId?: string | null;
57
+ /** Human friendly plan title */
58
+ title?: string | null;
59
+ /** Sections of the plan. Seating plan is divided in high level sections. */
60
+ sections?: Section$1[];
61
+ /** Categories for plan element grouping. */
62
+ categories?: Category$1[];
63
+ /**
64
+ * Seating plan created timestamp.
65
+ * @readonly
66
+ */
67
+ _createdDate?: Date;
68
+ /**
69
+ * Seating plan updated timestamp.
70
+ * @readonly
71
+ */
72
+ _updatedDate?: Date;
73
+ /**
74
+ * Total capacity
75
+ * @readonly
76
+ */
77
+ totalCapacity?: number | null;
78
+ /**
79
+ * Total categories
80
+ * @readonly
81
+ */
82
+ totalCategories?: number | null;
83
+ /**
84
+ * Places not assigned to categories
85
+ * @readonly
86
+ */
87
+ uncategorizedPlaces?: Place$1[];
88
+ /**
89
+ * A version of the seating plan
90
+ * @readonly
91
+ */
92
+ version?: string | null;
93
+ /** Data extensions */
94
+ extendedFields?: ExtendedFields$1;
95
+ /** Seating Plan UI settings */
96
+ uiProperties?: SeatingPlanUiProperties$1;
97
+ }
98
+ interface Section$1 {
99
+ /** Unique section id */
100
+ _id?: number;
101
+ /** Human readable section title */
102
+ title?: string | null;
103
+ /**
104
+ * Client configuration object
105
+ * @readonly
106
+ */
107
+ config?: Record<string, any> | null;
108
+ /** Elements of the section. */
109
+ elements?: Element$1[];
110
+ /**
111
+ * Total capacity
112
+ * @readonly
113
+ */
114
+ totalCapacity?: number | null;
115
+ /**
116
+ * Is default section
117
+ * @readonly
118
+ */
119
+ default?: boolean;
120
+ }
121
+ interface Element$1 {
122
+ /** Unique element id */
123
+ _id?: number;
124
+ /** User friendly title/label of the element. */
125
+ title?: string | null;
126
+ /** Element type */
127
+ type?: Type$1;
128
+ /** Capacity. None for Shape type Element. */
129
+ capacity?: number | null;
130
+ /** Assigned to a category */
131
+ categoryId?: number | null;
132
+ /** A place numbering meta data */
133
+ sequencing?: Sequencing$1;
134
+ /**
135
+ * Place override (by seq_id)
136
+ * @deprecated
137
+ */
138
+ overrides?: Place$1[];
139
+ /**
140
+ * Final place sequence with overrides
141
+ * @readonly
142
+ */
143
+ places?: Place$1[];
144
+ /** Element reservation options */
145
+ reservationOptions?: ReservationOptions$1;
146
+ /** Element UI settings */
147
+ uiProperties?: ElementUiProperties$1;
148
+ }
149
+ declare enum Type$1 {
150
+ AREA = "AREA",
151
+ ROW = "ROW",
152
+ MULTI_ROW = "MULTI_ROW",
153
+ TABLE = "TABLE",
154
+ ROUND_TABLE = "ROUND_TABLE",
155
+ SHAPE = "SHAPE"
156
+ }
157
+ interface Sequencing$1 {
158
+ /** First seq element */
159
+ startAt?: string;
160
+ /** Finite generated seq of labels */
161
+ labels?: string[];
162
+ /** If true - direction right to left. Otherwise left to right. */
163
+ reverseOrder?: boolean | null;
164
+ }
165
+ interface Place$1 {
166
+ /** Local id of the place in the sequence */
167
+ index?: number;
168
+ /**
169
+ * Generated composite unique id in the seating plan.
170
+ * @readonly
171
+ */
172
+ _id?: string | null;
173
+ /** Unique label of the place */
174
+ label?: string;
175
+ /**
176
+ * Max capacity per place
177
+ * @readonly
178
+ */
179
+ capacity?: number | null;
180
+ /**
181
+ * Type of the parent element
182
+ * @readonly
183
+ */
184
+ elementType?: Type$1;
185
+ /**
186
+ * Assigned category id
187
+ * @readonly
188
+ */
189
+ categoryId?: number | null;
190
+ /** Place type */
191
+ type?: PlaceTypeEnumType$1;
192
+ }
193
+ declare enum PlaceTypeEnumType$1 {
194
+ UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
195
+ STANDARD = "STANDARD",
196
+ WHEELCHAIR = "WHEELCHAIR",
197
+ ACCESSIBLE = "ACCESSIBLE",
198
+ COMPANION = "COMPANION",
199
+ OBSTRUCTED = "OBSTRUCTED",
200
+ DISCOUNT = "DISCOUNT"
201
+ }
202
+ interface ReservationOptions$1 {
203
+ /** Indicates whether the entire element must be reserved */
204
+ reserveWholeElement?: boolean;
205
+ }
206
+ interface ElementUiProperties$1 {
207
+ x?: number | null;
208
+ y?: number | null;
209
+ zIndex?: number | null;
210
+ width?: number | null;
211
+ height?: number | null;
212
+ rotationAngle?: number | null;
213
+ shapeType?: ShapeTypeEnumType$1;
214
+ fontSize?: number | null;
215
+ cornerRadius?: number | null;
216
+ seatSpacing?: number | null;
217
+ hideLabel?: boolean | null;
218
+ labelPosition?: Position$1;
219
+ seatLayout?: number[];
220
+ emptyTopSeatSpaces?: number | null;
221
+ /** needs research */
222
+ text?: string | null;
223
+ /** #F0F0F0 */
224
+ color?: string | null;
225
+ /** #F0F0F0 */
226
+ fillColor?: string | null;
227
+ /** #F0F0F0 */
228
+ strokeColor?: string | null;
229
+ /** px */
230
+ strokeWidth?: number | null;
231
+ opacity?: number | null;
232
+ icon?: Icon$1;
233
+ image?: Image$1;
234
+ seatNumbering?: Numbering$1;
235
+ }
236
+ declare enum ShapeTypeEnumType$1 {
237
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
238
+ TEXT = "TEXT",
239
+ RECTANGLE = "RECTANGLE",
240
+ ELLIPSE = "ELLIPSE",
241
+ LINE = "LINE",
242
+ ICON = "ICON",
243
+ IMAGE = "IMAGE"
244
+ }
245
+ declare enum Position$1 {
246
+ UNKNOWN_POSITION = "UNKNOWN_POSITION",
247
+ LEFT = "LEFT",
248
+ RIGHT = "RIGHT",
249
+ BOTH = "BOTH",
250
+ NONE = "NONE"
251
+ }
252
+ declare enum Icon$1 {
253
+ UNKNOWN_ICON = "UNKNOWN_ICON",
254
+ ENTER = "ENTER",
255
+ EXIT = "EXIT",
256
+ DRINKS = "DRINKS",
257
+ WC = "WC",
258
+ WC_MEN = "WC_MEN",
259
+ WC_WOMEN = "WC_WOMEN",
260
+ FOOD = "FOOD",
261
+ STAIRS = "STAIRS",
262
+ ELEVATOR = "ELEVATOR",
263
+ SMOKING = "SMOKING",
264
+ CHECKROOM = "CHECKROOM",
265
+ STAGE = "STAGE"
266
+ }
267
+ interface Image$1 {
268
+ /** WixMedia image ID. */
269
+ _id?: string;
270
+ /**
271
+ * Original image height.
272
+ * @readonly
273
+ */
274
+ height?: number;
275
+ /**
276
+ * Original image width.
277
+ * @readonly
278
+ */
279
+ width?: number;
280
+ /**
281
+ * WixMedia image URI.
282
+ * @deprecated
283
+ */
284
+ uri?: string | null;
285
+ }
286
+ declare enum Numbering$1 {
287
+ UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
288
+ NUMERIC = "NUMERIC",
289
+ ODD_EVEN = "ODD_EVEN",
290
+ ALPHABETICAL = "ALPHABETICAL"
291
+ }
292
+ interface MultiRowProperties$1 {
293
+ /** Individual rows of the multi row element */
294
+ rows?: RowElement$1[];
295
+ /** Meta data for vertical labeling */
296
+ verticalSequencing?: VerticalSequencing$1;
297
+ /** Row spacing */
298
+ rowSpacing?: number | null;
299
+ }
300
+ interface RowElement$1 {
301
+ /** Unique row id */
302
+ _id?: number;
303
+ /** User friendly title/label of the row */
304
+ title?: string | null;
305
+ /** Row capacity */
306
+ capacity?: number | null;
307
+ /** Assigned to a category */
308
+ categoryId?: number | null;
309
+ /** A place numbering meta data for a single row */
310
+ sequencing?: Sequencing$1;
311
+ /** Row UI settings */
312
+ uiProperties?: RowElementUiProperties$1;
313
+ }
314
+ interface RowElementUiProperties$1 {
315
+ /** Relative x position to the parent element */
316
+ relativeX?: number | null;
317
+ /** Width of the row */
318
+ width?: number | null;
319
+ /** Seat spacing */
320
+ seatSpacing?: number | null;
321
+ /** Label position */
322
+ labelPosition?: Position$1;
323
+ /** Seat numbering */
324
+ seatNumbering?: Numbering$1;
325
+ }
326
+ interface VerticalSequencing$1 {
327
+ /** First seq element */
328
+ startAt?: string;
329
+ /** Row numbering */
330
+ rowNumbering?: Numbering$1;
331
+ /** If true - direction bottom to top. Otherwise top to bottom. */
332
+ reverseOrder?: boolean | null;
333
+ }
334
+ interface Category$1 {
335
+ /** Local category id within the seating plan */
336
+ _id?: number;
337
+ /**
338
+ * A client defined external id for cross referencing.
339
+ * Can reference external entities.
340
+ * Format: "{entity_fqdn}:{entity_id}"
341
+ */
342
+ externalId?: string | null;
343
+ /** Category label */
344
+ title?: string;
345
+ /**
346
+ * Client configuration object
347
+ * @readonly
348
+ */
349
+ config?: Record<string, any> | null;
350
+ /**
351
+ * Total capacity
352
+ * @readonly
353
+ */
354
+ totalCapacity?: number | null;
355
+ /**
356
+ * Possible places
357
+ * @readonly
358
+ */
359
+ places?: Place$1[];
360
+ }
361
+ interface ExtendedFields$1 {
362
+ /**
363
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
364
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
365
+ *
366
+ * You can only access fields for which you have the appropriate permissions.
367
+ *
368
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
369
+ */
370
+ namespaces?: Record<string, Record<string, any>>;
371
+ }
372
+ interface SeatingPlanUiProperties$1 {
373
+ /** #F0F0F0 */
374
+ backgroundColor?: string | null;
375
+ backgroundOpacity?: number | null;
376
+ }
377
+ interface ElementGroup$1 {
378
+ /** Unique element group id */
379
+ _id?: number;
380
+ /** Parent group id */
381
+ parentElementGroupId?: number | null;
382
+ /** Element group UI settings */
383
+ uiProperties?: ElementGroupUiProperties$1;
384
+ }
385
+ interface ElementGroupUiProperties$1 {
386
+ /** x position of the group */
387
+ x?: number | null;
388
+ /** y position of the group */
389
+ y?: number | null;
390
+ /** width of the group */
391
+ width?: number | null;
392
+ /** height of the group */
393
+ height?: number | null;
394
+ /** rotation angle of the group */
395
+ rotationAngle?: number | null;
396
+ }
397
+ interface CreateSeatingPlanRequest {
398
+ /** A plan to be created */
399
+ plan: SeatingPlan$1;
400
+ }
401
+ interface CreateSeatingPlanResponse {
402
+ /** The created plan */
403
+ plan?: SeatingPlan$1;
404
+ }
405
+ interface CapacityExceededViolation {
406
+ /** Max allowed capacity */
407
+ maxCapacity?: number;
408
+ /** Invalid capacity */
409
+ capacity?: number;
410
+ /** The element id */
411
+ elementId?: number | null;
412
+ }
413
+ interface UpdateSeatingPlanRequest {
414
+ /** The plan updates */
415
+ plan?: SeatingPlan$1;
416
+ }
417
+ interface UpdateSeatingPlanResponse {
418
+ /** The updated plan */
419
+ plan?: SeatingPlan$1;
420
+ }
421
+ interface CopySeatingPlanRequest {
422
+ /** The id of the plan to be copied */
423
+ _id: string | null;
424
+ /** New plan title */
425
+ title: string | null;
426
+ /** Format: "{fqdn}:{entity guid}" */
427
+ externalId: string | null;
428
+ }
429
+ interface CopySeatingPlanResponse {
430
+ /** The copied plan */
431
+ plan?: SeatingPlan$1;
432
+ }
433
+ interface QuerySeatingPlanRequest {
434
+ /**
435
+ * Generic query object
436
+ * Possible fieldsets: "elements", "categories", "places", "config".
437
+ */
438
+ query: QueryV2$1;
439
+ /** A fieldset for the response */
440
+ fieldset?: Fieldset[];
441
+ }
442
+ interface QueryV2$1 extends QueryV2PagingMethodOneOf$1 {
443
+ /** Paging options to limit and skip the number of items. */
444
+ paging?: Paging$1;
445
+ /** 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`. */
446
+ cursorPaging?: CursorPaging$1;
447
+ /**
448
+ * Filter object.
449
+ *
450
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
451
+ */
452
+ filter?: Record<string, any> | null;
453
+ /**
454
+ * Sort object.
455
+ *
456
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
457
+ */
458
+ sort?: Sorting$1[];
459
+ /** 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. */
460
+ fields?: string[];
461
+ /** 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. */
462
+ fieldsets?: string[];
463
+ }
464
+ /** @oneof */
465
+ interface QueryV2PagingMethodOneOf$1 {
466
+ /** Paging options to limit and skip the number of items. */
467
+ paging?: Paging$1;
468
+ /** 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`. */
469
+ cursorPaging?: CursorPaging$1;
470
+ }
471
+ interface Sorting$1 {
472
+ /** Name of the field to sort by. */
473
+ fieldName?: string;
474
+ /** Sort order. */
475
+ order?: SortOrder$1;
476
+ }
477
+ declare enum SortOrder$1 {
478
+ ASC = "ASC",
479
+ DESC = "DESC"
480
+ }
481
+ interface Paging$1 {
482
+ /** Number of items to load. */
483
+ limit?: number | null;
484
+ /** Number of items to skip in the current sort order. */
485
+ offset?: number | null;
486
+ }
487
+ interface CursorPaging$1 {
488
+ /** Maximum number of items to return in the results. */
489
+ limit?: number | null;
490
+ /**
491
+ * Pointer to the next or previous page in the list of results.
492
+ *
493
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
494
+ * Not relevant for the first request.
495
+ */
496
+ cursor?: string | null;
497
+ }
498
+ declare enum Fieldset {
499
+ ELEMENTS = "ELEMENTS",
500
+ CATEGORIES = "CATEGORIES",
501
+ PLACES = "PLACES",
502
+ CONFIG = "CONFIG",
503
+ ELEMENT_GROUPS = "ELEMENT_GROUPS"
504
+ }
505
+ interface QuerySeatingPlanResponse {
506
+ /** Plan results */
507
+ plans?: SeatingPlan$1[];
508
+ }
509
+ interface GetSeatingPlanRequest {
510
+ /** The id of the plan */
511
+ _id: string | null;
512
+ /**
513
+ * A fieldset for the response
514
+ * @deprecated
515
+ */
516
+ fieldset?: Fieldset[];
517
+ /**
518
+ * Projection on the result object - list of named projections.
519
+ * Possible values: "elements", "categories", "places", "config".
520
+ */
521
+ fieldsets?: string[];
522
+ /** Seating Plan Mask */
523
+ seatingPlanMask?: SeatingPlanMask;
524
+ }
525
+ interface SeatingPlanMask {
526
+ /** Filter seating plan by place ids */
527
+ placeId?: string[];
528
+ }
529
+ interface GetSeatingPlanResponse {
530
+ /** The plan */
531
+ plan?: SeatingPlan$1;
532
+ }
533
+ interface FindSeatingPlanRequest {
534
+ /** The filter of the plan */
535
+ filter: Record<string, any> | null;
536
+ /**
537
+ * A fieldset for the response
538
+ * @deprecated
539
+ */
540
+ fieldset?: Fieldset[];
541
+ /**
542
+ * Projection on the result object - list of named projections.
543
+ * Possible values: "elements", "categories", "places", "config".
544
+ */
545
+ fieldsets?: string[];
546
+ /** Seating Plan Mask */
547
+ seatingPlanMask?: SeatingPlanMask;
548
+ }
549
+ interface FindSeatingPlanResponse {
550
+ /** The plan */
551
+ plan?: SeatingPlan$1;
552
+ }
553
+ interface DeleteSeatingPlanRequest {
554
+ /** The id of the plan */
555
+ _id: string | null;
556
+ }
557
+ interface DeleteSeatingPlanResponse {
558
+ /** Deleted plan */
559
+ plan?: SeatingPlan$1;
560
+ }
561
+ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
562
+ createdEvent?: EntityCreatedEvent$1;
563
+ updatedEvent?: EntityUpdatedEvent$1;
564
+ deletedEvent?: EntityDeletedEvent$1;
565
+ actionEvent?: ActionEvent$1;
566
+ /**
567
+ * Unique event ID.
568
+ * Allows clients to ignore duplicate webhooks.
569
+ */
570
+ _id?: string;
571
+ /**
572
+ * Assumes actions are also always typed to an entity_type
573
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
574
+ */
575
+ entityFqdn?: string;
576
+ /**
577
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
578
+ * This is although the created/updated/deleted notion is duplication of the oneof types
579
+ * Example: created/updated/deleted/started/completed/email_opened
580
+ */
581
+ slug?: string;
582
+ /** ID of the entity associated with the event. */
583
+ entityId?: string;
584
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
585
+ eventTime?: Date;
586
+ /**
587
+ * Whether the event was triggered as a result of a privacy regulation application
588
+ * (for example, GDPR).
589
+ */
590
+ triggeredByAnonymizeRequest?: boolean | null;
591
+ /** If present, indicates the action that triggered the event. */
592
+ originatedFrom?: string | null;
593
+ /**
594
+ * A sequence number defining the order of updates to the underlying entity.
595
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
596
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
597
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
598
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
599
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
600
+ */
601
+ entityEventSequence?: string | null;
602
+ }
603
+ /** @oneof */
604
+ interface DomainEventBodyOneOf$1 {
605
+ createdEvent?: EntityCreatedEvent$1;
606
+ updatedEvent?: EntityUpdatedEvent$1;
607
+ deletedEvent?: EntityDeletedEvent$1;
608
+ actionEvent?: ActionEvent$1;
609
+ }
610
+ interface EntityCreatedEvent$1 {
611
+ entity?: string;
612
+ }
613
+ interface RestoreInfo$1 {
614
+ deletedDate?: Date;
615
+ }
616
+ interface EntityUpdatedEvent$1 {
617
+ /**
618
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
619
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
620
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
621
+ */
622
+ currentEntity?: string;
623
+ }
624
+ interface EntityDeletedEvent$1 {
625
+ /** Entity that was deleted */
626
+ deletedEntity?: string | null;
627
+ }
628
+ interface ActionEvent$1 {
629
+ body?: string;
630
+ }
631
+ interface MessageEnvelope$1 {
632
+ /** App instance ID. */
633
+ instanceId?: string | null;
634
+ /** Event type. */
635
+ eventType?: string;
636
+ /** The identification type and identity data. */
637
+ identity?: IdentificationData$1;
638
+ /** Stringify payload. */
639
+ data?: string;
640
+ }
641
+ interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
642
+ /** ID of a site visitor that has not logged in to the site. */
643
+ anonymousVisitorId?: string;
644
+ /** ID of a site visitor that has logged in to the site. */
645
+ memberId?: string;
646
+ /** ID of a Wix user (site owner, contributor, etc.). */
647
+ wixUserId?: string;
648
+ /** ID of an app. */
649
+ appId?: string;
650
+ /** @readonly */
651
+ identityType?: WebhookIdentityType$1;
652
+ }
653
+ /** @oneof */
654
+ interface IdentificationDataIdOneOf$1 {
655
+ /** ID of a site visitor that has not logged in to the site. */
656
+ anonymousVisitorId?: string;
657
+ /** ID of a site visitor that has logged in to the site. */
658
+ memberId?: string;
659
+ /** ID of a Wix user (site owner, contributor, etc.). */
660
+ wixUserId?: string;
661
+ /** ID of an app. */
662
+ appId?: string;
663
+ }
664
+ declare enum WebhookIdentityType$1 {
665
+ UNKNOWN = "UNKNOWN",
666
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
667
+ MEMBER = "MEMBER",
668
+ WIX_USER = "WIX_USER",
669
+ APP = "APP"
670
+ }
671
+ interface UpdateSeatingPlanThumbnailRequest {
672
+ thumbnail: SeatingPlanThumbnail;
673
+ }
674
+ interface SeatingPlanThumbnail {
675
+ /** @readonly */
676
+ _id?: string | null;
677
+ img?: string | null;
678
+ }
679
+ interface UpdateSeatingPlanThumbnailResponse {
680
+ thumbnail?: SeatingPlanThumbnail;
681
+ }
682
+ interface GetSeatingPlanThumbnailRequest {
683
+ /** @readonly */
684
+ _id: string | null;
685
+ }
686
+ interface GetSeatingPlanThumbnailResponse {
687
+ thumbnail?: SeatingPlanThumbnail;
688
+ }
689
+ interface SaveSeatingPlanVersionRequest {
690
+ /** A plan version to be saved */
691
+ plan?: SeatingPlan$1;
692
+ /**
693
+ * Parent version of the plan.
694
+ * Use this field to override history of plan versions.
695
+ * The next version of the plan will still be latest version +1,
696
+ * but intermediate versions will be removed. Example:
697
+ * Existing versions [1, 2, 3, 4, 5].
698
+ * Save request with parent_version 2 will yield versions [1, 2, 6].
699
+ */
700
+ parentVersion?: string | null;
701
+ }
702
+ interface SaveSeatingPlanVersionResponse {
703
+ /** Updated plan version */
704
+ plan?: SeatingPlan$1;
705
+ }
706
+ interface QuerySeatingPlanVersionsRequest {
707
+ /**
708
+ * Generic query object
709
+ * Possible fieldsets: "elements", "categories", "places", "config".
710
+ */
711
+ query?: QueryV2$1;
712
+ }
713
+ interface QuerySeatingPlanVersionsResponse {
714
+ /** Plan results */
715
+ plans?: SeatingPlan$1[];
716
+ /** Paging meta data */
717
+ metadata?: PagingMetadataV2$1;
718
+ }
719
+ interface PagingMetadataV2$1 {
720
+ /** Number of items returned in the response. */
721
+ count?: number | null;
722
+ /** Offset that was requested. */
723
+ offset?: number | null;
724
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
725
+ total?: number | null;
726
+ /** Flag that indicates the server failed to calculate the `total` field. */
727
+ tooManyToCount?: boolean | null;
728
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
729
+ cursors?: Cursors$1;
730
+ }
731
+ interface Cursors$1 {
732
+ /** Cursor string pointing to the next page in the list of results. */
733
+ next?: string | null;
734
+ /** Cursor pointing to the previous page in the list of results. */
735
+ prev?: string | null;
736
+ }
737
+ interface DiscardSeatingPlanVersionsRequest {
738
+ /** Seating Plan ID */
739
+ seatingPlanId?: string | null;
740
+ /** Version from which all higher versions will be discarded. */
741
+ version?: string | null;
742
+ }
743
+ interface DiscardSeatingPlanVersionsResponse {
744
+ }
745
+ interface RestoreSeatingPlanRequest {
746
+ /** Seating Plan ID */
747
+ seatingPlanId?: string | null;
748
+ /** Version to witch the seating plan should be restored. */
749
+ version?: string | null;
750
+ }
751
+ interface RestoreSeatingPlanResponse {
752
+ /** Seating Plan */
753
+ plan?: SeatingPlan$1;
754
+ }
755
+ interface SequencingNonNullableFields$1 {
756
+ startAt: string;
757
+ labels: string[];
758
+ }
759
+ interface PlaceNonNullableFields$1 {
760
+ index: number;
761
+ label: string;
762
+ elementType: Type$1;
763
+ type: PlaceTypeEnumType$1;
764
+ }
765
+ interface ReservationOptionsNonNullableFields$1 {
766
+ reserveWholeElement: boolean;
767
+ }
768
+ interface ImageNonNullableFields$1 {
769
+ _id: string;
770
+ height: number;
771
+ width: number;
772
+ }
773
+ interface ElementUiPropertiesNonNullableFields$1 {
774
+ shapeType: ShapeTypeEnumType$1;
775
+ labelPosition: Position$1;
776
+ seatLayout: number[];
777
+ icon: Icon$1;
778
+ image?: ImageNonNullableFields$1;
779
+ seatNumbering: Numbering$1;
780
+ }
781
+ interface RowElementUiPropertiesNonNullableFields$1 {
782
+ labelPosition: Position$1;
783
+ seatNumbering: Numbering$1;
784
+ }
785
+ interface RowElementNonNullableFields$1 {
786
+ _id: number;
787
+ sequencing?: SequencingNonNullableFields$1;
788
+ uiProperties?: RowElementUiPropertiesNonNullableFields$1;
789
+ }
790
+ interface VerticalSequencingNonNullableFields$1 {
791
+ startAt: string;
792
+ rowNumbering: Numbering$1;
793
+ }
794
+ interface MultiRowPropertiesNonNullableFields$1 {
795
+ rows: RowElementNonNullableFields$1[];
796
+ verticalSequencing?: VerticalSequencingNonNullableFields$1;
797
+ }
798
+ interface ElementNonNullableFields$1 {
799
+ _id: number;
800
+ type: Type$1;
801
+ sequencing?: SequencingNonNullableFields$1;
802
+ overrides: PlaceNonNullableFields$1[];
803
+ places: PlaceNonNullableFields$1[];
804
+ reservationOptions?: ReservationOptionsNonNullableFields$1;
805
+ uiProperties?: ElementUiPropertiesNonNullableFields$1;
806
+ multiRowProperties?: MultiRowPropertiesNonNullableFields$1;
807
+ }
808
+ interface SectionNonNullableFields$1 {
809
+ _id: number;
810
+ elements: ElementNonNullableFields$1[];
811
+ default: boolean;
812
+ }
813
+ interface CategoryNonNullableFields$1 {
814
+ _id: number;
815
+ title: string;
816
+ places: PlaceNonNullableFields$1[];
817
+ }
818
+ interface ElementGroupNonNullableFields$1 {
819
+ _id: number;
820
+ }
821
+ interface SeatingPlanNonNullableFields$1 {
822
+ sections: SectionNonNullableFields$1[];
823
+ categories: CategoryNonNullableFields$1[];
824
+ uncategorizedPlaces: PlaceNonNullableFields$1[];
825
+ elementGroups: ElementGroupNonNullableFields$1[];
826
+ }
827
+ interface CreateSeatingPlanResponseNonNullableFields {
828
+ plan?: SeatingPlanNonNullableFields$1;
829
+ }
830
+ interface UpdateSeatingPlanResponseNonNullableFields {
831
+ plan?: SeatingPlanNonNullableFields$1;
832
+ }
833
+ interface CopySeatingPlanResponseNonNullableFields {
834
+ plan?: SeatingPlanNonNullableFields$1;
835
+ }
836
+ interface QuerySeatingPlanResponseNonNullableFields {
837
+ plans: SeatingPlanNonNullableFields$1[];
838
+ }
839
+ interface GetSeatingPlanResponseNonNullableFields {
840
+ plan?: SeatingPlanNonNullableFields$1;
841
+ }
842
+ interface FindSeatingPlanResponseNonNullableFields {
843
+ plan?: SeatingPlanNonNullableFields$1;
844
+ }
845
+ interface DeleteSeatingPlanResponseNonNullableFields {
846
+ plan?: SeatingPlanNonNullableFields$1;
847
+ }
848
+ interface BaseEventMetadata$1 {
849
+ /** App instance ID. */
850
+ instanceId?: string | null;
851
+ /** Event type. */
852
+ eventType?: string;
853
+ /** The identification type and identity data. */
854
+ identity?: IdentificationData$1;
855
+ }
856
+ interface EventMetadata$1 extends BaseEventMetadata$1 {
857
+ /**
858
+ * Unique event ID.
859
+ * Allows clients to ignore duplicate webhooks.
860
+ */
861
+ _id?: string;
862
+ /**
863
+ * Assumes actions are also always typed to an entity_type
864
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
865
+ */
866
+ entityFqdn?: string;
867
+ /**
868
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
869
+ * This is although the created/updated/deleted notion is duplication of the oneof types
870
+ * Example: created/updated/deleted/started/completed/email_opened
871
+ */
872
+ slug?: string;
873
+ /** ID of the entity associated with the event. */
874
+ entityId?: string;
875
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
876
+ eventTime?: Date;
877
+ /**
878
+ * Whether the event was triggered as a result of a privacy regulation application
879
+ * (for example, GDPR).
880
+ */
881
+ triggeredByAnonymizeRequest?: boolean | null;
882
+ /** If present, indicates the action that triggered the event. */
883
+ originatedFrom?: string | null;
884
+ /**
885
+ * A sequence number defining the order of updates to the underlying entity.
886
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
887
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
888
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
889
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
890
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
891
+ */
892
+ entityEventSequence?: string | null;
893
+ }
894
+ interface SeatingPlanCreatedEnvelope {
895
+ entity: SeatingPlan$1;
896
+ metadata: EventMetadata$1;
897
+ }
898
+ interface SeatingPlanUpdatedEnvelope {
899
+ entity: SeatingPlan$1;
900
+ metadata: EventMetadata$1;
901
+ }
902
+ interface SeatingPlanDeletedEnvelope {
903
+ entity: SeatingPlan$1;
904
+ metadata: EventMetadata$1;
905
+ }
906
+ interface UpdateSeatingPlanOptions {
907
+ /** The plan updates */
908
+ plan?: SeatingPlan$1;
909
+ }
910
+ interface CopySeatingPlanOptions {
911
+ /** New plan title */
912
+ title: string | null;
913
+ /** Format: "{fqdn}:{entity guid}" */
914
+ externalId: string | null;
915
+ }
916
+ interface QuerySeatingPlanOptions {
917
+ /** A fieldset for the response */
918
+ fieldset?: Fieldset[] | undefined;
919
+ }
920
+ interface QueryCursorResult$1 {
921
+ cursors: Cursors$1;
922
+ hasNext: () => boolean;
923
+ hasPrev: () => boolean;
924
+ length: number;
925
+ pageSize: number;
926
+ }
927
+ interface PlansQueryResult extends QueryCursorResult$1 {
928
+ items: SeatingPlan$1[];
929
+ query: PlansQueryBuilder;
930
+ next: () => Promise<PlansQueryResult>;
931
+ prev: () => Promise<PlansQueryResult>;
932
+ }
933
+ interface PlansQueryBuilder {
934
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
935
+ * @documentationMaturity preview
936
+ */
937
+ limit: (limit: number) => PlansQueryBuilder;
938
+ /** @param cursor - A pointer to specific record
939
+ * @documentationMaturity preview
940
+ */
941
+ skipTo: (cursor: string) => PlansQueryBuilder;
942
+ /** @documentationMaturity preview */
943
+ find: () => Promise<PlansQueryResult>;
944
+ }
945
+ interface GetSeatingPlanOptions {
946
+ /**
947
+ * A fieldset for the response
948
+ * @deprecated
949
+ */
950
+ fieldset?: Fieldset[];
951
+ /**
952
+ * Projection on the result object - list of named projections.
953
+ * Possible values: "elements", "categories", "places", "config".
954
+ */
955
+ fieldsets?: string[];
956
+ /** Seating Plan Mask */
957
+ seatingPlanMask?: SeatingPlanMask;
958
+ }
959
+ interface FindSeatingPlanOptions {
960
+ /**
961
+ * A fieldset for the response
962
+ * @deprecated
963
+ */
964
+ fieldset?: Fieldset[];
965
+ /**
966
+ * Projection on the result object - list of named projections.
967
+ * Possible values: "elements", "categories", "places", "config".
968
+ */
969
+ fieldsets?: string[];
970
+ /** Seating Plan Mask */
971
+ seatingPlanMask?: SeatingPlanMask;
972
+ }
973
+
974
+ declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
975
+ interface CreateSeatingPlanSignature {
976
+ /**
977
+ * Crates a seating plan
978
+ * @param - A plan to be created
979
+ * @returns The created plan
980
+ */
981
+ (plan: SeatingPlan$1): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
982
+ }
983
+ declare function updateSeatingPlan$1(httpClient: HttpClient): UpdateSeatingPlanSignature;
984
+ interface UpdateSeatingPlanSignature {
985
+ /**
986
+ * Updates the seating plan
987
+ * @returns The updated plan
988
+ */
989
+ (options?: UpdateSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
990
+ }
991
+ declare function copySeatingPlan$1(httpClient: HttpClient): CopySeatingPlanSignature;
992
+ interface CopySeatingPlanSignature {
993
+ /**
994
+ * Copies the seating plan
995
+ * @param - The id of the plan to be copied
996
+ */
997
+ (_id: string | null, options: CopySeatingPlanOptions): Promise<CopySeatingPlanResponse & CopySeatingPlanResponseNonNullableFields>;
998
+ }
999
+ declare function querySeatingPlan$1(httpClient: HttpClient): QuerySeatingPlanSignature;
1000
+ interface QuerySeatingPlanSignature {
1001
+ /**
1002
+ * Lists seating plans by provided query request
1003
+ */
1004
+ (options?: QuerySeatingPlanOptions | undefined): PlansQueryBuilder;
1005
+ }
1006
+ declare function getSeatingPlan$1(httpClient: HttpClient): GetSeatingPlanSignature;
1007
+ interface GetSeatingPlanSignature {
1008
+ /**
1009
+ * Returns the seating plan. Fails of not fond.
1010
+ * @param - The id of the plan
1011
+ * @returns The plan
1012
+ */
1013
+ (_id: string | null, options?: GetSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
1014
+ }
1015
+ declare function findSeatingPlan$1(httpClient: HttpClient): FindSeatingPlanSignature;
1016
+ interface FindSeatingPlanSignature {
1017
+ /**
1018
+ * Returns the first seating plan found by filter request.
1019
+ * @param - The filter of the plan
1020
+ */
1021
+ (filter: Record<string, any> | null, options?: FindSeatingPlanOptions | undefined): Promise<FindSeatingPlanResponse & FindSeatingPlanResponseNonNullableFields>;
1022
+ }
1023
+ declare function deleteSeatingPlan$1(httpClient: HttpClient): DeleteSeatingPlanSignature;
1024
+ interface DeleteSeatingPlanSignature {
1025
+ /**
1026
+ * Deletes the seating plan.
1027
+ * @param - The id of the plan
1028
+ */
1029
+ (_id: string | null): Promise<DeleteSeatingPlanResponse & DeleteSeatingPlanResponseNonNullableFields>;
1030
+ }
1031
+ declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient): UpdateSeatingPlanThumbnailSignature;
1032
+ interface UpdateSeatingPlanThumbnailSignature {
1033
+ /**
1034
+ * Updates seating plan thumbnail.
1035
+ */
1036
+ (thumbnail: SeatingPlanThumbnail): Promise<UpdateSeatingPlanThumbnailResponse>;
1037
+ }
1038
+ declare function getSeatingPlanThumbnail$1(httpClient: HttpClient): GetSeatingPlanThumbnailSignature;
1039
+ interface GetSeatingPlanThumbnailSignature {
1040
+ /**
1041
+ * Get seating plan thumbnail.
1042
+ */
1043
+ (_id: string | null): Promise<GetSeatingPlanThumbnailResponse>;
1044
+ }
1045
+ declare const onSeatingPlanCreated$1: EventDefinition<SeatingPlanCreatedEnvelope, "wix.seating.v1.seating_plan_created">;
1046
+ declare const onSeatingPlanUpdated$1: EventDefinition<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
1047
+ declare const onSeatingPlanDeleted$1: EventDefinition<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
46
1048
 
47
1049
  declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
48
1050
 
49
- declare const createSeatingPlan: ReturnType<typeof createRESTModule$1<typeof publicCreateSeatingPlan>>;
50
- declare const updateSeatingPlan: ReturnType<typeof createRESTModule$1<typeof publicUpdateSeatingPlan>>;
51
- declare const copySeatingPlan: ReturnType<typeof createRESTModule$1<typeof publicCopySeatingPlan>>;
52
- declare const querySeatingPlan: ReturnType<typeof createRESTModule$1<typeof publicQuerySeatingPlan>>;
53
- declare const getSeatingPlan: ReturnType<typeof createRESTModule$1<typeof publicGetSeatingPlan>>;
54
- declare const findSeatingPlan: ReturnType<typeof createRESTModule$1<typeof publicFindSeatingPlan>>;
55
- declare const deleteSeatingPlan: ReturnType<typeof createRESTModule$1<typeof publicDeleteSeatingPlan>>;
56
- declare const updateSeatingPlanThumbnail: ReturnType<typeof createRESTModule$1<typeof publicUpdateSeatingPlanThumbnail>>;
57
- declare const getSeatingPlanThumbnail: ReturnType<typeof createRESTModule$1<typeof publicGetSeatingPlanThumbnail>>;
58
- declare const onSeatingPlanCreated: ReturnType<typeof createEventModule$1<typeof publicOnSeatingPlanCreated>>;
59
- declare const onSeatingPlanUpdated: ReturnType<typeof createEventModule$1<typeof publicOnSeatingPlanUpdated>>;
60
- declare const onSeatingPlanDeleted: ReturnType<typeof createEventModule$1<typeof publicOnSeatingPlanDeleted>>;
1051
+ declare const createSeatingPlan: BuildRESTFunction<typeof createSeatingPlan$1> & typeof createSeatingPlan$1;
1052
+ declare const updateSeatingPlan: BuildRESTFunction<typeof updateSeatingPlan$1> & typeof updateSeatingPlan$1;
1053
+ declare const copySeatingPlan: BuildRESTFunction<typeof copySeatingPlan$1> & typeof copySeatingPlan$1;
1054
+ declare const querySeatingPlan: BuildRESTFunction<typeof querySeatingPlan$1> & typeof querySeatingPlan$1;
1055
+ declare const getSeatingPlan: BuildRESTFunction<typeof getSeatingPlan$1> & typeof getSeatingPlan$1;
1056
+ declare const findSeatingPlan: BuildRESTFunction<typeof findSeatingPlan$1> & typeof findSeatingPlan$1;
1057
+ declare const deleteSeatingPlan: BuildRESTFunction<typeof deleteSeatingPlan$1> & typeof deleteSeatingPlan$1;
1058
+ declare const updateSeatingPlanThumbnail: BuildRESTFunction<typeof updateSeatingPlanThumbnail$1> & typeof updateSeatingPlanThumbnail$1;
1059
+ declare const getSeatingPlanThumbnail: BuildRESTFunction<typeof getSeatingPlanThumbnail$1> & typeof getSeatingPlanThumbnail$1;
1060
+
1061
+ type _publicOnSeatingPlanCreatedType = typeof onSeatingPlanCreated$1;
1062
+ /** */
1063
+ declare const onSeatingPlanCreated: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanCreatedType>>;
1064
+
1065
+ type _publicOnSeatingPlanUpdatedType = typeof onSeatingPlanUpdated$1;
1066
+ /** */
1067
+ declare const onSeatingPlanUpdated: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanUpdatedType>>;
61
1068
 
1069
+ type _publicOnSeatingPlanDeletedType = typeof onSeatingPlanDeleted$1;
1070
+ /** */
1071
+ declare const onSeatingPlanDeleted: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanDeletedType>>;
1072
+
1073
+ type context$1_CapacityExceededViolation = CapacityExceededViolation;
1074
+ type context$1_CopySeatingPlanOptions = CopySeatingPlanOptions;
1075
+ type context$1_CopySeatingPlanRequest = CopySeatingPlanRequest;
1076
+ type context$1_CopySeatingPlanResponse = CopySeatingPlanResponse;
1077
+ type context$1_CopySeatingPlanResponseNonNullableFields = CopySeatingPlanResponseNonNullableFields;
1078
+ type context$1_CreateSeatingPlanRequest = CreateSeatingPlanRequest;
1079
+ type context$1_CreateSeatingPlanResponse = CreateSeatingPlanResponse;
1080
+ type context$1_CreateSeatingPlanResponseNonNullableFields = CreateSeatingPlanResponseNonNullableFields;
1081
+ type context$1_DeleteSeatingPlanRequest = DeleteSeatingPlanRequest;
1082
+ type context$1_DeleteSeatingPlanResponse = DeleteSeatingPlanResponse;
1083
+ type context$1_DeleteSeatingPlanResponseNonNullableFields = DeleteSeatingPlanResponseNonNullableFields;
1084
+ type context$1_DiscardSeatingPlanVersionsRequest = DiscardSeatingPlanVersionsRequest;
1085
+ type context$1_DiscardSeatingPlanVersionsResponse = DiscardSeatingPlanVersionsResponse;
1086
+ type context$1_Fieldset = Fieldset;
1087
+ declare const context$1_Fieldset: typeof Fieldset;
1088
+ type context$1_FindSeatingPlanOptions = FindSeatingPlanOptions;
1089
+ type context$1_FindSeatingPlanRequest = FindSeatingPlanRequest;
1090
+ type context$1_FindSeatingPlanResponse = FindSeatingPlanResponse;
1091
+ type context$1_FindSeatingPlanResponseNonNullableFields = FindSeatingPlanResponseNonNullableFields;
1092
+ type context$1_GetSeatingPlanOptions = GetSeatingPlanOptions;
1093
+ type context$1_GetSeatingPlanRequest = GetSeatingPlanRequest;
1094
+ type context$1_GetSeatingPlanResponse = GetSeatingPlanResponse;
1095
+ type context$1_GetSeatingPlanResponseNonNullableFields = GetSeatingPlanResponseNonNullableFields;
1096
+ type context$1_GetSeatingPlanThumbnailRequest = GetSeatingPlanThumbnailRequest;
1097
+ type context$1_GetSeatingPlanThumbnailResponse = GetSeatingPlanThumbnailResponse;
1098
+ type context$1_PlansQueryBuilder = PlansQueryBuilder;
1099
+ type context$1_PlansQueryResult = PlansQueryResult;
1100
+ type context$1_QuerySeatingPlanOptions = QuerySeatingPlanOptions;
1101
+ type context$1_QuerySeatingPlanRequest = QuerySeatingPlanRequest;
1102
+ type context$1_QuerySeatingPlanResponse = QuerySeatingPlanResponse;
1103
+ type context$1_QuerySeatingPlanResponseNonNullableFields = QuerySeatingPlanResponseNonNullableFields;
1104
+ type context$1_QuerySeatingPlanVersionsRequest = QuerySeatingPlanVersionsRequest;
1105
+ type context$1_QuerySeatingPlanVersionsResponse = QuerySeatingPlanVersionsResponse;
1106
+ type context$1_RestoreSeatingPlanRequest = RestoreSeatingPlanRequest;
1107
+ type context$1_RestoreSeatingPlanResponse = RestoreSeatingPlanResponse;
1108
+ type context$1_SaveSeatingPlanVersionRequest = SaveSeatingPlanVersionRequest;
1109
+ type context$1_SaveSeatingPlanVersionResponse = SaveSeatingPlanVersionResponse;
1110
+ type context$1_SeatingPlanCreatedEnvelope = SeatingPlanCreatedEnvelope;
1111
+ type context$1_SeatingPlanDeletedEnvelope = SeatingPlanDeletedEnvelope;
1112
+ type context$1_SeatingPlanMask = SeatingPlanMask;
1113
+ type context$1_SeatingPlanThumbnail = SeatingPlanThumbnail;
1114
+ type context$1_SeatingPlanUpdatedEnvelope = SeatingPlanUpdatedEnvelope;
1115
+ type context$1_UpdateSeatingPlanOptions = UpdateSeatingPlanOptions;
1116
+ type context$1_UpdateSeatingPlanRequest = UpdateSeatingPlanRequest;
1117
+ type context$1_UpdateSeatingPlanResponse = UpdateSeatingPlanResponse;
1118
+ type context$1_UpdateSeatingPlanResponseNonNullableFields = UpdateSeatingPlanResponseNonNullableFields;
1119
+ type context$1_UpdateSeatingPlanThumbnailRequest = UpdateSeatingPlanThumbnailRequest;
1120
+ type context$1_UpdateSeatingPlanThumbnailResponse = UpdateSeatingPlanThumbnailResponse;
1121
+ type context$1__publicOnSeatingPlanCreatedType = _publicOnSeatingPlanCreatedType;
1122
+ type context$1__publicOnSeatingPlanDeletedType = _publicOnSeatingPlanDeletedType;
1123
+ type context$1__publicOnSeatingPlanUpdatedType = _publicOnSeatingPlanUpdatedType;
62
1124
  declare const context$1_copySeatingPlan: typeof copySeatingPlan;
63
1125
  declare const context$1_createSeatingPlan: typeof createSeatingPlan;
64
1126
  declare const context$1_deleteSeatingPlan: typeof deleteSeatingPlan;
@@ -72,22 +1134,1150 @@ declare const context$1_querySeatingPlan: typeof querySeatingPlan;
72
1134
  declare const context$1_updateSeatingPlan: typeof updateSeatingPlan;
73
1135
  declare const context$1_updateSeatingPlanThumbnail: typeof updateSeatingPlanThumbnail;
74
1136
  declare namespace context$1 {
75
- export { context$1_copySeatingPlan as copySeatingPlan, context$1_createSeatingPlan as createSeatingPlan, context$1_deleteSeatingPlan as deleteSeatingPlan, context$1_findSeatingPlan as findSeatingPlan, context$1_getSeatingPlan as getSeatingPlan, context$1_getSeatingPlanThumbnail as getSeatingPlanThumbnail, context$1_onSeatingPlanCreated as onSeatingPlanCreated, context$1_onSeatingPlanDeleted as onSeatingPlanDeleted, context$1_onSeatingPlanUpdated as onSeatingPlanUpdated, context$1_querySeatingPlan as querySeatingPlan, context$1_updateSeatingPlan as updateSeatingPlan, context$1_updateSeatingPlanThumbnail as updateSeatingPlanThumbnail };
1137
+ export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CapacityExceededViolation as CapacityExceededViolation, type Category$1 as Category, type context$1_CopySeatingPlanOptions as CopySeatingPlanOptions, type context$1_CopySeatingPlanRequest as CopySeatingPlanRequest, type context$1_CopySeatingPlanResponse as CopySeatingPlanResponse, type context$1_CopySeatingPlanResponseNonNullableFields as CopySeatingPlanResponseNonNullableFields, type context$1_CreateSeatingPlanRequest as CreateSeatingPlanRequest, type context$1_CreateSeatingPlanResponse as CreateSeatingPlanResponse, type context$1_CreateSeatingPlanResponseNonNullableFields as CreateSeatingPlanResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type context$1_DeleteSeatingPlanRequest as DeleteSeatingPlanRequest, type context$1_DeleteSeatingPlanResponse as DeleteSeatingPlanResponse, type context$1_DeleteSeatingPlanResponseNonNullableFields as DeleteSeatingPlanResponseNonNullableFields, type context$1_DiscardSeatingPlanVersionsRequest as DiscardSeatingPlanVersionsRequest, type context$1_DiscardSeatingPlanVersionsResponse as DiscardSeatingPlanVersionsResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Element$1 as Element, type ElementGroup$1 as ElementGroup, type ElementGroupUiProperties$1 as ElementGroupUiProperties, type ElementUiProperties$1 as ElementUiProperties, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type ExtendedFields$1 as ExtendedFields, context$1_Fieldset as Fieldset, type context$1_FindSeatingPlanOptions as FindSeatingPlanOptions, type context$1_FindSeatingPlanRequest as FindSeatingPlanRequest, type context$1_FindSeatingPlanResponse as FindSeatingPlanResponse, type context$1_FindSeatingPlanResponseNonNullableFields as FindSeatingPlanResponseNonNullableFields, type context$1_GetSeatingPlanOptions as GetSeatingPlanOptions, type context$1_GetSeatingPlanRequest as GetSeatingPlanRequest, type context$1_GetSeatingPlanResponse as GetSeatingPlanResponse, type context$1_GetSeatingPlanResponseNonNullableFields as GetSeatingPlanResponseNonNullableFields, type context$1_GetSeatingPlanThumbnailRequest as GetSeatingPlanThumbnailRequest, type context$1_GetSeatingPlanThumbnailResponse as GetSeatingPlanThumbnailResponse, Icon$1 as Icon, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Image$1 as Image, type MessageEnvelope$1 as MessageEnvelope, type MultiRowProperties$1 as MultiRowProperties, Numbering$1 as Numbering, type Paging$1 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, type Place$1 as Place, PlaceTypeEnumType$1 as PlaceTypeEnumType, type context$1_PlansQueryBuilder as PlansQueryBuilder, type context$1_PlansQueryResult as PlansQueryResult, Position$1 as Position, type context$1_QuerySeatingPlanOptions as QuerySeatingPlanOptions, type context$1_QuerySeatingPlanRequest as QuerySeatingPlanRequest, type context$1_QuerySeatingPlanResponse as QuerySeatingPlanResponse, type context$1_QuerySeatingPlanResponseNonNullableFields as QuerySeatingPlanResponseNonNullableFields, type context$1_QuerySeatingPlanVersionsRequest as QuerySeatingPlanVersionsRequest, type context$1_QuerySeatingPlanVersionsResponse as QuerySeatingPlanVersionsResponse, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type ReservationOptions$1 as ReservationOptions, type RestoreInfo$1 as RestoreInfo, type context$1_RestoreSeatingPlanRequest as RestoreSeatingPlanRequest, type context$1_RestoreSeatingPlanResponse as RestoreSeatingPlanResponse, type RowElement$1 as RowElement, type RowElementUiProperties$1 as RowElementUiProperties, type context$1_SaveSeatingPlanVersionRequest as SaveSeatingPlanVersionRequest, type context$1_SaveSeatingPlanVersionResponse as SaveSeatingPlanVersionResponse, type SeatingPlan$1 as SeatingPlan, type context$1_SeatingPlanCreatedEnvelope as SeatingPlanCreatedEnvelope, type context$1_SeatingPlanDeletedEnvelope as SeatingPlanDeletedEnvelope, type context$1_SeatingPlanMask as SeatingPlanMask, type SeatingPlanNonNullableFields$1 as SeatingPlanNonNullableFields, type context$1_SeatingPlanThumbnail as SeatingPlanThumbnail, type SeatingPlanUiProperties$1 as SeatingPlanUiProperties, type context$1_SeatingPlanUpdatedEnvelope as SeatingPlanUpdatedEnvelope, type Section$1 as Section, type Sequencing$1 as Sequencing, ShapeTypeEnumType$1 as ShapeTypeEnumType, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Type$1 as Type, type context$1_UpdateSeatingPlanOptions as UpdateSeatingPlanOptions, type context$1_UpdateSeatingPlanRequest as UpdateSeatingPlanRequest, type context$1_UpdateSeatingPlanResponse as UpdateSeatingPlanResponse, type context$1_UpdateSeatingPlanResponseNonNullableFields as UpdateSeatingPlanResponseNonNullableFields, type context$1_UpdateSeatingPlanThumbnailRequest as UpdateSeatingPlanThumbnailRequest, type context$1_UpdateSeatingPlanThumbnailResponse as UpdateSeatingPlanThumbnailResponse, type VerticalSequencing$1 as VerticalSequencing, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnSeatingPlanCreatedType as _publicOnSeatingPlanCreatedType, type context$1__publicOnSeatingPlanDeletedType as _publicOnSeatingPlanDeletedType, type context$1__publicOnSeatingPlanUpdatedType as _publicOnSeatingPlanUpdatedType, context$1_copySeatingPlan as copySeatingPlan, context$1_createSeatingPlan as createSeatingPlan, context$1_deleteSeatingPlan as deleteSeatingPlan, context$1_findSeatingPlan as findSeatingPlan, context$1_getSeatingPlan as getSeatingPlan, context$1_getSeatingPlanThumbnail as getSeatingPlanThumbnail, context$1_onSeatingPlanCreated as onSeatingPlanCreated, context$1_onSeatingPlanDeleted as onSeatingPlanDeleted, context$1_onSeatingPlanUpdated as onSeatingPlanUpdated, onSeatingPlanCreated$1 as publicOnSeatingPlanCreated, onSeatingPlanDeleted$1 as publicOnSeatingPlanDeleted, onSeatingPlanUpdated$1 as publicOnSeatingPlanUpdated, context$1_querySeatingPlan as querySeatingPlan, context$1_updateSeatingPlan as updateSeatingPlan, context$1_updateSeatingPlanThumbnail as updateSeatingPlanThumbnail };
1138
+ }
1139
+
1140
+ interface SeatingReservation {
1141
+ /**
1142
+ * The id of the reservation
1143
+ * @readonly
1144
+ */
1145
+ _id?: string | null;
1146
+ /**
1147
+ * The seating plan id
1148
+ * @readonly
1149
+ */
1150
+ seatingPlanId?: string | null;
1151
+ /**
1152
+ * The external seating plan id
1153
+ * @readonly
1154
+ */
1155
+ externalSeatingPlanId?: string | null;
1156
+ /** Reserved places */
1157
+ reservedPlaces?: PlaceReservation[];
1158
+ /**
1159
+ * A client defined external id for cross referencing.
1160
+ * Can reference external entities.
1161
+ * Format: "{fqdn}:{entity guid}"
1162
+ */
1163
+ externalId?: string | null;
1164
+ }
1165
+ interface PlaceReservation {
1166
+ /** The place id. */
1167
+ _id?: string;
1168
+ /**
1169
+ * Number of places in the spot. If not provided - defaults to 1.
1170
+ * Used to reserve for more that one place in areas.
1171
+ */
1172
+ capacity?: number | null;
1173
+ /**
1174
+ * Optional section label.
1175
+ * @readonly
1176
+ */
1177
+ sectionLabel?: string | null;
1178
+ /**
1179
+ * Area label.
1180
+ * @readonly
1181
+ */
1182
+ areaLabel?: string | null;
1183
+ /**
1184
+ * Table label.
1185
+ * @readonly
1186
+ */
1187
+ tableLabel?: string | null;
1188
+ /**
1189
+ * Row label.
1190
+ * @readonly
1191
+ */
1192
+ rowLabel?: string | null;
1193
+ /**
1194
+ * Seat label in a row or table.
1195
+ * @readonly
1196
+ */
1197
+ seatLabel?: string | null;
1198
+ }
1199
+ interface SeatingPlanCategoriesSummaryUpdated {
1200
+ /** Seating plan id */
1201
+ seatingPlanId?: string;
1202
+ /** External seating plan id */
1203
+ externalSeatingPlanId?: string | null;
1204
+ /** Ticket counts by category */
1205
+ categories?: CategoryDetails[];
1206
+ /**
1207
+ * Summary revision.
1208
+ * @readonly
1209
+ */
1210
+ revision?: string | null;
1211
+ }
1212
+ interface CategoryDetails {
1213
+ /**
1214
+ * Seating plan id
1215
+ * @readonly
1216
+ */
1217
+ seatingPlanId?: string | null;
1218
+ /**
1219
+ * External seating plan id
1220
+ * @readonly
1221
+ */
1222
+ externalSeatingPlanId?: string | null;
1223
+ /**
1224
+ * External category id
1225
+ * @readonly
1226
+ */
1227
+ externalCategoryId?: string | null;
1228
+ /**
1229
+ * Total capacity in the category
1230
+ * @readonly
1231
+ */
1232
+ totalCapacity?: number | null;
1233
+ /**
1234
+ * Already reserved capacity
1235
+ * @readonly
1236
+ */
1237
+ reserved?: number | null;
1238
+ }
1239
+ interface InvalidateCache extends InvalidateCacheGetByOneOf {
1240
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
1241
+ metaSiteId?: string;
1242
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
1243
+ siteId?: string;
1244
+ /** Invalidate by App */
1245
+ app?: App;
1246
+ /** Invalidate by page id */
1247
+ page?: Page;
1248
+ /** Invalidate by URI path */
1249
+ uri?: URI;
1250
+ /** Invalidate by file (for media files such as PDFs) */
1251
+ file?: File;
1252
+ /** tell us why you're invalidating the cache. You don't need to add your app name */
1253
+ reason?: string | null;
1254
+ /** Is local DS */
1255
+ localDc?: boolean;
1256
+ }
1257
+ /** @oneof */
1258
+ interface InvalidateCacheGetByOneOf {
1259
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
1260
+ metaSiteId?: string;
1261
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
1262
+ siteId?: string;
1263
+ /** Invalidate by App */
1264
+ app?: App;
1265
+ /** Invalidate by page id */
1266
+ page?: Page;
1267
+ /** Invalidate by URI path */
1268
+ uri?: URI;
1269
+ /** Invalidate by file (for media files such as PDFs) */
1270
+ file?: File;
1271
+ }
1272
+ interface App {
1273
+ /** The AppDefId */
1274
+ appDefId?: string;
1275
+ /** The instance Id */
1276
+ instanceId?: string;
1277
+ }
1278
+ interface Page {
1279
+ /** the msid the page is on */
1280
+ metaSiteId?: string;
1281
+ /** Invalidate by Page ID */
1282
+ pageId?: string;
1283
+ }
1284
+ interface URI {
1285
+ /** the msid the URI is on */
1286
+ metaSiteId?: string;
1287
+ /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
1288
+ uriPath?: string;
1289
+ }
1290
+ interface File {
1291
+ /** the msid the file is related to */
1292
+ metaSiteId?: string;
1293
+ /** Invalidate by filename (for media files such as PDFs) */
1294
+ fileName?: string;
1295
+ }
1296
+ interface CreateSeatingReservationRequest {
1297
+ /** A reservation to create */
1298
+ reservation?: SeatingReservation;
1299
+ }
1300
+ interface CreateSeatingReservationResponse {
1301
+ /** Created reservation */
1302
+ reservation?: SeatingReservation;
1303
+ }
1304
+ interface Places {
1305
+ /** Places */
1306
+ places?: string[];
1307
+ }
1308
+ interface UnavailablePlaces {
1309
+ /** Places that cannot be reserved */
1310
+ unavailablePlaces?: string[];
1311
+ /** Reservation error details */
1312
+ reservationErrorDetails?: ReservationErrorDetails[];
1313
+ }
1314
+ interface ReservationErrorDetails {
1315
+ /** Place */
1316
+ _id?: string;
1317
+ /** Available capacity */
1318
+ available?: number;
1319
+ /** Requested capacity */
1320
+ requested?: number;
1321
+ }
1322
+ interface GetReservationRequest {
1323
+ /** The id of the reservation to return */
1324
+ _id: string | null;
1325
+ }
1326
+ interface GetReservationResponse {
1327
+ /** Created reservation */
1328
+ reservation?: SeatingReservation;
1329
+ }
1330
+ interface QuerySeatingReservationRequest {
1331
+ /** A query object */
1332
+ query: QueryV2;
1333
+ }
1334
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
1335
+ /** Paging options to limit and skip the number of items. */
1336
+ paging?: Paging;
1337
+ /** 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`. */
1338
+ cursorPaging?: CursorPaging;
1339
+ /**
1340
+ * Filter object.
1341
+ *
1342
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
1343
+ */
1344
+ filter?: Record<string, any> | null;
1345
+ /**
1346
+ * Sort object.
1347
+ *
1348
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
1349
+ */
1350
+ sort?: Sorting[];
1351
+ /** 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. */
1352
+ fields?: string[];
1353
+ /** 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. */
1354
+ fieldsets?: string[];
1355
+ }
1356
+ /** @oneof */
1357
+ interface QueryV2PagingMethodOneOf {
1358
+ /** Paging options to limit and skip the number of items. */
1359
+ paging?: Paging;
1360
+ /** 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`. */
1361
+ cursorPaging?: CursorPaging;
1362
+ }
1363
+ interface Sorting {
1364
+ /** Name of the field to sort by. */
1365
+ fieldName?: string;
1366
+ /** Sort order. */
1367
+ order?: SortOrder;
1368
+ }
1369
+ declare enum SortOrder {
1370
+ ASC = "ASC",
1371
+ DESC = "DESC"
1372
+ }
1373
+ interface Paging {
1374
+ /** Number of items to load. */
1375
+ limit?: number | null;
1376
+ /** Number of items to skip in the current sort order. */
1377
+ offset?: number | null;
1378
+ }
1379
+ interface CursorPaging {
1380
+ /** Maximum number of items to return in the results. */
1381
+ limit?: number | null;
1382
+ /**
1383
+ * Pointer to the next or previous page in the list of results.
1384
+ *
1385
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1386
+ * Not relevant for the first request.
1387
+ */
1388
+ cursor?: string | null;
1389
+ }
1390
+ interface QuerySeatingReservationResponse {
1391
+ /** Found reservations */
1392
+ reservations?: SeatingReservation[];
1393
+ /** Paging meta data */
1394
+ metadata?: PagingMetadataV2;
1395
+ }
1396
+ interface PagingMetadataV2 {
1397
+ /** Number of items returned in the response. */
1398
+ count?: number | null;
1399
+ /** Offset that was requested. */
1400
+ offset?: number | null;
1401
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
1402
+ total?: number | null;
1403
+ /** Flag that indicates the server failed to calculate the `total` field. */
1404
+ tooManyToCount?: boolean | null;
1405
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
1406
+ cursors?: Cursors;
1407
+ }
1408
+ interface Cursors {
1409
+ /** Cursor string pointing to the next page in the list of results. */
1410
+ next?: string | null;
1411
+ /** Cursor pointing to the previous page in the list of results. */
1412
+ prev?: string | null;
1413
+ }
1414
+ interface DeleteSeatingReservationRequest {
1415
+ /** The id of the reservation to delete */
1416
+ _id: string | null;
1417
+ }
1418
+ interface DeleteSeatingReservationResponse {
1419
+ /** The deleted reservation */
1420
+ reservation?: SeatingReservation;
1421
+ }
1422
+ interface DeleteSeatingPlaceReservationRequest {
1423
+ /** The id of the place reservation to delete */
1424
+ _id?: string | null;
1425
+ /** The id of the place reservation's reservation */
1426
+ reservationId?: string | null;
1427
+ }
1428
+ interface Empty {
1429
+ }
1430
+ interface GetReservedPlacesRequest {
1431
+ /** Seating plan id */
1432
+ _id?: string | null;
1433
+ }
1434
+ interface GetReservedPlacesResponse {
1435
+ /** Reserved places of the plan */
1436
+ placeReservations?: PlaceReservation[];
1437
+ }
1438
+ interface GetSeatingCategoriesSummaryRequest {
1439
+ /** Seating plan external id */
1440
+ externalId?: string[];
1441
+ }
1442
+ interface GetSeatingCategoriesSummaryResponse {
1443
+ /** Ticket counts by category */
1444
+ categories?: CategoryDetails[];
1445
+ }
1446
+ interface GetSeatingReservationsSummaryRequest {
1447
+ /** Filter for seating plan */
1448
+ filter: Record<string, any> | null;
1449
+ }
1450
+ interface GetSeatingReservationsSummaryResponse {
1451
+ plan?: SeatingPlan;
1452
+ seatingReservationsSummary?: SeatingReservationsSummary;
1453
+ }
1454
+ interface SeatingPlan {
1455
+ /**
1456
+ * Auto generated unique plan id
1457
+ * @readonly
1458
+ */
1459
+ _id?: string | null;
1460
+ /**
1461
+ * A client defined external id for cross referencing.
1462
+ * Can reference external entities.
1463
+ * Format: "{fqdn}:{entity guid}"
1464
+ */
1465
+ externalId?: string | null;
1466
+ /** Human friendly plan title */
1467
+ title?: string | null;
1468
+ /** Sections of the plan. Seating plan is divided in high level sections. */
1469
+ sections?: Section[];
1470
+ /** Categories for plan element grouping. */
1471
+ categories?: Category[];
1472
+ /**
1473
+ * Seating plan created timestamp.
1474
+ * @readonly
1475
+ */
1476
+ _createdDate?: Date;
1477
+ /**
1478
+ * Seating plan updated timestamp.
1479
+ * @readonly
1480
+ */
1481
+ _updatedDate?: Date;
1482
+ /**
1483
+ * Total capacity
1484
+ * @readonly
1485
+ */
1486
+ totalCapacity?: number | null;
1487
+ /**
1488
+ * Total categories
1489
+ * @readonly
1490
+ */
1491
+ totalCategories?: number | null;
1492
+ /**
1493
+ * Places not assigned to categories
1494
+ * @readonly
1495
+ */
1496
+ uncategorizedPlaces?: Place[];
1497
+ /**
1498
+ * A version of the seating plan
1499
+ * @readonly
1500
+ */
1501
+ version?: string | null;
1502
+ /** Data extensions */
1503
+ extendedFields?: ExtendedFields;
1504
+ /** Seating Plan UI settings */
1505
+ uiProperties?: SeatingPlanUiProperties;
1506
+ }
1507
+ interface Section {
1508
+ /** Unique section id */
1509
+ _id?: number;
1510
+ /** Human readable section title */
1511
+ title?: string | null;
1512
+ /**
1513
+ * Client configuration object
1514
+ * @readonly
1515
+ */
1516
+ config?: Record<string, any> | null;
1517
+ /** Elements of the section. */
1518
+ elements?: Element[];
1519
+ /**
1520
+ * Total capacity
1521
+ * @readonly
1522
+ */
1523
+ totalCapacity?: number | null;
1524
+ /**
1525
+ * Is default section
1526
+ * @readonly
1527
+ */
1528
+ default?: boolean;
1529
+ }
1530
+ interface Element {
1531
+ /** Unique element id */
1532
+ _id?: number;
1533
+ /** User friendly title/label of the element. */
1534
+ title?: string | null;
1535
+ /** Element type */
1536
+ type?: Type;
1537
+ /** Capacity. None for Shape type Element. */
1538
+ capacity?: number | null;
1539
+ /** Assigned to a category */
1540
+ categoryId?: number | null;
1541
+ /** A place numbering meta data */
1542
+ sequencing?: Sequencing;
1543
+ /**
1544
+ * Place override (by seq_id)
1545
+ * @deprecated
1546
+ */
1547
+ overrides?: Place[];
1548
+ /**
1549
+ * Final place sequence with overrides
1550
+ * @readonly
1551
+ */
1552
+ places?: Place[];
1553
+ /** Element reservation options */
1554
+ reservationOptions?: ReservationOptions;
1555
+ /** Element UI settings */
1556
+ uiProperties?: ElementUiProperties;
1557
+ }
1558
+ declare enum Type {
1559
+ AREA = "AREA",
1560
+ ROW = "ROW",
1561
+ MULTI_ROW = "MULTI_ROW",
1562
+ TABLE = "TABLE",
1563
+ ROUND_TABLE = "ROUND_TABLE",
1564
+ SHAPE = "SHAPE"
1565
+ }
1566
+ interface Sequencing {
1567
+ /** First seq element */
1568
+ startAt?: string;
1569
+ /** Finite generated seq of labels */
1570
+ labels?: string[];
1571
+ /** If true - direction right to left. Otherwise left to right. */
1572
+ reverseOrder?: boolean | null;
1573
+ }
1574
+ interface Place {
1575
+ /** Local id of the place in the sequence */
1576
+ index?: number;
1577
+ /**
1578
+ * Generated composite unique id in the seating plan.
1579
+ * @readonly
1580
+ */
1581
+ _id?: string | null;
1582
+ /** Unique label of the place */
1583
+ label?: string;
1584
+ /**
1585
+ * Max capacity per place
1586
+ * @readonly
1587
+ */
1588
+ capacity?: number | null;
1589
+ /**
1590
+ * Type of the parent element
1591
+ * @readonly
1592
+ */
1593
+ elementType?: Type;
1594
+ /**
1595
+ * Assigned category id
1596
+ * @readonly
1597
+ */
1598
+ categoryId?: number | null;
1599
+ /** Place type */
1600
+ type?: PlaceTypeEnumType;
1601
+ }
1602
+ declare enum PlaceTypeEnumType {
1603
+ UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
1604
+ STANDARD = "STANDARD",
1605
+ WHEELCHAIR = "WHEELCHAIR",
1606
+ ACCESSIBLE = "ACCESSIBLE",
1607
+ COMPANION = "COMPANION",
1608
+ OBSTRUCTED = "OBSTRUCTED",
1609
+ DISCOUNT = "DISCOUNT"
1610
+ }
1611
+ interface ReservationOptions {
1612
+ /** Indicates whether the entire element must be reserved */
1613
+ reserveWholeElement?: boolean;
1614
+ }
1615
+ interface ElementUiProperties {
1616
+ x?: number | null;
1617
+ y?: number | null;
1618
+ zIndex?: number | null;
1619
+ width?: number | null;
1620
+ height?: number | null;
1621
+ rotationAngle?: number | null;
1622
+ shapeType?: ShapeTypeEnumType;
1623
+ fontSize?: number | null;
1624
+ cornerRadius?: number | null;
1625
+ seatSpacing?: number | null;
1626
+ hideLabel?: boolean | null;
1627
+ labelPosition?: Position;
1628
+ seatLayout?: number[];
1629
+ emptyTopSeatSpaces?: number | null;
1630
+ /** needs research */
1631
+ text?: string | null;
1632
+ /** #F0F0F0 */
1633
+ color?: string | null;
1634
+ /** #F0F0F0 */
1635
+ fillColor?: string | null;
1636
+ /** #F0F0F0 */
1637
+ strokeColor?: string | null;
1638
+ /** px */
1639
+ strokeWidth?: number | null;
1640
+ opacity?: number | null;
1641
+ icon?: Icon;
1642
+ image?: Image;
1643
+ seatNumbering?: Numbering;
1644
+ }
1645
+ declare enum ShapeTypeEnumType {
1646
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
1647
+ TEXT = "TEXT",
1648
+ RECTANGLE = "RECTANGLE",
1649
+ ELLIPSE = "ELLIPSE",
1650
+ LINE = "LINE",
1651
+ ICON = "ICON",
1652
+ IMAGE = "IMAGE"
1653
+ }
1654
+ declare enum Position {
1655
+ UNKNOWN_POSITION = "UNKNOWN_POSITION",
1656
+ LEFT = "LEFT",
1657
+ RIGHT = "RIGHT",
1658
+ BOTH = "BOTH",
1659
+ NONE = "NONE"
1660
+ }
1661
+ declare enum Icon {
1662
+ UNKNOWN_ICON = "UNKNOWN_ICON",
1663
+ ENTER = "ENTER",
1664
+ EXIT = "EXIT",
1665
+ DRINKS = "DRINKS",
1666
+ WC = "WC",
1667
+ WC_MEN = "WC_MEN",
1668
+ WC_WOMEN = "WC_WOMEN",
1669
+ FOOD = "FOOD",
1670
+ STAIRS = "STAIRS",
1671
+ ELEVATOR = "ELEVATOR",
1672
+ SMOKING = "SMOKING",
1673
+ CHECKROOM = "CHECKROOM",
1674
+ STAGE = "STAGE"
1675
+ }
1676
+ interface Image {
1677
+ /** WixMedia image ID. */
1678
+ _id?: string;
1679
+ /**
1680
+ * Original image height.
1681
+ * @readonly
1682
+ */
1683
+ height?: number;
1684
+ /**
1685
+ * Original image width.
1686
+ * @readonly
1687
+ */
1688
+ width?: number;
1689
+ /**
1690
+ * WixMedia image URI.
1691
+ * @deprecated
1692
+ */
1693
+ uri?: string | null;
1694
+ }
1695
+ declare enum Numbering {
1696
+ UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
1697
+ NUMERIC = "NUMERIC",
1698
+ ODD_EVEN = "ODD_EVEN",
1699
+ ALPHABETICAL = "ALPHABETICAL"
1700
+ }
1701
+ interface MultiRowProperties {
1702
+ /** Individual rows of the multi row element */
1703
+ rows?: RowElement[];
1704
+ /** Meta data for vertical labeling */
1705
+ verticalSequencing?: VerticalSequencing;
1706
+ /** Row spacing */
1707
+ rowSpacing?: number | null;
1708
+ }
1709
+ interface RowElement {
1710
+ /** Unique row id */
1711
+ _id?: number;
1712
+ /** User friendly title/label of the row */
1713
+ title?: string | null;
1714
+ /** Row capacity */
1715
+ capacity?: number | null;
1716
+ /** Assigned to a category */
1717
+ categoryId?: number | null;
1718
+ /** A place numbering meta data for a single row */
1719
+ sequencing?: Sequencing;
1720
+ /** Row UI settings */
1721
+ uiProperties?: RowElementUiProperties;
1722
+ }
1723
+ interface RowElementUiProperties {
1724
+ /** Relative x position to the parent element */
1725
+ relativeX?: number | null;
1726
+ /** Width of the row */
1727
+ width?: number | null;
1728
+ /** Seat spacing */
1729
+ seatSpacing?: number | null;
1730
+ /** Label position */
1731
+ labelPosition?: Position;
1732
+ /** Seat numbering */
1733
+ seatNumbering?: Numbering;
1734
+ }
1735
+ interface VerticalSequencing {
1736
+ /** First seq element */
1737
+ startAt?: string;
1738
+ /** Row numbering */
1739
+ rowNumbering?: Numbering;
1740
+ /** If true - direction bottom to top. Otherwise top to bottom. */
1741
+ reverseOrder?: boolean | null;
1742
+ }
1743
+ interface Category {
1744
+ /** Local category id within the seating plan */
1745
+ _id?: number;
1746
+ /**
1747
+ * A client defined external id for cross referencing.
1748
+ * Can reference external entities.
1749
+ * Format: "{entity_fqdn}:{entity_id}"
1750
+ */
1751
+ externalId?: string | null;
1752
+ /** Category label */
1753
+ title?: string;
1754
+ /**
1755
+ * Client configuration object
1756
+ * @readonly
1757
+ */
1758
+ config?: Record<string, any> | null;
1759
+ /**
1760
+ * Total capacity
1761
+ * @readonly
1762
+ */
1763
+ totalCapacity?: number | null;
1764
+ /**
1765
+ * Possible places
1766
+ * @readonly
1767
+ */
1768
+ places?: Place[];
1769
+ }
1770
+ interface ExtendedFields {
1771
+ /**
1772
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
1773
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
1774
+ *
1775
+ * You can only access fields for which you have the appropriate permissions.
1776
+ *
1777
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
1778
+ */
1779
+ namespaces?: Record<string, Record<string, any>>;
1780
+ }
1781
+ interface SeatingPlanUiProperties {
1782
+ /** #F0F0F0 */
1783
+ backgroundColor?: string | null;
1784
+ backgroundOpacity?: number | null;
1785
+ }
1786
+ interface ElementGroup {
1787
+ /** Unique element group id */
1788
+ _id?: number;
1789
+ /** Parent group id */
1790
+ parentElementGroupId?: number | null;
1791
+ /** Element group UI settings */
1792
+ uiProperties?: ElementGroupUiProperties;
1793
+ }
1794
+ interface ElementGroupUiProperties {
1795
+ /** x position of the group */
1796
+ x?: number | null;
1797
+ /** y position of the group */
1798
+ y?: number | null;
1799
+ /** width of the group */
1800
+ width?: number | null;
1801
+ /** height of the group */
1802
+ height?: number | null;
1803
+ /** rotation angle of the group */
1804
+ rotationAngle?: number | null;
1805
+ }
1806
+ interface SeatingReservationsSummary {
1807
+ places?: PlaceReservationDetails[];
1808
+ }
1809
+ interface PlaceReservationDetails {
1810
+ placeId?: string;
1811
+ occupied?: number;
1812
+ }
1813
+ interface RegenerateSummariesRequest {
1814
+ /** Seating plan id */
1815
+ planId?: string | null;
1816
+ }
1817
+ interface RegenerateSummariesResponse {
1818
+ seatingReservationsSummary?: SeatingReservationsSummary;
1819
+ categories?: CategoryDetails[];
1820
+ }
1821
+ interface DomainEvent extends DomainEventBodyOneOf {
1822
+ createdEvent?: EntityCreatedEvent;
1823
+ updatedEvent?: EntityUpdatedEvent;
1824
+ deletedEvent?: EntityDeletedEvent;
1825
+ actionEvent?: ActionEvent;
1826
+ /**
1827
+ * Unique event ID.
1828
+ * Allows clients to ignore duplicate webhooks.
1829
+ */
1830
+ _id?: string;
1831
+ /**
1832
+ * Assumes actions are also always typed to an entity_type
1833
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1834
+ */
1835
+ entityFqdn?: string;
1836
+ /**
1837
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1838
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1839
+ * Example: created/updated/deleted/started/completed/email_opened
1840
+ */
1841
+ slug?: string;
1842
+ /** ID of the entity associated with the event. */
1843
+ entityId?: string;
1844
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1845
+ eventTime?: Date;
1846
+ /**
1847
+ * Whether the event was triggered as a result of a privacy regulation application
1848
+ * (for example, GDPR).
1849
+ */
1850
+ triggeredByAnonymizeRequest?: boolean | null;
1851
+ /** If present, indicates the action that triggered the event. */
1852
+ originatedFrom?: string | null;
1853
+ /**
1854
+ * A sequence number defining the order of updates to the underlying entity.
1855
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1856
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1857
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1858
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1859
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1860
+ */
1861
+ entityEventSequence?: string | null;
1862
+ }
1863
+ /** @oneof */
1864
+ interface DomainEventBodyOneOf {
1865
+ createdEvent?: EntityCreatedEvent;
1866
+ updatedEvent?: EntityUpdatedEvent;
1867
+ deletedEvent?: EntityDeletedEvent;
1868
+ actionEvent?: ActionEvent;
1869
+ }
1870
+ interface EntityCreatedEvent {
1871
+ entity?: string;
1872
+ }
1873
+ interface RestoreInfo {
1874
+ deletedDate?: Date;
1875
+ }
1876
+ interface EntityUpdatedEvent {
1877
+ /**
1878
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1879
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1880
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1881
+ */
1882
+ currentEntity?: string;
1883
+ }
1884
+ interface EntityDeletedEvent {
1885
+ /** Entity that was deleted */
1886
+ deletedEntity?: string | null;
1887
+ }
1888
+ interface ActionEvent {
1889
+ body?: string;
1890
+ }
1891
+ interface MessageEnvelope {
1892
+ /** App instance ID. */
1893
+ instanceId?: string | null;
1894
+ /** Event type. */
1895
+ eventType?: string;
1896
+ /** The identification type and identity data. */
1897
+ identity?: IdentificationData;
1898
+ /** Stringify payload. */
1899
+ data?: string;
1900
+ }
1901
+ interface IdentificationData extends IdentificationDataIdOneOf {
1902
+ /** ID of a site visitor that has not logged in to the site. */
1903
+ anonymousVisitorId?: string;
1904
+ /** ID of a site visitor that has logged in to the site. */
1905
+ memberId?: string;
1906
+ /** ID of a Wix user (site owner, contributor, etc.). */
1907
+ wixUserId?: string;
1908
+ /** ID of an app. */
1909
+ appId?: string;
1910
+ /** @readonly */
1911
+ identityType?: WebhookIdentityType;
1912
+ }
1913
+ /** @oneof */
1914
+ interface IdentificationDataIdOneOf {
1915
+ /** ID of a site visitor that has not logged in to the site. */
1916
+ anonymousVisitorId?: string;
1917
+ /** ID of a site visitor that has logged in to the site. */
1918
+ memberId?: string;
1919
+ /** ID of a Wix user (site owner, contributor, etc.). */
1920
+ wixUserId?: string;
1921
+ /** ID of an app. */
1922
+ appId?: string;
1923
+ }
1924
+ declare enum WebhookIdentityType {
1925
+ UNKNOWN = "UNKNOWN",
1926
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1927
+ MEMBER = "MEMBER",
1928
+ WIX_USER = "WIX_USER",
1929
+ APP = "APP"
1930
+ }
1931
+ interface PlaceReservationNonNullableFields {
1932
+ _id: string;
1933
+ }
1934
+ interface SeatingReservationNonNullableFields {
1935
+ reservedPlaces: PlaceReservationNonNullableFields[];
1936
+ }
1937
+ interface CreateSeatingReservationResponseNonNullableFields {
1938
+ reservation?: SeatingReservationNonNullableFields;
1939
+ }
1940
+ interface GetReservationResponseNonNullableFields {
1941
+ reservation?: SeatingReservationNonNullableFields;
1942
+ }
1943
+ interface QuerySeatingReservationResponseNonNullableFields {
1944
+ reservations: SeatingReservationNonNullableFields[];
1945
+ }
1946
+ interface DeleteSeatingReservationResponseNonNullableFields {
1947
+ reservation?: SeatingReservationNonNullableFields;
1948
+ }
1949
+ interface SequencingNonNullableFields {
1950
+ startAt: string;
1951
+ labels: string[];
1952
+ }
1953
+ interface PlaceNonNullableFields {
1954
+ index: number;
1955
+ label: string;
1956
+ elementType: Type;
1957
+ type: PlaceTypeEnumType;
1958
+ }
1959
+ interface ReservationOptionsNonNullableFields {
1960
+ reserveWholeElement: boolean;
1961
+ }
1962
+ interface ImageNonNullableFields {
1963
+ _id: string;
1964
+ height: number;
1965
+ width: number;
1966
+ }
1967
+ interface ElementUiPropertiesNonNullableFields {
1968
+ shapeType: ShapeTypeEnumType;
1969
+ labelPosition: Position;
1970
+ seatLayout: number[];
1971
+ icon: Icon;
1972
+ image?: ImageNonNullableFields;
1973
+ seatNumbering: Numbering;
1974
+ }
1975
+ interface RowElementUiPropertiesNonNullableFields {
1976
+ labelPosition: Position;
1977
+ seatNumbering: Numbering;
1978
+ }
1979
+ interface RowElementNonNullableFields {
1980
+ _id: number;
1981
+ sequencing?: SequencingNonNullableFields;
1982
+ uiProperties?: RowElementUiPropertiesNonNullableFields;
1983
+ }
1984
+ interface VerticalSequencingNonNullableFields {
1985
+ startAt: string;
1986
+ rowNumbering: Numbering;
1987
+ }
1988
+ interface MultiRowPropertiesNonNullableFields {
1989
+ rows: RowElementNonNullableFields[];
1990
+ verticalSequencing?: VerticalSequencingNonNullableFields;
1991
+ }
1992
+ interface ElementNonNullableFields {
1993
+ _id: number;
1994
+ type: Type;
1995
+ sequencing?: SequencingNonNullableFields;
1996
+ overrides: PlaceNonNullableFields[];
1997
+ places: PlaceNonNullableFields[];
1998
+ reservationOptions?: ReservationOptionsNonNullableFields;
1999
+ uiProperties?: ElementUiPropertiesNonNullableFields;
2000
+ multiRowProperties?: MultiRowPropertiesNonNullableFields;
2001
+ }
2002
+ interface SectionNonNullableFields {
2003
+ _id: number;
2004
+ elements: ElementNonNullableFields[];
2005
+ default: boolean;
2006
+ }
2007
+ interface CategoryNonNullableFields {
2008
+ _id: number;
2009
+ title: string;
2010
+ places: PlaceNonNullableFields[];
2011
+ }
2012
+ interface ElementGroupNonNullableFields {
2013
+ _id: number;
2014
+ }
2015
+ interface SeatingPlanNonNullableFields {
2016
+ sections: SectionNonNullableFields[];
2017
+ categories: CategoryNonNullableFields[];
2018
+ uncategorizedPlaces: PlaceNonNullableFields[];
2019
+ elementGroups: ElementGroupNonNullableFields[];
2020
+ }
2021
+ interface PlaceReservationDetailsNonNullableFields {
2022
+ placeId: string;
2023
+ occupied: number;
2024
+ }
2025
+ interface SeatingReservationsSummaryNonNullableFields {
2026
+ places: PlaceReservationDetailsNonNullableFields[];
2027
+ }
2028
+ interface GetSeatingReservationsSummaryResponseNonNullableFields {
2029
+ plan?: SeatingPlanNonNullableFields;
2030
+ seatingReservationsSummary?: SeatingReservationsSummaryNonNullableFields;
2031
+ }
2032
+ interface BaseEventMetadata {
2033
+ /** App instance ID. */
2034
+ instanceId?: string | null;
2035
+ /** Event type. */
2036
+ eventType?: string;
2037
+ /** The identification type and identity data. */
2038
+ identity?: IdentificationData;
2039
+ }
2040
+ interface EventMetadata extends BaseEventMetadata {
2041
+ /**
2042
+ * Unique event ID.
2043
+ * Allows clients to ignore duplicate webhooks.
2044
+ */
2045
+ _id?: string;
2046
+ /**
2047
+ * Assumes actions are also always typed to an entity_type
2048
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2049
+ */
2050
+ entityFqdn?: string;
2051
+ /**
2052
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2053
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2054
+ * Example: created/updated/deleted/started/completed/email_opened
2055
+ */
2056
+ slug?: string;
2057
+ /** ID of the entity associated with the event. */
2058
+ entityId?: string;
2059
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2060
+ eventTime?: Date;
2061
+ /**
2062
+ * Whether the event was triggered as a result of a privacy regulation application
2063
+ * (for example, GDPR).
2064
+ */
2065
+ triggeredByAnonymizeRequest?: boolean | null;
2066
+ /** If present, indicates the action that triggered the event. */
2067
+ originatedFrom?: string | null;
2068
+ /**
2069
+ * A sequence number defining the order of updates to the underlying entity.
2070
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2071
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2072
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2073
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2074
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2075
+ */
2076
+ entityEventSequence?: string | null;
2077
+ }
2078
+ interface SeatingReservationCreatedEnvelope {
2079
+ entity: SeatingReservation;
2080
+ metadata: EventMetadata;
2081
+ }
2082
+ interface SeatingReservationDeletedEnvelope {
2083
+ entity: SeatingReservation;
2084
+ metadata: EventMetadata;
2085
+ }
2086
+ interface CreateSeatingReservationOptions {
2087
+ /** A reservation to create */
2088
+ reservation?: SeatingReservation;
2089
+ }
2090
+ interface QueryCursorResult {
2091
+ cursors: Cursors;
2092
+ hasNext: () => boolean;
2093
+ hasPrev: () => boolean;
2094
+ length: number;
2095
+ pageSize: number;
2096
+ }
2097
+ interface ReservationsQueryResult extends QueryCursorResult {
2098
+ items: SeatingReservation[];
2099
+ query: ReservationsQueryBuilder;
2100
+ next: () => Promise<ReservationsQueryResult>;
2101
+ prev: () => Promise<ReservationsQueryResult>;
2102
+ }
2103
+ interface ReservationsQueryBuilder {
2104
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
2105
+ * @documentationMaturity preview
2106
+ */
2107
+ limit: (limit: number) => ReservationsQueryBuilder;
2108
+ /** @param cursor - A pointer to specific record
2109
+ * @documentationMaturity preview
2110
+ */
2111
+ skipTo: (cursor: string) => ReservationsQueryBuilder;
2112
+ /** @documentationMaturity preview */
2113
+ find: () => Promise<ReservationsQueryResult>;
2114
+ }
2115
+ interface GetSeatingCategoriesSummaryOptions {
2116
+ /** Seating plan external id */
2117
+ externalId?: string[];
76
2118
  }
77
2119
 
78
- declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2120
+ declare function createSeatingReservation$1(httpClient: HttpClient): CreateSeatingReservationSignature;
2121
+ interface CreateSeatingReservationSignature {
2122
+ /**
2123
+ * Creates a seating reservation
2124
+ * @returns Created reservation
2125
+ */
2126
+ (options?: CreateSeatingReservationOptions | undefined): Promise<SeatingReservation & SeatingReservationNonNullableFields>;
2127
+ }
2128
+ declare function getReservation$1(httpClient: HttpClient): GetReservationSignature;
2129
+ interface GetReservationSignature {
2130
+ /**
2131
+ * Returns available seat counts by category id
2132
+ * @param - The id of the reservation to return
2133
+ * @returns Created reservation
2134
+ */
2135
+ (_id: string | null): Promise<SeatingReservation & SeatingReservationNonNullableFields>;
2136
+ }
2137
+ declare function querySeatingReservation$1(httpClient: HttpClient): QuerySeatingReservationSignature;
2138
+ interface QuerySeatingReservationSignature {
2139
+ /**
2140
+ * Lists seating reservations by query request
2141
+ */
2142
+ (): ReservationsQueryBuilder;
2143
+ }
2144
+ declare function deleteSeatingReservation$1(httpClient: HttpClient): DeleteSeatingReservationSignature;
2145
+ interface DeleteSeatingReservationSignature {
2146
+ /**
2147
+ * Deletes the seating reservation
2148
+ * @param - The id of the reservation to delete
2149
+ */
2150
+ (_id: string | null): Promise<DeleteSeatingReservationResponse & DeleteSeatingReservationResponseNonNullableFields>;
2151
+ }
2152
+ declare function getSeatingCategoriesSummary$1(httpClient: HttpClient): GetSeatingCategoriesSummarySignature;
2153
+ interface GetSeatingCategoriesSummarySignature {
2154
+ /** */
2155
+ (options?: GetSeatingCategoriesSummaryOptions | undefined): Promise<GetSeatingCategoriesSummaryResponse>;
2156
+ }
2157
+ declare function getSeatingReservationsSummary$1(httpClient: HttpClient): GetSeatingReservationsSummarySignature;
2158
+ interface GetSeatingReservationsSummarySignature {
2159
+ /** @param - Filter for seating plan */
2160
+ (filter: Record<string, any> | null): Promise<GetSeatingReservationsSummaryResponse & GetSeatingReservationsSummaryResponseNonNullableFields>;
2161
+ }
2162
+ declare const onSeatingReservationCreated$1: EventDefinition<SeatingReservationCreatedEnvelope, "wix.seating.v1.seating_reservation_created">;
2163
+ declare const onSeatingReservationDeleted$1: EventDefinition<SeatingReservationDeletedEnvelope, "wix.seating.v1.seating_reservation_deleted">;
79
2164
 
80
2165
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
81
2166
 
82
- declare const createSeatingReservation: ReturnType<typeof createRESTModule<typeof publicCreateSeatingReservation>>;
83
- declare const getReservation: ReturnType<typeof createRESTModule<typeof publicGetReservation>>;
84
- declare const querySeatingReservation: ReturnType<typeof createRESTModule<typeof publicQuerySeatingReservation>>;
85
- declare const deleteSeatingReservation: ReturnType<typeof createRESTModule<typeof publicDeleteSeatingReservation>>;
86
- declare const getSeatingCategoriesSummary: ReturnType<typeof createRESTModule<typeof publicGetSeatingCategoriesSummary>>;
87
- declare const getSeatingReservationsSummary: ReturnType<typeof createRESTModule<typeof publicGetSeatingReservationsSummary>>;
88
- declare const onSeatingReservationCreated: ReturnType<typeof createEventModule<typeof publicOnSeatingReservationCreated>>;
89
- declare const onSeatingReservationDeleted: ReturnType<typeof createEventModule<typeof publicOnSeatingReservationDeleted>>;
2167
+ declare const createSeatingReservation: BuildRESTFunction<typeof createSeatingReservation$1> & typeof createSeatingReservation$1;
2168
+ declare const getReservation: BuildRESTFunction<typeof getReservation$1> & typeof getReservation$1;
2169
+ declare const querySeatingReservation: BuildRESTFunction<typeof querySeatingReservation$1> & typeof querySeatingReservation$1;
2170
+ declare const deleteSeatingReservation: BuildRESTFunction<typeof deleteSeatingReservation$1> & typeof deleteSeatingReservation$1;
2171
+ declare const getSeatingCategoriesSummary: BuildRESTFunction<typeof getSeatingCategoriesSummary$1> & typeof getSeatingCategoriesSummary$1;
2172
+ declare const getSeatingReservationsSummary: BuildRESTFunction<typeof getSeatingReservationsSummary$1> & typeof getSeatingReservationsSummary$1;
2173
+
2174
+ type _publicOnSeatingReservationCreatedType = typeof onSeatingReservationCreated$1;
2175
+ /** */
2176
+ declare const onSeatingReservationCreated: ReturnType<typeof createEventModule<_publicOnSeatingReservationCreatedType>>;
2177
+
2178
+ type _publicOnSeatingReservationDeletedType = typeof onSeatingReservationDeleted$1;
2179
+ /** */
2180
+ declare const onSeatingReservationDeleted: ReturnType<typeof createEventModule<_publicOnSeatingReservationDeletedType>>;
90
2181
 
2182
+ type context_ActionEvent = ActionEvent;
2183
+ type context_App = App;
2184
+ type context_BaseEventMetadata = BaseEventMetadata;
2185
+ type context_Category = Category;
2186
+ type context_CategoryDetails = CategoryDetails;
2187
+ type context_CreateSeatingReservationOptions = CreateSeatingReservationOptions;
2188
+ type context_CreateSeatingReservationRequest = CreateSeatingReservationRequest;
2189
+ type context_CreateSeatingReservationResponse = CreateSeatingReservationResponse;
2190
+ type context_CreateSeatingReservationResponseNonNullableFields = CreateSeatingReservationResponseNonNullableFields;
2191
+ type context_CursorPaging = CursorPaging;
2192
+ type context_Cursors = Cursors;
2193
+ type context_DeleteSeatingPlaceReservationRequest = DeleteSeatingPlaceReservationRequest;
2194
+ type context_DeleteSeatingReservationRequest = DeleteSeatingReservationRequest;
2195
+ type context_DeleteSeatingReservationResponse = DeleteSeatingReservationResponse;
2196
+ type context_DeleteSeatingReservationResponseNonNullableFields = DeleteSeatingReservationResponseNonNullableFields;
2197
+ type context_DomainEvent = DomainEvent;
2198
+ type context_DomainEventBodyOneOf = DomainEventBodyOneOf;
2199
+ type context_Element = Element;
2200
+ type context_ElementGroup = ElementGroup;
2201
+ type context_ElementGroupUiProperties = ElementGroupUiProperties;
2202
+ type context_ElementUiProperties = ElementUiProperties;
2203
+ type context_Empty = Empty;
2204
+ type context_EntityCreatedEvent = EntityCreatedEvent;
2205
+ type context_EntityDeletedEvent = EntityDeletedEvent;
2206
+ type context_EntityUpdatedEvent = EntityUpdatedEvent;
2207
+ type context_EventMetadata = EventMetadata;
2208
+ type context_ExtendedFields = ExtendedFields;
2209
+ type context_File = File;
2210
+ type context_GetReservationRequest = GetReservationRequest;
2211
+ type context_GetReservationResponse = GetReservationResponse;
2212
+ type context_GetReservationResponseNonNullableFields = GetReservationResponseNonNullableFields;
2213
+ type context_GetReservedPlacesRequest = GetReservedPlacesRequest;
2214
+ type context_GetReservedPlacesResponse = GetReservedPlacesResponse;
2215
+ type context_GetSeatingCategoriesSummaryOptions = GetSeatingCategoriesSummaryOptions;
2216
+ type context_GetSeatingCategoriesSummaryRequest = GetSeatingCategoriesSummaryRequest;
2217
+ type context_GetSeatingCategoriesSummaryResponse = GetSeatingCategoriesSummaryResponse;
2218
+ type context_GetSeatingReservationsSummaryRequest = GetSeatingReservationsSummaryRequest;
2219
+ type context_GetSeatingReservationsSummaryResponse = GetSeatingReservationsSummaryResponse;
2220
+ type context_GetSeatingReservationsSummaryResponseNonNullableFields = GetSeatingReservationsSummaryResponseNonNullableFields;
2221
+ type context_Icon = Icon;
2222
+ declare const context_Icon: typeof Icon;
2223
+ type context_IdentificationData = IdentificationData;
2224
+ type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
2225
+ type context_Image = Image;
2226
+ type context_InvalidateCache = InvalidateCache;
2227
+ type context_InvalidateCacheGetByOneOf = InvalidateCacheGetByOneOf;
2228
+ type context_MessageEnvelope = MessageEnvelope;
2229
+ type context_MultiRowProperties = MultiRowProperties;
2230
+ type context_Numbering = Numbering;
2231
+ declare const context_Numbering: typeof Numbering;
2232
+ type context_Page = Page;
2233
+ type context_Paging = Paging;
2234
+ type context_PagingMetadataV2 = PagingMetadataV2;
2235
+ type context_Place = Place;
2236
+ type context_PlaceReservation = PlaceReservation;
2237
+ type context_PlaceReservationDetails = PlaceReservationDetails;
2238
+ type context_PlaceTypeEnumType = PlaceTypeEnumType;
2239
+ declare const context_PlaceTypeEnumType: typeof PlaceTypeEnumType;
2240
+ type context_Places = Places;
2241
+ type context_Position = Position;
2242
+ declare const context_Position: typeof Position;
2243
+ type context_QuerySeatingReservationRequest = QuerySeatingReservationRequest;
2244
+ type context_QuerySeatingReservationResponse = QuerySeatingReservationResponse;
2245
+ type context_QuerySeatingReservationResponseNonNullableFields = QuerySeatingReservationResponseNonNullableFields;
2246
+ type context_QueryV2 = QueryV2;
2247
+ type context_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
2248
+ type context_RegenerateSummariesRequest = RegenerateSummariesRequest;
2249
+ type context_RegenerateSummariesResponse = RegenerateSummariesResponse;
2250
+ type context_ReservationErrorDetails = ReservationErrorDetails;
2251
+ type context_ReservationOptions = ReservationOptions;
2252
+ type context_ReservationsQueryBuilder = ReservationsQueryBuilder;
2253
+ type context_ReservationsQueryResult = ReservationsQueryResult;
2254
+ type context_RestoreInfo = RestoreInfo;
2255
+ type context_RowElement = RowElement;
2256
+ type context_RowElementUiProperties = RowElementUiProperties;
2257
+ type context_SeatingPlan = SeatingPlan;
2258
+ type context_SeatingPlanCategoriesSummaryUpdated = SeatingPlanCategoriesSummaryUpdated;
2259
+ type context_SeatingPlanUiProperties = SeatingPlanUiProperties;
2260
+ type context_SeatingReservation = SeatingReservation;
2261
+ type context_SeatingReservationCreatedEnvelope = SeatingReservationCreatedEnvelope;
2262
+ type context_SeatingReservationDeletedEnvelope = SeatingReservationDeletedEnvelope;
2263
+ type context_SeatingReservationNonNullableFields = SeatingReservationNonNullableFields;
2264
+ type context_SeatingReservationsSummary = SeatingReservationsSummary;
2265
+ type context_Section = Section;
2266
+ type context_Sequencing = Sequencing;
2267
+ type context_ShapeTypeEnumType = ShapeTypeEnumType;
2268
+ declare const context_ShapeTypeEnumType: typeof ShapeTypeEnumType;
2269
+ type context_SortOrder = SortOrder;
2270
+ declare const context_SortOrder: typeof SortOrder;
2271
+ type context_Sorting = Sorting;
2272
+ type context_Type = Type;
2273
+ declare const context_Type: typeof Type;
2274
+ type context_URI = URI;
2275
+ type context_UnavailablePlaces = UnavailablePlaces;
2276
+ type context_VerticalSequencing = VerticalSequencing;
2277
+ type context_WebhookIdentityType = WebhookIdentityType;
2278
+ declare const context_WebhookIdentityType: typeof WebhookIdentityType;
2279
+ type context__publicOnSeatingReservationCreatedType = _publicOnSeatingReservationCreatedType;
2280
+ type context__publicOnSeatingReservationDeletedType = _publicOnSeatingReservationDeletedType;
91
2281
  declare const context_createSeatingReservation: typeof createSeatingReservation;
92
2282
  declare const context_deleteSeatingReservation: typeof deleteSeatingReservation;
93
2283
  declare const context_getReservation: typeof getReservation;
@@ -97,7 +2287,7 @@ declare const context_onSeatingReservationCreated: typeof onSeatingReservationCr
97
2287
  declare const context_onSeatingReservationDeleted: typeof onSeatingReservationDeleted;
98
2288
  declare const context_querySeatingReservation: typeof querySeatingReservation;
99
2289
  declare namespace context {
100
- export { context_createSeatingReservation as createSeatingReservation, context_deleteSeatingReservation as deleteSeatingReservation, context_getReservation as getReservation, context_getSeatingCategoriesSummary as getSeatingCategoriesSummary, context_getSeatingReservationsSummary as getSeatingReservationsSummary, context_onSeatingReservationCreated as onSeatingReservationCreated, context_onSeatingReservationDeleted as onSeatingReservationDeleted, context_querySeatingReservation as querySeatingReservation };
2290
+ export { type context_ActionEvent as ActionEvent, type context_App as App, type context_BaseEventMetadata as BaseEventMetadata, type context_Category as Category, type context_CategoryDetails as CategoryDetails, type context_CreateSeatingReservationOptions as CreateSeatingReservationOptions, type context_CreateSeatingReservationRequest as CreateSeatingReservationRequest, type context_CreateSeatingReservationResponse as CreateSeatingReservationResponse, type context_CreateSeatingReservationResponseNonNullableFields as CreateSeatingReservationResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_DeleteSeatingPlaceReservationRequest as DeleteSeatingPlaceReservationRequest, type context_DeleteSeatingReservationRequest as DeleteSeatingReservationRequest, type context_DeleteSeatingReservationResponse as DeleteSeatingReservationResponse, type context_DeleteSeatingReservationResponseNonNullableFields as DeleteSeatingReservationResponseNonNullableFields, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Element as Element, type context_ElementGroup as ElementGroup, type context_ElementGroupUiProperties as ElementGroupUiProperties, type context_ElementUiProperties as ElementUiProperties, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_ExtendedFields as ExtendedFields, type context_File as File, type context_GetReservationRequest as GetReservationRequest, type context_GetReservationResponse as GetReservationResponse, type context_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type context_GetReservedPlacesRequest as GetReservedPlacesRequest, type context_GetReservedPlacesResponse as GetReservedPlacesResponse, type context_GetSeatingCategoriesSummaryOptions as GetSeatingCategoriesSummaryOptions, type context_GetSeatingCategoriesSummaryRequest as GetSeatingCategoriesSummaryRequest, type context_GetSeatingCategoriesSummaryResponse as GetSeatingCategoriesSummaryResponse, type context_GetSeatingReservationsSummaryRequest as GetSeatingReservationsSummaryRequest, type context_GetSeatingReservationsSummaryResponse as GetSeatingReservationsSummaryResponse, type context_GetSeatingReservationsSummaryResponseNonNullableFields as GetSeatingReservationsSummaryResponseNonNullableFields, context_Icon as Icon, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_Image as Image, type context_InvalidateCache as InvalidateCache, type context_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type context_MessageEnvelope as MessageEnvelope, type context_MultiRowProperties as MultiRowProperties, context_Numbering as Numbering, type context_Page as Page, type context_Paging as Paging, type context_PagingMetadataV2 as PagingMetadataV2, type context_Place as Place, type context_PlaceReservation as PlaceReservation, type context_PlaceReservationDetails as PlaceReservationDetails, context_PlaceTypeEnumType as PlaceTypeEnumType, type context_Places as Places, context_Position as Position, type context_QuerySeatingReservationRequest as QuerySeatingReservationRequest, type context_QuerySeatingReservationResponse as QuerySeatingReservationResponse, type context_QuerySeatingReservationResponseNonNullableFields as QuerySeatingReservationResponseNonNullableFields, type context_QueryV2 as QueryV2, type context_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context_RegenerateSummariesRequest as RegenerateSummariesRequest, type context_RegenerateSummariesResponse as RegenerateSummariesResponse, type context_ReservationErrorDetails as ReservationErrorDetails, type context_ReservationOptions as ReservationOptions, type context_ReservationsQueryBuilder as ReservationsQueryBuilder, type context_ReservationsQueryResult as ReservationsQueryResult, type context_RestoreInfo as RestoreInfo, type context_RowElement as RowElement, type context_RowElementUiProperties as RowElementUiProperties, type context_SeatingPlan as SeatingPlan, type context_SeatingPlanCategoriesSummaryUpdated as SeatingPlanCategoriesSummaryUpdated, type context_SeatingPlanUiProperties as SeatingPlanUiProperties, type context_SeatingReservation as SeatingReservation, type context_SeatingReservationCreatedEnvelope as SeatingReservationCreatedEnvelope, type context_SeatingReservationDeletedEnvelope as SeatingReservationDeletedEnvelope, type context_SeatingReservationNonNullableFields as SeatingReservationNonNullableFields, type context_SeatingReservationsSummary as SeatingReservationsSummary, type context_Section as Section, type context_Sequencing as Sequencing, context_ShapeTypeEnumType as ShapeTypeEnumType, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_Type as Type, type context_URI as URI, type context_UnavailablePlaces as UnavailablePlaces, type context_VerticalSequencing as VerticalSequencing, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnSeatingReservationCreatedType as _publicOnSeatingReservationCreatedType, type context__publicOnSeatingReservationDeletedType as _publicOnSeatingReservationDeletedType, context_createSeatingReservation as createSeatingReservation, context_deleteSeatingReservation as deleteSeatingReservation, context_getReservation as getReservation, context_getSeatingCategoriesSummary as getSeatingCategoriesSummary, context_getSeatingReservationsSummary as getSeatingReservationsSummary, context_onSeatingReservationCreated as onSeatingReservationCreated, context_onSeatingReservationDeleted as onSeatingReservationDeleted, onSeatingReservationCreated$1 as publicOnSeatingReservationCreated, onSeatingReservationDeleted$1 as publicOnSeatingReservationDeleted, context_querySeatingReservation as querySeatingReservation };
101
2291
  }
102
2292
 
103
2293
  export { context$1 as seatingPlan, context as seatingReservation };