Documentation
    Preparing search index...

    Function getEncodedPortalUrl

    • Returns the given (or a default) Portal URL, optionally encoded with PrefillData or ThemeOverrides.

      Parameters

      • portalUrl: string = ...
      • OptionalprefillData: {
            lead?: {
                classCodeId?: string;
                email?: string;
                productIds?: string[];
                stateCodes?: string[];
            };
            responses?: {
                exposures?: {
                    exposureName: string;
                    fieldValues: Record<string, string | null>;
                }[];
                questions?: { [key: string]: string
                | null
                | undefined };
            };
        }
      • OptionalthemeOverrides: {
            borderRadiusPx?: number;
            brand?: {
                faviconUrl?: string;
                logoUrls?: { darkBg?: string; lightBg?: string };
                name?: string;
            };
            primaryColor?: string;
            secondaryColor?: string;
            useDarkMode?: boolean;
        }
      • OptionalleadPageContent: {
            heroSection?: {
                description?: string;
                imageUrl?: string;
                title?: string;
            };
            valuePropSections?: ValuePropSection[];
        }

      Returns string | null

      null if invalid URL.