@seatlayer/js 0.89.0 → 0.89.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -605,8 +605,15 @@ declare class ApiError extends Error {
605
605
  notice?: string;
606
606
  /** `422 booking_form_incomplete`: the fields the server refused, for inline errors. */
607
607
  fields?: BookingFormFieldError[];
608
+ /**
609
+ * The server's own statement that sending the identical request again is
610
+ * safe (`retryable: true` in the error body), for example a checkout that met
611
+ * contention. Absent when the server said nothing; never inferred here.
612
+ */
613
+ retryable?: boolean;
608
614
  constructor(status: number, message: string, code?: string, conflicts?: HoldConflict[], reason?: string, retryAfterS?: number, notice?: string, details?: {
609
615
  fields?: BookingFormFieldError[];
616
+ retryable?: boolean;
610
617
  });
611
618
  }
612
619
  interface HoldResult {
@@ -4783,6 +4790,8 @@ declare class SeatPicker implements GaPromptPicker {
4783
4790
  getCurrentHold(): HoldResult | null;
4784
4791
  /** Explicit host-driven hold restore (automatic session restore is on by default). */
4785
4792
  resumeHold(holdId: string): Promise<HoldResult | null>;
4793
+ /** Re-hold one held seat on another ticket type; the server re-prices it. */
4794
+ private changeHeldTier;
4786
4795
  /** Remove one server-held ticket while keeping the rest of the hold active. */
4787
4796
  removeHeldTicket(label: string): Promise<boolean>;
4788
4797
  bestAvailable(qty: number, categoryKey?: string, opts?: SeatPickerBestAvailableOptions): Promise<HoldResult | null>;
@@ -5429,7 +5438,17 @@ interface SeasonRenewalIntent {
5429
5438
  declare class SeasonApiError extends Error {
5430
5439
  readonly code: string;
5431
5440
  readonly status: number;
5432
- constructor(code: string, status: number);
5441
+ /** Seconds from a 503's `Retry-After`, when the server sent one. */
5442
+ readonly retryAfterS?: number;
5443
+ /** The server's `retryable` flag from the error body, when present. */
5444
+ readonly retryable?: boolean;
5445
+ /** The error body's `reason` (for example `maintenance_mode`), when present. */
5446
+ readonly reason?: string;
5447
+ constructor(code: string, status: number, details?: {
5448
+ retryAfterS?: number;
5449
+ retryable?: boolean;
5450
+ reason?: string;
5451
+ });
5433
5452
  }
5434
5453
  declare class SeasonRecoveryTimeoutError extends Error {
5435
5454
  readonly operationId: string;
package/dist/index.d.ts CHANGED
@@ -605,8 +605,15 @@ declare class ApiError extends Error {
605
605
  notice?: string;
606
606
  /** `422 booking_form_incomplete`: the fields the server refused, for inline errors. */
607
607
  fields?: BookingFormFieldError[];
608
+ /**
609
+ * The server's own statement that sending the identical request again is
610
+ * safe (`retryable: true` in the error body), for example a checkout that met
611
+ * contention. Absent when the server said nothing; never inferred here.
612
+ */
613
+ retryable?: boolean;
608
614
  constructor(status: number, message: string, code?: string, conflicts?: HoldConflict[], reason?: string, retryAfterS?: number, notice?: string, details?: {
609
615
  fields?: BookingFormFieldError[];
616
+ retryable?: boolean;
610
617
  });
611
618
  }
612
619
  interface HoldResult {
@@ -4783,6 +4790,8 @@ declare class SeatPicker implements GaPromptPicker {
4783
4790
  getCurrentHold(): HoldResult | null;
4784
4791
  /** Explicit host-driven hold restore (automatic session restore is on by default). */
4785
4792
  resumeHold(holdId: string): Promise<HoldResult | null>;
4793
+ /** Re-hold one held seat on another ticket type; the server re-prices it. */
4794
+ private changeHeldTier;
4786
4795
  /** Remove one server-held ticket while keeping the rest of the hold active. */
4787
4796
  removeHeldTicket(label: string): Promise<boolean>;
4788
4797
  bestAvailable(qty: number, categoryKey?: string, opts?: SeatPickerBestAvailableOptions): Promise<HoldResult | null>;
@@ -5429,7 +5438,17 @@ interface SeasonRenewalIntent {
5429
5438
  declare class SeasonApiError extends Error {
5430
5439
  readonly code: string;
5431
5440
  readonly status: number;
5432
- constructor(code: string, status: number);
5441
+ /** Seconds from a 503's `Retry-After`, when the server sent one. */
5442
+ readonly retryAfterS?: number;
5443
+ /** The server's `retryable` flag from the error body, when present. */
5444
+ readonly retryable?: boolean;
5445
+ /** The error body's `reason` (for example `maintenance_mode`), when present. */
5446
+ readonly reason?: string;
5447
+ constructor(code: string, status: number, details?: {
5448
+ retryAfterS?: number;
5449
+ retryable?: boolean;
5450
+ reason?: string;
5451
+ });
5433
5452
  }
5434
5453
  declare class SeasonRecoveryTimeoutError extends Error {
5435
5454
  readonly operationId: string;