@seatlayer/js 0.95.1 → 0.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-ICMSBXRJ.js +1 -0
- package/dist/chunk-URLBBOTJ.js +1 -0
- package/dist/hostedCheckout-4BFFNCCU.js +146 -0
- package/dist/index.cjs +148 -60
- package/dist/index.d.cts +17 -7
- package/dist/index.d.ts +17 -7
- package/dist/index.js +17 -17
- package/dist/manager.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-JELR6YYZ.js +0 -1
- package/dist/hostedCheckout-GQQF4XDN.js +0 -58
package/dist/index.d.cts
CHANGED
|
@@ -502,6 +502,13 @@ declare function createControllerSink(controller: PickerControllerLike, options?
|
|
|
502
502
|
* follows the card's rule: NO RUNTIME IMPORTS. Everything it needs — the ticket
|
|
503
503
|
* keys, the translator, the buyer's own details — arrives as arguments.
|
|
504
504
|
*
|
|
505
|
+
* Nothing is asked twice (docs/design/checkout-ux-2026-09-22 in the app repo):
|
|
506
|
+
* ticket 1 copies the buyer's own name and email and is shown as one line,
|
|
507
|
+
* "You · Asha", with a way to change it; a one-ticket order has no holder
|
|
508
|
+
* block at all; holder details that are all optional wait behind one line.
|
|
509
|
+
* What is SENT is unchanged — ticket 1's attendee still carries the buyer's
|
|
510
|
+
* name and email.
|
|
511
|
+
*
|
|
505
512
|
* The server is the authority on every rule below (`booking_form_incomplete`).
|
|
506
513
|
* These checks only exist so a buyer hears about a missing name next to the
|
|
507
514
|
* field, before a round trip, in the same words the refusal would map to.
|
|
@@ -684,8 +691,8 @@ interface BestAvailableResult {
|
|
|
684
691
|
/** See {@link HoldResult.ticketKeyDetails}. */
|
|
685
692
|
ticketKeyDetails?: TicketKeyDetail[];
|
|
686
693
|
}
|
|
687
|
-
/** A gateway the organizer can be connected to. */
|
|
688
|
-
type PaymentProviderName =
|
|
694
|
+
/** A gateway the organizer can be connected to. Provider ids are server-owned. */
|
|
695
|
+
type PaymentProviderName = string;
|
|
689
696
|
/**
|
|
690
697
|
* Why `payment-options` came back with an empty list.
|
|
691
698
|
*
|
|
@@ -718,7 +725,7 @@ interface PaymentOptionsResult {
|
|
|
718
725
|
/** What hosted checkout must ask: attendee details and active questions. */
|
|
719
726
|
bookingForm?: BookingForm | null;
|
|
720
727
|
}
|
|
721
|
-
/** A started payment.
|
|
728
|
+
/** A started payment. Paid checkouts continue through one provider-neutral redirect. */
|
|
722
729
|
interface CheckoutSessionResult {
|
|
723
730
|
orderId: string;
|
|
724
731
|
totalMinor: number;
|
|
@@ -726,8 +733,6 @@ interface CheckoutSessionResult {
|
|
|
726
733
|
expiresAt: number;
|
|
727
734
|
/** Hosted gateway page — navigate to it. */
|
|
728
735
|
redirectUrl?: string;
|
|
729
|
-
/** In-page modal gateway — open it without leaving the page. */
|
|
730
|
-
clientPayload?: Record<string, unknown>;
|
|
731
736
|
/**
|
|
732
737
|
* `'confirmed'` when the booking needed no payment (a free event, or a hold
|
|
733
738
|
* that sums to zero): the seats are already booked and the tickets issued,
|
|
@@ -1013,6 +1018,13 @@ interface CheckoutLineItem {
|
|
|
1013
1018
|
sectionLabel?: string;
|
|
1014
1019
|
rowLabel?: string;
|
|
1015
1020
|
seatNumber?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* Buyer-facing category name ("Standard") and ticket type ("Adult") for
|
|
1023
|
+
* `categoryKey` / `tierId`, so an order summary need not look them up.
|
|
1024
|
+
* Absent when the chart names neither (or on an older SDK).
|
|
1025
|
+
*/
|
|
1026
|
+
categoryLabel?: string;
|
|
1027
|
+
tierLabel?: string;
|
|
1016
1028
|
}
|
|
1017
1029
|
interface CheckoutHandoff {
|
|
1018
1030
|
/** Server hold id — pass this to YOUR book call. */
|
|
@@ -5511,8 +5523,6 @@ interface SeasonCheckoutSession {
|
|
|
5511
5523
|
expiresAt: number;
|
|
5512
5524
|
/** Hosted gateway page — navigate to it. */
|
|
5513
5525
|
redirectUrl?: string;
|
|
5514
|
-
/** In-page modal gateway — open it without leaving the page. */
|
|
5515
|
-
clientPayload?: Record<string, unknown>;
|
|
5516
5526
|
}
|
|
5517
5527
|
interface SeasonCheckoutRequest {
|
|
5518
5528
|
operationId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -502,6 +502,13 @@ declare function createControllerSink(controller: PickerControllerLike, options?
|
|
|
502
502
|
* follows the card's rule: NO RUNTIME IMPORTS. Everything it needs — the ticket
|
|
503
503
|
* keys, the translator, the buyer's own details — arrives as arguments.
|
|
504
504
|
*
|
|
505
|
+
* Nothing is asked twice (docs/design/checkout-ux-2026-09-22 in the app repo):
|
|
506
|
+
* ticket 1 copies the buyer's own name and email and is shown as one line,
|
|
507
|
+
* "You · Asha", with a way to change it; a one-ticket order has no holder
|
|
508
|
+
* block at all; holder details that are all optional wait behind one line.
|
|
509
|
+
* What is SENT is unchanged — ticket 1's attendee still carries the buyer's
|
|
510
|
+
* name and email.
|
|
511
|
+
*
|
|
505
512
|
* The server is the authority on every rule below (`booking_form_incomplete`).
|
|
506
513
|
* These checks only exist so a buyer hears about a missing name next to the
|
|
507
514
|
* field, before a round trip, in the same words the refusal would map to.
|
|
@@ -684,8 +691,8 @@ interface BestAvailableResult {
|
|
|
684
691
|
/** See {@link HoldResult.ticketKeyDetails}. */
|
|
685
692
|
ticketKeyDetails?: TicketKeyDetail[];
|
|
686
693
|
}
|
|
687
|
-
/** A gateway the organizer can be connected to. */
|
|
688
|
-
type PaymentProviderName =
|
|
694
|
+
/** A gateway the organizer can be connected to. Provider ids are server-owned. */
|
|
695
|
+
type PaymentProviderName = string;
|
|
689
696
|
/**
|
|
690
697
|
* Why `payment-options` came back with an empty list.
|
|
691
698
|
*
|
|
@@ -718,7 +725,7 @@ interface PaymentOptionsResult {
|
|
|
718
725
|
/** What hosted checkout must ask: attendee details and active questions. */
|
|
719
726
|
bookingForm?: BookingForm | null;
|
|
720
727
|
}
|
|
721
|
-
/** A started payment.
|
|
728
|
+
/** A started payment. Paid checkouts continue through one provider-neutral redirect. */
|
|
722
729
|
interface CheckoutSessionResult {
|
|
723
730
|
orderId: string;
|
|
724
731
|
totalMinor: number;
|
|
@@ -726,8 +733,6 @@ interface CheckoutSessionResult {
|
|
|
726
733
|
expiresAt: number;
|
|
727
734
|
/** Hosted gateway page — navigate to it. */
|
|
728
735
|
redirectUrl?: string;
|
|
729
|
-
/** In-page modal gateway — open it without leaving the page. */
|
|
730
|
-
clientPayload?: Record<string, unknown>;
|
|
731
736
|
/**
|
|
732
737
|
* `'confirmed'` when the booking needed no payment (a free event, or a hold
|
|
733
738
|
* that sums to zero): the seats are already booked and the tickets issued,
|
|
@@ -1013,6 +1018,13 @@ interface CheckoutLineItem {
|
|
|
1013
1018
|
sectionLabel?: string;
|
|
1014
1019
|
rowLabel?: string;
|
|
1015
1020
|
seatNumber?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* Buyer-facing category name ("Standard") and ticket type ("Adult") for
|
|
1023
|
+
* `categoryKey` / `tierId`, so an order summary need not look them up.
|
|
1024
|
+
* Absent when the chart names neither (or on an older SDK).
|
|
1025
|
+
*/
|
|
1026
|
+
categoryLabel?: string;
|
|
1027
|
+
tierLabel?: string;
|
|
1016
1028
|
}
|
|
1017
1029
|
interface CheckoutHandoff {
|
|
1018
1030
|
/** Server hold id — pass this to YOUR book call. */
|
|
@@ -5511,8 +5523,6 @@ interface SeasonCheckoutSession {
|
|
|
5511
5523
|
expiresAt: number;
|
|
5512
5524
|
/** Hosted gateway page — navigate to it. */
|
|
5513
5525
|
redirectUrl?: string;
|
|
5514
|
-
/** In-page modal gateway — open it without leaving the page. */
|
|
5515
|
-
clientPayload?: Record<string, unknown>;
|
|
5516
5526
|
}
|
|
5517
5527
|
interface SeasonCheckoutRequest {
|
|
5518
5528
|
operationId: string;
|