@insure-os/client 0.0.51 → 0.0.53

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.ts CHANGED
@@ -685,6 +685,10 @@ type QuoteMountConfig = BaseMountConfig & {
685
685
  products?: string[];
686
686
  /** Optional dealer organisation ID to attribute quotes to a dealer */
687
687
  dealerOrganisationId?: string;
688
+ /** Promo code to pre-fill (takes precedence over localStorage pending codes) */
689
+ promoCode?: string;
690
+ /** Skip reading pending promo codes from localStorage (use when embedded in portal) */
691
+ skipPendingPromoCode?: boolean;
688
692
  };
689
693
  type PaymentLinkMountConfig = BaseMountConfig & {
690
694
  mode: 'payment';
@@ -706,6 +710,7 @@ type QuoteIntentState = {
706
710
  status: string;
707
711
  reference?: string | null;
708
712
  product_id?: string;
713
+ product_name?: string;
709
714
  form_definition?: FormDefinition;
710
715
  form_data?: FormData;
711
716
  organisation?: {
@@ -759,6 +764,8 @@ declare class InsureOSWrapperClient {
759
764
  declare class InsureOSClient {
760
765
  private sentryInitialized;
761
766
  private analyticsManager;
767
+ /** In-memory backup of pending promo codes, keyed by orgId. Survives re-initialization within the same page load. */
768
+ private pendingPromoCodes;
762
769
  constructor();
763
770
  /**
764
771
  * Initialize Sentry on first mount (only once)