@seatlayer/js 0.87.0 → 0.88.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 +3 -0
- package/dist/hostedCheckout-TNSXFFRL.js +41 -0
- package/dist/index.cjs +59 -20
- package/dist/index.d.cts +23 -5
- package/dist/index.d.ts +23 -5
- package/dist/index.js +56 -17
- package/package.json +2 -2
- package/dist/hostedCheckout-W7QZWSOQ.js +0 -41
package/dist/index.d.cts
CHANGED
|
@@ -516,14 +516,22 @@ declare class ApiError extends Error {
|
|
|
516
516
|
/** Present when best-available 409s ('not_enough_together' | 'sold_out'). */
|
|
517
517
|
reason?: string;
|
|
518
518
|
/**
|
|
519
|
-
* Seconds the server asked the caller to wait, off a 429's
|
|
519
|
+
* Seconds the server asked the caller to wait, off a 429's or a 503's
|
|
520
|
+
* `Retry-After`.
|
|
520
521
|
*
|
|
521
|
-
* Present ONLY on a rate-limit error, and it is the server's
|
|
522
|
-
* guess. A widget that catches this can say "try again in
|
|
523
|
-
* of rendering the blank map a swallowed 429 used to
|
|
522
|
+
* Present ONLY on a rate-limit or maintenance error, and it is the server's
|
|
523
|
+
* number — never a guess. A widget that catches this can say "try again in
|
|
524
|
+
* N minutes" instead of rendering the blank map a swallowed 429 used to
|
|
525
|
+
* produce, or the "seats were just taken" a maintenance 503 used to become.
|
|
524
526
|
*/
|
|
525
527
|
retryAfterS?: number;
|
|
526
|
-
|
|
528
|
+
/**
|
|
529
|
+
* Operator-written buyer copy that arrived with a maintenance 503 (the API's
|
|
530
|
+
* `notice`). Shown verbatim when present; absent, the widget uses its own
|
|
531
|
+
* localised wording built from `retryAfterS`.
|
|
532
|
+
*/
|
|
533
|
+
notice?: string;
|
|
534
|
+
constructor(status: number, message: string, code?: string, conflicts?: HoldConflict[], reason?: string, retryAfterS?: number, notice?: string);
|
|
527
535
|
}
|
|
528
536
|
interface HoldResult {
|
|
529
537
|
holdId: string;
|
|
@@ -1192,6 +1200,16 @@ interface SeatPickerOptions {
|
|
|
1192
1200
|
* owns hold persistence and supplies initialHoldId itself.
|
|
1193
1201
|
*/
|
|
1194
1202
|
restoreHold?: boolean;
|
|
1203
|
+
/**
|
|
1204
|
+
* What happens to an active hold when the picker is closed or destroyed
|
|
1205
|
+
* before checkout. `'release'` (default) frees the seats on the server at
|
|
1206
|
+
* once. `'keep'` leaves the hold running for its remaining time and, with
|
|
1207
|
+
* `restoreHold`, resumes it the next time this event's picker mounts, so a
|
|
1208
|
+
* buyer who closes the map by accident finds their seats still held. The
|
|
1209
|
+
* buyer can still give seats back with the remove control on each ticket,
|
|
1210
|
+
* and the hold expires on its own timer.
|
|
1211
|
+
*/
|
|
1212
|
+
holdOnClose?: 'release' | 'keep';
|
|
1195
1213
|
/**
|
|
1196
1214
|
* Render the real chart and live seat statuses without allowing selection,
|
|
1197
1215
|
* holds or checkout. This is for venue previews and pre-sale Website pages;
|
package/dist/index.d.ts
CHANGED
|
@@ -516,14 +516,22 @@ declare class ApiError extends Error {
|
|
|
516
516
|
/** Present when best-available 409s ('not_enough_together' | 'sold_out'). */
|
|
517
517
|
reason?: string;
|
|
518
518
|
/**
|
|
519
|
-
* Seconds the server asked the caller to wait, off a 429's
|
|
519
|
+
* Seconds the server asked the caller to wait, off a 429's or a 503's
|
|
520
|
+
* `Retry-After`.
|
|
520
521
|
*
|
|
521
|
-
* Present ONLY on a rate-limit error, and it is the server's
|
|
522
|
-
* guess. A widget that catches this can say "try again in
|
|
523
|
-
* of rendering the blank map a swallowed 429 used to
|
|
522
|
+
* Present ONLY on a rate-limit or maintenance error, and it is the server's
|
|
523
|
+
* number — never a guess. A widget that catches this can say "try again in
|
|
524
|
+
* N minutes" instead of rendering the blank map a swallowed 429 used to
|
|
525
|
+
* produce, or the "seats were just taken" a maintenance 503 used to become.
|
|
524
526
|
*/
|
|
525
527
|
retryAfterS?: number;
|
|
526
|
-
|
|
528
|
+
/**
|
|
529
|
+
* Operator-written buyer copy that arrived with a maintenance 503 (the API's
|
|
530
|
+
* `notice`). Shown verbatim when present; absent, the widget uses its own
|
|
531
|
+
* localised wording built from `retryAfterS`.
|
|
532
|
+
*/
|
|
533
|
+
notice?: string;
|
|
534
|
+
constructor(status: number, message: string, code?: string, conflicts?: HoldConflict[], reason?: string, retryAfterS?: number, notice?: string);
|
|
527
535
|
}
|
|
528
536
|
interface HoldResult {
|
|
529
537
|
holdId: string;
|
|
@@ -1192,6 +1200,16 @@ interface SeatPickerOptions {
|
|
|
1192
1200
|
* owns hold persistence and supplies initialHoldId itself.
|
|
1193
1201
|
*/
|
|
1194
1202
|
restoreHold?: boolean;
|
|
1203
|
+
/**
|
|
1204
|
+
* What happens to an active hold when the picker is closed or destroyed
|
|
1205
|
+
* before checkout. `'release'` (default) frees the seats on the server at
|
|
1206
|
+
* once. `'keep'` leaves the hold running for its remaining time and, with
|
|
1207
|
+
* `restoreHold`, resumes it the next time this event's picker mounts, so a
|
|
1208
|
+
* buyer who closes the map by accident finds their seats still held. The
|
|
1209
|
+
* buyer can still give seats back with the remove control on each ticket,
|
|
1210
|
+
* and the hold expires on its own timer.
|
|
1211
|
+
*/
|
|
1212
|
+
holdOnClose?: 'release' | 'keep';
|
|
1195
1213
|
/**
|
|
1196
1214
|
* Render the real chart and live seat statuses without allowing selection,
|
|
1197
1215
|
* holds or checkout. This is for venue previews and pre-sale Website pages;
|