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