@wix/auto_sdk_seatings_seating-plan 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/build/cjs/index.d.ts +96 -1
  2. package/build/cjs/index.js +1310 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/meta.d.ts +783 -1
  5. package/build/cjs/meta.js +860 -15
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/{internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.d.ts → cjs/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.ts} +122 -264
  8. package/build/es/index.d.mts +96 -0
  9. package/build/es/index.mjs +1269 -0
  10. package/build/es/index.mjs.map +1 -0
  11. package/build/es/{src/seating-v1-seating-plan-seating-plan.types.d.ts → meta.d.mts} +108 -285
  12. package/build/es/meta.mjs +828 -0
  13. package/build/es/meta.mjs.map +1 -0
  14. package/build/{internal/es/src/seating-v1-seating-plan-seating-plan.universal.d.ts → es/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.mts} +122 -264
  15. package/build/internal/cjs/index.d.ts +96 -1
  16. package/build/internal/cjs/index.js +1310 -15
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/meta.d.ts +783 -1
  19. package/build/internal/cjs/meta.js +860 -15
  20. package/build/internal/cjs/meta.js.map +1 -1
  21. package/build/{cjs/src/seating-v1-seating-plan-seating-plan.universal.d.ts → internal/cjs/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.ts} +122 -264
  22. package/build/internal/es/index.d.mts +96 -0
  23. package/build/internal/es/index.mjs +1269 -0
  24. package/build/internal/es/index.mjs.map +1 -0
  25. package/build/internal/{cjs/src/seating-v1-seating-plan-seating-plan.types.d.ts → es/meta.d.mts} +108 -285
  26. package/build/internal/es/meta.mjs +828 -0
  27. package/build/internal/es/meta.mjs.map +1 -0
  28. package/build/{es/src/seating-v1-seating-plan-seating-plan.universal.d.ts → internal/es/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.mts} +122 -264
  29. package/package.json +10 -9
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
  34. package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.js +0 -35
  35. package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  36. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  37. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.js +0 -673
  38. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  39. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  40. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.js +0 -199
  41. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  42. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  43. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.js +0 -204
  44. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  45. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.d.ts +0 -960
  46. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.js +0 -85
  47. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  48. package/build/cjs/src/seating-v1-seating-plan-seating-plan.universal.js +0 -487
  49. package/build/cjs/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
  50. package/build/es/index.d.ts +0 -1
  51. package/build/es/index.js +0 -2
  52. package/build/es/index.js.map +0 -1
  53. package/build/es/index.typings.d.ts +0 -1
  54. package/build/es/index.typings.js +0 -2
  55. package/build/es/index.typings.js.map +0 -1
  56. package/build/es/meta.d.ts +0 -1
  57. package/build/es/meta.js +0 -2
  58. package/build/es/meta.js.map +0 -1
  59. package/build/es/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
  60. package/build/es/src/seating-v1-seating-plan-seating-plan.context.js +0 -23
  61. package/build/es/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  62. package/build/es/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  63. package/build/es/src/seating-v1-seating-plan-seating-plan.http.js +0 -661
  64. package/build/es/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  65. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  66. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.js +0 -164
  67. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  68. package/build/es/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  69. package/build/es/src/seating-v1-seating-plan-seating-plan.public.js +0 -183
  70. package/build/es/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  71. package/build/es/src/seating-v1-seating-plan-seating-plan.types.js +0 -82
  72. package/build/es/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  73. package/build/es/src/seating-v1-seating-plan-seating-plan.universal.js +0 -452
  74. package/build/es/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
  75. package/build/internal/cjs/index.typings.d.ts +0 -1
  76. package/build/internal/cjs/index.typings.js +0 -18
  77. package/build/internal/cjs/index.typings.js.map +0 -1
  78. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
  79. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.js +0 -35
  80. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  81. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  82. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.js +0 -673
  83. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  84. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  85. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.js +0 -199
  86. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  87. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  88. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.js +0 -204
  89. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  90. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.types.js +0 -85
  91. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  92. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.js +0 -487
  93. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
  104. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.js +0 -23
  105. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  106. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  107. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.js +0 -661
  108. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  109. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  110. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.js +0 -164
  111. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  112. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  113. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.js +0 -183
  114. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  115. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.d.ts +0 -960
  116. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.js +0 -82
  117. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  118. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.js +0 -452
  119. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
@@ -1,4 +1,6 @@
1
- export interface SeatingPlan {
1
+ import { z as CreateSeatingPlanRequest$1, A as CreateSeatingPlanResponse$1, H as UpdateSeatingPlanRequest$1, J as UpdateSeatingPlanResponse$1, K as CopySeatingPlanRequest$1, a as CopySeatingPlanResponse$1, L as QuerySeatingPlanRequest$1, $ as QuerySeatingPlanResponse$1, a0 as GetSeatingPlanRequest$1, a2 as GetSeatingPlanResponse$1, a3 as FindSeatingPlanRequest$1, b as FindSeatingPlanResponse$1, a4 as DeleteSeatingPlanRequest$1, D as DeleteSeatingPlanResponse$1, ap as UpdateSeatingPlanThumbnailRequest$1, d as UpdateSeatingPlanThumbnailResponse$1, aq as GetSeatingPlanThumbnailRequest$1, e as GetSeatingPlanThumbnailResponse$1 } from './seating-v1-seating-plan-seating-plan.universal-BphMjTRF.mjs';
2
+
3
+ interface SeatingPlan {
2
4
  /**
3
5
  * Auto generated unique plan id
4
6
  * @format GUID
@@ -70,7 +72,7 @@ export interface SeatingPlan {
70
72
  */
71
73
  elementGroups?: ElementGroup[];
72
74
  }
73
- export interface Section {
75
+ interface Section {
74
76
  /** Unique section id */
75
77
  id?: number;
76
78
  /**
@@ -100,7 +102,7 @@ export interface Section {
100
102
  */
101
103
  default?: boolean;
102
104
  }
103
- export interface Element {
105
+ interface Element {
104
106
  /**
105
107
  * Unique element id
106
108
  * @min 1
@@ -113,7 +115,7 @@ export interface Element {
113
115
  */
114
116
  title?: string | null;
115
117
  /** Element type */
116
- type?: Type;
118
+ type?: TypeWithLiterals;
117
119
  /**
118
120
  * Capacity. None for Shape type Element.
119
121
  * @min 1
@@ -144,7 +146,7 @@ export interface Element {
144
146
  /** Multi row element relevant for MULTI_ROW element type */
145
147
  multiRowProperties?: MultiRowProperties;
146
148
  }
147
- export declare enum Type {
149
+ declare enum Type {
148
150
  AREA = "AREA",
149
151
  ROW = "ROW",
150
152
  MULTI_ROW = "MULTI_ROW",
@@ -152,7 +154,9 @@ export declare enum Type {
152
154
  ROUND_TABLE = "ROUND_TABLE",
153
155
  SHAPE = "SHAPE"
154
156
  }
155
- export interface Sequencing {
157
+ /** @enumType */
158
+ type TypeWithLiterals = Type | 'AREA' | 'ROW' | 'MULTI_ROW' | 'TABLE' | 'ROUND_TABLE' | 'SHAPE';
159
+ interface Sequencing {
156
160
  /**
157
161
  * First seq element
158
162
  * @minLength 1
@@ -167,7 +171,7 @@ export interface Sequencing {
167
171
  /** If true - direction right to left. Otherwise left to right. */
168
172
  reverseOrder?: boolean | null;
169
173
  }
170
- export interface Place {
174
+ interface Place {
171
175
  /** Local id of the place in the sequence */
172
176
  index?: number;
173
177
  /**
@@ -190,16 +194,16 @@ export interface Place {
190
194
  * Type of the parent element
191
195
  * @readonly
192
196
  */
193
- elementType?: Type;
197
+ elementType?: TypeWithLiterals;
194
198
  /**
195
199
  * Assigned category id
196
200
  * @readonly
197
201
  */
198
202
  categoryId?: number | null;
199
203
  /** Place type */
200
- type?: PlaceTypeEnumType;
204
+ type?: PlaceTypeEnumTypeWithLiterals;
201
205
  }
202
- export declare enum PlaceTypeEnumType {
206
+ declare enum PlaceTypeEnumType {
203
207
  UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
204
208
  STANDARD = "STANDARD",
205
209
  WHEELCHAIR = "WHEELCHAIR",
@@ -208,11 +212,13 @@ export declare enum PlaceTypeEnumType {
208
212
  OBSTRUCTED = "OBSTRUCTED",
209
213
  DISCOUNT = "DISCOUNT"
210
214
  }
211
- export interface ReservationOptions {
215
+ /** @enumType */
216
+ type PlaceTypeEnumTypeWithLiterals = PlaceTypeEnumType | 'UNKNOWN_PROPERTY' | 'STANDARD' | 'WHEELCHAIR' | 'ACCESSIBLE' | 'COMPANION' | 'OBSTRUCTED' | 'DISCOUNT';
217
+ interface ReservationOptions {
212
218
  /** Indicates whether the entire element must be reserved */
213
219
  reserveWholeElement?: boolean;
214
220
  }
215
- export interface ElementUiProperties {
221
+ interface ElementUiProperties {
216
222
  /**
217
223
  * @min -1000000
218
224
  * @max 1000000
@@ -237,7 +243,7 @@ export interface ElementUiProperties {
237
243
  * @max 180
238
244
  */
239
245
  rotationAngle?: number | null;
240
- shapeType?: ShapeTypeEnumType;
246
+ shapeType?: ShapeTypeEnumTypeWithLiterals;
241
247
  /**
242
248
  * @min 10
243
249
  * @max 176
@@ -251,7 +257,7 @@ export interface ElementUiProperties {
251
257
  */
252
258
  seatSpacing?: number | null;
253
259
  hideLabel?: boolean | null;
254
- labelPosition?: Position;
260
+ labelPosition?: PositionWithLiterals;
255
261
  seatLayout?: number[];
256
262
  /** @max 50 */
257
263
  emptyTopSeatSpaces?: number | null;
@@ -284,11 +290,11 @@ export interface ElementUiProperties {
284
290
  strokeWidth?: number | null;
285
291
  /** @max 100 */
286
292
  opacity?: number | null;
287
- icon?: Icon;
293
+ icon?: IconWithLiterals;
288
294
  image?: Image;
289
- seatNumbering?: Numbering;
295
+ seatNumbering?: NumberingWithLiterals;
290
296
  }
291
- export declare enum ShapeTypeEnumType {
297
+ declare enum ShapeTypeEnumType {
292
298
  UNKNOWN_TYPE = "UNKNOWN_TYPE",
293
299
  TEXT = "TEXT",
294
300
  RECTANGLE = "RECTANGLE",
@@ -297,14 +303,18 @@ export declare enum ShapeTypeEnumType {
297
303
  ICON = "ICON",
298
304
  IMAGE = "IMAGE"
299
305
  }
300
- export declare enum Position {
306
+ /** @enumType */
307
+ type ShapeTypeEnumTypeWithLiterals = ShapeTypeEnumType | 'UNKNOWN_TYPE' | 'TEXT' | 'RECTANGLE' | 'ELLIPSE' | 'LINE' | 'ICON' | 'IMAGE';
308
+ declare enum Position {
301
309
  UNKNOWN_POSITION = "UNKNOWN_POSITION",
302
310
  LEFT = "LEFT",
303
311
  RIGHT = "RIGHT",
304
312
  BOTH = "BOTH",
305
313
  NONE = "NONE"
306
314
  }
307
- export declare enum Icon {
315
+ /** @enumType */
316
+ type PositionWithLiterals = Position | 'UNKNOWN_POSITION' | 'LEFT' | 'RIGHT' | 'BOTH' | 'NONE';
317
+ declare enum Icon {
308
318
  UNKNOWN_ICON = "UNKNOWN_ICON",
309
319
  ENTER = "ENTER",
310
320
  EXIT = "EXIT",
@@ -319,7 +329,9 @@ export declare enum Icon {
319
329
  CHECKROOM = "CHECKROOM",
320
330
  STAGE = "STAGE"
321
331
  }
322
- export interface Image {
332
+ /** @enumType */
333
+ type IconWithLiterals = Icon | 'UNKNOWN_ICON' | 'ENTER' | 'EXIT' | 'DRINKS' | 'WC' | 'WC_MEN' | 'WC_WOMEN' | 'FOOD' | 'STAIRS' | 'ELEVATOR' | 'SMOKING' | 'CHECKROOM' | 'STAGE';
334
+ interface Image {
323
335
  /** WixMedia image ID. */
324
336
  id?: string;
325
337
  /**
@@ -338,13 +350,15 @@ export interface Image {
338
350
  */
339
351
  uri?: string | null;
340
352
  }
341
- export declare enum Numbering {
353
+ declare enum Numbering {
342
354
  UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
343
355
  NUMERIC = "NUMERIC",
344
356
  ODD_EVEN = "ODD_EVEN",
345
357
  ALPHABETICAL = "ALPHABETICAL"
346
358
  }
347
- export interface MultiRowProperties {
359
+ /** @enumType */
360
+ type NumberingWithLiterals = Numbering | 'UNKNOWN_NUMBERING' | 'NUMERIC' | 'ODD_EVEN' | 'ALPHABETICAL';
361
+ interface MultiRowProperties {
348
362
  /**
349
363
  * Individual rows of the multi row element
350
364
  * @maxSize 1000
@@ -364,7 +378,7 @@ export interface MultiRowProperties {
364
378
  */
365
379
  seatAmount?: number | null;
366
380
  }
367
- export interface RowElement {
381
+ interface RowElement {
368
382
  /**
369
383
  * Unique row id
370
384
  * @min 1
@@ -389,7 +403,7 @@ export interface RowElement {
389
403
  /** Row UI settings */
390
404
  uiProperties?: RowElementUiProperties;
391
405
  }
392
- export interface RowElementUiProperties {
406
+ interface RowElementUiProperties {
393
407
  /**
394
408
  * Relative x position to the parent element
395
409
  * @min -1000000
@@ -413,11 +427,11 @@ export interface RowElementUiProperties {
413
427
  */
414
428
  seatSpacing?: number | null;
415
429
  /** Label position */
416
- labelPosition?: Position;
430
+ labelPosition?: PositionWithLiterals;
417
431
  /** Seat numbering */
418
- seatNumbering?: Numbering;
432
+ seatNumbering?: NumberingWithLiterals;
419
433
  }
420
- export interface VerticalSequencing {
434
+ interface VerticalSequencing {
421
435
  /**
422
436
  * First seq element
423
437
  * @minLength 1
@@ -425,11 +439,11 @@ export interface VerticalSequencing {
425
439
  */
426
440
  startAt?: string;
427
441
  /** Row numbering */
428
- rowNumbering?: Numbering;
442
+ rowNumbering?: NumberingWithLiterals;
429
443
  /** If true - direction bottom to top. Otherwise top to bottom. */
430
444
  reverseOrder?: boolean | null;
431
445
  }
432
- export interface Category {
446
+ interface Category {
433
447
  /**
434
448
  * Local category id within the seating plan
435
449
  * @min 1
@@ -466,7 +480,7 @@ export interface Category {
466
480
  */
467
481
  places?: Place[];
468
482
  }
469
- export interface ExtendedFields {
483
+ interface ExtendedFields {
470
484
  /**
471
485
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
472
486
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -477,7 +491,7 @@ export interface ExtendedFields {
477
491
  */
478
492
  namespaces?: Record<string, Record<string, any>>;
479
493
  }
480
- export interface SeatingPlanUiProperties {
494
+ interface SeatingPlanUiProperties {
481
495
  /**
482
496
  * #F0F0F0
483
497
  * @format COLOR_HEX
@@ -486,7 +500,7 @@ export interface SeatingPlanUiProperties {
486
500
  /** @max 100 */
487
501
  backgroundOpacity?: number | null;
488
502
  }
489
- export interface ElementGroup {
503
+ interface ElementGroup {
490
504
  /**
491
505
  * Unique element group id
492
506
  * @min 1
@@ -497,7 +511,7 @@ export interface ElementGroup {
497
511
  /** Element group UI settings */
498
512
  uiProperties?: ElementGroupUiProperties;
499
513
  }
500
- export interface ElementGroupUiProperties {
514
+ interface ElementGroupUiProperties {
501
515
  /**
502
516
  * x position of the group
503
517
  * @min -1000000
@@ -527,33 +541,25 @@ export interface ElementGroupUiProperties {
527
541
  */
528
542
  rotationAngle?: number | null;
529
543
  }
530
- export interface CreateSeatingPlanRequest {
544
+ interface CreateSeatingPlanRequest {
531
545
  /** A plan to be created */
532
546
  plan: SeatingPlan;
533
547
  }
534
- export interface CreateSeatingPlanResponse {
548
+ interface CreateSeatingPlanResponse {
535
549
  /** The created plan */
536
550
  plan?: SeatingPlan;
537
551
  }
538
- export interface CapacityExceededViolation {
539
- /** Max allowed capacity */
540
- maxCapacity?: number;
541
- /** Invalid capacity */
542
- capacity?: number;
543
- /** The element id */
544
- elementId?: number | null;
545
- }
546
- export interface UpdateSeatingPlanRequest {
552
+ interface UpdateSeatingPlanRequest {
547
553
  /** The plan updates */
548
554
  plan?: SeatingPlan;
549
555
  /** A set of field paths, specifying which parts of seating plan to update */
550
556
  fields?: string[];
551
557
  }
552
- export interface UpdateSeatingPlanResponse {
558
+ interface UpdateSeatingPlanResponse {
553
559
  /** The updated plan */
554
560
  plan?: SeatingPlan;
555
561
  }
556
- export interface CopySeatingPlanRequest {
562
+ interface CopySeatingPlanRequest {
557
563
  /**
558
564
  * The id of the plan to be copied
559
565
  * @format GUID
@@ -572,20 +578,20 @@ export interface CopySeatingPlanRequest {
572
578
  */
573
579
  externalId: string | null;
574
580
  }
575
- export interface CopySeatingPlanResponse {
581
+ interface CopySeatingPlanResponse {
576
582
  /** The copied plan */
577
583
  plan?: SeatingPlan;
578
584
  }
579
- export interface QuerySeatingPlanRequest {
585
+ interface QuerySeatingPlanRequest {
580
586
  /**
581
587
  * Generic query object
582
588
  * Possible fieldsets: "elements", "categories", "places", "config".
583
589
  */
584
590
  query: QueryV2;
585
591
  /** A fieldset for the response */
586
- fieldset?: Fieldset[];
592
+ fieldset?: FieldsetWithLiterals[];
587
593
  }
588
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
594
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
589
595
  /** Paging options to limit and skip the number of items. */
590
596
  paging?: Paging;
591
597
  /** 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`. */
@@ -608,32 +614,34 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
608
614
  fieldsets?: string[];
609
615
  }
610
616
  /** @oneof */
611
- export interface QueryV2PagingMethodOneOf {
617
+ interface QueryV2PagingMethodOneOf {
612
618
  /** Paging options to limit and skip the number of items. */
613
619
  paging?: Paging;
614
620
  /** 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`. */
615
621
  cursorPaging?: CursorPaging;
616
622
  }
617
- export interface Sorting {
623
+ interface Sorting {
618
624
  /**
619
625
  * Name of the field to sort by.
620
626
  * @maxLength 512
621
627
  */
622
628
  fieldName?: string;
623
629
  /** Sort order. */
624
- order?: SortOrder;
630
+ order?: SortOrderWithLiterals;
625
631
  }
626
- export declare enum SortOrder {
632
+ declare enum SortOrder {
627
633
  ASC = "ASC",
628
634
  DESC = "DESC"
629
635
  }
630
- export interface Paging {
636
+ /** @enumType */
637
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
638
+ interface Paging {
631
639
  /** Number of items to load. */
632
640
  limit?: number | null;
633
641
  /** Number of items to skip in the current sort order. */
634
642
  offset?: number | null;
635
643
  }
636
- export interface CursorPaging {
644
+ interface CursorPaging {
637
645
  /**
638
646
  * Maximum number of items to return in the results.
639
647
  * @max 100
@@ -648,18 +656,20 @@ export interface CursorPaging {
648
656
  */
649
657
  cursor?: string | null;
650
658
  }
651
- export declare enum Fieldset {
659
+ declare enum Fieldset {
652
660
  ELEMENTS = "ELEMENTS",
653
661
  CATEGORIES = "CATEGORIES",
654
662
  PLACES = "PLACES",
655
663
  CONFIG = "CONFIG",
656
664
  ELEMENT_GROUPS = "ELEMENT_GROUPS"
657
665
  }
658
- export interface QuerySeatingPlanResponse {
666
+ /** @enumType */
667
+ type FieldsetWithLiterals = Fieldset | 'ELEMENTS' | 'CATEGORIES' | 'PLACES' | 'CONFIG' | 'ELEMENT_GROUPS';
668
+ interface QuerySeatingPlanResponse {
659
669
  /** Plan results */
660
670
  plans?: SeatingPlan[];
661
671
  }
662
- export interface GetSeatingPlanRequest {
672
+ interface GetSeatingPlanRequest {
663
673
  /**
664
674
  * The id of the plan
665
675
  * @format GUID
@@ -669,7 +679,7 @@ export interface GetSeatingPlanRequest {
669
679
  * A fieldset for the response
670
680
  * @deprecated
671
681
  */
672
- fieldset?: Fieldset[];
682
+ fieldset?: FieldsetWithLiterals[];
673
683
  /**
674
684
  * Projection on the result object - list of named projections.
675
685
  * Possible values: "elements", "categories", "places", "config".
@@ -678,7 +688,7 @@ export interface GetSeatingPlanRequest {
678
688
  /** Seating Plan Mask */
679
689
  seatingPlanMask?: SeatingPlanMask;
680
690
  }
681
- export interface SeatingPlanMask {
691
+ interface SeatingPlanMask {
682
692
  /**
683
693
  * Filter seating plan by place ids
684
694
  * @minLength 5
@@ -686,18 +696,18 @@ export interface SeatingPlanMask {
686
696
  */
687
697
  placeId?: string[];
688
698
  }
689
- export interface GetSeatingPlanResponse {
699
+ interface GetSeatingPlanResponse {
690
700
  /** The plan */
691
701
  plan?: SeatingPlan;
692
702
  }
693
- export interface FindSeatingPlanRequest {
703
+ interface FindSeatingPlanRequest {
694
704
  /** The filter of the plan */
695
705
  filter: Record<string, any> | null;
696
706
  /**
697
707
  * A fieldset for the response
698
708
  * @deprecated
699
709
  */
700
- fieldset?: Fieldset[];
710
+ fieldset?: FieldsetWithLiterals[];
701
711
  /**
702
712
  * Projection on the result object - list of named projections.
703
713
  * Possible values: "elements", "categories", "places", "config".
@@ -706,238 +716,25 @@ export interface FindSeatingPlanRequest {
706
716
  /** Seating Plan Mask */
707
717
  seatingPlanMask?: SeatingPlanMask;
708
718
  }
709
- export interface FindSeatingPlanResponse {
719
+ interface FindSeatingPlanResponse {
710
720
  /** The plan */
711
721
  plan?: SeatingPlan;
712
722
  }
713
- export interface DeleteSeatingPlanRequest {
723
+ interface DeleteSeatingPlanRequest {
714
724
  /**
715
725
  * The id of the plan
716
726
  * @format GUID
717
727
  */
718
728
  id: string | null;
719
729
  }
720
- export interface DeleteSeatingPlanResponse {
730
+ interface DeleteSeatingPlanResponse {
721
731
  /** Deleted plan */
722
732
  plan?: SeatingPlan;
723
733
  }
724
- export interface DomainEvent extends DomainEventBodyOneOf {
725
- createdEvent?: EntityCreatedEvent;
726
- updatedEvent?: EntityUpdatedEvent;
727
- deletedEvent?: EntityDeletedEvent;
728
- actionEvent?: ActionEvent;
729
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
730
- id?: string;
731
- /**
732
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
733
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
734
- */
735
- entityFqdn?: string;
736
- /**
737
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
738
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
739
- */
740
- slug?: string;
741
- /** ID of the entity associated with the event. */
742
- entityId?: string;
743
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
744
- eventTime?: Date | null;
745
- /**
746
- * Whether the event was triggered as a result of a privacy regulation application
747
- * (for example, GDPR).
748
- */
749
- triggeredByAnonymizeRequest?: boolean | null;
750
- /** If present, indicates the action that triggered the event. */
751
- originatedFrom?: string | null;
752
- /**
753
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
754
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
755
- */
756
- entityEventSequence?: string | null;
757
- }
758
- /** @oneof */
759
- export interface DomainEventBodyOneOf {
760
- createdEvent?: EntityCreatedEvent;
761
- updatedEvent?: EntityUpdatedEvent;
762
- deletedEvent?: EntityDeletedEvent;
763
- actionEvent?: ActionEvent;
764
- }
765
- export interface EntityCreatedEvent {
766
- entityAsJson?: string;
767
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
768
- restoreInfo?: RestoreInfo;
769
- }
770
- export interface RestoreInfo {
771
- deletedDate?: Date | null;
772
- }
773
- export interface EntityUpdatedEvent {
774
- /**
775
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
776
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
777
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
778
- */
779
- currentEntityAsJson?: string;
780
- }
781
- export interface EntityDeletedEvent {
782
- /** Entity that was deleted. */
783
- deletedEntityAsJson?: string | null;
784
- }
785
- export interface ActionEvent {
786
- bodyAsJson?: string;
787
- }
788
- export interface MessageEnvelope {
789
- /**
790
- * App instance ID.
791
- * @format GUID
792
- */
793
- instanceId?: string | null;
794
- /**
795
- * Event type.
796
- * @maxLength 150
797
- */
798
- eventType?: string;
799
- /** The identification type and identity data. */
800
- identity?: IdentificationData;
801
- /** Stringify payload. */
802
- data?: string;
803
- }
804
- export interface IdentificationData extends IdentificationDataIdOneOf {
805
- /**
806
- * ID of a site visitor that has not logged in to the site.
807
- * @format GUID
808
- */
809
- anonymousVisitorId?: string;
810
- /**
811
- * ID of a site visitor that has logged in to the site.
812
- * @format GUID
813
- */
814
- memberId?: string;
815
- /**
816
- * ID of a Wix user (site owner, contributor, etc.).
817
- * @format GUID
818
- */
819
- wixUserId?: string;
820
- /**
821
- * ID of an app.
822
- * @format GUID
823
- */
824
- appId?: string;
825
- /** @readonly */
826
- identityType?: WebhookIdentityType;
827
- }
828
- /** @oneof */
829
- export interface IdentificationDataIdOneOf {
830
- /**
831
- * ID of a site visitor that has not logged in to the site.
832
- * @format GUID
833
- */
834
- anonymousVisitorId?: string;
835
- /**
836
- * ID of a site visitor that has logged in to the site.
837
- * @format GUID
838
- */
839
- memberId?: string;
840
- /**
841
- * ID of a Wix user (site owner, contributor, etc.).
842
- * @format GUID
843
- */
844
- wixUserId?: string;
845
- /**
846
- * ID of an app.
847
- * @format GUID
848
- */
849
- appId?: string;
850
- }
851
- export declare enum WebhookIdentityType {
852
- UNKNOWN = "UNKNOWN",
853
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
854
- MEMBER = "MEMBER",
855
- WIX_USER = "WIX_USER",
856
- APP = "APP"
857
- }
858
- export interface SaveSeatingPlanVersionRequest {
859
- /** A plan version to be saved */
860
- plan?: SeatingPlan;
861
- /**
862
- * Parent version of the plan.
863
- * Use this field to override history of plan versions.
864
- * The next version of the plan will still be latest version +1,
865
- * but intermediate versions will be removed. Example:
866
- * Existing versions [1, 2, 3, 4, 5].
867
- * Save request with parent_version 2 will yield versions [1, 2, 6].
868
- * @min 1
869
- */
870
- parentVersion?: string | null;
871
- }
872
- export interface SaveSeatingPlanVersionResponse {
873
- /** Updated plan version */
874
- plan?: SeatingPlan;
875
- }
876
- export interface QuerySeatingPlanVersionsRequest {
877
- /**
878
- * Generic query object
879
- * Possible fieldsets: "elements", "categories", "places", "config".
880
- */
881
- query?: QueryV2;
882
- }
883
- export interface QuerySeatingPlanVersionsResponse {
884
- /** Plan results */
885
- plans?: SeatingPlan[];
886
- /** Paging meta data */
887
- metadata?: PagingMetadataV2;
888
- }
889
- export interface PagingMetadataV2 {
890
- /** Number of items returned in the response. */
891
- count?: number | null;
892
- /** Offset that was requested. */
893
- offset?: number | null;
894
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
895
- total?: number | null;
896
- /** Flag that indicates the server failed to calculate the `total` field. */
897
- tooManyToCount?: boolean | null;
898
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
899
- cursors?: Cursors;
900
- }
901
- export interface Cursors {
902
- /**
903
- * Cursor string pointing to the next page in the list of results.
904
- * @maxLength 16000
905
- */
906
- next?: string | null;
907
- /**
908
- * Cursor pointing to the previous page in the list of results.
909
- * @maxLength 16000
910
- */
911
- prev?: string | null;
912
- }
913
- export interface DiscardSeatingPlanVersionsRequest {
914
- /**
915
- * Seating Plan ID
916
- * @format GUID
917
- */
918
- seatingPlanId?: string | null;
919
- /** Version from which all higher versions will be discarded. */
920
- version?: string | null;
921
- }
922
- export interface DiscardSeatingPlanVersionsResponse {
923
- }
924
- export interface RestoreSeatingPlanRequest {
925
- /**
926
- * Seating Plan ID
927
- * @format GUID
928
- */
929
- seatingPlanId?: string | null;
930
- /** Version to witch the seating plan should be restored. */
931
- version?: string | null;
932
- }
933
- export interface RestoreSeatingPlanResponse {
934
- /** Seating Plan */
935
- plan?: SeatingPlan;
936
- }
937
- export interface UpdateSeatingPlanThumbnailRequest {
734
+ interface UpdateSeatingPlanThumbnailRequest {
938
735
  thumbnail: SeatingPlanThumbnail;
939
736
  }
940
- export interface SeatingPlanThumbnail {
737
+ interface SeatingPlanThumbnail {
941
738
  /**
942
739
  * @format GUID
943
740
  * @readonly
@@ -945,16 +742,42 @@ export interface SeatingPlanThumbnail {
945
742
  id?: string | null;
946
743
  img?: string | null;
947
744
  }
948
- export interface UpdateSeatingPlanThumbnailResponse {
745
+ interface UpdateSeatingPlanThumbnailResponse {
949
746
  thumbnail?: SeatingPlanThumbnail;
950
747
  }
951
- export interface GetSeatingPlanThumbnailRequest {
748
+ interface GetSeatingPlanThumbnailRequest {
952
749
  /**
953
750
  * @format GUID
954
751
  * @readonly
955
752
  */
956
753
  id: string | null;
957
754
  }
958
- export interface GetSeatingPlanThumbnailResponse {
755
+ interface GetSeatingPlanThumbnailResponse {
959
756
  thumbnail?: SeatingPlanThumbnail;
960
757
  }
758
+
759
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
760
+ getUrl: (context: any) => string;
761
+ httpMethod: K;
762
+ path: string;
763
+ pathParams: M;
764
+ __requestType: T;
765
+ __originalRequestType: S;
766
+ __responseType: Q;
767
+ __originalResponseType: R;
768
+ };
769
+ declare function createSeatingPlan(): __PublicMethodMetaInfo<'POST', {}, CreateSeatingPlanRequest$1, CreateSeatingPlanRequest, CreateSeatingPlanResponse$1, CreateSeatingPlanResponse>;
770
+ declare function updateSeatingPlan(): __PublicMethodMetaInfo<'PUT', {}, UpdateSeatingPlanRequest$1, UpdateSeatingPlanRequest, UpdateSeatingPlanResponse$1, UpdateSeatingPlanResponse>;
771
+ declare function copySeatingPlan(): __PublicMethodMetaInfo<'POST', {}, CopySeatingPlanRequest$1, CopySeatingPlanRequest, CopySeatingPlanResponse$1, CopySeatingPlanResponse>;
772
+ declare function querySeatingPlan(): __PublicMethodMetaInfo<'POST', {}, QuerySeatingPlanRequest$1, QuerySeatingPlanRequest, QuerySeatingPlanResponse$1, QuerySeatingPlanResponse>;
773
+ declare function getSeatingPlan(): __PublicMethodMetaInfo<'GET', {
774
+ id: string;
775
+ }, GetSeatingPlanRequest$1, GetSeatingPlanRequest, GetSeatingPlanResponse$1, GetSeatingPlanResponse>;
776
+ declare function findSeatingPlan(): __PublicMethodMetaInfo<'POST', {}, FindSeatingPlanRequest$1, FindSeatingPlanRequest, FindSeatingPlanResponse$1, FindSeatingPlanResponse>;
777
+ declare function deleteSeatingPlan(): __PublicMethodMetaInfo<'DELETE', {
778
+ id: string;
779
+ }, DeleteSeatingPlanRequest$1, DeleteSeatingPlanRequest, DeleteSeatingPlanResponse$1, DeleteSeatingPlanResponse>;
780
+ declare function updateSeatingPlanThumbnail(): __PublicMethodMetaInfo<'POST', {}, UpdateSeatingPlanThumbnailRequest$1, UpdateSeatingPlanThumbnailRequest, UpdateSeatingPlanThumbnailResponse$1, UpdateSeatingPlanThumbnailResponse>;
781
+ declare function getSeatingPlanThumbnail(): __PublicMethodMetaInfo<'GET', {}, GetSeatingPlanThumbnailRequest$1, GetSeatingPlanThumbnailRequest, GetSeatingPlanThumbnailResponse$1, GetSeatingPlanThumbnailResponse>;
782
+
783
+ export { type __PublicMethodMetaInfo, copySeatingPlan, createSeatingPlan, deleteSeatingPlan, findSeatingPlan, getSeatingPlan, getSeatingPlanThumbnail, querySeatingPlan, updateSeatingPlan, updateSeatingPlanThumbnail };