@seatlayer/js 0.110.0 → 0.110.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/dist/{hostedCheckout-NA3IEXE4.js → hostedCheckout-2JDHIDPG.js} +2 -2
- package/dist/index.cjs +23 -23
- package/dist/index.d.cts +47 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +21 -21
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -5036,6 +5036,12 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
5036
5036
|
/** @internal */ legendDeps(): LegendDeps;
|
|
5037
5037
|
/** Seats drawn two-tone right now (free on some dates only). */
|
|
5038
5038
|
private readonly markedSeatIds;
|
|
5039
|
+
/**
|
|
5040
|
+
* @internal The chart category of a seat on this map, or null when the map
|
|
5041
|
+
* has no seat with that label. A Season hold's lines are identity-only, so a
|
|
5042
|
+
* held seat that was never clicked (Best Available) has its category here.
|
|
5043
|
+
*/
|
|
5044
|
+
seatCategory(label: string): string | null;
|
|
5039
5045
|
/**
|
|
5040
5046
|
* @internal Where each seat is, as the cart names it (section, row, seat
|
|
5041
5047
|
* number), for a wrapper's own words: a Season's Change package says which
|
|
@@ -5119,6 +5125,13 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
5119
5125
|
* that reports the failure.
|
|
5120
5126
|
*/
|
|
5121
5127
|
private raiseHoldConflict;
|
|
5128
|
+
/**
|
|
5129
|
+
* After the ticket count on the booked screen. Only SeatLayer checkout sends
|
|
5130
|
+
* the buyer an email, so only it promises one: on your own checkout your
|
|
5131
|
+
* platform owns the confirmation, and a promise nobody keeps leaves the buyer
|
|
5132
|
+
* waiting (season trial C11). Both lines can be reworded with `messages`.
|
|
5133
|
+
*/
|
|
5134
|
+
private bookedLine;
|
|
5122
5135
|
private showBooked;
|
|
5123
5136
|
/** Take the confirmation down and give the map back. The booking stands. */
|
|
5124
5137
|
private dismissBooked;
|
|
@@ -6045,11 +6058,17 @@ declare class SeasonApiError extends Error {
|
|
|
6045
6058
|
readonly reason?: string;
|
|
6046
6059
|
/** For `seats_unavailable` or a refused operation: each refused date and why (slice 2.23). */
|
|
6047
6060
|
readonly refusals?: readonly SeasonRefusal[];
|
|
6061
|
+
/**
|
|
6062
|
+
* The sentence the seat map shows the buyer for this failure, when the
|
|
6063
|
+
* Season knows better than the map's generic wording (season trial C8).
|
|
6064
|
+
*/
|
|
6065
|
+
readonly buyerMessage?: string;
|
|
6048
6066
|
constructor(code: string, status: number, details?: {
|
|
6049
6067
|
retryAfterS?: number;
|
|
6050
6068
|
retryable?: boolean;
|
|
6051
6069
|
reason?: string;
|
|
6052
6070
|
refusals?: readonly SeasonRefusal[];
|
|
6071
|
+
buyerMessage?: string;
|
|
6053
6072
|
});
|
|
6054
6073
|
}
|
|
6055
6074
|
declare class SeasonRecoveryTimeoutError extends Error {
|
|
@@ -6097,10 +6116,21 @@ interface SeasonDescriptor {
|
|
|
6097
6116
|
audience: SeasonAudience;
|
|
6098
6117
|
/** Absent on a worker that predates hosted Season checkout; read as `null`. */
|
|
6099
6118
|
checkoutMode?: SeasonCheckoutMode | null;
|
|
6119
|
+
/** The Season's sales state (`open` while it sells). Absent on a worker that predates it. */
|
|
6120
|
+
salesState?: string | null;
|
|
6100
6121
|
/** The club's Brand settings: its name, logo and colour, or null when unset. Absent on an older worker. */
|
|
6101
6122
|
organizerName?: string | null;
|
|
6102
6123
|
orgLogoUrl?: string | null;
|
|
6103
6124
|
orgAccent?: string | null;
|
|
6125
|
+
/**
|
|
6126
|
+
* The buyer the host's server named when it minted this session, for the
|
|
6127
|
+
* payment card's prefill only (C44). Null when it named nobody or the picker
|
|
6128
|
+
* minted its own session; absent on an older worker.
|
|
6129
|
+
*/
|
|
6130
|
+
buyer?: {
|
|
6131
|
+
email: string | null;
|
|
6132
|
+
name: string | null;
|
|
6133
|
+
} | null;
|
|
6104
6134
|
planActivationId: string;
|
|
6105
6135
|
occurrenceCount: number;
|
|
6106
6136
|
occurrences: Array<{
|
|
@@ -6327,6 +6357,14 @@ interface SeasonPickerOptions {
|
|
|
6327
6357
|
* cannot authorize it.
|
|
6328
6358
|
*/
|
|
6329
6359
|
returnUrl?: string;
|
|
6360
|
+
/**
|
|
6361
|
+
* The buyer's email, when your page already knows it (a signed-in member).
|
|
6362
|
+
* It prefills SeatLayer checkout's card for `checkout: 'hosted'`; the buyer
|
|
6363
|
+
* can still change it before paying.
|
|
6364
|
+
*/
|
|
6365
|
+
buyerEmail?: string;
|
|
6366
|
+
/** The buyer's name, prefilled on the card the same way as `buyerEmail`. */
|
|
6367
|
+
buyerName?: string;
|
|
6330
6368
|
/**
|
|
6331
6369
|
* The host's own token source. Once the buyer chooses another package on
|
|
6332
6370
|
* step 1, it is asked for that package's token: the context then carries
|
|
@@ -6435,6 +6473,15 @@ declare class SeasonPicker {
|
|
|
6435
6473
|
holdSameSeat(labels: readonly string[], operationId: string, priceTypes?: SeasonSeatPriceTypes): Promise<SeasonCheckoutHandoff>;
|
|
6436
6474
|
holdBestAvailable(qty: number, operationId: string, options?: SeasonBestAvailableOptions): Promise<SeasonCheckoutHandoff>;
|
|
6437
6475
|
restoreOperation(operationId: string): Promise<SeasonCheckoutHandoff | null>;
|
|
6476
|
+
/**
|
|
6477
|
+
* Your server booked the held seats (`bookSeasonHold`, on your own checkout):
|
|
6478
|
+
* tell the picker. It reads the operation back once. When SeatLayer has it
|
|
6479
|
+
* booked, the picker shows its booked state, stops the hold clock and stops
|
|
6480
|
+
* offering checkout, and this resolves `true`. It resolves `false`, leaving
|
|
6481
|
+
* the picker as it was, when nothing is held here or the operation is not
|
|
6482
|
+
* booked yet.
|
|
6483
|
+
*/
|
|
6484
|
+
markBooked(): Promise<boolean>;
|
|
6438
6485
|
release(releaseActionId: string): Promise<void>;
|
|
6439
6486
|
createRenewalIntent(offerId: string): Promise<SeasonRenewalIntent>;
|
|
6440
6487
|
getDescriptor(): SeasonDescriptor | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -5036,6 +5036,12 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
5036
5036
|
/** @internal */ legendDeps(): LegendDeps;
|
|
5037
5037
|
/** Seats drawn two-tone right now (free on some dates only). */
|
|
5038
5038
|
private readonly markedSeatIds;
|
|
5039
|
+
/**
|
|
5040
|
+
* @internal The chart category of a seat on this map, or null when the map
|
|
5041
|
+
* has no seat with that label. A Season hold's lines are identity-only, so a
|
|
5042
|
+
* held seat that was never clicked (Best Available) has its category here.
|
|
5043
|
+
*/
|
|
5044
|
+
seatCategory(label: string): string | null;
|
|
5039
5045
|
/**
|
|
5040
5046
|
* @internal Where each seat is, as the cart names it (section, row, seat
|
|
5041
5047
|
* number), for a wrapper's own words: a Season's Change package says which
|
|
@@ -5119,6 +5125,13 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
5119
5125
|
* that reports the failure.
|
|
5120
5126
|
*/
|
|
5121
5127
|
private raiseHoldConflict;
|
|
5128
|
+
/**
|
|
5129
|
+
* After the ticket count on the booked screen. Only SeatLayer checkout sends
|
|
5130
|
+
* the buyer an email, so only it promises one: on your own checkout your
|
|
5131
|
+
* platform owns the confirmation, and a promise nobody keeps leaves the buyer
|
|
5132
|
+
* waiting (season trial C11). Both lines can be reworded with `messages`.
|
|
5133
|
+
*/
|
|
5134
|
+
private bookedLine;
|
|
5122
5135
|
private showBooked;
|
|
5123
5136
|
/** Take the confirmation down and give the map back. The booking stands. */
|
|
5124
5137
|
private dismissBooked;
|
|
@@ -6045,11 +6058,17 @@ declare class SeasonApiError extends Error {
|
|
|
6045
6058
|
readonly reason?: string;
|
|
6046
6059
|
/** For `seats_unavailable` or a refused operation: each refused date and why (slice 2.23). */
|
|
6047
6060
|
readonly refusals?: readonly SeasonRefusal[];
|
|
6061
|
+
/**
|
|
6062
|
+
* The sentence the seat map shows the buyer for this failure, when the
|
|
6063
|
+
* Season knows better than the map's generic wording (season trial C8).
|
|
6064
|
+
*/
|
|
6065
|
+
readonly buyerMessage?: string;
|
|
6048
6066
|
constructor(code: string, status: number, details?: {
|
|
6049
6067
|
retryAfterS?: number;
|
|
6050
6068
|
retryable?: boolean;
|
|
6051
6069
|
reason?: string;
|
|
6052
6070
|
refusals?: readonly SeasonRefusal[];
|
|
6071
|
+
buyerMessage?: string;
|
|
6053
6072
|
});
|
|
6054
6073
|
}
|
|
6055
6074
|
declare class SeasonRecoveryTimeoutError extends Error {
|
|
@@ -6097,10 +6116,21 @@ interface SeasonDescriptor {
|
|
|
6097
6116
|
audience: SeasonAudience;
|
|
6098
6117
|
/** Absent on a worker that predates hosted Season checkout; read as `null`. */
|
|
6099
6118
|
checkoutMode?: SeasonCheckoutMode | null;
|
|
6119
|
+
/** The Season's sales state (`open` while it sells). Absent on a worker that predates it. */
|
|
6120
|
+
salesState?: string | null;
|
|
6100
6121
|
/** The club's Brand settings: its name, logo and colour, or null when unset. Absent on an older worker. */
|
|
6101
6122
|
organizerName?: string | null;
|
|
6102
6123
|
orgLogoUrl?: string | null;
|
|
6103
6124
|
orgAccent?: string | null;
|
|
6125
|
+
/**
|
|
6126
|
+
* The buyer the host's server named when it minted this session, for the
|
|
6127
|
+
* payment card's prefill only (C44). Null when it named nobody or the picker
|
|
6128
|
+
* minted its own session; absent on an older worker.
|
|
6129
|
+
*/
|
|
6130
|
+
buyer?: {
|
|
6131
|
+
email: string | null;
|
|
6132
|
+
name: string | null;
|
|
6133
|
+
} | null;
|
|
6104
6134
|
planActivationId: string;
|
|
6105
6135
|
occurrenceCount: number;
|
|
6106
6136
|
occurrences: Array<{
|
|
@@ -6327,6 +6357,14 @@ interface SeasonPickerOptions {
|
|
|
6327
6357
|
* cannot authorize it.
|
|
6328
6358
|
*/
|
|
6329
6359
|
returnUrl?: string;
|
|
6360
|
+
/**
|
|
6361
|
+
* The buyer's email, when your page already knows it (a signed-in member).
|
|
6362
|
+
* It prefills SeatLayer checkout's card for `checkout: 'hosted'`; the buyer
|
|
6363
|
+
* can still change it before paying.
|
|
6364
|
+
*/
|
|
6365
|
+
buyerEmail?: string;
|
|
6366
|
+
/** The buyer's name, prefilled on the card the same way as `buyerEmail`. */
|
|
6367
|
+
buyerName?: string;
|
|
6330
6368
|
/**
|
|
6331
6369
|
* The host's own token source. Once the buyer chooses another package on
|
|
6332
6370
|
* step 1, it is asked for that package's token: the context then carries
|
|
@@ -6435,6 +6473,15 @@ declare class SeasonPicker {
|
|
|
6435
6473
|
holdSameSeat(labels: readonly string[], operationId: string, priceTypes?: SeasonSeatPriceTypes): Promise<SeasonCheckoutHandoff>;
|
|
6436
6474
|
holdBestAvailable(qty: number, operationId: string, options?: SeasonBestAvailableOptions): Promise<SeasonCheckoutHandoff>;
|
|
6437
6475
|
restoreOperation(operationId: string): Promise<SeasonCheckoutHandoff | null>;
|
|
6476
|
+
/**
|
|
6477
|
+
* Your server booked the held seats (`bookSeasonHold`, on your own checkout):
|
|
6478
|
+
* tell the picker. It reads the operation back once. When SeatLayer has it
|
|
6479
|
+
* booked, the picker shows its booked state, stops the hold clock and stops
|
|
6480
|
+
* offering checkout, and this resolves `true`. It resolves `false`, leaving
|
|
6481
|
+
* the picker as it was, when nothing is held here or the operation is not
|
|
6482
|
+
* booked yet.
|
|
6483
|
+
*/
|
|
6484
|
+
markBooked(): Promise<boolean>;
|
|
6438
6485
|
release(releaseActionId: string): Promise<void>;
|
|
6439
6486
|
createRenewalIntent(offerId: string): Promise<SeasonRenewalIntent>;
|
|
6440
6487
|
getDescriptor(): SeasonDescriptor | null;
|