@scopetickets/checkout 0.5.0 → 0.6.1

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
@@ -209,11 +209,37 @@ declare type AuthState =
209
209
  * nothing is gated — `ticketGate` says why — so the form backs out to its ticket exactly as
210
210
  * it did before there was a gate. `BookingIsland` always has one to pass.
211
211
  */
212
- 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'>;
213
233
 
214
234
  /**
215
235
  * ONE BAND'S UNIT PRICE, or null where it cannot be stated.
216
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
+ *
217
243
  * NULL IS FOR `DiscountRate`, AND IT IS A REFUSAL RATHER THAN A GAP. The field's UNIT is
218
244
  * not settled: read as a FRACTION, `50` gives a negative price; read as a PERCENTAGE, a
219
245
  * value of `0.5` is a rounding error rather than a half-price ticket. Every rate observed on
@@ -222,12 +248,15 @@ export declare function backFrom(screen: BookingScreen, booking?: Booking | null
222
248
  *
223
249
  * A wrong price is worse than no price, so a non-zero rate draws no From at all.
224
250
  *
225
- * THE NOMINAL COMES OFF THE ALL-IN, which is the other unsettled rule: identical to
226
- * `(BasePrice - nominal) + Fees` because `Fees` is flat on the wire, but NOT identical to
227
- * re-rating the fee on the discounted base. Fees are 12.0% of base on both of TwinkleTown's
228
- * 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.
229
258
  */
230
- 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;
231
260
 
232
261
  /** One ticket, as the platform holds it. */
233
262
  export declare type BookedTicket = {
@@ -320,8 +349,8 @@ export declare const BOOKING_COPY: {
320
349
  * SENDING A COPY OF A TICKET, which this widget CAN do now — `SendSingleEmail` is the
321
350
  * platform's, and the quick action on a ticket's own card is the way to it.
322
351
  *
323
- * The wallet badge still has no entry here, and that is the point: it is Apple's mark and
324
- * 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`.
325
354
  */
326
355
  readonly sendTicketLines: readonly ["Send", "Ticket"];
327
356
  readonly sendTicket: "Send Ticket";
@@ -388,11 +417,25 @@ export declare type BookingGateway = {
388
417
  * call takes and is `0` where the list did not answer for the ticket.
389
418
  */
390
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;
391
426
  };
392
427
 
393
428
  /**
394
429
  * MY BOOKING — the last face of the widget, and the only one that is not a purchase.
395
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
+ *
396
439
  * ── FOUR CARDS AND ONE MOUNT ─────────────────────────────────────────────────
397
440
  *
398
441
  * The booking, every code, one ticket, and who that ticket is for. They are one component
@@ -400,12 +443,6 @@ export declare type BookingGateway = {
400
443
  * surface morphs because the `contentKey` changed underneath ONE host. Four components would
401
444
  * make every move between them a remount, and a remount has nothing to transition from.
402
445
  *
403
- * ── IT IS NOT A WALK ─────────────────────────────────────────────────────────
404
- *
405
- * Nothing here is a step. There is no order to complete, nothing is excused, and no card
406
- * gates the one after it — so there is no `PurchaseStep`, no preflight and no `at` index.
407
- * What there is instead is a TREE, and `backFrom` is the whole of it.
408
- *
409
446
  * ── AND IT IS REACHABLE TWICE ────────────────────────────────────────────────
410
447
  *
411
448
  * `ScopeTicketsCheckout` hands over to it when a purchase finishes, and a host can mount it
@@ -450,21 +487,15 @@ export declare type BookingIslandProps = {
450
487
  */
451
488
  readonly seed?: BookingRecord;
452
489
  /**
453
- * THE WALLET BADGE, AS THE HOST'S OWN NODE — not a press this widget paints a button for.
454
- *
455
- * ── WHY THIS ONE IS A `ReactNode` WHERE EVERY OTHER CONTROL HERE IS A CALLBACK ──
490
+ * THE WALLET BADGE, IN PLACE OF THE ONE THIS WIDGET DRAWS.
456
491
  *
457
- * "Add to Apple Wallet" is APPLE'S MARK, and its size, corner, ground, lock-up and
458
- * wording are theirs to specify and ours to reproduce exactly or not at all. Painting an
459
- * approximation of it in this design system's tokens — which is what a callback would
460
- * oblige — produces a black pill with the right words and none of the right anything
461
- * else, sitting on a card where every other control is ours.
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`.
462
496
  *
463
- * There is no `.pkpass` endpoint on the platform either, so the press has nothing here to
464
- * do. Both halves are the host's, so the whole control is: it is given the slot the design
465
- * draws it in, centred above the rule, and this file neither paints it nor presses it.
466
- *
467
- * 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.
468
499
  */
469
500
  readonly walletBadge?: (ticketKey: string) => ReactNode;
470
501
  readonly initialPresentation?: 'pill' | 'card';
@@ -881,7 +912,7 @@ export declare type CartLinesProps = {
881
912
  * The cart screen as the PROPS that turn a card into it — the hero and its badge are the
882
913
  * caller's, because the avatar is the buyer's and this file draws none.
883
914
  */
884
- export declare function cartViewProps(input: ReactNode, hold: EscrowHold, onBack: () => void): {
915
+ export declare function cartViewProps(input: ReactNode, hold: HoldClock, onBack: () => void): {
885
916
  variant: "cart";
886
917
  expanded: boolean;
887
918
  onToggle: () => void;
@@ -966,7 +997,7 @@ declare type CheckoutEventBody = {
966
997
  export declare type CheckoutEventName = CheckoutEventBody['name'];
967
998
 
968
999
  /** The island, as the design draws it: a pill that becomes a card. */
969
- export declare function CheckoutIsland({ expanded, contentKey, onToggle, avatar, title, subtitle, pillCopy, input, bay, bayVisible, bayRows, variant, sealed, typed, 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;
970
1001
 
971
1002
  export declare type CheckoutIslandProps = {
972
1003
  /** Collapsed is the pill; expanded is the card. */
@@ -1051,6 +1082,8 @@ export declare type CheckoutIslandProps = {
1051
1082
  readonly closable?: boolean;
1052
1083
  /** The pill's action. */
1053
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;
1054
1087
  /**
1055
1088
  * THE BUTTONS, SPLIT BY THE BAY. `actions` is what the card plane draws; when the
1056
1089
  * payment form is visible its card rides the form in the bay, and the card that acts
@@ -1138,7 +1171,10 @@ export declare type CheckoutProps = {
1138
1171
  * unnamed line, which is what an event with no discount types wants.
1139
1172
  */
1140
1173
  readonly userTypes?: readonly PartyUserTypeOption[];
1141
- /** 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
+ */
1142
1178
  readonly maxParty?: number;
1143
1179
  /**
1144
1180
  * A CART THE HOST ALREADY OPENED — adopted, never duplicated.
@@ -1256,6 +1292,17 @@ export declare type CheckoutProps = {
1256
1292
  * back, and dismissing is the host's own unmount. Never once money has moved or is moving.
1257
1293
  */
1258
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;
1259
1306
  /**
1260
1307
  * WHETHER FAILURES ARE REPORTED TO SCOPE. On by default, because a reporting scheme each
1261
1308
  * integration has to remember to switch on reports nothing — and the failures worth
@@ -1433,6 +1480,21 @@ declare type CheckoutSource = {
1433
1480
  readonly orgKey?: string;
1434
1481
  };
1435
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
+
1436
1498
  export declare function ContentFlag({ tone, title }: ContentFlagProps): react_jsx_runtime.JSX.Element;
1437
1499
 
1438
1500
  export declare type ContentFlagProps = {
@@ -1748,7 +1810,7 @@ declare type GlyphBadge = {
1748
1810
  };
1749
1811
 
1750
1812
  /** A glyph from the icon set, by name; each renderer decides how to draw it. */
1751
- 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';
1752
1814
 
1753
1815
  /**
1754
1816
  * THE DISTINCT TYPES, in the order the platform first names each — the organiser's own,
@@ -1774,6 +1836,22 @@ export declare const HOLD_VIEW: {
1774
1836
  readonly close: "Close";
1775
1837
  };
1776
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
+
1777
1855
  /**
1778
1856
  * WHETHER THE EDIT CARD'S SAVE MAY GO.
1779
1857
  *
@@ -1840,6 +1918,15 @@ declare type Inline = {
1840
1918
  } | {
1841
1919
  readonly kind: 'MARK';
1842
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;
1843
1930
  };
1844
1931
 
1845
1932
  /** What the platform needs about the person paying. */
@@ -2176,7 +2263,7 @@ export declare type IslandHostProps = {
2176
2263
  export declare type IslandMode = 'light' | 'dark' | 'system';
2177
2264
 
2178
2265
  /** The collapsed island — Figma `CtaCollapsedGetTicket`. */
2179
- 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;
2180
2267
 
2181
2268
  export declare type IslandPillProps = {
2182
2269
  /**
@@ -2194,6 +2281,12 @@ export declare type IslandPillProps = {
2194
2281
  /** The label on the action. `text/bold/md`, e.g. Figma's "Get Ticket". */
2195
2282
  readonly actionLabel: ReactNode;
2196
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;
2197
2290
  };
2198
2291
 
2199
2292
  /**
@@ -2413,6 +2506,12 @@ export declare type NoticeId =
2413
2506
  /** The order could not be opened at all: no cart, and nothing to check out. */
2414
2507
  | 'ORDER_NOT_OPENED'
2415
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
+ /**
2416
2515
  * THE RUN OR THE DAY COULD NOT BE READ. One id for both, because they read the same to a
2417
2516
  * buyer — the thing they came to buy is not on screen — and the difference between them
2418
2517
  * is a fact about which call to make again, which the retry already knows.
@@ -2902,7 +3001,7 @@ export declare type PlacedBooking = {
2902
3001
  * the transition.
2903
3002
  *
2904
3003
  * ABSENT WHERE THE READ FAILED OR FOUND NOTHING, which is the one case the booking has to
2905
- * 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.
2906
3005
  */
2907
3006
  readonly record?: BookingRecord;
2908
3007
  };
@@ -2949,7 +3048,7 @@ export declare type PressScope = 'island' | 'element';
2949
3048
  * smaller number, so it reads as a better price rather than as a missing one.
2950
3049
  *
2951
3050
  * STILL A LIKELIHOOD AND NOT A PROMISE. The cart is what charges, and promotions, fees the
2952
- * 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
2953
3052
  * and the amount taken. It is the best statement available before a cart exists.
2954
3053
  */
2955
3054
  export declare function priceComposition(price: SlotPrice | null | undefined, composition: Readonly<Record<string, number>>): SlotPrice | null;
@@ -2963,24 +3062,6 @@ declare type Priced = {
2963
3062
  readonly coupon?: string;
2964
3063
  };
2965
3064
 
2966
- /**
2967
- * WHAT A SESSION COSTS AT ITS CHEAPEST — the "From" a timeslot row draws.
2968
- *
2969
- * NOTHING ON THE WIRE STATES THIS, which is the whole reason it is computed. `EventTimeslot`
2970
- * is two times, a total and a remaining — no money at all — so a session's price is reached
2971
- * through the TICKET that sells it, and the discount bands hang off that ticket too. No
2972
- * endpoint states what a band costs.
2973
- *
2974
- * A DAY'S SESSIONS ARE NOT ONE PRICE. Measured on sandbox 2026-09-16, TwinkleTown's rink:
2975
- * the day's slots are split across two products, disjointly — Off-Peak holds 11:00, 13:00
2976
- * and 14:00 and Peak holds 15:00 to 20:00. Nine sessions, two prices, no overlap. So this
2977
- * takes a SESSION and not a day: a figure computed per day would be wrong for two thirds of
2978
- * that column.
2979
- *
2980
- * `SalePrice` IS THE BASIS, and it is already this package's: `ticketChoice` sorts on it to
2981
- * mean "cheapest first". It is the all-in, `BasePrice + Fees`, which is the right number to
2982
- * show first because it is the one that must not grow at the checkout.
2983
- */
2984
3065
  /**
2985
3066
  * THE FIELDS A PRICE IS READ OFF, and no more — the SDK's own `Ticket` satisfies it.
2986
3067
  *
@@ -2989,7 +3070,7 @@ declare type Priced = {
2989
3070
  * fields to read three of them is how a published function goes unused.
2990
3071
  */
2991
3072
  export declare type PricedTicket = Pick<Ticket, 'SalePrice' | 'PaymentsEnabled'> & {
2992
- readonly UserTypes: readonly Pick<UserType, 'Name' | 'DiscountNominal' | 'DiscountRate'>[] | null;
3073
+ readonly UserTypes: readonly BandFields[] | null;
2993
3074
  };
2994
3075
 
2995
3076
  /**
@@ -3247,7 +3328,7 @@ export declare const RESTING_CART: {
3247
3328
  * THE HOLD IS STILL TAKEN THOUGH IT NO LONGER PICKS THE SUBTITLE, because the hero's ring
3248
3329
  * is still drawn from it.
3249
3330
  */
3250
- 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,
3251
3332
  /** Whether the checks are running, which shuts the button and says so. */
3252
3333
  checking: boolean): {
3253
3334
  variant: "cart";
@@ -3654,7 +3735,7 @@ declare interface Ticket {
3654
3735
  export declare const TICKET_EDGE_FALLBACK: TicketEdgeTokens;
3655
3736
 
3656
3737
  /** The ticket a key names, or `null`. */
3657
- 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;
3658
3739
 
3659
3740
  /**
3660
3741
  * WHAT THE CALLER KNOWS THAT THE WIRE DOES NOT — the product and the user type.
@@ -3684,24 +3765,6 @@ export declare type TicketAttribution = {
3684
3765
  }>>;
3685
3766
  };
3686
3767
 
3687
- /**
3688
- * ONE TICKET'S CODE, as one value.
3689
- *
3690
- * A union rather than a picture beside an error, so "still fetching" cannot be mistaken for
3691
- * "came back empty" — which is the difference between a ticket that is about to appear and
3692
- * a buyer standing at a gate with nothing to show.
3693
- */
3694
- declare type TicketCode$1 = {
3695
- readonly status: 'LOADING';
3696
- }
3697
- /** Ready to draw: a `data:` URL an `<img>` can take. See `ticketCodeDataUrl`. */
3698
- | {
3699
- readonly status: 'DRAWN';
3700
- readonly src: string;
3701
- } | {
3702
- readonly status: 'ERROR';
3703
- };
3704
-
3705
3768
  /**
3706
3769
  * ONE TICKET — the code inside its perforated edge, with who it is for printed above.
3707
3770
  *
@@ -3777,11 +3840,11 @@ export declare type TicketCodeProps = {
3777
3840
  * is a real answer and is not a slot: see `TicketRow.artwork`, which draws the same line.
3778
3841
  */
3779
3842
  readonly avatar?: ReactNode;
3780
- /** The booking's day, already in words: "12 December 2026". */
3843
+ /** The booking's day, already in words: "12 December 2054". */
3781
3844
  readonly day: string;
3782
3845
  /** When it starts, or absent where the event sells no sessions. */
3783
3846
  readonly time: string | null;
3784
- readonly code: TicketCode$1;
3847
+ readonly code: CodeState;
3785
3848
  /** What the code IS, for anyone who cannot see it. */
3786
3849
  readonly codeLabel: string;
3787
3850
  /** What stands in its place when it did not come back. */
@@ -3947,6 +4010,15 @@ export declare type TicketRow = {
3947
4010
  readonly add?: string;
3948
4011
  };
3949
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
+
3950
4022
  /**
3951
4023
  * THE TICKETS IN A BOOKING — the design's `TicketsInBooking`.
3952
4024
  *
@@ -4207,6 +4279,12 @@ declare interface UserType {
4207
4279
  Name: string;
4208
4280
  DiscountNominal: number;
4209
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;
4210
4288
  /** The organiser's own condition on choosing it, drawn under the name at `PARTY`. */
4211
4289
  Note?: string | null;
4212
4290
  /** Whether the buyer must show ID. Varies BY PRODUCT under one name — see `agreed`. */