@wix/auto_sdk_seatings_seating-reservation 1.0.0

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.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +17 -0
  11. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js +28 -0
  12. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js.map +1 -0
  13. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +11 -0
  14. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js +232 -0
  15. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js.map +1 -0
  16. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +24 -0
  17. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js +142 -0
  18. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +1 -0
  19. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +50 -0
  20. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js +67 -0
  21. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js.map +1 -0
  22. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +923 -0
  23. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js +77 -0
  24. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js.map +1 -0
  25. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts +1098 -0
  26. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js +330 -0
  27. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +17 -0
  39. package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.js +17 -0
  40. package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.js.map +1 -0
  41. package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +11 -0
  42. package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.js +223 -0
  43. package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.js.map +1 -0
  44. package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +24 -0
  45. package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.js +110 -0
  46. package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +1 -0
  47. package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +50 -0
  48. package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.js +50 -0
  49. package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.js.map +1 -0
  50. package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +923 -0
  51. package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.js +74 -0
  52. package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.js.map +1 -0
  53. package/build/es/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts +1098 -0
  54. package/build/es/src/seating-v1-seating-reservation-seating-reservation.universal.js +298 -0
  55. package/build/es/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +17 -0
  66. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js +28 -0
  67. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js.map +1 -0
  68. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +11 -0
  69. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js +232 -0
  70. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js.map +1 -0
  71. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +24 -0
  72. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js +142 -0
  73. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +1 -0
  74. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +50 -0
  75. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js +67 -0
  76. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js.map +1 -0
  77. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +923 -0
  78. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js +77 -0
  79. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js.map +1 -0
  80. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts +1098 -0
  81. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js +330 -0
  82. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +17 -0
  93. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.js +17 -0
  94. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.js.map +1 -0
  95. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +11 -0
  96. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.js +223 -0
  97. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.js.map +1 -0
  98. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +24 -0
  99. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.js +110 -0
  100. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +1 -0
  101. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +50 -0
  102. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.js +50 -0
  103. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.js.map +1 -0
  104. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +923 -0
  105. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.js +74 -0
  106. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.js.map +1 -0
  107. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts +1098 -0
  108. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.js +298 -0
  109. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,923 @@
1
+ export interface SeatingReservation {
2
+ /**
3
+ * The id of the reservation
4
+ * @readonly
5
+ */
6
+ id?: string | null;
7
+ /**
8
+ * The seating plan id
9
+ * @readonly
10
+ */
11
+ seatingPlanId?: string | null;
12
+ /**
13
+ * The external seating plan id
14
+ * @readonly
15
+ */
16
+ externalSeatingPlanId?: string | null;
17
+ /** Reserved places */
18
+ reservedPlaces?: PlaceReservation[];
19
+ /**
20
+ * A client defined external id for cross referencing.
21
+ * Can reference external entities.
22
+ * Format: "{fqdn}:{entity guid}"
23
+ */
24
+ externalId?: string | null;
25
+ /**
26
+ * Revision number, which increments by 1 each time the reservation is updated.
27
+ * @readonly
28
+ */
29
+ revision?: string | null;
30
+ }
31
+ export interface PlaceReservation {
32
+ /** The place id. */
33
+ id?: string;
34
+ /**
35
+ * Number of places in the spot. If not provided - defaults to 1.
36
+ * Used to reserve for more that one place in areas.
37
+ */
38
+ capacity?: number | null;
39
+ /**
40
+ * Optional section label.
41
+ * @readonly
42
+ */
43
+ sectionLabel?: string | null;
44
+ /**
45
+ * Area label.
46
+ * @readonly
47
+ */
48
+ areaLabel?: string | null;
49
+ /**
50
+ * Table label.
51
+ * @readonly
52
+ */
53
+ tableLabel?: string | null;
54
+ /**
55
+ * Row label.
56
+ * @readonly
57
+ */
58
+ rowLabel?: string | null;
59
+ /**
60
+ * Seat label in a row or table.
61
+ * @readonly
62
+ */
63
+ seatLabel?: string | null;
64
+ }
65
+ export interface SeatingPlanCategoriesSummaryUpdated {
66
+ /** Seating plan id */
67
+ seatingPlanId?: string;
68
+ /** External seating plan id */
69
+ externalSeatingPlanId?: string | null;
70
+ /** Ticket counts by category */
71
+ categories?: CategoryDetails[];
72
+ /**
73
+ * Summary revision.
74
+ * @readonly
75
+ */
76
+ revision?: string | null;
77
+ }
78
+ export interface CategoryDetails {
79
+ /**
80
+ * Seating plan id
81
+ * @readonly
82
+ */
83
+ seatingPlanId?: string | null;
84
+ /**
85
+ * External seating plan id
86
+ * @readonly
87
+ */
88
+ externalSeatingPlanId?: string | null;
89
+ /**
90
+ * External category id
91
+ * @readonly
92
+ */
93
+ externalCategoryId?: string | null;
94
+ /**
95
+ * Total capacity in the category
96
+ * @readonly
97
+ */
98
+ totalCapacity?: number | null;
99
+ /**
100
+ * Already reserved capacity
101
+ * @readonly
102
+ */
103
+ reserved?: number | null;
104
+ }
105
+ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
106
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
107
+ metaSiteId?: string;
108
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
109
+ siteId?: string;
110
+ /** Invalidate by App */
111
+ app?: App;
112
+ /** Invalidate by page id */
113
+ page?: Page;
114
+ /** Invalidate by URI path */
115
+ uri?: URI;
116
+ /** Invalidate by file (for media files such as PDFs) */
117
+ file?: File;
118
+ /** tell us why you're invalidating the cache. You don't need to add your app name */
119
+ reason?: string | null;
120
+ /** Is local DS */
121
+ localDc?: boolean;
122
+ hardPurge?: boolean;
123
+ }
124
+ /** @oneof */
125
+ export interface InvalidateCacheGetByOneOf {
126
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
127
+ metaSiteId?: string;
128
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
129
+ siteId?: string;
130
+ /** Invalidate by App */
131
+ app?: App;
132
+ /** Invalidate by page id */
133
+ page?: Page;
134
+ /** Invalidate by URI path */
135
+ uri?: URI;
136
+ /** Invalidate by file (for media files such as PDFs) */
137
+ file?: File;
138
+ }
139
+ export interface App {
140
+ /** The AppDefId */
141
+ appDefId?: string;
142
+ /** The instance Id */
143
+ instanceId?: string;
144
+ }
145
+ export interface Page {
146
+ /** the msid the page is on */
147
+ metaSiteId?: string;
148
+ /** Invalidate by Page ID */
149
+ pageId?: string;
150
+ }
151
+ export interface URI {
152
+ /** the msid the URI is on */
153
+ metaSiteId?: string;
154
+ /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
155
+ uriPath?: string;
156
+ }
157
+ export interface File {
158
+ /** the msid the file is related to */
159
+ metaSiteId?: string;
160
+ /** Invalidate by filename (for media files such as PDFs) */
161
+ fileName?: string;
162
+ }
163
+ export interface CreateSeatingReservationRequest {
164
+ /** A reservation to create */
165
+ reservation?: SeatingReservation;
166
+ }
167
+ export interface CreateSeatingReservationResponse {
168
+ /** Created reservation */
169
+ reservation?: SeatingReservation;
170
+ }
171
+ export interface Places {
172
+ /** Places */
173
+ places?: string[];
174
+ }
175
+ export interface UnavailablePlaces {
176
+ /** Places that cannot be reserved */
177
+ unavailablePlaces?: string[];
178
+ /** Reservation error details */
179
+ reservationErrorDetails?: ReservationErrorDetails[];
180
+ }
181
+ export interface ReservationErrorDetails {
182
+ /** Place */
183
+ id?: string;
184
+ /** Available capacity */
185
+ available?: number;
186
+ /** Requested capacity */
187
+ requested?: number;
188
+ }
189
+ export interface GetReservationRequest {
190
+ /** The id of the reservation to return */
191
+ id: string | null;
192
+ }
193
+ export interface GetReservationResponse {
194
+ /** Created reservation */
195
+ reservation?: SeatingReservation;
196
+ }
197
+ export interface QuerySeatingReservationRequest {
198
+ /** A query object */
199
+ query: QueryV2;
200
+ }
201
+ export interface QueryV2 extends QueryV2PagingMethodOneOf {
202
+ /** Paging options to limit and skip the number of items. */
203
+ paging?: Paging;
204
+ /** 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`. */
205
+ cursorPaging?: CursorPaging;
206
+ /**
207
+ * Filter object.
208
+ *
209
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
210
+ */
211
+ filter?: Record<string, any> | null;
212
+ /**
213
+ * Sort object.
214
+ *
215
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
216
+ */
217
+ sort?: Sorting[];
218
+ /** 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. */
219
+ fields?: string[];
220
+ /** 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. */
221
+ fieldsets?: string[];
222
+ }
223
+ /** @oneof */
224
+ export interface QueryV2PagingMethodOneOf {
225
+ /** Paging options to limit and skip the number of items. */
226
+ paging?: Paging;
227
+ /** 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`. */
228
+ cursorPaging?: CursorPaging;
229
+ }
230
+ export interface Sorting {
231
+ /** Name of the field to sort by. */
232
+ fieldName?: string;
233
+ /** Sort order. */
234
+ order?: SortOrder;
235
+ }
236
+ export declare enum SortOrder {
237
+ ASC = "ASC",
238
+ DESC = "DESC"
239
+ }
240
+ export interface Paging {
241
+ /** Number of items to load. */
242
+ limit?: number | null;
243
+ /** Number of items to skip in the current sort order. */
244
+ offset?: number | null;
245
+ }
246
+ export interface CursorPaging {
247
+ /** Maximum number of items to return in the results. */
248
+ limit?: number | null;
249
+ /**
250
+ * Pointer to the next or previous page in the list of results.
251
+ *
252
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
253
+ * Not relevant for the first request.
254
+ */
255
+ cursor?: string | null;
256
+ }
257
+ export interface QuerySeatingReservationResponse {
258
+ /** Found reservations */
259
+ reservations?: SeatingReservation[];
260
+ /** Paging meta data */
261
+ metadata?: PagingMetadataV2;
262
+ }
263
+ export interface PagingMetadataV2 {
264
+ /** Number of items returned in the response. */
265
+ count?: number | null;
266
+ /** Offset that was requested. */
267
+ offset?: number | null;
268
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
269
+ total?: number | null;
270
+ /** Flag that indicates the server failed to calculate the `total` field. */
271
+ tooManyToCount?: boolean | null;
272
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
273
+ cursors?: Cursors;
274
+ }
275
+ export interface Cursors {
276
+ /** Cursor string pointing to the next page in the list of results. */
277
+ next?: string | null;
278
+ /** Cursor pointing to the previous page in the list of results. */
279
+ prev?: string | null;
280
+ }
281
+ export interface DeleteSeatingReservationRequest {
282
+ /** The id of the reservation to delete */
283
+ id: string | null;
284
+ }
285
+ export interface DeleteSeatingReservationResponse {
286
+ /** The deleted reservation */
287
+ reservation?: SeatingReservation;
288
+ }
289
+ export interface DeleteSeatingPlaceReservationRequest {
290
+ /** The id of the place reservation to delete */
291
+ id?: string | null;
292
+ /** The id of the place reservation's reservation */
293
+ reservationId?: string | null;
294
+ }
295
+ export interface Empty {
296
+ }
297
+ export interface CancelSeatingPlaceReservationsRequest {
298
+ /** The id of the place reservations' reservation */
299
+ reservationId?: string | null;
300
+ /** The place reservations to cancel */
301
+ placeReservations?: PlaceReservationDetails[];
302
+ }
303
+ export interface PlaceReservationDetails {
304
+ placeId?: string;
305
+ occupied?: number;
306
+ }
307
+ export interface CancelSeatingPlaceReservationsResponse {
308
+ /** The reservation with canceled place reservations */
309
+ reservation?: SeatingReservation;
310
+ }
311
+ export interface UpdateSeatingReservationRequest {
312
+ /** A reservation to update */
313
+ reservation?: SeatingReservation;
314
+ }
315
+ export interface UpdateSeatingReservationResponse {
316
+ /** The updated reservation */
317
+ reservation?: SeatingReservation;
318
+ }
319
+ export interface GetReservedPlacesRequest {
320
+ /** Seating plan id */
321
+ id?: string | null;
322
+ }
323
+ export interface GetReservedPlacesResponse {
324
+ /** Reserved places of the plan */
325
+ placeReservations?: PlaceReservation[];
326
+ }
327
+ export interface GetSeatingCategorySummaryRequest {
328
+ /** Seating plan external id */
329
+ externalId?: string;
330
+ }
331
+ export interface GetSeatingCategorySummaryResponse {
332
+ /** Ticket counts by category */
333
+ categories?: CategoryDetails[];
334
+ }
335
+ export interface GetSeatingReservationSummaryRequest {
336
+ /** Seating plan external id */
337
+ externalId: string;
338
+ }
339
+ export interface GetSeatingReservationSummaryResponse {
340
+ plan?: SeatingPlan;
341
+ places?: PlaceReservationDetails[];
342
+ }
343
+ export interface SeatingPlan {
344
+ /**
345
+ * Auto generated unique plan id
346
+ * @readonly
347
+ */
348
+ id?: string | null;
349
+ /**
350
+ * A client defined external id for cross referencing.
351
+ * Can reference external entities.
352
+ * Format: "{fqdn}:{entity guid}"
353
+ */
354
+ externalId?: string | null;
355
+ /** Human friendly plan title */
356
+ title?: string | null;
357
+ /** Sections of the plan. Seating plan is divided in high level sections. */
358
+ sections?: Section[];
359
+ /** Categories for plan element grouping. */
360
+ categories?: Category[];
361
+ /**
362
+ * Seating plan created timestamp.
363
+ * @readonly
364
+ */
365
+ createdDate?: Date | null;
366
+ /**
367
+ * Seating plan updated timestamp.
368
+ * @readonly
369
+ */
370
+ updatedDate?: Date | null;
371
+ /**
372
+ * Total capacity
373
+ * @readonly
374
+ */
375
+ totalCapacity?: number | null;
376
+ /**
377
+ * Total categories
378
+ * @readonly
379
+ */
380
+ totalCategories?: number | null;
381
+ /**
382
+ * Places not assigned to categories
383
+ * @readonly
384
+ */
385
+ uncategorizedPlaces?: Place[];
386
+ /**
387
+ * A version of the seating plan
388
+ * @readonly
389
+ */
390
+ version?: string | null;
391
+ /** Data extensions */
392
+ extendedFields?: ExtendedFields;
393
+ /** Seating Plan UI settings */
394
+ uiProperties?: SeatingPlanUiProperties;
395
+ /** Element groups */
396
+ elementGroups?: ElementGroup[];
397
+ }
398
+ export interface Section {
399
+ /** Unique section id */
400
+ id?: number;
401
+ /** Human readable section title */
402
+ title?: string | null;
403
+ /**
404
+ * Client configuration object
405
+ * @readonly
406
+ */
407
+ config?: Record<string, any> | null;
408
+ /** Elements of the section. */
409
+ elements?: Element[];
410
+ /**
411
+ * Total capacity
412
+ * @readonly
413
+ */
414
+ totalCapacity?: number | null;
415
+ /**
416
+ * Is default section
417
+ * @readonly
418
+ */
419
+ default?: boolean;
420
+ }
421
+ export interface Element {
422
+ /** Unique element id */
423
+ id?: number;
424
+ /** User friendly title/label of the element. */
425
+ title?: string | null;
426
+ /** Element type */
427
+ type?: Type;
428
+ /** Capacity. None for Shape type Element. */
429
+ capacity?: number | null;
430
+ /** Assigned to a category */
431
+ categoryId?: number | null;
432
+ /** A place numbering meta data */
433
+ sequencing?: Sequencing;
434
+ /** Place override (by seq_id) */
435
+ overrides?: Place[];
436
+ /**
437
+ * Final place sequence with overrides
438
+ * @readonly
439
+ */
440
+ places?: Place[];
441
+ /** Element reservation options */
442
+ reservationOptions?: ReservationOptions;
443
+ /** Element UI settings */
444
+ uiProperties?: ElementUiProperties;
445
+ /** Element group id */
446
+ elementGroupId?: number | null;
447
+ /** Multi row element relevant for MULTI_ROW element type */
448
+ multiRowProperties?: MultiRowProperties;
449
+ }
450
+ export declare enum Type {
451
+ AREA = "AREA",
452
+ ROW = "ROW",
453
+ MULTI_ROW = "MULTI_ROW",
454
+ TABLE = "TABLE",
455
+ ROUND_TABLE = "ROUND_TABLE",
456
+ SHAPE = "SHAPE"
457
+ }
458
+ export interface Sequencing {
459
+ /** First seq element */
460
+ startAt?: string;
461
+ /** Finite generated seq of labels */
462
+ labels?: string[];
463
+ /** If true - direction right to left. Otherwise left to right. */
464
+ reverseOrder?: boolean | null;
465
+ }
466
+ export interface Place {
467
+ /** Local id of the place in the sequence */
468
+ index?: number;
469
+ /**
470
+ * Generated composite unique id in the seating plan.
471
+ * @readonly
472
+ */
473
+ id?: string | null;
474
+ /** Unique label of the place */
475
+ label?: string;
476
+ /**
477
+ * Max capacity per place
478
+ * @readonly
479
+ */
480
+ capacity?: number | null;
481
+ /**
482
+ * Type of the parent element
483
+ * @readonly
484
+ */
485
+ elementType?: Type;
486
+ /**
487
+ * Assigned category id
488
+ * @readonly
489
+ */
490
+ categoryId?: number | null;
491
+ /** Place type */
492
+ type?: PlaceTypeEnumType;
493
+ }
494
+ export declare enum PlaceTypeEnumType {
495
+ UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
496
+ STANDARD = "STANDARD",
497
+ WHEELCHAIR = "WHEELCHAIR",
498
+ ACCESSIBLE = "ACCESSIBLE",
499
+ COMPANION = "COMPANION",
500
+ OBSTRUCTED = "OBSTRUCTED",
501
+ DISCOUNT = "DISCOUNT"
502
+ }
503
+ export interface ReservationOptions {
504
+ /** Indicates whether the entire element must be reserved */
505
+ reserveWholeElement?: boolean;
506
+ }
507
+ export interface ElementUiProperties {
508
+ x?: number | null;
509
+ y?: number | null;
510
+ zIndex?: number | null;
511
+ width?: number | null;
512
+ height?: number | null;
513
+ rotationAngle?: number | null;
514
+ shapeType?: ShapeTypeEnumType;
515
+ fontSize?: number | null;
516
+ cornerRadius?: number | null;
517
+ seatSpacing?: number | null;
518
+ hideLabel?: boolean | null;
519
+ labelPosition?: Position;
520
+ seatLayout?: number[];
521
+ emptyTopSeatSpaces?: number | null;
522
+ /** needs research */
523
+ text?: string | null;
524
+ /** #F0F0F0 */
525
+ color?: string | null;
526
+ /** #F0F0F0 */
527
+ fillColor?: string | null;
528
+ /** #F0F0F0 */
529
+ strokeColor?: string | null;
530
+ /** px */
531
+ strokeWidth?: number | null;
532
+ opacity?: number | null;
533
+ icon?: Icon;
534
+ image?: Image;
535
+ seatNumbering?: Numbering;
536
+ }
537
+ export declare enum ShapeTypeEnumType {
538
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
539
+ TEXT = "TEXT",
540
+ RECTANGLE = "RECTANGLE",
541
+ ELLIPSE = "ELLIPSE",
542
+ LINE = "LINE",
543
+ ICON = "ICON",
544
+ IMAGE = "IMAGE"
545
+ }
546
+ export declare enum Position {
547
+ UNKNOWN_POSITION = "UNKNOWN_POSITION",
548
+ LEFT = "LEFT",
549
+ RIGHT = "RIGHT",
550
+ BOTH = "BOTH",
551
+ NONE = "NONE"
552
+ }
553
+ export declare enum Icon {
554
+ UNKNOWN_ICON = "UNKNOWN_ICON",
555
+ ENTER = "ENTER",
556
+ EXIT = "EXIT",
557
+ DRINKS = "DRINKS",
558
+ WC = "WC",
559
+ WC_MEN = "WC_MEN",
560
+ WC_WOMEN = "WC_WOMEN",
561
+ FOOD = "FOOD",
562
+ STAIRS = "STAIRS",
563
+ ELEVATOR = "ELEVATOR",
564
+ SMOKING = "SMOKING",
565
+ CHECKROOM = "CHECKROOM",
566
+ STAGE = "STAGE"
567
+ }
568
+ export interface Image {
569
+ /** WixMedia image ID. */
570
+ id?: string;
571
+ /**
572
+ * Original image height.
573
+ * @readonly
574
+ */
575
+ height?: number;
576
+ /**
577
+ * Original image width.
578
+ * @readonly
579
+ */
580
+ width?: number;
581
+ /**
582
+ * WixMedia image URI.
583
+ * @deprecated
584
+ */
585
+ uri?: string | null;
586
+ }
587
+ export declare enum Numbering {
588
+ UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
589
+ NUMERIC = "NUMERIC",
590
+ ODD_EVEN = "ODD_EVEN",
591
+ ALPHABETICAL = "ALPHABETICAL"
592
+ }
593
+ export interface MultiRowProperties {
594
+ /** Individual rows of the multi row element */
595
+ rows?: RowElement[];
596
+ /** Meta data for vertical labeling */
597
+ verticalSequencing?: VerticalSequencing;
598
+ /** Row spacing */
599
+ rowSpacing?: number | null;
600
+ /** Amount of seats in the row */
601
+ seatAmount?: number | null;
602
+ }
603
+ export interface RowElement {
604
+ /** Unique row id */
605
+ id?: number;
606
+ /** User friendly title/label of the row */
607
+ title?: string | null;
608
+ /** Row capacity */
609
+ capacity?: number | null;
610
+ /** Assigned to a category */
611
+ categoryId?: number | null;
612
+ /** A place numbering meta data for a single row */
613
+ sequencing?: Sequencing;
614
+ /** Row UI settings */
615
+ uiProperties?: RowElementUiProperties;
616
+ }
617
+ export interface RowElementUiProperties {
618
+ /** Relative x position to the parent element */
619
+ relativeX?: number | null;
620
+ /** Width of the row */
621
+ width?: number | null;
622
+ /** Amount of seats in the row */
623
+ seatAmount?: number | null;
624
+ /** Seat spacing */
625
+ seatSpacing?: number | null;
626
+ /** Label position */
627
+ labelPosition?: Position;
628
+ /** Seat numbering */
629
+ seatNumbering?: Numbering;
630
+ }
631
+ export interface VerticalSequencing {
632
+ /** First seq element */
633
+ startAt?: string;
634
+ /** Row numbering */
635
+ rowNumbering?: Numbering;
636
+ /** If true - direction bottom to top. Otherwise top to bottom. */
637
+ reverseOrder?: boolean | null;
638
+ }
639
+ export interface Category {
640
+ /** Local category id within the seating plan */
641
+ id?: number;
642
+ /**
643
+ * A client defined external id for cross referencing.
644
+ * Can reference external entities.
645
+ * Format: "{entity_fqdn}:{entity_id}"
646
+ */
647
+ externalId?: string | null;
648
+ /** Category label */
649
+ title?: string;
650
+ /**
651
+ * Client configuration object
652
+ * @readonly
653
+ */
654
+ config?: Record<string, any> | null;
655
+ /**
656
+ * Total capacity
657
+ * @readonly
658
+ */
659
+ totalCapacity?: number | null;
660
+ /**
661
+ * Possible places
662
+ * @readonly
663
+ */
664
+ places?: Place[];
665
+ }
666
+ export interface ExtendedFields {
667
+ /**
668
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
669
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
670
+ *
671
+ * You can only access fields for which you have the appropriate permissions.
672
+ *
673
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
674
+ */
675
+ namespaces?: Record<string, Record<string, any>>;
676
+ }
677
+ export interface SeatingPlanUiProperties {
678
+ /** #F0F0F0 */
679
+ backgroundColor?: string | null;
680
+ backgroundOpacity?: number | null;
681
+ }
682
+ export interface ElementGroup {
683
+ /** Unique element group id */
684
+ id?: number;
685
+ /** Parent group id */
686
+ parentElementGroupId?: number | null;
687
+ /** Element group UI settings */
688
+ uiProperties?: ElementGroupUiProperties;
689
+ }
690
+ export interface ElementGroupUiProperties {
691
+ /** x position of the group */
692
+ x?: number | null;
693
+ /** y position of the group */
694
+ y?: number | null;
695
+ /** width of the group */
696
+ width?: number | null;
697
+ /** height of the group */
698
+ height?: number | null;
699
+ /** rotation angle of the group */
700
+ rotationAngle?: number | null;
701
+ }
702
+ export interface RegenerateSummariesRequest {
703
+ /** Seating plan id */
704
+ planId?: string | null;
705
+ }
706
+ export interface RegenerateSummariesResponse {
707
+ seatingReservationsSummary?: SeatingReservationsSummary;
708
+ categories?: CategoryDetails[];
709
+ }
710
+ export interface SeatingReservationsSummary {
711
+ places?: PlaceReservationDetails[];
712
+ }
713
+ export interface DomainEvent extends DomainEventBodyOneOf {
714
+ createdEvent?: EntityCreatedEvent;
715
+ updatedEvent?: EntityUpdatedEvent;
716
+ deletedEvent?: EntityDeletedEvent;
717
+ actionEvent?: ActionEvent;
718
+ /**
719
+ * Unique event ID.
720
+ * Allows clients to ignore duplicate webhooks.
721
+ */
722
+ id?: string;
723
+ /**
724
+ * Assumes actions are also always typed to an entity_type
725
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
726
+ */
727
+ entityFqdn?: string;
728
+ /**
729
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
730
+ * This is although the created/updated/deleted notion is duplication of the oneof types
731
+ * Example: created/updated/deleted/started/completed/email_opened
732
+ */
733
+ slug?: string;
734
+ /** ID of the entity associated with the event. */
735
+ entityId?: string;
736
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
737
+ eventTime?: Date | null;
738
+ /**
739
+ * Whether the event was triggered as a result of a privacy regulation application
740
+ * (for example, GDPR).
741
+ */
742
+ triggeredByAnonymizeRequest?: boolean | null;
743
+ /** If present, indicates the action that triggered the event. */
744
+ originatedFrom?: string | null;
745
+ /**
746
+ * A sequence number defining the order of updates to the underlying entity.
747
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
748
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
749
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
750
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
751
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
752
+ */
753
+ entityEventSequence?: string | null;
754
+ }
755
+ /** @oneof */
756
+ export interface DomainEventBodyOneOf {
757
+ createdEvent?: EntityCreatedEvent;
758
+ updatedEvent?: EntityUpdatedEvent;
759
+ deletedEvent?: EntityDeletedEvent;
760
+ actionEvent?: ActionEvent;
761
+ }
762
+ export interface EntityCreatedEvent {
763
+ entityAsJson?: string;
764
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
765
+ restoreInfo?: RestoreInfo;
766
+ }
767
+ export interface RestoreInfo {
768
+ deletedDate?: Date | null;
769
+ }
770
+ export interface EntityUpdatedEvent {
771
+ /**
772
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
773
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
774
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
775
+ */
776
+ currentEntityAsJson?: string;
777
+ }
778
+ export interface EntityDeletedEvent {
779
+ /** Entity that was deleted */
780
+ deletedEntityAsJson?: string | null;
781
+ }
782
+ export interface ActionEvent {
783
+ bodyAsJson?: string;
784
+ }
785
+ export interface MessageEnvelope {
786
+ /** App instance ID. */
787
+ instanceId?: string | null;
788
+ /** Event type. */
789
+ eventType?: string;
790
+ /** The identification type and identity data. */
791
+ identity?: IdentificationData;
792
+ /** Stringify payload. */
793
+ data?: string;
794
+ }
795
+ export interface IdentificationData extends IdentificationDataIdOneOf {
796
+ /** ID of a site visitor that has not logged in to the site. */
797
+ anonymousVisitorId?: string;
798
+ /** ID of a site visitor that has logged in to the site. */
799
+ memberId?: string;
800
+ /** ID of a Wix user (site owner, contributor, etc.). */
801
+ wixUserId?: string;
802
+ /** ID of an app. */
803
+ appId?: string;
804
+ /** @readonly */
805
+ identityType?: WebhookIdentityType;
806
+ }
807
+ /** @oneof */
808
+ export interface IdentificationDataIdOneOf {
809
+ /** ID of a site visitor that has not logged in to the site. */
810
+ anonymousVisitorId?: string;
811
+ /** ID of a site visitor that has logged in to the site. */
812
+ memberId?: string;
813
+ /** ID of a Wix user (site owner, contributor, etc.). */
814
+ wixUserId?: string;
815
+ /** ID of an app. */
816
+ appId?: string;
817
+ }
818
+ export declare enum WebhookIdentityType {
819
+ UNKNOWN = "UNKNOWN",
820
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
821
+ MEMBER = "MEMBER",
822
+ WIX_USER = "WIX_USER",
823
+ APP = "APP"
824
+ }
825
+ interface PlaceReservationNonNullableFields {
826
+ id: string;
827
+ }
828
+ interface SeatingReservationNonNullableFields {
829
+ reservedPlaces: PlaceReservationNonNullableFields[];
830
+ }
831
+ export interface CreateSeatingReservationResponseNonNullableFields {
832
+ reservation?: SeatingReservationNonNullableFields;
833
+ }
834
+ export interface GetReservationResponseNonNullableFields {
835
+ reservation?: SeatingReservationNonNullableFields;
836
+ }
837
+ export interface QuerySeatingReservationResponseNonNullableFields {
838
+ reservations: SeatingReservationNonNullableFields[];
839
+ }
840
+ export interface DeleteSeatingReservationResponseNonNullableFields {
841
+ reservation?: SeatingReservationNonNullableFields;
842
+ }
843
+ interface SequencingNonNullableFields {
844
+ startAt: string;
845
+ labels: string[];
846
+ }
847
+ interface PlaceNonNullableFields {
848
+ index: number;
849
+ label: string;
850
+ elementType: Type;
851
+ type: PlaceTypeEnumType;
852
+ }
853
+ interface ReservationOptionsNonNullableFields {
854
+ reserveWholeElement: boolean;
855
+ }
856
+ interface ImageNonNullableFields {
857
+ id: string;
858
+ height: number;
859
+ width: number;
860
+ }
861
+ interface ElementUiPropertiesNonNullableFields {
862
+ shapeType: ShapeTypeEnumType;
863
+ labelPosition: Position;
864
+ seatLayout: number[];
865
+ icon: Icon;
866
+ image?: ImageNonNullableFields;
867
+ seatNumbering: Numbering;
868
+ }
869
+ interface RowElementUiPropertiesNonNullableFields {
870
+ labelPosition: Position;
871
+ seatNumbering: Numbering;
872
+ }
873
+ interface RowElementNonNullableFields {
874
+ id: number;
875
+ sequencing?: SequencingNonNullableFields;
876
+ uiProperties?: RowElementUiPropertiesNonNullableFields;
877
+ }
878
+ interface VerticalSequencingNonNullableFields {
879
+ startAt: string;
880
+ rowNumbering: Numbering;
881
+ }
882
+ interface MultiRowPropertiesNonNullableFields {
883
+ rows: RowElementNonNullableFields[];
884
+ verticalSequencing?: VerticalSequencingNonNullableFields;
885
+ }
886
+ interface ElementNonNullableFields {
887
+ id: number;
888
+ type: Type;
889
+ sequencing?: SequencingNonNullableFields;
890
+ overrides: PlaceNonNullableFields[];
891
+ places: PlaceNonNullableFields[];
892
+ reservationOptions?: ReservationOptionsNonNullableFields;
893
+ uiProperties?: ElementUiPropertiesNonNullableFields;
894
+ multiRowProperties?: MultiRowPropertiesNonNullableFields;
895
+ }
896
+ interface SectionNonNullableFields {
897
+ id: number;
898
+ elements: ElementNonNullableFields[];
899
+ default: boolean;
900
+ }
901
+ interface CategoryNonNullableFields {
902
+ id: number;
903
+ title: string;
904
+ places: PlaceNonNullableFields[];
905
+ }
906
+ interface ElementGroupNonNullableFields {
907
+ id: number;
908
+ }
909
+ interface SeatingPlanNonNullableFields {
910
+ sections: SectionNonNullableFields[];
911
+ categories: CategoryNonNullableFields[];
912
+ uncategorizedPlaces: PlaceNonNullableFields[];
913
+ elementGroups: ElementGroupNonNullableFields[];
914
+ }
915
+ interface PlaceReservationDetailsNonNullableFields {
916
+ placeId: string;
917
+ occupied: number;
918
+ }
919
+ export interface GetSeatingReservationSummaryResponseNonNullableFields {
920
+ plan?: SeatingPlanNonNullableFields;
921
+ places: PlaceReservationDetailsNonNullableFields[];
922
+ }
923
+ export {};