@scopetickets/checkout 0.4.2 → 0.6.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/dist/index.d.cts CHANGED
@@ -94,10 +94,17 @@ export declare function attributeCartItems(requested: readonly RequestedItem[],
94
94
 
95
95
  /**
96
96
  * A cart item with the user type it was BOUGHT FOR attached — see `attributeCartItems`,
97
- * which is the only thing that can attach it.
97
+ * which is the only thing that can attach it — and the ticket it is a head of.
98
98
  */
99
99
  export declare type AttributedCartItem = CartItem & {
100
100
  readonly userType?: string;
101
+ /**
102
+ * THE TICKET (PRODUCT) THE LINE IS A HEAD OF, which the wire's own line does not carry:
103
+ * `CartItem` names itself and holds a numeric `ItemId`, and a name is not a key. The fill
104
+ * knows it — every head it asks for is of one product — so it is stamped there. Absent on
105
+ * a host's cart, where nothing was asked for and no product was read.
106
+ */
107
+ readonly productKey?: string;
101
108
  };
102
109
 
103
110
  export declare const AUTH_CARDS: Record<AuthCardId, AuthCard>;
@@ -202,11 +209,37 @@ declare type AuthState =
202
209
  * nothing is gated — `ticketGate` says why — so the form backs out to its ticket exactly as
203
210
  * it did before there was a gate. `BookingIsland` always has one to pass.
204
211
  */
205
- export declare function backFrom(screen: BookingScreen, booking?: Booking | null): BookingScreen | null;
212
+ export declare function backFrom(screen: BookingScreen, booking?: TicketRun | null): BookingScreen | null;
213
+
214
+ /**
215
+ * WHAT A SESSION COSTS AT ITS CHEAPEST — the "From" a timeslot row draws.
216
+ *
217
+ * NOTHING ON THE WIRE STATES THIS, which is the whole reason it is computed. `EventTimeslot`
218
+ * is two times, a total and a remaining — no money at all — so a session's price is reached
219
+ * through the TICKET that sells it, and the discount bands hang off that ticket too. No
220
+ * endpoint states what a band costs.
221
+ *
222
+ * A DAY'S SESSIONS ARE NOT ONE PRICE. Measured on sandbox 2026-09-16, TwinkleTown's rink:
223
+ * the day's slots are split across two products, disjointly — Off-Peak holds 11:00, 13:00
224
+ * and 14:00 and Peak holds 15:00 to 20:00. Nine sessions, two prices, no overlap. So this
225
+ * takes a SESSION and not a day: a figure computed per day would be wrong for two thirds of
226
+ * that column.
227
+ *
228
+ * `SalePrice` IS THE BASIS, and it is already this package's: `ticketChoice` sorts on it to
229
+ * mean "cheapest first". It is the all-in, `BasePrice + Fees`, which is the right number to
230
+ * show first because it is the one that must not grow at the checkout.
231
+ */
232
+ declare type BandFields = Pick<UserType, 'Name' | 'DiscountNominal' | 'DiscountRate' | 'NumberOfPeople'>;
206
233
 
207
234
  /**
208
235
  * ONE BAND'S UNIT PRICE, or null where it cannot be stated.
209
236
  *
237
+ * A UNIT IS ONE OF THE BAND, NOT ONE PERSON. A "Family of 4" is one ticket admitting four,
238
+ * and the platform prices it off four bases less the band's nominal (`CalculateFees`
239
+ * multiplies `base_price` by `number_of_people`). Read as one person, production's Early
240
+ * Bird Family of 4 — 2128 less 1600 — was quoted at 528, and a Family of 5 on Half-Price
241
+ * at nothing at all.
242
+ *
210
243
  * NULL IS FOR `DiscountRate`, AND IT IS A REFUSAL RATHER THAN A GAP. The field's UNIT is
211
244
  * not settled: read as a FRACTION, `50` gives a negative price; read as a PERCENTAGE, a
212
245
  * value of `0.5` is a rounding error rather than a half-price ticket. Every rate observed on
@@ -215,12 +248,15 @@ export declare function backFrom(screen: BookingScreen, booking?: Booking | null
215
248
  *
216
249
  * A wrong price is worse than no price, so a non-zero rate draws no From at all.
217
250
  *
218
- * THE NOMINAL COMES OFF THE ALL-IN, which is the other unsettled rule: identical to
219
- * `(BasePrice - nominal) + Fees` because `Fees` is flat on the wire, but NOT identical to
220
- * re-rating the fee on the discounted base. Fees are 12.0% of base on both of TwinkleTown's
221
- * products, so a proportional rule is plausible and nothing says which it is.
251
+ * THE NOMINAL COMES OFF THE ALL-IN, AND THAT IS A CEILING, NOT THE CHARGE. The platform
252
+ * re-rates the fee on the discounted base, from broker and Scope rates, nominals and a
253
+ * minimum that the wire does not carry — so no arithmetic over `SalePrice` reaches the
254
+ * exact figure. Off the all-in it is never BELOW it: a sandbox Off-Peak Family of 3 reads
255
+ * 5820 here and the cart charges 5712, a Child 1990 against 1960, and where the fee is at
256
+ * its minimum (Half-Price) the two agree. A From that undershoots is the one that grows at
257
+ * the checkout.
222
258
  */
223
- export declare function bandPrice(salePrice: number, band: Pick<UserType, 'DiscountNominal' | 'DiscountRate'>): number | null;
259
+ export declare function bandPrice(salePrice: number, band: Pick<UserType, 'DiscountNominal' | 'DiscountRate' | 'NumberOfPeople'>): number | null;
224
260
 
225
261
  /** One ticket, as the platform holds it. */
226
262
  export declare type BookedTicket = {
@@ -313,8 +349,8 @@ export declare const BOOKING_COPY: {
313
349
  * SENDING A COPY OF A TICKET, which this widget CAN do now — `SendSingleEmail` is the
314
350
  * platform's, and the quick action on a ticket's own card is the way to it.
315
351
  *
316
- * The wallet badge still has no entry here, and that is the point: it is Apple's mark and
317
- * the host supplies the whole node. See `BookingIslandProps.walletBadge`.
352
+ * The wallet badge has no entry here, and that is the point: its words are Apple's, drawn
353
+ * from Apple's own file. See `AppleWalletBadge`.
318
354
  */
319
355
  readonly sendTicketLines: readonly ["Send", "Ticket"];
320
356
  readonly sendTicket: "Send Ticket";
@@ -381,11 +417,25 @@ export declare type BookingGateway = {
381
417
  * call takes and is `0` where the list did not answer for the ticket.
382
418
  */
383
419
  readonly sendTicket: (attendeeTicketId: number, email: string) => Promise<boolean>;
420
+ /**
421
+ * WHERE ONE TICKET'S APPLE WALLET PASS IS — a URL, not a read: the platform serves the
422
+ * `.pkpass` to whoever opens it, with no authorization, so the device fetches it itself and
423
+ * Wallet takes it from there. By the ticket's key, which is the wallet slot's.
424
+ */
425
+ readonly passUrl: (ticketKey: string) => string;
384
426
  };
385
427
 
386
428
  /**
387
429
  * MY BOOKING — the last face of the widget, and the only one that is not a purchase.
388
430
  *
431
+ * ── IT DRAWS CORE'S CARDS AND DECIDES NOTHING ────────────────────────────────
432
+ *
433
+ * Which card is showing, what it says, which face its hero wears, which buttons it carries
434
+ * and when each goes quiet, and what every press means are all `createBookingStore` and
435
+ * `bookingView`'s — the same two the native island draws from. What is left here is what
436
+ * only a browser has: the host's wallet node, the transition between cards, and turning a
437
+ * code's document into an `<img>`.
438
+ *
389
439
  * ── FOUR CARDS AND ONE MOUNT ─────────────────────────────────────────────────
390
440
  *
391
441
  * The booking, every code, one ticket, and who that ticket is for. They are one component
@@ -393,12 +443,6 @@ export declare type BookingGateway = {
393
443
  * surface morphs because the `contentKey` changed underneath ONE host. Four components would
394
444
  * make every move between them a remount, and a remount has nothing to transition from.
395
445
  *
396
- * ── IT IS NOT A WALK ─────────────────────────────────────────────────────────
397
- *
398
- * Nothing here is a step. There is no order to complete, nothing is excused, and no card
399
- * gates the one after it — so there is no `PurchaseStep`, no preflight and no `at` index.
400
- * What there is instead is a TREE, and `backFrom` is the whole of it.
401
- *
402
446
  * ── AND IT IS REACHABLE TWICE ────────────────────────────────────────────────
403
447
  *
404
448
  * `ScopeTicketsCheckout` hands over to it when a purchase finishes, and a host can mount it
@@ -443,21 +487,15 @@ export declare type BookingIslandProps = {
443
487
  */
444
488
  readonly seed?: BookingRecord;
445
489
  /**
446
- * THE WALLET BADGE, AS THE HOST'S OWN NODE — not a press this widget paints a button for.
447
- *
448
- * ── WHY THIS ONE IS A `ReactNode` WHERE EVERY OTHER CONTROL HERE IS A CALLBACK ──
449
- *
450
- * "Add to Apple Wallet" is APPLE'S MARK, and its size, corner, ground, lock-up and
451
- * wording are theirs to specify and ours to reproduce exactly or not at all. Painting an
452
- * approximation of it in this design system's tokens — which is what a callback would
453
- * oblige — produces a black pill with the right words and none of the right anything
454
- * else, sitting on a card where every other control is ours.
490
+ * THE WALLET BADGE, IN PLACE OF THE ONE THIS WIDGET DRAWS.
455
491
  *
456
- * There is no `.pkpass` endpoint on the platform either, so the press has nothing here to
457
- * do. Both halves are the host's, so the whole control is: it is given the slot the design
458
- * draws it in, centred above the rule, and this file neither paints it nor presses it.
492
+ * ABSENT, the ticket's card carries Apple's own badge linked to its pass — on a browser
493
+ * that can add one (`canAddApplePass`), and nowhere else. "Add to Apple Wallet" is Apple's
494
+ * mark, so what is drawn is Apple's file, never an approximation in this design system's
495
+ * tokens: see `AppleWalletBadge`.
459
496
  *
460
- * ABSENT DRAWS NOTHING, which is what the platform can honour today.
497
+ * A host that wants something else there — another wallet as well, or instructions for a
498
+ * buyer on the wrong device — answers with its own node, and `() => null` draws nothing.
461
499
  */
462
500
  readonly walletBadge?: (ticketKey: string) => ReactNode;
463
501
  readonly initialPresentation?: 'pill' | 'card';
@@ -633,8 +671,6 @@ export declare type CardAction = {
633
671
  * with [mark] • 1123", as the design draws it.
634
672
  */
635
673
  readonly label: string;
636
- /** What the button DOES, for the few that do anything. */
637
- readonly onPress?: () => void;
638
674
  /**
639
675
  * THE DETOUR THIS BUTTON OPENS — the other half of `PurchaseStep.detourFrom`, which
640
676
  * says which card a step hangs off but not what opens it.
@@ -709,6 +745,19 @@ export declare type CardAction = {
709
745
  * IS what Skip does.
710
746
  */
711
747
  readonly rates?: boolean;
748
+ /**
749
+ * THE PROMO CARD'S ONE BUTTON, AND WHICH OF ITS TWO WORDS IT IS — Apply sends what is
750
+ * typed, Remove takes the order's code off. Declared rather than handled, like `pays`:
751
+ * the card is a detour, and a button with no meaning of its own on a detour is its way
752
+ * back — which is how Apply came to close the card and send nothing.
753
+ */
754
+ readonly promo?: 'APPLY' | 'REMOVE';
755
+ /** Add Password's "Show Entered Text" — the card's own toggle, and it moves nothing. */
756
+ readonly reveals?: boolean;
757
+ /** Verify Email's Re-send: another one-time code to the same address. */
758
+ readonly resends?: boolean;
759
+ /** The Processing card's Cancel, while a provider's own journey has the payment. */
760
+ readonly cancels?: boolean;
712
761
  };
713
762
 
714
763
  /** Marks content that should survive a step change rather than fade through itself. */
@@ -863,7 +912,7 @@ export declare type CartLinesProps = {
863
912
  * The cart screen as the PROPS that turn a card into it — the hero and its badge are the
864
913
  * caller's, because the avatar is the buyer's and this file draws none.
865
914
  */
866
- export declare function cartViewProps(input: ReactNode, hold: EscrowHold, onBack: () => void): {
915
+ export declare function cartViewProps(input: ReactNode, hold: HoldClock, onBack: () => void): {
867
916
  variant: "cart";
868
917
  expanded: boolean;
869
918
  onToggle: () => void;
@@ -879,8 +928,76 @@ export declare function cartViewProps(input: ReactNode, hold: EscrowHold, onBack
879
928
  }[];
880
929
  };
881
930
 
931
+ /**
932
+ * WHAT A CHARGE WAS MADE WITH — every way of paying the frames and the sheets take, in
933
+ * the frames' spelling. Held on the watch the charge arms, because by the time anyone
934
+ * reads the order the thing that knew — a frame's status, a sheet opening — has moved
935
+ * on, and a renderer's own record of the choice can land a render behind the charge.
936
+ */
937
+ declare type ChargeMethod = 'card' | 'revolut_pay' | 'apple_pay' | 'google_pay';
938
+
939
+ /** Bumped only by a rename or a removal — see the analytics guide's versioning. */
940
+ declare const CHECKOUT_EVENT_SCHEMA = 1;
941
+
942
+ /** One thing that happened, and where. The public shape a host's `onEvent` is handed. */
943
+ export declare type CheckoutEvent = CheckoutEventBody & {
944
+ readonly context: EventContext;
945
+ };
946
+
947
+ declare type CheckoutEventBody = {
948
+ readonly name: 'view_item';
949
+ readonly items: readonly EventItem[];
950
+ } | {
951
+ readonly name: 'set_party';
952
+ readonly party_size: number;
953
+ readonly user_type_count: number;
954
+ } | {
955
+ readonly name: 'select_date';
956
+ readonly date: string;
957
+ readonly days_ahead?: number;
958
+ } | {
959
+ readonly name: 'select_time';
960
+ readonly time: string;
961
+ } | ({
962
+ readonly name: 'add_to_cart';
963
+ } & Priced) | ({
964
+ readonly name: 'remove_from_cart';
965
+ } & Priced) | {
966
+ readonly name: 'availability_refused';
967
+ readonly notice_key: NoticeId;
968
+ } | ({
969
+ readonly name: 'begin_checkout';
970
+ } & Priced) | {
971
+ readonly name: 'login';
972
+ readonly method: 'passkey' | 'password';
973
+ } | {
974
+ readonly name: 'checkout_as_guest';
975
+ } | {
976
+ readonly name: 'sign_up';
977
+ readonly method: 'email';
978
+ } | ({
979
+ readonly name: 'add_payment_info';
980
+ readonly payment_type?: PaymentType;
981
+ } & Priced) | ({
982
+ readonly name: 'purchase';
983
+ readonly transaction_id: string;
984
+ } & Priced) | {
985
+ readonly name: 'payment_failed';
986
+ readonly attempt: number;
987
+ } | {
988
+ readonly name: 'payment_unconfirmed';
989
+ readonly attempt: number;
990
+ } | {
991
+ readonly name: 'hold_expired';
992
+ } | {
993
+ readonly name: 'checkout_abandoned';
994
+ readonly step: PurchaseStepId;
995
+ };
996
+
997
+ export declare type CheckoutEventName = CheckoutEventBody['name'];
998
+
882
999
  /** The island, as the design draws it: a pill that becomes a card. */
883
- export declare function CheckoutIsland({ expanded, contentKey, onToggle, avatar, title, subtitle, pillCopy, input, bay, bayVisible, bayRows, variant, sealed, closable, actionLabel, actions, footer, bayActions, dismiss, dismissIcon, dismissLabel, headerLead, headerTrail, mode, align, placement, journeyFullscreen, }: CheckoutIslandProps): react_jsx_runtime.JSX.Element;
1000
+ export declare function CheckoutIsland({ expanded, contentKey, onToggle, avatar, title, subtitle, pillCopy, input, bay, bayVisible, bayRows, variant, sealed, typed, closable, actionLabel, actionBusy, actions, footer, bayActions, dismiss, dismissIcon, dismissLabel, headerLead, headerTrail, mode, align, placement, journeyFullscreen, }: CheckoutIslandProps): react_jsx_runtime.JSX.Element;
884
1001
 
885
1002
  export declare type CheckoutIslandProps = {
886
1003
  /** Collapsed is the pill; expanded is the card. */
@@ -952,6 +1069,8 @@ export declare type CheckoutIslandProps = {
952
1069
  * "input is blocked entirely; there is no way out and nothing to collapse to".
953
1070
  */
954
1071
  readonly sealed?: boolean;
1072
+ /** The card is typed into, and drawn tall — see `IslandCardProps.typed`. */
1073
+ readonly typed?: boolean;
955
1074
  /**
956
1075
  * WHETHER THE HEADER DRAWS A WAY OUT. Defaults to true.
957
1076
  *
@@ -963,6 +1082,8 @@ export declare type CheckoutIslandProps = {
963
1082
  readonly closable?: boolean;
964
1083
  /** The pill's action. */
965
1084
  readonly actionLabel: ReactNode;
1085
+ /** The pill's action is opening onto a card whose data is still on its way. */
1086
+ readonly actionBusy?: boolean;
966
1087
  /**
967
1088
  * THE BUTTONS, SPLIT BY THE BAY. `actions` is what the card plane draws; when the
968
1089
  * payment form is visible its card rides the form in the bay, and the card that acts
@@ -1010,6 +1131,13 @@ export declare type CheckoutProps = {
1010
1131
  * somebody's checkout with no idea whose.
1011
1132
  */
1012
1133
  readonly appKey: string;
1134
+ /**
1135
+ * THE APP'S PUBLIC `AppKey` — 32 hex characters, no hyphens — which says whose checkout
1136
+ * this is in what the widget publishes. NOT `appKey` above: despite the name, that one
1137
+ * is the `AppApiKey`, the Bearer token, and never leaves the page. A value that is not
1138
+ * an AppKey is dropped with a console warning; checkout carries on either way.
1139
+ */
1140
+ readonly applicationKey?: string;
1013
1141
  /**
1014
1142
  * WHICH PLATFORM, and nothing else — the app key above is what authenticates. Optional
1015
1143
  * in every field: absent means production.
@@ -1043,7 +1171,10 @@ export declare type CheckoutProps = {
1043
1171
  * unnamed line, which is what an event with no discount types wants.
1044
1172
  */
1045
1173
  readonly userTypes?: readonly PartyUserTypeOption[];
1046
- /** The ticket's ceiling, across the whole party. */
1174
+ /**
1175
+ * The ticket's ceiling, across the whole party, where the run's tickets state none —
1176
+ * `DEFAULT_PARTY_CEILING` unless given.
1177
+ */
1047
1178
  readonly maxParty?: number;
1048
1179
  /**
1049
1180
  * A CART THE HOST ALREADY OPENED — adopted, never duplicated.
@@ -1131,6 +1262,54 @@ export declare type CheckoutProps = {
1131
1262
  * `simulatedAccountGateway`.
1132
1263
  */
1133
1264
  readonly simulate?: boolean;
1265
+ /**
1266
+ * EVERY NOTICE THE BUYER IS SHOWN, as a report — keys and flags only, never the buyer's
1267
+ * name, email, phone, address or card, and never the notice's subtitle. See
1268
+ * `NoticeReport`. `severity` separates the funnel's question from the fault tracker's:
1269
+ * a WARNING is inventory doing what inventory does, a FAILURE is a fault. It fires
1270
+ * whether or not `errorReporting` is on.
1271
+ */
1272
+ readonly onNotice?: (report: NoticeReport) => void;
1273
+ /**
1274
+ * WHAT THE BUYER DID, AS IT HAPPENS — the party chosen, the cart filled, the payment
1275
+ * attempted, the sale — each one a `CheckoutEvent`: keys, flags and the cart's money,
1276
+ * never the buyer. On the same terms as `onNotice`: synchronous, in order, after the
1277
+ * change is drawn. A callback that throws is caught and checkout carries on. It fires
1278
+ * whatever the page's consent, because nothing in it is personal; what the host's own
1279
+ * tags do with it is the host's consent to decide. `@scopetickets/checkout/analytics`
1280
+ * turns one into a `dataLayer` push.
1281
+ */
1282
+ readonly onEvent?: (event: CheckoutEvent) => void;
1283
+ /**
1284
+ * ASK THE WIDGET TO GO, by changing this number — a host opening a second booking on the same
1285
+ * page, where one checkout at a time is the rule. Each change after the first render is one
1286
+ * request; the value itself means nothing.
1287
+ *
1288
+ * WHAT IT DOES IS THE CROSS'S OWN QUESTION, NEVER AN OVERRULING. With a cart held, the widget
1289
+ * opens on the abandon card: Confirm gives the cart back (`checkout_abandoned` on `onEvent`)
1290
+ * and the host may then dismiss it; the buyer's way back keeps the order and nothing is said,
1291
+ * so the other booking waits. With nothing held it does nothing — there is nothing to give
1292
+ * back, and dismissing is the host's own unmount. Never once money has moved or is moving.
1293
+ */
1294
+ readonly leaveSignal?: number;
1295
+ /**
1296
+ * ASK THE WIDGET TO OPEN, by changing this number — the page's own Book Now, pressed while the
1297
+ * widget rests as its pill. Each change after the first render is one request; the value
1298
+ * itself means nothing, exactly as for `leaveSignal`.
1299
+ *
1300
+ * IT OPENS AS A PRESS ON THE PILL DOES, onto wherever the buyer was. Already open, it does
1301
+ * nothing: a second press of the page's button must not walk a buyer back or close the card.
1302
+ * So a page can both rest the widget as a pill from load (`initialPresentation="pill"`) and
1303
+ * open it from a button of its own.
1304
+ */
1305
+ readonly openSignal?: number;
1306
+ /**
1307
+ * WHETHER FAILURES ARE REPORTED TO SCOPE. On by default, because a reporting scheme each
1308
+ * integration has to remember to switch on reports nothing — and the failures worth
1309
+ * knowing about are the ones on sites nobody is watching. Warnings ride along as
1310
+ * breadcrumbs on the next failure; they are never events of their own.
1311
+ */
1312
+ readonly errorReporting?: boolean;
1134
1313
  /** Called with the completed intent when the last step is answered. */
1135
1314
  readonly onCommit?: (intent: OrderIntent) => void;
1136
1315
  /**
@@ -1185,8 +1364,27 @@ export declare type CheckoutProps = {
1185
1364
  *
1186
1365
  * THE HOST'S TO SUPPLY, like `openingLabel` and for the same reason: which strand a page
1187
1366
  * sells is something the page knows and the widget cannot infer.
1367
+ *
1368
+ * NAMED, THEY BECOME A FILTER. Written as `{ key, label }`, two or more inventories draw a
1369
+ * checkbox each under Select Day, so a buyer can show or hide an inventory's days and
1370
+ * sessions. The platform stores an inventory's name and does not send it, so the label is
1371
+ * the host's too — see `inventoryFilterOf`. Bare keys sell as they always did.
1188
1372
  */
1189
- readonly inventories?: readonly string[];
1373
+ readonly inventories?: readonly InventoryChoice[];
1374
+ /**
1375
+ * HOW THE NAMED INVENTORIES ARE CHOSEN BETWEEN — `checkbox`, the default, shows any of
1376
+ * them at once, and `radio` shows exactly one: the first the host listed, until the buyer
1377
+ * picks another. The calendar, the sessions and the cart follow whichever is chosen.
1378
+ * Nothing is drawn, and this means nothing, where `inventories` draws no filter.
1379
+ */
1380
+ readonly inventoryFilter?: 'checkbox' | 'radio';
1381
+ /**
1382
+ * HOW SELECT TIME HEADS THE DAY'S SESSIONS. `PART_OF_DAY`, the default, cuts them into
1383
+ * the island's eight bands; `PRODUCT` heads each product's sessions with its name — "Peak",
1384
+ * "Off-Peak" — for a run whose products are what a buyer is choosing between; `NONE` is
1385
+ * one list. The order is chronological whichever is chosen. See `TimeslotGrouping`.
1386
+ */
1387
+ readonly timeslotGrouping?: TimeslotGrouping;
1190
1388
  readonly mode?: IslandMode;
1191
1389
  /**
1192
1390
  * Where in its reservation the island sits — a corner, the middle of an edge, or the
@@ -1282,6 +1480,21 @@ declare type CheckoutSource = {
1282
1480
  readonly orgKey?: string;
1283
1481
  };
1284
1482
 
1483
+ /**
1484
+ * ONE TICKET'S CODE AS THIS COMPONENT DRAWS IT — core's `TicketCode`, with the document
1485
+ * already made into something an `<img>` can take (`ticketCodeDataUrl`). The picture is
1486
+ * never the SVG inlined: it arrived over the wire, and inside an `<img>` it is a picture and
1487
+ * nothing else.
1488
+ */
1489
+ declare type CodeState = {
1490
+ readonly status: 'LOADING';
1491
+ } | {
1492
+ readonly status: 'DRAWN';
1493
+ readonly src: string;
1494
+ } | {
1495
+ readonly status: 'ERROR';
1496
+ };
1497
+
1285
1498
  export declare function ContentFlag({ tone, title }: ContentFlagProps): react_jsx_runtime.JSX.Element;
1286
1499
 
1287
1500
  export declare type ContentFlagProps = {
@@ -1393,11 +1606,17 @@ export declare type CounterRingProps = {
1393
1606
  export declare type DatePickerCellAccessory = 'NONE' | 'LINE';
1394
1607
 
1395
1608
  /** Select Day — the day picker's content. */
1396
- export declare function DayPicker({ series, today, selectedDay, onSelectDay, remaining, accessory, onVisibleMonthChange, }: DayPickerProps): react_jsx_runtime.JSX.Element | null;
1609
+ export declare function DayPicker({ series, offered, today, selectedDay, onSelectDay, remaining, accessory, onVisibleMonthChange, }: DayPickerProps): react_jsx_runtime.JSX.Element | null;
1397
1610
 
1398
1611
  export declare type DayPickerProps = {
1399
1612
  /** The run being picked from. Every month it touches is drawn. */
1400
1613
  readonly series: CalendarSeries;
1614
+ /**
1615
+ * THE DAYS STILL ON OFFER, where the inventory filter has hidden some — absent is all of
1616
+ * `series`. The weeks stay the whole run's, so ticking a box greys days where they stand
1617
+ * rather than moving the month the buyer is reading; see `offeredSeries`.
1618
+ */
1619
+ readonly offered?: CalendarSeries;
1401
1620
  /**
1402
1621
  * `YYYY-MM-DD` in the VENUE's local day, never the device's. Passed in rather than read
1403
1622
  * from a clock — see `MonthGridOptions`.
@@ -1444,6 +1663,54 @@ export declare type EscrowHold = {
1444
1663
  readonly durationSeconds: number;
1445
1664
  };
1446
1665
 
1666
+ /** The cart's three shares, major units — `value` is the organisation's. */
1667
+ export declare type EventAmounts = {
1668
+ readonly total: number;
1669
+ readonly organisation: number;
1670
+ readonly broker: number;
1671
+ };
1672
+
1673
+ /** What every event carries, nested under `scope` in a `dataLayer`. */
1674
+ export declare type EventContext = {
1675
+ readonly schema_version: typeof CHECKOUT_EVENT_SCHEMA;
1676
+ /** Unique per event — the dedupe key a pixel and its server twin share. */
1677
+ readonly event_id: string;
1678
+ /** Unique per mount — stitches before the cart to after it, and two widgets apart. */
1679
+ readonly mount_id: string;
1680
+ /** The notices' join key, minted per cart, so present from the cart onward only. */
1681
+ readonly checkout_session_id?: string;
1682
+ readonly integration: 'widget';
1683
+ readonly platform: 'web' | 'native';
1684
+ readonly sdk_version: string;
1685
+ /** The app's public `AppKey`. Never the Bearer — see `applicationKeyFrom`. */
1686
+ readonly application_key?: string;
1687
+ /** The run, where there is one. Never an event's key. */
1688
+ readonly series_key?: string;
1689
+ readonly series_name?: string;
1690
+ /** The occurrence: chosen once a day is answered, or the one-off event from the start. */
1691
+ readonly event_key?: string;
1692
+ readonly inventory_filter: 'all' | 'named';
1693
+ /** Comma-joined and sorted, and absent rather than past GA's limit. */
1694
+ readonly inventory_keys?: string;
1695
+ readonly currency?: string;
1696
+ /** From the cart onward, and only where the currency is known. */
1697
+ readonly amounts?: EventAmounts;
1698
+ };
1699
+
1700
+ /** One line of what is bought, aggregated by ticket × user type. */
1701
+ export declare type EventItem = {
1702
+ /** The ticket's key — never its name, which is not stable. */
1703
+ readonly item_id: string;
1704
+ readonly item_name?: string;
1705
+ /** The user type the heads were bought for. */
1706
+ readonly item_variant?: string;
1707
+ /** The run the ticket belongs to. */
1708
+ readonly item_category?: string;
1709
+ /** Per head, the organisation's share, in major units. Absent where the currency is. */
1710
+ readonly price?: number;
1711
+ readonly quantity: number;
1712
+ };
1713
+
1447
1714
  /** @internal */
1448
1715
  declare interface EventTimeslot {
1449
1716
  LocalStartTime: string;
@@ -1515,7 +1782,6 @@ export declare type FollowListProps = {
1515
1782
  readonly onToggle: (key: string) => void;
1516
1783
  };
1517
1784
 
1518
- /** Money, and how it is written. */
1519
1785
  /** `1234, 'EUR'` → `"€12.34"`. `1200, 'JPY'` → `"¥1,200"`. */
1520
1786
  export declare function formatMoney(minorUnits: number, currency: string): string;
1521
1787
 
@@ -1544,7 +1810,7 @@ declare type GlyphBadge = {
1544
1810
  };
1545
1811
 
1546
1812
  /** A glyph from the icon set, by name; each renderer decides how to draw it. */
1547
- declare type GlyphId = 'ASTERISK' | 'BELL' | 'CALENDAR' | 'CALLOUT_WITH_HEART' | 'CAMERA' | 'CLOCK_WITH_SEGMENT_SOLID' | 'CLOUD_WITH_ARROW_UP_IN' | 'EYE_TO_CENTER' | 'EYE_TO_CENTER_WITH_STRIKETHROUGH' | 'KEYHOLE_IN_SQUARE' | 'MINUS_MARK' | 'PAPER_PLANE_TO_TOP_LEFT' | 'PASSKEY' | 'PAYMENT_CARD' | 'PERCENT_IN_STICKER' | 'PEOPLE_TWO' | 'PHONE_TO_RIGHT' | 'PLUS_IN_CIRCLE' | 'PLUS_MARK' | 'SHOPPING_CART' | 'TEXT_CURSOR_WITH_RECTANGLE' | 'TEXT_CURSOR_WITH_REDACTED_TEXT';
1813
+ declare type GlyphId = 'ASTERISK' | 'BELL' | 'CALENDAR' | 'CALLOUT_WITH_HEART' | 'CAMERA' | 'CLOCK_WITH_SEGMENT_SOLID' | 'CLOUD_WITH_ARROW_UP_IN' | 'EYE_TO_CENTER' | 'EYE_TO_CENTER_WITH_STRIKETHROUGH' | 'KEYHOLE_IN_SQUARE' | 'MINUS_MARK' | 'PAPER_AND_PENCIL' | 'PAPER_PLANE_TO_TOP_LEFT' | 'PAPER_PLANE_TO_TOP_RIGHT' | 'PASSKEY' | 'PAYMENT_CARD' | 'PERCENT_IN_STICKER' | 'PEOPLE_TWO' | 'PHONE_TO_RIGHT' | 'PLUS_IN_CIRCLE' | 'PLUS_MARK' | 'QR_CODE' | 'SHOPPING_CART' | 'TEXT_CURSOR_WITH_RECTANGLE' | 'TEXT_CURSOR_WITH_REDACTED_TEXT';
1548
1814
 
1549
1815
  /**
1550
1816
  * THE DISTINCT TYPES, in the order the platform first names each — the organiser's own,
@@ -1570,6 +1836,22 @@ export declare const HOLD_VIEW: {
1570
1836
  readonly close: "Close";
1571
1837
  };
1572
1838
 
1839
+ /**
1840
+ * THE HOLD AS A DEADLINE — when it ends, by the device's clock, and the whole window.
1841
+ *
1842
+ * `EscrowHold` IS A READING, true only at the instant it is taken; this is what it is a
1843
+ * reading OF. The island holds the deadline and nothing that changes while it runs, so
1844
+ * holding a cart does not redraw the island: the two things that show the time — the ring
1845
+ * and the words — each read the clock themselves (`holdAt`), and the island learns of the
1846
+ * hold again only when it ends.
1847
+ */
1848
+ declare type HoldClock = {
1849
+ /** When the hold ends, in milliseconds since the epoch — `Date.now()`'s terms. */
1850
+ readonly endsAt: number;
1851
+ /** The whole window, in seconds, which is what makes the ring a FRACTION. */
1852
+ readonly durationSeconds: number;
1853
+ };
1854
+
1573
1855
  /**
1574
1856
  * WHETHER THE EDIT CARD'S SAVE MAY GO.
1575
1857
  *
@@ -1636,6 +1918,15 @@ declare type Inline = {
1636
1918
  } | {
1637
1919
  readonly kind: 'MARK';
1638
1920
  readonly mark: BrandMarkId;
1921
+ }
1922
+ /**
1923
+ * A HOLD'S CLOCK, IN THE WORDS AROUND IT — `mm:ss`, read off the device's clock by the
1924
+ * renderer as it draws, so a sentence that counts down is not a card redrawn every second.
1925
+ * See `holdClockText`, which is the one way it is written.
1926
+ */
1927
+ | {
1928
+ readonly kind: 'HOLD_CLOCK';
1929
+ readonly hold: HoldClock;
1639
1930
  };
1640
1931
 
1641
1932
  /** What the platform needs about the person paying. */
@@ -1657,6 +1948,18 @@ export declare type IntentComposition = Readonly<Record<string, number>>;
1657
1948
  /** Whether a composition names anybody at all. */
1658
1949
  export declare function intentHasParty(composition: IntentComposition | undefined): boolean;
1659
1950
 
1951
+ /**
1952
+ * WHAT A HOST MAY LIST — a bare key, as every mount wrote before the filter, or a key
1953
+ * with the word to draw beside its checkbox.
1954
+ */
1955
+ export declare type InventoryChoice = string | InventoryOption;
1956
+
1957
+ /** One inventory offered in the filter: the key the platform knows it by, and its word. */
1958
+ export declare type InventoryOption = {
1959
+ readonly key: string;
1960
+ readonly label: string;
1961
+ };
1962
+
1660
1963
  /**
1661
1964
  * WHETHER A NUMBER IS ONE OF THE FIVE. The guard the wire is behind: `FeedbackRating`
1662
1965
  * narrows what this package passes around, and this is the only thing that can make one
@@ -1700,7 +2003,7 @@ export declare type IslandActionRole = 'action' | 'primary' | 'secondary';
1700
2003
  */
1701
2004
  export declare type IslandAlignment = 'top-left' | 'top' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
1702
2005
 
1703
- export declare function IslandCard({ avatar, title, subtitle, variant, sealed, input, actions, footer, }: IslandCardProps): react_jsx_runtime.JSX.Element;
2006
+ export declare function IslandCard({ avatar, title, subtitle, variant, sealed, typed, input, actions, footer, }: IslandCardProps): react_jsx_runtime.JSX.Element;
1704
2007
 
1705
2008
  export declare type IslandCardProps = {
1706
2009
  /** WHICH CARD THIS IS — Figma's own variant on `CtaCard`. */
@@ -1742,6 +2045,15 @@ export declare type IslandCardProps = {
1742
2045
  * one is short, so the surface morphs between two heights instead of snapping.
1743
2046
  */
1744
2047
  readonly sealed?: boolean;
2048
+ /**
2049
+ * THE CARD IS TYPED INTO, so it is drawn at the ceiling from the frame it arrives — see
2050
+ * `[data-typed]` in `island.css`. The caller answers it with core's `takesTyping`; which
2051
+ * blocks raise a keyboard is the block set's question, not this file's.
2052
+ *
2053
+ * PER CARD, for `sealed`'s reason: the leaving card keeps the height it was laid out
2054
+ * with and only the arriving one is tall, so the surface morphs between the two.
2055
+ */
2056
+ readonly typed?: boolean;
1745
2057
  /**
1746
2058
  * The step's own controls — `Input` in the design, between the hero and the buttons.
1747
2059
  */
@@ -1951,7 +2263,7 @@ export declare type IslandHostProps = {
1951
2263
  export declare type IslandMode = 'light' | 'dark' | 'system';
1952
2264
 
1953
2265
  /** The collapsed island — Figma `CtaCollapsedGetTicket`. */
1954
- export declare function IslandPill({ avatar, subtitle, title, actionLabel, onAction }: IslandPillProps): react_jsx_runtime.JSX.Element;
2266
+ export declare function IslandPill({ avatar, subtitle, title, actionLabel, onAction, busy, }: IslandPillProps): react_jsx_runtime.JSX.Element;
1955
2267
 
1956
2268
  export declare type IslandPillProps = {
1957
2269
  /**
@@ -1969,6 +2281,12 @@ export declare type IslandPillProps = {
1969
2281
  /** The label on the action. `text/bold/md`, e.g. Figma's "Get Ticket". */
1970
2282
  readonly actionLabel: ReactNode;
1971
2283
  readonly onAction: () => void;
2284
+ /**
2285
+ * OPENING, AND WAITING ON THE CARD'S DATA — see `IslandView`'s `RESTING.waiting`. The
2286
+ * button carries the stylesheet's busy treatment (`aria-busy`, the spinner in place of its
2287
+ * words) and takes no second press, which would collapse what the buyer just opened.
2288
+ */
2289
+ readonly busy?: boolean;
1972
2290
  };
1973
2291
 
1974
2292
  /**
@@ -2188,6 +2506,12 @@ export declare type NoticeId =
2188
2506
  /** The order could not be opened at all: no cart, and nothing to check out. */
2189
2507
  | 'ORDER_NOT_OPENED'
2190
2508
  /**
2509
+ * THE ORDER CANNOT BE PLACED AS ASKED — more heads than the tickets sell in one order, fewer
2510
+ * than they need, or a session that is not on sale. Core refuses it before a cart is asked
2511
+ * for (`orderAskFor`), so nothing is held and nothing charged; what is left is to change it.
2512
+ */
2513
+ | 'ORDER_TOO_LARGE' | 'ORDER_TOO_SMALL' | 'TIME_NOT_ON_SALE'
2514
+ /**
2191
2515
  * THE RUN OR THE DAY COULD NOT BE READ. One id for both, because they read the same to a
2192
2516
  * buyer — the thing they came to buy is not on screen — and the difference between them
2193
2517
  * is a fact about which call to make again, which the retry already knows.
@@ -2255,6 +2579,23 @@ export declare type NoticeId =
2255
2579
  */
2256
2580
  | 'PAYMENT_UNCONFIRMED';
2257
2581
 
2582
+ declare type NoticeReport = {
2583
+ /** Stable across copy changes. Group and alert on this. */
2584
+ readonly noticeId: NoticeId;
2585
+ readonly severity: NoticeSeverity;
2586
+ /** The flow question the notice replaced — the step, not the route. */
2587
+ readonly stepId: string;
2588
+ /** A warning is a breadcrumb on the trail to the next fault; a failure is the fault. */
2589
+ readonly disposition: 'BREADCRUMB' | 'EXCEPTION';
2590
+ readonly source: ReportSource;
2591
+ /**
2592
+ * THE ONE FIELD THAT IS PROSE WE DID NOT AUTHOR — a platform's message, a provider's
2593
+ * refusal — so it arrives already scrubbed and already capped. `null` where there was
2594
+ * nothing to say, which is most of them.
2595
+ */
2596
+ readonly detail: string | null;
2597
+ };
2598
+
2258
2599
  /**
2259
2600
  * The notices whose words are the same every time. One so far: a notice whose words depend
2260
2601
  * on what the flow knows gets a builder instead.
@@ -2617,6 +2958,9 @@ export declare interface PaymentReturnProps {
2617
2958
  readonly onCompleted?: (cartKey: string) => void;
2618
2959
  }
2619
2960
 
2961
+ /** What the charge was made with — the order's own record of it, see `ChargeMethod`. */
2962
+ export declare type PaymentType = ChargeMethod;
2963
+
2620
2964
  /** "Phone Number" — the design, and it is TWO fields. CONTROLLED the same way Name is. */
2621
2965
  export declare function PhoneStep({ value, onChange, onAnsweredChange, }: AnswerReporting & {
2622
2966
  readonly value?: PhoneValue;
@@ -2657,7 +3001,7 @@ export declare type PlacedBooking = {
2657
3001
  * the transition.
2658
3002
  *
2659
3003
  * ABSENT WHERE THE READ FAILED OR FOUND NOTHING, which is the one case the booking has to
2660
- * work that out for itself — it has the notice and the Try Again, and this does not.
3004
+ * work that out for itself — it has the notice and the Try Again, and the flow does not.
2661
3005
  */
2662
3006
  readonly record?: BookingRecord;
2663
3007
  };
@@ -2704,29 +3048,20 @@ export declare type PressScope = 'island' | 'element';
2704
3048
  * smaller number, so it reads as a better price rather than as a missing one.
2705
3049
  *
2706
3050
  * STILL A LIKELIHOOD AND NOT A PROMISE. The cart is what charges, and promotions, fees the
2707
- * wire does not break out and the two unsettled rules in `bandPrice` all sit between this
3051
+ * wire does not break out and the fee ceiling in `bandPrice` all sit between this
2708
3052
  * and the amount taken. It is the best statement available before a cart exists.
2709
3053
  */
2710
3054
  export declare function priceComposition(price: SlotPrice | null | undefined, composition: Readonly<Record<string, number>>): SlotPrice | null;
2711
3055
 
2712
- /**
2713
- * WHAT A SESSION COSTS AT ITS CHEAPEST — the "From" a timeslot row draws.
2714
- *
2715
- * NOTHING ON THE WIRE STATES THIS, which is the whole reason it is computed. `EventTimeslot`
2716
- * is two times, a total and a remaining — no money at all — so a session's price is reached
2717
- * through the TICKET that sells it, and the discount bands hang off that ticket too. No
2718
- * endpoint states what a band costs.
2719
- *
2720
- * A DAY'S SESSIONS ARE NOT ONE PRICE. Measured on sandbox 2026-09-16, TwinkleTown's rink:
2721
- * the day's slots are split across two products, disjointly — Off-Peak holds 11:00, 13:00
2722
- * and 14:00 and Peak holds 15:00 to 20:00. Nine sessions, two prices, no overlap. So this
2723
- * takes a SESSION and not a day: a figure computed per day would be wrong for two thirds of
2724
- * that column.
2725
- *
2726
- * `SalePrice` IS THE BASIS, and it is already this package's: `ticketChoice` sorts on it to
2727
- * mean "cheapest first". It is the all-in, `BasePrice + Fees`, which is the right number to
2728
- * show first because it is the one that must not grow at the checkout.
2729
- */
3056
+ /** What an ecommerce event carries of the cart. `value` goes where `currency` goes. */
3057
+ declare type Priced = {
3058
+ readonly value?: number;
3059
+ readonly currency?: string;
3060
+ readonly items: readonly EventItem[];
3061
+ /** Only a code the platform ACCEPTED — the organiser's words, not the buyer's. */
3062
+ readonly coupon?: string;
3063
+ };
3064
+
2730
3065
  /**
2731
3066
  * THE FIELDS A PRICE IS READ OFF, and no more — the SDK's own `Ticket` satisfies it.
2732
3067
  *
@@ -2735,7 +3070,7 @@ export declare function priceComposition(price: SlotPrice | null | undefined, co
2735
3070
  * fields to read three of them is how a published function goes unused.
2736
3071
  */
2737
3072
  export declare type PricedTicket = Pick<Ticket, 'SalePrice' | 'PaymentsEnabled'> & {
2738
- readonly UserTypes: readonly Pick<UserType, 'Name' | 'DiscountNominal' | 'DiscountRate'>[] | null;
3073
+ readonly UserTypes: readonly BandFields[] | null;
2739
3074
  };
2740
3075
 
2741
3076
  /**
@@ -2956,6 +3291,24 @@ export declare function readBooking(summary: TransactionByKeyResponse, attendeeT
2956
3291
  /** What the summary was asked for, as the last resort for the key a save needs. */
2957
3292
  cartKey: string): BookingRecord | null;
2958
3293
 
3294
+ /**
3295
+ * WHO WAS RUNNING THIS CHECKOUT, AND WHERE. Keys and flags only, and every field optional:
3296
+ * a report that could not be filled in is still worth more than no report.
3297
+ */
3298
+ declare type ReportSource = {
3299
+ readonly orgKey?: string;
3300
+ readonly environment?: string;
3301
+ /** Which renderer drew the card — `'web'`, `'native'`. A renderer names itself. */
3302
+ readonly platform?: string;
3303
+ readonly coreVersion?: string;
3304
+ readonly rendererVersion?: string;
3305
+ readonly eventKey?: string;
3306
+ readonly cartKey?: string;
3307
+ /** THE SOLE IDENTITY. Stable for the whole checkout and across a refresh. */
3308
+ readonly checkoutSessionId?: string;
3309
+ readonly paymentMethod?: string;
3310
+ };
3311
+
2959
3312
  /** One item as the widget ASKED for it, reduced to the part a line needs. */
2960
3313
  export declare type RequestedItem = {
2961
3314
  readonly UserTypeAssignmentKey?: string | null;
@@ -2975,7 +3328,7 @@ export declare const RESTING_CART: {
2975
3328
  * THE HOLD IS STILL TAKEN THOUGH IT NO LONGER PICKS THE SUBTITLE, because the hero's ring
2976
3329
  * is still drawn from it.
2977
3330
  */
2978
- export declare function restingCartViewProps(input: ReactNode, hold: EscrowHold | undefined, onCheckOut: () => void, onClose: () => void,
3331
+ export declare function restingCartViewProps(input: ReactNode, hold: HoldClock | undefined, onCheckOut: () => void, onClose: () => void,
2979
3332
  /** Whether the checks are running, which shuts the button and says so. */
2980
3333
  checking: boolean): {
2981
3334
  variant: "cart";
@@ -3305,7 +3658,7 @@ export declare type TextFieldProps = {
3305
3658
  * host's scroll position to itself would be a widget rearranging a site it does not own.
3306
3659
  */
3307
3660
  readonly autoFocus?: boolean;
3308
- /** A value to be confirmed rather than typed — see `ConfirmEmailStep`. */
3661
+ /** A value to be confirmed rather than typed — Confirm Email's; see `confirmedEmail`. */
3309
3662
  readonly placeholder?: string;
3310
3663
  /**
3311
3664
  * THE CEILING THE PLATFORM ITSELF ENFORCES, passed to the input rather than checked
@@ -3382,7 +3735,7 @@ declare interface Ticket {
3382
3735
  export declare const TICKET_EDGE_FALLBACK: TicketEdgeTokens;
3383
3736
 
3384
3737
  /** The ticket a key names, or `null`. */
3385
- export declare function ticketAt(booking: Booking, key: string): BookingTicket | null;
3738
+ export declare function ticketAt<T extends BookedTicket>(booking: TicketRun<T>, key: string): T | null;
3386
3739
 
3387
3740
  /**
3388
3741
  * WHAT THE CALLER KNOWS THAT THE WIRE DOES NOT — the product and the user type.
@@ -3412,24 +3765,6 @@ export declare type TicketAttribution = {
3412
3765
  }>>;
3413
3766
  };
3414
3767
 
3415
- /**
3416
- * ONE TICKET'S CODE, as one value.
3417
- *
3418
- * A union rather than a picture beside an error, so "still fetching" cannot be mistaken for
3419
- * "came back empty" — which is the difference between a ticket that is about to appear and
3420
- * a buyer standing at a gate with nothing to show.
3421
- */
3422
- declare type TicketCode$1 = {
3423
- readonly status: 'LOADING';
3424
- }
3425
- /** Ready to draw: a `data:` URL an `<img>` can take. See `ticketCodeDataUrl`. */
3426
- | {
3427
- readonly status: 'DRAWN';
3428
- readonly src: string;
3429
- } | {
3430
- readonly status: 'ERROR';
3431
- };
3432
-
3433
3768
  /**
3434
3769
  * ONE TICKET — the code inside its perforated edge, with who it is for printed above.
3435
3770
  *
@@ -3505,11 +3840,11 @@ export declare type TicketCodeProps = {
3505
3840
  * is a real answer and is not a slot: see `TicketRow.artwork`, which draws the same line.
3506
3841
  */
3507
3842
  readonly avatar?: ReactNode;
3508
- /** The booking's day, already in words: "12 December 2026". */
3843
+ /** The booking's day, already in words: "12 December 2054". */
3509
3844
  readonly day: string;
3510
3845
  /** When it starts, or absent where the event sells no sessions. */
3511
3846
  readonly time: string | null;
3512
- readonly code: TicketCode$1;
3847
+ readonly code: CodeState;
3513
3848
  /** What the code IS, for anyone who cannot see it. */
3514
3849
  readonly codeLabel: string;
3515
3850
  /** What stands in its place when it did not come back. */
@@ -3675,6 +4010,15 @@ export declare type TicketRow = {
3675
4010
  readonly add?: string;
3676
4011
  };
3677
4012
 
4013
+ /**
4014
+ * WHAT THE NAVIGATION READS — the tickets and nothing else, so the record a store holds and
4015
+ * the booking a card draws answer every question below the same way. Who a ticket is for
4016
+ * decides where it leads; what it was bought as never does.
4017
+ */
4018
+ declare type TicketRun<T extends BookedTicket = BookedTicket> = {
4019
+ readonly tickets: readonly T[];
4020
+ };
4021
+
3678
4022
  /**
3679
4023
  * THE TICKETS IN A BOOKING — the design's `TicketsInBooking`.
3680
4024
  *
@@ -3753,7 +4097,7 @@ export declare function timedOutViewProps(expanded: boolean, onTryAgain: () => v
3753
4097
  export declare function timeOfDayInZone(now: Date, timeZone: string | null): string;
3754
4098
 
3755
4099
  /** Select Time — the timeslot picker's content. */
3756
- export declare function TimePicker({ series, today, nowTime, selection, onSelectDay, slots, onSelectTime, remaining, accessory, onVisibleMonthChange, }: TimePickerProps): react_jsx_runtime.JSX.Element;
4100
+ export declare function TimePicker({ series, today, nowTime, selection, onSelectDay, slots, onSelectTime, remaining, accessory, onVisibleMonthChange, grouping, }: TimePickerProps): react_jsx_runtime.JSX.Element;
3757
4101
 
3758
4102
  export declare type TimePickerProps = {
3759
4103
  /**
@@ -3792,6 +4136,8 @@ export declare type TimePickerProps = {
3792
4136
  * it: they all belong to one day.
3793
4137
  */
3794
4138
  readonly onVisibleMonthChange?: (month: CalendarMonthKey) => void;
4139
+ /** How the day's slots are cut up — see `TimeslotGrouping`. Absent is the eight bands. */
4140
+ readonly grouping?: TimeslotGrouping | undefined;
3795
4141
  };
3796
4142
 
3797
4143
  /**
@@ -3841,8 +4187,31 @@ export declare type Timeslot = {
3841
4187
  * on how the number was arrived at.
3842
4188
  */
3843
4189
  readonly fromPrice?: SlotPrice | null;
4190
+ /**
4191
+ * THE NAME OF THE PRODUCT THAT SELLS THIS SLOT — `Ticket.Name`, "Peak" or "Off-Peak" —
4192
+ * where the slot was read off one. What `PRODUCT` grouping heads each group with. Absent
4193
+ * is a slot a host built without saying, and it is grouped with the others that say
4194
+ * nothing, under no heading.
4195
+ */
4196
+ readonly product?: string;
3844
4197
  };
3845
4198
 
4199
+ /**
4200
+ * HOW A TICKET'S SLOTS ARE CUT UP.
4201
+ *
4202
+ * `PART_OF_DAY` is the island's own: eight contiguous bands, each headed by its name.
4203
+ * `NONE` is one chronological list with no heading at all — which is what an
4204
+ * implementation wants when the list is ALREADY grouped by something the platform
4205
+ * carries and this file does not know about. Slots hang off a TICKET, so "Peak" and
4206
+ * "Off-Peak" are a grouping the host has and cutting it again by time of day gives a
4207
+ * buyer two headings for one list.
4208
+ *
4209
+ * `PRODUCT` IS THAT GROUPING, DRAWN: one group per product the day's slots are sold by,
4210
+ * headed by its name — see `Timeslot.product`. For a run whose products ARE the sessions'
4211
+ * kind, which is what a buyer is choosing between, and the time of day is not.
4212
+ */
4213
+ export declare type TimeslotGrouping = 'PART_OF_DAY' | 'PRODUCT' | 'NONE';
4214
+
3846
4215
  /**
3847
4216
  * The session an item is bought for. BOTH ENDS ARE TIMES OF DAY — `18:00:00`, which is
3848
4217
  * what the platform deserialises them into (`System.TimeSpan`) and the shape a ticket's
@@ -3910,6 +4279,12 @@ declare interface UserType {
3910
4279
  Name: string;
3911
4280
  DiscountNominal: number;
3912
4281
  DiscountRate: number;
4282
+ /**
4283
+ * How many people one of this type admits — 4 for a "Family of 4", 1 for an Adult. One
4284
+ * unit of the type is one ticket however many it seats. Absent from older platform
4285
+ * builds, which is 1.
4286
+ */
4287
+ NumberOfPeople?: number;
3913
4288
  /** The organiser's own condition on choosing it, drawn under the name at `PARTY`. */
3914
4289
  Note?: string | null;
3915
4290
  /** Whether the buyer must show ID. Varies BY PRODUCT under one name — see `agreed`. */