@scopetickets/checkout 0.4.1 → 0.5.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>;
@@ -561,11 +568,17 @@ export declare type BookingTicket = BookedTicket & {
561
568
  readonly userType: string | null;
562
569
  };
563
570
 
564
- declare type BrandMarkId = 'SCOPE_TICKETS_WORDMARK';
571
+ declare type BrandMarkId = 'REVOLUT_PAY' | 'SCOPE_TICKETS_WORDMARK';
565
572
 
566
- /** A mark beside a button's label. */
573
+ /**
574
+ * A mark beside a button's label — or, `alone`, IN PLACE of it.
575
+ *
576
+ * `alone` IS A PLACE AND NOT A FLAG, so a mark cannot be both beside the label and instead
577
+ * of it. The label is still stated and still the button's accessible name: a lockup that
578
+ * says "Revolut Pay" is the words to a sighted buyer and nothing at all to a screen reader.
579
+ */
567
580
  declare type ButtonMark = {
568
- readonly side: 'leading' | 'trailing';
581
+ readonly side: 'leading' | 'trailing' | 'alone';
569
582
  readonly spacing?: 'joined' | 'separate';
570
583
  } & ({
571
584
  readonly glyph: GlyphId;
@@ -627,8 +640,6 @@ export declare type CardAction = {
627
640
  * with [mark] • 1123", as the design draws it.
628
641
  */
629
642
  readonly label: string;
630
- /** What the button DOES, for the few that do anything. */
631
- readonly onPress?: () => void;
632
643
  /**
633
644
  * THE DETOUR THIS BUTTON OPENS — the other half of `PurchaseStep.detourFrom`, which
634
645
  * says which card a step hangs off but not what opens it.
@@ -703,6 +714,19 @@ export declare type CardAction = {
703
714
  * IS what Skip does.
704
715
  */
705
716
  readonly rates?: boolean;
717
+ /**
718
+ * THE PROMO CARD'S ONE BUTTON, AND WHICH OF ITS TWO WORDS IT IS — Apply sends what is
719
+ * typed, Remove takes the order's code off. Declared rather than handled, like `pays`:
720
+ * the card is a detour, and a button with no meaning of its own on a detour is its way
721
+ * back — which is how Apply came to close the card and send nothing.
722
+ */
723
+ readonly promo?: 'APPLY' | 'REMOVE';
724
+ /** Add Password's "Show Entered Text" — the card's own toggle, and it moves nothing. */
725
+ readonly reveals?: boolean;
726
+ /** Verify Email's Re-send: another one-time code to the same address. */
727
+ readonly resends?: boolean;
728
+ /** The Processing card's Cancel, while a provider's own journey has the payment. */
729
+ readonly cancels?: boolean;
706
730
  };
707
731
 
708
732
  /** Marks content that should survive a step change rather than fade through itself. */
@@ -873,8 +897,76 @@ export declare function cartViewProps(input: ReactNode, hold: EscrowHold, onBack
873
897
  }[];
874
898
  };
875
899
 
900
+ /**
901
+ * WHAT A CHARGE WAS MADE WITH — every way of paying the frames and the sheets take, in
902
+ * the frames' spelling. Held on the watch the charge arms, because by the time anyone
903
+ * reads the order the thing that knew — a frame's status, a sheet opening — has moved
904
+ * on, and a renderer's own record of the choice can land a render behind the charge.
905
+ */
906
+ declare type ChargeMethod = 'card' | 'revolut_pay' | 'apple_pay' | 'google_pay';
907
+
908
+ /** Bumped only by a rename or a removal — see the analytics guide's versioning. */
909
+ declare const CHECKOUT_EVENT_SCHEMA = 1;
910
+
911
+ /** One thing that happened, and where. The public shape a host's `onEvent` is handed. */
912
+ export declare type CheckoutEvent = CheckoutEventBody & {
913
+ readonly context: EventContext;
914
+ };
915
+
916
+ declare type CheckoutEventBody = {
917
+ readonly name: 'view_item';
918
+ readonly items: readonly EventItem[];
919
+ } | {
920
+ readonly name: 'set_party';
921
+ readonly party_size: number;
922
+ readonly user_type_count: number;
923
+ } | {
924
+ readonly name: 'select_date';
925
+ readonly date: string;
926
+ readonly days_ahead?: number;
927
+ } | {
928
+ readonly name: 'select_time';
929
+ readonly time: string;
930
+ } | ({
931
+ readonly name: 'add_to_cart';
932
+ } & Priced) | ({
933
+ readonly name: 'remove_from_cart';
934
+ } & Priced) | {
935
+ readonly name: 'availability_refused';
936
+ readonly notice_key: NoticeId;
937
+ } | ({
938
+ readonly name: 'begin_checkout';
939
+ } & Priced) | {
940
+ readonly name: 'login';
941
+ readonly method: 'passkey' | 'password';
942
+ } | {
943
+ readonly name: 'checkout_as_guest';
944
+ } | {
945
+ readonly name: 'sign_up';
946
+ readonly method: 'email';
947
+ } | ({
948
+ readonly name: 'add_payment_info';
949
+ readonly payment_type?: PaymentType;
950
+ } & Priced) | ({
951
+ readonly name: 'purchase';
952
+ readonly transaction_id: string;
953
+ } & Priced) | {
954
+ readonly name: 'payment_failed';
955
+ readonly attempt: number;
956
+ } | {
957
+ readonly name: 'payment_unconfirmed';
958
+ readonly attempt: number;
959
+ } | {
960
+ readonly name: 'hold_expired';
961
+ } | {
962
+ readonly name: 'checkout_abandoned';
963
+ readonly step: PurchaseStepId;
964
+ };
965
+
966
+ export declare type CheckoutEventName = CheckoutEventBody['name'];
967
+
876
968
  /** The island, as the design draws it: a pill that becomes a card. */
877
- 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;
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;
878
970
 
879
971
  export declare type CheckoutIslandProps = {
880
972
  /** Collapsed is the pill; expanded is the card. */
@@ -946,6 +1038,8 @@ export declare type CheckoutIslandProps = {
946
1038
  * "input is blocked entirely; there is no way out and nothing to collapse to".
947
1039
  */
948
1040
  readonly sealed?: boolean;
1041
+ /** The card is typed into, and drawn tall — see `IslandCardProps.typed`. */
1042
+ readonly typed?: boolean;
949
1043
  /**
950
1044
  * WHETHER THE HEADER DRAWS A WAY OUT. Defaults to true.
951
1045
  *
@@ -1004,6 +1098,13 @@ export declare type CheckoutProps = {
1004
1098
  * somebody's checkout with no idea whose.
1005
1099
  */
1006
1100
  readonly appKey: string;
1101
+ /**
1102
+ * THE APP'S PUBLIC `AppKey` — 32 hex characters, no hyphens — which says whose checkout
1103
+ * this is in what the widget publishes. NOT `appKey` above: despite the name, that one
1104
+ * is the `AppApiKey`, the Bearer token, and never leaves the page. A value that is not
1105
+ * an AppKey is dropped with a console warning; checkout carries on either way.
1106
+ */
1107
+ readonly applicationKey?: string;
1007
1108
  /**
1008
1109
  * WHICH PLATFORM, and nothing else — the app key above is what authenticates. Optional
1009
1110
  * in every field: absent means production.
@@ -1125,6 +1226,43 @@ export declare type CheckoutProps = {
1125
1226
  * `simulatedAccountGateway`.
1126
1227
  */
1127
1228
  readonly simulate?: boolean;
1229
+ /**
1230
+ * EVERY NOTICE THE BUYER IS SHOWN, as a report — keys and flags only, never the buyer's
1231
+ * name, email, phone, address or card, and never the notice's subtitle. See
1232
+ * `NoticeReport`. `severity` separates the funnel's question from the fault tracker's:
1233
+ * a WARNING is inventory doing what inventory does, a FAILURE is a fault. It fires
1234
+ * whether or not `errorReporting` is on.
1235
+ */
1236
+ readonly onNotice?: (report: NoticeReport) => void;
1237
+ /**
1238
+ * WHAT THE BUYER DID, AS IT HAPPENS — the party chosen, the cart filled, the payment
1239
+ * attempted, the sale — each one a `CheckoutEvent`: keys, flags and the cart's money,
1240
+ * never the buyer. On the same terms as `onNotice`: synchronous, in order, after the
1241
+ * change is drawn. A callback that throws is caught and checkout carries on. It fires
1242
+ * whatever the page's consent, because nothing in it is personal; what the host's own
1243
+ * tags do with it is the host's consent to decide. `@scopetickets/checkout/analytics`
1244
+ * turns one into a `dataLayer` push.
1245
+ */
1246
+ readonly onEvent?: (event: CheckoutEvent) => void;
1247
+ /**
1248
+ * ASK THE WIDGET TO GO, by changing this number — a host opening a second booking on the same
1249
+ * page, where one checkout at a time is the rule. Each change after the first render is one
1250
+ * request; the value itself means nothing.
1251
+ *
1252
+ * WHAT IT DOES IS THE CROSS'S OWN QUESTION, NEVER AN OVERRULING. With a cart held, the widget
1253
+ * opens on the abandon card: Confirm gives the cart back (`checkout_abandoned` on `onEvent`)
1254
+ * and the host may then dismiss it; the buyer's way back keeps the order and nothing is said,
1255
+ * so the other booking waits. With nothing held it does nothing — there is nothing to give
1256
+ * back, and dismissing is the host's own unmount. Never once money has moved or is moving.
1257
+ */
1258
+ readonly leaveSignal?: number;
1259
+ /**
1260
+ * WHETHER FAILURES ARE REPORTED TO SCOPE. On by default, because a reporting scheme each
1261
+ * integration has to remember to switch on reports nothing — and the failures worth
1262
+ * knowing about are the ones on sites nobody is watching. Warnings ride along as
1263
+ * breadcrumbs on the next failure; they are never events of their own.
1264
+ */
1265
+ readonly errorReporting?: boolean;
1128
1266
  /** Called with the completed intent when the last step is answered. */
1129
1267
  readonly onCommit?: (intent: OrderIntent) => void;
1130
1268
  /**
@@ -1179,8 +1317,27 @@ export declare type CheckoutProps = {
1179
1317
  *
1180
1318
  * THE HOST'S TO SUPPLY, like `openingLabel` and for the same reason: which strand a page
1181
1319
  * sells is something the page knows and the widget cannot infer.
1320
+ *
1321
+ * NAMED, THEY BECOME A FILTER. Written as `{ key, label }`, two or more inventories draw a
1322
+ * checkbox each under Select Day, so a buyer can show or hide an inventory's days and
1323
+ * sessions. The platform stores an inventory's name and does not send it, so the label is
1324
+ * the host's too — see `inventoryFilterOf`. Bare keys sell as they always did.
1325
+ */
1326
+ readonly inventories?: readonly InventoryChoice[];
1327
+ /**
1328
+ * HOW THE NAMED INVENTORIES ARE CHOSEN BETWEEN — `checkbox`, the default, shows any of
1329
+ * them at once, and `radio` shows exactly one: the first the host listed, until the buyer
1330
+ * picks another. The calendar, the sessions and the cart follow whichever is chosen.
1331
+ * Nothing is drawn, and this means nothing, where `inventories` draws no filter.
1182
1332
  */
1183
- readonly inventories?: readonly string[];
1333
+ readonly inventoryFilter?: 'checkbox' | 'radio';
1334
+ /**
1335
+ * HOW SELECT TIME HEADS THE DAY'S SESSIONS. `PART_OF_DAY`, the default, cuts them into
1336
+ * the island's eight bands; `PRODUCT` heads each product's sessions with its name — "Peak",
1337
+ * "Off-Peak" — for a run whose products are what a buyer is choosing between; `NONE` is
1338
+ * one list. The order is chronological whichever is chosen. See `TimeslotGrouping`.
1339
+ */
1340
+ readonly timeslotGrouping?: TimeslotGrouping;
1184
1341
  readonly mode?: IslandMode;
1185
1342
  /**
1186
1343
  * Where in its reservation the island sits — a corner, the middle of an edge, or the
@@ -1387,11 +1544,17 @@ export declare type CounterRingProps = {
1387
1544
  export declare type DatePickerCellAccessory = 'NONE' | 'LINE';
1388
1545
 
1389
1546
  /** Select Day — the day picker's content. */
1390
- export declare function DayPicker({ series, today, selectedDay, onSelectDay, remaining, accessory, onVisibleMonthChange, }: DayPickerProps): react_jsx_runtime.JSX.Element | null;
1547
+ export declare function DayPicker({ series, offered, today, selectedDay, onSelectDay, remaining, accessory, onVisibleMonthChange, }: DayPickerProps): react_jsx_runtime.JSX.Element | null;
1391
1548
 
1392
1549
  export declare type DayPickerProps = {
1393
1550
  /** The run being picked from. Every month it touches is drawn. */
1394
1551
  readonly series: CalendarSeries;
1552
+ /**
1553
+ * THE DAYS STILL ON OFFER, where the inventory filter has hidden some — absent is all of
1554
+ * `series`. The weeks stay the whole run's, so ticking a box greys days where they stand
1555
+ * rather than moving the month the buyer is reading; see `offeredSeries`.
1556
+ */
1557
+ readonly offered?: CalendarSeries;
1395
1558
  /**
1396
1559
  * `YYYY-MM-DD` in the VENUE's local day, never the device's. Passed in rather than read
1397
1560
  * from a clock — see `MonthGridOptions`.
@@ -1438,6 +1601,54 @@ export declare type EscrowHold = {
1438
1601
  readonly durationSeconds: number;
1439
1602
  };
1440
1603
 
1604
+ /** The cart's three shares, major units — `value` is the organisation's. */
1605
+ export declare type EventAmounts = {
1606
+ readonly total: number;
1607
+ readonly organisation: number;
1608
+ readonly broker: number;
1609
+ };
1610
+
1611
+ /** What every event carries, nested under `scope` in a `dataLayer`. */
1612
+ export declare type EventContext = {
1613
+ readonly schema_version: typeof CHECKOUT_EVENT_SCHEMA;
1614
+ /** Unique per event — the dedupe key a pixel and its server twin share. */
1615
+ readonly event_id: string;
1616
+ /** Unique per mount — stitches before the cart to after it, and two widgets apart. */
1617
+ readonly mount_id: string;
1618
+ /** The notices' join key, minted per cart, so present from the cart onward only. */
1619
+ readonly checkout_session_id?: string;
1620
+ readonly integration: 'widget';
1621
+ readonly platform: 'web' | 'native';
1622
+ readonly sdk_version: string;
1623
+ /** The app's public `AppKey`. Never the Bearer — see `applicationKeyFrom`. */
1624
+ readonly application_key?: string;
1625
+ /** The run, where there is one. Never an event's key. */
1626
+ readonly series_key?: string;
1627
+ readonly series_name?: string;
1628
+ /** The occurrence: chosen once a day is answered, or the one-off event from the start. */
1629
+ readonly event_key?: string;
1630
+ readonly inventory_filter: 'all' | 'named';
1631
+ /** Comma-joined and sorted, and absent rather than past GA's limit. */
1632
+ readonly inventory_keys?: string;
1633
+ readonly currency?: string;
1634
+ /** From the cart onward, and only where the currency is known. */
1635
+ readonly amounts?: EventAmounts;
1636
+ };
1637
+
1638
+ /** One line of what is bought, aggregated by ticket × user type. */
1639
+ export declare type EventItem = {
1640
+ /** The ticket's key — never its name, which is not stable. */
1641
+ readonly item_id: string;
1642
+ readonly item_name?: string;
1643
+ /** The user type the heads were bought for. */
1644
+ readonly item_variant?: string;
1645
+ /** The run the ticket belongs to. */
1646
+ readonly item_category?: string;
1647
+ /** Per head, the organisation's share, in major units. Absent where the currency is. */
1648
+ readonly price?: number;
1649
+ readonly quantity: number;
1650
+ };
1651
+
1441
1652
  /** @internal */
1442
1653
  declare interface EventTimeslot {
1443
1654
  LocalStartTime: string;
@@ -1509,7 +1720,6 @@ export declare type FollowListProps = {
1509
1720
  readonly onToggle: (key: string) => void;
1510
1721
  };
1511
1722
 
1512
- /** Money, and how it is written. */
1513
1723
  /** `1234, 'EUR'` → `"€12.34"`. `1200, 'JPY'` → `"¥1,200"`. */
1514
1724
  export declare function formatMoney(minorUnits: number, currency: string): string;
1515
1725
 
@@ -1651,6 +1861,18 @@ export declare type IntentComposition = Readonly<Record<string, number>>;
1651
1861
  /** Whether a composition names anybody at all. */
1652
1862
  export declare function intentHasParty(composition: IntentComposition | undefined): boolean;
1653
1863
 
1864
+ /**
1865
+ * WHAT A HOST MAY LIST — a bare key, as every mount wrote before the filter, or a key
1866
+ * with the word to draw beside its checkbox.
1867
+ */
1868
+ export declare type InventoryChoice = string | InventoryOption;
1869
+
1870
+ /** One inventory offered in the filter: the key the platform knows it by, and its word. */
1871
+ export declare type InventoryOption = {
1872
+ readonly key: string;
1873
+ readonly label: string;
1874
+ };
1875
+
1654
1876
  /**
1655
1877
  * WHETHER A NUMBER IS ONE OF THE FIVE. The guard the wire is behind: `FeedbackRating`
1656
1878
  * narrows what this package passes around, and this is the only thing that can make one
@@ -1674,7 +1896,8 @@ export declare type IslandAction = {
1674
1896
  /** The button is drawn, and it does not act. */
1675
1897
  readonly disabled?: boolean;
1676
1898
  readonly mark?: {
1677
- readonly side: 'leading' | 'trailing';
1899
+ /** `alone` is IN PLACE of the label, which stays as the button's accessible name. */
1900
+ readonly side: 'leading' | 'trailing' | 'alone';
1678
1901
  readonly node: ReactNode;
1679
1902
  /** Default `separate`. See above. */
1680
1903
  readonly spacing?: 'joined' | 'separate';
@@ -1693,7 +1916,7 @@ export declare type IslandActionRole = 'action' | 'primary' | 'secondary';
1693
1916
  */
1694
1917
  export declare type IslandAlignment = 'top-left' | 'top' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
1695
1918
 
1696
- export declare function IslandCard({ avatar, title, subtitle, variant, sealed, input, actions, footer, }: IslandCardProps): react_jsx_runtime.JSX.Element;
1919
+ export declare function IslandCard({ avatar, title, subtitle, variant, sealed, typed, input, actions, footer, }: IslandCardProps): react_jsx_runtime.JSX.Element;
1697
1920
 
1698
1921
  export declare type IslandCardProps = {
1699
1922
  /** WHICH CARD THIS IS — Figma's own variant on `CtaCard`. */
@@ -1735,6 +1958,15 @@ export declare type IslandCardProps = {
1735
1958
  * one is short, so the surface morphs between two heights instead of snapping.
1736
1959
  */
1737
1960
  readonly sealed?: boolean;
1961
+ /**
1962
+ * THE CARD IS TYPED INTO, so it is drawn at the ceiling from the frame it arrives — see
1963
+ * `[data-typed]` in `island.css`. The caller answers it with core's `takesTyping`; which
1964
+ * blocks raise a keyboard is the block set's question, not this file's.
1965
+ *
1966
+ * PER CARD, for `sealed`'s reason: the leaving card keeps the height it was laid out
1967
+ * with and only the arriving one is tall, so the surface morphs between the two.
1968
+ */
1969
+ readonly typed?: boolean;
1738
1970
  /**
1739
1971
  * The step's own controls — `Input` in the design, between the hero and the buttons.
1740
1972
  */
@@ -2248,6 +2480,23 @@ export declare type NoticeId =
2248
2480
  */
2249
2481
  | 'PAYMENT_UNCONFIRMED';
2250
2482
 
2483
+ declare type NoticeReport = {
2484
+ /** Stable across copy changes. Group and alert on this. */
2485
+ readonly noticeId: NoticeId;
2486
+ readonly severity: NoticeSeverity;
2487
+ /** The flow question the notice replaced — the step, not the route. */
2488
+ readonly stepId: string;
2489
+ /** A warning is a breadcrumb on the trail to the next fault; a failure is the fault. */
2490
+ readonly disposition: 'BREADCRUMB' | 'EXCEPTION';
2491
+ readonly source: ReportSource;
2492
+ /**
2493
+ * THE ONE FIELD THAT IS PROSE WE DID NOT AUTHOR — a platform's message, a provider's
2494
+ * refusal — so it arrives already scrubbed and already capped. `null` where there was
2495
+ * nothing to say, which is most of them.
2496
+ */
2497
+ readonly detail: string | null;
2498
+ };
2499
+
2251
2500
  /**
2252
2501
  * The notices whose words are the same every time. One so far: a notice whose words depend
2253
2502
  * on what the flow knows gets a builder instead.
@@ -2610,6 +2859,9 @@ export declare interface PaymentReturnProps {
2610
2859
  readonly onCompleted?: (cartKey: string) => void;
2611
2860
  }
2612
2861
 
2862
+ /** What the charge was made with — the order's own record of it, see `ChargeMethod`. */
2863
+ export declare type PaymentType = ChargeMethod;
2864
+
2613
2865
  /** "Phone Number" — the design, and it is TWO fields. CONTROLLED the same way Name is. */
2614
2866
  export declare function PhoneStep({ value, onChange, onAnsweredChange, }: AnswerReporting & {
2615
2867
  readonly value?: PhoneValue;
@@ -2702,6 +2954,15 @@ export declare type PressScope = 'island' | 'element';
2702
2954
  */
2703
2955
  export declare function priceComposition(price: SlotPrice | null | undefined, composition: Readonly<Record<string, number>>): SlotPrice | null;
2704
2956
 
2957
+ /** What an ecommerce event carries of the cart. `value` goes where `currency` goes. */
2958
+ declare type Priced = {
2959
+ readonly value?: number;
2960
+ readonly currency?: string;
2961
+ readonly items: readonly EventItem[];
2962
+ /** Only a code the platform ACCEPTED — the organiser's words, not the buyer's. */
2963
+ readonly coupon?: string;
2964
+ };
2965
+
2705
2966
  /**
2706
2967
  * WHAT A SESSION COSTS AT ITS CHEAPEST — the "From" a timeslot row draws.
2707
2968
  *
@@ -2949,6 +3210,24 @@ export declare function readBooking(summary: TransactionByKeyResponse, attendeeT
2949
3210
  /** What the summary was asked for, as the last resort for the key a save needs. */
2950
3211
  cartKey: string): BookingRecord | null;
2951
3212
 
3213
+ /**
3214
+ * WHO WAS RUNNING THIS CHECKOUT, AND WHERE. Keys and flags only, and every field optional:
3215
+ * a report that could not be filled in is still worth more than no report.
3216
+ */
3217
+ declare type ReportSource = {
3218
+ readonly orgKey?: string;
3219
+ readonly environment?: string;
3220
+ /** Which renderer drew the card — `'web'`, `'native'`. A renderer names itself. */
3221
+ readonly platform?: string;
3222
+ readonly coreVersion?: string;
3223
+ readonly rendererVersion?: string;
3224
+ readonly eventKey?: string;
3225
+ readonly cartKey?: string;
3226
+ /** THE SOLE IDENTITY. Stable for the whole checkout and across a refresh. */
3227
+ readonly checkoutSessionId?: string;
3228
+ readonly paymentMethod?: string;
3229
+ };
3230
+
2952
3231
  /** One item as the widget ASKED for it, reduced to the part a line needs. */
2953
3232
  export declare type RequestedItem = {
2954
3233
  readonly UserTypeAssignmentKey?: string | null;
@@ -3298,7 +3577,7 @@ export declare type TextFieldProps = {
3298
3577
  * host's scroll position to itself would be a widget rearranging a site it does not own.
3299
3578
  */
3300
3579
  readonly autoFocus?: boolean;
3301
- /** A value to be confirmed rather than typed — see `ConfirmEmailStep`. */
3580
+ /** A value to be confirmed rather than typed — Confirm Email's; see `confirmedEmail`. */
3302
3581
  readonly placeholder?: string;
3303
3582
  /**
3304
3583
  * THE CEILING THE PLATFORM ITSELF ENFORCES, passed to the input rather than checked
@@ -3746,7 +4025,7 @@ export declare function timedOutViewProps(expanded: boolean, onTryAgain: () => v
3746
4025
  export declare function timeOfDayInZone(now: Date, timeZone: string | null): string;
3747
4026
 
3748
4027
  /** Select Time — the timeslot picker's content. */
3749
- export declare function TimePicker({ series, today, nowTime, selection, onSelectDay, slots, onSelectTime, remaining, accessory, onVisibleMonthChange, }: TimePickerProps): react_jsx_runtime.JSX.Element;
4028
+ export declare function TimePicker({ series, today, nowTime, selection, onSelectDay, slots, onSelectTime, remaining, accessory, onVisibleMonthChange, grouping, }: TimePickerProps): react_jsx_runtime.JSX.Element;
3750
4029
 
3751
4030
  export declare type TimePickerProps = {
3752
4031
  /**
@@ -3785,6 +4064,8 @@ export declare type TimePickerProps = {
3785
4064
  * it: they all belong to one day.
3786
4065
  */
3787
4066
  readonly onVisibleMonthChange?: (month: CalendarMonthKey) => void;
4067
+ /** How the day's slots are cut up — see `TimeslotGrouping`. Absent is the eight bands. */
4068
+ readonly grouping?: TimeslotGrouping | undefined;
3788
4069
  };
3789
4070
 
3790
4071
  /**
@@ -3834,8 +4115,31 @@ export declare type Timeslot = {
3834
4115
  * on how the number was arrived at.
3835
4116
  */
3836
4117
  readonly fromPrice?: SlotPrice | null;
4118
+ /**
4119
+ * THE NAME OF THE PRODUCT THAT SELLS THIS SLOT — `Ticket.Name`, "Peak" or "Off-Peak" —
4120
+ * where the slot was read off one. What `PRODUCT` grouping heads each group with. Absent
4121
+ * is a slot a host built without saying, and it is grouped with the others that say
4122
+ * nothing, under no heading.
4123
+ */
4124
+ readonly product?: string;
3837
4125
  };
3838
4126
 
4127
+ /**
4128
+ * HOW A TICKET'S SLOTS ARE CUT UP.
4129
+ *
4130
+ * `PART_OF_DAY` is the island's own: eight contiguous bands, each headed by its name.
4131
+ * `NONE` is one chronological list with no heading at all — which is what an
4132
+ * implementation wants when the list is ALREADY grouped by something the platform
4133
+ * carries and this file does not know about. Slots hang off a TICKET, so "Peak" and
4134
+ * "Off-Peak" are a grouping the host has and cutting it again by time of day gives a
4135
+ * buyer two headings for one list.
4136
+ *
4137
+ * `PRODUCT` IS THAT GROUPING, DRAWN: one group per product the day's slots are sold by,
4138
+ * headed by its name — see `Timeslot.product`. For a run whose products ARE the sessions'
4139
+ * kind, which is what a buyer is choosing between, and the time of day is not.
4140
+ */
4141
+ export declare type TimeslotGrouping = 'PART_OF_DAY' | 'PRODUCT' | 'NONE';
4142
+
3839
4143
  /**
3840
4144
  * The session an item is bought for. BOTH ENDS ARE TIMES OF DAY — `18:00:00`, which is
3841
4145
  * what the platform deserialises them into (`System.TimeSpan`) and the shape a ticket's