@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.
- package/build/cjs/index.d.ts +96 -1
- package/build/cjs/index.js +1310 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +783 -1
- package/build/cjs/meta.js +860 -15
- package/build/cjs/meta.js.map +1 -1
- 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
- package/build/es/index.d.mts +96 -0
- package/build/es/index.mjs +1269 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/{src/seating-v1-seating-plan-seating-plan.types.d.ts → meta.d.mts} +108 -285
- package/build/es/meta.mjs +828 -0
- package/build/es/meta.mjs.map +1 -0
- 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
- package/build/internal/cjs/index.d.ts +96 -1
- package/build/internal/cjs/index.js +1310 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +783 -1
- package/build/internal/cjs/meta.js +860 -15
- package/build/internal/cjs/meta.js.map +1 -1
- 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
- package/build/internal/es/index.d.mts +96 -0
- package/build/internal/es/index.mjs +1269 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/{cjs/src/seating-v1-seating-plan-seating-plan.types.d.ts → es/meta.d.mts} +108 -285
- package/build/internal/es/meta.mjs +828 -0
- package/build/internal/es/meta.mjs.map +1 -0
- 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
- package/package.json +10 -9
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.js +0 -35
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.js +0 -673
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.js +0 -199
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.js +0 -204
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.d.ts +0 -960
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.js +0 -85
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.universal.js +0 -487
- package/build/cjs/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
- package/build/es/src/seating-v1-seating-plan-seating-plan.context.js +0 -23
- package/build/es/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
- package/build/es/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
- package/build/es/src/seating-v1-seating-plan-seating-plan.http.js +0 -661
- package/build/es/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
- package/build/es/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
- package/build/es/src/seating-v1-seating-plan-seating-plan.meta.js +0 -164
- package/build/es/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
- package/build/es/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
- package/build/es/src/seating-v1-seating-plan-seating-plan.public.js +0 -183
- package/build/es/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
- package/build/es/src/seating-v1-seating-plan-seating-plan.types.js +0 -82
- package/build/es/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
- package/build/es/src/seating-v1-seating-plan-seating-plan.universal.js +0 -452
- package/build/es/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.js +0 -35
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.js +0 -673
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.js +0 -199
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.js +0 -204
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.types.js +0 -85
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.js +0 -487
- package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.js +0 -23
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.js +0 -661
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.js +0 -164
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.js +0 -183
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.d.ts +0 -960
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.js +0 -82
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.js +0 -452
- package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface SeatingPlan {
|
|
1
|
+
interface SeatingPlan {
|
|
3
2
|
/**
|
|
4
3
|
* Auto generated unique plan id
|
|
5
4
|
* @format GUID
|
|
@@ -71,7 +70,7 @@ export interface SeatingPlan {
|
|
|
71
70
|
*/
|
|
72
71
|
elementGroups?: ElementGroup[];
|
|
73
72
|
}
|
|
74
|
-
|
|
73
|
+
interface Section {
|
|
75
74
|
/** Unique section id */
|
|
76
75
|
_id?: number;
|
|
77
76
|
/**
|
|
@@ -101,7 +100,7 @@ export interface Section {
|
|
|
101
100
|
*/
|
|
102
101
|
default?: boolean;
|
|
103
102
|
}
|
|
104
|
-
|
|
103
|
+
interface Element {
|
|
105
104
|
/**
|
|
106
105
|
* Unique element id
|
|
107
106
|
* @min 1
|
|
@@ -114,7 +113,7 @@ export interface Element {
|
|
|
114
113
|
*/
|
|
115
114
|
title?: string | null;
|
|
116
115
|
/** Element type */
|
|
117
|
-
type?:
|
|
116
|
+
type?: TypeWithLiterals;
|
|
118
117
|
/**
|
|
119
118
|
* Capacity. None for Shape type Element.
|
|
120
119
|
* @min 1
|
|
@@ -145,7 +144,7 @@ export interface Element {
|
|
|
145
144
|
/** Multi row element relevant for MULTI_ROW element type */
|
|
146
145
|
multiRowProperties?: MultiRowProperties;
|
|
147
146
|
}
|
|
148
|
-
|
|
147
|
+
declare enum Type {
|
|
149
148
|
AREA = "AREA",
|
|
150
149
|
ROW = "ROW",
|
|
151
150
|
MULTI_ROW = "MULTI_ROW",
|
|
@@ -153,7 +152,9 @@ export declare enum Type {
|
|
|
153
152
|
ROUND_TABLE = "ROUND_TABLE",
|
|
154
153
|
SHAPE = "SHAPE"
|
|
155
154
|
}
|
|
156
|
-
|
|
155
|
+
/** @enumType */
|
|
156
|
+
type TypeWithLiterals = Type | 'AREA' | 'ROW' | 'MULTI_ROW' | 'TABLE' | 'ROUND_TABLE' | 'SHAPE';
|
|
157
|
+
interface Sequencing {
|
|
157
158
|
/**
|
|
158
159
|
* First seq element
|
|
159
160
|
* @minLength 1
|
|
@@ -168,7 +169,7 @@ export interface Sequencing {
|
|
|
168
169
|
/** If true - direction right to left. Otherwise left to right. */
|
|
169
170
|
reverseOrder?: boolean | null;
|
|
170
171
|
}
|
|
171
|
-
|
|
172
|
+
interface Place {
|
|
172
173
|
/** Local id of the place in the sequence */
|
|
173
174
|
index?: number;
|
|
174
175
|
/**
|
|
@@ -191,16 +192,16 @@ export interface Place {
|
|
|
191
192
|
* Type of the parent element
|
|
192
193
|
* @readonly
|
|
193
194
|
*/
|
|
194
|
-
elementType?:
|
|
195
|
+
elementType?: TypeWithLiterals;
|
|
195
196
|
/**
|
|
196
197
|
* Assigned category id
|
|
197
198
|
* @readonly
|
|
198
199
|
*/
|
|
199
200
|
categoryId?: number | null;
|
|
200
201
|
/** Place type */
|
|
201
|
-
type?:
|
|
202
|
+
type?: PlaceTypeEnumTypeWithLiterals;
|
|
202
203
|
}
|
|
203
|
-
|
|
204
|
+
declare enum PlaceTypeEnumType {
|
|
204
205
|
UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
|
|
205
206
|
STANDARD = "STANDARD",
|
|
206
207
|
WHEELCHAIR = "WHEELCHAIR",
|
|
@@ -209,11 +210,13 @@ export declare enum PlaceTypeEnumType {
|
|
|
209
210
|
OBSTRUCTED = "OBSTRUCTED",
|
|
210
211
|
DISCOUNT = "DISCOUNT"
|
|
211
212
|
}
|
|
212
|
-
|
|
213
|
+
/** @enumType */
|
|
214
|
+
type PlaceTypeEnumTypeWithLiterals = PlaceTypeEnumType | 'UNKNOWN_PROPERTY' | 'STANDARD' | 'WHEELCHAIR' | 'ACCESSIBLE' | 'COMPANION' | 'OBSTRUCTED' | 'DISCOUNT';
|
|
215
|
+
interface ReservationOptions {
|
|
213
216
|
/** Indicates whether the entire element must be reserved */
|
|
214
217
|
reserveWholeElement?: boolean;
|
|
215
218
|
}
|
|
216
|
-
|
|
219
|
+
interface ElementUiProperties {
|
|
217
220
|
/**
|
|
218
221
|
* @min -1000000
|
|
219
222
|
* @max 1000000
|
|
@@ -238,7 +241,7 @@ export interface ElementUiProperties {
|
|
|
238
241
|
* @max 180
|
|
239
242
|
*/
|
|
240
243
|
rotationAngle?: number | null;
|
|
241
|
-
shapeType?:
|
|
244
|
+
shapeType?: ShapeTypeEnumTypeWithLiterals;
|
|
242
245
|
/**
|
|
243
246
|
* @min 10
|
|
244
247
|
* @max 176
|
|
@@ -252,7 +255,7 @@ export interface ElementUiProperties {
|
|
|
252
255
|
*/
|
|
253
256
|
seatSpacing?: number | null;
|
|
254
257
|
hideLabel?: boolean | null;
|
|
255
|
-
labelPosition?:
|
|
258
|
+
labelPosition?: PositionWithLiterals;
|
|
256
259
|
seatLayout?: number[];
|
|
257
260
|
/** @max 50 */
|
|
258
261
|
emptyTopSeatSpaces?: number | null;
|
|
@@ -285,11 +288,11 @@ export interface ElementUiProperties {
|
|
|
285
288
|
strokeWidth?: number | null;
|
|
286
289
|
/** @max 100 */
|
|
287
290
|
opacity?: number | null;
|
|
288
|
-
icon?:
|
|
291
|
+
icon?: IconWithLiterals;
|
|
289
292
|
image?: Image;
|
|
290
|
-
seatNumbering?:
|
|
293
|
+
seatNumbering?: NumberingWithLiterals;
|
|
291
294
|
}
|
|
292
|
-
|
|
295
|
+
declare enum ShapeTypeEnumType {
|
|
293
296
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
294
297
|
TEXT = "TEXT",
|
|
295
298
|
RECTANGLE = "RECTANGLE",
|
|
@@ -298,14 +301,18 @@ export declare enum ShapeTypeEnumType {
|
|
|
298
301
|
ICON = "ICON",
|
|
299
302
|
IMAGE = "IMAGE"
|
|
300
303
|
}
|
|
301
|
-
|
|
304
|
+
/** @enumType */
|
|
305
|
+
type ShapeTypeEnumTypeWithLiterals = ShapeTypeEnumType | 'UNKNOWN_TYPE' | 'TEXT' | 'RECTANGLE' | 'ELLIPSE' | 'LINE' | 'ICON' | 'IMAGE';
|
|
306
|
+
declare enum Position {
|
|
302
307
|
UNKNOWN_POSITION = "UNKNOWN_POSITION",
|
|
303
308
|
LEFT = "LEFT",
|
|
304
309
|
RIGHT = "RIGHT",
|
|
305
310
|
BOTH = "BOTH",
|
|
306
311
|
NONE = "NONE"
|
|
307
312
|
}
|
|
308
|
-
|
|
313
|
+
/** @enumType */
|
|
314
|
+
type PositionWithLiterals = Position | 'UNKNOWN_POSITION' | 'LEFT' | 'RIGHT' | 'BOTH' | 'NONE';
|
|
315
|
+
declare enum Icon {
|
|
309
316
|
UNKNOWN_ICON = "UNKNOWN_ICON",
|
|
310
317
|
ENTER = "ENTER",
|
|
311
318
|
EXIT = "EXIT",
|
|
@@ -320,7 +327,9 @@ export declare enum Icon {
|
|
|
320
327
|
CHECKROOM = "CHECKROOM",
|
|
321
328
|
STAGE = "STAGE"
|
|
322
329
|
}
|
|
323
|
-
|
|
330
|
+
/** @enumType */
|
|
331
|
+
type IconWithLiterals = Icon | 'UNKNOWN_ICON' | 'ENTER' | 'EXIT' | 'DRINKS' | 'WC' | 'WC_MEN' | 'WC_WOMEN' | 'FOOD' | 'STAIRS' | 'ELEVATOR' | 'SMOKING' | 'CHECKROOM' | 'STAGE';
|
|
332
|
+
interface Image {
|
|
324
333
|
/** WixMedia image ID. */
|
|
325
334
|
_id?: string;
|
|
326
335
|
/**
|
|
@@ -339,13 +348,15 @@ export interface Image {
|
|
|
339
348
|
*/
|
|
340
349
|
uri?: string | null;
|
|
341
350
|
}
|
|
342
|
-
|
|
351
|
+
declare enum Numbering {
|
|
343
352
|
UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
|
|
344
353
|
NUMERIC = "NUMERIC",
|
|
345
354
|
ODD_EVEN = "ODD_EVEN",
|
|
346
355
|
ALPHABETICAL = "ALPHABETICAL"
|
|
347
356
|
}
|
|
348
|
-
|
|
357
|
+
/** @enumType */
|
|
358
|
+
type NumberingWithLiterals = Numbering | 'UNKNOWN_NUMBERING' | 'NUMERIC' | 'ODD_EVEN' | 'ALPHABETICAL';
|
|
359
|
+
interface MultiRowProperties {
|
|
349
360
|
/**
|
|
350
361
|
* Individual rows of the multi row element
|
|
351
362
|
* @maxSize 1000
|
|
@@ -365,7 +376,7 @@ export interface MultiRowProperties {
|
|
|
365
376
|
*/
|
|
366
377
|
seatAmount?: number | null;
|
|
367
378
|
}
|
|
368
|
-
|
|
379
|
+
interface RowElement {
|
|
369
380
|
/**
|
|
370
381
|
* Unique row id
|
|
371
382
|
* @min 1
|
|
@@ -390,7 +401,7 @@ export interface RowElement {
|
|
|
390
401
|
/** Row UI settings */
|
|
391
402
|
uiProperties?: RowElementUiProperties;
|
|
392
403
|
}
|
|
393
|
-
|
|
404
|
+
interface RowElementUiProperties {
|
|
394
405
|
/**
|
|
395
406
|
* Relative x position to the parent element
|
|
396
407
|
* @min -1000000
|
|
@@ -414,11 +425,11 @@ export interface RowElementUiProperties {
|
|
|
414
425
|
*/
|
|
415
426
|
seatSpacing?: number | null;
|
|
416
427
|
/** Label position */
|
|
417
|
-
labelPosition?:
|
|
428
|
+
labelPosition?: PositionWithLiterals;
|
|
418
429
|
/** Seat numbering */
|
|
419
|
-
seatNumbering?:
|
|
430
|
+
seatNumbering?: NumberingWithLiterals;
|
|
420
431
|
}
|
|
421
|
-
|
|
432
|
+
interface VerticalSequencing {
|
|
422
433
|
/**
|
|
423
434
|
* First seq element
|
|
424
435
|
* @minLength 1
|
|
@@ -426,11 +437,11 @@ export interface VerticalSequencing {
|
|
|
426
437
|
*/
|
|
427
438
|
startAt?: string;
|
|
428
439
|
/** Row numbering */
|
|
429
|
-
rowNumbering?:
|
|
440
|
+
rowNumbering?: NumberingWithLiterals;
|
|
430
441
|
/** If true - direction bottom to top. Otherwise top to bottom. */
|
|
431
442
|
reverseOrder?: boolean | null;
|
|
432
443
|
}
|
|
433
|
-
|
|
444
|
+
interface Category {
|
|
434
445
|
/**
|
|
435
446
|
* Local category id within the seating plan
|
|
436
447
|
* @min 1
|
|
@@ -467,7 +478,7 @@ export interface Category {
|
|
|
467
478
|
*/
|
|
468
479
|
places?: Place[];
|
|
469
480
|
}
|
|
470
|
-
|
|
481
|
+
interface ExtendedFields {
|
|
471
482
|
/**
|
|
472
483
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
473
484
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -478,7 +489,7 @@ export interface ExtendedFields {
|
|
|
478
489
|
*/
|
|
479
490
|
namespaces?: Record<string, Record<string, any>>;
|
|
480
491
|
}
|
|
481
|
-
|
|
492
|
+
interface SeatingPlanUiProperties {
|
|
482
493
|
/**
|
|
483
494
|
* #F0F0F0
|
|
484
495
|
* @format COLOR_HEX
|
|
@@ -487,7 +498,7 @@ export interface SeatingPlanUiProperties {
|
|
|
487
498
|
/** @max 100 */
|
|
488
499
|
backgroundOpacity?: number | null;
|
|
489
500
|
}
|
|
490
|
-
|
|
501
|
+
interface ElementGroup {
|
|
491
502
|
/**
|
|
492
503
|
* Unique element group id
|
|
493
504
|
* @min 1
|
|
@@ -498,7 +509,7 @@ export interface ElementGroup {
|
|
|
498
509
|
/** Element group UI settings */
|
|
499
510
|
uiProperties?: ElementGroupUiProperties;
|
|
500
511
|
}
|
|
501
|
-
|
|
512
|
+
interface ElementGroupUiProperties {
|
|
502
513
|
/**
|
|
503
514
|
* x position of the group
|
|
504
515
|
* @min -1000000
|
|
@@ -528,15 +539,15 @@ export interface ElementGroupUiProperties {
|
|
|
528
539
|
*/
|
|
529
540
|
rotationAngle?: number | null;
|
|
530
541
|
}
|
|
531
|
-
|
|
542
|
+
interface CreateSeatingPlanRequest {
|
|
532
543
|
/** A plan to be created */
|
|
533
544
|
plan: SeatingPlan;
|
|
534
545
|
}
|
|
535
|
-
|
|
546
|
+
interface CreateSeatingPlanResponse {
|
|
536
547
|
/** The created plan */
|
|
537
548
|
plan?: SeatingPlan;
|
|
538
549
|
}
|
|
539
|
-
|
|
550
|
+
interface CapacityExceededViolation {
|
|
540
551
|
/** Max allowed capacity */
|
|
541
552
|
maxCapacity?: number;
|
|
542
553
|
/** Invalid capacity */
|
|
@@ -544,17 +555,17 @@ export interface CapacityExceededViolation {
|
|
|
544
555
|
/** The element id */
|
|
545
556
|
elementId?: number | null;
|
|
546
557
|
}
|
|
547
|
-
|
|
558
|
+
interface UpdateSeatingPlanRequest {
|
|
548
559
|
/** The plan updates */
|
|
549
560
|
plan?: SeatingPlan;
|
|
550
561
|
/** A set of field paths, specifying which parts of seating plan to update */
|
|
551
562
|
fields?: string[];
|
|
552
563
|
}
|
|
553
|
-
|
|
564
|
+
interface UpdateSeatingPlanResponse {
|
|
554
565
|
/** The updated plan */
|
|
555
566
|
plan?: SeatingPlan;
|
|
556
567
|
}
|
|
557
|
-
|
|
568
|
+
interface CopySeatingPlanRequest {
|
|
558
569
|
/**
|
|
559
570
|
* The id of the plan to be copied
|
|
560
571
|
* @format GUID
|
|
@@ -573,20 +584,20 @@ export interface CopySeatingPlanRequest {
|
|
|
573
584
|
*/
|
|
574
585
|
externalId: string | null;
|
|
575
586
|
}
|
|
576
|
-
|
|
587
|
+
interface CopySeatingPlanResponse {
|
|
577
588
|
/** The copied plan */
|
|
578
589
|
plan?: SeatingPlan;
|
|
579
590
|
}
|
|
580
|
-
|
|
591
|
+
interface QuerySeatingPlanRequest {
|
|
581
592
|
/**
|
|
582
593
|
* Generic query object
|
|
583
594
|
* Possible fieldsets: "elements", "categories", "places", "config".
|
|
584
595
|
*/
|
|
585
596
|
query: QueryV2;
|
|
586
597
|
/** A fieldset for the response */
|
|
587
|
-
fieldset?:
|
|
598
|
+
fieldset?: FieldsetWithLiterals[];
|
|
588
599
|
}
|
|
589
|
-
|
|
600
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
590
601
|
/** Paging options to limit and skip the number of items. */
|
|
591
602
|
paging?: Paging;
|
|
592
603
|
/** 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`. */
|
|
@@ -609,32 +620,34 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
609
620
|
fieldsets?: string[];
|
|
610
621
|
}
|
|
611
622
|
/** @oneof */
|
|
612
|
-
|
|
623
|
+
interface QueryV2PagingMethodOneOf {
|
|
613
624
|
/** Paging options to limit and skip the number of items. */
|
|
614
625
|
paging?: Paging;
|
|
615
626
|
/** 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`. */
|
|
616
627
|
cursorPaging?: CursorPaging;
|
|
617
628
|
}
|
|
618
|
-
|
|
629
|
+
interface Sorting {
|
|
619
630
|
/**
|
|
620
631
|
* Name of the field to sort by.
|
|
621
632
|
* @maxLength 512
|
|
622
633
|
*/
|
|
623
634
|
fieldName?: string;
|
|
624
635
|
/** Sort order. */
|
|
625
|
-
order?:
|
|
636
|
+
order?: SortOrderWithLiterals;
|
|
626
637
|
}
|
|
627
|
-
|
|
638
|
+
declare enum SortOrder {
|
|
628
639
|
ASC = "ASC",
|
|
629
640
|
DESC = "DESC"
|
|
630
641
|
}
|
|
631
|
-
|
|
642
|
+
/** @enumType */
|
|
643
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
644
|
+
interface Paging {
|
|
632
645
|
/** Number of items to load. */
|
|
633
646
|
limit?: number | null;
|
|
634
647
|
/** Number of items to skip in the current sort order. */
|
|
635
648
|
offset?: number | null;
|
|
636
649
|
}
|
|
637
|
-
|
|
650
|
+
interface CursorPaging {
|
|
638
651
|
/**
|
|
639
652
|
* Maximum number of items to return in the results.
|
|
640
653
|
* @max 100
|
|
@@ -649,18 +662,20 @@ export interface CursorPaging {
|
|
|
649
662
|
*/
|
|
650
663
|
cursor?: string | null;
|
|
651
664
|
}
|
|
652
|
-
|
|
665
|
+
declare enum Fieldset {
|
|
653
666
|
ELEMENTS = "ELEMENTS",
|
|
654
667
|
CATEGORIES = "CATEGORIES",
|
|
655
668
|
PLACES = "PLACES",
|
|
656
669
|
CONFIG = "CONFIG",
|
|
657
670
|
ELEMENT_GROUPS = "ELEMENT_GROUPS"
|
|
658
671
|
}
|
|
659
|
-
|
|
672
|
+
/** @enumType */
|
|
673
|
+
type FieldsetWithLiterals = Fieldset | 'ELEMENTS' | 'CATEGORIES' | 'PLACES' | 'CONFIG' | 'ELEMENT_GROUPS';
|
|
674
|
+
interface QuerySeatingPlanResponse {
|
|
660
675
|
/** Plan results */
|
|
661
676
|
plans?: SeatingPlan[];
|
|
662
677
|
}
|
|
663
|
-
|
|
678
|
+
interface GetSeatingPlanRequest {
|
|
664
679
|
/**
|
|
665
680
|
* The id of the plan
|
|
666
681
|
* @format GUID
|
|
@@ -670,7 +685,7 @@ export interface GetSeatingPlanRequest {
|
|
|
670
685
|
* A fieldset for the response
|
|
671
686
|
* @deprecated
|
|
672
687
|
*/
|
|
673
|
-
fieldset?:
|
|
688
|
+
fieldset?: FieldsetWithLiterals[];
|
|
674
689
|
/**
|
|
675
690
|
* Projection on the result object - list of named projections.
|
|
676
691
|
* Possible values: "elements", "categories", "places", "config".
|
|
@@ -679,7 +694,7 @@ export interface GetSeatingPlanRequest {
|
|
|
679
694
|
/** Seating Plan Mask */
|
|
680
695
|
seatingPlanMask?: SeatingPlanMask;
|
|
681
696
|
}
|
|
682
|
-
|
|
697
|
+
interface SeatingPlanMask {
|
|
683
698
|
/**
|
|
684
699
|
* Filter seating plan by place ids
|
|
685
700
|
* @minLength 5
|
|
@@ -687,18 +702,18 @@ export interface SeatingPlanMask {
|
|
|
687
702
|
*/
|
|
688
703
|
placeId?: string[];
|
|
689
704
|
}
|
|
690
|
-
|
|
705
|
+
interface GetSeatingPlanResponse {
|
|
691
706
|
/** The plan */
|
|
692
707
|
plan?: SeatingPlan;
|
|
693
708
|
}
|
|
694
|
-
|
|
709
|
+
interface FindSeatingPlanRequest {
|
|
695
710
|
/** The filter of the plan */
|
|
696
711
|
filter: Record<string, any> | null;
|
|
697
712
|
/**
|
|
698
713
|
* A fieldset for the response
|
|
699
714
|
* @deprecated
|
|
700
715
|
*/
|
|
701
|
-
fieldset?:
|
|
716
|
+
fieldset?: FieldsetWithLiterals[];
|
|
702
717
|
/**
|
|
703
718
|
* Projection on the result object - list of named projections.
|
|
704
719
|
* Possible values: "elements", "categories", "places", "config".
|
|
@@ -707,22 +722,22 @@ export interface FindSeatingPlanRequest {
|
|
|
707
722
|
/** Seating Plan Mask */
|
|
708
723
|
seatingPlanMask?: SeatingPlanMask;
|
|
709
724
|
}
|
|
710
|
-
|
|
725
|
+
interface FindSeatingPlanResponse {
|
|
711
726
|
/** The plan */
|
|
712
727
|
plan?: SeatingPlan;
|
|
713
728
|
}
|
|
714
|
-
|
|
729
|
+
interface DeleteSeatingPlanRequest {
|
|
715
730
|
/**
|
|
716
731
|
* The id of the plan
|
|
717
732
|
* @format GUID
|
|
718
733
|
*/
|
|
719
734
|
_id: string | null;
|
|
720
735
|
}
|
|
721
|
-
|
|
736
|
+
interface DeleteSeatingPlanResponse {
|
|
722
737
|
/** Deleted plan */
|
|
723
738
|
plan?: SeatingPlan;
|
|
724
739
|
}
|
|
725
|
-
|
|
740
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
726
741
|
createdEvent?: EntityCreatedEvent;
|
|
727
742
|
updatedEvent?: EntityUpdatedEvent;
|
|
728
743
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -757,19 +772,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
757
772
|
entityEventSequence?: string | null;
|
|
758
773
|
}
|
|
759
774
|
/** @oneof */
|
|
760
|
-
|
|
775
|
+
interface DomainEventBodyOneOf {
|
|
761
776
|
createdEvent?: EntityCreatedEvent;
|
|
762
777
|
updatedEvent?: EntityUpdatedEvent;
|
|
763
778
|
deletedEvent?: EntityDeletedEvent;
|
|
764
779
|
actionEvent?: ActionEvent;
|
|
765
780
|
}
|
|
766
|
-
|
|
781
|
+
interface EntityCreatedEvent {
|
|
767
782
|
entity?: string;
|
|
768
783
|
}
|
|
769
|
-
|
|
784
|
+
interface RestoreInfo {
|
|
770
785
|
deletedDate?: Date | null;
|
|
771
786
|
}
|
|
772
|
-
|
|
787
|
+
interface EntityUpdatedEvent {
|
|
773
788
|
/**
|
|
774
789
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
775
790
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -777,14 +792,14 @@ export interface EntityUpdatedEvent {
|
|
|
777
792
|
*/
|
|
778
793
|
currentEntity?: string;
|
|
779
794
|
}
|
|
780
|
-
|
|
795
|
+
interface EntityDeletedEvent {
|
|
781
796
|
/** Entity that was deleted. */
|
|
782
797
|
deletedEntity?: string | null;
|
|
783
798
|
}
|
|
784
|
-
|
|
799
|
+
interface ActionEvent {
|
|
785
800
|
body?: string;
|
|
786
801
|
}
|
|
787
|
-
|
|
802
|
+
interface MessageEnvelope {
|
|
788
803
|
/**
|
|
789
804
|
* App instance ID.
|
|
790
805
|
* @format GUID
|
|
@@ -800,7 +815,7 @@ export interface MessageEnvelope {
|
|
|
800
815
|
/** Stringify payload. */
|
|
801
816
|
data?: string;
|
|
802
817
|
}
|
|
803
|
-
|
|
818
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
804
819
|
/**
|
|
805
820
|
* ID of a site visitor that has not logged in to the site.
|
|
806
821
|
* @format GUID
|
|
@@ -822,10 +837,10 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
822
837
|
*/
|
|
823
838
|
appId?: string;
|
|
824
839
|
/** @readonly */
|
|
825
|
-
identityType?:
|
|
840
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
826
841
|
}
|
|
827
842
|
/** @oneof */
|
|
828
|
-
|
|
843
|
+
interface IdentificationDataIdOneOf {
|
|
829
844
|
/**
|
|
830
845
|
* ID of a site visitor that has not logged in to the site.
|
|
831
846
|
* @format GUID
|
|
@@ -847,14 +862,16 @@ export interface IdentificationDataIdOneOf {
|
|
|
847
862
|
*/
|
|
848
863
|
appId?: string;
|
|
849
864
|
}
|
|
850
|
-
|
|
865
|
+
declare enum WebhookIdentityType {
|
|
851
866
|
UNKNOWN = "UNKNOWN",
|
|
852
867
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
853
868
|
MEMBER = "MEMBER",
|
|
854
869
|
WIX_USER = "WIX_USER",
|
|
855
870
|
APP = "APP"
|
|
856
871
|
}
|
|
857
|
-
|
|
872
|
+
/** @enumType */
|
|
873
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
874
|
+
interface SaveSeatingPlanVersionRequest {
|
|
858
875
|
/** A plan version to be saved */
|
|
859
876
|
plan?: SeatingPlan;
|
|
860
877
|
/**
|
|
@@ -868,24 +885,24 @@ export interface SaveSeatingPlanVersionRequest {
|
|
|
868
885
|
*/
|
|
869
886
|
parentVersion?: string | null;
|
|
870
887
|
}
|
|
871
|
-
|
|
888
|
+
interface SaveSeatingPlanVersionResponse {
|
|
872
889
|
/** Updated plan version */
|
|
873
890
|
plan?: SeatingPlan;
|
|
874
891
|
}
|
|
875
|
-
|
|
892
|
+
interface QuerySeatingPlanVersionsRequest {
|
|
876
893
|
/**
|
|
877
894
|
* Generic query object
|
|
878
895
|
* Possible fieldsets: "elements", "categories", "places", "config".
|
|
879
896
|
*/
|
|
880
897
|
query?: QueryV2;
|
|
881
898
|
}
|
|
882
|
-
|
|
899
|
+
interface QuerySeatingPlanVersionsResponse {
|
|
883
900
|
/** Plan results */
|
|
884
901
|
plans?: SeatingPlan[];
|
|
885
902
|
/** Paging meta data */
|
|
886
903
|
metadata?: PagingMetadataV2;
|
|
887
904
|
}
|
|
888
|
-
|
|
905
|
+
interface PagingMetadataV2 {
|
|
889
906
|
/** Number of items returned in the response. */
|
|
890
907
|
count?: number | null;
|
|
891
908
|
/** Offset that was requested. */
|
|
@@ -897,7 +914,7 @@ export interface PagingMetadataV2 {
|
|
|
897
914
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
898
915
|
cursors?: Cursors;
|
|
899
916
|
}
|
|
900
|
-
|
|
917
|
+
interface Cursors {
|
|
901
918
|
/**
|
|
902
919
|
* Cursor string pointing to the next page in the list of results.
|
|
903
920
|
* @maxLength 16000
|
|
@@ -909,7 +926,7 @@ export interface Cursors {
|
|
|
909
926
|
*/
|
|
910
927
|
prev?: string | null;
|
|
911
928
|
}
|
|
912
|
-
|
|
929
|
+
interface DiscardSeatingPlanVersionsRequest {
|
|
913
930
|
/**
|
|
914
931
|
* Seating Plan ID
|
|
915
932
|
* @format GUID
|
|
@@ -918,9 +935,9 @@ export interface DiscardSeatingPlanVersionsRequest {
|
|
|
918
935
|
/** Version from which all higher versions will be discarded. */
|
|
919
936
|
version?: string | null;
|
|
920
937
|
}
|
|
921
|
-
|
|
938
|
+
interface DiscardSeatingPlanVersionsResponse {
|
|
922
939
|
}
|
|
923
|
-
|
|
940
|
+
interface RestoreSeatingPlanRequest {
|
|
924
941
|
/**
|
|
925
942
|
* Seating Plan ID
|
|
926
943
|
* @format GUID
|
|
@@ -929,14 +946,14 @@ export interface RestoreSeatingPlanRequest {
|
|
|
929
946
|
/** Version to witch the seating plan should be restored. */
|
|
930
947
|
version?: string | null;
|
|
931
948
|
}
|
|
932
|
-
|
|
949
|
+
interface RestoreSeatingPlanResponse {
|
|
933
950
|
/** Seating Plan */
|
|
934
951
|
plan?: SeatingPlan;
|
|
935
952
|
}
|
|
936
|
-
|
|
953
|
+
interface UpdateSeatingPlanThumbnailRequest {
|
|
937
954
|
thumbnail: SeatingPlanThumbnail;
|
|
938
955
|
}
|
|
939
|
-
|
|
956
|
+
interface SeatingPlanThumbnail {
|
|
940
957
|
/**
|
|
941
958
|
* @format GUID
|
|
942
959
|
* @readonly
|
|
@@ -944,20 +961,20 @@ export interface SeatingPlanThumbnail {
|
|
|
944
961
|
_id?: string | null;
|
|
945
962
|
img?: string | null;
|
|
946
963
|
}
|
|
947
|
-
|
|
964
|
+
interface UpdateSeatingPlanThumbnailResponse {
|
|
948
965
|
thumbnail?: SeatingPlanThumbnail;
|
|
949
966
|
}
|
|
950
|
-
|
|
967
|
+
interface GetSeatingPlanThumbnailRequest {
|
|
951
968
|
/**
|
|
952
969
|
* @format GUID
|
|
953
970
|
* @readonly
|
|
954
971
|
*/
|
|
955
972
|
_id: string | null;
|
|
956
973
|
}
|
|
957
|
-
|
|
974
|
+
interface GetSeatingPlanThumbnailResponse {
|
|
958
975
|
thumbnail?: SeatingPlanThumbnail;
|
|
959
976
|
}
|
|
960
|
-
|
|
977
|
+
interface BaseEventMetadata {
|
|
961
978
|
/**
|
|
962
979
|
* App instance ID.
|
|
963
980
|
* @format GUID
|
|
@@ -971,7 +988,7 @@ export interface BaseEventMetadata {
|
|
|
971
988
|
/** The identification type and identity data. */
|
|
972
989
|
identity?: IdentificationData;
|
|
973
990
|
}
|
|
974
|
-
|
|
991
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
975
992
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
976
993
|
_id?: string;
|
|
977
994
|
/**
|
|
@@ -1001,101 +1018,25 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
1001
1018
|
*/
|
|
1002
1019
|
entityEventSequence?: string | null;
|
|
1003
1020
|
}
|
|
1004
|
-
|
|
1021
|
+
interface SeatingPlanCreatedEnvelope {
|
|
1005
1022
|
entity: SeatingPlan;
|
|
1006
1023
|
metadata: EventMetadata;
|
|
1007
1024
|
}
|
|
1008
|
-
|
|
1009
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1010
|
-
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1011
|
-
* @webhook
|
|
1012
|
-
* @eventType wix.seating.v1.seating_plan_created
|
|
1013
|
-
* @slug created
|
|
1014
|
-
* @documentationMaturity preview
|
|
1015
|
-
*/
|
|
1016
|
-
export declare function onSeatingPlanCreated(handler: (event: SeatingPlanCreatedEnvelope) => void | Promise<void>): void;
|
|
1017
|
-
export interface SeatingPlanDeletedEnvelope {
|
|
1025
|
+
interface SeatingPlanDeletedEnvelope {
|
|
1018
1026
|
entity: SeatingPlan;
|
|
1019
1027
|
metadata: EventMetadata;
|
|
1020
1028
|
}
|
|
1021
|
-
|
|
1022
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1023
|
-
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1024
|
-
* @webhook
|
|
1025
|
-
* @eventType wix.seating.v1.seating_plan_deleted
|
|
1026
|
-
* @slug deleted
|
|
1027
|
-
* @documentationMaturity preview
|
|
1028
|
-
*/
|
|
1029
|
-
export declare function onSeatingPlanDeleted(handler: (event: SeatingPlanDeletedEnvelope) => void | Promise<void>): void;
|
|
1030
|
-
export interface SeatingPlanUpdatedEnvelope {
|
|
1029
|
+
interface SeatingPlanUpdatedEnvelope {
|
|
1031
1030
|
entity: SeatingPlan;
|
|
1032
1031
|
metadata: EventMetadata;
|
|
1033
1032
|
}
|
|
1034
|
-
|
|
1035
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1036
|
-
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1037
|
-
* @webhook
|
|
1038
|
-
* @eventType wix.seating.v1.seating_plan_updated
|
|
1039
|
-
* @slug updated
|
|
1040
|
-
* @documentationMaturity preview
|
|
1041
|
-
*/
|
|
1042
|
-
export declare function onSeatingPlanUpdated(handler: (event: SeatingPlanUpdatedEnvelope) => void | Promise<void>): void;
|
|
1043
|
-
type SeatingPlanNonNullablePaths = `sections` | `sections.${number}._id` | `sections.${number}.default` | `categories` | `categories.${number}._id` | `categories.${number}.title` | `uncategorizedPlaces` | `uncategorizedPlaces.${number}.index` | `uncategorizedPlaces.${number}.label` | `uncategorizedPlaces.${number}.elementType` | `uncategorizedPlaces.${number}.type` | `elementGroups` | `elementGroups.${number}._id`;
|
|
1044
|
-
/**
|
|
1045
|
-
* Crates a seating plan
|
|
1046
|
-
* @param plan - A plan to be created
|
|
1047
|
-
* @public
|
|
1048
|
-
* @documentationMaturity preview
|
|
1049
|
-
* @requiredField plan
|
|
1050
|
-
* @requiredField plan.sections.elements.title
|
|
1051
|
-
* @requiredField plan.title
|
|
1052
|
-
* @permissionId SEATING_PLANS.MANAGE_SEATING_PLANS
|
|
1053
|
-
* @permissionScope Manage Events
|
|
1054
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1055
|
-
* @applicableIdentity APP
|
|
1056
|
-
* @returns The created plan
|
|
1057
|
-
* @fqn com.wixpress.seating.SeatingPlanManagement.CreateSeatingPlan
|
|
1058
|
-
*/
|
|
1059
|
-
export declare function createSeatingPlan(plan: NonNullablePaths<SeatingPlan, `sections.${number}.elements.${number}.title` | `title`>): Promise<NonNullablePaths<SeatingPlan, SeatingPlanNonNullablePaths>>;
|
|
1060
|
-
/**
|
|
1061
|
-
* Updates the seating plan
|
|
1062
|
-
* @public
|
|
1063
|
-
* @documentationMaturity preview
|
|
1064
|
-
* @requiredField options.plan._id
|
|
1065
|
-
* @requiredField options.plan.sections.elements.title
|
|
1066
|
-
* @permissionId SEATING_PLANS.MANAGE_SEATING_PLANS
|
|
1067
|
-
* @permissionScope Manage Events
|
|
1068
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1069
|
-
* @applicableIdentity APP
|
|
1070
|
-
* @returns The updated plan
|
|
1071
|
-
* @fqn com.wixpress.seating.SeatingPlanManagement.UpdateSeatingPlan
|
|
1072
|
-
*/
|
|
1073
|
-
export declare function updateSeatingPlan(options?: NonNullablePaths<UpdateSeatingPlanOptions, `plan._id` | `plan.sections.${number}.elements.${number}.title`>): Promise<NonNullablePaths<SeatingPlan, SeatingPlanNonNullablePaths>>;
|
|
1074
|
-
export interface UpdateSeatingPlanOptions {
|
|
1033
|
+
interface UpdateSeatingPlanOptions {
|
|
1075
1034
|
/** The plan updates */
|
|
1076
1035
|
plan?: SeatingPlan;
|
|
1077
1036
|
/** A set of field paths, specifying which parts of seating plan to update */
|
|
1078
1037
|
fields?: string[];
|
|
1079
1038
|
}
|
|
1080
|
-
|
|
1081
|
-
* Copies the seating plan
|
|
1082
|
-
* @param _id - The id of the plan to be copied
|
|
1083
|
-
* @public
|
|
1084
|
-
* @documentationMaturity preview
|
|
1085
|
-
* @requiredField _id
|
|
1086
|
-
* @requiredField options
|
|
1087
|
-
* @requiredField options.externalId
|
|
1088
|
-
* @requiredField options.title
|
|
1089
|
-
* @permissionId SEATING_PLANS.MANAGE_SEATING_PLANS
|
|
1090
|
-
* @permissionScope Manage Events
|
|
1091
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1092
|
-
* @applicableIdentity APP
|
|
1093
|
-
* @fqn com.wixpress.seating.SeatingPlanManagement.CopySeatingPlan
|
|
1094
|
-
*/
|
|
1095
|
-
export declare function copySeatingPlan(_id: string, options: NonNullablePaths<CopySeatingPlanOptions, `externalId` | `title`>): Promise<NonNullablePaths<CopySeatingPlanResponse, {
|
|
1096
|
-
[P in SeatingPlanNonNullablePaths]: `plan.${P}`;
|
|
1097
|
-
}[SeatingPlanNonNullablePaths]>>;
|
|
1098
|
-
export interface CopySeatingPlanOptions {
|
|
1039
|
+
interface CopySeatingPlanOptions {
|
|
1099
1040
|
/**
|
|
1100
1041
|
* New plan title
|
|
1101
1042
|
* @minLength 1
|
|
@@ -1109,21 +1050,9 @@ export interface CopySeatingPlanOptions {
|
|
|
1109
1050
|
*/
|
|
1110
1051
|
externalId: string | null;
|
|
1111
1052
|
}
|
|
1112
|
-
|
|
1113
|
-
* Lists seating plans by provided query request
|
|
1114
|
-
* @public
|
|
1115
|
-
* @documentationMaturity preview
|
|
1116
|
-
* @permissionScope Manage Events
|
|
1117
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1118
|
-
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1119
|
-
* @applicableIdentity APP
|
|
1120
|
-
* @applicableIdentity VISITOR
|
|
1121
|
-
* @fqn com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlan
|
|
1122
|
-
*/
|
|
1123
|
-
export declare function querySeatingPlan(options?: QuerySeatingPlanOptions): PlansQueryBuilder;
|
|
1124
|
-
export interface QuerySeatingPlanOptions {
|
|
1053
|
+
interface QuerySeatingPlanOptions {
|
|
1125
1054
|
/** A fieldset for the response */
|
|
1126
|
-
fieldset?:
|
|
1055
|
+
fieldset?: FieldsetWithLiterals[] | undefined;
|
|
1127
1056
|
}
|
|
1128
1057
|
interface QueryCursorResult {
|
|
1129
1058
|
cursors: Cursors;
|
|
@@ -1132,13 +1061,13 @@ interface QueryCursorResult {
|
|
|
1132
1061
|
length: number;
|
|
1133
1062
|
pageSize: number;
|
|
1134
1063
|
}
|
|
1135
|
-
|
|
1064
|
+
interface PlansQueryResult extends QueryCursorResult {
|
|
1136
1065
|
items: SeatingPlan[];
|
|
1137
1066
|
query: PlansQueryBuilder;
|
|
1138
1067
|
next: () => Promise<PlansQueryResult>;
|
|
1139
1068
|
prev: () => Promise<PlansQueryResult>;
|
|
1140
1069
|
}
|
|
1141
|
-
|
|
1070
|
+
interface PlansQueryBuilder {
|
|
1142
1071
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1143
1072
|
* @documentationMaturity preview
|
|
1144
1073
|
*/
|
|
@@ -1150,27 +1079,12 @@ export interface PlansQueryBuilder {
|
|
|
1150
1079
|
/** @documentationMaturity preview */
|
|
1151
1080
|
find: () => Promise<PlansQueryResult>;
|
|
1152
1081
|
}
|
|
1153
|
-
|
|
1154
|
-
* Returns the seating plan. Fails of not fond.
|
|
1155
|
-
* @param _id - The id of the plan
|
|
1156
|
-
* @public
|
|
1157
|
-
* @documentationMaturity preview
|
|
1158
|
-
* @requiredField _id
|
|
1159
|
-
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1160
|
-
* @permissionScope Manage Events
|
|
1161
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1162
|
-
* @applicableIdentity APP
|
|
1163
|
-
* @applicableIdentity VISITOR
|
|
1164
|
-
* @returns The plan
|
|
1165
|
-
* @fqn com.wixpress.seating.SeatingPlanManagement.GetSeatingPlan
|
|
1166
|
-
*/
|
|
1167
|
-
export declare function getSeatingPlan(_id: string, options?: GetSeatingPlanOptions): Promise<NonNullablePaths<SeatingPlan, SeatingPlanNonNullablePaths>>;
|
|
1168
|
-
export interface GetSeatingPlanOptions {
|
|
1082
|
+
interface GetSeatingPlanOptions {
|
|
1169
1083
|
/**
|
|
1170
1084
|
* A fieldset for the response
|
|
1171
1085
|
* @deprecated
|
|
1172
1086
|
*/
|
|
1173
|
-
fieldset?:
|
|
1087
|
+
fieldset?: FieldsetWithLiterals[];
|
|
1174
1088
|
/**
|
|
1175
1089
|
* Projection on the result object - list of named projections.
|
|
1176
1090
|
* Possible values: "elements", "categories", "places", "config".
|
|
@@ -1179,28 +1093,12 @@ export interface GetSeatingPlanOptions {
|
|
|
1179
1093
|
/** Seating Plan Mask */
|
|
1180
1094
|
seatingPlanMask?: SeatingPlanMask;
|
|
1181
1095
|
}
|
|
1182
|
-
|
|
1183
|
-
* Returns the first seating plan found by filter request.
|
|
1184
|
-
* @param filter - The filter of the plan
|
|
1185
|
-
* @public
|
|
1186
|
-
* @documentationMaturity preview
|
|
1187
|
-
* @requiredField filter
|
|
1188
|
-
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1189
|
-
* @permissionScope Manage Events
|
|
1190
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1191
|
-
* @applicableIdentity APP
|
|
1192
|
-
* @applicableIdentity VISITOR
|
|
1193
|
-
* @fqn com.wixpress.seating.SeatingPlanManagement.FindSeatingPlan
|
|
1194
|
-
*/
|
|
1195
|
-
export declare function findSeatingPlan(filter: Record<string, any>, options?: FindSeatingPlanOptions): Promise<NonNullablePaths<FindSeatingPlanResponse, {
|
|
1196
|
-
[P in SeatingPlanNonNullablePaths]: `plan.${P}`;
|
|
1197
|
-
}[SeatingPlanNonNullablePaths]>>;
|
|
1198
|
-
export interface FindSeatingPlanOptions {
|
|
1096
|
+
interface FindSeatingPlanOptions {
|
|
1199
1097
|
/**
|
|
1200
1098
|
* A fieldset for the response
|
|
1201
1099
|
* @deprecated
|
|
1202
1100
|
*/
|
|
1203
|
-
fieldset?:
|
|
1101
|
+
fieldset?: FieldsetWithLiterals[];
|
|
1204
1102
|
/**
|
|
1205
1103
|
* Projection on the result object - list of named projections.
|
|
1206
1104
|
* Possible values: "elements", "categories", "places", "config".
|
|
@@ -1209,45 +1107,5 @@ export interface FindSeatingPlanOptions {
|
|
|
1209
1107
|
/** Seating Plan Mask */
|
|
1210
1108
|
seatingPlanMask?: SeatingPlanMask;
|
|
1211
1109
|
}
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
* @param _id - The id of the plan
|
|
1215
|
-
* @public
|
|
1216
|
-
* @documentationMaturity preview
|
|
1217
|
-
* @requiredField _id
|
|
1218
|
-
* @permissionId SEATING_PLANS.MANAGE_SEATING_PLANS
|
|
1219
|
-
* @permissionScope Manage Events
|
|
1220
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1221
|
-
* @applicableIdentity APP
|
|
1222
|
-
* @fqn com.wixpress.seating.SeatingPlanManagement.DeleteSeatingPlan
|
|
1223
|
-
*/
|
|
1224
|
-
export declare function deleteSeatingPlan(_id: string): Promise<NonNullablePaths<DeleteSeatingPlanResponse, {
|
|
1225
|
-
[P in SeatingPlanNonNullablePaths]: `plan.${P}`;
|
|
1226
|
-
}[SeatingPlanNonNullablePaths]>>;
|
|
1227
|
-
/**
|
|
1228
|
-
* Updates seating plan thumbnail.
|
|
1229
|
-
* @public
|
|
1230
|
-
* @documentationMaturity preview
|
|
1231
|
-
* @requiredField thumbnail
|
|
1232
|
-
* @requiredField thumbnail._id
|
|
1233
|
-
* @requiredField thumbnail.img
|
|
1234
|
-
* @permissionId SEATING_PLANS.MANAGE_SEATING_PLANS
|
|
1235
|
-
* @permissionScope Manage Events
|
|
1236
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1237
|
-
* @applicableIdentity APP
|
|
1238
|
-
* @fqn com.wixpress.seating.SeatingPlanThumbnailService.UpdateSeatingPlanThumbnail
|
|
1239
|
-
*/
|
|
1240
|
-
export declare function updateSeatingPlanThumbnail(thumbnail: NonNullablePaths<SeatingPlanThumbnail, `_id` | `img`>): Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
1241
|
-
/**
|
|
1242
|
-
* Get seating plan thumbnail.
|
|
1243
|
-
* @public
|
|
1244
|
-
* @documentationMaturity preview
|
|
1245
|
-
* @requiredField _id
|
|
1246
|
-
* @permissionId SEATING_PLANS.MANAGE_SEATING_PLANS
|
|
1247
|
-
* @permissionScope Manage Events
|
|
1248
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1249
|
-
* @applicableIdentity APP
|
|
1250
|
-
* @fqn com.wixpress.seating.SeatingPlanThumbnailService.GetSeatingPlanThumbnail
|
|
1251
|
-
*/
|
|
1252
|
-
export declare function getSeatingPlanThumbnail(_id: string): Promise<GetSeatingPlanThumbnailResponse>;
|
|
1253
|
-
export {};
|
|
1110
|
+
|
|
1111
|
+
export { type QuerySeatingPlanResponse as $, type CreateSeatingPlanResponse as A, type CapacityExceededViolation as B, type CopySeatingPlanOptions as C, type DeleteSeatingPlanResponse as D, type Element as E, type FindSeatingPlanOptions as F, type GetSeatingPlanOptions as G, type UpdateSeatingPlanRequest as H, Icon as I, type UpdateSeatingPlanResponse as J, type CopySeatingPlanRequest as K, type QuerySeatingPlanRequest as L, type MultiRowProperties as M, Numbering as N, type QueryV2 as O, type PlansQueryBuilder as P, type QuerySeatingPlanOptions as Q, type ReservationOptions as R, type SeatingPlan as S, Type as T, type UpdateSeatingPlanOptions as U, type VerticalSequencing as V, WebhookIdentityType as W, type QueryV2PagingMethodOneOf as X, type Sorting as Y, type Paging as Z, type CursorPaging as _, type CopySeatingPlanResponse as a, type GetSeatingPlanRequest as a0, type SeatingPlanMask as a1, type GetSeatingPlanResponse as a2, type FindSeatingPlanRequest as a3, type DeleteSeatingPlanRequest as a4, type DomainEvent as a5, type DomainEventBodyOneOf as a6, type EntityCreatedEvent as a7, type RestoreInfo as a8, type EntityUpdatedEvent as a9, type EntityDeletedEvent as aa, type ActionEvent as ab, type MessageEnvelope as ac, type IdentificationData as ad, type IdentificationDataIdOneOf as ae, type SaveSeatingPlanVersionRequest as af, type SaveSeatingPlanVersionResponse as ag, type QuerySeatingPlanVersionsRequest as ah, type QuerySeatingPlanVersionsResponse as ai, type PagingMetadataV2 as aj, type Cursors as ak, type DiscardSeatingPlanVersionsRequest as al, type DiscardSeatingPlanVersionsResponse as am, type RestoreSeatingPlanRequest as an, type RestoreSeatingPlanResponse as ao, type UpdateSeatingPlanThumbnailRequest as ap, type GetSeatingPlanThumbnailRequest as aq, type BaseEventMetadata as ar, type EventMetadata as as, type PlansQueryResult as at, type FindSeatingPlanResponse as b, type SeatingPlanThumbnail as c, type UpdateSeatingPlanThumbnailResponse as d, type GetSeatingPlanThumbnailResponse as e, type SeatingPlanCreatedEnvelope as f, type SeatingPlanDeletedEnvelope as g, type SeatingPlanUpdatedEnvelope as h, PlaceTypeEnumType as i, ShapeTypeEnumType as j, Position as k, SortOrder as l, Fieldset as m, type Section as n, type Sequencing as o, type Place as p, type ElementUiProperties as q, type Image as r, type RowElement as s, type RowElementUiProperties as t, type Category as u, type ExtendedFields as v, type SeatingPlanUiProperties as w, type ElementGroup as x, type ElementGroupUiProperties as y, type CreateSeatingPlanRequest as z };
|