@scopetickets/checkout 0.6.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/dist/index.cjs +3472 -5753
- package/dist/index.cjs.map +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1663 -1174
- package/dist/index.d.ts +1663 -1174
- package/dist/index.js +4035 -3023
- package/dist/index.js.map +1 -1
- package/dist/styles.css +477 -2803
- package/package.json +16 -21
- package/dist/chunk-VS7ACUTQ.js +0 -3556
- package/dist/chunk-VS7ACUTQ.js.map +0 -1
- package/dist/pickers.cjs +0 -1999
- package/dist/pickers.cjs.map +0 -1
- package/dist/pickers.css +0 -1151
- package/dist/pickers.css.map +0 -1
- package/dist/pickers.d.cts +0 -947
- package/dist/pickers.d.ts +0 -947
- package/dist/pickers.js +0 -117
- package/dist/pickers.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import { AvatarAccessory } from '@scopetickets/avatar';
|
|
1
2
|
import { AvatarAssets } from '@scopetickets/avatar';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import * as react from 'react';
|
|
3
|
+
import { ButtonSize } from '@scopetickets/stui';
|
|
4
|
+
import { IslandAction } from '@scopetickets/stui';
|
|
5
|
+
import { IslandMode } from '@scopetickets/stui';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { ReactNode } from 'react';
|
|
8
|
-
import { Ref } from 'react';
|
|
9
8
|
import { RefObject } from 'react';
|
|
10
9
|
|
|
11
10
|
/** One url, made absolute and put on the configured CDN. */
|
|
@@ -28,6 +27,167 @@ declare type Account = {
|
|
|
28
27
|
readonly userTypeKey: string | null;
|
|
29
28
|
};
|
|
30
29
|
|
|
30
|
+
/**
|
|
31
|
+
* What making the account needs, over and above the order.
|
|
32
|
+
*
|
|
33
|
+
* TWO HALVES OF A NAME AND NOT ONE, because `POST /api/Users` requires both and the
|
|
34
|
+
* order's own NAME step collects them separately — splitting a single string here would
|
|
35
|
+
* put a guess between two places that already agree.
|
|
36
|
+
*
|
|
37
|
+
* NO PASSCODE KEY. It never goes on the wire: the platform joins the verified code to the
|
|
38
|
+
* new account by the ADDRESS, which is why `email` here must be the exact string the code
|
|
39
|
+
* was sent to. `verifiedAddress` is the only reader allowed to supply it.
|
|
40
|
+
*/
|
|
41
|
+
declare type AccountCreationDetails = {
|
|
42
|
+
readonly firstName: string;
|
|
43
|
+
readonly lastName: string;
|
|
44
|
+
readonly email: string;
|
|
45
|
+
readonly password: string;
|
|
46
|
+
readonly phone: string | null;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* WHAT MAKING AN ACCOUNT ACTUALLY COSTS, now that the operations exist. Injected so the
|
|
51
|
+
* flow can be walked without a server, and so the account work lands here rather than in
|
|
52
|
+
* a component.
|
|
53
|
+
*
|
|
54
|
+
* It was written before the endpoints were known and guessed two of them wrong. The
|
|
55
|
+
* shape below is what `packages/api` actually offers.
|
|
56
|
+
*/
|
|
57
|
+
declare type AccountCreationGateway = {
|
|
58
|
+
/** `POST /api/Passcodes/Email`. Resolves with the key `checkPasscode` reads. */
|
|
59
|
+
readonly sendCode: (email: string) => Promise<string>;
|
|
60
|
+
/** `POST /api/Passcodes/Verification`. `false` for a code the platform refused. */
|
|
61
|
+
readonly submitCode: (code: string) => Promise<boolean>;
|
|
62
|
+
/**
|
|
63
|
+
* `GET /api/Passcodes/{passcodeKey}/Status`. Separate from `submitCode` on purpose: the
|
|
64
|
+
* mail may arrive on a phone and be entered there, so the authoritative answer is not
|
|
65
|
+
* always the one this browser posted.
|
|
66
|
+
*/
|
|
67
|
+
readonly checkPasscode: (passcodeKey: string) => Promise<boolean>;
|
|
68
|
+
/**
|
|
69
|
+
* `POST /api/Users`, which mints the session as it creates the account — hence a
|
|
70
|
+
* `Session` back rather than nothing. Everything after this call needs it.
|
|
71
|
+
*/
|
|
72
|
+
readonly createAccount: (details: AccountCreationDetails) => Promise<Session>;
|
|
73
|
+
/**
|
|
74
|
+
* `PUT /api/Users/Photo`, AFTER the account exists, because it needs that session. The
|
|
75
|
+
* buyer chooses the face two steps earlier and the choice is spent here — which is why
|
|
76
|
+
* the photo is not part of `AccountCreationDetails`.
|
|
77
|
+
*/
|
|
78
|
+
readonly setPhoto: (photo: AccountPhoto) => Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Whether there is an account to act for.
|
|
81
|
+
*
|
|
82
|
+
* A QUESTION RATHER THAN A CLIENT. Everything below this line needs a session, and
|
|
83
|
+
* `POST /api/Passkeys/Registrations/Challenges` answers 401 without one — so asking
|
|
84
|
+
* first is the difference between not offering a passkey and offering one that cannot
|
|
85
|
+
* work. The gateway answers it because the gateway holds the client; nothing above
|
|
86
|
+
* reaches past it to ask.
|
|
87
|
+
*/
|
|
88
|
+
readonly signedIn: () => boolean;
|
|
89
|
+
/**
|
|
90
|
+
* `POST /api/Passkeys/Registrations/Challenges`, which opens a ceremony THIS PACKAGE
|
|
91
|
+
* CANNOT RUN. WebAuthn binds a credential to an RP id and the widget is on the
|
|
92
|
+
* customer's origin, so the browser half happens in `packages/passkey-host` and the
|
|
93
|
+
* gateway's job is the two calls either side of it.
|
|
94
|
+
*
|
|
95
|
+
* It also carries `User.Key`, which is the only place the platform hands one back — so
|
|
96
|
+
* a buyer who declines a passkey has still told us who they are, and the follow prompt
|
|
97
|
+
* has an address to write to.
|
|
98
|
+
*/
|
|
99
|
+
readonly openPasskeyRegistration: () => Promise<PasskeyRegistrationChallenge>;
|
|
100
|
+
/** `POST /api/Passkeys/Registrations`, with whatever the ceremony document handed back. */
|
|
101
|
+
readonly lodgePasskey: (credential: PasskeyRegistrationRequest) => Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* THE SIGNED-IN ACCOUNT'S PASSKEYS (`GET /api/Users/Me/Passkeys`), oldest
|
|
104
|
+
* first. Throws where the platform refused or failed, so a caller can tell "none" from "unknown".
|
|
105
|
+
* Optional, so a gateway that cannot ask leaves it out.
|
|
106
|
+
*/
|
|
107
|
+
readonly passkeys?: () => Promise<readonly AccountPasskey[]>;
|
|
108
|
+
/** Removes one, by its `credentialId` (`DELETE /api/Users/Me/Passkeys/{id}`). Throws where it did not go. */
|
|
109
|
+
readonly removePasskey?: (credentialId: string) => Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Emails a password-reset link to an address (`POST /api/Users/PasswordReset`), for somebody
|
|
112
|
+
* who cannot sign in, so it needs no session. Throws where it did not go. Optional, as above.
|
|
113
|
+
*/
|
|
114
|
+
readonly requestPasswordReset?: (email: string) => Promise<void>;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* THE SIGN-IN, AS A CARD A HOST CAN MOUNT — checkout-native's `AccountIsland`, for the web:
|
|
119
|
+
* `createCheckout(parts)`, `createAccountDriver`, core's `accountIslandView` for every card and
|
|
120
|
+
* `restingEffect` for every press — sign in (passkey first, then the password funnel), welcome
|
|
121
|
+
* back, sign out, and the notice for a sign-in that failed. The web adds what native cannot yet:
|
|
122
|
+
* the passkey ceremony, through the widget's own `usePasskeySignIn` and `PasskeyButton`.
|
|
123
|
+
*
|
|
124
|
+
* Its options are core's cards', the checkout's own: "Use Passkey" with its glyph, then "Use
|
|
125
|
+
* Email", and never the guest route, which is a purchase's to allow. Its titles and subtitles
|
|
126
|
+
* are core's `ACCOUNT_SIGN_IN_COPY`: "Sign In to" the wordmark, or "Sign In with" it over an
|
|
127
|
+
* integration (`withinIntegration`); and, once signed in, a doing card ("Signing In", the
|
|
128
|
+
* account's avatar, the press busy) where core's ready card says "Welcome Back!" — the host
|
|
129
|
+
* opens what follows once it is ready.
|
|
130
|
+
*
|
|
131
|
+
* Drawn BARE — `IslandCard`s with no surface behind them, each change of card carried by
|
|
132
|
+
* `HeroSwap` — on the island's own anchor, so it centres in whatever positioned box holds it. A
|
|
133
|
+
* host wanting the surface mounts the cards in `CheckoutIsland` instead, as `RestingIsland` does.
|
|
134
|
+
*/
|
|
135
|
+
export declare function AccountIsland({ parts, passkeyHostUrl, avatarAssets, avatarAccessory, withinIntegration, onReport, mode, close, buttonSize, }: AccountIslandProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
export declare type AccountIslandProps = {
|
|
138
|
+
readonly parts: CheckoutParts;
|
|
139
|
+
/** Where the passkey ceremony is served — `ENVIRONMENT_URLS[environment].passkeyHostUrl`. */
|
|
140
|
+
readonly passkeyHostUrl: string;
|
|
141
|
+
readonly avatarAssets?: AvatarAssets;
|
|
142
|
+
/**
|
|
143
|
+
* In the avatar's corner on every card (Conall, 2026-11-17): opened over an integration, that
|
|
144
|
+
* integration's own mark. Absent, the avatar stands alone.
|
|
145
|
+
*/
|
|
146
|
+
readonly avatarAccessory?: AvatarAccessory | null;
|
|
147
|
+
/** Opened over an integration's page: "Sign in with" the wordmark, where standalone it is "Sign in to". */
|
|
148
|
+
readonly withinIntegration?: boolean;
|
|
149
|
+
readonly onReport?: (report: NoticeReport) => void;
|
|
150
|
+
/** Holds the island in one mode, whatever the system's; absent, it follows the system. */
|
|
151
|
+
readonly mode?: 'dark' | 'light';
|
|
152
|
+
/**
|
|
153
|
+
* A WAY OUT, LAST (Conall, 2026-11-17): over an integration's page, a secondary button under the
|
|
154
|
+
* sign-in cards' others that closes what holds them ("Close"). Absent, none: standalone, there is
|
|
155
|
+
* nowhere to go back to.
|
|
156
|
+
*/
|
|
157
|
+
readonly close?: {
|
|
158
|
+
readonly label: string;
|
|
159
|
+
readonly onPress: () => void;
|
|
160
|
+
};
|
|
161
|
+
/** Its buttons' size, the passkey's with them (STui's `ButtonSize`); absent, the island's own. */
|
|
162
|
+
readonly buttonSize?: ButtonSize;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* ONE OF THE SIGNED-IN ACCOUNT'S PASSKEYS, as `GET /api/Users/Me/Passkeys` answers it: what
|
|
167
|
+
* removing it takes, and when it was made. The platform keeps no name, device or
|
|
168
|
+
* last use, so there is none to show.
|
|
169
|
+
*/
|
|
170
|
+
declare type AccountPasskey = {
|
|
171
|
+
/** The browser's `credential.id`, as registered; what removing it takes. */
|
|
172
|
+
readonly credentialId: string;
|
|
173
|
+
/** When it was registered, ISO 8601 in UTC; `null` where the wire had none. */
|
|
174
|
+
readonly createdAt: string | null;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* A face, in the two forms `ImageRequest` accepts — and the two the step can produce.
|
|
179
|
+
*
|
|
180
|
+
* A stock face is the PLATFORM's and already has a URL, so it is sent by reference; an
|
|
181
|
+
* upload exists only in this browser and has to be carried whole.
|
|
182
|
+
*/
|
|
183
|
+
declare type AccountPhoto = {
|
|
184
|
+
readonly kind: 'STOCK';
|
|
185
|
+
readonly url: string;
|
|
186
|
+
} | {
|
|
187
|
+
readonly kind: 'UPLOAD';
|
|
188
|
+
readonly encoded: string;
|
|
189
|
+
};
|
|
190
|
+
|
|
31
191
|
/**
|
|
32
192
|
* A card's button as this file describes one — the role and the words, plus whatever
|
|
33
193
|
* mark the design puts beside them. `onPress` is the gallery's, since a fixture has
|
|
@@ -40,6 +200,13 @@ export declare type AnswerReporting = {
|
|
|
40
200
|
readonly onAnsweredChange?: (answered: boolean) => void;
|
|
41
201
|
};
|
|
42
202
|
|
|
203
|
+
declare type AnswersSend = {
|
|
204
|
+
readonly ok: true;
|
|
205
|
+
} | {
|
|
206
|
+
readonly ok: false;
|
|
207
|
+
readonly reason: string;
|
|
208
|
+
};
|
|
209
|
+
|
|
43
210
|
export declare function artworkOrigin(environment?: Environment): string;
|
|
44
211
|
|
|
45
212
|
/** The artwork half of the wire's `Theme`, and nothing else it carries. */
|
|
@@ -49,18 +216,22 @@ export declare type ArtworkTheme = {
|
|
|
49
216
|
};
|
|
50
217
|
|
|
51
218
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
219
|
+
* WHICH ATTEMPT AN ANSWER BELONGS TO — the drop rule, in one place.
|
|
220
|
+
*
|
|
221
|
+
* Every machine here asks the platform something that takes a round trip, and a buyer can
|
|
222
|
+
* abandon the conversation halfway: a hold lapses and is restarted, an event is changed, a
|
|
223
|
+
* card is closed and opened again, a device is waved away. Each of those asks again while
|
|
224
|
+
* the previous answers are still in the air, and the older one would overwrite the newer.
|
|
56
225
|
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* and an unmatched key is dropped. A field that is not there at all is nobody having said
|
|
60
|
-
* anything, and guessing "none" from silence would strip a host's working key and charge
|
|
61
|
-
* every head full price.
|
|
226
|
+
* So every effect is issued under an attempt, every result carries the one it was issued
|
|
227
|
+
* under, and a reducer drops anything naming another.
|
|
62
228
|
*/
|
|
63
|
-
|
|
229
|
+
declare const ATTEMPT: unique symbol;
|
|
230
|
+
|
|
231
|
+
/** Branded so it cannot be confused with a poll's epoch or any other count. */
|
|
232
|
+
declare type Attempt = number & {
|
|
233
|
+
readonly [ATTEMPT]: true;
|
|
234
|
+
};
|
|
64
235
|
|
|
65
236
|
declare interface AttendeeTicket {
|
|
66
237
|
ID: number;
|
|
@@ -68,16 +239,43 @@ declare interface AttendeeTicket {
|
|
|
68
239
|
AttendeeID: number;
|
|
69
240
|
TicketID: number | null;
|
|
70
241
|
TransactionID: number;
|
|
242
|
+
/** What has become of it, in the platform's own word ("Valid" on staging). The full set is unwritten. */
|
|
71
243
|
Status: string;
|
|
72
244
|
TotalAmount: number;
|
|
73
245
|
Currency: string;
|
|
74
246
|
TimeBooked: string;
|
|
247
|
+
/**
|
|
248
|
+
* When it was emailed to its holder, and when it was scanned in. On the platform's row but
|
|
249
|
+
* not in its published model, so OPTIONAL here: absent or null for a ticket not yet sent or
|
|
250
|
+
* admitted, and for a platform that does not send the field.
|
|
251
|
+
*/
|
|
252
|
+
TimeEmailed?: string | null;
|
|
253
|
+
TimeAdmitted?: string | null;
|
|
254
|
+
/**
|
|
255
|
+
* THE REFUNDS ITS CUSTOMER WAS SENT, oldest first: money back to their card, never a
|
|
256
|
+
* reversal of a transfer. A whole-order refund appears as this ticket's share. Sent by
|
|
257
|
+
* `GET /api/Transactions/{key}/Items` only; absent on any other read or older platform.
|
|
258
|
+
*/
|
|
259
|
+
Refunds?: AttendeeTicketRefund[] | null;
|
|
75
260
|
OrganisationAmount: number;
|
|
76
261
|
ScopeAmount: number;
|
|
77
262
|
BrokerAmount: number;
|
|
78
263
|
DiscountAmount: number;
|
|
79
264
|
}
|
|
80
265
|
|
|
266
|
+
/** One refund an attendee ticket's customer was sent (`AttendeeTicket.Refunds`). */
|
|
267
|
+
declare interface AttendeeTicketRefund {
|
|
268
|
+
/** Minor units. */
|
|
269
|
+
Amount: number;
|
|
270
|
+
Currency?: string | null;
|
|
271
|
+
/** When the platform confirmed it. */
|
|
272
|
+
Time: string;
|
|
273
|
+
/** `refund`, or `resale` where the ticket was sold on and this is its seller's payout. */
|
|
274
|
+
Kind?: string;
|
|
275
|
+
/** `item` for a refund of this ticket; `order` for its share of a whole-order refund. */
|
|
276
|
+
Scope?: string;
|
|
277
|
+
}
|
|
278
|
+
|
|
81
279
|
/**
|
|
82
280
|
* WHAT WE ASKED FOR, ZIPPED WITH WHAT CAME BACK — the user type per created item.
|
|
83
281
|
*
|
|
@@ -158,6 +356,68 @@ declare type AuthCardId =
|
|
|
158
356
|
*/
|
|
159
357
|
| 'ADD_TO_ACCOUNT';
|
|
160
358
|
|
|
359
|
+
declare type AuthEvent =
|
|
360
|
+
/**
|
|
361
|
+
* Authenticated, however it happened — a passkey, a password, or an account just made.
|
|
362
|
+
* The credential rides the same event as the account that proved it, so the two cannot
|
|
363
|
+
* be set from different places and drift.
|
|
364
|
+
*/
|
|
365
|
+
{
|
|
366
|
+
readonly kind: 'SIGNED_IN';
|
|
367
|
+
readonly account: Account;
|
|
368
|
+
readonly credential: Session;
|
|
369
|
+
readonly how: SignInRoute;
|
|
370
|
+
}
|
|
371
|
+
/** The buyer chose to leave. Both halves go, and neither is EXPIRED — they did this. */
|
|
372
|
+
| {
|
|
373
|
+
readonly kind: 'SIGNED_OUT';
|
|
374
|
+
}
|
|
375
|
+
/** Declining to sign in for this order. Touches the credential not at all. */
|
|
376
|
+
| {
|
|
377
|
+
readonly kind: 'GUEST_CHOSEN';
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* A call came back refused. The credential decides what happens next — a refresh pair is
|
|
381
|
+
* spent, and a session with none is done — and the BUYER only changes once there is
|
|
382
|
+
* nothing left to try.
|
|
383
|
+
*
|
|
384
|
+
* `remembered` is what separates a buyer who comes back to their own face from one who
|
|
385
|
+
* comes back to a stranger's card; see `expireSession`, which is the only thing in the
|
|
386
|
+
* domain that produces `RECOGNISED`.
|
|
387
|
+
*/
|
|
388
|
+
| {
|
|
389
|
+
readonly kind: 'CALL_REFUSED';
|
|
390
|
+
readonly remembered: boolean;
|
|
391
|
+
}
|
|
392
|
+
/** A refresh that worked. The buyer never knew. */
|
|
393
|
+
| {
|
|
394
|
+
readonly kind: 'REFRESHED';
|
|
395
|
+
readonly result: StaffAuthResult;
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
declare type AuthMachine = {
|
|
399
|
+
/** Who is buying, as every checkpoint card reads it. */
|
|
400
|
+
readonly session: AuthSession;
|
|
401
|
+
/** The credential, as the client sends it. */
|
|
402
|
+
readonly credential: Session;
|
|
403
|
+
/**
|
|
404
|
+
* HOW THIS BUYER AUTHENTICATED HERE, or `null` for one who has not — including one who
|
|
405
|
+
* arrived authenticated, since a seed carries no door. Gone the moment they stop being
|
|
406
|
+
* authenticated, so it never outlives the sign-in it describes.
|
|
407
|
+
*/
|
|
408
|
+
readonly how: SignInRoute | null;
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
/** The three things a session needs of whatever carries its calls. */
|
|
412
|
+
declare type AuthPort = {
|
|
413
|
+
/** The header to send from here on, or `null` where there is nothing to send. */
|
|
414
|
+
readonly setAuthorization: (authorization: string | null) => void;
|
|
415
|
+
/** Who to tell when a call carrying a session is refused. Answers with a detach. */
|
|
416
|
+
readonly onRefused: (report: () => void) => () => void;
|
|
417
|
+
/** `POST /api/Auth/Tokens` — the pair, spent for a new header. */
|
|
418
|
+
readonly refresh: (pair: RefreshCredentials) => Promise<StaffAuthResult>;
|
|
419
|
+
};
|
|
420
|
+
|
|
161
421
|
/** The session, as the flow sees it — everything a checkpoint decides from. */
|
|
162
422
|
declare type AuthSession = {
|
|
163
423
|
readonly auth: AuthState;
|
|
@@ -185,6 +445,13 @@ declare type AuthState =
|
|
|
185
445
|
readonly account: Account;
|
|
186
446
|
};
|
|
187
447
|
|
|
448
|
+
declare type AuthStore = {
|
|
449
|
+
/** Stable between transitions, so a renderer may compare by reference. */
|
|
450
|
+
readonly getSnapshot: () => AuthMachine;
|
|
451
|
+
readonly subscribe: (listener: () => void) => () => void;
|
|
452
|
+
readonly dispatch: (event: AuthEvent) => void;
|
|
453
|
+
};
|
|
454
|
+
|
|
188
455
|
/**
|
|
189
456
|
* WHERE BACK GOES — the whole navigation, as one function.
|
|
190
457
|
*
|
|
@@ -276,6 +543,32 @@ export declare type BookedTicket = {
|
|
|
276
543
|
*/
|
|
277
544
|
readonly attendeeTicketId: number;
|
|
278
545
|
readonly holder: Ticketholder;
|
|
546
|
+
/**
|
|
547
|
+
* WHAT HAS HAPPENED TO IT, AS THE PLATFORM SAID IT — off the attendee-ticket list's row, so
|
|
548
|
+
* ABSENT where that list did not answer (the summary carries none of it), which is "not known"
|
|
549
|
+
* and not "nothing has happened".
|
|
550
|
+
*/
|
|
551
|
+
readonly lifecycle?: TicketLifecycle;
|
|
552
|
+
/**
|
|
553
|
+
* ITS USER TYPE AS THE PLATFORM NAMED IT ("Family of 3"), off the summary's item
|
|
554
|
+
* (`Items[].UserType.Name`; Conall, 2026-11-10). Absent where the summary did not say.
|
|
555
|
+
* A caller's own attribution still wins (`dressBooking`).
|
|
556
|
+
*/
|
|
557
|
+
readonly userType?: string | null;
|
|
558
|
+
/**
|
|
559
|
+
* WHICH PRODUCT IT IS, by the platform's numeric id (`TicketID` on the attendee-ticket
|
|
560
|
+
* list's row), for `BookingGateway.product`. Absent where the list did not answer.
|
|
561
|
+
*/
|
|
562
|
+
readonly productId?: number | null;
|
|
563
|
+
/**
|
|
564
|
+
* ITS OWN SESSION, "11:00" to "12:00" on the venue's clock, off the summary's item
|
|
565
|
+
* (`Items[].Timeslot`; Conall, 2026-11-10): the ticket's, not its event's opening hours.
|
|
566
|
+
* Absent where the summary did not say (a ticket with no session, or a platform before it sent one).
|
|
567
|
+
*/
|
|
568
|
+
readonly timeslot?: {
|
|
569
|
+
readonly startTime: string;
|
|
570
|
+
readonly endTime: string;
|
|
571
|
+
} | null;
|
|
279
572
|
};
|
|
280
573
|
|
|
281
574
|
/** A booking as the cards draw it — the record, dressed. */
|
|
@@ -395,6 +688,23 @@ export declare const BOOKING_COPY: {
|
|
|
395
688
|
export declare type BookingGateway = {
|
|
396
689
|
/** The booking behind a cart, or `null` where the cart has not become one. */
|
|
397
690
|
readonly read: (cartKey: string) => Promise<BookingRecord | null>;
|
|
691
|
+
/**
|
|
692
|
+
* THE SAME BOOKING, READ AS ITS BUYER: the signed-in read, which adds each holder's email.
|
|
693
|
+
* Where the platform does not count the session as the buyer (a guest order under an address
|
|
694
|
+
* they have not verified), it is the open `read`'s answer, without the emails. Optional, so a
|
|
695
|
+
* gateway with no session, as the checkout's, leaves it out.
|
|
696
|
+
*/
|
|
697
|
+
readonly readMine?: (cartKey: string) => Promise<BookingRecord | null>;
|
|
698
|
+
/**
|
|
699
|
+
* THE SIGNED-IN USER'S BOOKINGS, a page of them (`GET /api/Users/Me/Bookings`): every paid order they bought
|
|
700
|
+
* or hold a ticket in, with only what is theirs to see, as the platform answers it. `upcoming` soonest first,
|
|
701
|
+
* `past` latest first; `after`, the previous page's `Next`. Optional, as `readMine`: a session's read.
|
|
702
|
+
*/
|
|
703
|
+
readonly listMine?: (query: {
|
|
704
|
+
readonly when: 'upcoming' | 'past';
|
|
705
|
+
readonly limit?: number;
|
|
706
|
+
readonly after?: string | null;
|
|
707
|
+
}) => Promise<MyBookingsResponse>;
|
|
398
708
|
/**
|
|
399
709
|
* Name a person on one ticket — creating the attendee where there is none, which is the
|
|
400
710
|
* ordinary case. `false` is the platform declining; anything worse keeps travelling and
|
|
@@ -423,6 +733,39 @@ export declare type BookingGateway = {
|
|
|
423
733
|
* Wallet takes it from there. By the ticket's key, which is the wallet slot's.
|
|
424
734
|
*/
|
|
425
735
|
readonly passUrl: (ticketKey: string) => string;
|
|
736
|
+
/**
|
|
737
|
+
* ONE PRODUCT, by `BookedTicket.productId`: its name, note and validity, or `null` where the
|
|
738
|
+
* platform has none. Optional, so a gateway that cannot ask leaves it out.
|
|
739
|
+
*/
|
|
740
|
+
readonly product?: (id: number) => Promise<TicketProduct | null>;
|
|
741
|
+
/**
|
|
742
|
+
* WHO IS ON AT AN EVENT, by its key, in the bill's order; `[]` for no one, `null` where the
|
|
743
|
+
* platform refused or failed. Optional, so a gateway that cannot ask leaves it out.
|
|
744
|
+
*/
|
|
745
|
+
readonly talent?: (eventKey: string) => Promise<readonly EventTalent[] | null>;
|
|
746
|
+
/**
|
|
747
|
+
* THE FAQS FOR A DAY'S EVENTS, by their keys, merged into one answer by the platform, grouped by
|
|
748
|
+
* category; `[]` for none, `null` where the platform refused or failed. Optional, so a gateway
|
|
749
|
+
* that cannot ask leaves it out.
|
|
750
|
+
*/
|
|
751
|
+
readonly faqs?: (eventKeys: readonly string[]) => Promise<readonly FaqCategory[] | null>;
|
|
752
|
+
/**
|
|
753
|
+
* WHERE A VENUE IS, by its key: its city, its point, and the map the platform keeps of it;
|
|
754
|
+
* `null` where it has no address, or the platform refused or failed. Optional, so a gateway
|
|
755
|
+
* that cannot ask leaves it out.
|
|
756
|
+
*/
|
|
757
|
+
readonly venueAddress?: (venueKey: string) => Promise<VenueAddress | null>;
|
|
758
|
+
/**
|
|
759
|
+
* THE WEATHER AT AN EVENT, by its key, for the hour holding `start` (`HH:MM` on the venue's
|
|
760
|
+
* clock); `null` where there is none (past, or beyond the eight days after today) or the platform refused
|
|
761
|
+
* or failed. Asked as the signed-in user, so only a gateway with a session has it.
|
|
762
|
+
*/
|
|
763
|
+
readonly weather?: (eventKey: string, start?: string) => Promise<EventForecast | null>;
|
|
764
|
+
/**
|
|
765
|
+
* THE ORDER'S RECEIPT, a PDF, by the transaction's key; `null` where the platform refused or
|
|
766
|
+
* failed. Optional, so a gateway that cannot ask leaves it out.
|
|
767
|
+
*/
|
|
768
|
+
readonly receipt?: (transactionKey: string) => Promise<Blob | null>;
|
|
426
769
|
};
|
|
427
770
|
|
|
428
771
|
/**
|
|
@@ -620,40 +963,34 @@ declare type ButtonMark = {
|
|
|
620
963
|
readonly title?: string;
|
|
621
964
|
});
|
|
622
965
|
|
|
623
|
-
|
|
624
|
-
|
|
966
|
+
declare interface BuyerDetails {
|
|
967
|
+
FirstName: string;
|
|
968
|
+
LastName: string;
|
|
969
|
+
Email: string;
|
|
970
|
+
Phone?: string;
|
|
971
|
+
}
|
|
625
972
|
|
|
626
973
|
/**
|
|
627
|
-
*
|
|
628
|
-
*
|
|
974
|
+
* WHAT A WRITE CAME TO. Unions rather than throws, because each has a refusal that is the
|
|
975
|
+
* ordinary case. Anything that is not the platform refusing keeps travelling.
|
|
629
976
|
*/
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
*/
|
|
638
|
-
readonly month: CalendarMonthKey;
|
|
639
|
-
/** Which half of that key to say. See `CalendarGrain`. */
|
|
640
|
-
readonly grain: CalendarGrain;
|
|
641
|
-
/** Where pressing it goes — the picker for the period it names. */
|
|
642
|
-
readonly onPress?: () => void;
|
|
977
|
+
declare type BuyerSave =
|
|
978
|
+
/** A buyer is on this cart. Includes the cart that already had one — see `buyerAlreadyOnCart`. */
|
|
979
|
+
{
|
|
980
|
+
readonly ok: true;
|
|
981
|
+
} | {
|
|
982
|
+
readonly ok: false;
|
|
983
|
+
readonly reason: string;
|
|
643
984
|
};
|
|
644
985
|
|
|
645
|
-
/** Laying a run of days out as a month grid — the day picker's whole domain. */
|
|
646
|
-
/** `YYYY-MM`.. */
|
|
647
|
-
export declare type CalendarMonthKey = string;
|
|
648
|
-
|
|
649
986
|
/** A run of linked events, as the calendar needs it. */
|
|
650
|
-
|
|
987
|
+
declare type CalendarSeries = {
|
|
651
988
|
/** Ordered by day, then start. May hold several entries for one day. */
|
|
652
989
|
readonly events: readonly CalendarSeriesEvent[];
|
|
653
990
|
};
|
|
654
991
|
|
|
655
992
|
/** One event in the run, as the calendar needs it. */
|
|
656
|
-
|
|
993
|
+
declare type CalendarSeriesEvent = {
|
|
657
994
|
readonly eventKey: string;
|
|
658
995
|
readonly name: string;
|
|
659
996
|
/**
|
|
@@ -760,26 +1097,25 @@ export declare type CardAction = {
|
|
|
760
1097
|
readonly cancels?: boolean;
|
|
761
1098
|
};
|
|
762
1099
|
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
*/
|
|
772
|
-
name: string;
|
|
1100
|
+
declare interface Cart {
|
|
1101
|
+
Key: string;
|
|
1102
|
+
EventId: number;
|
|
1103
|
+
TotalAmount: number;
|
|
1104
|
+
OrganisationAmount: number;
|
|
1105
|
+
ScopeAmount: number;
|
|
1106
|
+
BrokerAmount: number;
|
|
1107
|
+
DiscountAmount: number;
|
|
773
1108
|
/**
|
|
774
|
-
*
|
|
775
|
-
*
|
|
1109
|
+
* What the promo code took off the whole order, fees included — the order's price without
|
|
1110
|
+
* the code less its price with it, 0 with no code. Not `DiscountAmount`, which leaves out the
|
|
1111
|
+
* fee a code waives. Absent from the cart `v2/Carts/{key}/Items` answers with.
|
|
776
1112
|
*/
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
1113
|
+
PromoSavingAmount?: number;
|
|
1114
|
+
Items: CartItem[];
|
|
1115
|
+
PromoCode: string | null;
|
|
1116
|
+
/** UTC timestamp when cart escrow expires (ISO 8601 string). Anticipated BE field — currently injected client-side. */
|
|
1117
|
+
ExpirationTime?: string | null;
|
|
1118
|
+
}
|
|
783
1119
|
|
|
784
1120
|
export declare const CART_VIEW: {
|
|
785
1121
|
readonly title: "My Cart";
|
|
@@ -808,6 +1144,18 @@ export declare const CART_VIEW: {
|
|
|
808
1144
|
readonly remaining: (clock: string) => string;
|
|
809
1145
|
};
|
|
810
1146
|
|
|
1147
|
+
/**
|
|
1148
|
+
* WHAT A CART IS TO BE FILLED WITH, reduced to the part the items are built from. The
|
|
1149
|
+
* order's own ask is this plus the user-type names, which nothing here needs — see
|
|
1150
|
+
* `OrderAsk`, which extends it rather than restating it.
|
|
1151
|
+
*/
|
|
1152
|
+
declare type CartFilling = {
|
|
1153
|
+
/** How many of each user type, BY NAME. `assignmentFor` turns a name into a key. */
|
|
1154
|
+
readonly composition: Readonly<Record<string, number>>;
|
|
1155
|
+
/** The session as the cart wants it — a time of day at both ends, not a timestamp. */
|
|
1156
|
+
readonly timeslot: TimeslotRequest | undefined;
|
|
1157
|
+
};
|
|
1158
|
+
|
|
811
1159
|
declare interface CartItem {
|
|
812
1160
|
Key: string;
|
|
813
1161
|
Type: string;
|
|
@@ -873,10 +1221,10 @@ export declare type CartLineContext = {
|
|
|
873
1221
|
* WHAT IS IN THE CART — the design's `ItemsInCart`, and the total under it.
|
|
874
1222
|
*
|
|
875
1223
|
* THE LINE AMOUNTS SHARE ONE COLUMN, as wide as the widest of them, so the symbols stack
|
|
876
|
-
* down the card instead of drifting with the digits.
|
|
877
|
-
*
|
|
878
|
-
*
|
|
879
|
-
* the whole column by exactly one.
|
|
1224
|
+
* down the card instead of drifting with the digits. Each is STui's `MoneyAmount`, whose
|
|
1225
|
+
* digits' column is `--scopetickets-money-figure` characters of the mono face: published here
|
|
1226
|
+
* as a COUNT of characters — see `widestAmount` — so no element is measured, and adding a
|
|
1227
|
+
* line that is a digit longer moves the whole column by exactly one.
|
|
880
1228
|
*
|
|
881
1229
|
* THE TOTAL IS IN NEITHER. `3795:8748` sets the whole of `€ 18.00` in `text/bold/lg` —
|
|
882
1230
|
* Basier Square Medium 20/24 — where a line's own figure is `text/mono/md`. Drawn as one
|
|
@@ -908,6 +1256,37 @@ export declare type CartLinesProps = {
|
|
|
908
1256
|
readonly totalLabel: string;
|
|
909
1257
|
};
|
|
910
1258
|
|
|
1259
|
+
/**
|
|
1260
|
+
* WHY A LOAD FAILED, AND WHICH OF THE THREE CALLS IT WAS. One notice covers all three and
|
|
1261
|
+
* reads the same whether the event key was wrong or the platform would not reserve the
|
|
1262
|
+
* heads, so `asking` is what whoever has to fix it needs.
|
|
1263
|
+
*
|
|
1264
|
+
* A union rather than a throw, because a refusal is expected: a sold-out session is the
|
|
1265
|
+
* platform working. `cause` travels whole — `fillFromRefusal` reads the `ApiError` inside
|
|
1266
|
+
* it to tell inventory from fault.
|
|
1267
|
+
*/
|
|
1268
|
+
declare type CartLoad = {
|
|
1269
|
+
readonly ok: true;
|
|
1270
|
+
readonly opening: CartOpening;
|
|
1271
|
+
} | {
|
|
1272
|
+
readonly ok: false;
|
|
1273
|
+
readonly asking: string;
|
|
1274
|
+
readonly cause: unknown;
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1277
|
+
/** What a cart load came to — the cart, who each item is for, and the money. */
|
|
1278
|
+
declare type CartOpening = {
|
|
1279
|
+
readonly cart: Cart;
|
|
1280
|
+
readonly items: readonly AttributedCartItem[];
|
|
1281
|
+
readonly fill: OrderFill;
|
|
1282
|
+
readonly currency: string | undefined;
|
|
1283
|
+
readonly productName: string | undefined;
|
|
1284
|
+
/** The instant the cart was created, or `null` for one that was adopted. */
|
|
1285
|
+
readonly heldFrom: number | null;
|
|
1286
|
+
/** In the same transition as the cart, so the walk never sees one without them. */
|
|
1287
|
+
readonly eventQuestions: EventQuestionsLoad;
|
|
1288
|
+
};
|
|
1289
|
+
|
|
911
1290
|
/**
|
|
912
1291
|
* The cart screen as the PROPS that turn a card into it — the hero and its badge are the
|
|
913
1292
|
* caller's, because the avatar is the buyer's and this file draws none.
|
|
@@ -939,6 +1318,8 @@ declare type ChargeMethod = 'card' | 'revolut_pay' | 'apple_pay' | 'google_pay';
|
|
|
939
1318
|
/** Bumped only by a rename or a removal — see the analytics guide's versioning. */
|
|
940
1319
|
declare const CHECKOUT_EVENT_SCHEMA = 1;
|
|
941
1320
|
|
|
1321
|
+
declare type CheckoutEnvironment = Exclude<Environment, 'internal'>;
|
|
1322
|
+
|
|
942
1323
|
/** One thing that happened, and where. The public shape a host's `onEvent` is handed. */
|
|
943
1324
|
export declare type CheckoutEvent = CheckoutEventBody & {
|
|
944
1325
|
readonly context: EventContext;
|
|
@@ -997,7 +1378,7 @@ declare type CheckoutEventBody = {
|
|
|
997
1378
|
export declare type CheckoutEventName = CheckoutEventBody['name'];
|
|
998
1379
|
|
|
999
1380
|
/** The island, as the design draws it: a pill that becomes a card. */
|
|
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;
|
|
1381
|
+
export declare function CheckoutIsland({ expanded, contentKey, onToggle, avatar, title, subtitle, pillCopy, input, bay, bayVisible, bayRows, variant, sealed, typed, closable, actionLabel, actionBusy, actions, footer, lead, bayActions, dismiss, dismissIcon, dismissLabel, headerLead, headerTrail, mode, align, placement, journeyFullscreen, }: CheckoutIslandProps): react_jsx_runtime.JSX.Element;
|
|
1001
1382
|
|
|
1002
1383
|
export declare type CheckoutIslandProps = {
|
|
1003
1384
|
/** Collapsed is the pill; expanded is the card. */
|
|
@@ -1094,6 +1475,8 @@ export declare type CheckoutIslandProps = {
|
|
|
1094
1475
|
readonly actions: readonly IslandAction[];
|
|
1095
1476
|
/** A control of the card's own shape where the buttons go — see `IslandCardProps.footer`. */
|
|
1096
1477
|
readonly footer?: ReactNode;
|
|
1478
|
+
/** The same, at the head of the buttons — see `IslandCardProps.lead`. */
|
|
1479
|
+
readonly lead?: ReactNode;
|
|
1097
1480
|
readonly bayActions?: readonly IslandAction[];
|
|
1098
1481
|
/**
|
|
1099
1482
|
* Whether the card's header button steps BACK or closes the island. Drives the glyph,
|
|
@@ -1124,6 +1507,94 @@ export declare type CheckoutIslandProps = {
|
|
|
1124
1507
|
readonly journeyFullscreen?: boolean;
|
|
1125
1508
|
};
|
|
1126
1509
|
|
|
1510
|
+
export declare type CheckoutParts = {
|
|
1511
|
+
readonly clock: Clock;
|
|
1512
|
+
readonly logger: Logger;
|
|
1513
|
+
/**
|
|
1514
|
+
* THE GATEWAYS, ASKED FOR AT THE MOMENT ONE IS NEEDED rather than held — `null` where
|
|
1515
|
+
* there is no platform behind the card, and a host that swaps its client mid-purchase
|
|
1516
|
+
* gives a different one without the buyer losing what they had typed. The order's is
|
|
1517
|
+
* the exception and is held: a cart outlives any one call, and `OrderStore` takes it
|
|
1518
|
+
* that way already.
|
|
1519
|
+
*/
|
|
1520
|
+
readonly order: OrderGateway;
|
|
1521
|
+
readonly account: () => AccountCreationGateway | null;
|
|
1522
|
+
readonly signIn: () => SignInGateway | null;
|
|
1523
|
+
readonly run: () => RunGateway | null;
|
|
1524
|
+
/**
|
|
1525
|
+
* WHICH INVENTORIES THIS MOUNT SELLS, as the host wrote them — bare keys, or keys named
|
|
1526
|
+
* for Select Day's filter. The run gateway was built from the same list (see
|
|
1527
|
+
* `checkoutParts`), so the island reads it here rather than being told a second time.
|
|
1528
|
+
*/
|
|
1529
|
+
readonly inventories?: readonly InventoryChoice[];
|
|
1530
|
+
readonly feedback: () => FeedbackGateway | null;
|
|
1531
|
+
/**
|
|
1532
|
+
* MY BOOKING'S CALLS, for the island that follows a purchase. Not the checkout's own — no
|
|
1533
|
+
* machine here reads it — and carried on the parts because they are the one thing a host
|
|
1534
|
+
* is handed: a native host holds no client, so a booking it cannot reach through these is
|
|
1535
|
+
* a booking it cannot open.
|
|
1536
|
+
*/
|
|
1537
|
+
readonly booking: () => BookingGateway | null;
|
|
1538
|
+
/**
|
|
1539
|
+
* `ENVIRONMENT_URLS.passkeyRpId` — the authentication challenge does not carry one
|
|
1540
|
+
* where its registration twin does.
|
|
1541
|
+
*/
|
|
1542
|
+
readonly rpId: () => string;
|
|
1543
|
+
/** Where artwork lives, and which platform this is. See `RunParts`, which says why. */
|
|
1544
|
+
readonly artworkUrl: () => string;
|
|
1545
|
+
readonly says: () => {
|
|
1546
|
+
readonly environment: string;
|
|
1547
|
+
readonly apiUrl: string;
|
|
1548
|
+
};
|
|
1549
|
+
/** The once-marker a settled payment writes before anyone is told. */
|
|
1550
|
+
readonly completion: CompletionMarker;
|
|
1551
|
+
/** The host's provider sheets; `null` on the web, whose payment is a frame. */
|
|
1552
|
+
readonly payment: PaymentSheets | null;
|
|
1553
|
+
/**
|
|
1554
|
+
* WHERE A PROFILE PHOTO COMES FROM, on a native host with its own picker — see
|
|
1555
|
+
* `PhotoSource`. Absent on the web, which opens its own file input.
|
|
1556
|
+
*/
|
|
1557
|
+
readonly photos?: PhotoSource;
|
|
1558
|
+
/**
|
|
1559
|
+
* WHAT CARRIES THE CALLS, so the credential can be kept in step with them. Required,
|
|
1560
|
+
* because a session nothing watches lapses silently: the cards keep drawing a buyer who
|
|
1561
|
+
* is signed in and every request keeps going out on a dead header. See `watchSession`.
|
|
1562
|
+
*/
|
|
1563
|
+
readonly port: AuthPort;
|
|
1564
|
+
/**
|
|
1565
|
+
* WHO IS BUYING ON ARRIVAL. Spent once — the widget owns identity from mount, and a
|
|
1566
|
+
* seed that could be given twice would be a second authority over the one thing that
|
|
1567
|
+
* must have exactly one. See `createAuthStore`.
|
|
1568
|
+
*/
|
|
1569
|
+
readonly seed?: AuthSession;
|
|
1570
|
+
/**
|
|
1571
|
+
* STORES SOMEBODY ABOVE THIS ALREADY OWNS, taken as they are rather than built again.
|
|
1572
|
+
*
|
|
1573
|
+
* The web widget keeps who is buying and what is being sold ABOVE the purchase: the
|
|
1574
|
+
* resting pill, the purchase and the booking are separate faces of one island, and
|
|
1575
|
+
* identity has to survive the swap between them — a second auth store here would be a
|
|
1576
|
+
* second authority over the one thing that must have exactly one. An adopted run is the
|
|
1577
|
+
* caller's to keep alive, and is not disposed here.
|
|
1578
|
+
*
|
|
1579
|
+
* THE SESSION IS STILL WATCHED HERE. The owner holds the credential; the watch belongs to
|
|
1580
|
+
* whatever is making calls on it, which is each face in turn — one composed store per
|
|
1581
|
+
* face, so one watch at a time, stopped when the face goes.
|
|
1582
|
+
*
|
|
1583
|
+
* `seed`, `run`, `artworkUrl` and `says` build the two stores this replaces, and go
|
|
1584
|
+
* unread for whichever is adopted.
|
|
1585
|
+
*/
|
|
1586
|
+
readonly adopted?: {
|
|
1587
|
+
readonly auth?: AuthStore;
|
|
1588
|
+
readonly run?: RunStore;
|
|
1589
|
+
};
|
|
1590
|
+
/**
|
|
1591
|
+
* THE TICKET THE RATING IS FOR, where the renderer knows the payment from somewhere the
|
|
1592
|
+
* order machine does not — a host asserting its own `payment`, which names the ticket
|
|
1593
|
+
* the platform told IT about. Absent, the order's own placed payment answers.
|
|
1594
|
+
*/
|
|
1595
|
+
readonly ratedTicket?: () => string | undefined;
|
|
1596
|
+
};
|
|
1597
|
+
|
|
1127
1598
|
export declare type CheckoutProps = {
|
|
1128
1599
|
/**
|
|
1129
1600
|
* WHICH IMPLEMENTATION IS ASKING. Held rather than read here: the data layer
|
|
@@ -1303,6 +1774,16 @@ export declare type CheckoutProps = {
|
|
|
1303
1774
|
* open it from a button of its own.
|
|
1304
1775
|
*/
|
|
1305
1776
|
readonly openSignal?: number;
|
|
1777
|
+
/**
|
|
1778
|
+
* ASK THE WIDGET TO FOLD TO ITS PILL, by changing this number — the page moving the island
|
|
1779
|
+
* back into a ribbon it was pinned out of. Each change after the first render is one
|
|
1780
|
+
* request, as for `openSignal`.
|
|
1781
|
+
*
|
|
1782
|
+
* NOTHING IS GIVEN UP: the cart stays held, and opening again lands on the card the buyer
|
|
1783
|
+
* left. The hold keeps running while folded. It does nothing on a card that has no pill —
|
|
1784
|
+
* the abandon card, a payment in flight, an account being made.
|
|
1785
|
+
*/
|
|
1786
|
+
readonly closeSignal?: number;
|
|
1306
1787
|
/**
|
|
1307
1788
|
* WHETHER FAILURES ARE REPORTED TO SCOPE. On by default, because a reporting scheme each
|
|
1308
1789
|
* integration has to remember to switch on reports nothing — and the failures worth
|
|
@@ -1312,15 +1793,6 @@ export declare type CheckoutProps = {
|
|
|
1312
1793
|
readonly errorReporting?: boolean;
|
|
1313
1794
|
/** Called with the completed intent when the last step is answered. */
|
|
1314
1795
|
readonly onCommit?: (intent: OrderIntent) => void;
|
|
1315
|
-
/**
|
|
1316
|
-
* WHICH STATE THE HOST'S PAGE LOADS ON — the pill, or the card already open.
|
|
1317
|
-
*
|
|
1318
|
-
* The state, not the only state: the island collapses and expands either way, and a
|
|
1319
|
-
* buyer who closes the card gets the pill back whichever this says. It names the
|
|
1320
|
-
* OPENING position, which is a page-layout decision and therefore the host's — a
|
|
1321
|
-
* dedicated checkout route wants the card standing open, a product page under a
|
|
1322
|
-
* "Get Tickets" button wants the pill until it is asked for.
|
|
1323
|
-
*/
|
|
1324
1796
|
/**
|
|
1325
1797
|
* WHICH FACE THE ISLAND RESTS ON — the purchase, or the cart the host is still filling.
|
|
1326
1798
|
*
|
|
@@ -1339,7 +1811,39 @@ export declare type CheckoutProps = {
|
|
|
1339
1811
|
* this one says which card. Both are page-layout decisions and therefore the host's.
|
|
1340
1812
|
*/
|
|
1341
1813
|
readonly opensOn?: 'flow' | 'cart';
|
|
1814
|
+
/**
|
|
1815
|
+
* WHICH STATE THE HOST'S PAGE LOADS ON — the pill, or the card already open.
|
|
1816
|
+
*
|
|
1817
|
+
* The state, not the only state: the island collapses and expands either way, and a
|
|
1818
|
+
* buyer who closes the card gets the pill back whichever this says. It names the
|
|
1819
|
+
* OPENING position, which is a page-layout decision and therefore the host's — a
|
|
1820
|
+
* dedicated checkout route wants the card standing open, a product page under a
|
|
1821
|
+
* "Get Tickets" button wants the pill until it is asked for.
|
|
1822
|
+
*/
|
|
1342
1823
|
readonly initialPresentation?: 'pill' | 'card';
|
|
1824
|
+
/**
|
|
1825
|
+
* WHERE THE ISLAND LANDS WHEN A PURCHASE IS ABANDONED — the first step, open, or the pill.
|
|
1826
|
+
* Absent, it is `initialPresentation`.
|
|
1827
|
+
*
|
|
1828
|
+
* A QUESTION OF ITS OWN for a page that loads the widget as a pill but pins it open as its
|
|
1829
|
+
* only call to action: a buyer who cancels there needs a way on, not a pill.
|
|
1830
|
+
*
|
|
1831
|
+
* It answers the abandon card's Confirm, and the header's cross where nothing is held —
|
|
1832
|
+
* except that cross on the first step itself, which rests as the pill. Two other endings
|
|
1833
|
+
* always rest: the timed-out card's Close, whose Try Again is already the open landing,
|
|
1834
|
+
* and a notice's Close, which folds without giving anything up.
|
|
1835
|
+
*/
|
|
1836
|
+
readonly abandonedPresentation?: 'pill' | 'card';
|
|
1837
|
+
/**
|
|
1838
|
+
* WHETHER THE HEADER OFFERS A WAY OUT THAT ONLY FOLDS THE ISLAND. `always` is the default.
|
|
1839
|
+
* `whenItLeads` withholds it — faded, off the tab order, its press refused — wherever
|
|
1840
|
+
* pressing it would do nothing but rest the island as its pill: for a page that re-opens
|
|
1841
|
+
* the island itself, such as a pinned call to action, where a fold is undone at once.
|
|
1842
|
+
*
|
|
1843
|
+
* Declared once; the widget decides where it applies. Back is never withheld, nor the
|
|
1844
|
+
* question a held cart asks before it is given up, nor the pill.
|
|
1845
|
+
*/
|
|
1846
|
+
readonly wayOut?: 'always' | 'whenItLeads';
|
|
1343
1847
|
/**
|
|
1344
1848
|
* WHAT THE OPENING PILL SAYS, where the host's page has its own word for it — "Book Santo
|
|
1345
1849
|
* Panto" on a page selling one show. Absent, or blank, is `OPENING_LABEL`.
|
|
@@ -1486,163 +1990,104 @@ declare type CheckoutSource = {
|
|
|
1486
1990
|
readonly orgKey?: string;
|
|
1487
1991
|
};
|
|
1488
1992
|
|
|
1489
|
-
/**
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
* nothing else.
|
|
1494
|
-
*/
|
|
1495
|
-
declare type CodeState = {
|
|
1496
|
-
readonly status: 'LOADING';
|
|
1497
|
-
} | {
|
|
1498
|
-
readonly status: 'DRAWN';
|
|
1499
|
-
readonly src: string;
|
|
1500
|
-
} | {
|
|
1501
|
-
readonly status: 'ERROR';
|
|
1993
|
+
/** The part of a `File` this rule reads, so the rule can be tested without one. */
|
|
1994
|
+
declare type ChosenFile = {
|
|
1995
|
+
readonly type: string;
|
|
1996
|
+
readonly size: number;
|
|
1502
1997
|
};
|
|
1503
1998
|
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
readonly
|
|
1999
|
+
declare type Clock = {
|
|
2000
|
+
readonly now: () => number;
|
|
2001
|
+
/** Returns a stop function; calling it twice is harmless. */
|
|
2002
|
+
readonly every: (ms: number, run: () => void) => () => void;
|
|
1508
2003
|
/**
|
|
1509
|
-
*
|
|
1510
|
-
*
|
|
1511
|
-
*
|
|
2004
|
+
* ONCE, after `ms`. Returns a cancel function; calling it twice, or after `run` has
|
|
2005
|
+
* already gone, is harmless.
|
|
2006
|
+
*
|
|
2007
|
+
* Beside `every` rather than instead of it: a countdown wants a fixed rate, and a poll
|
|
2008
|
+
* that must not overlap itself wants to chain one of these off its own answer. See
|
|
2009
|
+
* `order-runner`.
|
|
1512
2010
|
*/
|
|
1513
|
-
readonly
|
|
2011
|
+
readonly after: (ms: number, run: () => void) => () => void;
|
|
1514
2012
|
};
|
|
1515
2013
|
|
|
1516
2014
|
/**
|
|
1517
|
-
*
|
|
1518
|
-
*
|
|
2015
|
+
* THE ONCE-MARKER. A marker that cannot be written is a breadcrumb and never blocks a
|
|
2016
|
+
* buyer: the worst it costs is a completion published twice to a host that can tell. It
|
|
2017
|
+
* is still said out loud — see `MARK_COMPLETION`.
|
|
1519
2018
|
*/
|
|
1520
|
-
|
|
2019
|
+
declare type CompletionMarker = {
|
|
2020
|
+
/** Whether this browser already finalized a purchase against the cart. */
|
|
2021
|
+
readonly wasMarked: (cartKey: string) => boolean;
|
|
2022
|
+
readonly mark: (cartKey: string) => StorageWrite;
|
|
2023
|
+
};
|
|
1521
2024
|
|
|
1522
|
-
|
|
2025
|
+
/**
|
|
2026
|
+
* MAKES THE PASSKEY, from an arm (`registrationArm` over the platform's challenge). CALL IT IN THE
|
|
2027
|
+
* PRESS ITSELF, with the arm already in hand: Safari asks for the press that started it, and a
|
|
2028
|
+
* round trip to the platform in between spends it.
|
|
2029
|
+
*/
|
|
2030
|
+
export declare function createPasskeyHere(arm: RegistrationArm): Promise<PasskeyHereResult>;
|
|
1523
2031
|
|
|
1524
|
-
/**
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
* idea how long the timer is and does not need one: 100% is the hand at 12 whether that
|
|
1529
|
-
* is ten minutes or ten seconds.
|
|
1530
|
-
*/
|
|
1531
|
-
readonly remaining: number;
|
|
1532
|
-
/** The size of the 1:1 box. Any CSS length; a number is taken as px. */
|
|
1533
|
-
readonly size?: number | string;
|
|
1534
|
-
/**
|
|
1535
|
-
* `solid` — the glyph fill, and what every timer in the island draws today. `metal` —
|
|
1536
|
-
* the set's own treatment. Both are the package's; neither is described here.
|
|
1537
|
-
*/
|
|
1538
|
-
readonly appearance?: IconAppearance;
|
|
1539
|
-
/** Draw the groove the ring runs in. Default `true`. */
|
|
1540
|
-
readonly track?: boolean;
|
|
1541
|
-
/**
|
|
1542
|
-
* Override the fill. Omit and it takes `--scopetickets-icon-solid-fill` like every
|
|
1543
|
-
* glyph, which is what almost every caller wants — the ring and the hand then match the
|
|
1544
|
-
* icons beside them rather than the text.
|
|
1545
|
-
*/
|
|
1546
|
-
readonly color?: string;
|
|
1547
|
-
/**
|
|
1548
|
-
* An accessible name. Omit — as most callers should — and this is hidden from assistive
|
|
1549
|
-
* technology rather than announced as an unlabelled graphic.
|
|
1550
|
-
*/
|
|
1551
|
-
readonly title?: string;
|
|
1552
|
-
readonly className?: string;
|
|
1553
|
-
readonly style?: CSSProperties;
|
|
2032
|
+
/** An address and a password, as the funnel collects them. */
|
|
2033
|
+
declare type Credentials = {
|
|
2034
|
+
readonly email: string;
|
|
2035
|
+
readonly password: string;
|
|
1554
2036
|
};
|
|
1555
2037
|
|
|
1556
|
-
/**
|
|
1557
|
-
|
|
2038
|
+
/**
|
|
2039
|
+
* WHERE A NATIVE HOST KEEPS THE REFRESH PAIR BETWEEN LAUNCHES — its OS secure store, and
|
|
2040
|
+
* nothing weaker. Only the pair: the header is minted fresh from it on every launch, so
|
|
2041
|
+
* nothing stale is ever sent, and a pair the platform has since revoked simply reads as
|
|
2042
|
+
* signed out.
|
|
2043
|
+
*
|
|
2044
|
+
* EVERY CALL MAY FAIL, and a failure is never the buyer's problem — a vault that cannot
|
|
2045
|
+
* be read is a buyer who signs in again. See `keepSession`, which swallows and logs.
|
|
2046
|
+
*/
|
|
2047
|
+
declare type CredentialVault = {
|
|
2048
|
+
readonly read: () => Promise<RefreshCredentials | null>;
|
|
2049
|
+
readonly write: (pair: RefreshCredentials) => Promise<void>;
|
|
2050
|
+
readonly clear: () => Promise<void>;
|
|
2051
|
+
};
|
|
1558
2052
|
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
readonly
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
readonly
|
|
1575
|
-
/**
|
|
1576
|
-
* The size of the 1:1 box. Any CSS length; a number is taken as px. Default `1em`, so
|
|
1577
|
-
* it scales with the row it sits in — `CountdownTimer`'s contract.
|
|
1578
|
-
*/
|
|
1579
|
-
readonly size?: number | string;
|
|
1580
|
-
readonly title?: string;
|
|
1581
|
-
/**
|
|
1582
|
-
* THE ARC'S COLOUR. Any CSS colour, including a `var()` or a `color-mix()` — the value
|
|
1583
|
-
* is handed to `IconGlyph` as a fill and this component does not read it.
|
|
1584
|
-
*
|
|
1585
|
-
* Default is the counter's own token. A caller states one where the ring MEANS
|
|
1586
|
-
* something the counter does not: the timeslot's ring runs a green-to-red ramp,
|
|
1587
|
-
* because there a filling ring and a draining one are different news.
|
|
1588
|
-
*/
|
|
1589
|
-
readonly color?: string;
|
|
1590
|
-
/** The groove's colour, on the same terms. Ignored when `track` is off. */
|
|
1591
|
-
readonly trackColor?: string;
|
|
1592
|
-
/**
|
|
1593
|
-
* WHICH WAY ROUND THE ARC GROWS from 12 o'clock. Default `cw`, the clock's own sense
|
|
1594
|
-
* and the design's.
|
|
1595
|
-
*/
|
|
1596
|
-
readonly direction?: RingDirection;
|
|
1597
|
-
/**
|
|
1598
|
-
* THE GROOVE BEHIND THE ARC. Default on.
|
|
1599
|
-
*
|
|
1600
|
-
* It is what makes 0% read as EMPTY rather than as absent: with no track, a ring with
|
|
1601
|
-
* nothing in it is nothing at all, and a row of them is a row of gaps. Turn it off
|
|
1602
|
-
* where something else already draws the whole — an arc on a ground that is itself the
|
|
1603
|
-
* track — and never merely because it looks quieter.
|
|
1604
|
-
*/
|
|
1605
|
-
readonly track?: boolean;
|
|
2053
|
+
declare type DayLoad = {
|
|
2054
|
+
readonly status: 'IDLE';
|
|
2055
|
+
}
|
|
2056
|
+
/**
|
|
2057
|
+
* `LOADING` CARRIES BOTH DAYS. `asking` is the one in flight, built against the clock
|
|
2058
|
+
* the ask was made on so its answer is not dated by whenever it happens to arrive;
|
|
2059
|
+
* `previous` is what stays drawn meanwhile, so the calendar and the last day's sessions
|
|
2060
|
+
* do not blink out while the next are fetched.
|
|
2061
|
+
*/
|
|
2062
|
+
| {
|
|
2063
|
+
readonly status: 'LOADING';
|
|
2064
|
+
readonly asking: DayTickets;
|
|
2065
|
+
readonly previous: DaySettled | undefined;
|
|
2066
|
+
} | {
|
|
2067
|
+
readonly status: 'SETTLED';
|
|
2068
|
+
readonly settled: DaySettled;
|
|
1606
2069
|
};
|
|
1607
2070
|
|
|
1608
2071
|
/**
|
|
1609
|
-
*
|
|
1610
|
-
*
|
|
2072
|
+
* A day that answered, and what it answered with.
|
|
2073
|
+
*
|
|
2074
|
+
* THE REASON TRAVELS BESIDE THE DAY RATHER THAN INSIDE IT, because it is a fact about the
|
|
2075
|
+
* ASK and not about the tickets: `DayTickets` is what the island draws, and a day that
|
|
2076
|
+
* could not be read has none to draw. "No sessions" and "we could not ask" look the same
|
|
2077
|
+
* on screen and are not the same thing.
|
|
1611
2078
|
*/
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
2079
|
+
declare type DaySettled = {
|
|
2080
|
+
readonly day: DayTickets;
|
|
2081
|
+
readonly cause: unknown;
|
|
2082
|
+
};
|
|
1616
2083
|
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
readonly
|
|
1620
|
-
|
|
1621
|
-
* THE DAYS STILL ON OFFER, where the inventory filter has hidden some — absent is all of
|
|
1622
|
-
* `series`. The weeks stay the whole run's, so ticking a box greys days where they stand
|
|
1623
|
-
* rather than moving the month the buyer is reading; see `offeredSeries`.
|
|
1624
|
-
*/
|
|
1625
|
-
readonly offered?: CalendarSeries;
|
|
1626
|
-
/**
|
|
1627
|
-
* `YYYY-MM-DD` in the VENUE's local day, never the device's. Passed in rather than read
|
|
1628
|
-
* from a clock — see `MonthGridOptions`.
|
|
1629
|
-
*/
|
|
2084
|
+
/** One day's tickets, with the run and the clock they were asked against. */
|
|
2085
|
+
declare type DayTickets = {
|
|
2086
|
+
readonly run: Run;
|
|
2087
|
+
readonly wanted: string | null;
|
|
1630
2088
|
readonly today: string;
|
|
1631
|
-
readonly
|
|
1632
|
-
readonly
|
|
1633
|
-
/** Per-day `Remaining`, 0..1, keyed by `YYYY-MM-DD`. */
|
|
1634
|
-
readonly remaining?: Readonly<Record<string, number>>;
|
|
1635
|
-
/**
|
|
1636
|
-
* Defaults to the variant both pickers draw. A prop only so a host can turn the line
|
|
1637
|
-
* off; there is no per-cell answer.
|
|
1638
|
-
*/
|
|
1639
|
-
readonly accessory?: DatePickerCellAccessory;
|
|
1640
|
-
/**
|
|
1641
|
-
* The month CURRENTLY IN VIEW, reported as it changes — including once on mount,
|
|
1642
|
-
* because the picker opens on a month the host did not choose (see
|
|
1643
|
-
* `soonestRelevantDay`).
|
|
1644
|
-
*/
|
|
1645
|
-
readonly onVisibleMonthChange?: (month: CalendarMonthKey) => void;
|
|
2089
|
+
readonly nowTime: string;
|
|
2090
|
+
readonly tickets: readonly Ticket[];
|
|
1646
2091
|
};
|
|
1647
2092
|
|
|
1648
2093
|
export declare function defaultProfilePhotos(environment?: Environment, size?: ProfilePhotoSize): ProfilePhoto[];
|
|
@@ -1669,6 +2114,37 @@ export declare type EscrowHold = {
|
|
|
1669
2114
|
readonly durationSeconds: number;
|
|
1670
2115
|
};
|
|
1671
2116
|
|
|
2117
|
+
declare interface Event_2 {
|
|
2118
|
+
/** @deprecated Legacy numeric ID — populated from v1 for cart compat, remove when v2 cart ships */
|
|
2119
|
+
ID?: number;
|
|
2120
|
+
Key: string;
|
|
2121
|
+
Name: string;
|
|
2122
|
+
Description: string;
|
|
2123
|
+
Date: string;
|
|
2124
|
+
Starts: string;
|
|
2125
|
+
Ends: string;
|
|
2126
|
+
LocalStartTime: string;
|
|
2127
|
+
LocalEndTime: string;
|
|
2128
|
+
Currency: string;
|
|
2129
|
+
/** NOT SENT by `EventInformation` in either mode, measured 2026-09-10 — the run states it. */
|
|
2130
|
+
PaymentPlatform?: string | null;
|
|
2131
|
+
Capacity: number | null;
|
|
2132
|
+
Theme: Theme;
|
|
2133
|
+
Venue: Venue;
|
|
2134
|
+
Organisation: Organisation;
|
|
2135
|
+
UrgencyTags: string[];
|
|
2136
|
+
/** Legacy event questionnaire fallback; the dedicated endpoint remains authoritative. */
|
|
2137
|
+
Questions?: QuestionnaireQuestion[] | null;
|
|
2138
|
+
/**
|
|
2139
|
+
* The types THIS night offers, un-grouped — see `UserType`.
|
|
2140
|
+
*
|
|
2141
|
+
* SERIES-ONLY. `?type=series` carries it on every event; `?type=event` omits the field
|
|
2142
|
+
* from the event object entirely, so a standalone event has none of these and the
|
|
2143
|
+
* response's own `UserTypes` is all there is.
|
|
2144
|
+
*/
|
|
2145
|
+
UserTypes?: UserType[] | null;
|
|
2146
|
+
}
|
|
2147
|
+
|
|
1672
2148
|
/** The cart's three shares, major units — `value` is the organisation's. */
|
|
1673
2149
|
export declare type EventAmounts = {
|
|
1674
2150
|
readonly total: number;
|
|
@@ -1703,6 +2179,38 @@ export declare type EventContext = {
|
|
|
1703
2179
|
readonly amounts?: EventAmounts;
|
|
1704
2180
|
};
|
|
1705
2181
|
|
|
2182
|
+
/**
|
|
2183
|
+
* THE WEATHER AT AN EVENT, as `GET /api/Weather/Events/{eventKey}` answers it: Apple WeatherKit's
|
|
2184
|
+
* forecast at its venue for the hour a visit starts, and the venue's day. In the platform's units
|
|
2185
|
+
* (°C); the caller owns the copy and the rounding.
|
|
2186
|
+
*/
|
|
2187
|
+
declare type EventForecast = {
|
|
2188
|
+
/** WeatherKit's `conditionCode` for the hour holding the start, e.g. `Rain`, `MostlyClear`. */
|
|
2189
|
+
readonly condition: string;
|
|
2190
|
+
/** °C at the start's hour. */
|
|
2191
|
+
readonly temperature: number;
|
|
2192
|
+
/** °C, the event's day at the venue. */
|
|
2193
|
+
readonly high: number;
|
|
2194
|
+
readonly low: number;
|
|
2195
|
+
/** 0 to 1 at the start's hour; `null` where WeatherKit gives none. */
|
|
2196
|
+
readonly cloudCover: number | null;
|
|
2197
|
+
/** Minutes past the venue's midnight; `null` where the sun does not rise or set that day. */
|
|
2198
|
+
readonly sunrise: number | null;
|
|
2199
|
+
readonly sunset: number | null;
|
|
2200
|
+
};
|
|
2201
|
+
|
|
2202
|
+
/** @internal */
|
|
2203
|
+
declare interface EventInfoResponse {
|
|
2204
|
+
HasAvailableTickets: boolean;
|
|
2205
|
+
Series: Series | null;
|
|
2206
|
+
Events: Event_2[];
|
|
2207
|
+
/**
|
|
2208
|
+
* NULL, NOT AN EMPTY LIST, when the run names none of its own — observed on the wire.
|
|
2209
|
+
* The types said otherwise and a `.length` on it took down the whole read.
|
|
2210
|
+
*/
|
|
2211
|
+
UserTypes: UserType[] | null;
|
|
2212
|
+
}
|
|
2213
|
+
|
|
1706
2214
|
/** One line of what is bought, aggregated by ticket × user type. */
|
|
1707
2215
|
export declare type EventItem = {
|
|
1708
2216
|
/** The ticket's key — never its name, which is not stable. */
|
|
@@ -1717,6 +2225,31 @@ export declare type EventItem = {
|
|
|
1717
2225
|
readonly quantity: number;
|
|
1718
2226
|
};
|
|
1719
2227
|
|
|
2228
|
+
/** The platform returns the event's questions, or its series' when the event has none. */
|
|
2229
|
+
declare type EventQuestionsLoad = {
|
|
2230
|
+
readonly status: 'IDLE';
|
|
2231
|
+
} | {
|
|
2232
|
+
readonly status: 'LOADING';
|
|
2233
|
+
} | {
|
|
2234
|
+
readonly status: 'LOADED';
|
|
2235
|
+
readonly questions: readonly QuestionnaireQuestion[];
|
|
2236
|
+
} | {
|
|
2237
|
+
readonly status: 'FAILED';
|
|
2238
|
+
readonly reason: string;
|
|
2239
|
+
};
|
|
2240
|
+
|
|
2241
|
+
/**
|
|
2242
|
+
* ONE ACT ON AN EVENT'S BILL (Conall, 2026-11-10): its name, its photo where the platform holds
|
|
2243
|
+
* one as a URL, its line on the bill ("Headliner"), and its place on it (`order`, 1 the headliner).
|
|
2244
|
+
*/
|
|
2245
|
+
declare type EventTalent = {
|
|
2246
|
+
readonly id: number;
|
|
2247
|
+
readonly name: string;
|
|
2248
|
+
readonly photo: string | null;
|
|
2249
|
+
readonly order: number;
|
|
2250
|
+
readonly subtitle: string | null;
|
|
2251
|
+
};
|
|
2252
|
+
|
|
1720
2253
|
/** @internal */
|
|
1721
2254
|
declare interface EventTimeslot {
|
|
1722
2255
|
LocalStartTime: string;
|
|
@@ -1740,6 +2273,26 @@ declare interface EventTimeslot {
|
|
|
1740
2273
|
*/
|
|
1741
2274
|
export declare function excusedByIntent(intent: OrderIntent): readonly PurchaseStepId[];
|
|
1742
2275
|
|
|
2276
|
+
/** One question and its answer, exactly as sent: plain text, paragraphs `\n`-separated. */
|
|
2277
|
+
declare type Faq = {
|
|
2278
|
+
readonly key: string;
|
|
2279
|
+
readonly question: string;
|
|
2280
|
+
readonly answer: string;
|
|
2281
|
+
};
|
|
2282
|
+
|
|
2283
|
+
/**
|
|
2284
|
+
* AN EVENT'S FAQS (Conall, 2026-11-14): its categories in the platform's order, each with its
|
|
2285
|
+
* questions in theirs. The platform has already chosen, per question, the most specific level that
|
|
2286
|
+
* answers it (event, venue, organisation, broker, Scope); none of that is re-decided here.
|
|
2287
|
+
*/
|
|
2288
|
+
declare type FaqCategory = {
|
|
2289
|
+
readonly key: string;
|
|
2290
|
+
readonly name: string;
|
|
2291
|
+
/** What the category covers, as sent; `null` when absent (the public read does not send it yet). */
|
|
2292
|
+
readonly description: string | null;
|
|
2293
|
+
readonly faqs: readonly Faq[];
|
|
2294
|
+
};
|
|
2295
|
+
|
|
1743
2296
|
/**
|
|
1744
2297
|
* FIVE STARS, AND THE RANGE IS THE DESIGN'S RATHER THAN THE PLATFORM'S.
|
|
1745
2298
|
*
|
|
@@ -1750,22 +2303,29 @@ export declare function excusedByIntent(intent: OrderIntent): readonly PurchaseS
|
|
|
1750
2303
|
*/
|
|
1751
2304
|
export declare const FEEDBACK_STARS = 5;
|
|
1752
2305
|
|
|
2306
|
+
/** `POST /api/Feedback`. Resolves whether the platform took it; never throws. */
|
|
2307
|
+
declare type FeedbackGateway = {
|
|
2308
|
+
readonly submit: (attendeeTicketKey: string, rating: FeedbackRating) => Promise<boolean>;
|
|
2309
|
+
};
|
|
2310
|
+
|
|
1753
2311
|
/** One through five, as the card's stars are counted. */
|
|
1754
2312
|
export declare type FeedbackRating = 1 | 2 | 3 | 4 | 5;
|
|
1755
2313
|
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
2314
|
+
declare type Finalized = {
|
|
2315
|
+
readonly ok: true;
|
|
2316
|
+
readonly attendeeTicketKey: string | undefined;
|
|
2317
|
+
}
|
|
2318
|
+
/** Still landing, or the call never arrived: ask again. */
|
|
2319
|
+
| {
|
|
2320
|
+
readonly ok: false;
|
|
2321
|
+
readonly kind: 'NOT_YET';
|
|
2322
|
+
}
|
|
2323
|
+
/** Money held and no tickets made: the recovery card, never a retry. */
|
|
2324
|
+
| {
|
|
2325
|
+
readonly ok: false;
|
|
2326
|
+
readonly kind: 'REFUSED';
|
|
2327
|
+
readonly reason: string;
|
|
2328
|
+
};
|
|
1769
2329
|
|
|
1770
2330
|
/**
|
|
1771
2331
|
* Somebody behind the event, offered for subscription, reduced to what the row draws.
|
|
@@ -1788,14 +2348,14 @@ export declare type FollowListProps = {
|
|
|
1788
2348
|
readonly onToggle: (key: string) => void;
|
|
1789
2349
|
};
|
|
1790
2350
|
|
|
1791
|
-
/** `1234, 'EUR'` → `"€12.34"`. `1200, 'JPY'` → `"¥1,200"`. */
|
|
2351
|
+
/** `1234, 'EUR'` → `"€12.34"`. `5000, 'USD'` → `"$50.00"`. `1200, 'JPY'` → `"¥1,200"`. */
|
|
1792
2352
|
export declare function formatMoney(minorUnits: number, currency: string): string;
|
|
1793
2353
|
|
|
1794
2354
|
/**
|
|
1795
2355
|
* THE CHEAPEST WAY INTO THESE TICKETS, across every band each of them offers.
|
|
1796
2356
|
*
|
|
1797
2357
|
* A TICKET THAT NAMES NO BANDS IS SOLD AT ITS OWN PRICE — the platform's "everyone else",
|
|
1798
|
-
* and the case `
|
|
2358
|
+
* and the case `QuantityStepper` draws its single unnamed line for. Where bands ARE named they
|
|
1799
2359
|
* are the only ways to buy, so the ticket's undiscounted price is a candidate only if a band
|
|
1800
2360
|
* states it; an `Adult` at `DiscountNominal: 0` does.
|
|
1801
2361
|
*
|
|
@@ -1818,12 +2378,6 @@ declare type GlyphBadge = {
|
|
|
1818
2378
|
/** A glyph from the icon set, by name; each renderer decides how to draw it. */
|
|
1819
2379
|
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';
|
|
1820
2380
|
|
|
1821
|
-
/**
|
|
1822
|
-
* THE DISTINCT TYPES, in the order the platform first names each — the organiser's own,
|
|
1823
|
-
* and re-sorting on every fetch would move the rows under the pointer.
|
|
1824
|
-
*/
|
|
1825
|
-
export declare function groupUserTypes(rows: readonly UserType[]): readonly PartyUserTypeOption[];
|
|
1826
|
-
|
|
1827
2381
|
/** Whether the buyer has taken the guest route for this order. */
|
|
1828
2382
|
declare type GuestChoice = 'NOT_TAKEN' | 'TAKEN';
|
|
1829
2383
|
|
|
@@ -1954,6 +2508,12 @@ export declare type IntentComposition = Readonly<Record<string, number>>;
|
|
|
1954
2508
|
/** Whether a composition names anybody at all. */
|
|
1955
2509
|
export declare function intentHasParty(composition: IntentComposition | undefined): boolean;
|
|
1956
2510
|
|
|
2511
|
+
/**
|
|
2512
|
+
* WHICH INVENTORIES EACH EVENT SELLS FROM, among the mount's. Absent from the map is an
|
|
2513
|
+
* event nobody asked about, which is not the same as one that sells from none.
|
|
2514
|
+
*/
|
|
2515
|
+
declare type InventoriesByEvent = Readonly<Record<string, readonly string[]>>;
|
|
2516
|
+
|
|
1957
2517
|
/**
|
|
1958
2518
|
* WHAT A HOST MAY LIST — a bare key, as every mount wrote before the filter, or a key
|
|
1959
2519
|
* with the word to draw beside its checkbox.
|
|
@@ -1973,39 +2533,6 @@ export declare type InventoryOption = {
|
|
|
1973
2533
|
*/
|
|
1974
2534
|
export declare function isFeedbackRating(value: number): value is FeedbackRating;
|
|
1975
2535
|
|
|
1976
|
-
/**
|
|
1977
|
-
* Re-exported for callers. Declared in `island-motion`, where it is DERIVED from the
|
|
1978
|
-
* springs rather than typed — so the CSS the surface receives and the moment this
|
|
1979
|
-
* component tears the transition down cannot diverge.
|
|
1980
|
-
*/
|
|
1981
|
-
export declare const ISLAND_TRANSITION_MS: number;
|
|
1982
|
-
|
|
1983
|
-
export declare type IslandAction = {
|
|
1984
|
-
/** Stable across renders. Labels repeat — two states both end in "Close". */
|
|
1985
|
-
readonly key: string;
|
|
1986
|
-
readonly role: IslandActionRole;
|
|
1987
|
-
readonly label: ReactNode;
|
|
1988
|
-
/** A mark beside the label — the provider's logo, the passkey glyph. */
|
|
1989
|
-
/** The button is drawn, and it does not act. */
|
|
1990
|
-
readonly disabled?: boolean;
|
|
1991
|
-
/**
|
|
1992
|
-
* DOING: the spinner in place of the words, and no second press — the pill's own busy
|
|
1993
|
-
* treatment (`IslandPill`'s `busy`). The words stay the button's name.
|
|
1994
|
-
*/
|
|
1995
|
-
readonly busy?: boolean;
|
|
1996
|
-
readonly mark?: {
|
|
1997
|
-
/** `alone` is IN PLACE of the label, which stays as the button's accessible name. */
|
|
1998
|
-
readonly side: 'leading' | 'trailing' | 'alone';
|
|
1999
|
-
readonly node: ReactNode;
|
|
2000
|
-
/** Default `separate`. See above. */
|
|
2001
|
-
readonly spacing?: 'joined' | 'separate';
|
|
2002
|
-
};
|
|
2003
|
-
readonly onPress: () => void;
|
|
2004
|
-
};
|
|
2005
|
-
|
|
2006
|
-
/** What a card's button IS, rather than what it looks like. */
|
|
2007
|
-
export declare type IslandActionRole = 'action' | 'primary' | 'secondary';
|
|
2008
|
-
|
|
2009
2536
|
/**
|
|
2010
2537
|
* Where in its reservation the island sits: a corner, the middle of an edge, or the middle.
|
|
2011
2538
|
*
|
|
@@ -2014,75 +2541,6 @@ export declare type IslandActionRole = 'action' | 'primary' | 'secondary';
|
|
|
2014
2541
|
*/
|
|
2015
2542
|
export declare type IslandAlignment = 'top-left' | 'top' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
2016
2543
|
|
|
2017
|
-
export declare function IslandCard({ avatar, title, subtitle, variant, sealed, typed, input, actions, footer, }: IslandCardProps): react_jsx_runtime.JSX.Element;
|
|
2018
|
-
|
|
2019
|
-
export declare type IslandCardProps = {
|
|
2020
|
-
/** WHICH CARD THIS IS — Figma's own variant on `CtaCard`. */
|
|
2021
|
-
/**
|
|
2022
|
-
* NEITHER OF THE TWO BESIDE THE FLOW DRAWS A HEADER — the way out of both is the Back
|
|
2023
|
-
* button in the stack. `cart` is that card with the cart screen's own title size;
|
|
2024
|
-
* `hold` is the timed-out card, which takes the ordinary one.
|
|
2025
|
-
*/
|
|
2026
|
-
readonly variant?: 'default' | 'hold' | 'cart';
|
|
2027
|
-
/**
|
|
2028
|
-
* The hero — a `.scopetickets-island-avatar` element, and the same node the collapsed
|
|
2029
|
-
* pill shows, which is what lets it be carried between the two.
|
|
2030
|
-
*
|
|
2031
|
-
* THE HOLD'S CARDS TAKE ONE TOO, and that is the design `3803:7329`: the buyer's own
|
|
2032
|
-
* avatar wearing the clock as its ELEMENT, where they used to draw a bare `$25` ring.
|
|
2033
|
-
* The clock is the caller's to compose for the same reason every other hero is — the
|
|
2034
|
-
* face is the buyer's and this file draws none.
|
|
2035
|
-
*/
|
|
2036
|
-
readonly avatar?: ReactNode;
|
|
2037
|
-
/** `heading/xl`, centred — `heading/3xl` on the `cart` variant. */
|
|
2038
|
-
readonly title?: ReactNode;
|
|
2039
|
-
/** `text/regular/md`, centred, and free to run to several lines. */
|
|
2040
|
-
readonly subtitle?: ReactNode;
|
|
2041
|
-
/**
|
|
2042
|
-
* NO HERO, which is what a picker is: the entry step has already said at full size what
|
|
2043
|
-
* the buyer is being asked for, so the card opens on the run itself. `avatar`, `title`
|
|
2044
|
-
* and `subtitle` are simply left undrawn — the card is the run, and the chrome is not
|
|
2045
|
-
* its to draw.
|
|
2046
|
-
*/
|
|
2047
|
-
/**
|
|
2048
|
-
* NO HEADER IS BEING DRAWN OVER THIS CARD, so it pays no reserve for one — see
|
|
2049
|
-
* `CheckoutIslandProps.sealed`, which is where the decision is made.
|
|
2050
|
-
*
|
|
2051
|
-
* PER CARD AND NOT PER ISLAND, which is the whole reason it is a prop rather than a
|
|
2052
|
-
* rule hung off the frame's `data-sealed`. Both planes live in that frame while they
|
|
2053
|
-
* cross, so a rule there would pull the reserve out from under the card on its way OUT
|
|
2054
|
-
* as well — the header would fade while the step beneath it jumped upward to meet it.
|
|
2055
|
-
* Held here, the leaving card keeps the room it was laid out with and only the arriving
|
|
2056
|
-
* one is short, so the surface morphs between two heights instead of snapping.
|
|
2057
|
-
*/
|
|
2058
|
-
readonly sealed?: boolean;
|
|
2059
|
-
/**
|
|
2060
|
-
* THE CARD IS TYPED INTO, so it is drawn at the ceiling from the frame it arrives — see
|
|
2061
|
-
* `[data-typed]` in `island.css`. The caller answers it with core's `takesTyping`; which
|
|
2062
|
-
* blocks raise a keyboard is the block set's question, not this file's.
|
|
2063
|
-
*
|
|
2064
|
-
* PER CARD, for `sealed`'s reason: the leaving card keeps the height it was laid out
|
|
2065
|
-
* with and only the arriving one is tall, so the surface morphs between the two.
|
|
2066
|
-
*/
|
|
2067
|
-
readonly typed?: boolean;
|
|
2068
|
-
/**
|
|
2069
|
-
* The step's own controls — `Input` in the design, between the hero and the buttons.
|
|
2070
|
-
*/
|
|
2071
|
-
readonly input?: ReactNode;
|
|
2072
|
-
/** The buttons, in reading order. Stacked full-width at `$2` apart. */
|
|
2073
|
-
readonly actions: readonly IslandAction[];
|
|
2074
|
-
/**
|
|
2075
|
-
* A CONTROL OF ITS OWN SHAPE WHERE THE BUTTONS GO — the booking's ticket pager, which is
|
|
2076
|
-
* one label between two presses and therefore cannot be an `IslandAction`.
|
|
2077
|
-
*
|
|
2078
|
-
* IT IS NOT A THIRD KIND OF BUTTON. It stands in the same wrapper, which is what it is
|
|
2079
|
-
* for: that wrapper is positioned against the card's bottom edge and its height is what
|
|
2080
|
-
* the content reserves room for, so a control drawn anywhere else sits in the scroll and
|
|
2081
|
-
* takes the card's gutter twice. Counted with the actions below for exactly that reason.
|
|
2082
|
-
*/
|
|
2083
|
-
readonly footer?: ReactNode;
|
|
2084
|
-
};
|
|
2085
|
-
|
|
2086
2544
|
export declare function IslandCommitPill({ onOpenCart, cartLabel, onOpenPromo, promoLabel, }: IslandCommitPillProps): react_jsx_runtime.JSX.Element;
|
|
2087
2545
|
|
|
2088
2546
|
/**
|
|
@@ -2118,190 +2576,7 @@ export declare type IslandCommitPillProps = {
|
|
|
2118
2576
|
readonly promoLabel?: string;
|
|
2119
2577
|
};
|
|
2120
2578
|
|
|
2121
|
-
|
|
2122
|
-
/**
|
|
2123
|
-
* WHAT LED A MOVE, which decides what the SURFACE does about it.
|
|
2124
|
-
*
|
|
2125
|
-
* `island` — the collapsed pill was pressed. The surface arrives already compressed and
|
|
2126
|
-
* RETURNING that compression is the move's opening beat.
|
|
2127
|
-
*
|
|
2128
|
-
* `element` — a control inside the card was pressed, and this is the common case. The
|
|
2129
|
-
* surface does not scale at all: the control popped itself over `PRESS_IN_MS` and was
|
|
2130
|
-
* back before the move began, so the morph is the whole acknowledgement. "A press on a
|
|
2131
|
-
* 52px button inside a 676px card should look like the button moving and the card
|
|
2132
|
-
* becoming the next thing."
|
|
2133
|
-
*
|
|
2134
|
-
* `none` — the flow changed the step by itself. Nothing on screen is compressed and no
|
|
2135
|
-
* control popped, so the acknowledgement is the pop played as an animation. The one case
|
|
2136
|
-
* where the surface moves of its own accord.
|
|
2137
|
-
*
|
|
2138
|
-
* IN CORE BECAUSE BOTH RENDERERS DECIDE FROM IT. It was a web type in `island-press.ts`,
|
|
2139
|
-
* and the native surface needs the same three answers to the same question.
|
|
2140
|
-
*/
|
|
2141
|
-
declare type IslandGesture = 'island' | 'element' | 'none';
|
|
2142
|
-
|
|
2143
|
-
export declare function IslandHeader({ dismiss, onDismiss, dismissIcon, dismissLabel, headerLead, headerTrail, closable, }: IslandHeaderProps): react_jsx_runtime.JSX.Element;
|
|
2144
|
-
|
|
2145
|
-
/**
|
|
2146
|
-
* `IslandHeaderWrapper` — the way out at the leading edge, the cart summary at the
|
|
2147
|
-
* trailing one, and nothing between them.
|
|
2148
|
-
*/
|
|
2149
|
-
export declare type IslandHeaderProps = {
|
|
2150
|
-
/** What the header button DOES, which decides what it draws. */
|
|
2151
|
-
readonly dismiss?: 'back' | 'close';
|
|
2152
|
-
readonly onDismiss: () => void;
|
|
2153
|
-
/**
|
|
2154
|
-
* Overrides the glyph. Defaults to `@scopetickets/icons`, which is STui's own set
|
|
2155
|
-
* generated from the file rather than copied by hand. A slot, because a host with its
|
|
2156
|
-
* own icon set should not be made to take a second one.
|
|
2157
|
-
*/
|
|
2158
|
-
readonly dismissIcon?: ReactNode;
|
|
2159
|
-
/** Names the control for assistive technology. Defaults to the `dismiss`. */
|
|
2160
|
-
readonly dismissLabel?: string;
|
|
2161
|
-
/**
|
|
2162
|
-
* A second pill BESIDE the way out — the leading group the design, `$2` off the cross.
|
|
2163
|
-
*/
|
|
2164
|
-
readonly headerLead?: ReactNode;
|
|
2165
|
-
/**
|
|
2166
|
-
* A PILL AT THE TRAILING END, and ONE SLOT for whichever of them the step wants.
|
|
2167
|
-
*
|
|
2168
|
-
* There were two props here and a rule about which won — `summary` outranking
|
|
2169
|
-
* `headerTrail`, on the reading that a counting hold outranks a way back. The two could
|
|
2170
|
-
* never have collided: the funnel is the half of the purchase before a cart exists and
|
|
2171
|
-
* the commit pill is the half after. A precedence rule between two things that cannot
|
|
2172
|
-
* meet is a rule nobody can be sure of, so the caller picks and this draws what it is
|
|
2173
|
-
* handed.
|
|
2174
|
-
*/
|
|
2175
|
-
readonly headerTrail?: ReactNode;
|
|
2176
|
-
/**
|
|
2177
|
-
* WHETHER THE WAY OUT IS OFFERED. Defaults to true.
|
|
2178
|
-
*
|
|
2179
|
-
* DRAWN AND HIDDEN RATHER THAN REMOVED, which is the design's own answer — the abandon
|
|
2180
|
-
* card sets the whole row to zero opacity rather than dropping it. The cross has to be
|
|
2181
|
-
* in the same place on every card, because carried elements are measured against a
|
|
2182
|
-
* header that rides every change in the card's height; taking the button out of the tree
|
|
2183
|
-
* would move the row and every element travelling through it.
|
|
2184
|
-
*/
|
|
2185
|
-
readonly closable?: boolean;
|
|
2186
|
-
};
|
|
2187
|
-
|
|
2188
|
-
/**
|
|
2189
|
-
* The persistent surface, the two content planes inside it, and the carry layer above
|
|
2190
|
-
* them.
|
|
2191
|
-
*/
|
|
2192
|
-
export declare function IslandHost({ presentation, contentKey, continuity, label, mode, align, placement, journeyFullscreen, chrome, bay, bayLabel, bayVisible, bayRows, bayActions, sealed, children, }: IslandHostProps): react_jsx_runtime.JSX.Element;
|
|
2193
|
-
|
|
2194
|
-
export declare type IslandHostProps = {
|
|
2195
|
-
/** What shape the island should be. Drives the frame, not the content. */
|
|
2196
|
-
presentation: IslandPresentation;
|
|
2197
|
-
/**
|
|
2198
|
-
* Identity of what is being shown. A CHANGE here starts a transition; the same key
|
|
2199
|
-
* re-rendered with different children updates in place. Use the step name, not a value
|
|
2200
|
-
* that changes as the buyer types.
|
|
2201
|
-
*/
|
|
2202
|
-
contentKey: string;
|
|
2203
|
-
/**
|
|
2204
|
-
* WHICH ISLAND THIS HOST IS, ACROSS THE COMPONENT THAT MOUNTS IT.
|
|
2205
|
-
*
|
|
2206
|
-
* Named, and a host that leaves hands the next one under the same name what it was
|
|
2207
|
-
* showing — so a widget whose faces are separate components still MORPHS between them
|
|
2208
|
-
* instead of cutting. See `island-continuity`, which is the whole mechanism and the
|
|
2209
|
-
* argument for it. Absent means "only itself", which is every other mount.
|
|
2210
|
-
*/
|
|
2211
|
-
continuity?: string;
|
|
2212
|
-
/** Names the region for assistive technology. */
|
|
2213
|
-
label: string;
|
|
2214
|
-
/**
|
|
2215
|
-
* THE CHROME, WHICH IS NOT CONTENT — a bar drawn over both planes and rebuilt by
|
|
2216
|
-
* neither.
|
|
2217
|
-
*/
|
|
2218
|
-
chrome?: ReactNode;
|
|
2219
|
-
/**
|
|
2220
|
-
* SEALED — nothing anywhere on the page may be pressed. Draws `IslandShield`, and it is
|
|
2221
|
-
* taken as a flag rather than a node so the host owns where that sheet sits: it has to
|
|
2222
|
-
* hang off the anchor, outside every transform and filter between here and there.
|
|
2223
|
-
*/
|
|
2224
|
-
sealed?: boolean;
|
|
2225
|
-
/** Which appearance to render. Defaults to following the viewer's OS. */
|
|
2226
|
-
mode?: IslandMode;
|
|
2227
|
-
/**
|
|
2228
|
-
* Where in its reservation the island sits — see `IslandAlignment`. Defaults to `bottom`,
|
|
2229
|
-
* which is where the design docks it.
|
|
2230
|
-
*/
|
|
2231
|
-
align?: IslandAlignment;
|
|
2232
|
-
/** Where the reservation is held — see `IslandPlacement`. Defaults to `page`. */
|
|
2233
|
-
placement?: IslandPlacement;
|
|
2234
|
-
/**
|
|
2235
|
-
* THE PROVIDER'S JOURNEY, TAKING THE SCREEN — stamped on the root so the CSS can lift
|
|
2236
|
-
* the fullscreen overlay over the host page and the centred island's transform out of
|
|
2237
|
-
* the overlay's way. Pass-through to `IslandSurfaceProps.journeyFullscreen`.
|
|
2238
|
-
*/
|
|
2239
|
-
journeyFullscreen?: boolean;
|
|
2240
|
-
bay?: ReactNode;
|
|
2241
|
-
/**
|
|
2242
|
-
* NOT A CONTENT CHANGE. A bay that appears, disappears or changes height must not
|
|
2243
|
-
* start a step transition or carry anything: the planes do not move, and the payment
|
|
2244
|
-
* frame inside the bay must not be re-laid-out by anything but its own resize.
|
|
2245
|
-
*/
|
|
2246
|
-
bayLabel?: string;
|
|
2247
|
-
bayVisible?: boolean;
|
|
2248
|
-
/**
|
|
2249
|
-
* HOW MANY ENTRIES THE BAY HOLDS ROOM FOR, whether or not it has them yet.
|
|
2250
|
-
*
|
|
2251
|
-
* A bay measures what is in it, which is right for a region whose contents are the
|
|
2252
|
-
* caller's — and wrong for two screens that are meant to BE the same card. Review and
|
|
2253
|
-
* the card screen hold the same kind of stack in the same place; a buyer crossing
|
|
2254
|
-
* between them should see the contents change, not the card resize under their hand,
|
|
2255
|
-
* and every entry in that stack is an async arrival (a provider reporting its height,
|
|
2256
|
-
* a platform answering whether it can pay) that would otherwise resize it again.
|
|
2257
|
-
*
|
|
2258
|
-
* So the CALLER says how many rows the pair reserves and both screens ask for the same
|
|
2259
|
-
* number. The reserve is a FLOOR, not a height: a bay with more to show than it
|
|
2260
|
-
* reserved still grows — see the rule in `island.css`.
|
|
2261
|
-
*/
|
|
2262
|
-
bayRows?: number;
|
|
2263
|
-
/**
|
|
2264
|
-
* THE BAY'S OWN BUTTONS, drawn beneath the bay's content (form first, CTA last —
|
|
2265
|
-
* the SDK selector's own order). Same `CardAction` markup the card plane uses, so
|
|
2266
|
-
* the press, the compression and the disabled read match everywhere.
|
|
2267
|
-
*/
|
|
2268
|
-
bayActions?: readonly IslandAction[];
|
|
2269
|
-
children: ReactNode;
|
|
2270
|
-
};
|
|
2271
|
-
|
|
2272
|
-
/** How the island is told which appearance to render. */
|
|
2273
|
-
/**
|
|
2274
|
-
* Three states, not two — matching the SDK's own `ThemeSelectionMode`, so a consumer
|
|
2275
|
-
* that already holds one can pass it straight through.
|
|
2276
|
-
*/
|
|
2277
|
-
export declare type IslandMode = 'light' | 'dark' | 'system';
|
|
2278
|
-
|
|
2279
|
-
/** The collapsed island — Figma `CtaCollapsedGetTicket`. */
|
|
2280
|
-
export declare function IslandPill({ avatar, subtitle, title, actionLabel, onAction, busy, }: IslandPillProps): react_jsx_runtime.JSX.Element;
|
|
2281
|
-
|
|
2282
|
-
export declare type IslandPillProps = {
|
|
2283
|
-
/**
|
|
2284
|
-
* The round preview at the leading edge — a
|
|
2285
|
-
* `.scopetickets-island-avatar.scopetickets-island-avatar--sm` element, `$10` across.
|
|
2286
|
-
*/
|
|
2287
|
-
readonly avatar?: ReactNode;
|
|
2288
|
-
/**
|
|
2289
|
-
* The quiet line above the title. Optional — the design ships it hidden, which is what
|
|
2290
|
-
* makes it optional rather than empty.
|
|
2291
|
-
*/
|
|
2292
|
-
readonly subtitle?: ReactNode;
|
|
2293
|
-
/** The line that carries the number. `heading/lg`. */
|
|
2294
|
-
readonly title?: ReactNode;
|
|
2295
|
-
/** The label on the action. `text/bold/md`, e.g. Figma's "Get Ticket". */
|
|
2296
|
-
readonly actionLabel: ReactNode;
|
|
2297
|
-
readonly onAction: () => void;
|
|
2298
|
-
/**
|
|
2299
|
-
* OPENING, AND WAITING ON THE CARD'S DATA — see `IslandView`'s `RESTING.waiting`. The
|
|
2300
|
-
* button carries the stylesheet's busy treatment (`aria-busy`, the spinner in place of its
|
|
2301
|
-
* words) and takes no second press, which would collapse what the buyer just opened.
|
|
2302
|
-
*/
|
|
2303
|
-
readonly busy?: boolean;
|
|
2304
|
-
};
|
|
2579
|
+
export { IslandMode }
|
|
2305
2580
|
|
|
2306
2581
|
/**
|
|
2307
2582
|
* Where the reservation itself is held: in the host page's flow, or pinned to the screen.
|
|
@@ -2314,133 +2589,76 @@ export declare type IslandPillProps = {
|
|
|
2314
2589
|
*/
|
|
2315
2590
|
export declare type IslandPlacement = 'page' | 'screen';
|
|
2316
2591
|
|
|
2317
|
-
/** The
|
|
2318
|
-
declare
|
|
2319
|
-
|
|
2320
|
-
/** The island's own box — fill, stroke, radius, and the frame it animates. */
|
|
2321
|
-
export declare const IslandSurface: react.ForwardRefExoticComponent<IslandSurfaceProps & react.RefAttributes<HTMLDivElement>>;
|
|
2592
|
+
/** The parts, once any kept session has been resumed. */
|
|
2593
|
+
export declare function loadCheckoutParts(config: WebCheckoutConfig): Promise<CheckoutParts>;
|
|
2322
2594
|
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
* `data-align-block` and `data-align-inline` — because the stylesheet's rules are per
|
|
2337
|
-
* axis. The block half moves the frame, the planes and the pop's origin together, and
|
|
2338
|
-
* those must never disagree; the inline half only picks the side the frame docks to.
|
|
2339
|
-
* See `alignmentAxes`.
|
|
2340
|
-
*/
|
|
2341
|
-
align: IslandAlignment;
|
|
2342
|
-
/**
|
|
2343
|
-
* Where the ANCHOR is held — see `IslandPlacement`. Stamped on the anchor as
|
|
2344
|
-
* `data-placement` only when it is `screen`, with the block half of `align` beside it:
|
|
2345
|
-
* the rules that pin the reservation to an edge of the viewport are per block axis,
|
|
2346
|
-
* exactly as the frame's are.
|
|
2347
|
-
*/
|
|
2348
|
-
placement: IslandPlacement;
|
|
2349
|
-
/**
|
|
2350
|
-
* How far a pinned reservation stands off the screen's edge, in px — the COLLAPSED
|
|
2351
|
-
* frame's `edge`, for the reason `footprint` is the collapsed height: the reservation is
|
|
2352
|
-
* the island at rest, whatever it is showing now.
|
|
2353
|
-
*/
|
|
2354
|
-
footprintEdge: number;
|
|
2355
|
-
/**
|
|
2356
|
-
* THE PROVIDER'S FULLSCREEN JOURNEY, stamped as `data-journey`. Two rules hang off
|
|
2357
|
-
* it, and they hang off the ROOT because both are about what the root's own
|
|
2358
|
-
* geometry does to a fixed-position descendant: the journey overlay has to escape
|
|
2359
|
-
* the island entirely, and a centred island's `translateY(-50%)` would otherwise
|
|
2360
|
-
* become the overlay's containing block instead of the viewport.
|
|
2361
|
-
*/
|
|
2362
|
-
journeyFullscreen?: boolean;
|
|
2363
|
-
/**
|
|
2364
|
-
* Where the press gesture has got to, or `undefined` when nothing is being pressed.
|
|
2365
|
-
* Stamped as `data-press`.
|
|
2366
|
-
*/
|
|
2367
|
-
press?: PressPhase | null;
|
|
2368
|
-
/**
|
|
2369
|
-
* How the move should be acknowledged, or `undefined` when nothing is moving. Stamped
|
|
2370
|
-
* as the VALUE of `data-transitioning`. See `IslandGesture` for the three answers and
|
|
2371
|
-
* why a boolean could not hold them.
|
|
2372
|
-
*/
|
|
2373
|
-
gesture?: IslandGesture;
|
|
2374
|
-
/** True while a step change is in flight. */
|
|
2375
|
-
transitioning?: boolean;
|
|
2376
|
-
/** Which appearance to render, or `undefined` to follow the viewer's OS. */
|
|
2377
|
-
mode?: IslandMode;
|
|
2378
|
-
/**
|
|
2379
|
-
* The height the surface is to be, in px — the plane's measurement AND the bay's,
|
|
2380
|
-
* already added up by `IslandHost`, which is the one place that knows both. `null`
|
|
2381
|
-
* before the first measurement renders at `auto`, because a 0-height first paint would
|
|
2382
|
-
* flash an empty box on mount.
|
|
2383
|
-
*/
|
|
2384
|
-
height: number | null;
|
|
2385
|
-
/** Names the region for assistive technology. */
|
|
2386
|
-
label: string;
|
|
2387
|
-
/**
|
|
2388
|
-
* The height reserved in the host page's flow, in px — `footprintHeight` of the
|
|
2389
|
-
* island's COLLAPSED presentation, not its current one.
|
|
2390
|
-
*/
|
|
2391
|
-
footprint: number;
|
|
2392
|
-
/** WHICH AXES THE POP IS SPENT ON — `both`, or `block` alone. */
|
|
2393
|
-
popAxis?: 'both' | 'block';
|
|
2394
|
-
/**
|
|
2395
|
-
* THE BAY — a region that joins and leaves the card WITHOUT belonging to any
|
|
2396
|
-
* step, so its contents survive every plane change. The clip tears down and rebuilds
|
|
2397
|
-
* both planes on a step change; a payment frame mounted there would be destroyed at
|
|
2398
|
-
* the exact moment it must not be. Like `chrome`, the bay is a sibling of the clip
|
|
2399
|
-
* inside the surface, but at the other end: it grows the card instead of sitting
|
|
2400
|
-
* over its content.
|
|
2401
|
-
*/
|
|
2402
|
-
bay?: ReactNode;
|
|
2403
|
-
/**
|
|
2404
|
-
* The bay's own box, in px — `0` while it is closed. Published as
|
|
2405
|
-
* `--scopetickets-island-bay-height`, which is the bay element's own height and
|
|
2406
|
-
* nothing else's: the clip takes what is left of the surface by FLEX rather than by
|
|
2407
|
-
* subtracting this var, so the two cannot be told different numbers.
|
|
2408
|
-
*/
|
|
2409
|
-
bayHeight?: number | null;
|
|
2410
|
-
/** The element children are actually positioned inside. */
|
|
2411
|
-
clipRef?: Ref<HTMLDivElement>;
|
|
2412
|
-
children: ReactNode;
|
|
2413
|
-
/**
|
|
2414
|
-
* The persistent chrome — `IslandHeader`, drawn over both planes and rebuilt by
|
|
2415
|
-
* neither.
|
|
2416
|
-
*/
|
|
2417
|
-
chrome?: ReactNode;
|
|
2418
|
-
/**
|
|
2419
|
-
* Drawn OUTSIDE the clip, as a sibling of it — the carry layer, and so far the only
|
|
2420
|
-
* thing that belongs there.
|
|
2421
|
-
*/
|
|
2422
|
-
overlay?: ReactNode;
|
|
2423
|
-
/**
|
|
2424
|
-
* A sheet over the viewport, for a state that admits no input — see `IslandShield`.
|
|
2425
|
-
* Taken HERE rather than anywhere inside the frame because it is `position: fixed` and
|
|
2426
|
-
* the frame's transform would become its containing block.
|
|
2427
|
-
*/
|
|
2428
|
-
shield?: ReactNode;
|
|
2429
|
-
/**
|
|
2430
|
-
* Nothing may be pressed — see `IslandShield`. Softens the pop, because the press it is
|
|
2431
|
-
* answering did not do anything.
|
|
2432
|
-
*/
|
|
2433
|
-
sealed?: boolean;
|
|
2595
|
+
/**
|
|
2596
|
+
* WHERE THE WIDGET SAYS SOMETHING TO WHOEVER INTEGRATED IT — never to the buyer, who
|
|
2597
|
+
* gets a notice instead.
|
|
2598
|
+
*
|
|
2599
|
+
* TWO LEVELS, AND THE DIFFERENCE IS LOAD-BEARING. A sold-out session is the platform
|
|
2600
|
+
* working: an integrator who greps their console for errors should not find one every
|
|
2601
|
+
* time a busy on-sale turns somebody away. `warn` is for what the system got right and
|
|
2602
|
+
* somebody needs to know about; `error` is for what broke. It is the same distinction
|
|
2603
|
+
* `NoticeSeverity` draws, made to the console.
|
|
2604
|
+
*/
|
|
2605
|
+
declare type Logger = {
|
|
2606
|
+
readonly warn: (message: string, cause?: unknown) => void;
|
|
2607
|
+
readonly error: (message: string, cause?: unknown) => void;
|
|
2434
2608
|
};
|
|
2435
2609
|
|
|
2610
|
+
declare interface MyBookingEventResponse {
|
|
2611
|
+
Key?: string | null;
|
|
2612
|
+
Name?: string | null;
|
|
2613
|
+
Date?: string | null;
|
|
2614
|
+
/** UTC. */
|
|
2615
|
+
Starts?: string | null;
|
|
2616
|
+
Ends?: string | null;
|
|
2617
|
+
/** The venue's wall clock. */
|
|
2618
|
+
LocalStartTime?: string | null;
|
|
2619
|
+
LocalEndTime?: string | null;
|
|
2620
|
+
TimeZone?: string | null;
|
|
2621
|
+
/** The event's artwork, or its series'; a CDN path or URL (`absoluteArtworkUrl`). */
|
|
2622
|
+
Background?: string | null;
|
|
2623
|
+
Venue?: {
|
|
2624
|
+
Key?: string | null;
|
|
2625
|
+
Name?: string | null;
|
|
2626
|
+
City?: string | null;
|
|
2627
|
+
} | null;
|
|
2628
|
+
Series?: {
|
|
2629
|
+
Key?: string | null;
|
|
2630
|
+
Name?: string | null;
|
|
2631
|
+
} | null;
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
declare interface MyBookingResponse {
|
|
2635
|
+
/** The order's key (the cart's): what `Users/Me/Bookings/{key}` opens it by. */
|
|
2636
|
+
Key?: string | null;
|
|
2637
|
+
/** UTC. */
|
|
2638
|
+
PlacedAt?: string | null;
|
|
2639
|
+
/** `succeeded`, `partially_refunded` or `refunded`. */
|
|
2640
|
+
Status?: string | null;
|
|
2641
|
+
/** What the signed-in user is to it. */
|
|
2642
|
+
Role?: 'BUYER' | 'HOLDER' | null;
|
|
2643
|
+
/** Their live tickets in it: those they hold, and as buyer those held by someone with no account. */
|
|
2644
|
+
TicketCount?: number | null;
|
|
2645
|
+
Event?: MyBookingEventResponse | null;
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2436
2648
|
/**
|
|
2437
|
-
*
|
|
2438
|
-
*
|
|
2439
|
-
* Derived rather than written down, because the floor moves with the padding rather than
|
|
2440
|
-
* with anything a reader could guess: it is the first count whose content survives having
|
|
2441
|
-
* the inset taken off both ends, so a padding re-tuned upward raises it by itself.
|
|
2649
|
+
* ONE OF THE SIGNED-IN ACCOUNT'S PASSKEYS, as `GET /api/Users/Me/Passkeys` answers it (the platform's
|
|
2650
|
+
* `PasskeyResponse`). No name, device or last use: the platform keeps none of them.
|
|
2442
2651
|
*/
|
|
2443
|
-
|
|
2652
|
+
/**
|
|
2653
|
+
* `GET /api/Users/Me/Bookings` — a page of the signed-in user's bookings: every paid order they bought or hold
|
|
2654
|
+
* a ticket in, one an order, with only what is theirs to see (no amounts, nobody else's details).
|
|
2655
|
+
*/
|
|
2656
|
+
declare interface MyBookingsResponse {
|
|
2657
|
+
Bookings?: MyBookingResponse[] | null;
|
|
2658
|
+
/** More after this page: ask again with `after` = `Next`. */
|
|
2659
|
+
HasMore?: boolean | null;
|
|
2660
|
+
Next?: string | null;
|
|
2661
|
+
}
|
|
2444
2662
|
|
|
2445
2663
|
/**
|
|
2446
2664
|
* CONTROLLED OR SELF-HELD. The widget passes both props, which is what keeps a typed
|
|
@@ -2639,6 +2857,22 @@ export declare function noticeTelemetry(severity: NoticeSeverity): 'BREADCRUMB'
|
|
|
2639
2857
|
*/
|
|
2640
2858
|
export declare function occasionTime(occasion: BookingOccasion): string | null;
|
|
2641
2859
|
|
|
2860
|
+
/** What a cart is to be filled with, plus the names a cart line is labelled from. */
|
|
2861
|
+
declare type OrderAsk = CartFilling & {
|
|
2862
|
+
readonly userTypeNames: Readonly<Record<string, string>>;
|
|
2863
|
+
/**
|
|
2864
|
+
* WHICH INVENTORIES THE CART MAY BE FILLED FROM, and absent for all of them — the mount's
|
|
2865
|
+
* own, less any the day picker's filter has unticked. See `sellingInventories`.
|
|
2866
|
+
*
|
|
2867
|
+
* ON THE ASK, NOT ON THE GATEWAY. It was a getter the host handed the gateway when it
|
|
2868
|
+
* built one, which the web could keep current and a native host could not: the ticks
|
|
2869
|
+
* are the island's, made after the host's parts were read, so a native cart filled from
|
|
2870
|
+
* an inventory the buyer had hidden. Carried here it is decided where the ticks are, and
|
|
2871
|
+
* a changed filter is a changed ask — the held cart no longer holds what is shown.
|
|
2872
|
+
*/
|
|
2873
|
+
readonly inventories?: readonly string[];
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2642
2876
|
/**
|
|
2643
2877
|
* WHAT THE ORDER CAME TO — one state rather than a count beside an error.
|
|
2644
2878
|
*
|
|
@@ -2684,6 +2918,53 @@ declare type OrderFill =
|
|
|
2684
2918
|
readonly error: Error;
|
|
2685
2919
|
};
|
|
2686
2920
|
|
|
2921
|
+
declare type OrderGateway = {
|
|
2922
|
+
/**
|
|
2923
|
+
* Create a cart on an event and fill it with the ask. Stamps the escrow window.
|
|
2924
|
+
*
|
|
2925
|
+
* `questionsAhead` HEARS THE EVENT'S QUESTIONS AS SOON AS THEY ARE READ, which is before the
|
|
2926
|
+
* fill has finished: the walk needs them while the buyer is still on the way to Details, and
|
|
2927
|
+
* a large party's fill can outlast that. The `CartLoad` still carries the same read.
|
|
2928
|
+
*/
|
|
2929
|
+
readonly open: (mark: string, ask: OrderAsk, questionsAhead?: (load: EventQuestionsLoad) => void) => Promise<CartLoad>;
|
|
2930
|
+
/** Read a cart the host already opened. Never creates one, never fills one. */
|
|
2931
|
+
readonly adopt: (cartKey: string) => Promise<CartLoad>;
|
|
2932
|
+
/** The event's questions, or its series'. Never throws — a failure is a load state. */
|
|
2933
|
+
readonly questions: (cart: Cart) => Promise<EventQuestionsLoad>;
|
|
2934
|
+
/** Where the payment has got to, narrowed. Throws only where the ask itself failed. */
|
|
2935
|
+
readonly status: (cartKey: string) => Promise<PaymentStatusRead>;
|
|
2936
|
+
/**
|
|
2937
|
+
* Puts the buyer on the cart and nothing else. The payment host's frame creates the
|
|
2938
|
+
* intent when it mounts; a second writer here would race it for the same purchase.
|
|
2939
|
+
*/
|
|
2940
|
+
readonly setBuyer: (cartKey: string, buyer: BuyerDetails) => Promise<BuyerSave>;
|
|
2941
|
+
/** ONE item's answers. Which items, and in what order, is the store's decision. */
|
|
2942
|
+
readonly sendAnswers: (cartKey: string, request: SubmitQuestionnaireResponsesRequest) => Promise<AnswersSend>;
|
|
2943
|
+
/**
|
|
2944
|
+
* The only call that can say WHY: `PUT .../PromoCode` refuses with a transport error
|
|
2945
|
+
* about the request, while `Check` answers `{IsValid, Reason}`. Throws where the check
|
|
2946
|
+
* could not be MADE, which is not a code being refused.
|
|
2947
|
+
*/
|
|
2948
|
+
readonly checkPromo: (code: string, eventId: number) => Promise<PromoCheck>;
|
|
2949
|
+
/** Put a code on the order. Both writes answer with the cart. */
|
|
2950
|
+
readonly writePromo: (cartKey: string, code: string) => Promise<PromoWriteResult>;
|
|
2951
|
+
/** Take it off again, and the order goes back to its full price. */
|
|
2952
|
+
readonly clearPromo: (cartKey: string) => Promise<PromoWriteResult>;
|
|
2953
|
+
/**
|
|
2954
|
+
* Always a fresh order (Revolut Pay requires one per `pay()`). It cancels any order still
|
|
2955
|
+
* awaiting payment, so ask the platform first.
|
|
2956
|
+
*/
|
|
2957
|
+
readonly mintOrder: (cartKey: string) => Promise<OrderMint>;
|
|
2958
|
+
/** Convert a paid cart — the payment host's job on the web. */
|
|
2959
|
+
readonly finalize: (cartKey: string) => Promise<Finalized>;
|
|
2960
|
+
/**
|
|
2961
|
+
* GIVE A CART BACK. Answers nothing and never throws: a cart that could not be released
|
|
2962
|
+
* is stock held until its own escrow expires, which is a few minutes and not a failure
|
|
2963
|
+
* a buyer should be shown. See `RELEASE_CART`.
|
|
2964
|
+
*/
|
|
2965
|
+
readonly release: (cartKey: string) => Promise<void>;
|
|
2966
|
+
};
|
|
2967
|
+
|
|
2687
2968
|
export declare type OrderIntent = {
|
|
2688
2969
|
/** The one field a host must supply: there is nothing to sell without it. */
|
|
2689
2970
|
readonly subject: OrderSubject;
|
|
@@ -2709,6 +2990,14 @@ export declare type OrderIntent = {
|
|
|
2709
2990
|
readonly paymentMethodKey?: string;
|
|
2710
2991
|
};
|
|
2711
2992
|
|
|
2993
|
+
declare type OrderMint = {
|
|
2994
|
+
readonly ok: true;
|
|
2995
|
+
readonly order: OrderToken;
|
|
2996
|
+
} | {
|
|
2997
|
+
readonly ok: false;
|
|
2998
|
+
readonly reason: string;
|
|
2999
|
+
};
|
|
3000
|
+
|
|
2712
3001
|
/**
|
|
2713
3002
|
* WHAT IS BEING BOUGHT INTO, as one value rather than two nullable keys.
|
|
2714
3003
|
*
|
|
@@ -2729,15 +3018,26 @@ export declare type OrderSubject =
|
|
|
2729
3018
|
readonly key: string;
|
|
2730
3019
|
};
|
|
2731
3020
|
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
3021
|
+
declare type OrderToken = {
|
|
3022
|
+
readonly platform: PaymentPlatform | null;
|
|
3023
|
+
/** The platform's own word for it, bounded — so a refusal can say which it was. */
|
|
3024
|
+
readonly said: string | null;
|
|
3025
|
+
/** `ClientSecret`. */
|
|
3026
|
+
readonly token: string;
|
|
3027
|
+
readonly publicKey: string;
|
|
3028
|
+
};
|
|
2737
3029
|
|
|
2738
|
-
/**
|
|
2739
|
-
|
|
2740
|
-
|
|
3030
|
+
/** @internal */
|
|
3031
|
+
declare interface Organisation {
|
|
3032
|
+
Key: string;
|
|
3033
|
+
Name: string;
|
|
3034
|
+
LegalName: string | null;
|
|
3035
|
+
Logo: string | null;
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
/**
|
|
3039
|
+
* ONLY N TICKETS ARE HELD — the notice the count made possible.
|
|
3040
|
+
*
|
|
2741
3041
|
* The SDK's own `NOT_ENOUGH` says what this replaces: "No number, because the platform
|
|
2742
3042
|
* refuses on availability without saying how many remain. With a count this becomes 'Only
|
|
2743
3043
|
* 4 Tickets Left' and leads with Book 4 Instead — the strongest card in the set." The
|
|
@@ -2746,34 +3046,6 @@ export declare function parseWallClockTime(value: string | null | undefined): st
|
|
|
2746
3046
|
*/
|
|
2747
3047
|
export declare function partFilledNotice(held: number, asked: number): Notice;
|
|
2748
3048
|
|
|
2749
|
-
/** The party step's controls, holding their own counts. */
|
|
2750
|
-
/** The step itself: rows when the event names its types, one line when it does not. */
|
|
2751
|
-
export declare function PartyStepper({ userTypes, counts, onChange, max, soloName, onRefuse, refused, }: PartyStepperProps): react_jsx_runtime.JSX.Element;
|
|
2752
|
-
|
|
2753
|
-
export declare type PartyStepperProps = {
|
|
2754
|
-
/** What the event offers. EMPTY draws the single unnamed line instead of rows. */
|
|
2755
|
-
readonly userTypes: readonly PartyUserTypeOption[];
|
|
2756
|
-
/** How many of each, by user-type key. */
|
|
2757
|
-
readonly counts: Readonly<Record<string, number>>;
|
|
2758
|
-
readonly onChange: (key: string, count: number) => void;
|
|
2759
|
-
/** The ticket's ceiling, across every row together. */
|
|
2760
|
-
readonly max: number;
|
|
2761
|
-
/** What the single line is called when there are no user types. */
|
|
2762
|
-
readonly soloName?: string;
|
|
2763
|
-
/**
|
|
2764
|
-
* A NUMBER OVER THE CEILING WAS ASKED FOR, or `null` once one within it is. The step is
|
|
2765
|
-
* not answered while this stands: a card showing a refusal and a live Continue would be
|
|
2766
|
-
* telling a buyer both that they cannot have it and that they may proceed.
|
|
2767
|
-
*/
|
|
2768
|
-
readonly onRefuse?: (asked: number | null) => void;
|
|
2769
|
-
/**
|
|
2770
|
-
* WHAT WAS ASKED FOR, HELD BY THE WIDGET. Controlled rather than kept here, because the
|
|
2771
|
-
* step's answered-ness depends on it and that lives up there — two copies of one fact is
|
|
2772
|
-
* how the note ends up on screen while Continue is live, or the other way round.
|
|
2773
|
-
*/
|
|
2774
|
-
readonly refused?: number | null;
|
|
2775
|
-
};
|
|
2776
|
-
|
|
2777
3049
|
/** A user type the event offers, as the row needs it. */
|
|
2778
3050
|
export declare type PartyUserTypeOption = {
|
|
2779
3051
|
/**
|
|
@@ -2788,6 +3060,106 @@ export declare type PartyUserTypeOption = {
|
|
|
2788
3060
|
readonly note: string | null;
|
|
2789
3061
|
};
|
|
2790
3062
|
|
|
3063
|
+
/**
|
|
3064
|
+
* THE COSE ALGORITHMS THE PLATFORM WILL VERIFY, as a closed set — its own
|
|
3065
|
+
* `PasskeyAlgorithm` enum, which is `-7` (ES256) and `-257` (RS256).
|
|
3066
|
+
*
|
|
3067
|
+
* The wire types this off as a bare `number[]`, because that is what JSON carries. It
|
|
3068
|
+
* arrives here as free data and leaves as a value we own.
|
|
3069
|
+
*/
|
|
3070
|
+
declare type PasskeyAlgorithm = -7 | -257;
|
|
3071
|
+
|
|
3072
|
+
/**
|
|
3073
|
+
* WHETHER THIS PAGE MAY MAKE A PASSKEY FOR `rpId` ITSELF: its own site (the RP id, or under it),
|
|
3074
|
+
* or a related origin the RP id lists, in a browser that honours the list (it says so through
|
|
3075
|
+
* `PublicKeyCredential.getClientCapabilities`; one that cannot say is not trusted to).
|
|
3076
|
+
*/
|
|
3077
|
+
export declare function passkeyHereFor(rpId: string): Promise<boolean>;
|
|
3078
|
+
|
|
3079
|
+
/**
|
|
3080
|
+
* MAKING A PASSKEY IN THE PAGE ITSELF (Conall, 2026-11-18): the passkey host's `runRegistration`
|
|
3081
|
+
* (`packages/passkey-host/src/ceremony.ts`), run here rather than in the host's frame, for a page
|
|
3082
|
+
* the RP id covers: its own site, or one of the related origins the platform lists at
|
|
3083
|
+
* `https://<rpId>/.well-known/webauthn`. Safari on macOS refuses to make a passkey in a
|
|
3084
|
+
* cross-origin frame, so where the page may, the page makes it: the browser's own prompt, no frame
|
|
3085
|
+
* and no window. `PasskeyFrame` stays the way to sign in, and to make one where the page may not.
|
|
3086
|
+
*
|
|
3087
|
+
* TODO(sdk): one ceremony module for the host and the page, not two — the codec and the reading
|
|
3088
|
+
* of a refusal below are copies of the host's (`codec.ts`, `failures.ts`).
|
|
3089
|
+
*/
|
|
3090
|
+
/** How it ended: the credential to lodge, or why not, in the host's own codes. */
|
|
3091
|
+
export declare type PasskeyHereResult = {
|
|
3092
|
+
readonly ok: true;
|
|
3093
|
+
readonly credential: PasskeyRegistrationRequest;
|
|
3094
|
+
} | {
|
|
3095
|
+
readonly ok: false;
|
|
3096
|
+
readonly code: 'DECLINED' | 'ALREADY_REGISTERED' | 'BLOCKED_ORIGIN' | 'UNAVAILABLE' | 'MALFORMED_CHALLENGE' | 'FAILED';
|
|
3097
|
+
};
|
|
3098
|
+
|
|
3099
|
+
declare interface PasskeyRegistrationChallenge {
|
|
3100
|
+
ChallengeID: string | null;
|
|
3101
|
+
/** Hex on the wire. `@scopetickets/passkey-host` owns the decoding — see its `codec.ts`. */
|
|
3102
|
+
Challenge: string | null;
|
|
3103
|
+
User: PasskeyUser;
|
|
3104
|
+
/**
|
|
3105
|
+
* COSE identifiers — `-7` (ES256) and `-257` (RS256), which is the platform's whole
|
|
3106
|
+
* `PasskeyAlgorithm` enum. A bare `number[]` here because that is what JSON carries;
|
|
3107
|
+
* `passkeyAlgorithms` in `@scopetickets/checkout` is where it becomes a closed set.
|
|
3108
|
+
*/
|
|
3109
|
+
Algorithms: number[];
|
|
3110
|
+
UserVerification: string | null;
|
|
3111
|
+
/** `testlink.scopetickets.com` on staging — and the reason the ceremony needs its own origin. */
|
|
3112
|
+
RPID: string | null;
|
|
3113
|
+
/**
|
|
3114
|
+
* THE ACCOUNT'S OWN CREDENTIALS, which the device is to refuse to make a second key beside
|
|
3115
|
+
* (WebAuthn `excludeCredentials`). Each as the registering
|
|
3116
|
+
* client stored it, the browser's base64url `credential.id`. Absent from an older platform.
|
|
3117
|
+
*/
|
|
3118
|
+
ExcludeCredentialIDs?: string[] | null;
|
|
3119
|
+
}
|
|
3120
|
+
|
|
3121
|
+
/** `POST /api/Passkeys/Registrations` — the credential the device made. */
|
|
3122
|
+
declare interface PasskeyRegistrationRequest {
|
|
3123
|
+
ChallengeID: string;
|
|
3124
|
+
CredentialID: string;
|
|
3125
|
+
Type: string;
|
|
3126
|
+
AuthenticatorAttestation: string;
|
|
3127
|
+
ClientData: string;
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
/** Who the credential will belong to. `Key` is the only user key the API ever returns. */
|
|
3131
|
+
declare interface PasskeyUser {
|
|
3132
|
+
Key: string | null;
|
|
3133
|
+
Email: string | null;
|
|
3134
|
+
FullName: string | null;
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
/**
|
|
3138
|
+
* What it answers with.
|
|
3139
|
+
*
|
|
3140
|
+
* NO `RPID`, unlike its registration twin — and `navigator.credentials.get()` needs one.
|
|
3141
|
+
* Until the platform returns it, the caller supplies it from its own environment config,
|
|
3142
|
+
* which is a second place the RP id is written down and therefore a second place it can
|
|
3143
|
+
* be wrong.
|
|
3144
|
+
*/
|
|
3145
|
+
declare interface PasskeyValidationChallenge {
|
|
3146
|
+
ChallengeID: string | null;
|
|
3147
|
+
Challenge: string | null;
|
|
3148
|
+
CredentialIDs?: string[] | null;
|
|
3149
|
+
UserVerification: string | null;
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
/** `POST /api/Passkeys/Authentications` — the assertion the device signed. */
|
|
3153
|
+
declare interface PasskeyValidationRequest {
|
|
3154
|
+
ChallengeID: string;
|
|
3155
|
+
CredentialID: string;
|
|
3156
|
+
ClientData: string;
|
|
3157
|
+
AuthenticatorData: string;
|
|
3158
|
+
/** Absent from a non-discoverable credential, which is a real answer and not an error. */
|
|
3159
|
+
UserHandle: string | null;
|
|
3160
|
+
Signature: string;
|
|
3161
|
+
}
|
|
3162
|
+
|
|
2791
3163
|
/**
|
|
2792
3164
|
* "Add Password" — the design, whose counting is ported exactly: see
|
|
2793
3165
|
* `@/domain/password` for why the confirm field's ring measures itself against the
|
|
@@ -2931,6 +3303,18 @@ export declare type PaymentOutcome =
|
|
|
2931
3303
|
readonly attendeeTicketKey?: string;
|
|
2932
3304
|
};
|
|
2933
3305
|
|
|
3306
|
+
/**
|
|
3307
|
+
* THE PROVIDER AN ORDER SETTLES THROUGH, as the platform's `PaymentPlatformType` names it:
|
|
3308
|
+
* `"scope"` — Scope's own processing, which is Revolut — or `"stripe"`. Nothing else is sent.
|
|
3309
|
+
*
|
|
3310
|
+
* `null` IS REFUSED, NOT CHARGED. It used to be charged as the web would, since the payment
|
|
3311
|
+
* host never reads this field; but `"scope"` was never read as Revolut, so every Scope order
|
|
3312
|
+
* was already arriving as `null`, and one the sheet then could not open (TheWeeknd, staging,
|
|
3313
|
+
* 2026-09-29) sprang Pay and answered nothing. A word this package does not know is now an
|
|
3314
|
+
* invalid payment processor, said as one.
|
|
3315
|
+
*/
|
|
3316
|
+
declare type PaymentPlatform = 'REVOLUT' | 'STRIPE';
|
|
3317
|
+
|
|
2934
3318
|
export declare function PaymentReturn({ apiKey, environment, checkoutPath, returnPath, onCompleted, }: PaymentReturnProps): react_jsx_runtime.JSX.Element;
|
|
2935
3319
|
|
|
2936
3320
|
/**
|
|
@@ -2972,6 +3356,62 @@ export declare interface PaymentReturnProps {
|
|
|
2972
3356
|
readonly onCompleted?: (cartKey: string) => void;
|
|
2973
3357
|
}
|
|
2974
3358
|
|
|
3359
|
+
/** The host's adapter. `pay` is `unknown` because the two Revolut modules answer different shapes. */
|
|
3360
|
+
declare type PaymentSheet = {
|
|
3361
|
+
readonly configure: (publicKey: string) => Promise<void>;
|
|
3362
|
+
readonly pay: (orderToken: string, email?: string) => Promise<unknown>;
|
|
3363
|
+
};
|
|
3364
|
+
|
|
3365
|
+
declare type PaymentSheets = {
|
|
3366
|
+
readonly card?: PaymentSheet;
|
|
3367
|
+
readonly revolutPay?: PaymentSheet;
|
|
3368
|
+
};
|
|
3369
|
+
|
|
3370
|
+
/**
|
|
3371
|
+
* WHERE A PAYMENT HAS GOT TO. `COMPLETED` means the provider took the money and nothing
|
|
3372
|
+
* more — not that the tickets exist. A resubmit against a completed order is the
|
|
3373
|
+
* double-charge path, which is why `PaymentOutcome` keeps the two apart as well.
|
|
3374
|
+
*/
|
|
3375
|
+
declare type PaymentStatusRead =
|
|
3376
|
+
/** The money moved. Finalization is a separate question, asked of the provider's side. */
|
|
3377
|
+
{
|
|
3378
|
+
readonly kind: 'COMPLETED';
|
|
3379
|
+
}
|
|
3380
|
+
/**
|
|
3381
|
+
* The attempt is over and another one is needed — a decline, or an intent the platform
|
|
3382
|
+
* has terminalised. `reason` is the provider's own sentence where it gave one.
|
|
3383
|
+
*/
|
|
3384
|
+
| {
|
|
3385
|
+
readonly kind: 'NEEDS_NEW_PAYMENT';
|
|
3386
|
+
readonly reason: string | null;
|
|
3387
|
+
}
|
|
3388
|
+
/**
|
|
3389
|
+
* Nothing is moving: no payment made yet. Kept apart from `PROCESSING` because a closed
|
|
3390
|
+
* native sheet leaves an order awaiting, and that must not read as a payment in flight.
|
|
3391
|
+
*/
|
|
3392
|
+
| {
|
|
3393
|
+
readonly kind: 'AWAITING';
|
|
3394
|
+
}
|
|
3395
|
+
/**
|
|
3396
|
+
* NO PAYMENT AGAINST THIS CART AT ALL — the platform's `none`, which its own OpenAPI
|
|
3397
|
+
* description of this endpoint does not list. Undecided like `AWAITING`, and kept apart
|
|
3398
|
+
* from it for the reason `AWAITING` is kept apart from `PROCESSING`: after a charge has
|
|
3399
|
+
* been attempted the two are different news, because this one says the order never took.
|
|
3400
|
+
*/
|
|
3401
|
+
| {
|
|
3402
|
+
readonly kind: 'NOT_STARTED';
|
|
3403
|
+
} | {
|
|
3404
|
+
readonly kind: 'PROCESSING';
|
|
3405
|
+
}
|
|
3406
|
+
/**
|
|
3407
|
+
* A word this package has never heard of. Acted on as undecided, which is the only safe
|
|
3408
|
+
* reading, but kept distinct from `PROCESSING` so a log can tell the two apart.
|
|
3409
|
+
*/
|
|
3410
|
+
| {
|
|
3411
|
+
readonly kind: 'UNKNOWN';
|
|
3412
|
+
readonly said: string | null;
|
|
3413
|
+
};
|
|
3414
|
+
|
|
2975
3415
|
/** What the charge was made with — the order's own record of it, see `ChargeMethod`. */
|
|
2976
3416
|
export declare type PaymentType = ChargeMethod;
|
|
2977
3417
|
|
|
@@ -2987,6 +3427,29 @@ declare type PhoneValue = {
|
|
|
2987
3427
|
readonly national: string;
|
|
2988
3428
|
};
|
|
2989
3429
|
|
|
3430
|
+
/**
|
|
3431
|
+
* WHERE A NATIVE HOST'S PHOTO COMES FROM. The SDK bundles no picker — a host has its own,
|
|
3432
|
+
* with its own permissions prompt — so it hands one in. `null` is the buyer cancelling.
|
|
3433
|
+
*/
|
|
3434
|
+
declare type PhotoSource = {
|
|
3435
|
+
readonly pick: () => Promise<PickedPhoto | null>;
|
|
3436
|
+
};
|
|
3437
|
+
|
|
3438
|
+
/**
|
|
3439
|
+
* A PHOTO A NATIVE HOST PICKED — what the web gets from a `File` and a `FileReader`, handed
|
|
3440
|
+
* over by the host's own picker (expo-image-picker, say, with `base64: true`).
|
|
3441
|
+
*/
|
|
3442
|
+
declare type PickedPhoto = ChosenFile & {
|
|
3443
|
+
/** Something an image view can draw straight away — the picker's own file uri. */
|
|
3444
|
+
readonly uri: string;
|
|
3445
|
+
/**
|
|
3446
|
+
* THE PICTURE ITSELF, as a data URL — `data:<type>;base64,…`, exactly what the web's
|
|
3447
|
+
* `readAsDataURL` produces and `AccountPhoto`'s `UPLOAD` carries. A uri means nothing to
|
|
3448
|
+
* the platform; the bytes have to travel.
|
|
3449
|
+
*/
|
|
3450
|
+
readonly encoded: string;
|
|
3451
|
+
};
|
|
3452
|
+
|
|
2990
3453
|
/** Which steps wear the PICKER LAYOUT — no hero, so the card opens on the run. */
|
|
2991
3454
|
export declare const PICKER_LAYOUT: Partial<Record<PurchaseStepId, boolean>>;
|
|
2992
3455
|
|
|
@@ -3020,28 +3483,26 @@ export declare type PlacedBooking = {
|
|
|
3020
3483
|
readonly record?: BookingRecord;
|
|
3021
3484
|
};
|
|
3022
3485
|
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
readonly
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
readonly
|
|
3034
|
-
readonly
|
|
3035
|
-
/**
|
|
3036
|
-
|
|
3486
|
+
declare type PlatformConfig = {
|
|
3487
|
+
readonly environment: CheckoutEnvironment;
|
|
3488
|
+
/** The app's `AppApiKey` — the Bearer token, not the `AppKey`. */
|
|
3489
|
+
readonly appApiKey: string;
|
|
3490
|
+
/**
|
|
3491
|
+
* The app's public `AppKey`, which scopes a signed-in read of the user's bookings to orders
|
|
3492
|
+
* for events assigned to this app. Without it, the reads cover every booking the user has,
|
|
3493
|
+
* whichever app sold it. A value that is not an AppKey is said, and leaves no signed-in reads
|
|
3494
|
+
* at all rather than widening to every app.
|
|
3495
|
+
*/
|
|
3496
|
+
readonly applicationKey?: string;
|
|
3497
|
+
readonly orgKey?: string;
|
|
3498
|
+
/**
|
|
3499
|
+
* WHICH INVENTORIES THIS MOUNT SELLS, and absent for all of them. Named — `{ key, label }`
|
|
3500
|
+
* — two or more draw Select Day's filter. The platform keeps inventory names to itself,
|
|
3501
|
+
* so the labels are the host's.
|
|
3502
|
+
*/
|
|
3503
|
+
readonly inventories?: readonly InventoryChoice[];
|
|
3037
3504
|
};
|
|
3038
3505
|
|
|
3039
|
-
/** Where the press has got to. There are only two answers. */
|
|
3040
|
-
declare type PressPhase = 'held';
|
|
3041
|
-
|
|
3042
|
-
/** WHAT the press compresses, which is decided by what the control DOES. */
|
|
3043
|
-
export declare type PressScope = 'island' | 'element';
|
|
3044
|
-
|
|
3045
3506
|
/**
|
|
3046
3507
|
* THE SESSION PRICED FOR A PARTY — what this buyer will (likely) be charged for it.
|
|
3047
3508
|
*
|
|
@@ -3101,8 +3562,15 @@ export declare const PROFILE_PHOTO_COPY: {
|
|
|
3101
3562
|
readonly uploaded: "Your photo";
|
|
3102
3563
|
readonly refusal: {
|
|
3103
3564
|
NOT_AN_IMAGE: string;
|
|
3565
|
+
UNSUPPORTED_TYPE: string;
|
|
3104
3566
|
TOO_LARGE: string;
|
|
3105
3567
|
};
|
|
3568
|
+
/**
|
|
3569
|
+
* What an upload may be, and what it may show, said where it is chosen (Conall, 2026-11-15):
|
|
3570
|
+
* the formats and size, then the usual terms for a profile picture. Not that it shows the buyer
|
|
3571
|
+
* (Conall, 2026-11-17): only that it is theirs to use, and nothing offensive.
|
|
3572
|
+
*/
|
|
3573
|
+
readonly rules: "JPEG, PNG or WebP, up to 5MB. Use an image you own or have permission to use. Nothing offensive, explicit or violent.";
|
|
3106
3574
|
};
|
|
3107
3575
|
|
|
3108
3576
|
/**
|
|
@@ -3165,6 +3633,23 @@ export declare type ProfilePhotoPickerProps = {
|
|
|
3165
3633
|
*/
|
|
3166
3634
|
export declare type ProfilePhotoSize = 256 | 1024;
|
|
3167
3635
|
|
|
3636
|
+
declare type PromoCheck = {
|
|
3637
|
+
readonly ok: true;
|
|
3638
|
+
}
|
|
3639
|
+
/** The platform's own sentence for an expired, spent or wrong-event code. */
|
|
3640
|
+
| {
|
|
3641
|
+
readonly ok: false;
|
|
3642
|
+
readonly reason: string;
|
|
3643
|
+
};
|
|
3644
|
+
|
|
3645
|
+
declare type PromoWriteResult = {
|
|
3646
|
+
readonly ok: true;
|
|
3647
|
+
readonly cart: Cart;
|
|
3648
|
+
} | {
|
|
3649
|
+
readonly ok: false;
|
|
3650
|
+
readonly reason: string;
|
|
3651
|
+
};
|
|
3652
|
+
|
|
3168
3653
|
/** In the flow's own order, so the union reads as the sequence it names. */
|
|
3169
3654
|
declare type PurchaseStepId = 'PARTY' | 'DATE' | 'TIME' | 'SIGN_IN' | 'NAME' | 'EMAIL' | 'PHONE' | 'DETAILS' | 'REVIEW' | 'PAYMENT' | 'PROMO' | 'ABANDON' | 'PROCESSING' | 'PAYMENT_FAILED' | 'PAYMENT_SUCCESS' | 'FEEDBACK' | 'CREATE_ACCOUNT' | 'CONFIRM_EMAIL' | 'VERIFY_EMAIL' | 'PASSWORD' | 'PROFILE_PHOTO' | 'ACCOUNT_CREATING' | 'ACCOUNT_CREATED' | 'PASSKEY' | 'FOLLOW';
|
|
3170
3655
|
|
|
@@ -3185,37 +3670,11 @@ declare interface QuestionnaireQuestion {
|
|
|
3185
3670
|
Type: 'text' | 'date' | 'checkbox' | string;
|
|
3186
3671
|
}
|
|
3187
3672
|
|
|
3188
|
-
/**
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
* THE WORDS, AS LINES. The design sets "Show / QR" and "Edit / Ticketholder" on two lines
|
|
3194
|
-
* each, and it is not a wrap — it is where the phrase breaks. A single string broken by
|
|
3195
|
-
* the column's width would put "Edit Ticket" over "holder" on a narrow card, so the break
|
|
3196
|
-
* is the caller's and the accessible name is the lines joined.
|
|
3197
|
-
*/
|
|
3198
|
-
readonly lines: readonly string[];
|
|
3199
|
-
readonly disabled?: boolean;
|
|
3200
|
-
readonly onPress: () => void;
|
|
3201
|
-
};
|
|
3202
|
-
|
|
3203
|
-
/**
|
|
3204
|
-
* THE ROW OF QUICK ACTIONS under a ticket — the design's `QuickAction`, twice.
|
|
3205
|
-
*
|
|
3206
|
-
* NOT BUTTONS IN THE CARD'S OWN STACK, and the difference is what they mean. The stack at
|
|
3207
|
-
* the foot of a card is what the card is FOR — Save, Continue, Close — and these are the
|
|
3208
|
-
* two things a buyer might do with a ticket they are already looking at. The design draws
|
|
3209
|
-
* them above the stack, apart, under a hairline, and gives them a shape of their own.
|
|
3210
|
-
*
|
|
3211
|
-
* EQUAL COLUMNS whatever the count, so two read as a pair rather than as one control and a
|
|
3212
|
-
* leftover.
|
|
3213
|
-
*/
|
|
3214
|
-
export declare function QuickActions({ actions }: QuickActionsProps): react_jsx_runtime.JSX.Element;
|
|
3215
|
-
|
|
3216
|
-
export declare type QuickActionsProps = {
|
|
3217
|
-
readonly actions: readonly QuickAction[];
|
|
3218
|
-
};
|
|
3673
|
+
/** @internal */
|
|
3674
|
+
declare interface QuestionnaireResponseValue {
|
|
3675
|
+
QuestionId: number;
|
|
3676
|
+
Value: string;
|
|
3677
|
+
}
|
|
3219
3678
|
|
|
3220
3679
|
/** What the buyer is being asked to pay, as one value. */
|
|
3221
3680
|
declare type Quote =
|
|
@@ -3315,6 +3774,31 @@ export declare function readBooking(summary: TransactionByKeyResponse, attendeeT
|
|
|
3315
3774
|
/** What the summary was asked for, as the last resort for the key a save needs. */
|
|
3316
3775
|
cartKey: string): BookingRecord | null;
|
|
3317
3776
|
|
|
3777
|
+
/** The pair `POST /api/Auth/Tokens` takes. Modelled together because it needs both. */
|
|
3778
|
+
declare type RefreshCredentials = {
|
|
3779
|
+
readonly sessionKey: string;
|
|
3780
|
+
readonly refreshToken: string;
|
|
3781
|
+
};
|
|
3782
|
+
|
|
3783
|
+
/** What the host is told to make a credential with. */
|
|
3784
|
+
declare type RegistrationArm = {
|
|
3785
|
+
readonly challengeId: string;
|
|
3786
|
+
readonly challenge: string;
|
|
3787
|
+
readonly rpId: string;
|
|
3788
|
+
readonly userKey: string;
|
|
3789
|
+
readonly userName: string;
|
|
3790
|
+
readonly userDisplayName: string;
|
|
3791
|
+
readonly algorithms: readonly PasskeyAlgorithm[];
|
|
3792
|
+
readonly userVerification: UserVerification;
|
|
3793
|
+
readonly discoverable: boolean;
|
|
3794
|
+
/**
|
|
3795
|
+
* THE ACCOUNT'S EXISTING CREDENTIALS, which the device refuses to make another key beside
|
|
3796
|
+
* (WebAuthn `excludeCredentials`): `ExcludeCredentialIDs` on the challenge.
|
|
3797
|
+
* Empty where the platform sent none, which asks for nothing to be excluded.
|
|
3798
|
+
*/
|
|
3799
|
+
readonly excludeCredentialIds: readonly string[];
|
|
3800
|
+
};
|
|
3801
|
+
|
|
3318
3802
|
/**
|
|
3319
3803
|
* WHO WAS RUNNING THIS CHECKOUT, AND WHERE. Keys and flags only, and every field optional:
|
|
3320
3804
|
* a report that could not be filled in is still worth more than no report.
|
|
@@ -3378,14 +3862,28 @@ checking: boolean): {
|
|
|
3378
3862
|
declare type RichText = string | readonly Inline[];
|
|
3379
3863
|
|
|
3380
3864
|
/**
|
|
3381
|
-
*
|
|
3382
|
-
*
|
|
3383
|
-
* `cw` is a clock's own sense and the default everywhere — the countdown's hand, the
|
|
3384
|
-
* character counter, the design's `StepCompletionProgressRing`. `ccw` is its mirror, and
|
|
3385
|
-
* it earns a place because a ring that DEPLETES reads differently unwinding than it does
|
|
3386
|
-
* filling backwards: the timeslot's remaining ring runs down, not up.
|
|
3865
|
+
* THE RUN, read once per subject. Everything on it is a fact about the run rather than
|
|
3866
|
+
* the day being looked at, which is why a buyer moving between days does not ask again.
|
|
3387
3867
|
*/
|
|
3388
|
-
|
|
3868
|
+
declare type Run = {
|
|
3869
|
+
readonly info: EventInfoResponse;
|
|
3870
|
+
readonly events: readonly CalendarSeriesEvent[];
|
|
3871
|
+
readonly eventKeyByDay: Readonly<Record<string, string>>;
|
|
3872
|
+
readonly timeZone: string | null;
|
|
3873
|
+
readonly artwork: string | undefined;
|
|
3874
|
+
/** Which inventory each event sells from, where the run was read per inventory. */
|
|
3875
|
+
readonly inventoriesByEvent: InventoriesByEvent | null;
|
|
3876
|
+
};
|
|
3877
|
+
|
|
3878
|
+
/**
|
|
3879
|
+
* WHAT A RUN READ ANSWERS: the run, and — where the mount offers a filter between its
|
|
3880
|
+
* inventories — which of them each event sells from. Null is the single narrowed read,
|
|
3881
|
+
* which cannot say; see `mergeInventoryRuns` for why it takes one read per inventory.
|
|
3882
|
+
*/
|
|
3883
|
+
declare type RunAnswer = {
|
|
3884
|
+
readonly info: EventInfoResponse;
|
|
3885
|
+
readonly inventoriesByEvent: InventoriesByEvent | null;
|
|
3886
|
+
};
|
|
3389
3887
|
|
|
3390
3888
|
/**
|
|
3391
3889
|
* THE PICTURE EVERY LINE OF THE CART WEARS — `Backgrounds[0]`.
|
|
@@ -3406,6 +3904,144 @@ export declare function runArtwork(series: {
|
|
|
3406
3904
|
/** The CDN every Scope-hosted url is put on. Stated by the caller, never inferred here. */
|
|
3407
3905
|
origin?: string): string | undefined;
|
|
3408
3906
|
|
|
3907
|
+
declare type RunEvent =
|
|
3908
|
+
/**
|
|
3909
|
+
* What to show. Asked on every render and deduped here — a subject that has not changed
|
|
3910
|
+
* is neither a state change nor an effect.
|
|
3911
|
+
*/
|
|
3912
|
+
{
|
|
3913
|
+
readonly kind: 'SUBJECT_WANTED';
|
|
3914
|
+
readonly subject: RunSubject;
|
|
3915
|
+
}
|
|
3916
|
+
/** The run arrived. */
|
|
3917
|
+
| {
|
|
3918
|
+
readonly kind: 'RUN_READ';
|
|
3919
|
+
readonly attempt: Attempt;
|
|
3920
|
+
readonly run: Run;
|
|
3921
|
+
readonly at: number;
|
|
3922
|
+
}
|
|
3923
|
+
/** It did not. Carries the platform's own words, which the buyer never sees. */
|
|
3924
|
+
| {
|
|
3925
|
+
readonly kind: 'RUN_FAILED';
|
|
3926
|
+
readonly attempt: Attempt;
|
|
3927
|
+
readonly cause: unknown;
|
|
3928
|
+
}
|
|
3929
|
+
/**
|
|
3930
|
+
* The day being looked at, or `undefined` for whichever the run opens on. `at` is the
|
|
3931
|
+
* moment it was asked, which is what the venue's calendar and clock are read from.
|
|
3932
|
+
*/
|
|
3933
|
+
| {
|
|
3934
|
+
readonly kind: 'DAY_WANTED';
|
|
3935
|
+
readonly day: string | undefined;
|
|
3936
|
+
readonly at: number;
|
|
3937
|
+
}
|
|
3938
|
+
/** A day's tickets arrived. */
|
|
3939
|
+
| {
|
|
3940
|
+
readonly kind: 'DAY_READ';
|
|
3941
|
+
readonly attempt: Attempt;
|
|
3942
|
+
readonly tickets: readonly Ticket[];
|
|
3943
|
+
}
|
|
3944
|
+
/** They did not. The run is kept — a day failing is not the calendar failing. */
|
|
3945
|
+
| {
|
|
3946
|
+
readonly kind: 'DAY_FAILED';
|
|
3947
|
+
readonly attempt: Attempt;
|
|
3948
|
+
readonly cause: unknown;
|
|
3949
|
+
}
|
|
3950
|
+
/** Ask again for whichever lookup failed. Does nothing where none did. */
|
|
3951
|
+
| {
|
|
3952
|
+
readonly kind: 'LOOKUP_WANTED_AGAIN';
|
|
3953
|
+
readonly at: number;
|
|
3954
|
+
}
|
|
3955
|
+
/** Torn down, or the platform changed. Whatever is in the air belongs to nobody. */
|
|
3956
|
+
| {
|
|
3957
|
+
readonly kind: 'ABANDONED';
|
|
3958
|
+
};
|
|
3959
|
+
|
|
3960
|
+
declare type RunGateway = {
|
|
3961
|
+
/**
|
|
3962
|
+
* `EventInformation` for a series or a single event, narrowed to the mount's inventories
|
|
3963
|
+
* by the platform. 179KB for a 38-night run so narrowed, and 2.8MB unnarrowed — which is
|
|
3964
|
+
* why it is read once per subject and never per day.
|
|
3965
|
+
*/
|
|
3966
|
+
readonly readRun: (subjectKey: string, isSeries: boolean, signal: AbortSignal) => Promise<RunRead<RunAnswer>>;
|
|
3967
|
+
/**
|
|
3968
|
+
* `TicketInformation` for one day, with its sessions and questions. 2.3KB, so a buyer
|
|
3969
|
+
* moving along the calendar costs a request each and very little else.
|
|
3970
|
+
*
|
|
3971
|
+
* AND NOT `Events/{key}/Tickets`: that route omits a timeslot at `Remaining: 0` rather
|
|
3972
|
+
* than reporting it sold out, so the pill a buyer should see struck through was never in
|
|
3973
|
+
* the payload.
|
|
3974
|
+
*/
|
|
3975
|
+
readonly readDayTickets: (eventKey: string, signal: AbortSignal) => Promise<RunRead<readonly Ticket[]>>;
|
|
3976
|
+
};
|
|
3977
|
+
|
|
3978
|
+
declare type RunLoad = {
|
|
3979
|
+
readonly status: 'IDLE';
|
|
3980
|
+
} | {
|
|
3981
|
+
readonly status: 'LOADING';
|
|
3982
|
+
} | {
|
|
3983
|
+
readonly status: 'LOADED';
|
|
3984
|
+
readonly run: Run;
|
|
3985
|
+
} | {
|
|
3986
|
+
readonly status: 'ERROR';
|
|
3987
|
+
readonly cause: unknown;
|
|
3988
|
+
};
|
|
3989
|
+
|
|
3990
|
+
declare type RunMachine = {
|
|
3991
|
+
readonly subject: RunSubject | null;
|
|
3992
|
+
readonly run: RunLoad;
|
|
3993
|
+
readonly sessions: DayLoad;
|
|
3994
|
+
/** The day the caller asked for, remembered so it is honoured when the run arrives. */
|
|
3995
|
+
readonly asked: string | undefined;
|
|
3996
|
+
/**
|
|
3997
|
+
* WHICH SUBJECT AN ANSWER BELONGS TO. `EventInformation` is the slowest thing the widget
|
|
3998
|
+
* asks for, so a host changing the event it shows has two in the air — and the older
|
|
3999
|
+
* would replace the run the buyer is now looking at.
|
|
4000
|
+
*/
|
|
4001
|
+
readonly reading: Attempt;
|
|
4002
|
+
/**
|
|
4003
|
+
* WHICH DAY AN ANSWER BELONGS TO — counted apart, because a buyer moving along the
|
|
4004
|
+
* calendar supersedes a day without touching the run underneath it.
|
|
4005
|
+
*/
|
|
4006
|
+
readonly asking: Attempt;
|
|
4007
|
+
};
|
|
4008
|
+
|
|
4009
|
+
/**
|
|
4010
|
+
* WHAT WENT WRONG, IN WORDS THE BUYER NEVER SEES — and separately, whether it was worth
|
|
4011
|
+
* reporting at all. A request the caller abandoned is neither an answer nor a fault: it is
|
|
4012
|
+
* the buyer having moved on, which happens on every day they look at.
|
|
4013
|
+
*/
|
|
4014
|
+
declare type RunRead<T> = {
|
|
4015
|
+
readonly ok: true;
|
|
4016
|
+
readonly value: T;
|
|
4017
|
+
} | {
|
|
4018
|
+
readonly ok: false;
|
|
4019
|
+
readonly cause: unknown;
|
|
4020
|
+
readonly abandoned: boolean;
|
|
4021
|
+
};
|
|
4022
|
+
|
|
4023
|
+
declare type RunStore = {
|
|
4024
|
+
/** Stable between transitions, so a renderer may compare by reference. */
|
|
4025
|
+
readonly getSnapshot: () => RunMachine;
|
|
4026
|
+
readonly subscribe: (listener: () => void) => () => void;
|
|
4027
|
+
readonly dispatch: (event: RunEvent) => void;
|
|
4028
|
+
/** Abandons what is in the air and drops every listener. The store stays usable. */
|
|
4029
|
+
readonly dispose: () => void;
|
|
4030
|
+
};
|
|
4031
|
+
|
|
4032
|
+
/** What is being asked about. A change of subject throws away everything below it. */
|
|
4033
|
+
declare type RunSubject = {
|
|
4034
|
+
readonly subjectKey: string;
|
|
4035
|
+
readonly isSeries: boolean;
|
|
4036
|
+
};
|
|
4037
|
+
|
|
4038
|
+
/** Who is signed in, read off the parts: the account, the header to send, and the way out. */
|
|
4039
|
+
export declare type ScopeBuyer = {
|
|
4040
|
+
readonly auth: AuthState;
|
|
4041
|
+
readonly authorization: string | null;
|
|
4042
|
+
readonly signOut: () => void;
|
|
4043
|
+
};
|
|
4044
|
+
|
|
3409
4045
|
/**
|
|
3410
4046
|
* THE WIDGET A HOST MOUNTS, and the two decisions it makes before anything else: is there
|
|
3411
4047
|
* an order, and has the buyer said they are checking out.
|
|
@@ -3424,6 +4060,86 @@ origin?: string): string | undefined;
|
|
|
3424
4060
|
*/
|
|
3425
4061
|
export declare function ScopeTicketsCheckout({ intent, opensOn, session: seed, ...props }: CheckoutProps): react_jsx_runtime.JSX.Element;
|
|
3426
4062
|
|
|
4063
|
+
declare interface Series {
|
|
4064
|
+
Key: string;
|
|
4065
|
+
Name: string;
|
|
4066
|
+
Title: string | null;
|
|
4067
|
+
/** The run's artwork, repeated from `Theme.Backgrounds`. `runArtwork` reads the Theme. */
|
|
4068
|
+
Backgrounds?: string[] | null;
|
|
4069
|
+
Description: string | null;
|
|
4070
|
+
Capacity: number;
|
|
4071
|
+
DatePickerType: string | null;
|
|
4072
|
+
IsJointEvent: boolean;
|
|
4073
|
+
Currency: string | null;
|
|
4074
|
+
PaymentPlatform: string | null;
|
|
4075
|
+
Theme: Theme;
|
|
4076
|
+
Venue: Venue;
|
|
4077
|
+
Organisation: Organisation;
|
|
4078
|
+
}
|
|
4079
|
+
|
|
4080
|
+
/**
|
|
4081
|
+
* WHAT A SIGNED-IN BROWSER IS HOLDING, and what to do when the platform stops accepting
|
|
4082
|
+
* it.
|
|
4083
|
+
*
|
|
4084
|
+
* Distinct from `AuthState` in `./auth`, which is about WHO is buying. This is the
|
|
4085
|
+
* credential behind that: `AUTHENTICATED` is a claim about the buyer, and `ACTIVE` is a
|
|
4086
|
+
* claim about a string in a header. They can disagree — a session expires mid-purchase
|
|
4087
|
+
* while the buyer is still, as far as anyone is concerned, signed in — and keeping them
|
|
4088
|
+
* apart is what lets the flow notice.
|
|
4089
|
+
*/
|
|
4090
|
+
/**
|
|
4091
|
+
* ON THE WEB NOTHING IS PERSISTED, AND THAT IS THE DESIGN. A refresh token in `localStorage` sits on
|
|
4092
|
+
* the CUSTOMER's origin, readable by their page and by anything their page loads —
|
|
4093
|
+
* analytics, tag managers, a chat widget. This library runs inside someone else's page,
|
|
4094
|
+
* so the session lives for as long as the widget is mounted and no longer.
|
|
4095
|
+
*
|
|
4096
|
+
* THE PLATFORM'S TOKEN LASTS A YEAR. Measured on staging: the JWT's `exp` is `iat` plus
|
|
4097
|
+
* 31,536,000 seconds. So what would be written to a customer's origin is not a session in
|
|
4098
|
+
* any ordinary sense — it is a credential good for twelve months, sitting somewhere its
|
|
4099
|
+
* owner cannot see it and we cannot revoke it. That turns this from a preference into the
|
|
4100
|
+
* only defensible answer.
|
|
4101
|
+
*
|
|
4102
|
+
* The cost is real: a buyer who reloads signs in again. The alternative is handing a
|
|
4103
|
+
* long-lived credential to every site that embeds the widget, which is not ours to give
|
|
4104
|
+
* away. If a session has to survive a reload, it belongs in the passkey host's own
|
|
4105
|
+
* origin — where the customer's page cannot reach it — and not here.
|
|
4106
|
+
*
|
|
4107
|
+
* ── AN APP IS NOT SOMEBODY ELSE'S PAGE ───────────────────────────────────────
|
|
4108
|
+
*
|
|
4109
|
+
* Every word above is about an origin the customer owns. A native app has none: its secure
|
|
4110
|
+
* store (the iOS Keychain, the Android Keystore) belongs to that one app and nothing else it
|
|
4111
|
+
* loads can read it, which is where the platforms and OWASP's MASVS say a long-lived
|
|
4112
|
+
* credential goes. So a NATIVE host may hand a `CredentialVault` backed by it, and the
|
|
4113
|
+
* refresh pair — never the header — is kept there. See `keepSession`. The web supplies none
|
|
4114
|
+
* and never will.
|
|
4115
|
+
*/
|
|
4116
|
+
declare type Session =
|
|
4117
|
+
/** Nobody is signed in. The state before a login and after a sign-out. */
|
|
4118
|
+
{
|
|
4119
|
+
readonly status: 'NONE';
|
|
4120
|
+
}
|
|
4121
|
+
/** A header the platform is accepting. */
|
|
4122
|
+
| {
|
|
4123
|
+
readonly status: 'ACTIVE';
|
|
4124
|
+
/** Sent verbatim as `Authorization` — see `ScopeClient.setAuthorization`. */
|
|
4125
|
+
readonly authorization: string;
|
|
4126
|
+
/** Both, or neither: a refresh needs the pair. `null` where the login gave one. */
|
|
4127
|
+
readonly refresh: RefreshCredentials | null;
|
|
4128
|
+
}
|
|
4129
|
+
/** The header was refused and the pair is being spent on a new one. */
|
|
4130
|
+
| {
|
|
4131
|
+
readonly status: 'REFRESHING';
|
|
4132
|
+
readonly refresh: RefreshCredentials;
|
|
4133
|
+
}
|
|
4134
|
+
/**
|
|
4135
|
+
* Refused, with nothing left to try. The buyer signs in again — and this is a state of
|
|
4136
|
+
* its own rather than a return to `NONE`, because the two mean different things to the
|
|
4137
|
+
* card: nobody has signed in yet, versus somebody did and it ran out.
|
|
4138
|
+
*/
|
|
4139
|
+
| {
|
|
4140
|
+
readonly status: 'EXPIRED';
|
|
4141
|
+
};
|
|
4142
|
+
|
|
3427
4143
|
/**
|
|
3428
4144
|
* THE FROM FOR ONE SESSION — the cheapest band of whichever products sell that session.
|
|
3429
4145
|
*
|
|
@@ -3433,6 +4149,9 @@ export declare function ScopeTicketsCheckout({ intent, opensOn, session: seed, .
|
|
|
3433
4149
|
*/
|
|
3434
4150
|
export declare function sessionFromPrice(tickets: readonly Ticket[], session: TimeslotRequest, currency: string | null | undefined): SlotPrice | null;
|
|
3435
4151
|
|
|
4152
|
+
/** The kept session's pair, under `key` in this tab's session storage. */
|
|
4153
|
+
export declare function sessionStorageVault(key?: string): CredentialVault;
|
|
4154
|
+
|
|
3436
4155
|
/** THE SIGN-IN FUNNEL'S CREDENTIAL CARD — the design. */
|
|
3437
4156
|
export declare const SIGN_IN_FUNNEL_CARD: {
|
|
3438
4157
|
readonly copy: {
|
|
@@ -3444,6 +4163,79 @@ export declare const SIGN_IN_FUNNEL_CARD: {
|
|
|
3444
4163
|
readonly accessory: undefined;
|
|
3445
4164
|
};
|
|
3446
4165
|
|
|
4166
|
+
/**
|
|
4167
|
+
* SIGNING IN TO AN ACCOUNT THAT ALREADY EXISTS — the other half of `account-creation.ts`,
|
|
4168
|
+
* and the same shape: a gateway of named calls, a state the cards read, and no React.
|
|
4169
|
+
*
|
|
4170
|
+
* ONE ROUTE SO FAR. The device is asked for a passkey and nothing is drawn — the cheapest
|
|
4171
|
+
* way into an account there is, which is why `USE_PASSKEY` is the primary on the card
|
|
4172
|
+
* that offers it. The password funnel is the other route and is not built; when it is, it
|
|
4173
|
+
* ends in the same `SignedIn` and nothing downstream moves. See `AuthOutcome`, which
|
|
4174
|
+
* already says why.
|
|
4175
|
+
*/
|
|
4176
|
+
/**
|
|
4177
|
+
* WHAT PROVING WHO YOU ARE IS WORTH — the account to spend and the credential behind it,
|
|
4178
|
+
* as ONE value, for the reason `useAuthSession` holds its own two halves in one state:
|
|
4179
|
+
* handing them back apart invites a caller to deposit one without the other.
|
|
4180
|
+
*/
|
|
4181
|
+
declare type SignedIn = {
|
|
4182
|
+
readonly account: Account;
|
|
4183
|
+
readonly session: Session;
|
|
4184
|
+
};
|
|
4185
|
+
|
|
4186
|
+
/**
|
|
4187
|
+
* THE CALLS, AND NOTHING ELSE. `signInGateway` is the only thing that fills this, so the
|
|
4188
|
+
* hook above it holds no client and the domain below it makes no request.
|
|
4189
|
+
*/
|
|
4190
|
+
declare type SignInGateway = {
|
|
4191
|
+
/**
|
|
4192
|
+
* `POST /api/Auth/Login`, and then `GET /api/Users/Me`.
|
|
4193
|
+
*
|
|
4194
|
+
* `null` IS A REFUSAL AND NOT A FAILURE — the card answers it and stays put. Anything
|
|
4195
|
+
* else throws and becomes a notice. `submitCode` draws the same line, and says why.
|
|
4196
|
+
*/
|
|
4197
|
+
readonly signInWithPassword: (credentials: Credentials) => Promise<SignedIn | null>;
|
|
4198
|
+
/**
|
|
4199
|
+
* `POST /api/Passkeys/Authentications/Challenges`, for whatever discoverable credential
|
|
4200
|
+
* the device holds. NO ADDRESS: the recognised card knows there is an account and not
|
|
4201
|
+
* whose it is — an avatar is the whole of what is remembered — so there is nothing to
|
|
4202
|
+
* narrow it with, and nothing to ask the buyer for either.
|
|
4203
|
+
*/
|
|
4204
|
+
readonly openPasskeyChallenge: () => Promise<PasskeyValidationChallenge>;
|
|
4205
|
+
/**
|
|
4206
|
+
* `POST /api/Passkeys/Authentications` and then `GET /api/Users/Me` — two calls behind
|
|
4207
|
+
* one name, because a session without a profile is half an answer: it says somebody is
|
|
4208
|
+
* signed in and not who, which is a card that cannot be drawn.
|
|
4209
|
+
*/
|
|
4210
|
+
readonly signInWithPasskey: (credential: PasskeyValidationRequest) => Promise<SignedIn>;
|
|
4211
|
+
/**
|
|
4212
|
+
* `POST /api/Auth/Logout`, and the client's own copy of the header with it. It resolves
|
|
4213
|
+
* whatever happens: a platform that cannot be told is no reason to keep drawing somebody
|
|
4214
|
+
* who has left as signed in.
|
|
4215
|
+
*/
|
|
4216
|
+
readonly signOut: () => Promise<void>;
|
|
4217
|
+
/**
|
|
4218
|
+
* `POST /api/Auth/Tokens` with a pair kept from an earlier launch, and then `GET
|
|
4219
|
+
* /api/Users/Me` — a session picked up again, and whose it is.
|
|
4220
|
+
*
|
|
4221
|
+
* `null` IS THE PLATFORM SAYING NO: the pair was revoked or has run out, and the buyer is
|
|
4222
|
+
* signed out. Anything else throws — a phone offline is not a reason to forget somebody.
|
|
4223
|
+
*/
|
|
4224
|
+
readonly resume: (pair: RefreshCredentials) => Promise<SignedIn | null>;
|
|
4225
|
+
};
|
|
4226
|
+
|
|
4227
|
+
/**
|
|
4228
|
+
* WHICH DOOR THE BUYER CAME IN BY. Recorded by whoever deposits the account, because by the
|
|
4229
|
+
* time anyone reads the state the door has closed behind them: the password card clears
|
|
4230
|
+
* itself in the same breath it deposits, so a reading of the machines after the fact could
|
|
4231
|
+
* only guess — and a guess would file a fourth door under whichever of these it resembled.
|
|
4232
|
+
*/
|
|
4233
|
+
/**
|
|
4234
|
+
* HOW THE BUYER GOT IN. `RESUMED` is a session picked up from a native host's vault on
|
|
4235
|
+
* launch — not a login this session, which is why nothing reports one for it.
|
|
4236
|
+
*/
|
|
4237
|
+
declare type SignInRoute = 'PASSKEY' | 'PASSWORD' | 'ACCOUNT' | 'RESUMED';
|
|
4238
|
+
|
|
3447
4239
|
/**
|
|
3448
4240
|
* THE FOUR SESSIONS, READY MADE — and there is no machinery behind these on purpose.
|
|
3449
4241
|
*
|
|
@@ -3520,31 +4312,16 @@ export declare type SlotPrice = {
|
|
|
3520
4312
|
readonly options?: readonly (readonly SlotBand[])[];
|
|
3521
4313
|
};
|
|
3522
4314
|
|
|
3523
|
-
/** The key the single line counts under when the event names no types. */
|
|
3524
|
-
export declare const SOLO_KEY = "default";
|
|
3525
|
-
|
|
3526
4315
|
/**
|
|
3527
|
-
*
|
|
4316
|
+
* What a refresh answers with.
|
|
3528
4317
|
*
|
|
3529
|
-
*
|
|
3530
|
-
*
|
|
3531
|
-
* and nothing downstream reads it as one — `value` is still `null`, the radios are all
|
|
3532
|
-
* unchecked, and Continue is shut until the buyer presses something.
|
|
4318
|
+
* NO NEW REFRESH TOKEN, so the one held is spent again next time rather than rotated —
|
|
4319
|
+
* worth knowing before writing a refresh loop that expects to replace it.
|
|
3533
4320
|
*/
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
readonly value: FeedbackRating | null;
|
|
3539
|
-
/**
|
|
3540
|
-
* THE NEW RATING, OR `null` FOR ONE TAKEN BACK — see the star's own note. The card is
|
|
3541
|
-
* gated on `value`, so handing `null` back shuts Continue again, which is the whole
|
|
3542
|
-
* point: a buyer who has unrated has not rated.
|
|
3543
|
-
*/
|
|
3544
|
-
readonly onChange: (rating: FeedbackRating | null) => void;
|
|
3545
|
-
/** Names the group — see `ratingLabel` for what the options are called. */
|
|
3546
|
-
readonly label: string;
|
|
3547
|
-
};
|
|
4321
|
+
declare interface StaffAuthResult {
|
|
4322
|
+
StaffID: number;
|
|
4323
|
+
Authorization: string | null;
|
|
4324
|
+
}
|
|
3548
4325
|
|
|
3549
4326
|
/** The same badges, each NAMED by the step that owns it. */
|
|
3550
4327
|
export declare const STEP_ACCESSORY: Partial<Record<PurchaseStepId, StepBadge & {
|
|
@@ -3568,133 +4345,32 @@ export declare const STEP_DISMISS: Partial<Record<PurchaseStepId, 'back' | 'clos
|
|
|
3568
4345
|
|
|
3569
4346
|
declare type StepBadge = GlyphBadge;
|
|
3570
4347
|
|
|
3571
|
-
/**
|
|
3572
|
-
|
|
3573
|
-
*
|
|
3574
|
-
* CONTROLLED, AND ONLY CONTROLLED. A switch that kept its own state would flip under a
|
|
3575
|
-
* finger and then disagree with the host the moment the host refused the change — an
|
|
3576
|
-
* opt-in the session could not save, say. So it draws `checked` and asks for the other,
|
|
3577
|
-
* and nothing moves until the host says so.
|
|
3578
|
-
*
|
|
3579
|
-
* A `button` WITH `role="switch"` rather than a hidden checkbox, which is how every other
|
|
3580
|
-
* pressable thing in this package is built — the stars are buttons with `role="radio"`.
|
|
3581
|
-
* It takes the ELEMENT press: turning something on does not change what the island is.
|
|
3582
|
-
*/
|
|
3583
|
-
export declare function Switch({ checked, onChange, label, size, disabled }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
4348
|
+
/** Failures are results, not throws, so each caller decides what an unavailable store means. */
|
|
4349
|
+
declare type StorageFailure = 'UNAVAILABLE';
|
|
3584
4350
|
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
readonly
|
|
3590
|
-
/**
|
|
3591
|
-
* The accessible name. The design draws the switch bare — its label is whatever row it
|
|
3592
|
-
* sits in — so without this a screen reader announces an unnamed switch. Pass the row's
|
|
3593
|
-
* own text.
|
|
3594
|
-
*/
|
|
3595
|
-
readonly label: string;
|
|
3596
|
-
/** Default `wide`. */
|
|
3597
|
-
readonly size?: SwitchSize;
|
|
3598
|
-
readonly disabled?: boolean;
|
|
4351
|
+
declare type StorageWrite = {
|
|
4352
|
+
readonly ok: true;
|
|
4353
|
+
} | {
|
|
4354
|
+
readonly ok: false;
|
|
4355
|
+
readonly code: StorageFailure;
|
|
3599
4356
|
};
|
|
3600
4357
|
|
|
3601
|
-
/**
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
4358
|
+
/** @internal */
|
|
4359
|
+
declare interface SubmitQuestionnaireResponsesRequest {
|
|
4360
|
+
ItemKey: string;
|
|
4361
|
+
Values: QuestionnaireResponseValue[];
|
|
4362
|
+
}
|
|
3606
4363
|
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
/**
|
|
3618
|
-
* WHAT THE MARK MEANS, for anyone who cannot see it. `ContentFlag` hides an untitled
|
|
3619
|
-
* mark from the accessibility tree, which is right where the field's own text already
|
|
3620
|
-
* says what is wrong and wrong where the mark is the ONLY thing saying it — the email
|
|
3621
|
-
* field's `warning`, where nothing else on the card mentions the suspected typo.
|
|
3622
|
-
*/
|
|
3623
|
-
readonly flagTitle?: string;
|
|
3624
|
-
/**
|
|
3625
|
-
* Replaces the flag entirely — the password field's counter ring, which is not one of
|
|
3626
|
-
* the three marks., and its reasoning: the ring is a fourth thing a field can show and
|
|
3627
|
-
* folding it into the flag set would make the set mean two different kinds of thing.
|
|
3628
|
-
*/
|
|
3629
|
-
readonly trailing?: ReactNode;
|
|
3630
|
-
/** A mark at the LEADING end — `InputIconWrapper`. */
|
|
3631
|
-
readonly icon?: ReactNode;
|
|
3632
|
-
/**
|
|
3633
|
-
* A quiet note between the value and the flag, right-aligned — `inputNoteText`, which
|
|
3634
|
-
* the design fills with "2º". Here it is the phone step's dial code.
|
|
3635
|
-
*/
|
|
3636
|
-
readonly note?: ReactNode;
|
|
3637
|
-
/**
|
|
3638
|
-
* `text` unless said otherwise. `password` masks and, with
|
|
3639
|
-
* `autoComplete="new-password"`, is what asks the browser's password manager to suggest
|
|
3640
|
-
* one.
|
|
3641
|
-
*/
|
|
3642
|
-
readonly type?: 'text' | 'password' | 'email' | 'tel';
|
|
3643
|
-
/** Drives the on-screen keyboard on a touch device. */
|
|
3644
|
-
readonly inputMode?: 'text' | 'email' | 'tel' | 'numeric';
|
|
3645
|
-
/**
|
|
3646
|
-
* The autofill contract. Passed straight through; see `PASSWORD_RULES` for the one case
|
|
3647
|
-
* where a second attribute goes with it.
|
|
3648
|
-
*/
|
|
3649
|
-
readonly autoComplete?: string;
|
|
3650
|
-
readonly autoCapitalize?: 'none' | 'words' | 'sentences';
|
|
3651
|
-
/**
|
|
3652
|
-
* TURN THE PHONE'S HELP OFF, for a value it cannot help with: iOS autocorrects and
|
|
3653
|
-
* spell-checks a text input by default, and on an address, a surname or a revealed
|
|
3654
|
-
* password that is a phone rewriting an answer only the buyer knows.
|
|
3655
|
-
*
|
|
3656
|
-
* ONE PROP FOR BOTH ATTRIBUTES — a field either holds prose or it does not.
|
|
3657
|
-
*/
|
|
3658
|
-
readonly prose?: boolean;
|
|
3659
|
-
/**
|
|
3660
|
-
* Safari's Password Rules string, which is what makes "Suggest Strong Password"
|
|
3661
|
-
* generate to OUR minimum rather than its own default. Other browsers ignore it.
|
|
3662
|
-
*/
|
|
3663
|
-
readonly passwordRules?: string;
|
|
3664
|
-
/**
|
|
3665
|
-
* What the return key says, and what it does. Pair them: a key labelled "next" that
|
|
3666
|
-
* submits is worse than an unlabelled one.
|
|
3667
|
-
*/
|
|
3668
|
-
readonly enterKeyHint?: 'next' | 'done' | 'go';
|
|
3669
|
-
readonly onSubmit?: () => void;
|
|
3670
|
-
/**
|
|
3671
|
-
* The value in `text/mono/md` — Add Password's own instance does this, so a masked
|
|
3672
|
-
* password's dots sit on an even rhythm.
|
|
3673
|
-
*/
|
|
3674
|
-
readonly monospace?: boolean;
|
|
3675
|
-
/**
|
|
3676
|
-
* TAKE FOCUS ON MOUNT — the first field of a step, so a buyer can start typing the
|
|
3677
|
-
* answer to the question the card just asked.
|
|
3678
|
-
*
|
|
3679
|
-
* NOT the `autofocus` ATTRIBUTE, which fires at parse time and belongs to the document:
|
|
3680
|
-
* this widget is a guest on somebody's page and its steps mount long after that page
|
|
3681
|
-
* loaded. Focused with `preventScroll`, for the same reason — a card that yanked the
|
|
3682
|
-
* host's scroll position to itself would be a widget rearranging a site it does not own.
|
|
3683
|
-
*/
|
|
3684
|
-
readonly autoFocus?: boolean;
|
|
3685
|
-
/** A value to be confirmed rather than typed — Confirm Email's; see `confirmedEmail`. */
|
|
3686
|
-
readonly placeholder?: string;
|
|
3687
|
-
/**
|
|
3688
|
-
* THE CEILING THE PLATFORM ITSELF ENFORCES, passed to the input rather than checked
|
|
3689
|
-
* after: a buyer who types past the line is stopped by the field they are standing in,
|
|
3690
|
-
* not told by a notice two presses later. Omitted where the wire sets no limit.
|
|
3691
|
-
*/
|
|
3692
|
-
readonly maxLength?: number;
|
|
3693
|
-
readonly readOnly?: boolean;
|
|
3694
|
-
/** Given so a preceding field's return key can move focus here. */
|
|
3695
|
-
readonly id?: string;
|
|
3696
|
-
readonly name?: string;
|
|
3697
|
-
};
|
|
4364
|
+
/** @internal */
|
|
4365
|
+
declare interface Theme {
|
|
4366
|
+
Backgrounds: string[] | null;
|
|
4367
|
+
Cover: string | null;
|
|
4368
|
+
ColourPrimary: string | null;
|
|
4369
|
+
ColourSecondary: string | null;
|
|
4370
|
+
ColourBackground: string | null;
|
|
4371
|
+
ColourDetail: string | null;
|
|
4372
|
+
SystemColour: string | null;
|
|
4373
|
+
}
|
|
3698
4374
|
|
|
3699
4375
|
declare interface Ticket {
|
|
3700
4376
|
/** @deprecated Legacy numeric ID — populated from v1 for cart compat, remove when v2 cart ships */
|
|
@@ -3741,23 +4417,6 @@ declare interface Ticket {
|
|
|
3741
4417
|
InventoryKeys?: string[] | null;
|
|
3742
4418
|
}
|
|
3743
4419
|
|
|
3744
|
-
/**
|
|
3745
|
-
* What `island.css` carries today, for a renderer with no layout — a test, SSR.
|
|
3746
|
-
*
|
|
3747
|
-
* ── 8 / 24 / 12: THE SCALE THE DESIGN WAS DRAWN AT ───────────────────────────
|
|
3748
|
-
*
|
|
3749
|
-
* `@scopetickets/sdk`'s ticket ships at 12/64/16, tuned on its own `/qr-lab` bench where a
|
|
3750
|
-
* ticket stands alone on a page and can afford a long, deep notch. This one is a card in a
|
|
3751
|
-
* 270px column, and at that measure the same numbers read as a coarse zigzag rather than a
|
|
3752
|
-
* perforation — and the granularity swallows the carousel: a 64px pitch leaves the frame up
|
|
3753
|
-
* to 64px short of the room on offer, where 24 leaves at most 24.
|
|
3754
|
-
*
|
|
3755
|
-
* So the island keeps the drawn values. The two tickets are deliberately free to differ:
|
|
3756
|
-
* the scale is a host-tunable token in both packages and the rule that reads it is the same
|
|
3757
|
-
* rule, which is the part that had to be shared.
|
|
3758
|
-
*/
|
|
3759
|
-
export declare const TICKET_EDGE_FALLBACK: TicketEdgeTokens;
|
|
3760
|
-
|
|
3761
4420
|
/** The ticket a key names, or `null`. */
|
|
3762
4421
|
export declare function ticketAt<T extends BookedTicket>(booking: TicketRun<T>, key: string): T | null;
|
|
3763
4422
|
|
|
@@ -3789,204 +4448,6 @@ export declare type TicketAttribution = {
|
|
|
3789
4448
|
}>>;
|
|
3790
4449
|
};
|
|
3791
4450
|
|
|
3792
|
-
/**
|
|
3793
|
-
* ONE TICKET — the code inside its perforated edge, with who it is for printed above.
|
|
3794
|
-
*
|
|
3795
|
-
* ── THE MEASURE IS CHOSEN, NOT TAKEN ─────────────────────────────────────────
|
|
3796
|
-
*
|
|
3797
|
-
* The edge tiles one cutout, so neither rail can be a fraction of one. This component
|
|
3798
|
-
* measures two things and `fitTicketEdge` decides the rest: the room the parent offers
|
|
3799
|
-
* ACROSS, which fixes how many cutouts the top and bottom rails carry, and the HEADER's
|
|
3800
|
-
* height, which is what the side rails have to contain once the square code is added under
|
|
3801
|
-
* it. See `island-ticket-edge.ts`, which is the whole rule as pure data.
|
|
3802
|
-
*
|
|
3803
|
-
* MEASURED HERE AND SPENT IN CSS. What crosses is two COUNTS; the stylesheet multiplies
|
|
3804
|
-
* them by its own tokens, so a host that re-tunes the scale moves the drawing and the
|
|
3805
|
-
* arithmetic together.
|
|
3806
|
-
*
|
|
3807
|
-
* THE HEADER IS MEASURED AND THE CODE IS NOT. The code's size follows from the width, which
|
|
3808
|
-
* is settled before its height is asked for — measuring the whole stack instead would be
|
|
3809
|
-
* measuring the answer.
|
|
3810
|
-
*/
|
|
3811
|
-
export declare function TicketCode({ qualifier, name, avatar, day, time, code, codeLabel, codeMissing, }: TicketCodeProps): react_jsx_runtime.JSX.Element;
|
|
3812
|
-
|
|
3813
|
-
/** One ticket in the run: everything its own card draws, plus what names it. */
|
|
3814
|
-
export declare type TicketCodeEntry = TicketCodeProps & {
|
|
3815
|
-
readonly key: string;
|
|
3816
|
-
};
|
|
3817
|
-
|
|
3818
|
-
/**
|
|
3819
|
-
* WHICH TICKET IS SHOWING, AND THE TWO WAYS TO CHANGE IT — the design's pill under the run.
|
|
3820
|
-
*
|
|
3821
|
-
* ── NOT ONE OF THE CARD'S OWN BUTTONS, AND IT CANNOT BE ─────────────────────
|
|
3822
|
-
*
|
|
3823
|
-
* `IslandAction` is one label and one press. This is one label between TWO presses, so it
|
|
3824
|
-
* lives in the card's content where a control with its own shape belongs, and the codes
|
|
3825
|
-
* card draws no button stack at all. The way out of it is the header's Back arrow, which is
|
|
3826
|
-
* what the design gives it.
|
|
3827
|
-
*
|
|
3828
|
-
* ── THE ENDS ARE SHUT, NOT WRAPPED ──────────────────────────────────────────
|
|
3829
|
-
*
|
|
3830
|
-
* A run of three that goes 3 -> 1 reads as a bug the first time and as a lost ticket the
|
|
3831
|
-
* second. The arrow at an end is drawn and declines, exactly as every other stopped control
|
|
3832
|
-
* here does — see `IslandAction.disabled`.
|
|
3833
|
-
*
|
|
3834
|
-
* ── AND A BOOKING OF ONE STILL GETS IT ──────────────────────────────────────
|
|
3835
|
-
*
|
|
3836
|
-
* It used to be withheld below two, on the argument that "1 of 1" between two dead arrows
|
|
3837
|
-
* is three controls describing a run with no alternatives. What that actually produced was
|
|
3838
|
-
* a card that changes SHAPE with the size of the booking: one ticket and the run sits on
|
|
3839
|
-
* the card's floor, two and a pill appears under it. The count is the thing that varies,
|
|
3840
|
-
* not the card, and both arrows decline here exactly as the end of any longer run does.
|
|
3841
|
-
*/
|
|
3842
|
-
export declare function TicketCodePager({ at, count, onAtChange, position, positionOf, previousLabel, nextLabel, }: TicketCodePagerProps): react_jsx_runtime.JSX.Element;
|
|
3843
|
-
|
|
3844
|
-
export declare type TicketCodePagerProps = {
|
|
3845
|
-
readonly at: number;
|
|
3846
|
-
readonly count: number;
|
|
3847
|
-
readonly onAtChange: (at: number) => void;
|
|
3848
|
-
/** "1" — the ticket being read, full strength. */
|
|
3849
|
-
readonly position: string;
|
|
3850
|
-
/** " of 3" — the run it is out of, a step quieter. See `BOOKING_COPY.positionOf`. */
|
|
3851
|
-
readonly positionOf: string;
|
|
3852
|
-
/** What the two arrows are called, for anyone who cannot see them. */
|
|
3853
|
-
readonly previousLabel: string;
|
|
3854
|
-
readonly nextLabel: string;
|
|
3855
|
-
};
|
|
3856
|
-
|
|
3857
|
-
export declare type TicketCodeProps = {
|
|
3858
|
-
/** "Peak • Adult", or absent where the caller knows neither half. */
|
|
3859
|
-
readonly qualifier: string | null;
|
|
3860
|
-
/** "Alex Whelan", or absent where the platform holds no name. */
|
|
3861
|
-
readonly name: string | null;
|
|
3862
|
-
/**
|
|
3863
|
-
* The holder's face — an `Avatar`, composed by the caller as every hero here is. `null`
|
|
3864
|
-
* is a real answer and is not a slot: see `TicketRow.artwork`, which draws the same line.
|
|
3865
|
-
*/
|
|
3866
|
-
readonly avatar?: ReactNode;
|
|
3867
|
-
/** The booking's day, already in words: "12 December 2054". */
|
|
3868
|
-
readonly day: string;
|
|
3869
|
-
/** When it starts, or absent where the event sells no sessions. */
|
|
3870
|
-
readonly time: string | null;
|
|
3871
|
-
readonly code: CodeState;
|
|
3872
|
-
/** What the code IS, for anyone who cannot see it. */
|
|
3873
|
-
readonly codeLabel: string;
|
|
3874
|
-
/** What stands in its place when it did not come back. */
|
|
3875
|
-
readonly codeMissing: string;
|
|
3876
|
-
};
|
|
3877
|
-
|
|
3878
|
-
/**
|
|
3879
|
-
* THE CODES, ONE AT A TIME, WITH THE NEXT ONE SHOWING.
|
|
3880
|
-
*
|
|
3881
|
-
* ── IT IS THE WEEK STRIP, WITH TICKETS IN IT ─────────────────────────────────
|
|
3882
|
-
*
|
|
3883
|
-
* The mechanism is `CalendarWeekSection`'s and deliberately so: a scroll-snapping pager that
|
|
3884
|
-
* BLEEDS past the content column on both sides, so the ends of the previous and next tickets
|
|
3885
|
-
* show. Stopping at the column cuts the run off mid-air with nothing to say there is
|
|
3886
|
-
* anywhere to scroll to — which on a booking of one ticket and a booking of four look
|
|
3887
|
-
* identical.
|
|
3888
|
-
*
|
|
3889
|
-
* THE BLEED IS THE CARD'S OWN INLINE PADDING, referenced rather than restated. One bleed is
|
|
3890
|
-
* `$7`, which is enough of a neighbouring ticket to read as a ticket rather than a stripe.
|
|
3891
|
-
*
|
|
3892
|
-
* ── WHY THE INDEX IS REPORTED AND NOT OWNED ──────────────────────────────────
|
|
3893
|
-
*
|
|
3894
|
-
* The pager button under the run says "1 of 3" and its arrows move the run, so the number
|
|
3895
|
-
* and the scroll position are two readings of one fact. Owned here, the button would need
|
|
3896
|
-
* to reach in for it; owned by the caller, both come from the same value. What this keeps
|
|
3897
|
-
* is the SCROLL, which is the browser's.
|
|
3898
|
-
*/
|
|
3899
|
-
export declare function TicketCodes({ tickets, at, onAtChange, label }: TicketCodesProps): react_jsx_runtime.JSX.Element | null;
|
|
3900
|
-
|
|
3901
|
-
export declare type TicketCodesProps = {
|
|
3902
|
-
readonly tickets: readonly TicketCodeEntry[];
|
|
3903
|
-
/** Which ticket is on screen, counted from zero. */
|
|
3904
|
-
readonly at: number;
|
|
3905
|
-
/** Reported as the run moves — from the live offset, not once it has settled. */
|
|
3906
|
-
readonly onAtChange: (at: number) => void;
|
|
3907
|
-
/** Names the run for assistive technology. */
|
|
3908
|
-
readonly label: string;
|
|
3909
|
-
};
|
|
3910
|
-
|
|
3911
|
-
/**
|
|
3912
|
-
* Too narrow to draw: below {@link minimumColumns} cutouts the padding has eaten the centre
|
|
3913
|
-
* and what is left is a frame around nothing — which is worse than no ticket, because it
|
|
3914
|
-
* looks like a code that failed to load.
|
|
3915
|
-
*/
|
|
3916
|
-
export declare type TicketEdgeFit = ({
|
|
3917
|
-
readonly ok: true;
|
|
3918
|
-
} & TicketEdgeFrame) | {
|
|
3919
|
-
readonly ok: false;
|
|
3920
|
-
readonly reason: 'TOO_NARROW';
|
|
3921
|
-
};
|
|
3922
|
-
|
|
3923
|
-
/** The ticket's measurements, all of them, in px. */
|
|
3924
|
-
export declare type TicketEdgeFrame = {
|
|
3925
|
-
/** Whole cutouts across the top and bottom rails. */
|
|
3926
|
-
readonly columns: number;
|
|
3927
|
-
/** Whole cutouts down each side rail. */
|
|
3928
|
-
readonly rows: number;
|
|
3929
|
-
/** The frame's outside width, rails included. */
|
|
3930
|
-
readonly frame: number;
|
|
3931
|
-
/** The centre's width, inside the rails. */
|
|
3932
|
-
readonly width: number;
|
|
3933
|
-
/** The centre's height, inside the rails — `rows` cutouts, so the side rails tile. */
|
|
3934
|
-
readonly height: number;
|
|
3935
|
-
/** The code's measure, inside the centre's padding. Square. */
|
|
3936
|
-
readonly code: number;
|
|
3937
|
-
};
|
|
3938
|
-
|
|
3939
|
-
/**
|
|
3940
|
-
* THE TICKET'S PERFORATED EDGE, AS PURE DATA.
|
|
3941
|
-
*
|
|
3942
|
-
* The edge is one cutout tiled along a rail, so a rail can only ever be a whole number of
|
|
3943
|
-
* cutouts long. A ticket that simply took the room it was offered would end its rails
|
|
3944
|
-
* mid-notch at every size but the handful that happen to divide — and the scale is a
|
|
3945
|
-
* host-tunable token, so "the handful that divide" is not something this file gets to know
|
|
3946
|
-
* in advance.
|
|
3947
|
-
*
|
|
3948
|
-
* So the measure is not taken, it is CHOSEN, on BOTH axes:
|
|
3949
|
-
*
|
|
3950
|
-
* - ACROSS, the rule is the offered width's. The two corners come out of the budget
|
|
3951
|
-
* first and the run is the most whole cutouts that fit what is left.
|
|
3952
|
-
* - DOWN, the rule is the CONTENT's. The centre holds a name, a date and a square code,
|
|
3953
|
-
* and that stack is as tall as it is — so the run is the FEWEST whole cutouts that
|
|
3954
|
-
* contain it, and the slack lands as paper at the bottom of the ticket.
|
|
3955
|
-
*
|
|
3956
|
-
* ── WHY THE TWO AXES DIFFER, AND WHY THAT IS NOT A SECOND RULE ───────────────
|
|
3957
|
-
*
|
|
3958
|
-
* `@scopetickets/sdk`'s `fitTicketEdge` chooses one count and spends it on all four rails,
|
|
3959
|
-
* and it is right to: the ticket there is a code and nothing else, so its centre is square
|
|
3960
|
-
* and a run turned through a right angle fits the side exactly. This ticket has a
|
|
3961
|
-
* ticketholder and a booking above the code, so its centre is taller than it is wide and
|
|
3962
|
-
* there is no single count. The rule is the same one — whole cutouts, never a fraction —
|
|
3963
|
-
* asked of two measures instead of one.
|
|
3964
|
-
*
|
|
3965
|
-
* The two are deliberately separate files rather than one shared with the SDK: this package
|
|
3966
|
-
* is mounted by hosts that never touch the SDK, and a widget that pulled a component
|
|
3967
|
-
* library in to draw a border would be exactly the dependency `ScopeTicketsCheckout` exists
|
|
3968
|
-
* to avoid.
|
|
3969
|
-
*/
|
|
3970
|
-
/**
|
|
3971
|
-
* The four measurements a ticket is built from, in px, read off the spacing scale at
|
|
3972
|
-
* RUNTIME rather than compiled in — a host that re-tunes the scale moves the CSS without
|
|
3973
|
-
* this hearing about it, so the numbers are taken from the rendered element.
|
|
3974
|
-
*/
|
|
3975
|
-
export declare type TicketEdgeTokens = {
|
|
3976
|
-
/**
|
|
3977
|
-
* `$2` — the rail's thickness, which is ALSO the corner's side and the cutout's short
|
|
3978
|
-
* side. One value in three places, not three that happen to agree: a rail thicker than
|
|
3979
|
-
* the cutout leaves a band of uncut material behind every notch.
|
|
3980
|
-
*/
|
|
3981
|
-
readonly edge: number;
|
|
3982
|
-
/** `$6` — the cutout's long side, and therefore the pitch a rail repeats at. */
|
|
3983
|
-
readonly segment: number;
|
|
3984
|
-
/** `$3` — the centre's inset, equal on four sides. */
|
|
3985
|
-
readonly pad: number;
|
|
3986
|
-
/** `$2` — the seam between the centre's rows, and between the last of them and the code. */
|
|
3987
|
-
readonly gap: number;
|
|
3988
|
-
};
|
|
3989
|
-
|
|
3990
4451
|
/** Who a ticket is for. */
|
|
3991
4452
|
export declare type Ticketholder = {
|
|
3992
4453
|
readonly firstName: string;
|
|
@@ -4003,6 +4464,55 @@ export declare type Ticketholder = {
|
|
|
4003
4464
|
* A ticket with no face draws no face.
|
|
4004
4465
|
*/
|
|
4005
4466
|
readonly photo: string | null;
|
|
4467
|
+
/**
|
|
4468
|
+
* THE PLATFORM'S USER BEHIND THE NAME (`Items[].Attendee.ID`), where the summary sent one: who
|
|
4469
|
+
* the ticket is for, as a person rather than as words. Tickets of one order with the same
|
|
4470
|
+
* holder are one group (Conall, 2026-11-13). Absent where unknown; never sent on a save.
|
|
4471
|
+
*/
|
|
4472
|
+
readonly userId?: number;
|
|
4473
|
+
};
|
|
4474
|
+
|
|
4475
|
+
/**
|
|
4476
|
+
* A TICKET'S LIFECYCLE, UNINTERPRETED (Conall, 2026-11-09): its `Status` word and the moments
|
|
4477
|
+
* the platform stamped, each bounded and otherwise exactly as sent. Nothing here decides what a
|
|
4478
|
+
* status MEANS — the platform's set is unwritten ("Valid" on staging), and a mapping guessed at
|
|
4479
|
+
* here would be a fact this package invented. A caller that knows the set reads it.
|
|
4480
|
+
*/
|
|
4481
|
+
declare type TicketLifecycle = {
|
|
4482
|
+
/** `Status`: "Valid", and whatever else the platform has. `null` when absent or unusable. */
|
|
4483
|
+
readonly status: string | null;
|
|
4484
|
+
/** `TimeBooked`, `TimeEmailed`, `TimeAdmitted`: ISO date-times as sent; `null` until each happened. */
|
|
4485
|
+
readonly bookedAt: string | null;
|
|
4486
|
+
readonly emailedAt: string | null;
|
|
4487
|
+
readonly admittedAt: string | null;
|
|
4488
|
+
/**
|
|
4489
|
+
* What the ticket cost, in minor units: `OrganisationAmount` (the organiser's price) and
|
|
4490
|
+
* `TotalAmount` (with fees), against which its refunds are read (`refundStanding`).
|
|
4491
|
+
* `null` where the platform sent nothing usable, or 0 (a platform that leaves them unset).
|
|
4492
|
+
*/
|
|
4493
|
+
readonly organisationAmount: number | null;
|
|
4494
|
+
readonly totalAmount: number | null;
|
|
4495
|
+
/** `Refunds`: what its customer was sent back, oldest first. Empty where none, or not sent. */
|
|
4496
|
+
readonly refunds: readonly TicketRefund[];
|
|
4497
|
+
};
|
|
4498
|
+
|
|
4499
|
+
/**
|
|
4500
|
+
* ONE TICKET PRODUCT (Conall, 2026-11-10): its name ("Peak"), the organiser's note about it
|
|
4501
|
+
* (its description), and what it is valid for: one event (`eventId`), or every event of a
|
|
4502
|
+
* series (`seriesId`). Each bounded, otherwise as sent.
|
|
4503
|
+
*/
|
|
4504
|
+
declare type TicketProduct = {
|
|
4505
|
+
readonly id: number;
|
|
4506
|
+
readonly name: string | null;
|
|
4507
|
+
readonly note: string | null;
|
|
4508
|
+
readonly eventId: number | null;
|
|
4509
|
+
readonly seriesId: number | null;
|
|
4510
|
+
/**
|
|
4511
|
+
* WHETHER EACH TICKET MUST NAME ITS HOLDER (`AttendeeDetailsRequired`). `false` where the
|
|
4512
|
+
* platform said no or said nothing: its own default. Its tickets that need no names may be
|
|
4513
|
+
* held together as a group (Conall, 2026-11-13).
|
|
4514
|
+
*/
|
|
4515
|
+
readonly attendeeDetailsRequired: boolean;
|
|
4006
4516
|
};
|
|
4007
4517
|
|
|
4008
4518
|
/**
|
|
@@ -4012,6 +4522,19 @@ export declare type Ticketholder = {
|
|
|
4012
4522
|
*/
|
|
4013
4523
|
export declare function ticketQualifier(ticket: BookingTicket): string | null;
|
|
4014
4524
|
|
|
4525
|
+
/** One refund a ticket's customer was sent — see `AttendeeTicket.Refunds`. */
|
|
4526
|
+
declare type TicketRefund = {
|
|
4527
|
+
/** Minor units. */
|
|
4528
|
+
readonly amount: number;
|
|
4529
|
+
readonly currency: string | null;
|
|
4530
|
+
/** When the platform confirmed it, ISO as sent. */
|
|
4531
|
+
readonly at: string;
|
|
4532
|
+
/** `RESALE`: the ticket was sold on, and this is its seller's payout, not a refund. */
|
|
4533
|
+
readonly kind: 'REFUND' | 'RESALE';
|
|
4534
|
+
/** `ORDER`: this ticket's share of a whole-order refund. */
|
|
4535
|
+
readonly scope: 'TICKET' | 'ORDER';
|
|
4536
|
+
};
|
|
4537
|
+
|
|
4015
4538
|
/** One row of the booking: who a ticket is for, what it is, and the way into it. */
|
|
4016
4539
|
export declare type TicketRow = {
|
|
4017
4540
|
readonly key: string;
|
|
@@ -4064,14 +4587,16 @@ export declare type TicketsInBookingProps = {
|
|
|
4064
4587
|
};
|
|
4065
4588
|
|
|
4066
4589
|
/**
|
|
4067
|
-
* "Alex’s Ticket" — the ticket card's own title,
|
|
4590
|
+
* "Alex’s Peak Ticket" — the ticket card's own title, the product between the name and
|
|
4591
|
+
* "Ticket" where it is known, "Alex’s Ticket" where it is not; `null` where nobody is named.
|
|
4592
|
+
* A product already ending in "Ticket" ("Early Bird Ticket") is not given a second.
|
|
4068
4593
|
*
|
|
4069
4594
|
* ALWAYS `’s`, INCLUDING AFTER AN `s`. Both "James’s" and "James’" are correct English and
|
|
4070
4595
|
* house styles differ; what is not defensible is a rule that inspects the last letter of a
|
|
4071
4596
|
* stranger's name and guesses. One form, applied to everyone, and the apostrophe is the
|
|
4072
4597
|
* typographic one because this is prose rather than code.
|
|
4073
4598
|
*/
|
|
4074
|
-
export declare function ticketTitle(
|
|
4599
|
+
export declare function ticketTitle(ticket: Pick<BookingTicket, 'holder' | 'product'>): string | null;
|
|
4075
4600
|
|
|
4076
4601
|
/**
|
|
4077
4602
|
* THE CLOCK STOPPED — the design `3803:7329`, and the card the whole island gives itself
|
|
@@ -4117,73 +4642,8 @@ export declare function timedOutViewProps(expanded: boolean, onTryAgain: () => v
|
|
|
4117
4642
|
})[];
|
|
4118
4643
|
};
|
|
4119
4644
|
|
|
4120
|
-
/** The time it is right now on a given zone's clock, as `HH:MM`. */
|
|
4121
|
-
export declare function timeOfDayInZone(now: Date, timeZone: string | null): string;
|
|
4122
|
-
|
|
4123
|
-
/** Select Time — the timeslot picker's content. */
|
|
4124
|
-
export declare function TimePicker({ series, today, nowTime, selection, onSelectDay, slots, onSelectTime, remaining, accessory, onVisibleMonthChange, grouping, }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
4125
|
-
|
|
4126
|
-
export declare type TimePickerProps = {
|
|
4127
|
-
/**
|
|
4128
|
-
* The run the chosen day belongs to. The week strip scrolls through all of it,
|
|
4129
|
-
* including weeks the run skips.
|
|
4130
|
-
*/
|
|
4131
|
-
readonly series: CalendarSeries;
|
|
4132
|
-
/** `YYYY-MM-DD` in the VENUE's local day, never the device's. */
|
|
4133
|
-
readonly today: string;
|
|
4134
|
-
/** `HH:MM` in the VENUE's local time (`timeOfDayInZone`). */
|
|
4135
|
-
readonly nowTime: string;
|
|
4136
|
-
/** THE WHOLE ANSWER THIS CARD IS COLLECTING: the day, and the time on it. */
|
|
4137
|
-
readonly selection: TimeSelection;
|
|
4138
|
-
/**
|
|
4139
|
-
* Picking a day in the strip REPLACES the chosen one; it never clears it — and it drops
|
|
4140
|
-
* any time chosen on the day before it. See `withSelectedDay`.
|
|
4141
|
-
*/
|
|
4142
|
-
readonly onSelectDay: (day: string) => void;
|
|
4143
|
-
/** ONE ticket's slots for `selection.day`, in the order the wire gave them. */
|
|
4144
|
-
readonly slots: readonly Timeslot[];
|
|
4145
|
-
readonly onSelectTime: (startTime: string) => void;
|
|
4146
|
-
/**
|
|
4147
|
-
* Per-day `Remaining`, 0..1, keyed by `YYYY-MM-DD` — the RAW signal, exactly as
|
|
4148
|
-
* `DayPicker` takes it, for the strip's own seven cells. A slot's own
|
|
4149
|
-
* availability rides on the slot and never comes from here.
|
|
4150
|
-
*/
|
|
4151
|
-
readonly remaining?: Readonly<Record<string, number>>;
|
|
4152
|
-
/**
|
|
4153
|
-
* Defaults to the variant both pickers draw. A prop only so a host can turn the line
|
|
4154
|
-
* off; there is no per-cell answer.
|
|
4155
|
-
*/
|
|
4156
|
-
readonly accessory?: DatePickerCellAccessory;
|
|
4157
|
-
/**
|
|
4158
|
-
* The month the WEEK STRIP is showing, reported as it pages — the same fact
|
|
4159
|
-
* `DayPicker` publishes, for the same header pill. The timeslots below never move
|
|
4160
|
-
* it: they all belong to one day.
|
|
4161
|
-
*/
|
|
4162
|
-
readonly onVisibleMonthChange?: (month: CalendarMonthKey) => void;
|
|
4163
|
-
/** How the day's slots are cut up — see `TimeslotGrouping`. Absent is the eight bands. */
|
|
4164
|
-
readonly grouping?: TimeslotGrouping | undefined;
|
|
4165
|
-
};
|
|
4166
|
-
|
|
4167
|
-
/**
|
|
4168
|
-
* THE DAY AND THE TIME ON IT, AS ONE VALUE — because they are one answer, and holding
|
|
4169
|
-
* them apart is what let a time outlive the day it was chosen on.
|
|
4170
|
-
*/
|
|
4171
|
-
export declare type TimeSelection = {
|
|
4172
|
-
/**
|
|
4173
|
-
* `YYYY-MM-DD` — the day being bought, on the VENUE's own local calendar. Not nullable:
|
|
4174
|
-
* there is no version of Select Time with no day, because the slots on it belong to
|
|
4175
|
-
* one.
|
|
4176
|
-
*/
|
|
4177
|
-
readonly day: string;
|
|
4178
|
-
/**
|
|
4179
|
-
* The picked slot's `startTime`, which is the only identity a slot has, or null for a
|
|
4180
|
-
* day whose time has not been chosen yet.
|
|
4181
|
-
*/
|
|
4182
|
-
readonly startTime: string | null;
|
|
4183
|
-
};
|
|
4184
|
-
|
|
4185
4645
|
/** One slot a ticket is sold for. */
|
|
4186
|
-
|
|
4646
|
+
declare type Timeslot = {
|
|
4187
4647
|
/**
|
|
4188
4648
|
* `HH:MM` on the VENUE's clock — never the viewer's. Also the slot's IDENTITY: the wire
|
|
4189
4649
|
* gives no key, so the start time is what a selection points at.
|
|
@@ -4248,12 +4708,6 @@ declare interface TimeslotRequest {
|
|
|
4248
4708
|
LocalEndTime: string;
|
|
4249
4709
|
}
|
|
4250
4710
|
|
|
4251
|
-
/**
|
|
4252
|
-
* The selection after a day is pressed: the day, or NOTHING if it was already the
|
|
4253
|
-
* chosen one.
|
|
4254
|
-
*/
|
|
4255
|
-
export declare function toggleSelectedDay(selected: string | null, day: string): string | null;
|
|
4256
|
-
|
|
4257
4711
|
/** @internal */
|
|
4258
4712
|
/** @internal */
|
|
4259
4713
|
declare interface TransactionByKeyResponse {
|
|
@@ -4280,10 +4734,20 @@ declare interface TransactionByKeyResponse {
|
|
|
4280
4734
|
Phone?: string | null;
|
|
4281
4735
|
Photo?: string | null;
|
|
4282
4736
|
};
|
|
4737
|
+
/** The item's user type ("Family of 3"), as staging sends it on every ticket item. */
|
|
4738
|
+
UserType?: {
|
|
4739
|
+
Name?: string | null;
|
|
4740
|
+
} | null;
|
|
4741
|
+
/**
|
|
4742
|
+
* The ticket's own session, venue wall-clock times ("11:00:00"), where it was booked into
|
|
4743
|
+
* one; absent on a ticket with none. The platform's `ItemWithAttendee.Timeslot`.
|
|
4744
|
+
*/
|
|
4745
|
+
Timeslot?: TimeslotRequest | null;
|
|
4283
4746
|
}>;
|
|
4284
4747
|
}
|
|
4285
4748
|
|
|
4286
|
-
|
|
4749
|
+
/** `null` until the parts are ready; the config is read once, as native's is. */
|
|
4750
|
+
export declare function useCheckoutParts(config: WebCheckoutConfig): CheckoutParts | null;
|
|
4287
4751
|
|
|
4288
4752
|
export declare function useReportAnswered(answered: boolean, onAnsweredChange: AnswerReporting['onAnsweredChange']): void;
|
|
4289
4753
|
|
|
@@ -4317,17 +4781,42 @@ declare interface UserType {
|
|
|
4317
4781
|
AgeMaximum?: number | null;
|
|
4318
4782
|
}
|
|
4319
4783
|
|
|
4784
|
+
/** WebAuthn's three, narrowed from the free text the platform sends. */
|
|
4785
|
+
declare type UserVerification = 'required' | 'preferred' | 'discouraged';
|
|
4786
|
+
|
|
4320
4787
|
/**
|
|
4321
|
-
*
|
|
4322
|
-
*
|
|
4323
|
-
* composition held — so this covers every assignment in the run, not the rows drawn.
|
|
4788
|
+
* THE SIGNED-IN BUYER, OUTSIDE THE WIDGET — checkout-native's `useScopeBuyer`, unchanged: whoever
|
|
4789
|
+
* the parts' auth store holds, live, and how to sign them out. Nobody until the parts are loaded.
|
|
4324
4790
|
*/
|
|
4325
|
-
export declare function
|
|
4791
|
+
export declare function useScopeBuyer(parts: CheckoutParts | null): ScopeBuyer;
|
|
4326
4792
|
|
|
4327
|
-
/**
|
|
4328
|
-
|
|
4793
|
+
/** @internal */
|
|
4794
|
+
declare interface Venue {
|
|
4795
|
+
Key: string;
|
|
4796
|
+
Name: string;
|
|
4797
|
+
TimeZone: string;
|
|
4798
|
+
}
|
|
4799
|
+
|
|
4800
|
+
/**
|
|
4801
|
+
* A VENUE'S ADDRESS, as `GET /api/Addresses/venue/{key}` answers
|
|
4802
|
+
* it: its city, its point, and the Apple Maps snapshot the platform made of it, kept on its CDN.
|
|
4803
|
+
*/
|
|
4804
|
+
declare type VenueAddress = {
|
|
4805
|
+
readonly city: string | null;
|
|
4806
|
+
/** Degrees; `null` unless both are sent and in range. */
|
|
4807
|
+
readonly point: {
|
|
4808
|
+
readonly latitude: number;
|
|
4809
|
+
readonly longitude: number;
|
|
4810
|
+
} | null;
|
|
4811
|
+
/** The snapshot's URL (http or https only); `null` where the platform has none. */
|
|
4812
|
+
readonly snapshotUrl: string | null;
|
|
4813
|
+
};
|
|
4329
4814
|
|
|
4330
|
-
|
|
4331
|
-
|
|
4815
|
+
export declare type WebCheckoutConfig = PlatformConfig & {
|
|
4816
|
+
readonly seed?: AuthSession;
|
|
4817
|
+
readonly logger?: Logger;
|
|
4818
|
+
/** Only a host that owns its origin passes one — see `sessionStorageVault`. */
|
|
4819
|
+
readonly vault?: CredentialVault;
|
|
4820
|
+
};
|
|
4332
4821
|
|
|
4333
4822
|
export { }
|