@wix/auto_sdk_seatings_seating-plan 1.0.19 → 1.0.21
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 +19 -17
- package/build/cjs/index.js +39 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +266 -166
- package/build/cjs/index.typings.js +39 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +456 -119
- package/build/cjs/meta.js +140 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +19 -17
- package/build/es/index.mjs +39 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +266 -166
- package/build/es/index.typings.mjs +39 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +456 -119
- package/build/es/meta.mjs +131 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +19 -17
- package/build/internal/cjs/index.js +39 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +266 -166
- package/build/internal/cjs/index.typings.js +39 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +456 -119
- package/build/internal/cjs/meta.js +140 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +19 -17
- package/build/internal/es/index.mjs +39 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +266 -166
- package/build/internal/es/index.typings.mjs +39 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +456 -119
- package/build/internal/es/meta.mjs +131 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,480 +1,559 @@
|
|
|
1
1
|
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
2
|
|
|
3
|
+
/** A seating plan represents the layout and organization of seats within a venue. It defines the physical arrangement of seating areas, pricing categories, and individual places where attendees can be seated or positioned during an event. */
|
|
3
4
|
interface SeatingPlan {
|
|
4
5
|
/**
|
|
5
|
-
*
|
|
6
|
+
* Seating plan ID.
|
|
6
7
|
* @format GUID
|
|
7
8
|
* @readonly
|
|
8
9
|
*/
|
|
9
10
|
_id?: string | null;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
-
* Can reference external entities.
|
|
13
|
-
* Format: "{fqdn}:{entity guid}"
|
|
12
|
+
* Client-defined external ID for cross-referencing with external systems. Format: `{fqdn}:{entity_guid}`. For example, `wix.events.v1.event:abc-123-def`.
|
|
14
13
|
* @minLength 1
|
|
15
14
|
* @maxLength 100
|
|
16
15
|
*/
|
|
17
16
|
externalId?: string | null;
|
|
18
17
|
/**
|
|
19
|
-
* Human
|
|
18
|
+
* Human-friendly seating plan title. For example, `Madison Square Garden - Main Floor`.
|
|
20
19
|
* @minLength 1
|
|
21
20
|
* @maxLength 120
|
|
22
21
|
*/
|
|
23
22
|
title?: string | null;
|
|
24
23
|
/**
|
|
25
|
-
*
|
|
24
|
+
* High-level divisions of the venue, such as "Orchestra", "Balcony", or "VIP Section". A default section with `id = 0` is required and serves as the primary seating area.
|
|
26
25
|
* @maxSize 100
|
|
27
26
|
*/
|
|
28
27
|
sections?: Section[];
|
|
29
28
|
/**
|
|
30
|
-
*
|
|
29
|
+
* Pricing tiers or groupings for organizing places, such as "VIP", "General Admission", or "Student Discount". Elements and places can be assigned to categories for pricing and availability management.
|
|
31
30
|
* @maxSize 100
|
|
32
31
|
*/
|
|
33
32
|
categories?: Category[];
|
|
34
33
|
/**
|
|
35
|
-
*
|
|
34
|
+
* Date and time the seating plan was created.
|
|
36
35
|
* @readonly
|
|
37
36
|
*/
|
|
38
37
|
_createdDate?: Date | null;
|
|
39
38
|
/**
|
|
40
|
-
*
|
|
39
|
+
* Date and time the seating plan was updated.
|
|
41
40
|
* @readonly
|
|
42
41
|
*/
|
|
43
42
|
_updatedDate?: Date | null;
|
|
44
43
|
/**
|
|
45
|
-
* Total
|
|
44
|
+
* Total number of seats across all sections and elements in the seating plan. Automatically calculated by summing element capacities.
|
|
46
45
|
* @readonly
|
|
47
46
|
*/
|
|
48
47
|
totalCapacity?: number | null;
|
|
49
48
|
/**
|
|
50
|
-
* Total categories
|
|
49
|
+
* Total number of categories defined in the seating plan. Automatically calculated.
|
|
51
50
|
* @readonly
|
|
52
51
|
*/
|
|
53
52
|
totalCategories?: number | null;
|
|
54
53
|
/**
|
|
55
|
-
* Places not assigned to
|
|
54
|
+
* Places that are not assigned to any category. These places require manual category assignment for pricing and organization.
|
|
56
55
|
* @maxSize 50000
|
|
57
56
|
* @readonly
|
|
58
57
|
*/
|
|
59
58
|
uncategorizedPlaces?: Place[];
|
|
60
59
|
/**
|
|
61
|
-
*
|
|
60
|
+
* Version number of the seating plan, incremented by 1 each time the plan is updated. Used for version management and tracking changes.
|
|
62
61
|
* @readonly
|
|
63
62
|
*/
|
|
64
63
|
version?: string | null;
|
|
65
|
-
/**
|
|
64
|
+
/** Additional custom fields for extending the seating plan with app-specific data. Learn more about @extended fields. */
|
|
66
65
|
extendedFields?: ExtendedFields;
|
|
67
|
-
/**
|
|
66
|
+
/** Visual settings for the seating plan, such as background color and opacity. Used by seating chart interfaces for rendering. */
|
|
68
67
|
uiProperties?: SeatingPlanUiProperties;
|
|
69
68
|
/**
|
|
70
|
-
*
|
|
69
|
+
* Hierarchical groupings of elements for UI organization and bulk operations. Groups can contain multiple elements or nested sub-groups for easier management.
|
|
71
70
|
* @maxSize 1000
|
|
72
71
|
*/
|
|
73
72
|
elementGroups?: ElementGroup[];
|
|
74
73
|
}
|
|
74
|
+
/** A section represents a high-level division within a seating plan, such as "Orchestra", "Balcony", or "VIP Area". Sections contain elements that define the actual seating arrangements. */
|
|
75
75
|
interface Section {
|
|
76
|
-
/**
|
|
76
|
+
/** Section ID. Must be unique within the seating plan. Section with `id = 0` is required as the default section. */
|
|
77
77
|
_id?: number;
|
|
78
78
|
/**
|
|
79
|
-
* Human
|
|
79
|
+
* Human-readable section title. For example, `Orchestra` or `Balcony`.
|
|
80
80
|
* @minLength 1
|
|
81
81
|
* @maxLength 20
|
|
82
82
|
*/
|
|
83
83
|
title?: string | null;
|
|
84
84
|
/**
|
|
85
|
-
* Client configuration object
|
|
85
|
+
* Client configuration object for storing additional section metadata. Read-only field maintained for backward compatibility.
|
|
86
86
|
* @readonly
|
|
87
87
|
*/
|
|
88
88
|
config?: Record<string, any> | null;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Seating elements within this section, such as rows, tables, or general admission areas. Each element generates individual places based on its type and capacity.
|
|
91
91
|
* @maxSize 1000
|
|
92
92
|
*/
|
|
93
93
|
elements?: Element[];
|
|
94
94
|
/**
|
|
95
|
-
* Total capacity
|
|
95
|
+
* Total capacity of all elements within this section. Automatically calculated by summing element capacities.
|
|
96
96
|
* @readonly
|
|
97
97
|
*/
|
|
98
98
|
totalCapacity?: number | null;
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* Whether this is the default section. Always `true` for section with `id = 0`.
|
|
101
101
|
* @readonly
|
|
102
102
|
*/
|
|
103
103
|
default?: boolean;
|
|
104
104
|
}
|
|
105
|
+
/** An element represents a specific seating configuration within a section, such as a row of seats, a table, or a general admission area. Elements generate individual places based on their type and capacity. */
|
|
105
106
|
interface Element {
|
|
106
107
|
/**
|
|
107
|
-
*
|
|
108
|
+
* Element ID. Must be unique within the seating plan.
|
|
108
109
|
* @min 1
|
|
109
110
|
*/
|
|
110
111
|
_id?: number;
|
|
111
112
|
/**
|
|
112
|
-
* User
|
|
113
|
+
* User-friendly title or label for the element. For example, `Row A` or `VIP Table 1`.
|
|
113
114
|
* @minLength 1
|
|
114
115
|
* @maxLength 50
|
|
115
116
|
*/
|
|
116
117
|
title?: string | null;
|
|
117
|
-
/**
|
|
118
|
+
/** Type of seating element, which determines capacity limits and place generation behavior. See ElementTypeEnum for available types. */
|
|
118
119
|
type?: TypeWithLiterals;
|
|
119
120
|
/**
|
|
120
|
-
*
|
|
121
|
+
* Number of seats or spots in this element. Not applicable for SHAPE type elements. Maximum 50,000 per element.
|
|
121
122
|
* @min 1
|
|
122
123
|
* @max 50000
|
|
123
124
|
*/
|
|
124
125
|
capacity?: number | null;
|
|
125
|
-
/**
|
|
126
|
+
/** ID of the category this element is assigned to for pricing and organization. References a category defined in the seating plan. */
|
|
126
127
|
categoryId?: number | null;
|
|
127
|
-
/**
|
|
128
|
+
/** Configuration for generating place labels and numbering within this element. Defines how seats are labeled (e.g., 1, 2, 3 or A, B, C). */
|
|
128
129
|
sequencing?: Sequencing;
|
|
129
130
|
/**
|
|
130
|
-
*
|
|
131
|
+
* Custom place configurations that override the default generated places for specific positions. Used for accessibility seating, obstructed views, or custom labeling.
|
|
131
132
|
* @maxSize 2000
|
|
132
133
|
*/
|
|
133
134
|
overrides?: Place[];
|
|
134
135
|
/**
|
|
135
|
-
* Final
|
|
136
|
+
* Final sequence of places generated for this element, including any overrides applied. Read-only field populated by the system.
|
|
136
137
|
* @maxSize 200
|
|
137
138
|
* @readonly
|
|
138
139
|
*/
|
|
139
140
|
places?: Place[];
|
|
140
|
-
/**
|
|
141
|
+
/** Constraints on how this element can be reserved or booked. For example, requiring the entire element to be reserved as a unit. */
|
|
141
142
|
reservationOptions?: ReservationOptions;
|
|
142
|
-
/**
|
|
143
|
+
/** Visual positioning and styling properties for rendering this element in a seating chart. Includes coordinates, dimensions, and styling options. */
|
|
143
144
|
uiProperties?: ElementUiProperties;
|
|
144
|
-
/**
|
|
145
|
+
/** ID of the element group this element belongs to for hierarchical organization. References an ElementGroup defined in the seating plan. */
|
|
145
146
|
elementGroupId?: number | null;
|
|
146
|
-
/**
|
|
147
|
+
/** Additional properties for MULTI_ROW type elements, defining individual rows and their configurations. Only applicable when type is MULTI_ROW. */
|
|
147
148
|
multiRowProperties?: MultiRowProperties;
|
|
148
149
|
}
|
|
149
150
|
declare enum Type {
|
|
151
|
+
/** General admission area with a single place containing the full capacity. */
|
|
150
152
|
AREA = "AREA",
|
|
153
|
+
/** Single row of individual seats with sequential labeling. */
|
|
151
154
|
ROW = "ROW",
|
|
155
|
+
/** Multiple rows treated as one element, each with individual capacity and sequencing. */
|
|
152
156
|
MULTI_ROW = "MULTI_ROW",
|
|
157
|
+
/** Rectangular table with individual seats around the perimeter. */
|
|
153
158
|
TABLE = "TABLE",
|
|
159
|
+
/** Circular table with individual seats around the perimeter. */
|
|
154
160
|
ROUND_TABLE = "ROUND_TABLE",
|
|
161
|
+
/** Visual element with no seating capacity, used for decorative or informational purposes. */
|
|
155
162
|
SHAPE = "SHAPE"
|
|
156
163
|
}
|
|
157
164
|
/** @enumType */
|
|
158
165
|
type TypeWithLiterals = Type | 'AREA' | 'ROW' | 'MULTI_ROW' | 'TABLE' | 'ROUND_TABLE' | 'SHAPE';
|
|
166
|
+
/** Configuration for generating sequential labels for places within an element. */
|
|
159
167
|
interface Sequencing {
|
|
160
168
|
/**
|
|
161
|
-
*
|
|
169
|
+
* Starting value for the sequence. For example, `1` for numeric sequences or `A` for alphabetical sequences.
|
|
162
170
|
* @minLength 1
|
|
163
171
|
* @maxLength 4
|
|
164
172
|
*/
|
|
165
173
|
startAt?: string;
|
|
166
174
|
/**
|
|
167
|
-
*
|
|
175
|
+
* Complete sequence of labels to be used for places. Must match the element's capacity. When provided, overrides automatic label generation.
|
|
168
176
|
* @maxSize 2500
|
|
169
177
|
*/
|
|
170
178
|
labels?: string[];
|
|
171
|
-
/**
|
|
179
|
+
/** Whether to apply labels in reverse order (right-to-left instead of left-to-right). Useful for venue-specific numbering conventions. */
|
|
172
180
|
reverseOrder?: boolean | null;
|
|
173
181
|
}
|
|
182
|
+
/** An individual seat or spot within an element where an attendee can be positioned. */
|
|
174
183
|
interface Place {
|
|
175
|
-
/**
|
|
184
|
+
/** Zero-based position of this place within the element's sequence. Used to identify the place's position for overrides. */
|
|
176
185
|
index?: number;
|
|
177
186
|
/**
|
|
178
|
-
*
|
|
187
|
+
* Unique place ID in the format `{section_id}-{element_id}-{label}`. For example, `0-1-A5` for section 0, element 1, seat A5.
|
|
179
188
|
* @readonly
|
|
180
189
|
*/
|
|
181
190
|
_id?: string | null;
|
|
182
191
|
/**
|
|
183
|
-
*
|
|
192
|
+
* Human-readable label for this place, such as `A1`, `12`, or `VIP1`. Generated based on sequencing configuration or custom overrides.
|
|
184
193
|
* @minLength 1
|
|
185
194
|
* @maxLength 4
|
|
186
195
|
*/
|
|
187
196
|
label?: string;
|
|
188
197
|
/**
|
|
189
|
-
*
|
|
198
|
+
* Maximum number of people that can occupy this place. Typically 1 for individual seats, higher for AREA type places.
|
|
190
199
|
* @readonly
|
|
191
200
|
*/
|
|
192
201
|
capacity?: number | null;
|
|
193
202
|
/**
|
|
194
|
-
* Type of the parent element
|
|
203
|
+
* Type of the parent element that contains this place. Inherited from the element's type.
|
|
195
204
|
* @readonly
|
|
196
205
|
*/
|
|
197
206
|
elementType?: TypeWithLiterals;
|
|
198
207
|
/**
|
|
199
|
-
*
|
|
208
|
+
* ID of the category this place is assigned to. Inherited from element or row category assignment.
|
|
200
209
|
* @readonly
|
|
201
210
|
*/
|
|
202
211
|
categoryId?: number | null;
|
|
203
|
-
/**
|
|
212
|
+
/** Special characteristics or accessibility features of this place (standard, wheelchair, accessible, companion, obstructed, discount). */
|
|
204
213
|
type?: PlaceTypeEnumTypeWithLiterals;
|
|
205
214
|
}
|
|
206
215
|
declare enum PlaceTypeEnumType {
|
|
216
|
+
/** Unknown place type. */
|
|
207
217
|
UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
|
|
218
|
+
/** Standard seating with no special accommodations. */
|
|
208
219
|
STANDARD = "STANDARD",
|
|
220
|
+
/** Wheelchair accessible seating space. */
|
|
209
221
|
WHEELCHAIR = "WHEELCHAIR",
|
|
222
|
+
/** Accessible seating for mobility-impaired guests. */
|
|
210
223
|
ACCESSIBLE = "ACCESSIBLE",
|
|
224
|
+
/** Companion seat adjacent to accessible seating. */
|
|
211
225
|
COMPANION = "COMPANION",
|
|
226
|
+
/** Seat with limited or obstructed view. */
|
|
212
227
|
OBSTRUCTED = "OBSTRUCTED",
|
|
228
|
+
/** Discounted pricing seat. */
|
|
213
229
|
DISCOUNT = "DISCOUNT"
|
|
214
230
|
}
|
|
215
231
|
/** @enumType */
|
|
216
232
|
type PlaceTypeEnumTypeWithLiterals = PlaceTypeEnumType | 'UNKNOWN_PROPERTY' | 'STANDARD' | 'WHEELCHAIR' | 'ACCESSIBLE' | 'COMPANION' | 'OBSTRUCTED' | 'DISCOUNT';
|
|
233
|
+
/** Configuration options that control how an element can be reserved or booked. */
|
|
217
234
|
interface ReservationOptions {
|
|
218
|
-
/**
|
|
235
|
+
/** Whether the entire element must be reserved as a single unit. When `true`, individual seats cannot be booked separately. Cannot be used with AREA type elements. */
|
|
219
236
|
reserveWholeElement?: boolean;
|
|
220
237
|
}
|
|
238
|
+
/** Visual positioning and styling properties for rendering elements in a seating chart interface. */
|
|
221
239
|
interface ElementUiProperties {
|
|
222
240
|
/**
|
|
241
|
+
* Horizontal position coordinate of the element in the seating chart coordinate system.
|
|
223
242
|
* @min -1000000
|
|
224
243
|
* @max 1000000
|
|
225
244
|
*/
|
|
226
245
|
x?: number | null;
|
|
227
246
|
/**
|
|
247
|
+
* Vertical position coordinate of the element in the seating chart coordinate system.
|
|
228
248
|
* @min -1000000
|
|
229
249
|
* @max 1000000
|
|
230
250
|
*/
|
|
231
251
|
y?: number | null;
|
|
232
252
|
/**
|
|
253
|
+
* Layering order for overlapping elements. Higher values appear on top of lower values.
|
|
233
254
|
* @min -1000000
|
|
234
255
|
* @max 1000000
|
|
235
256
|
*/
|
|
236
257
|
zIndex?: number | null;
|
|
237
|
-
/**
|
|
258
|
+
/**
|
|
259
|
+
* Width of the element in the coordinate system units.
|
|
260
|
+
* @max 1000000
|
|
261
|
+
*/
|
|
238
262
|
width?: number | null;
|
|
239
|
-
/**
|
|
263
|
+
/**
|
|
264
|
+
* Height of the element in the coordinate system units.
|
|
265
|
+
* @max 1000000
|
|
266
|
+
*/
|
|
240
267
|
height?: number | null;
|
|
241
268
|
/**
|
|
269
|
+
* Rotation angle of the element in degrees. Positive values rotate clockwise.
|
|
242
270
|
* @min -180
|
|
243
271
|
* @max 180
|
|
244
272
|
*/
|
|
245
273
|
rotationAngle?: number | null;
|
|
274
|
+
/** Shape type for SHAPE elements that don't represent seating. Only applicable when element type is SHAPE. */
|
|
246
275
|
shapeType?: ShapeTypeEnumTypeWithLiterals;
|
|
247
276
|
/**
|
|
277
|
+
* Font size for text elements in points.
|
|
248
278
|
* @min 10
|
|
249
279
|
* @max 176
|
|
250
280
|
*/
|
|
251
281
|
fontSize?: number | null;
|
|
252
|
-
/**
|
|
282
|
+
/**
|
|
283
|
+
* Corner radius for rounded rectangular shapes in coordinate system units.
|
|
284
|
+
* @max 1000000
|
|
285
|
+
*/
|
|
253
286
|
cornerRadius?: number | null;
|
|
254
287
|
/**
|
|
288
|
+
* Horizontal spacing between individual seats within the element.
|
|
255
289
|
* @min 1
|
|
256
290
|
* @max 60
|
|
257
291
|
*/
|
|
258
292
|
seatSpacing?: number | null;
|
|
293
|
+
/** Whether to hide labels on seats within this element. When `true`, seat labels are not displayed in the UI. */
|
|
259
294
|
hideLabel?: boolean | null;
|
|
295
|
+
/** Position of labels relative to seats (left, right, both sides, or none). */
|
|
260
296
|
labelPosition?: PositionWithLiterals;
|
|
297
|
+
/** Array defining the arrangement of seats within the element. Each number represents the count of seats in that position. */
|
|
261
298
|
seatLayout?: number[];
|
|
262
|
-
/**
|
|
299
|
+
/**
|
|
300
|
+
* Number of empty spaces at the top of the seating arrangement for visual spacing.
|
|
301
|
+
* @max 50
|
|
302
|
+
*/
|
|
263
303
|
emptyTopSeatSpaces?: number | null;
|
|
264
304
|
/**
|
|
265
|
-
*
|
|
305
|
+
* Text content for TEXT type shape elements. Only applicable when shape_type is TEXT.
|
|
266
306
|
* @minLength 1
|
|
267
307
|
* @maxLength 10000
|
|
268
308
|
*/
|
|
269
309
|
text?: string | null;
|
|
270
310
|
/**
|
|
271
|
-
*
|
|
311
|
+
* Primary color in hexadecimal format. For example, `#FF0000` for red.
|
|
272
312
|
* @format COLOR_HEX
|
|
273
313
|
*/
|
|
274
314
|
color?: string | null;
|
|
275
315
|
/**
|
|
276
|
-
*
|
|
316
|
+
* Fill color for shapes in hexadecimal format. For example, `#00FF00` for green.
|
|
277
317
|
* @format COLOR_HEX
|
|
278
318
|
*/
|
|
279
319
|
fillColor?: string | null;
|
|
280
320
|
/**
|
|
281
|
-
*
|
|
321
|
+
* Border color in hexadecimal format. For example, `#0000FF` for blue.
|
|
282
322
|
* @format COLOR_HEX
|
|
283
323
|
*/
|
|
284
324
|
strokeColor?: string | null;
|
|
285
325
|
/**
|
|
286
|
-
*
|
|
326
|
+
* Border width in pixels for shape outlines.
|
|
287
327
|
* @min 1
|
|
288
328
|
* @max 6
|
|
289
329
|
*/
|
|
290
330
|
strokeWidth?: number | null;
|
|
291
|
-
/**
|
|
331
|
+
/**
|
|
332
|
+
* Opacity level as a percentage from 0 (transparent) to 100 (opaque).
|
|
333
|
+
* @max 100
|
|
334
|
+
*/
|
|
292
335
|
opacity?: number | null;
|
|
336
|
+
/** Icon type for ICON shape elements. Only applicable when shape_type is ICON. */
|
|
293
337
|
icon?: IconWithLiterals;
|
|
338
|
+
/** Image object for IMAGE shape elements. Only applicable when shape_type is IMAGE. */
|
|
294
339
|
image?: Image;
|
|
340
|
+
/** Numbering scheme for seats within this element (numeric, alphabetical, or odd/even). */
|
|
295
341
|
seatNumbering?: NumberingWithLiterals;
|
|
296
342
|
}
|
|
297
343
|
declare enum ShapeTypeEnumType {
|
|
344
|
+
/** Unknown shape type. */
|
|
298
345
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
346
|
+
/** Text label or annotation. */
|
|
299
347
|
TEXT = "TEXT",
|
|
348
|
+
/** Rectangular shape. */
|
|
300
349
|
RECTANGLE = "RECTANGLE",
|
|
350
|
+
/** Circular or oval shape. */
|
|
301
351
|
ELLIPSE = "ELLIPSE",
|
|
352
|
+
/** Straight line. */
|
|
302
353
|
LINE = "LINE",
|
|
354
|
+
/** Predefined icon symbol. */
|
|
303
355
|
ICON = "ICON",
|
|
356
|
+
/** Custom image. */
|
|
304
357
|
IMAGE = "IMAGE"
|
|
305
358
|
}
|
|
306
359
|
/** @enumType */
|
|
307
360
|
type ShapeTypeEnumTypeWithLiterals = ShapeTypeEnumType | 'UNKNOWN_TYPE' | 'TEXT' | 'RECTANGLE' | 'ELLIPSE' | 'LINE' | 'ICON' | 'IMAGE';
|
|
308
361
|
declare enum Position {
|
|
362
|
+
/** Label positioning options for seats and elements. */
|
|
309
363
|
UNKNOWN_POSITION = "UNKNOWN_POSITION",
|
|
364
|
+
/** Labels appear to the left of seats. */
|
|
310
365
|
LEFT = "LEFT",
|
|
366
|
+
/** Labels appear to the right of seats. */
|
|
311
367
|
RIGHT = "RIGHT",
|
|
368
|
+
/** Labels appear on both sides of seats. */
|
|
312
369
|
BOTH = "BOTH",
|
|
370
|
+
/** No labels are displayed. */
|
|
313
371
|
NONE = "NONE"
|
|
314
372
|
}
|
|
315
373
|
/** @enumType */
|
|
316
374
|
type PositionWithLiterals = Position | 'UNKNOWN_POSITION' | 'LEFT' | 'RIGHT' | 'BOTH' | 'NONE';
|
|
317
375
|
declare enum Icon {
|
|
376
|
+
/** Available icon types for venue wayfinding and information. */
|
|
318
377
|
UNKNOWN_ICON = "UNKNOWN_ICON",
|
|
378
|
+
/** Entrance icon. */
|
|
319
379
|
ENTER = "ENTER",
|
|
380
|
+
/** Exit icon. */
|
|
320
381
|
EXIT = "EXIT",
|
|
382
|
+
/** Beverage service icon. */
|
|
321
383
|
DRINKS = "DRINKS",
|
|
384
|
+
/** Restroom icon. */
|
|
322
385
|
WC = "WC",
|
|
386
|
+
/** Men's restroom icon. */
|
|
323
387
|
WC_MEN = "WC_MEN",
|
|
388
|
+
/** Women's restroom icon. */
|
|
324
389
|
WC_WOMEN = "WC_WOMEN",
|
|
390
|
+
/** Food service icon. */
|
|
325
391
|
FOOD = "FOOD",
|
|
392
|
+
/** Stairway icon. */
|
|
326
393
|
STAIRS = "STAIRS",
|
|
394
|
+
/** Elevator icon. */
|
|
327
395
|
ELEVATOR = "ELEVATOR",
|
|
396
|
+
/** Smoking area icon. */
|
|
328
397
|
SMOKING = "SMOKING",
|
|
398
|
+
/** Coat check icon. */
|
|
329
399
|
CHECKROOM = "CHECKROOM",
|
|
400
|
+
/** Stage or performance area icon. */
|
|
330
401
|
STAGE = "STAGE"
|
|
331
402
|
}
|
|
332
403
|
/** @enumType */
|
|
333
404
|
type IconWithLiterals = Icon | 'UNKNOWN_ICON' | 'ENTER' | 'EXIT' | 'DRINKS' | 'WC' | 'WC_MEN' | 'WC_WOMEN' | 'FOOD' | 'STAIRS' | 'ELEVATOR' | 'SMOKING' | 'CHECKROOM' | 'STAGE';
|
|
405
|
+
/** Image reference for use in seating plan visual elements. */
|
|
334
406
|
interface Image {
|
|
335
|
-
/**
|
|
407
|
+
/** Image ID from Wix Media Manager. */
|
|
336
408
|
_id?: string;
|
|
337
409
|
/**
|
|
338
|
-
* Original image height.
|
|
410
|
+
* Original image height in pixels.
|
|
339
411
|
* @readonly
|
|
340
412
|
*/
|
|
341
413
|
height?: number;
|
|
342
414
|
/**
|
|
343
|
-
* Original image width.
|
|
415
|
+
* Original image width in pixels.
|
|
344
416
|
* @readonly
|
|
345
417
|
*/
|
|
346
418
|
width?: number;
|
|
347
419
|
/**
|
|
348
|
-
*
|
|
420
|
+
* Deprecated. Use the `id` field instead for referencing images.
|
|
349
421
|
* @deprecated
|
|
350
422
|
*/
|
|
351
423
|
uri?: string | null;
|
|
352
424
|
}
|
|
353
425
|
declare enum Numbering {
|
|
426
|
+
/** Seat numbering patterns for sequential label generation. */
|
|
354
427
|
UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
|
|
428
|
+
/** Sequential numbers (1, 2, 3, ...). */
|
|
355
429
|
NUMERIC = "NUMERIC",
|
|
430
|
+
/** Alternating odd and even numbers. */
|
|
356
431
|
ODD_EVEN = "ODD_EVEN",
|
|
432
|
+
/** Sequential letters (A, B, C, ...). */
|
|
357
433
|
ALPHABETICAL = "ALPHABETICAL"
|
|
358
434
|
}
|
|
359
435
|
/** @enumType */
|
|
360
436
|
type NumberingWithLiterals = Numbering | 'UNKNOWN_NUMBERING' | 'NUMERIC' | 'ODD_EVEN' | 'ALPHABETICAL';
|
|
437
|
+
/** Configuration for multi-row elements that contain multiple individual rows, each with their own capacity and sequencing. */
|
|
361
438
|
interface MultiRowProperties {
|
|
362
439
|
/**
|
|
363
|
-
* Individual rows
|
|
440
|
+
* Individual rows within the multi-row element. Each row has its own capacity, sequencing, and category assignment.
|
|
364
441
|
* @maxSize 1000
|
|
365
442
|
*/
|
|
366
443
|
rows?: RowElement[];
|
|
367
|
-
/**
|
|
444
|
+
/** Configuration for labeling rows vertically (e.g., Row A, Row B, Row C). Defines how row labels are generated. */
|
|
368
445
|
verticalSequencing?: VerticalSequencing;
|
|
369
446
|
/**
|
|
370
|
-
*
|
|
447
|
+
* Vertical spacing between rows in the multi-row element. Measured in coordinate system units.
|
|
371
448
|
* @min 1
|
|
372
449
|
* @max 60
|
|
373
450
|
*/
|
|
374
451
|
rowSpacing?: number | null;
|
|
375
452
|
/**
|
|
376
|
-
*
|
|
453
|
+
* Number of seats per row in the multi-row element.
|
|
377
454
|
* @max 50
|
|
378
455
|
*/
|
|
379
456
|
seatAmount?: number | null;
|
|
380
457
|
}
|
|
458
|
+
/** An individual row within a multi-row element, with its own capacity, sequencing, and category assignment. */
|
|
381
459
|
interface RowElement {
|
|
382
460
|
/**
|
|
383
|
-
*
|
|
461
|
+
* Row ID. Must be unique across all multi-row elements in the seating plan.
|
|
384
462
|
* @min 1
|
|
385
463
|
*/
|
|
386
464
|
_id?: number;
|
|
387
465
|
/**
|
|
388
|
-
* User
|
|
466
|
+
* User-friendly title or label for this row. For example, `Row A` or `Front Row`.
|
|
389
467
|
* @minLength 1
|
|
390
468
|
* @maxLength 50
|
|
391
469
|
*/
|
|
392
470
|
title?: string | null;
|
|
393
471
|
/**
|
|
394
|
-
*
|
|
472
|
+
* Number of seats in this row. Maximum 50,000 per row.
|
|
395
473
|
* @min 1
|
|
396
474
|
* @max 50000
|
|
397
475
|
*/
|
|
398
476
|
capacity?: number | null;
|
|
399
|
-
/**
|
|
477
|
+
/** Category assignment for this row, which can override the parent element's category. References a category defined in the seating plan. */
|
|
400
478
|
categoryId?: number | null;
|
|
401
|
-
/**
|
|
479
|
+
/** Configuration for generating seat labels within this row. Defines numbering scheme and starting position. */
|
|
402
480
|
sequencing?: Sequencing;
|
|
403
|
-
/**
|
|
481
|
+
/** Visual properties specific to this row within the multi-row element. Includes positioning relative to parent element. */
|
|
404
482
|
uiProperties?: RowElementUiProperties;
|
|
405
483
|
}
|
|
484
|
+
/** Visual properties specific to individual rows within multi-row elements. */
|
|
406
485
|
interface RowElementUiProperties {
|
|
407
486
|
/**
|
|
408
|
-
*
|
|
487
|
+
* Horizontal position relative to the parent multi-row element's coordinate system.
|
|
409
488
|
* @min -1000000
|
|
410
489
|
* @max 1000000
|
|
411
490
|
*/
|
|
412
491
|
relativeX?: number | null;
|
|
413
492
|
/**
|
|
414
|
-
* Width of
|
|
493
|
+
* Width of this row in coordinate system units.
|
|
415
494
|
* @max 1000000
|
|
416
495
|
*/
|
|
417
496
|
width?: number | null;
|
|
418
497
|
/**
|
|
419
|
-
*
|
|
498
|
+
* Number of seats in this row. Overrides the capacity field when specified.
|
|
420
499
|
* @max 50
|
|
421
500
|
*/
|
|
422
501
|
seatAmount?: number | null;
|
|
423
502
|
/**
|
|
424
|
-
*
|
|
503
|
+
* Spacing between seats in this row.
|
|
425
504
|
* @min 1
|
|
426
505
|
* @max 60
|
|
427
506
|
*/
|
|
428
507
|
seatSpacing?: number | null;
|
|
429
|
-
/**
|
|
508
|
+
/** Position of labels relative to seats in this row (left, right, both sides, or none). // Position of labels relative to seats in this row. */
|
|
430
509
|
labelPosition?: PositionWithLiterals;
|
|
431
|
-
/**
|
|
510
|
+
/** Numbering scheme for seats in this row (numeric, alphabetical, or odd/even). */
|
|
432
511
|
seatNumbering?: NumberingWithLiterals;
|
|
433
512
|
}
|
|
513
|
+
/** Configuration for labeling rows vertically in multi-row elements. */
|
|
434
514
|
interface VerticalSequencing {
|
|
435
515
|
/**
|
|
436
|
-
*
|
|
516
|
+
* Starting value for row labeling. For example, `A` for alphabetical sequences or `1` for numeric sequences.
|
|
437
517
|
* @minLength 1
|
|
438
518
|
* @maxLength 4
|
|
439
519
|
*/
|
|
440
520
|
startAt?: string;
|
|
441
|
-
/**
|
|
521
|
+
/** Numbering scheme for row labels (numeric, alphabetical, or odd/even). */
|
|
442
522
|
rowNumbering?: NumberingWithLiterals;
|
|
443
|
-
/**
|
|
523
|
+
/** Whether to label rows in reverse order (bottom-to-top instead of top-to-bottom). */
|
|
444
524
|
reverseOrder?: boolean | null;
|
|
445
525
|
}
|
|
526
|
+
/** A grouping mechanism for organizing places by pricing tier, access level, or other business criteria. */
|
|
446
527
|
interface Category {
|
|
447
528
|
/**
|
|
448
|
-
*
|
|
529
|
+
* Category ID. Must be unique within the seating plan.
|
|
449
530
|
* @min 1
|
|
450
531
|
*/
|
|
451
532
|
_id?: number;
|
|
452
533
|
/**
|
|
453
|
-
*
|
|
454
|
-
* Can reference external entities.
|
|
455
|
-
* Format: "{entity_fqdn}:{entity_id}"
|
|
534
|
+
* Client-defined external ID for cross-referencing with pricing or ticketing systems. Format: `{entity_fqdn}:{entity_id}`.
|
|
456
535
|
* @minLength 1
|
|
457
536
|
* @maxLength 100
|
|
458
537
|
*/
|
|
459
538
|
externalId?: string | null;
|
|
460
539
|
/**
|
|
461
|
-
*
|
|
540
|
+
* Human-readable category name, such as `VIP`, `General Admission`, or `Student Discount`.
|
|
462
541
|
* @minLength 1
|
|
463
542
|
* @maxLength 120
|
|
464
543
|
*/
|
|
465
544
|
title?: string;
|
|
466
545
|
/**
|
|
467
|
-
* Client configuration object
|
|
546
|
+
* Client configuration object for storing additional category metadata. Read-only field maintained for backward compatibility.
|
|
468
547
|
* @readonly
|
|
469
548
|
*/
|
|
470
549
|
config?: Record<string, any> | null;
|
|
471
550
|
/**
|
|
472
|
-
* Total capacity
|
|
551
|
+
* Total capacity of all places assigned to this category. Automatically calculated by summing place capacities.
|
|
473
552
|
* @readonly
|
|
474
553
|
*/
|
|
475
554
|
totalCapacity?: number | null;
|
|
476
555
|
/**
|
|
477
|
-
*
|
|
556
|
+
* All places that are assigned to this category. Populated when using the CATEGORIES fieldset.
|
|
478
557
|
* @maxSize 50000
|
|
479
558
|
* @readonly
|
|
480
559
|
*/
|
|
@@ -491,112 +570,124 @@ interface ExtendedFields {
|
|
|
491
570
|
*/
|
|
492
571
|
namespaces?: Record<string, Record<string, any>>;
|
|
493
572
|
}
|
|
573
|
+
/** Visual styling properties for the overall seating plan background and appearance. */
|
|
494
574
|
interface SeatingPlanUiProperties {
|
|
495
575
|
/**
|
|
496
|
-
*
|
|
576
|
+
* Background color in hexadecimal format. For example, `#F0F0F0` for light gray.
|
|
497
577
|
* @format COLOR_HEX
|
|
498
578
|
*/
|
|
499
579
|
backgroundColor?: string | null;
|
|
500
|
-
/**
|
|
580
|
+
/**
|
|
581
|
+
* Background opacity as a percentage from 0 (transparent) to 100 (opaque).
|
|
582
|
+
* @max 100
|
|
583
|
+
*/
|
|
501
584
|
backgroundOpacity?: number | null;
|
|
502
585
|
}
|
|
586
|
+
/** A hierarchical grouping of elements for UI organization and bulk operations. */
|
|
503
587
|
interface ElementGroup {
|
|
504
588
|
/**
|
|
505
|
-
*
|
|
589
|
+
* Element group ID. Must be unique within the seating plan.
|
|
506
590
|
* @min 1
|
|
507
591
|
*/
|
|
508
592
|
_id?: number;
|
|
509
|
-
/**
|
|
593
|
+
/** ID of the parent group for creating nested group hierarchies. References another ElementGroup in the same seating plan. */
|
|
510
594
|
parentElementGroupId?: number | null;
|
|
511
|
-
/**
|
|
595
|
+
/** Visual properties for rendering this group in the UI. Includes positioning and dimensions for the group container. */
|
|
512
596
|
uiProperties?: ElementGroupUiProperties;
|
|
513
597
|
}
|
|
598
|
+
/** Visual positioning and styling properties for element groups. */
|
|
514
599
|
interface ElementGroupUiProperties {
|
|
515
600
|
/**
|
|
516
|
-
*
|
|
601
|
+
* Horizontal position coordinate of the group container.
|
|
517
602
|
* @min -1000000
|
|
518
603
|
* @max 1000000
|
|
519
604
|
*/
|
|
520
605
|
x?: number | null;
|
|
521
606
|
/**
|
|
522
|
-
*
|
|
607
|
+
* Vertical position coordinate of the group container.
|
|
523
608
|
* @min -1000000
|
|
524
609
|
* @max 1000000
|
|
525
610
|
*/
|
|
526
611
|
y?: number | null;
|
|
527
612
|
/**
|
|
528
|
-
*
|
|
613
|
+
* Width of the group bounding box in coordinate system units.
|
|
529
614
|
* @max 1000000
|
|
530
615
|
*/
|
|
531
616
|
width?: number | null;
|
|
532
617
|
/**
|
|
533
|
-
*
|
|
618
|
+
* Height of the group bounding box in coordinate system units.
|
|
534
619
|
* @max 1000000
|
|
535
620
|
*/
|
|
536
621
|
height?: number | null;
|
|
537
622
|
/**
|
|
538
|
-
*
|
|
623
|
+
* Rotation angle of the group in degrees. Applied to all elements within the group.
|
|
539
624
|
* @min -180
|
|
540
625
|
* @max 180
|
|
541
626
|
*/
|
|
542
627
|
rotationAngle?: number | null;
|
|
543
628
|
}
|
|
629
|
+
/** Request to create a new seating plan. */
|
|
544
630
|
interface CreateSeatingPlanRequest {
|
|
545
|
-
/**
|
|
631
|
+
/** Seating plan to create. Must include at least one section with `id = 0` as the default section. */
|
|
546
632
|
plan: SeatingPlan;
|
|
547
633
|
}
|
|
634
|
+
/** Response containing the created seating plan. */
|
|
548
635
|
interface CreateSeatingPlanResponse {
|
|
549
|
-
/**
|
|
636
|
+
/** Created seating plan with generated ID, timestamps, and calculated totals. */
|
|
550
637
|
plan?: SeatingPlan;
|
|
551
638
|
}
|
|
639
|
+
/** Error details when seating plan or element capacity limits are exceeded. */
|
|
552
640
|
interface CapacityExceededViolation {
|
|
553
|
-
/**
|
|
641
|
+
/** Maximum allowed capacity that was exceeded. Represents the system limit for the specific context. */
|
|
554
642
|
maxCapacity?: number;
|
|
555
|
-
/** Invalid capacity */
|
|
643
|
+
/** Invalid capacity value that was provided in the request. */
|
|
556
644
|
capacity?: number;
|
|
557
|
-
/**
|
|
645
|
+
/** ID of the element where the capacity violation occurred. Only present for element-level violations. */
|
|
558
646
|
elementId?: number | null;
|
|
559
647
|
}
|
|
648
|
+
/** Request to update an existing seating plan. */
|
|
560
649
|
interface UpdateSeatingPlanRequest {
|
|
561
|
-
/**
|
|
650
|
+
/** Seating plan updates to apply. Must include the plan ID for identification. */
|
|
562
651
|
plan?: SeatingPlan;
|
|
563
|
-
/**
|
|
652
|
+
/** Field mask specifying which parts of the seating plan to update. For example, `sections.elements.ui_properties` to update only visual properties. */
|
|
564
653
|
fields?: string[];
|
|
565
654
|
}
|
|
655
|
+
/** Response containing the updated seating plan. */
|
|
566
656
|
interface UpdateSeatingPlanResponse {
|
|
567
|
-
/**
|
|
657
|
+
/** Updated seating plan with incremented version and recalculated totals. */
|
|
568
658
|
plan?: SeatingPlan;
|
|
569
659
|
}
|
|
570
660
|
interface CopySeatingPlanRequest {
|
|
571
661
|
/**
|
|
572
|
-
*
|
|
662
|
+
* ID of the seating plan to be copied.
|
|
573
663
|
* @format GUID
|
|
574
664
|
*/
|
|
575
665
|
_id: string | null;
|
|
576
666
|
/**
|
|
577
|
-
*
|
|
667
|
+
* Title for the new copied seating plan. Must be different from the original.
|
|
578
668
|
* @minLength 1
|
|
579
669
|
* @maxLength 120
|
|
580
670
|
*/
|
|
581
671
|
title: string | null;
|
|
582
672
|
/**
|
|
583
|
-
* Format:
|
|
673
|
+
* External ID for the new copied seating plan. Format: `{fqdn}:{entity_guid}`. Must be unique.
|
|
584
674
|
* @minLength 1
|
|
585
675
|
* @maxLength 100
|
|
586
676
|
*/
|
|
587
677
|
externalId: string | null;
|
|
588
678
|
}
|
|
589
679
|
interface CopySeatingPlanResponse {
|
|
590
|
-
/**
|
|
680
|
+
/** Copied seating plan with new ID, specified title, and all duplicated content. */
|
|
591
681
|
plan?: SeatingPlan;
|
|
592
682
|
}
|
|
683
|
+
/** Request to query multiple seating plans with filtering and projection options. */
|
|
593
684
|
interface QuerySeatingPlanRequest {
|
|
594
685
|
/**
|
|
595
686
|
* Generic query object
|
|
596
687
|
* Possible fieldsets: "elements", "categories", "places", "config".
|
|
597
688
|
*/
|
|
598
689
|
query: QueryV2;
|
|
599
|
-
/**
|
|
690
|
+
/** Fieldsets to include in the response. Available options: ELEMENTS, CATEGORIES, PLACES, CONFIG, ELEMENT_GROUPS. */
|
|
600
691
|
fieldset?: FieldsetWithLiterals[];
|
|
601
692
|
}
|
|
602
693
|
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
@@ -664,27 +755,35 @@ interface CursorPaging {
|
|
|
664
755
|
*/
|
|
665
756
|
cursor?: string | null;
|
|
666
757
|
}
|
|
758
|
+
/** Available fieldsets for seating plan projections. */
|
|
667
759
|
declare enum Fieldset {
|
|
760
|
+
/** Include section elements with their configurations and generated places. */
|
|
668
761
|
ELEMENTS = "ELEMENTS",
|
|
762
|
+
/** Include categories with their assigned places and capacity totals. */
|
|
669
763
|
CATEGORIES = "CATEGORIES",
|
|
764
|
+
/** Include all generated places across all elements and sections. */
|
|
670
765
|
PLACES = "PLACES",
|
|
766
|
+
/** Include legacy configuration objects for backward compatibility. */
|
|
671
767
|
CONFIG = "CONFIG",
|
|
768
|
+
/** Include element groups for hierarchical organization and UI rendering. */
|
|
672
769
|
ELEMENT_GROUPS = "ELEMENT_GROUPS"
|
|
673
770
|
}
|
|
674
771
|
/** @enumType */
|
|
675
772
|
type FieldsetWithLiterals = Fieldset | 'ELEMENTS' | 'CATEGORIES' | 'PLACES' | 'CONFIG' | 'ELEMENT_GROUPS';
|
|
773
|
+
/** Response containing matching seating plans. */
|
|
676
774
|
interface QuerySeatingPlanResponse {
|
|
677
|
-
/**
|
|
775
|
+
/** Seating plans matching the query criteria with requested fieldsets included. */
|
|
678
776
|
plans?: SeatingPlan[];
|
|
679
777
|
}
|
|
778
|
+
/** Request to retrieve a specific seating plan by ID. */
|
|
680
779
|
interface GetSeatingPlanRequest {
|
|
681
780
|
/**
|
|
682
|
-
*
|
|
781
|
+
* Seating plan ID to retrieve.
|
|
683
782
|
* @format GUID
|
|
684
783
|
*/
|
|
685
784
|
_id: string | null;
|
|
686
785
|
/**
|
|
687
|
-
*
|
|
786
|
+
* Deprecated. Use `fieldsets` parameter instead.
|
|
688
787
|
* @deprecated
|
|
689
788
|
*/
|
|
690
789
|
fieldset?: FieldsetWithLiterals[];
|
|
@@ -693,26 +792,26 @@ interface GetSeatingPlanRequest {
|
|
|
693
792
|
* Possible values: "elements", "categories", "places", "config".
|
|
694
793
|
*/
|
|
695
794
|
fieldsets?: string[];
|
|
696
|
-
/** Seating
|
|
795
|
+
/** Seating plan mask for filtering specific places by their IDs. Useful for retrieving only relevant places. */
|
|
697
796
|
seatingPlanMask?: SeatingPlanMask;
|
|
698
797
|
}
|
|
699
798
|
interface SeatingPlanMask {
|
|
700
799
|
/**
|
|
701
|
-
* Filter seating plan by place
|
|
800
|
+
* Filter seating plan by place IDs. For example, `0-1-A`, `0-2-B`. Use this to retrieve only specific places from large seating plans.
|
|
702
801
|
* @minLength 5
|
|
703
802
|
* @maxLength 11
|
|
704
803
|
*/
|
|
705
804
|
placeId?: string[];
|
|
706
805
|
}
|
|
707
806
|
interface GetSeatingPlanResponse {
|
|
708
|
-
/**
|
|
807
|
+
/** Retrieved seating plan with requested fieldsets and filtered places. */
|
|
709
808
|
plan?: SeatingPlan;
|
|
710
809
|
}
|
|
711
810
|
interface FindSeatingPlanRequest {
|
|
712
|
-
/**
|
|
811
|
+
/** Filter criteria for finding the seating plan. Use standard WQL filter format. */
|
|
713
812
|
filter: Record<string, any> | null;
|
|
714
813
|
/**
|
|
715
|
-
*
|
|
814
|
+
* Deprecated. Use `fieldsets` parameter instead.
|
|
716
815
|
* @deprecated
|
|
717
816
|
*/
|
|
718
817
|
fieldset?: FieldsetWithLiterals[];
|
|
@@ -721,22 +820,22 @@ interface FindSeatingPlanRequest {
|
|
|
721
820
|
* Possible values: "elements", "categories", "places", "config".
|
|
722
821
|
*/
|
|
723
822
|
fieldsets?: string[];
|
|
724
|
-
/** Seating
|
|
823
|
+
/** Seating plan mask for filtering specific places by their IDs. */
|
|
725
824
|
seatingPlanMask?: SeatingPlanMask;
|
|
726
825
|
}
|
|
727
826
|
interface FindSeatingPlanResponse {
|
|
728
|
-
/**
|
|
827
|
+
/** Found seating plan matching the filter criteria, or empty if no match found. */
|
|
729
828
|
plan?: SeatingPlan;
|
|
730
829
|
}
|
|
731
830
|
interface DeleteSeatingPlanRequest {
|
|
732
831
|
/**
|
|
733
|
-
*
|
|
832
|
+
* ID of the seating plan to delete.
|
|
734
833
|
* @format GUID
|
|
735
834
|
*/
|
|
736
835
|
_id: string | null;
|
|
737
836
|
}
|
|
738
837
|
interface DeleteSeatingPlanResponse {
|
|
739
|
-
/** Deleted plan */
|
|
838
|
+
/** Deleted seating plan data for reference before deletion. */
|
|
740
839
|
plan?: SeatingPlan;
|
|
741
840
|
}
|
|
742
841
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -874,34 +973,26 @@ declare enum WebhookIdentityType {
|
|
|
874
973
|
/** @enumType */
|
|
875
974
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
876
975
|
interface SaveSeatingPlanVersionRequest {
|
|
877
|
-
/**
|
|
976
|
+
/** Seating plan version to be saved as a draft. Must include plan ID for existing plans. */
|
|
878
977
|
plan?: SeatingPlan;
|
|
879
978
|
/**
|
|
880
|
-
* Parent version of the plan.
|
|
881
|
-
* Use this field to override history of plan versions.
|
|
882
|
-
* The next version of the plan will still be latest version +1,
|
|
883
|
-
* but intermediate versions will be removed. Example:
|
|
884
|
-
* Existing versions [1, 2, 3, 4, 5].
|
|
885
|
-
* Save request with parent_version 2 will yield versions [1, 2, 6].
|
|
979
|
+
* Parent version of the plan. Use this field to override history of plan versions.
|
|
886
980
|
* @min 1
|
|
887
981
|
*/
|
|
888
982
|
parentVersion?: string | null;
|
|
889
983
|
}
|
|
890
984
|
interface SaveSeatingPlanVersionResponse {
|
|
891
|
-
/**
|
|
985
|
+
/** Saved seating plan version with incremented version number and updated timestamps. */
|
|
892
986
|
plan?: SeatingPlan;
|
|
893
987
|
}
|
|
894
988
|
interface QuerySeatingPlanVersionsRequest {
|
|
895
|
-
/**
|
|
896
|
-
* Generic query object
|
|
897
|
-
* Possible fieldsets: "elements", "categories", "places", "config".
|
|
898
|
-
*/
|
|
989
|
+
/** Query criteria for filtering seating plan versions. Supports standard WQL filtering, sorting, and paging. */
|
|
899
990
|
query?: QueryV2;
|
|
900
991
|
}
|
|
901
992
|
interface QuerySeatingPlanVersionsResponse {
|
|
902
|
-
/**
|
|
993
|
+
/** Seating plan versions matching the query criteria, ordered by version number. */
|
|
903
994
|
plans?: SeatingPlan[];
|
|
904
|
-
/** Paging
|
|
995
|
+
/** Paging metadata for the query results including total count and cursor information. */
|
|
905
996
|
metadata?: PagingMetadataV2;
|
|
906
997
|
}
|
|
907
998
|
interface PagingMetadataV2 {
|
|
@@ -930,50 +1021,57 @@ interface Cursors {
|
|
|
930
1021
|
}
|
|
931
1022
|
interface DiscardSeatingPlanVersionsRequest {
|
|
932
1023
|
/**
|
|
933
|
-
* Seating
|
|
1024
|
+
* Seating plan ID to discard versions for.
|
|
934
1025
|
* @format GUID
|
|
935
1026
|
*/
|
|
936
1027
|
seatingPlanId?: string | null;
|
|
937
|
-
/** Version from which all higher versions will be discarded. */
|
|
1028
|
+
/** Version from which all higher versions will be discarded. This version and lower versions are preserved. */
|
|
938
1029
|
version?: string | null;
|
|
939
1030
|
}
|
|
940
1031
|
interface DiscardSeatingPlanVersionsResponse {
|
|
941
1032
|
}
|
|
942
1033
|
interface RestoreSeatingPlanRequest {
|
|
943
1034
|
/**
|
|
944
|
-
* Seating
|
|
1035
|
+
* Seating plan ID to restore.
|
|
945
1036
|
* @format GUID
|
|
946
1037
|
*/
|
|
947
1038
|
seatingPlanId?: string | null;
|
|
948
|
-
/** Version to
|
|
1039
|
+
/** Version to which the seating plan should be restored. This becomes the basis for the new current version. */
|
|
949
1040
|
version?: string | null;
|
|
950
1041
|
}
|
|
951
1042
|
interface RestoreSeatingPlanResponse {
|
|
952
|
-
/**
|
|
1043
|
+
/** Restored seating plan with the specified version as the new current version and incremented version number. */
|
|
953
1044
|
plan?: SeatingPlan;
|
|
954
1045
|
}
|
|
955
1046
|
interface UpdateSeatingPlanThumbnailRequest {
|
|
1047
|
+
/** Thumbnail to update with new image data. */
|
|
956
1048
|
thumbnail: SeatingPlanThumbnail;
|
|
957
1049
|
}
|
|
1050
|
+
/** Thumbnail image data for a seating plan. */
|
|
958
1051
|
interface SeatingPlanThumbnail {
|
|
959
1052
|
/**
|
|
1053
|
+
* Seating plan ID that this thumbnail represents.
|
|
960
1054
|
* @format GUID
|
|
961
1055
|
* @readonly
|
|
962
1056
|
*/
|
|
963
1057
|
_id?: string | null;
|
|
1058
|
+
/** Thumbnail image data or reference. Format depends on implementation (base64, URL, or image ID). */
|
|
964
1059
|
img?: string | null;
|
|
965
1060
|
}
|
|
966
1061
|
interface UpdateSeatingPlanThumbnailResponse {
|
|
1062
|
+
/** Updated thumbnail with confirmation of changes. */
|
|
967
1063
|
thumbnail?: SeatingPlanThumbnail;
|
|
968
1064
|
}
|
|
969
1065
|
interface GetSeatingPlanThumbnailRequest {
|
|
970
1066
|
/**
|
|
1067
|
+
* Seating plan ID to retrieve thumbnail for.
|
|
971
1068
|
* @format GUID
|
|
972
1069
|
* @readonly
|
|
973
1070
|
*/
|
|
974
1071
|
_id: string | null;
|
|
975
1072
|
}
|
|
976
1073
|
interface GetSeatingPlanThumbnailResponse {
|
|
1074
|
+
/** Retrieved thumbnail data, or empty if no thumbnail exists. */
|
|
977
1075
|
thumbnail?: SeatingPlanThumbnail;
|
|
978
1076
|
}
|
|
979
1077
|
/** @docsIgnore */
|
|
@@ -1082,8 +1180,8 @@ interface SeatingPlanUpdatedEnvelope {
|
|
|
1082
1180
|
*/
|
|
1083
1181
|
declare function onSeatingPlanUpdated(handler: (event: SeatingPlanUpdatedEnvelope) => void | Promise<void>): void;
|
|
1084
1182
|
/**
|
|
1085
|
-
*
|
|
1086
|
-
* @param plan -
|
|
1183
|
+
* Creates a new seating plan with sections, elements, and categories. The system automatically generates places based on element configurations and calculates capacity totals.
|
|
1184
|
+
* @param plan - Seating plan to create. Must include at least one section with `id = 0` as the default section.
|
|
1087
1185
|
* @public
|
|
1088
1186
|
* @documentationMaturity preview
|
|
1089
1187
|
* @requiredField plan
|
|
@@ -1091,35 +1189,35 @@ declare function onSeatingPlanUpdated(handler: (event: SeatingPlanUpdatedEnvelop
|
|
|
1091
1189
|
* @requiredField plan.title
|
|
1092
1190
|
* @permissionId SEATING_PLANS.MANAGE_SEATING_PLANS
|
|
1093
1191
|
* @applicableIdentity APP
|
|
1094
|
-
* @returns
|
|
1192
|
+
* @returns Created seating plan with generated ID, timestamps, and calculated totals.
|
|
1095
1193
|
* @fqn com.wixpress.seating.SeatingPlanManagement.CreateSeatingPlan
|
|
1096
1194
|
*/
|
|
1097
1195
|
declare function createSeatingPlan(plan: NonNullablePaths<SeatingPlan, `sections.${number}.elements.${number}.title` | `title`, 6>): Promise<NonNullablePaths<SeatingPlan, `sections` | `sections.${number}._id` | `sections.${number}.default` | `categories` | `categories.${number}._id` | `categories.${number}.title` | `uncategorizedPlaces` | `elementGroups` | `elementGroups.${number}._id`, 4> & {
|
|
1098
1196
|
__applicationErrorsType?: CreateSeatingPlanApplicationErrors;
|
|
1099
1197
|
}>;
|
|
1100
1198
|
/**
|
|
1101
|
-
* Updates
|
|
1199
|
+
* Updates an existing seating plan. Changes trigger recalculation of places, capacities, and version increment. Use field masks to update specific portions of the plan.
|
|
1102
1200
|
* @public
|
|
1103
1201
|
* @documentationMaturity preview
|
|
1104
1202
|
* @requiredField options.plan._id
|
|
1105
1203
|
* @requiredField options.plan.sections.elements.title
|
|
1106
1204
|
* @permissionId SEATING_PLANS.MANAGE_SEATING_PLANS
|
|
1107
1205
|
* @applicableIdentity APP
|
|
1108
|
-
* @returns
|
|
1206
|
+
* @returns Updated seating plan with incremented version and recalculated totals.
|
|
1109
1207
|
* @fqn com.wixpress.seating.SeatingPlanManagement.UpdateSeatingPlan
|
|
1110
1208
|
*/
|
|
1111
1209
|
declare function updateSeatingPlan(options?: NonNullablePaths<UpdateSeatingPlanOptions, `plan._id` | `plan.sections.${number}.elements.${number}.title`, 7>): Promise<NonNullablePaths<SeatingPlan, `sections` | `sections.${number}._id` | `sections.${number}.default` | `categories` | `categories.${number}._id` | `categories.${number}.title` | `uncategorizedPlaces` | `elementGroups` | `elementGroups.${number}._id`, 4> & {
|
|
1112
1210
|
__applicationErrorsType?: UpdateSeatingPlanApplicationErrors;
|
|
1113
1211
|
}>;
|
|
1114
1212
|
interface UpdateSeatingPlanOptions {
|
|
1115
|
-
/**
|
|
1213
|
+
/** Seating plan updates to apply. Must include the plan ID for identification. */
|
|
1116
1214
|
plan?: SeatingPlan;
|
|
1117
|
-
/**
|
|
1215
|
+
/** Field mask specifying which parts of the seating plan to update. For example, `sections.elements.ui_properties` to update only visual properties. */
|
|
1118
1216
|
fields?: string[];
|
|
1119
1217
|
}
|
|
1120
1218
|
/**
|
|
1121
|
-
*
|
|
1122
|
-
* @param _id -
|
|
1219
|
+
* Creates a copy of an existing seating plan with a new title and external ID. Useful for reusing venue layouts across multiple events.
|
|
1220
|
+
* @param _id - ID of the seating plan to be copied.
|
|
1123
1221
|
* @public
|
|
1124
1222
|
* @documentationMaturity preview
|
|
1125
1223
|
* @requiredField _id
|
|
@@ -1133,20 +1231,20 @@ interface UpdateSeatingPlanOptions {
|
|
|
1133
1231
|
declare function copySeatingPlan(_id: string, options: NonNullablePaths<CopySeatingPlanOptions, `externalId` | `title`, 2>): Promise<NonNullablePaths<CopySeatingPlanResponse, `plan.sections` | `plan.sections.${number}._id` | `plan.sections.${number}.default` | `plan.categories` | `plan.categories.${number}._id` | `plan.categories.${number}.title` | `plan.uncategorizedPlaces` | `plan.elementGroups` | `plan.elementGroups.${number}._id`, 5>>;
|
|
1134
1232
|
interface CopySeatingPlanOptions {
|
|
1135
1233
|
/**
|
|
1136
|
-
*
|
|
1234
|
+
* Title for the new copied seating plan. Must be different from the original.
|
|
1137
1235
|
* @minLength 1
|
|
1138
1236
|
* @maxLength 120
|
|
1139
1237
|
*/
|
|
1140
1238
|
title: string | null;
|
|
1141
1239
|
/**
|
|
1142
|
-
* Format:
|
|
1240
|
+
* External ID for the new copied seating plan. Format: `{fqdn}:{entity_guid}`. Must be unique.
|
|
1143
1241
|
* @minLength 1
|
|
1144
1242
|
* @maxLength 100
|
|
1145
1243
|
*/
|
|
1146
1244
|
externalId: string | null;
|
|
1147
1245
|
}
|
|
1148
1246
|
/**
|
|
1149
|
-
*
|
|
1247
|
+
* Retrieves multiple seating plans based on filter criteria. Supports fieldset projections to control response size and improve performance.
|
|
1150
1248
|
* @public
|
|
1151
1249
|
* @documentationMaturity preview
|
|
1152
1250
|
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
@@ -1155,7 +1253,7 @@ interface CopySeatingPlanOptions {
|
|
|
1155
1253
|
*/
|
|
1156
1254
|
declare function querySeatingPlan(options?: QuerySeatingPlanOptions): PlansQueryBuilder;
|
|
1157
1255
|
interface QuerySeatingPlanOptions {
|
|
1158
|
-
/**
|
|
1256
|
+
/** Fieldsets to include in the response. Available options: ELEMENTS, CATEGORIES, PLACES, CONFIG, ELEMENT_GROUPS. */
|
|
1159
1257
|
fieldset?: FieldsetWithLiterals[] | undefined;
|
|
1160
1258
|
}
|
|
1161
1259
|
interface QueryCursorResult {
|
|
@@ -1184,20 +1282,20 @@ interface PlansQueryBuilder {
|
|
|
1184
1282
|
find: () => Promise<PlansQueryResult>;
|
|
1185
1283
|
}
|
|
1186
1284
|
/**
|
|
1187
|
-
*
|
|
1188
|
-
* @param _id -
|
|
1285
|
+
* Retrieves a specific seating plan by ID. Supports fieldset projections and place filtering via SeatingPlanMask for targeted queries.
|
|
1286
|
+
* @param _id - Seating plan ID to retrieve.
|
|
1189
1287
|
* @public
|
|
1190
1288
|
* @documentationMaturity preview
|
|
1191
1289
|
* @requiredField _id
|
|
1192
1290
|
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1193
1291
|
* @applicableIdentity APP
|
|
1194
|
-
* @returns
|
|
1292
|
+
* @returns Retrieved seating plan with requested fieldsets and filtered places.
|
|
1195
1293
|
* @fqn com.wixpress.seating.SeatingPlanManagement.GetSeatingPlan
|
|
1196
1294
|
*/
|
|
1197
1295
|
declare function getSeatingPlan(_id: string, options?: GetSeatingPlanOptions): Promise<NonNullablePaths<SeatingPlan, `sections` | `sections.${number}._id` | `sections.${number}.default` | `categories` | `categories.${number}._id` | `categories.${number}.title` | `uncategorizedPlaces` | `elementGroups` | `elementGroups.${number}._id`, 4>>;
|
|
1198
1296
|
interface GetSeatingPlanOptions {
|
|
1199
1297
|
/**
|
|
1200
|
-
*
|
|
1298
|
+
* Deprecated. Use `fieldsets` parameter instead.
|
|
1201
1299
|
* @deprecated
|
|
1202
1300
|
*/
|
|
1203
1301
|
fieldset?: FieldsetWithLiterals[];
|
|
@@ -1206,12 +1304,12 @@ interface GetSeatingPlanOptions {
|
|
|
1206
1304
|
* Possible values: "elements", "categories", "places", "config".
|
|
1207
1305
|
*/
|
|
1208
1306
|
fieldsets?: string[];
|
|
1209
|
-
/** Seating
|
|
1307
|
+
/** Seating plan mask for filtering specific places by their IDs. Useful for retrieving only relevant places. */
|
|
1210
1308
|
seatingPlanMask?: SeatingPlanMask;
|
|
1211
1309
|
}
|
|
1212
1310
|
/**
|
|
1213
|
-
*
|
|
1214
|
-
* @param filter -
|
|
1311
|
+
* Finds the first seating plan matching the specified filter criteria. Useful for locating plans by external ID or other properties.
|
|
1312
|
+
* @param filter - Filter criteria for finding the seating plan. Use standard WQL filter format.
|
|
1215
1313
|
* @public
|
|
1216
1314
|
* @documentationMaturity preview
|
|
1217
1315
|
* @requiredField filter
|
|
@@ -1222,7 +1320,7 @@ interface GetSeatingPlanOptions {
|
|
|
1222
1320
|
declare function findSeatingPlan(filter: Record<string, any>, options?: FindSeatingPlanOptions): Promise<NonNullablePaths<FindSeatingPlanResponse, `plan.sections` | `plan.sections.${number}._id` | `plan.sections.${number}.default` | `plan.categories` | `plan.categories.${number}._id` | `plan.categories.${number}.title` | `plan.uncategorizedPlaces` | `plan.elementGroups` | `plan.elementGroups.${number}._id`, 5>>;
|
|
1223
1321
|
interface FindSeatingPlanOptions {
|
|
1224
1322
|
/**
|
|
1225
|
-
*
|
|
1323
|
+
* Deprecated. Use `fieldsets` parameter instead.
|
|
1226
1324
|
* @deprecated
|
|
1227
1325
|
*/
|
|
1228
1326
|
fieldset?: FieldsetWithLiterals[];
|
|
@@ -1231,12 +1329,12 @@ interface FindSeatingPlanOptions {
|
|
|
1231
1329
|
* Possible values: "elements", "categories", "places", "config".
|
|
1232
1330
|
*/
|
|
1233
1331
|
fieldsets?: string[];
|
|
1234
|
-
/** Seating
|
|
1332
|
+
/** Seating plan mask for filtering specific places by their IDs. */
|
|
1235
1333
|
seatingPlanMask?: SeatingPlanMask;
|
|
1236
1334
|
}
|
|
1237
1335
|
/**
|
|
1238
|
-
* Deletes
|
|
1239
|
-
* @param _id -
|
|
1336
|
+
* Deletes a seating plan and all its associated data including sections, elements, places, and version history.
|
|
1337
|
+
* @param _id - ID of the seating plan to delete.
|
|
1240
1338
|
* @public
|
|
1241
1339
|
* @documentationMaturity preview
|
|
1242
1340
|
* @requiredField _id
|
|
@@ -1246,7 +1344,8 @@ interface FindSeatingPlanOptions {
|
|
|
1246
1344
|
*/
|
|
1247
1345
|
declare function deleteSeatingPlan(_id: string): Promise<NonNullablePaths<DeleteSeatingPlanResponse, `plan.sections` | `plan.sections.${number}._id` | `plan.sections.${number}.default` | `plan.categories` | `plan.categories.${number}._id` | `plan.categories.${number}.title` | `plan.uncategorizedPlaces` | `plan.elementGroups` | `plan.elementGroups.${number}._id`, 5>>;
|
|
1248
1346
|
/**
|
|
1249
|
-
*
|
|
1347
|
+
* Thumbnails provide visual previews of seating layouts for selection and management interfaces.
|
|
1348
|
+
* @param thumbnail - Thumbnail to update with new image data.
|
|
1250
1349
|
* @public
|
|
1251
1350
|
* @documentationMaturity preview
|
|
1252
1351
|
* @requiredField thumbnail
|
|
@@ -1258,7 +1357,8 @@ declare function deleteSeatingPlan(_id: string): Promise<NonNullablePaths<Delete
|
|
|
1258
1357
|
*/
|
|
1259
1358
|
declare function updateSeatingPlanThumbnail(thumbnail: NonNullablePaths<SeatingPlanThumbnail, `_id` | `img`, 2>): Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
1260
1359
|
/**
|
|
1261
|
-
*
|
|
1360
|
+
* Returns the current thumbnail or empty response if no thumbnail has been set.
|
|
1361
|
+
* @param _id - Seating plan ID to retrieve thumbnail for.
|
|
1262
1362
|
* @public
|
|
1263
1363
|
* @documentationMaturity preview
|
|
1264
1364
|
* @requiredField _id
|