@seatmap-fyi/map-domain 0.1.0-alpha.3 → 0.1.0-alpha.48
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/dist/arc-fan-rebuild.d.ts +13 -0
- package/dist/arc-fan-rebuild.js +163 -0
- package/dist/arc-fan.d.ts +27 -0
- package/dist/arc-fan.interface.d.ts +83 -0
- package/dist/arc-fan.interface.js +30 -0
- package/dist/arc-fan.js +182 -0
- package/dist/catalog.d.ts +10 -3
- package/dist/catalog.js +66 -10
- package/dist/categories.d.ts +27 -0
- package/dist/categories.js +217 -0
- package/dist/editor-state.d.ts +4 -1
- package/dist/editor-state.js +61 -31
- package/dist/floors.d.ts +22 -0
- package/dist/floors.js +77 -0
- package/dist/geometry/boundary.d.ts +1 -1
- package/dist/geometry/boundary.js +16 -12
- package/dist/geometry/curve-warnings.d.ts +1 -1
- package/dist/geometry/curve-warnings.js +3 -5
- package/dist/geometry/decoration-bounds.d.ts +4 -0
- package/dist/geometry/decoration-bounds.js +42 -0
- package/dist/geometry/ellipse.js +4 -12
- package/dist/geometry/geometry.d.ts +12 -3
- package/dist/geometry/geometry.js +37 -28
- package/dist/geometry/layout-transform.d.ts +10 -0
- package/dist/geometry/layout-transform.interface.d.ts +6 -0
- package/dist/geometry/layout-transform.interface.js +1 -0
- package/dist/geometry/layout-transform.js +206 -0
- package/dist/geometry/polygon-curves.d.ts +17 -0
- package/dist/geometry/polygon-curves.interface.d.ts +21 -0
- package/dist/geometry/polygon-curves.interface.js +5 -0
- package/dist/geometry/polygon-curves.js +169 -0
- package/dist/geometry/primitives.d.ts +1 -1
- package/dist/geometry/primitives.js +2 -3
- package/dist/geometry/seat-shape.d.ts +24 -0
- package/dist/geometry/seat-shape.js +101 -0
- package/dist/geometry/seating-layout.d.ts +20 -3
- package/dist/geometry/seating-layout.js +113 -19
- package/dist/geometry/units.d.ts +8 -0
- package/dist/geometry/units.js +13 -0
- package/dist/geometry/venue-outline.d.ts +4 -18
- package/dist/geometry/venue-outline.interface.d.ts +23 -0
- package/dist/geometry/venue-outline.interface.js +7 -0
- package/dist/geometry/venue-outline.js +107 -49
- package/dist/identity.d.ts +3 -1
- package/dist/identity.js +32 -9
- package/dist/issues.d.ts +15 -2
- package/dist/issues.js +16 -6
- package/dist/labels.d.ts +12 -1
- package/dist/labels.js +76 -11
- package/dist/layers.d.ts +26 -0
- package/dist/layers.js +86 -0
- package/dist/media.d.ts +27 -0
- package/dist/media.js +89 -0
- package/dist/physical-document.interface.d.ts +592 -0
- package/dist/physical-document.interface.js +179 -0
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +70 -25
- package/dist/reference.js +1 -1
- package/dist/row-segments.d.ts +30 -0
- package/dist/row-segments.js +113 -0
- package/dist/schema.d.ts +1578 -68
- package/dist/schema.js +467 -98
- package/dist/seat-proximity.d.ts +4 -0
- package/dist/seat-proximity.js +119 -0
- package/dist/section-elevation.d.ts +5 -0
- package/dist/section-elevation.interface.d.ts +26 -0
- package/dist/section-elevation.interface.js +8 -0
- package/dist/section-elevation.js +53 -0
- package/dist/section-fill-rebuild.d.ts +10 -0
- package/dist/section-fill-rebuild.js +64 -0
- package/dist/section-fill.d.ts +84 -0
- package/dist/section-fill.interface.d.ts +94 -0
- package/dist/section-fill.interface.js +22 -0
- package/dist/section-fill.js +306 -0
- package/dist/section-growth.d.ts +11 -0
- package/dist/section-growth.interface.d.ts +12 -0
- package/dist/section-growth.interface.js +1 -0
- package/dist/section-growth.js +198 -0
- package/dist/section-layout.d.ts +95 -0
- package/dist/section-layout.interface.d.ts +8 -0
- package/dist/section-layout.interface.js +5 -0
- package/dist/section-layout.js +70 -0
- package/dist/section-outline-refit.d.ts +8 -0
- package/dist/section-outline-refit.js +246 -0
- package/dist/section-refit.d.ts +22 -0
- package/dist/section-refit.interface.d.ts +49 -0
- package/dist/section-refit.interface.js +6 -0
- package/dist/section-refit.js +179 -0
- package/dist/section-scale.d.ts +2 -0
- package/dist/section-scale.js +128 -0
- package/dist/sections.d.ts +23 -0
- package/dist/sections.js +144 -0
- package/dist/selling.d.ts +34 -0
- package/dist/selling.js +148 -0
- package/dist/spacing-repairs.d.ts +31 -0
- package/dist/spacing-repairs.js +168 -0
- package/dist/table-layout.d.ts +29 -0
- package/dist/table-layout.js +134 -0
- package/dist/validation.d.ts +7 -2
- package/dist/validation.interface.d.ts +20 -0
- package/dist/validation.interface.js +9 -0
- package/dist/validation.js +227 -78
- package/dist/wayfinding.d.ts +10 -0
- package/dist/wayfinding.interface.d.ts +52 -0
- package/dist/wayfinding.interface.js +28 -0
- package/dist/wayfinding.js +63 -0
- package/package.json +109 -4
- package/dist/types.d.ts +0 -313
- package/dist/types.js +0 -91
package/dist/media.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { DecorationKind, SeatingKind } from "./physical-document.interface.js";
|
|
2
|
+
export var MediaScope;
|
|
3
|
+
(function (MediaScope) {
|
|
4
|
+
MediaScope["Artwork"] = "artwork";
|
|
5
|
+
MediaScope["Seat"] = "seat";
|
|
6
|
+
MediaScope["Row"] = "row";
|
|
7
|
+
MediaScope["Section"] = "section";
|
|
8
|
+
MediaScope["Venue"] = "venue";
|
|
9
|
+
MediaScope["Generated"] = "generated";
|
|
10
|
+
})(MediaScope || (MediaScope = {}));
|
|
11
|
+
const groupReferences = new WeakMap();
|
|
12
|
+
const documentReferences = new WeakMap();
|
|
13
|
+
const photoInheritance = new WeakMap();
|
|
14
|
+
/** All live consumers share resource identity, including photos on gap slots. */
|
|
15
|
+
export function mediaReferences(document) {
|
|
16
|
+
const cached = documentReferences.get(document);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
const references = [];
|
|
20
|
+
const photo = (scope, ownerId, value, target = references) => {
|
|
21
|
+
if (value)
|
|
22
|
+
target.push({ scope, ownerId, assetId: value.assetId, fieldPath: `${ownerId}.buyerPhoto.assetId` });
|
|
23
|
+
};
|
|
24
|
+
photo(MediaScope.Venue, document.mapId, document.buyerPhoto);
|
|
25
|
+
for (const section of document.sections)
|
|
26
|
+
photo(MediaScope.Section, section.id, section.buyerPhoto);
|
|
27
|
+
for (const group of document.seatingGroups) {
|
|
28
|
+
let entries = groupReferences.get(group);
|
|
29
|
+
if (!entries) {
|
|
30
|
+
const next = [];
|
|
31
|
+
if (group.kind === SeatingKind.Straight || group.kind === SeatingKind.Curved) {
|
|
32
|
+
for (const row of group.rows) {
|
|
33
|
+
photo(MediaScope.Row, row.id, row.buyerPhoto, next);
|
|
34
|
+
for (const slot of row.seats)
|
|
35
|
+
photo(MediaScope.Seat, slot.id, slot.buyerPhoto, next);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
const sides = group.kind === SeatingKind.Round ? [group.chairs] : Object.values(group.chairsBySide);
|
|
40
|
+
for (const seats of sides)
|
|
41
|
+
for (const slot of seats)
|
|
42
|
+
photo(MediaScope.Seat, slot.id, slot.buyerPhoto, next);
|
|
43
|
+
}
|
|
44
|
+
entries = Object.freeze(next);
|
|
45
|
+
groupReferences.set(group, entries);
|
|
46
|
+
}
|
|
47
|
+
references.push(...entries);
|
|
48
|
+
}
|
|
49
|
+
for (const decoration of document.decorations)
|
|
50
|
+
if (decoration.kind === DecorationKind.Image)
|
|
51
|
+
references.push({
|
|
52
|
+
scope: MediaScope.Artwork,
|
|
53
|
+
ownerId: decoration.id,
|
|
54
|
+
assetId: decoration.assetId,
|
|
55
|
+
fieldPath: `${decoration.id}.assetId`,
|
|
56
|
+
});
|
|
57
|
+
const result = Object.freeze(references);
|
|
58
|
+
documentReferences.set(document, result);
|
|
59
|
+
return result;
|
|
60
|
+
}
|
|
61
|
+
/** Resolve the primary inventory address; overlapping editing scopes do not change inheritance. */
|
|
62
|
+
export function buyerPhotoForSeat(document, seat) {
|
|
63
|
+
if (seat.slot.buyerPhoto)
|
|
64
|
+
return { scope: MediaScope.Seat, ownerId: seat.id, photo: seat.slot.buyerPhoto };
|
|
65
|
+
let inherited = photoInheritance.get(document);
|
|
66
|
+
if (!inherited) {
|
|
67
|
+
const rows = new Map();
|
|
68
|
+
for (const group of document.seatingGroups)
|
|
69
|
+
if (group.kind === SeatingKind.Straight || group.kind === SeatingKind.Curved)
|
|
70
|
+
for (const row of group.rows)
|
|
71
|
+
if (row.buyerPhoto)
|
|
72
|
+
rows.set(row.id, row.buyerPhoto);
|
|
73
|
+
const sections = new Map();
|
|
74
|
+
for (const section of document.sections)
|
|
75
|
+
if (section.buyerPhoto)
|
|
76
|
+
sections.set(section.id, section.buyerPhoto);
|
|
77
|
+
inherited = { rows, sections };
|
|
78
|
+
photoInheritance.set(document, inherited);
|
|
79
|
+
}
|
|
80
|
+
const rowPhoto = seat.rowId ? inherited.rows.get(seat.rowId) : undefined;
|
|
81
|
+
if (rowPhoto)
|
|
82
|
+
return { scope: MediaScope.Row, ownerId: seat.rowId, photo: rowPhoto };
|
|
83
|
+
const sectionPhoto = seat.sectionId ? inherited.sections.get(seat.sectionId) : undefined;
|
|
84
|
+
if (sectionPhoto)
|
|
85
|
+
return { scope: MediaScope.Section, ownerId: seat.sectionId, photo: sectionPhoto };
|
|
86
|
+
if (document.buyerPhoto)
|
|
87
|
+
return { scope: MediaScope.Venue, ownerId: document.mapId, photo: document.buyerPhoto };
|
|
88
|
+
return { scope: MediaScope.Generated };
|
|
89
|
+
}
|
|
@@ -0,0 +1,592 @@
|
|
|
1
|
+
import type { ArcFanGeneration } from "./arc-fan.interface.js";
|
|
2
|
+
import type { EntranceAssignment, GateDetails, RouteDetails, LineCap, LineJoin, LineEnding } from "./wayfinding.interface.js";
|
|
3
|
+
export declare const DocumentLimits: {
|
|
4
|
+
readonly PhysicalSeats: 100000;
|
|
5
|
+
readonly JsonBytes: number;
|
|
6
|
+
};
|
|
7
|
+
export type UUID = string;
|
|
8
|
+
export type PointM = {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
};
|
|
12
|
+
export type SizeM = {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
export type Transform = {
|
|
17
|
+
positionM: PointM;
|
|
18
|
+
rotationDeg: number;
|
|
19
|
+
flipX?: boolean;
|
|
20
|
+
flipY?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export type PolygonM = {
|
|
23
|
+
outer: PointM[];
|
|
24
|
+
holes: PointM[][];
|
|
25
|
+
/** Signed quadratic bow per authored outer side; absence means straight sides. */
|
|
26
|
+
edgeCurvature?: number[];
|
|
27
|
+
/** Percentage of the rectangular outline’s maximum corner radius; absent means sharp corners. */
|
|
28
|
+
cornerRounding?: number;
|
|
29
|
+
/** Absolute circular fillet radius in metres. */
|
|
30
|
+
cornerRadiusM?: number;
|
|
31
|
+
};
|
|
32
|
+
export type Paint = {
|
|
33
|
+
color: string;
|
|
34
|
+
opacity: number;
|
|
35
|
+
};
|
|
36
|
+
export declare enum NumberingScheme {
|
|
37
|
+
Numeric = "numeric",
|
|
38
|
+
Odd = "odd",
|
|
39
|
+
Even = "even",
|
|
40
|
+
Alphabetic = "alphabetic",
|
|
41
|
+
LowerAlphabetic = "lowerAlphabetic",
|
|
42
|
+
Roman = "roman",
|
|
43
|
+
OutsideIn = "outsideIn",
|
|
44
|
+
InsideOut = "insideOut"
|
|
45
|
+
}
|
|
46
|
+
export declare enum LabelDirection {
|
|
47
|
+
Forward = "forward",
|
|
48
|
+
Reverse = "reverse",
|
|
49
|
+
Centre = "centre"
|
|
50
|
+
}
|
|
51
|
+
export type LabelSequence = {
|
|
52
|
+
scheme: NumberingScheme;
|
|
53
|
+
startAt: number;
|
|
54
|
+
direction: LabelDirection;
|
|
55
|
+
prefix?: string;
|
|
56
|
+
suffix?: string;
|
|
57
|
+
/** Last-seat anchoring retains the first-seat start for a later mode switch. */
|
|
58
|
+
numberFrom?: "first" | "last";
|
|
59
|
+
lastAt?: number;
|
|
60
|
+
};
|
|
61
|
+
export type LabelStyle = {
|
|
62
|
+
visible: boolean;
|
|
63
|
+
fontSizeM: number;
|
|
64
|
+
color?: string;
|
|
65
|
+
style?: "plain" | "pill";
|
|
66
|
+
rotationDeg?: number;
|
|
67
|
+
};
|
|
68
|
+
export declare enum RowLabelPosition {
|
|
69
|
+
Left = "left",
|
|
70
|
+
Right = "right",
|
|
71
|
+
Both = "both"
|
|
72
|
+
}
|
|
73
|
+
export type RowLabelStyle = LabelStyle & {
|
|
74
|
+
position: RowLabelPosition;
|
|
75
|
+
style?: "plain" | "pill";
|
|
76
|
+
rotationDeg?: number;
|
|
77
|
+
};
|
|
78
|
+
export declare enum AccessNeed {
|
|
79
|
+
Companion = "companion",
|
|
80
|
+
LimitedMobility = "limitedMobility",
|
|
81
|
+
AisleTransfer = "aisleTransfer",
|
|
82
|
+
StepFree = "stepFree",
|
|
83
|
+
PlusSize = "plusSize",
|
|
84
|
+
LiftUpArmrest = "liftUpArmrest",
|
|
85
|
+
HearingLoop = "hearingLoop",
|
|
86
|
+
LiveCaptions = "liveCaptions",
|
|
87
|
+
SignLanguageView = "signLanguageView",
|
|
88
|
+
LowVision = "lowVision",
|
|
89
|
+
SensoryFriendly = "sensoryFriendly"
|
|
90
|
+
}
|
|
91
|
+
export type SeatAttributes = {
|
|
92
|
+
wheelchair?: "seat" | "space";
|
|
93
|
+
accessNeeds?: AccessNeed[];
|
|
94
|
+
obstructedView?: boolean;
|
|
95
|
+
premium?: boolean;
|
|
96
|
+
restrictedView?: boolean;
|
|
97
|
+
companionForSeatId?: UUID;
|
|
98
|
+
};
|
|
99
|
+
export declare enum TicketRestriction {
|
|
100
|
+
Anyone = "anyone",
|
|
101
|
+
Child = "child",
|
|
102
|
+
Senior = "senior",
|
|
103
|
+
Student = "student",
|
|
104
|
+
Companion = "companion",
|
|
105
|
+
Membership = "membership",
|
|
106
|
+
Custom = "custom"
|
|
107
|
+
}
|
|
108
|
+
export declare const TicketOptionLimit = 20;
|
|
109
|
+
export type CategoryTicketOption = {
|
|
110
|
+
id: UUID;
|
|
111
|
+
name: string;
|
|
112
|
+
price: number;
|
|
113
|
+
restriction?: TicketRestriction;
|
|
114
|
+
guidance?: string;
|
|
115
|
+
};
|
|
116
|
+
export declare enum SeatShape {
|
|
117
|
+
Circle = "circle",
|
|
118
|
+
Theatre = "theatre",
|
|
119
|
+
Dining = "dining",
|
|
120
|
+
Folding = "folding",
|
|
121
|
+
Armchair = "armchair",
|
|
122
|
+
Recliner = "recliner",
|
|
123
|
+
Stool = "stool",
|
|
124
|
+
Bench = "bench"
|
|
125
|
+
}
|
|
126
|
+
export type MapCategory = {
|
|
127
|
+
id: UUID;
|
|
128
|
+
name: string;
|
|
129
|
+
color: string;
|
|
130
|
+
defaultPrice?: number | null;
|
|
131
|
+
onSale?: boolean;
|
|
132
|
+
ticketOptions?: CategoryTicketOption[];
|
|
133
|
+
seatShape?: SeatShape;
|
|
134
|
+
};
|
|
135
|
+
export type BuyerPhoto = {
|
|
136
|
+
assetId: UUID;
|
|
137
|
+
};
|
|
138
|
+
export type SeatSlot = {
|
|
139
|
+
buyerPhoto?: BuyerPhoto;
|
|
140
|
+
gap?: boolean;
|
|
141
|
+
buyerNote?: string;
|
|
142
|
+
labelStyle?: LabelStyle;
|
|
143
|
+
seatShape?: SeatShape;
|
|
144
|
+
categoryId?: UUID | null;
|
|
145
|
+
id: UUID;
|
|
146
|
+
labelOverride?: string;
|
|
147
|
+
attributes?: SeatAttributes;
|
|
148
|
+
override?: {
|
|
149
|
+
offsetM?: PointM;
|
|
150
|
+
rotationDeltaDeg?: number;
|
|
151
|
+
sizeM?: SizeM;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
export declare enum RowEnds {
|
|
155
|
+
Start = "start",
|
|
156
|
+
End = "end",
|
|
157
|
+
Both = "both",
|
|
158
|
+
None = "none"
|
|
159
|
+
}
|
|
160
|
+
/** Independent row recipe, in group-local metres with the first seat as origin. */
|
|
161
|
+
export type RowLayout = {
|
|
162
|
+
originM: PointM;
|
|
163
|
+
seatPitchM: number;
|
|
164
|
+
curveDeg: number;
|
|
165
|
+
rotationDeg: number;
|
|
166
|
+
seatRotationOffsetDeg?: number;
|
|
167
|
+
};
|
|
168
|
+
/** Identifies a generated part independently of printed labels and position. */
|
|
169
|
+
export type SectionFillRowOrigin = {
|
|
170
|
+
sectionId: UUID;
|
|
171
|
+
rowIndex: number;
|
|
172
|
+
partIndex: number;
|
|
173
|
+
};
|
|
174
|
+
export type RowSlot = {
|
|
175
|
+
entrance?: EntranceAssignment;
|
|
176
|
+
fillOrigin?: SectionFillRowOrigin;
|
|
177
|
+
/** Sibling stacking override; absent inherits the bank stacking position. */
|
|
178
|
+
zIndex?: number;
|
|
179
|
+
buyerPhoto?: BuyerPhoto;
|
|
180
|
+
buyerNoun?: string;
|
|
181
|
+
buyerNote?: string;
|
|
182
|
+
labelStyle?: RowLabelStyle;
|
|
183
|
+
categoryId?: UUID | null;
|
|
184
|
+
id: UUID;
|
|
185
|
+
/** Displayed name; absent inherits the physical booking label. */
|
|
186
|
+
labelOverride?: string;
|
|
187
|
+
/** Physical row identifier; absent inherits its group row sequence. */
|
|
188
|
+
bookingLabel?: string;
|
|
189
|
+
offsetM?: PointM;
|
|
190
|
+
seatSequenceOverride?: LabelSequence;
|
|
191
|
+
layout?: RowLayout;
|
|
192
|
+
aisleSeats?: RowEnds;
|
|
193
|
+
seats: SeatSlot[];
|
|
194
|
+
};
|
|
195
|
+
export type DrawableBase = {
|
|
196
|
+
id: UUID;
|
|
197
|
+
floorId?: UUID;
|
|
198
|
+
parentId: UUID | null;
|
|
199
|
+
transform: Transform;
|
|
200
|
+
zIndex: number;
|
|
201
|
+
};
|
|
202
|
+
export type GroupBase = DrawableBase & {
|
|
203
|
+
entrance?: EntranceAssignment;
|
|
204
|
+
categoryId?: UUID | null;
|
|
205
|
+
name: string;
|
|
206
|
+
/** Explicit grouping for outline-free sections and overview shapes; inventory boundaries use geometry. */
|
|
207
|
+
sectionId: UUID | null;
|
|
208
|
+
seatSizeM: SizeM;
|
|
209
|
+
boundary?: PolygonM;
|
|
210
|
+
seatLabelStyle: LabelStyle;
|
|
211
|
+
};
|
|
212
|
+
export type RowsLabels = {
|
|
213
|
+
rows: LabelSequence;
|
|
214
|
+
seats: LabelSequence;
|
|
215
|
+
rowStyle: RowLabelStyle;
|
|
216
|
+
};
|
|
217
|
+
export declare enum RowStagger {
|
|
218
|
+
First = "first",
|
|
219
|
+
Second = "second"
|
|
220
|
+
}
|
|
221
|
+
export declare enum RowAlignment {
|
|
222
|
+
Start = "start",
|
|
223
|
+
Center = "center",
|
|
224
|
+
End = "end"
|
|
225
|
+
}
|
|
226
|
+
export declare enum LabelAlignment {
|
|
227
|
+
Left = "left",
|
|
228
|
+
Center = "center",
|
|
229
|
+
Right = "right"
|
|
230
|
+
}
|
|
231
|
+
export declare enum RowJoin {
|
|
232
|
+
Aisle = "aisle",
|
|
233
|
+
Continuous = "continuous"
|
|
234
|
+
}
|
|
235
|
+
/** Logical membership of physical rows with their own RowLayout geometry. */
|
|
236
|
+
export type SegmentedRow = {
|
|
237
|
+
id: UUID;
|
|
238
|
+
label: string;
|
|
239
|
+
sequence: LabelSequence;
|
|
240
|
+
/** Use each physical part's row name for seat addresses without changing authored affixes. */
|
|
241
|
+
qualifySeatLabels?: boolean;
|
|
242
|
+
smoothCorners?: boolean;
|
|
243
|
+
parts: {
|
|
244
|
+
rowId: UUID;
|
|
245
|
+
joinBefore: RowJoin | null;
|
|
246
|
+
labelOverride?: string;
|
|
247
|
+
}[];
|
|
248
|
+
};
|
|
249
|
+
type RowsBase = GroupBase & {
|
|
250
|
+
arcFan?: ArcFanGeneration;
|
|
251
|
+
labels: RowsLabels;
|
|
252
|
+
rows: RowSlot[];
|
|
253
|
+
};
|
|
254
|
+
export type StraightRows = RowsBase & {
|
|
255
|
+
kind: SeatingKind.Straight;
|
|
256
|
+
recipe: {
|
|
257
|
+
seatPitchM: number;
|
|
258
|
+
rowPitchM: number;
|
|
259
|
+
rowAlignment?: RowAlignment;
|
|
260
|
+
stagger?: RowStagger;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
export type CurvedRows = RowsBase & {
|
|
264
|
+
kind: SeatingKind.Curved;
|
|
265
|
+
recipe: {
|
|
266
|
+
innerRadiusM: number;
|
|
267
|
+
axisRatio?: number;
|
|
268
|
+
rowPitchM: number;
|
|
269
|
+
placement: {
|
|
270
|
+
kind: CurveMode.Sweep;
|
|
271
|
+
startAngleDeg: number;
|
|
272
|
+
sweepAngleDeg: number;
|
|
273
|
+
} | {
|
|
274
|
+
kind: CurveMode.Pitch;
|
|
275
|
+
centerAngleDeg: number;
|
|
276
|
+
seatPitchM: number;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
export type RowInventory = StraightRows | CurvedRows;
|
|
281
|
+
export type InventoryNaming = {
|
|
282
|
+
code: string;
|
|
283
|
+
name?: string;
|
|
284
|
+
};
|
|
285
|
+
export type TableLabels = InventoryNaming & {
|
|
286
|
+
chairs: LabelSequence;
|
|
287
|
+
tableStyle: LabelStyle;
|
|
288
|
+
};
|
|
289
|
+
export declare enum TableBookingMode {
|
|
290
|
+
Individual = "individual",
|
|
291
|
+
Whole = "whole",
|
|
292
|
+
Party = "party"
|
|
293
|
+
}
|
|
294
|
+
export declare enum StandingBookingMode {
|
|
295
|
+
Standing = "standing",
|
|
296
|
+
Whole = "whole",
|
|
297
|
+
Party = "party"
|
|
298
|
+
}
|
|
299
|
+
export type PartySize = {
|
|
300
|
+
minGuests: number;
|
|
301
|
+
maxGuests: number;
|
|
302
|
+
};
|
|
303
|
+
export type TableSelling = {
|
|
304
|
+
mode: TableBookingMode.Individual | TableBookingMode.Whole;
|
|
305
|
+
} | ({
|
|
306
|
+
mode: TableBookingMode.Party;
|
|
307
|
+
} & PartySize);
|
|
308
|
+
export type StandingSelling = {
|
|
309
|
+
mode: StandingBookingMode.Standing | StandingBookingMode.Whole;
|
|
310
|
+
wheelchairPlaces: number;
|
|
311
|
+
} | ({
|
|
312
|
+
mode: StandingBookingMode.Party;
|
|
313
|
+
wheelchairPlaces: number;
|
|
314
|
+
} & PartySize);
|
|
315
|
+
export declare enum TableChairDistribution {
|
|
316
|
+
Interior = "interior",
|
|
317
|
+
EqualSegments = "equalSegments"
|
|
318
|
+
}
|
|
319
|
+
export type RectangularTableRecipe = {
|
|
320
|
+
widthM: number;
|
|
321
|
+
depthM: number;
|
|
322
|
+
chairGapM: number;
|
|
323
|
+
chairPitchM?: number;
|
|
324
|
+
chairDistribution?: TableChairDistribution;
|
|
325
|
+
};
|
|
326
|
+
export type RoundTableRecipe = {
|
|
327
|
+
diameterM: number;
|
|
328
|
+
chairGapM: number;
|
|
329
|
+
startAngleDeg: number;
|
|
330
|
+
automaticSize?: boolean;
|
|
331
|
+
seatArcDeg?: number;
|
|
332
|
+
};
|
|
333
|
+
export type LongTableLayout = {
|
|
334
|
+
recipe: RectangularTableRecipe;
|
|
335
|
+
sides: {
|
|
336
|
+
top: boolean;
|
|
337
|
+
bottom: boolean;
|
|
338
|
+
left: boolean;
|
|
339
|
+
right: boolean;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
export type RectangularTable = GroupBase & {
|
|
343
|
+
selling?: TableSelling;
|
|
344
|
+
roundLayout?: RoundTableRecipe;
|
|
345
|
+
kind: SeatingKind.Rectangular;
|
|
346
|
+
recipe: RectangularTableRecipe;
|
|
347
|
+
labels: TableLabels;
|
|
348
|
+
chairsBySide: {
|
|
349
|
+
top: SeatSlot[];
|
|
350
|
+
right: SeatSlot[];
|
|
351
|
+
bottom: SeatSlot[];
|
|
352
|
+
left: SeatSlot[];
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
export type RoundTable = GroupBase & {
|
|
356
|
+
selling?: TableSelling;
|
|
357
|
+
longLayout?: LongTableLayout;
|
|
358
|
+
kind: SeatingKind.Round;
|
|
359
|
+
recipe: RoundTableRecipe;
|
|
360
|
+
labels: TableLabels;
|
|
361
|
+
chairs: SeatSlot[];
|
|
362
|
+
};
|
|
363
|
+
export type SeatingGroup = StraightRows | CurvedRows | RectangularTable | RoundTable;
|
|
364
|
+
type InventoryAreaBase = DrawableBase & InventoryNaming & {
|
|
365
|
+
entrance?: EntranceAssignment;
|
|
366
|
+
categoryId?: UUID | null;
|
|
367
|
+
/** Explicit grouping for outline-free sections and overview shapes; inventory boundaries use geometry. */
|
|
368
|
+
sectionId: UUID | null;
|
|
369
|
+
labelStyle: LabelStyle;
|
|
370
|
+
capacity: number;
|
|
371
|
+
shape: {
|
|
372
|
+
kind: ShapeKind.Rectangle;
|
|
373
|
+
widthM: number;
|
|
374
|
+
heightM: number;
|
|
375
|
+
cornerRadiusM: number;
|
|
376
|
+
} | {
|
|
377
|
+
kind: ShapeKind.Polygon;
|
|
378
|
+
boundary: PolygonM;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
export type InventoryArea = InventoryAreaBase & ({
|
|
382
|
+
kind: AreaKind.GeneralAdmission;
|
|
383
|
+
selling?: StandingSelling;
|
|
384
|
+
} | {
|
|
385
|
+
kind: AreaKind.Booth;
|
|
386
|
+
});
|
|
387
|
+
export type DecorationStyle = {
|
|
388
|
+
fill?: Paint;
|
|
389
|
+
stroke?: Paint;
|
|
390
|
+
strokeWidthM?: number;
|
|
391
|
+
};
|
|
392
|
+
export type Decoration = DrawableBase & ({
|
|
393
|
+
kind: DecorationKind.Text;
|
|
394
|
+
text: string;
|
|
395
|
+
fontSizeM: number;
|
|
396
|
+
align: LabelAlignment;
|
|
397
|
+
} | {
|
|
398
|
+
kind: DecorationKind.Rectangle;
|
|
399
|
+
sizeM: SizeM;
|
|
400
|
+
cornerRadiusM: number;
|
|
401
|
+
gate?: GateDetails;
|
|
402
|
+
} | {
|
|
403
|
+
kind: DecorationKind.Circle;
|
|
404
|
+
radiusM: number;
|
|
405
|
+
} | {
|
|
406
|
+
kind: DecorationKind.Line;
|
|
407
|
+
pointsM: PointM[];
|
|
408
|
+
route?: RouteDetails;
|
|
409
|
+
lineCap?: LineCap;
|
|
410
|
+
lineJoin?: LineJoin;
|
|
411
|
+
startEnding?: LineEnding;
|
|
412
|
+
endEnding?: LineEnding;
|
|
413
|
+
} | {
|
|
414
|
+
kind: DecorationKind.Polygon;
|
|
415
|
+
boundary: PolygonM;
|
|
416
|
+
gate?: GateDetails;
|
|
417
|
+
} | {
|
|
418
|
+
kind: DecorationKind.Icon;
|
|
419
|
+
iconId: VenueGlyph;
|
|
420
|
+
sizeM: SizeM;
|
|
421
|
+
} | {
|
|
422
|
+
kind: DecorationKind.Image;
|
|
423
|
+
assetId: UUID;
|
|
424
|
+
sizeM: SizeM;
|
|
425
|
+
opacity: number;
|
|
426
|
+
}) & {
|
|
427
|
+
label?: string;
|
|
428
|
+
heightM?: number;
|
|
429
|
+
style?: DecorationStyle;
|
|
430
|
+
};
|
|
431
|
+
export type SectionLabelPlacement = {
|
|
432
|
+
positionM: PointM;
|
|
433
|
+
rotationDeg: number;
|
|
434
|
+
align: LabelAlignment;
|
|
435
|
+
};
|
|
436
|
+
export declare enum SectionOutlineRole {
|
|
437
|
+
Boundary = "boundary",
|
|
438
|
+
Overview = "overview"
|
|
439
|
+
}
|
|
440
|
+
export declare const RowRefitStrength: {
|
|
441
|
+
readonly min: 0;
|
|
442
|
+
readonly max: 100;
|
|
443
|
+
};
|
|
444
|
+
export declare const SectionRotation: {
|
|
445
|
+
readonly min: -180;
|
|
446
|
+
readonly max: 180;
|
|
447
|
+
readonly initial: 0;
|
|
448
|
+
};
|
|
449
|
+
export declare const SectionScale: {
|
|
450
|
+
readonly min: 50;
|
|
451
|
+
readonly max: 160;
|
|
452
|
+
readonly initial: 100;
|
|
453
|
+
};
|
|
454
|
+
export declare enum SectionTier {
|
|
455
|
+
Floor = "floor",
|
|
456
|
+
RaisedOne = "raised-one",
|
|
457
|
+
RaisedTwo = "raised-two",
|
|
458
|
+
RaisedThree = "raised-three"
|
|
459
|
+
}
|
|
460
|
+
export declare const SectionRake: {
|
|
461
|
+
readonly min: 0;
|
|
462
|
+
readonly max: 45;
|
|
463
|
+
readonly step: 1;
|
|
464
|
+
};
|
|
465
|
+
export declare const SectionFrontRowHeight: {
|
|
466
|
+
readonly min: 0;
|
|
467
|
+
readonly max: 120;
|
|
468
|
+
readonly step: 0.5;
|
|
469
|
+
};
|
|
470
|
+
export type SectionElevation = {
|
|
471
|
+
tier?: SectionTier;
|
|
472
|
+
rakeDeg?: number;
|
|
473
|
+
/** Authored height above the owning floor. Omission uses the chosen tier. */
|
|
474
|
+
frontRowHeightM?: number;
|
|
475
|
+
};
|
|
476
|
+
export type Section = {
|
|
477
|
+
entrance?: EntranceAssignment;
|
|
478
|
+
buyerPhoto?: BuyerPhoto;
|
|
479
|
+
floorId?: UUID;
|
|
480
|
+
zoneId?: UUID;
|
|
481
|
+
elevation?: SectionElevation;
|
|
482
|
+
/** Default for inventory subsequently drawn inside this section. */
|
|
483
|
+
categoryId?: UUID | null;
|
|
484
|
+
id: UUID;
|
|
485
|
+
label: string;
|
|
486
|
+
displayLabel?: string;
|
|
487
|
+
outline?: PolygonM;
|
|
488
|
+
outlineRole?: SectionOutlineRole;
|
|
489
|
+
/** Last numeric rotation control value. Canvas rotation is independent. */
|
|
490
|
+
rotationDeg?: number;
|
|
491
|
+
scalePercent?: number;
|
|
492
|
+
/** Uniform Grow factor that preserves the authored outline subdivision. */
|
|
493
|
+
outlineGrowthFactor?: number;
|
|
494
|
+
/** Percentage used by the last accepted section row refit. */
|
|
495
|
+
rowRefitStrength?: number;
|
|
496
|
+
style?: DecorationStyle;
|
|
497
|
+
labelPlacement?: SectionLabelPlacement;
|
|
498
|
+
labelStyle: LabelStyle;
|
|
499
|
+
};
|
|
500
|
+
export type Collection = DrawableBase & {
|
|
501
|
+
name: string;
|
|
502
|
+
};
|
|
503
|
+
export type AssetRef = {
|
|
504
|
+
id: UUID;
|
|
505
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml";
|
|
506
|
+
};
|
|
507
|
+
export type VenueFloor = {
|
|
508
|
+
id: UUID;
|
|
509
|
+
name: string;
|
|
510
|
+
baseHeightM: number;
|
|
511
|
+
focalPoint?: PointM;
|
|
512
|
+
};
|
|
513
|
+
export type VenueZone = {
|
|
514
|
+
id: UUID;
|
|
515
|
+
name: string;
|
|
516
|
+
color: string;
|
|
517
|
+
focalPoint?: PointM;
|
|
518
|
+
};
|
|
519
|
+
export type PhysicalDocumentV1 = {
|
|
520
|
+
buyerPhoto?: BuyerPhoto;
|
|
521
|
+
schemaVersion: 1;
|
|
522
|
+
mapId: UUID;
|
|
523
|
+
name: string;
|
|
524
|
+
coordinateSystem: {
|
|
525
|
+
unit: "metre";
|
|
526
|
+
xAxis: "right";
|
|
527
|
+
yAxis: "down";
|
|
528
|
+
rotation: "clockwise";
|
|
529
|
+
};
|
|
530
|
+
background: Paint;
|
|
531
|
+
categories?: MapCategory[];
|
|
532
|
+
floors?: VenueFloor[];
|
|
533
|
+
zones?: VenueZone[];
|
|
534
|
+
sections: Section[];
|
|
535
|
+
collections: Collection[];
|
|
536
|
+
seatingGroups: SeatingGroup[];
|
|
537
|
+
segmentedRows?: SegmentedRow[];
|
|
538
|
+
areas: InventoryArea[];
|
|
539
|
+
decorations: Decoration[];
|
|
540
|
+
assets: AssetRef[];
|
|
541
|
+
};
|
|
542
|
+
export declare enum EntityFamily {
|
|
543
|
+
Group = "group",
|
|
544
|
+
Area = "area",
|
|
545
|
+
Decoration = "decoration",
|
|
546
|
+
Collection = "collection",
|
|
547
|
+
Section = "section",
|
|
548
|
+
Asset = "asset",
|
|
549
|
+
Seat = "seat",
|
|
550
|
+
Row = "row"
|
|
551
|
+
}
|
|
552
|
+
export declare enum SeatingKind {
|
|
553
|
+
Straight = "straightRows",
|
|
554
|
+
Curved = "curvedRows",
|
|
555
|
+
Rectangular = "rectangularTable",
|
|
556
|
+
Round = "roundTable"
|
|
557
|
+
}
|
|
558
|
+
export declare enum DecorationKind {
|
|
559
|
+
Polygon = "polygon",
|
|
560
|
+
Text = "text",
|
|
561
|
+
Rectangle = "rectangle",
|
|
562
|
+
Circle = "circle",
|
|
563
|
+
Line = "line",
|
|
564
|
+
Icon = "icon",
|
|
565
|
+
Image = "image"
|
|
566
|
+
}
|
|
567
|
+
export declare enum AreaKind {
|
|
568
|
+
GeneralAdmission = "generalAdmission",
|
|
569
|
+
Booth = "booth"
|
|
570
|
+
}
|
|
571
|
+
export declare enum VenueGlyph {
|
|
572
|
+
Stage = "stage",
|
|
573
|
+
Entrance = "entrance",
|
|
574
|
+
Exit = "exit",
|
|
575
|
+
Bar = "bar",
|
|
576
|
+
Restroom = "restroom",
|
|
577
|
+
Accessible = "accessible"
|
|
578
|
+
}
|
|
579
|
+
export declare enum ShapeKind {
|
|
580
|
+
Rectangle = "rectangle",
|
|
581
|
+
Polygon = "polygon"
|
|
582
|
+
}
|
|
583
|
+
export declare enum CurveMode {
|
|
584
|
+
Sweep = "fixedSweep",
|
|
585
|
+
Pitch = "fixedPitch"
|
|
586
|
+
}
|
|
587
|
+
export type Drawable = SeatingGroup | InventoryArea | Decoration | Collection;
|
|
588
|
+
export type EntityRef = {
|
|
589
|
+
family: EntityFamily;
|
|
590
|
+
id: UUID;
|
|
591
|
+
};
|
|
592
|
+
export {};
|