@seatlayer/js 0.109.2 → 0.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -5
- package/dist/channelsMode-DS6TLE4L.js +1 -0
- package/dist/chunk-3FEGZ5HA.js +1 -0
- package/dist/{chunk-T57HSGPG.js → chunk-3IZZM7EV.js} +1 -1
- package/dist/chunk-7I563G2N.js +1 -0
- package/dist/{chunk-DO536AZM.js → chunk-ECM3ZZET.js} +1 -1
- package/dist/chunk-JDMJI3WC.js +1 -0
- package/dist/{chunk-HHV7F37Y.js → chunk-JS5WH7YG.js} +1 -1
- package/dist/hostedCheckout-NA3IEXE4.js +183 -0
- package/dist/index.cjs +129 -54
- package/dist/index.d.cts +415 -120
- package/dist/index.d.ts +415 -120
- package/dist/index.js +128 -51
- package/dist/manager.cjs +186 -186
- package/dist/manager.js +2 -2
- package/dist/{managerExtras-4NVAPHFZ.js → managerExtras-XQSDPEQ7.js} +1 -1
- package/dist/{pickerSalesClose-AVOFKQPC.js → pickerSalesClose-2APTQFVA.js} +1 -1
- package/package.json +2 -2
- package/dist/channelsMode-JF2EUOZY.js +0 -1
- package/dist/chunk-OSZ7DOEH.js +0 -1
- package/dist/chunk-U2Z2AGRX.js +0 -1
- package/dist/chunk-UBFNMA7U.js +0 -1
- package/dist/hostedCheckout-XSQ7ISQC.js +0 -185
package/dist/index.d.cts
CHANGED
|
@@ -657,8 +657,12 @@ interface HoldLineItem {
|
|
|
657
657
|
objectType: 'seat' | 'booth' | 'ga' | 'table';
|
|
658
658
|
categoryKey: string;
|
|
659
659
|
tierId: string | null;
|
|
660
|
-
/** Price in major currency units (for example 45 means $45.00). */
|
|
660
|
+
/** Price in major currency units (for example 45 means $45.00). Includes any booking fee. */
|
|
661
661
|
unitPrice: number;
|
|
662
|
+
/** The ticket price alone, major units, when a booking fee applies. Absent = no fee. */
|
|
663
|
+
basePrice?: number;
|
|
664
|
+
/** The booking fee per ticket, minor units, frozen on the hold. Absent = 0. */
|
|
665
|
+
bookingFeeMinor?: number;
|
|
662
666
|
currency: string;
|
|
663
667
|
quantity?: number;
|
|
664
668
|
/** Channel pricing revision captured when this line used an override. */
|
|
@@ -1044,6 +1048,17 @@ interface TicketOfferAvailability {
|
|
|
1044
1048
|
prices: TicketOfferPrice[];
|
|
1045
1049
|
channelPricing: BuyerChannelPricing | null;
|
|
1046
1050
|
nextPriceChangeAt?: number | null;
|
|
1051
|
+
/**
|
|
1052
|
+
* EH20: the booking fee THIS buyer pays per ticket, already inside every
|
|
1053
|
+
* price above. Null or absent: no fee (an older worker, a partner, a free
|
|
1054
|
+
* event). Only for the words "includes … booking fee"; never added to a price.
|
|
1055
|
+
*/
|
|
1056
|
+
bookingFee?: BookingFeeOffer | null;
|
|
1057
|
+
}
|
|
1058
|
+
/** One fixed amount per ticket, in minor units of `currency`. */
|
|
1059
|
+
interface BookingFeeOffer {
|
|
1060
|
+
amountMinor: number;
|
|
1061
|
+
currency: string;
|
|
1047
1062
|
}
|
|
1048
1063
|
/** Parse a public offer payload without repairing a half-understood price. */
|
|
1049
1064
|
declare function parseTicketOfferAvailability(body: unknown): TicketOfferAvailability | null;
|
|
@@ -1091,8 +1106,16 @@ interface CheckoutLineItem {
|
|
|
1091
1106
|
categoryKey: string;
|
|
1092
1107
|
/** Chosen ticket tier id (Adult/Child/…), or null when the category has no tiers. */
|
|
1093
1108
|
tierId: string | null;
|
|
1094
|
-
/** Unit price in MAJOR currency units (e.g. 45 = 45.00). Server-authoritative. */
|
|
1109
|
+
/** Unit price in MAJOR currency units (e.g. 45 = 45.00). Server-authoritative; includes any booking fee. */
|
|
1095
1110
|
unitPrice: number;
|
|
1111
|
+
/**
|
|
1112
|
+
* The ticket price alone (MAJOR units), when the line pays a booking fee:
|
|
1113
|
+
* `unitPrice` = `basePrice` + the fee. Absent = no fee, the ticket price is
|
|
1114
|
+
* `unitPrice`. Additive: a host that ignores it still totals correctly.
|
|
1115
|
+
*/
|
|
1116
|
+
basePrice?: number;
|
|
1117
|
+
/** The booking fee per ticket in MINOR units, frozen on the hold. Absent = 0. */
|
|
1118
|
+
bookingFeeMinor?: number;
|
|
1096
1119
|
/** ISO-4217, resolved server-side (per-event override → org → USD). */
|
|
1097
1120
|
currency: string;
|
|
1098
1121
|
quantity: number;
|
|
@@ -1136,6 +1159,37 @@ interface CheckoutHandoff {
|
|
|
1136
1159
|
/** Convenience total in major units (Σ unitPrice × quantity). */
|
|
1137
1160
|
total: number;
|
|
1138
1161
|
}
|
|
1162
|
+
/**
|
|
1163
|
+
* Why {@link SeatPicker.holdSelection} held nothing. Every refusal but `busy`
|
|
1164
|
+
* and `nothing_selected` is one the checkout button meets the same way:
|
|
1165
|
+
* - `busy`: a hold or a checkout handoff is already in flight;
|
|
1166
|
+
* - `nothing_selected`: no seats or tickets are picked;
|
|
1167
|
+
* - `sales_closed`: the event isn't selling (or closed during the hold);
|
|
1168
|
+
* - `selection_invalid`: the picked seats break the event's rules (a required
|
|
1169
|
+
* count, a stranded single seat);
|
|
1170
|
+
* - `too_many_tickets`: more than the picker's maximum;
|
|
1171
|
+
* - `seats_taken`: a seat was taken first, or the hold failed for another
|
|
1172
|
+
* reason (which also reaches `onError`);
|
|
1173
|
+
* - `paused`: SeatLayer is briefly paused for maintenance; the seats stay picked;
|
|
1174
|
+
* - `companion_pair_required`, `ticket_option_not_applicable`: the server's own
|
|
1175
|
+
* seat rules.
|
|
1176
|
+
*/
|
|
1177
|
+
type HoldSelectionRefusal = 'busy' | 'nothing_selected' | 'sales_closed' | 'selection_invalid' | 'too_many_tickets' | 'seats_taken' | 'paused' | 'companion_pair_required' | 'ticket_option_not_applicable';
|
|
1178
|
+
/**
|
|
1179
|
+
* What {@link SeatPicker.holdSelection} did: the hold and its seats, or why
|
|
1180
|
+
* not, with the words the picker shows the buyer for it (`labels`: the seats a
|
|
1181
|
+
* refusal names, when the server named them).
|
|
1182
|
+
*/
|
|
1183
|
+
type HoldSelectionResult = {
|
|
1184
|
+
ok: true;
|
|
1185
|
+
hold: HoldResult;
|
|
1186
|
+
seats: PickerSeat[];
|
|
1187
|
+
} | {
|
|
1188
|
+
ok: false;
|
|
1189
|
+
reason: HoldSelectionRefusal;
|
|
1190
|
+
message: string;
|
|
1191
|
+
labels?: string[];
|
|
1192
|
+
};
|
|
1139
1193
|
/** Host-authoritative pricing — see {@link SeatPickerOptions.pricing}. */
|
|
1140
1194
|
interface SeatPickerPricing {
|
|
1141
1195
|
/** Unit prices by category key: a flat number, or `{ base, tiers: { tierId: price } }`. */
|
|
@@ -1299,6 +1353,12 @@ interface SeatPickerOptions {
|
|
|
1299
1353
|
selectedObjects?: string[];
|
|
1300
1354
|
/** Object ids or public labels the buyer may select. Omit for all free objects. */
|
|
1301
1355
|
selectableObjects?: string[] | null;
|
|
1356
|
+
/**
|
|
1357
|
+
* Paint a free seat outside `selectableObjects` as the buyers' one
|
|
1358
|
+
* "Unavailable", so a narrowed list (a guest's own seats) never shows a seat
|
|
1359
|
+
* a tap can't take. Only the paint changes. Default false.
|
|
1360
|
+
*/
|
|
1361
|
+
unselectableAsUnavailable?: boolean;
|
|
1302
1362
|
/** Require exactly this many total seated/table/GA guest units before checkout. */
|
|
1303
1363
|
numberOfPlacesToSelect?: number;
|
|
1304
1364
|
/** Optional sale guards evaluated after every change and enforced before a
|
|
@@ -1421,9 +1481,8 @@ interface SeatPickerOptions {
|
|
|
1421
1481
|
*/
|
|
1422
1482
|
referral?: string;
|
|
1423
1483
|
/**
|
|
1424
|
-
* @deprecated No effect
|
|
1425
|
-
*
|
|
1426
|
-
* Accepted and ignored so existing embeds keep type-checking.
|
|
1484
|
+
* @deprecated No effect: the picker draws no attribution badge. Accepted and
|
|
1485
|
+
* ignored so existing embeds keep type-checking.
|
|
1427
1486
|
*/
|
|
1428
1487
|
hideBadge?: boolean;
|
|
1429
1488
|
/**
|
|
@@ -1446,6 +1505,15 @@ interface SeatPickerOptions {
|
|
|
1446
1505
|
* host can drive it later through `setPanelCollapsed()`. Default false.
|
|
1447
1506
|
*/
|
|
1448
1507
|
panelCollapsed?: boolean;
|
|
1508
|
+
/**
|
|
1509
|
+
* Draw the picker's checkout bar: the ticket count, the total and the
|
|
1510
|
+
* checkout button at the foot of the ticket panel (on a phone, the sheet's
|
|
1511
|
+
* foot). Default true. Set false when the host draws its own button and
|
|
1512
|
+
* holds through `holdSelection()`, as a guest list's "Confirm 3 seats" does
|
|
1513
|
+
* where nobody pays. The map, the tray and every other control stay; on a
|
|
1514
|
+
* phone the sheet keeps its handle and cart.
|
|
1515
|
+
*/
|
|
1516
|
+
checkoutBar?: boolean;
|
|
1449
1517
|
/** Host theme overrides — see SeatPickerTheme. */
|
|
1450
1518
|
theme?: SeatPickerTheme;
|
|
1451
1519
|
/**
|
|
@@ -2132,9 +2200,8 @@ interface SeatingChartOptions {
|
|
|
2132
2200
|
/** Internal hosted-runtime control. Defaults true for direct web embeds. */
|
|
2133
2201
|
showTestModeIndicator?: boolean;
|
|
2134
2202
|
/**
|
|
2135
|
-
* @deprecated No effect
|
|
2136
|
-
*
|
|
2137
|
-
* Accepted and ignored.
|
|
2203
|
+
* @deprecated No effect: the chart draws no attribution badge. Accepted and
|
|
2204
|
+
* ignored so existing embeds keep type-checking.
|
|
2138
2205
|
*/
|
|
2139
2206
|
showAttribution?: boolean;
|
|
2140
2207
|
/**
|
|
@@ -2287,6 +2354,12 @@ declare class SeatingChart {
|
|
|
2287
2354
|
* for, which is how someone who picks French ends up reading German.
|
|
2288
2355
|
*/
|
|
2289
2356
|
private localeGeneration;
|
|
2357
|
+
/**
|
|
2358
|
+
* The locale this chart's own words were last drawn in. `setLocale` compares
|
|
2359
|
+
* with this, not with the shared active locale, which a host page may have
|
|
2360
|
+
* switched first.
|
|
2361
|
+
*/
|
|
2362
|
+
private paintedLocale;
|
|
2290
2363
|
/** The switcher, kept in step with a language change made from anywhere else. */
|
|
2291
2364
|
private languageSelect;
|
|
2292
2365
|
private rendered;
|
|
@@ -2332,15 +2405,6 @@ declare class SeatingChart {
|
|
|
2332
2405
|
private notifyMapStateChange;
|
|
2333
2406
|
/** Fetch the chart, mount the renderer, seed statuses and go live. Idempotent. */
|
|
2334
2407
|
render(): Promise<this>;
|
|
2335
|
-
/**
|
|
2336
|
-
* Attribution badge pinned to the embed's bottom-right, linking to
|
|
2337
|
-
* seatlayer.io. Rendered as an absolutely-positioned overlay with
|
|
2338
|
-
* self-contained inline styles — the SDK embed ships no widget CSS, and an
|
|
2339
|
-
* overlay keeps it out of the layout flow so it never disturbs the SDK v0.22
|
|
2340
|
-
* fill-height resize contract. Mirrors the full widget's mark + wordmark and
|
|
2341
|
-
* reuses the `picker.poweredBy` i18n string.
|
|
2342
|
-
*/
|
|
2343
|
-
private buildBadge;
|
|
2344
2408
|
private placeTooltip;
|
|
2345
2409
|
private updateTooltip;
|
|
2346
2410
|
/**
|
|
@@ -3188,6 +3252,14 @@ declare class BuyerAssetObjectUrls {
|
|
|
3188
3252
|
dispose(): void;
|
|
3189
3253
|
}
|
|
3190
3254
|
|
|
3255
|
+
/** What the widget's words need: the fee, if this buyer's prices include one. */
|
|
3256
|
+
interface BookingFeeWords {
|
|
3257
|
+
/** "includes £2.00 booking fee" under a seat's price; '' when it pays none. */
|
|
3258
|
+
seat(price: number): string;
|
|
3259
|
+
/** " · includes booking fee" after the tray's count; '' when nothing in the cart pays one. */
|
|
3260
|
+
tray(heldItems: readonly HoldLineItem[], count: number, total: number): string;
|
|
3261
|
+
}
|
|
3262
|
+
|
|
3191
3263
|
/**
|
|
3192
3264
|
* One performance of the group, already formatted by the wrapper.
|
|
3193
3265
|
*
|
|
@@ -3327,6 +3399,85 @@ interface PerformanceGroupPickerInternal {
|
|
|
3327
3399
|
* the DOM for screen readers, copy-paste and the accessibility tree.
|
|
3328
3400
|
*/
|
|
3329
3401
|
suppressPricing?: boolean;
|
|
3402
|
+
/**
|
|
3403
|
+
* A Season package, priced by the wrapper, shown in the event cart.
|
|
3404
|
+
*
|
|
3405
|
+
* `suppressPricing` blanks every amount because a per-performance price is
|
|
3406
|
+
* one the buyer cannot act on. A Season package has a price the buyer CAN
|
|
3407
|
+
* act on: one per seat, for every included date. With this set, the cart's
|
|
3408
|
+
* seat cards carry that price and the type the seat is sold as (the cart's
|
|
3409
|
+
* own type select), the footer the package total, and the seat card its
|
|
3410
|
+
* package price. Absent, nothing changes. All Season maths stays in the
|
|
3411
|
+
* wrapper; the picker only places the words it is given.
|
|
3412
|
+
*/
|
|
3413
|
+
packagePricing?: SeasonCartPricing | null;
|
|
3414
|
+
/**
|
|
3415
|
+
* The wrapper's own words for a seat free on some dates only, in place of
|
|
3416
|
+
* the group's "nights" copy: the card's title and advice, and the map key's
|
|
3417
|
+
* entry. A Season sells games, matches or concerts, not nights.
|
|
3418
|
+
*/
|
|
3419
|
+
partialWords?: {
|
|
3420
|
+
title: string;
|
|
3421
|
+
advice: string;
|
|
3422
|
+
legend: string;
|
|
3423
|
+
} | null;
|
|
3424
|
+
/**
|
|
3425
|
+
* The wrapper opened the picker in its own popup (SeasonPicker.open()): the
|
|
3426
|
+
* picker shows the same ✕ SeatPicker.open() shows, and a press on it asks the
|
|
3427
|
+
* wrapper to close, which may first ask the buyer about held seats.
|
|
3428
|
+
*/
|
|
3429
|
+
modalClose?: (() => void) | null;
|
|
3430
|
+
/**
|
|
3431
|
+
* The club's own logo (the Season read's `orgLogoUrl`), for the header when
|
|
3432
|
+
* neither the host's theme nor the chart's theme gives one. It comes before
|
|
3433
|
+
* the event's poster: one date's poster is not the Season's crest.
|
|
3434
|
+
*/
|
|
3435
|
+
brandLogoUrl?: string | null;
|
|
3436
|
+
/**
|
|
3437
|
+
* The club's own colour (the Season read's `orgAccent`), the accent when
|
|
3438
|
+
* neither the host's theme nor the chart's theme sets one, before the default.
|
|
3439
|
+
*/
|
|
3440
|
+
brandAccent?: string | null;
|
|
3441
|
+
/**
|
|
3442
|
+
* The wrapper's own line, placed straight under the picker's header: a
|
|
3443
|
+
* Season's steps, its package and Change package (R2c). Absent, the header
|
|
3444
|
+
* is followed by what it always was.
|
|
3445
|
+
*/
|
|
3446
|
+
subheader?: HTMLElement | null;
|
|
3447
|
+
}
|
|
3448
|
+
/** One seat's package line in the cart. */
|
|
3449
|
+
interface SeasonCartLine {
|
|
3450
|
+
/** The seat's package price, formatted; '' while it is unpriced. */
|
|
3451
|
+
amountText: string;
|
|
3452
|
+
/** The types it can be sold as, for the cart's select; null when there is no choice. */
|
|
3453
|
+
types: {
|
|
3454
|
+
options: ReadonlyArray<{
|
|
3455
|
+
id: string;
|
|
3456
|
+
name: string;
|
|
3457
|
+
}>;
|
|
3458
|
+
selected: string;
|
|
3459
|
+
} | null;
|
|
3460
|
+
}
|
|
3461
|
+
interface SeasonCartPricing {
|
|
3462
|
+
seat(label: string, categoryKey: string): SeasonCartLine | null;
|
|
3463
|
+
/**
|
|
3464
|
+
* The footer for the seats in the cart right now (held and chosen): "£874"
|
|
3465
|
+
* and "2 seats · for all 19 dates", or null while any of them is unpriced.
|
|
3466
|
+
*/
|
|
3467
|
+
total(lines: ReadonlyArray<{
|
|
3468
|
+
label: string;
|
|
3469
|
+
categoryKey: string;
|
|
3470
|
+
}>): {
|
|
3471
|
+
amountText: string;
|
|
3472
|
+
countText: string;
|
|
3473
|
+
} | null;
|
|
3474
|
+
/** The buyer picked a type in the cart. The picker repaints the cart after it. */
|
|
3475
|
+
setType(label: string, type: string): void;
|
|
3476
|
+
/** The seat card's price and the line under it ("for all 19 dates"), or null when unpriced. */
|
|
3477
|
+
seatCardPrice(categoryKey: string): {
|
|
3478
|
+
price: string;
|
|
3479
|
+
note: string;
|
|
3480
|
+
} | null;
|
|
3330
3481
|
}
|
|
3331
3482
|
|
|
3332
3483
|
/**
|
|
@@ -3935,6 +4086,13 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
3935
4086
|
/** Bumped on every locale REQUEST, so a load that resolves late can tell it
|
|
3936
4087
|
* is no longer the one asked for. See {@link applyActiveLocale}. */
|
|
3937
4088
|
private localeGeneration;
|
|
4089
|
+
/**
|
|
4090
|
+
* The locale the picker's own words were last drawn in. `setLocale` compares
|
|
4091
|
+
* with this, not with the shared active locale: a host that switched the
|
|
4092
|
+
* shared locale first (the guest page does, then calls `setLocale`) would
|
|
4093
|
+
* otherwise find nothing to change and leave every word in the old language.
|
|
4094
|
+
*/
|
|
4095
|
+
private paintedLocale;
|
|
3938
4096
|
/** @internal */ els: Record<string, HTMLElement>;
|
|
3939
4097
|
/** Feature 6 anchor regions — positioned flex containers over the map. */
|
|
3940
4098
|
/** @internal */ regions: Record<string, HTMLElement>;
|
|
@@ -4278,7 +4436,6 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4278
4436
|
private setFsFallback;
|
|
4279
4437
|
private cbEl;
|
|
4280
4438
|
private modalCleanup;
|
|
4281
|
-
private prevFocus;
|
|
4282
4439
|
private escHandler;
|
|
4283
4440
|
/** Set by open(): closes the modal (scroll restore + destroy + onClose). */
|
|
4284
4441
|
private closeModal;
|
|
@@ -4564,18 +4721,6 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4564
4721
|
*/
|
|
4565
4722
|
private setSalesClosed;
|
|
4566
4723
|
/** @internal */ applySalesClosed(): void;
|
|
4567
|
-
/**
|
|
4568
|
-
* The badge follows the SERVED chart theme, and nothing else.
|
|
4569
|
-
*
|
|
4570
|
-
* The API writes `theme.hideBadge` from the owning account's white-label
|
|
4571
|
-
* entitlement on every buyer-facing document, so this one flag is the whole
|
|
4572
|
-
* answer. The host's own `hideBadge` option is deliberately NOT consulted:
|
|
4573
|
-
* an un-entitled embed could otherwise strip the attribution by passing a
|
|
4574
|
-
* boolean. It stays in the option type for compatibility, inert.
|
|
4575
|
-
*/
|
|
4576
|
-
private badgeHidden;
|
|
4577
|
-
/** Attribution badge in the side-panel foot (Gap 7). Hidden per host/theme. */
|
|
4578
|
-
private buildBadge;
|
|
4579
4724
|
/**
|
|
4580
4725
|
* Create the positioned flex containers that own every persistent map overlay.
|
|
4581
4726
|
* Appended once after controller.render(); each chrome piece is then appended
|
|
@@ -4805,6 +4950,8 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4805
4950
|
*/
|
|
4806
4951
|
private openSeatView;
|
|
4807
4952
|
private closeSeatView;
|
|
4953
|
+
/** @internal EH20: "includes … booking fee" for this buyer's prices (pickerBookingFee). */
|
|
4954
|
+
feeWords(): BookingFeeWords;
|
|
4808
4955
|
/** @internal */ money(n: number): string;
|
|
4809
4956
|
/**
|
|
4810
4957
|
* Sleep until the offer schedule's next known transition, then re-read.
|
|
@@ -4887,6 +5034,21 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4887
5034
|
/** The half of a legend's inputs the rail and the price list share, resolved
|
|
4888
5035
|
* once so the two renderings cannot be given different answers. */
|
|
4889
5036
|
/** @internal */ legendDeps(): LegendDeps;
|
|
5037
|
+
/** Seats drawn two-tone right now (free on some dates only). */
|
|
5038
|
+
private readonly markedSeatIds;
|
|
5039
|
+
/**
|
|
5040
|
+
* @internal Where each seat is, as the cart names it (section, row, seat
|
|
5041
|
+
* number), for a wrapper's own words: a Season's Change package says which
|
|
5042
|
+
* held seats it releases (SE55). A label the map can't place is left bare.
|
|
5043
|
+
*/
|
|
5044
|
+
seatPlaces(labels: readonly string[]): Array<{
|
|
5045
|
+
label: string;
|
|
5046
|
+
section?: string;
|
|
5047
|
+
row?: string;
|
|
5048
|
+
seat?: string;
|
|
5049
|
+
}>;
|
|
5050
|
+
/** @internal The map key's entry for them, when the wrapper words one and the map has any. */
|
|
5051
|
+
partialLegend(): string | null;
|
|
4890
5052
|
/** Paint the phone's always-visible legend; the chip HTML lives in
|
|
4891
5053
|
* pickerLegend.ts. A legend of ONE teaches nothing, so it stays away. */
|
|
4892
5054
|
/** @internal */ syncPriceRail(categories: LegendCategory[], left: Record<string, number>, deps?: LegendDeps): void;
|
|
@@ -4920,7 +5082,16 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4920
5082
|
* "PIT · Adult ×2" means both of them, not one of two identical cards.
|
|
4921
5083
|
*/
|
|
4922
5084
|
private removeHeldLabels;
|
|
4923
|
-
/**
|
|
5085
|
+
/**
|
|
5086
|
+
* Hold the buyer's picked seats exactly as the checkout button does (the
|
|
5087
|
+
* same checks, words and hold) without the checkout handoff: `onCheckout`
|
|
5088
|
+
* isn't called and hosted checkout doesn't open. For a host that draws its
|
|
5089
|
+
* own button (see `checkoutBar: false`) and finishes the order itself.
|
|
5090
|
+
* Resolves with the hold, or a typed refusal with the words the picker
|
|
5091
|
+
* showed; it never rejects. A second call while one is in flight is `busy`.
|
|
5092
|
+
*/
|
|
5093
|
+
holdSelection(): Promise<HoldSelectionResult>;
|
|
5094
|
+
/** @internal */ handleCta(handoff?: boolean): Promise<HoldSelectionResult>;
|
|
4924
5095
|
/** @internal */ startHoldTimer(expiresAt: number): void;
|
|
4925
5096
|
/** @internal */ stopHoldTimer(): void;
|
|
4926
5097
|
/** Show/refresh (or hide) the "Need more time?" prompt with the live seconds left. */
|
|
@@ -5819,6 +5990,83 @@ declare class PerformanceGroupPicker {
|
|
|
5819
5990
|
private checkout;
|
|
5820
5991
|
}
|
|
5821
5992
|
|
|
5993
|
+
/**
|
|
5994
|
+
* The anonymous Season buyer session — how a page with no backend at all can
|
|
5995
|
+
* put a Season on sale.
|
|
5996
|
+
*
|
|
5997
|
+
* Until now every `SeasonPicker` needed a `bss_` bearer minted by the
|
|
5998
|
+
* organizer's own server with their secret key, which meant only a developer
|
|
5999
|
+
* could embed a Season. `POST /pub/seasons/:key/sessions` removes that step: it
|
|
6000
|
+
* takes no credential, checks the Season is public, its sales are open and the
|
|
6001
|
+
* browser's Origin is one the organizer declared, and hands back an ordinary
|
|
6002
|
+
* Season buyer bearer. Every existing `/pub/seasons/:key/*` call then works
|
|
6003
|
+
* unchanged — this module mints and renews the bearer and does nothing else.
|
|
6004
|
+
*
|
|
6005
|
+
* A publishable `pk_…` key is NOT sent here. It is accepted by the picker for
|
|
6006
|
+
* parity with `SeatPicker` (one snippet shape across surfaces) and to name the
|
|
6007
|
+
* account in a host's own source, but the Season key plus the registered Origin
|
|
6008
|
+
* are what the server actually verifies, so putting a key on the wire would add
|
|
6009
|
+
* a value to leak without adding a check.
|
|
6010
|
+
*
|
|
6011
|
+
* WHAT MAKES THIS SAFE TO BE ANONYMOUS: the session it mints is Public-sale
|
|
6012
|
+
* only. It can never select a private channel or a renewal allocation — that
|
|
6013
|
+
* still needs `buyerAccessTokenProvider` with the organizer's own scope — and
|
|
6014
|
+
* an explicit host token always takes precedence over this path.
|
|
6015
|
+
*/
|
|
6016
|
+
|
|
6017
|
+
/** The three ways the server refuses to mint an anonymous Season session. */
|
|
6018
|
+
type SeasonPublicRefusalReason = 'audience_not_public' | 'sales_not_open' | 'origin_not_allowed';
|
|
6019
|
+
/** What `POST /pub/seasons/:key/sessions` returns. */
|
|
6020
|
+
interface SeasonPublicSession {
|
|
6021
|
+
token: string;
|
|
6022
|
+
expiresAt: number;
|
|
6023
|
+
seasonKey: string;
|
|
6024
|
+
planActivationIds: string[];
|
|
6025
|
+
}
|
|
6026
|
+
|
|
6027
|
+
/**
|
|
6028
|
+
* The Season errors a host can test with `instanceof`, in a module of their own.
|
|
6029
|
+
*
|
|
6030
|
+
* On the CDN the Season picker is a lazy chunk (seatlayer-season.mjs) that reaches
|
|
6031
|
+
* these classes through its host object rather than bundling a second copy, so an
|
|
6032
|
+
* error the picker throws is still `instanceof seatlayer.SeasonApiError`. Here
|
|
6033
|
+
* rather than in seasonApi.ts and seasonPublicSession.ts, whose other code moves
|
|
6034
|
+
* into that chunk; both still export them, so nothing changes for npm.
|
|
6035
|
+
*/
|
|
6036
|
+
|
|
6037
|
+
declare class SeasonApiError extends Error {
|
|
6038
|
+
readonly code: string;
|
|
6039
|
+
readonly status: number;
|
|
6040
|
+
/** Seconds from a 503's `Retry-After`, when the server sent one. */
|
|
6041
|
+
readonly retryAfterS?: number;
|
|
6042
|
+
/** The server's `retryable` flag from the error body, when present. */
|
|
6043
|
+
readonly retryable?: boolean;
|
|
6044
|
+
/** The error body's `reason` (for example `maintenance_mode`), when present. */
|
|
6045
|
+
readonly reason?: string;
|
|
6046
|
+
/** For `seats_unavailable` or a refused operation: each refused date and why (slice 2.23). */
|
|
6047
|
+
readonly refusals?: readonly SeasonRefusal[];
|
|
6048
|
+
constructor(code: string, status: number, details?: {
|
|
6049
|
+
retryAfterS?: number;
|
|
6050
|
+
retryable?: boolean;
|
|
6051
|
+
reason?: string;
|
|
6052
|
+
refusals?: readonly SeasonRefusal[];
|
|
6053
|
+
});
|
|
6054
|
+
}
|
|
6055
|
+
declare class SeasonRecoveryTimeoutError extends Error {
|
|
6056
|
+
readonly operationId: string;
|
|
6057
|
+
constructor(operationId: string);
|
|
6058
|
+
}
|
|
6059
|
+
/**
|
|
6060
|
+
* Thrown when the server refuses to mint. Carries the machine reason and
|
|
6061
|
+
* nothing else — no origin, no account, no audience detail — because the
|
|
6062
|
+
* refusal is reported to an anonymous browser.
|
|
6063
|
+
*/
|
|
6064
|
+
declare class SeasonPublicSessionRefused extends Error {
|
|
6065
|
+
readonly reason: SeasonPublicRefusalReason;
|
|
6066
|
+
readonly status: number;
|
|
6067
|
+
constructor(reason: SeasonPublicRefusalReason, status: number);
|
|
6068
|
+
}
|
|
6069
|
+
|
|
5822
6070
|
type SeasonOperationState = 'preparing' | 'commit_pending' | 'committed' | 'expire_pending' | 'booking_pending' | 'abort_pending' | 'aborted' | 'partial_terminal' | 'expired' | 'booked';
|
|
5823
6071
|
/**
|
|
5824
6072
|
* Who may open this Season in a browser.
|
|
@@ -5849,6 +6097,10 @@ interface SeasonDescriptor {
|
|
|
5849
6097
|
audience: SeasonAudience;
|
|
5850
6098
|
/** Absent on a worker that predates hosted Season checkout; read as `null`. */
|
|
5851
6099
|
checkoutMode?: SeasonCheckoutMode | null;
|
|
6100
|
+
/** The club's Brand settings: its name, logo and colour, or null when unset. Absent on an older worker. */
|
|
6101
|
+
organizerName?: string | null;
|
|
6102
|
+
orgLogoUrl?: string | null;
|
|
6103
|
+
orgAccent?: string | null;
|
|
5852
6104
|
planActivationId: string;
|
|
5853
6105
|
occurrenceCount: number;
|
|
5854
6106
|
occurrences: Array<{
|
|
@@ -5856,6 +6108,10 @@ interface SeasonDescriptor {
|
|
|
5856
6108
|
eventKey: string;
|
|
5857
6109
|
name: string;
|
|
5858
6110
|
startsAt: number | null;
|
|
6111
|
+
/** No longer part of what a new hold takes: marked past, or cancelled. Absent on an older worker. */
|
|
6112
|
+
past?: boolean;
|
|
6113
|
+
/** A cancel took this date off sale (it is also `past`). Absent on an older worker. */
|
|
6114
|
+
cancelled?: boolean;
|
|
5859
6115
|
}>;
|
|
5860
6116
|
}
|
|
5861
6117
|
interface SeasonAvailability {
|
|
@@ -5882,8 +6138,37 @@ interface SeasonOperation {
|
|
|
5882
6138
|
allocations: Array<{
|
|
5883
6139
|
eventId: string;
|
|
5884
6140
|
state: string;
|
|
6141
|
+
code?: SeasonRefusalCode;
|
|
5885
6142
|
}>;
|
|
5886
6143
|
}
|
|
6144
|
+
/**
|
|
6145
|
+
* Why a date refused a seat (slice 2.23), on a refused date of an operation or
|
|
6146
|
+
* handoff: sold or held by another buyer, or kept for a holder's renewal.
|
|
6147
|
+
*/
|
|
6148
|
+
type SeasonRefusalCode = 'seat_unavailable' | 'seat_held_for_renewal';
|
|
6149
|
+
/** One refused date and its reason. */
|
|
6150
|
+
interface SeasonRefusal {
|
|
6151
|
+
eventKey: string;
|
|
6152
|
+
code: SeasonRefusalCode;
|
|
6153
|
+
}
|
|
6154
|
+
/**
|
|
6155
|
+
* A Season package's price types (slice 2.10). A package prices each category
|
|
6156
|
+
* once per type it offers ("Stalls, adult $480; Stalls, child $240"); a seat is
|
|
6157
|
+
* sold as one type, chosen before the hold. `adult` is the default wherever a
|
|
6158
|
+
* type is not named, so every price and hold from before price types is adult.
|
|
6159
|
+
*/
|
|
6160
|
+
type SeasonPriceType = 'adult' | 'child' | 'concession' | 'senior' | 'student';
|
|
6161
|
+
/**
|
|
6162
|
+
* Each seat's price type, by seat label, for a programmatic hold
|
|
6163
|
+
* (`holdSameSeat(labels, operationId, { 'A-2': 'child' })`). A label the map
|
|
6164
|
+
* leaves out is adult.
|
|
6165
|
+
*/
|
|
6166
|
+
type SeasonSeatPriceTypes = Readonly<Record<string, SeasonPriceType>>;
|
|
6167
|
+
/** One held seat and the price type it was held as. */
|
|
6168
|
+
interface SeasonCheckoutSeat {
|
|
6169
|
+
label: string;
|
|
6170
|
+
priceTypeKey: SeasonPriceType;
|
|
6171
|
+
}
|
|
5887
6172
|
interface SeasonCheckoutHandoff {
|
|
5888
6173
|
seasonKey: string;
|
|
5889
6174
|
planActivationId: string;
|
|
@@ -5897,10 +6182,17 @@ interface SeasonCheckoutHandoff {
|
|
|
5897
6182
|
allocations: Array<{
|
|
5898
6183
|
eventKey: string;
|
|
5899
6184
|
state: string;
|
|
6185
|
+
code?: SeasonRefusalCode;
|
|
5900
6186
|
}>;
|
|
6187
|
+
/**
|
|
6188
|
+
* Each held seat and its price type (slice 2.10), `adult` where the picker
|
|
6189
|
+
* sells no other type. Absent only on an operation restored by id, whose
|
|
6190
|
+
* seats this page did not choose.
|
|
6191
|
+
*/
|
|
6192
|
+
seats?: SeasonCheckoutSeat[];
|
|
5901
6193
|
}
|
|
5902
6194
|
/**
|
|
5903
|
-
* One category's package price, for one package.
|
|
6195
|
+
* One category's package price, for one package and one price type.
|
|
5904
6196
|
*
|
|
5905
6197
|
* `unitPrice` is an integer in the currency's MINOR unit, like every other
|
|
5906
6198
|
* money field the API returns, and it is the price of the whole package for one
|
|
@@ -5909,11 +6201,22 @@ interface SeasonCheckoutHandoff {
|
|
|
5909
6201
|
*/
|
|
5910
6202
|
interface SeasonCategoryPrice {
|
|
5911
6203
|
categoryKey: string;
|
|
6204
|
+
/** The type this price is for. Absent from a worker before price types, which reads as `'adult'`. */
|
|
6205
|
+
priceTypeKey?: SeasonPriceType;
|
|
6206
|
+
/** The server's name for that type ("Child"). */
|
|
6207
|
+
priceTypeLabel?: string;
|
|
5912
6208
|
unitPrice: number;
|
|
5913
6209
|
}
|
|
5914
6210
|
interface SeasonPackagePrices {
|
|
5915
6211
|
planKey: string;
|
|
6212
|
+
/** The package's Plan activation: what a buyer session is bound to, as the Season read names it. */
|
|
6213
|
+
planActivationId: string;
|
|
5916
6214
|
name: string;
|
|
6215
|
+
/** The package's dates still to come, by the Season read's rule. Absent on an older worker. */
|
|
6216
|
+
datesToCome?: number;
|
|
6217
|
+
/** The first and last of those dates (epoch ms); null when none is left or none has a time. */
|
|
6218
|
+
firstDateAt?: number | null;
|
|
6219
|
+
lastDateAt?: number | null;
|
|
5917
6220
|
prices: SeasonCategoryPrice[];
|
|
5918
6221
|
}
|
|
5919
6222
|
/**
|
|
@@ -5953,41 +6256,14 @@ interface SeasonRenewalIntent {
|
|
|
5953
6256
|
intentId: string;
|
|
5954
6257
|
receivedAt: number;
|
|
5955
6258
|
}
|
|
5956
|
-
declare class SeasonApiError extends Error {
|
|
5957
|
-
readonly code: string;
|
|
5958
|
-
readonly status: number;
|
|
5959
|
-
/** Seconds from a 503's `Retry-After`, when the server sent one. */
|
|
5960
|
-
readonly retryAfterS?: number;
|
|
5961
|
-
/** The server's `retryable` flag from the error body, when present. */
|
|
5962
|
-
readonly retryable?: boolean;
|
|
5963
|
-
/** The error body's `reason` (for example `maintenance_mode`), when present. */
|
|
5964
|
-
readonly reason?: string;
|
|
5965
|
-
constructor(code: string, status: number, details?: {
|
|
5966
|
-
retryAfterS?: number;
|
|
5967
|
-
retryable?: boolean;
|
|
5968
|
-
reason?: string;
|
|
5969
|
-
});
|
|
5970
|
-
}
|
|
5971
|
-
declare class SeasonRecoveryTimeoutError extends Error {
|
|
5972
|
-
readonly operationId: string;
|
|
5973
|
-
constructor(operationId: string);
|
|
5974
|
-
}
|
|
5975
6259
|
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
eyebrow?: string;
|
|
5984
|
-
priceLabel?: string;
|
|
5985
|
-
compareAtPriceLabel?: string;
|
|
5986
|
-
savingsLabel?: string;
|
|
5987
|
-
priceNote?: string;
|
|
5988
|
-
benefits?: readonly string[];
|
|
5989
|
-
renewalLabel?: string;
|
|
5990
|
-
}
|
|
6260
|
+
/**
|
|
6261
|
+
* The Season picker's transport: what the event SeatPicker calls to read the
|
|
6262
|
+
* map, hold and release seats, and poll availability, spoken in Season
|
|
6263
|
+
* operations. Moved out of SeasonPickerInteractive.ts unchanged, so the
|
|
6264
|
+
* vendored copy stays under the app's 1,500-line cap.
|
|
6265
|
+
*/
|
|
6266
|
+
|
|
5991
6267
|
interface SeasonBestAvailableOptions {
|
|
5992
6268
|
categoryKey?: string;
|
|
5993
6269
|
zoneId?: string;
|
|
@@ -5996,6 +6272,20 @@ interface SeasonBestAvailableOptions {
|
|
|
5996
6272
|
/** Refuse scattered fallback when no contiguous block of `qty` exists. */
|
|
5997
6273
|
requireContiguous?: boolean;
|
|
5998
6274
|
}
|
|
6275
|
+
|
|
6276
|
+
interface SeasonStatusEvent {
|
|
6277
|
+
kind: 'loading' | 'ready' | 'pending' | 'held' | 'booked' | 'released' | 'renewal_intent' | 'partial_terminal' | 'failed';
|
|
6278
|
+
message: string;
|
|
6279
|
+
operationId?: string;
|
|
6280
|
+
}
|
|
6281
|
+
/**
|
|
6282
|
+
* A host's token source for a Season: the event picker's, plus the package the
|
|
6283
|
+
* token is for once the buyer has chosen one (`planActivationId`, R2c). Absent
|
|
6284
|
+
* means the host's own default package.
|
|
6285
|
+
*/
|
|
6286
|
+
type SeasonAccessTokenProvider = (context: Parameters<BuyerAccessTokenProvider>[0] & {
|
|
6287
|
+
planActivationId?: string;
|
|
6288
|
+
}) => ReturnType<BuyerAccessTokenProvider>;
|
|
5999
6289
|
interface SeasonPickerOptions {
|
|
6000
6290
|
container: string | HTMLElement;
|
|
6001
6291
|
season: string;
|
|
@@ -6037,21 +6327,37 @@ interface SeasonPickerOptions {
|
|
|
6037
6327
|
* cannot authorize it.
|
|
6038
6328
|
*/
|
|
6039
6329
|
returnUrl?: string;
|
|
6040
|
-
|
|
6330
|
+
/**
|
|
6331
|
+
* The host's own token source. Once the buyer chooses another package on
|
|
6332
|
+
* step 1, it is asked for that package's token: the context then carries
|
|
6333
|
+
* `planActivationId`, and the session the host mints must be bound to it.
|
|
6334
|
+
*/
|
|
6335
|
+
buyerAccessTokenProvider?: SeasonAccessTokenProvider;
|
|
6041
6336
|
buyerAccessToken?: string | BuyerAccessToken;
|
|
6042
6337
|
initialOperationId?: string;
|
|
6338
|
+
/**
|
|
6339
|
+
* The package to open on, by its key (the package's key in the dashboard).
|
|
6340
|
+
* Without it, or for a key that is not on sale, the picker opens on the
|
|
6341
|
+
* Season's first package. Ignored with a host token, which is bound to one.
|
|
6342
|
+
*/
|
|
6343
|
+
package?: string;
|
|
6043
6344
|
recoveryTimeoutMs?: number;
|
|
6044
6345
|
realtimePollMs?: number;
|
|
6045
6346
|
fetch?: typeof fetch;
|
|
6046
|
-
offer?: SeasonOfferPresentation;
|
|
6047
6347
|
/**
|
|
6048
|
-
*
|
|
6049
|
-
*
|
|
6050
|
-
*
|
|
6051
|
-
*
|
|
6052
|
-
*
|
|
6348
|
+
* The price types this picker sells, for example `['adult', 'child']`
|
|
6349
|
+
* (slice 2.10). When it names a type besides adult, each seat card in the
|
|
6350
|
+
* cart offers the types the package prices for that seat's category, at
|
|
6351
|
+
* that type's price, in the cart's own type select, and the hold and the
|
|
6352
|
+
* handoff carry each seat's type. Absent or `['adult']`: every seat is adult.
|
|
6053
6353
|
*/
|
|
6054
|
-
|
|
6354
|
+
priceTypes?: readonly SeasonPriceType[];
|
|
6355
|
+
/**
|
|
6356
|
+
* The host emails a ticket for every date itself (its own checkout does), so
|
|
6357
|
+
* step 1 says so: "One ticket per date, sent by email." Our own checkout
|
|
6358
|
+
* says it without this. Default off: a host that hands off may not email.
|
|
6359
|
+
*/
|
|
6360
|
+
ticketsByEmail?: boolean;
|
|
6055
6361
|
maxSelection?: number;
|
|
6056
6362
|
selectedObjects?: string[];
|
|
6057
6363
|
selectableObjects?: string[] | null;
|
|
@@ -6099,11 +6405,34 @@ interface SeasonPickerOptions {
|
|
|
6099
6405
|
onStatusChange?: (event: SeasonStatusEvent) => void;
|
|
6100
6406
|
onError?: (error: unknown) => void;
|
|
6101
6407
|
}
|
|
6408
|
+
/** `SeasonPicker.open()`'s options: the picker's own, without a container. */
|
|
6409
|
+
interface SeasonPickerOpenOptions extends Omit<SeasonPickerOptions, 'container'> {
|
|
6410
|
+
/** The popup closed: ✕, Escape, a press on the page around it, or close(). */
|
|
6411
|
+
onClose?: () => void;
|
|
6412
|
+
}
|
|
6413
|
+
|
|
6102
6414
|
declare class SeasonPicker {
|
|
6103
6415
|
#private;
|
|
6104
6416
|
constructor(options: SeasonPickerOptions);
|
|
6105
6417
|
render(): Promise<this>;
|
|
6106
|
-
|
|
6418
|
+
/**
|
|
6419
|
+
* @internal Sell another of the Season's packages (R2c, the package step):
|
|
6420
|
+
* a session bound to that package, and its dates, availability and prices,
|
|
6421
|
+
* shown on step 1 with its card chosen. Seats chosen but not held are
|
|
6422
|
+
* dropped; a hold must be released first. A newer call wins, and an older
|
|
6423
|
+
* call's reads are dropped.
|
|
6424
|
+
*/
|
|
6425
|
+
choosePackage(planActivationId: string): Promise<void>;
|
|
6426
|
+
/** @internal Step 2: the chosen package's map (step 1's Choose seats). */
|
|
6427
|
+
chooseSeats(): Promise<void>;
|
|
6428
|
+
/**
|
|
6429
|
+
* Hold `labels` for every performance. `priceTypes` names each seat's price
|
|
6430
|
+
* type by label (slice 2.10), and a label it leaves out is adult; without it,
|
|
6431
|
+
* each seat keeps the type the buyer chose (adult when none). A type the
|
|
6432
|
+
* package does not price for that seat rejects with a `SeasonApiError` coded
|
|
6433
|
+
* `price_type_not_offered`, and nothing is held.
|
|
6434
|
+
*/
|
|
6435
|
+
holdSameSeat(labels: readonly string[], operationId: string, priceTypes?: SeasonSeatPriceTypes): Promise<SeasonCheckoutHandoff>;
|
|
6107
6436
|
holdBestAvailable(qty: number, operationId: string, options?: SeasonBestAvailableOptions): Promise<SeasonCheckoutHandoff>;
|
|
6108
6437
|
restoreOperation(operationId: string): Promise<SeasonCheckoutHandoff | null>;
|
|
6109
6438
|
release(releaseActionId: string): Promise<void>;
|
|
@@ -6112,50 +6441,16 @@ declare class SeasonPicker {
|
|
|
6112
6441
|
getAvailability(): SeasonAvailability | null;
|
|
6113
6442
|
getHandoff(): SeasonCheckoutHandoff | null;
|
|
6114
6443
|
destroy(): void;
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
/**
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
* browser's Origin is one the organizer declared, and hands back an ordinary
|
|
6126
|
-
* Season buyer bearer. Every existing `/pub/seasons/:key/*` call then works
|
|
6127
|
-
* unchanged — this module mints and renews the bearer and does nothing else.
|
|
6128
|
-
*
|
|
6129
|
-
* A publishable `pk_…` key is NOT sent here. It is accepted by the picker for
|
|
6130
|
-
* parity with `SeatPicker` (one snippet shape across surfaces) and to name the
|
|
6131
|
-
* account in a host's own source, but the Season key plus the registered Origin
|
|
6132
|
-
* are what the server actually verifies, so putting a key on the wire would add
|
|
6133
|
-
* a value to leak without adding a check.
|
|
6134
|
-
*
|
|
6135
|
-
* WHAT MAKES THIS SAFE TO BE ANONYMOUS: the session it mints is Public-sale
|
|
6136
|
-
* only. It can never select a private channel or a renewal allocation — that
|
|
6137
|
-
* still needs `buyerAccessTokenProvider` with the organizer's own scope — and
|
|
6138
|
-
* an explicit host token always takes precedence over this path.
|
|
6139
|
-
*/
|
|
6140
|
-
|
|
6141
|
-
/** The three ways the server refuses to mint an anonymous Season session. */
|
|
6142
|
-
type SeasonPublicRefusalReason = 'audience_not_public' | 'sales_not_open' | 'origin_not_allowed';
|
|
6143
|
-
/** What `POST /pub/seasons/:key/sessions` returns. */
|
|
6144
|
-
interface SeasonPublicSession {
|
|
6145
|
-
token: string;
|
|
6146
|
-
expiresAt: number;
|
|
6147
|
-
seasonKey: string;
|
|
6148
|
-
planActivationIds: string[];
|
|
6149
|
-
}
|
|
6150
|
-
/**
|
|
6151
|
-
* Thrown when the server refuses to mint. Carries the machine reason and
|
|
6152
|
-
* nothing else — no origin, no account, no audience detail — because the
|
|
6153
|
-
* refusal is reported to an anonymous browser.
|
|
6154
|
-
*/
|
|
6155
|
-
declare class SeasonPublicSessionRefused extends Error {
|
|
6156
|
-
readonly reason: SeasonPublicRefusalReason;
|
|
6157
|
-
readonly status: number;
|
|
6158
|
-
constructor(reason: SeasonPublicRefusalReason, status: number);
|
|
6444
|
+
/** Close the picker: in a popup (open()) exactly as its ✕ does; inline, destroy it. */
|
|
6445
|
+
close(): void;
|
|
6446
|
+
/**
|
|
6447
|
+
* Open the Season in the event picker's own popup over the page, and resolve
|
|
6448
|
+
* once it has rendered. Closing it (✕, Escape, a press on the page around it,
|
|
6449
|
+
* or close()) with seats held asks once (board SE60): Release seats, or Keep
|
|
6450
|
+
* and close. The next open() of the same Season on this page picks a kept
|
|
6451
|
+
* hold up, with its seats back in the cart.
|
|
6452
|
+
*/
|
|
6453
|
+
static open(options: SeasonPickerOpenOptions): Promise<SeasonPicker>;
|
|
6159
6454
|
}
|
|
6160
6455
|
|
|
6161
6456
|
/**
|
|
@@ -6198,4 +6493,4 @@ interface AttachPickerFrameOptions {
|
|
|
6198
6493
|
*/
|
|
6199
6494
|
declare function attachPickerFrame(iframe: HTMLIFrameElement, opts?: AttachPickerFrameOptions): () => void;
|
|
6200
6495
|
|
|
6201
|
-
export { ApiError, type AttachPickerFrameOptions, type AttendeeFieldMode, type BestAvailableResult, type BookingForm, type BookingFormFieldError, type BookingQuestion, type BookingQuestionType, BuyerAccessContext, type BuyerAccessExpiredEvent, type BuyerAccessRefreshReason, type BuyerAccessToken, type BuyerAccessTokenProvider, BuyerAccessUnavailableError, type BuyerAccessUnavailableEvent, type BuyerAccessUnavailableReason, BuyerRealtimeClient, type BuyerRealtimeOptions, type CheckoutAnswer, type CheckoutAttendee, type CheckoutHandoff, type CheckoutLineItem, type CheckoutSessionResult, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type GAPromptRequest, type GaPromptTier, type HoldConflict, type HoldLineItem, type HoldResult, type OrderStatusResult, type PaymentOptionsReason, type PaymentOptionsResult, type PaymentProviderName, type PerformanceGroupAvailability, type PerformanceGroupCheckoutHandoff, type PerformanceGroupDescriptor, PerformanceGroupDestroyedError, type PerformanceGroupHold, type PerformanceGroupHoldAllocation, type PerformanceGroupOperationEvent, type PerformanceGroupOperationState, PerformanceGroupPicker, type PerformanceGroupPickerOptions, type PerformanceGroupRecoveryState, type PerformanceGroupSeatAllocation, type PerformanceGroupSelectionMode, type PerformanceGroupStatusEvent, type Projection, type PubApiOptions, type RealtimeSink, type ResumedHoldResult, SEATING_CHART_CALLBACK_PROPS, SEATING_CHART_HANDLE_METHODS, SEATING_CHART_IDENTITY_PROPS, SEATING_CHART_VALUE_PROPS, type SaleState, SeasonApiError, type SeasonAudience, type SeasonAvailability, type SeasonBestAvailableOptions, type SeasonCategoryPrice, type SeasonCheckoutHandoff, type SeasonCheckoutMode, type SeasonCheckoutRequest, type
|
|
6496
|
+
export { ApiError, type AttachPickerFrameOptions, type AttendeeFieldMode, type BestAvailableResult, type BookingForm, type BookingFormFieldError, type BookingQuestion, type BookingQuestionType, BuyerAccessContext, type BuyerAccessExpiredEvent, type BuyerAccessRefreshReason, type BuyerAccessToken, type BuyerAccessTokenProvider, BuyerAccessUnavailableError, type BuyerAccessUnavailableEvent, type BuyerAccessUnavailableReason, BuyerRealtimeClient, type BuyerRealtimeOptions, type CheckoutAnswer, type CheckoutAttendee, type CheckoutHandoff, type CheckoutLineItem, type CheckoutSessionResult, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type GAPromptRequest, type GaPromptTier, type HoldConflict, type HoldLineItem, type HoldResult, type HoldSelectionRefusal, type HoldSelectionResult, type OrderStatusResult, type PaymentOptionsReason, type PaymentOptionsResult, type PaymentProviderName, type PerformanceGroupAvailability, type PerformanceGroupCheckoutHandoff, type PerformanceGroupDescriptor, PerformanceGroupDestroyedError, type PerformanceGroupHold, type PerformanceGroupHoldAllocation, type PerformanceGroupOperationEvent, type PerformanceGroupOperationState, PerformanceGroupPicker, type PerformanceGroupPickerOptions, type PerformanceGroupRecoveryState, type PerformanceGroupSeatAllocation, type PerformanceGroupSelectionMode, type PerformanceGroupStatusEvent, type Projection, type PubApiOptions, type RealtimeSink, type ResumedHoldResult, SEATING_CHART_CALLBACK_PROPS, SEATING_CHART_HANDLE_METHODS, SEATING_CHART_IDENTITY_PROPS, SEATING_CHART_VALUE_PROPS, type SaleState, type SeasonAccessTokenProvider, SeasonApiError, type SeasonAudience, type SeasonAvailability, type SeasonBestAvailableOptions, type SeasonCategoryPrice, type SeasonCheckoutHandoff, type SeasonCheckoutMode, type SeasonCheckoutRequest, type SeasonCheckoutSeat, type SeasonCheckoutSession, type SeasonDescriptor, type SeasonOperation, type SeasonOperationState, type SeasonPackagePrices, SeasonPicker, type SeasonPickerOpenOptions, type SeasonPickerOptions, type SeasonPriceType, type SeasonPrices, type SeasonPublicRefusalReason, type SeasonPublicSession, SeasonPublicSessionRefused, SeasonRecoveryTimeoutError, type SeasonRenewalIntent, type SeasonSeatPriceTypes, type SeasonStatusEvent, SeatPicker, type SeatPickerBestAvailableOptions, type SeatPickerBuyerView, type SeatPickerBuyerViewOptions, type SeatPickerOptions, type SeatPickerPrewarmOptions, type SeatPickerPricing, type SeatPickerTheme, type SeatPickerWebMcpOptions, SeatingChart, type SeatingChartCallbackProp, type SeatingChartCallbacks, type SeatingChartHandle, type SeatingChartHandleMethod, type SeatingChartIdentityProp, type SeatingChartOptions, type SeatingChartSeatViewInfo, type SeatingChartValueProp, type SeatingChartValues, type SelectedObjectUnavailableEvent, type SelectedSeat, type StatusChange, type SubscribeTicket, ThemeMode, type TicketKeyDetail, type TicketOfferAvailability, type TicketOfferPrice, type TicketOfferSummary, attachPickerFrame, bindSeatingChartHandle, buildSeatingChartOptions, createBuyerAccessContext, createControllerSink, parseTicketOfferAvailability, prewarmSeatPicker, shortOperationReference, ticketOfferPrices };
|