Mail818 SDK - v0.2.2
    Preparing search index...

    Interface Mail818Options

    interface Mail818Options {
        apiToken: string;
        cache?: {
            enabled: boolean;
            storage: "localStorage" | "sessionStorage";
            ttl: number;
        };
        hostname?: string;
        listId: string;
        mockConfig?: ListConfig;
        offline?: {
            enabled: boolean;
            queueSubmissions: boolean;
            retryOnReconnect: boolean;
        };
        onConfigLoaded?: (config: ListConfig) => void;
        onError?: (error: Mail818Error) => void;
        onSuccess?: (response: SubmissionResponse) => void;
        onValidationError?: (errors: Record<string, string>) => void;
        testMode?: boolean;
    }
    Index

    Properties

    apiToken: string
    cache?: {
        enabled: boolean;
        storage: "localStorage" | "sessionStorage";
        ttl: number;
    }
    hostname?: string
    listId: string
    mockConfig?: ListConfig
    offline?: {
        enabled: boolean;
        queueSubmissions: boolean;
        retryOnReconnect: boolean;
    }
    onConfigLoaded?: (config: ListConfig) => void
    onError?: (error: Mail818Error) => void
    onSuccess?: (response: SubmissionResponse) => void
    onValidationError?: (errors: Record<string, string>) => void
    testMode?: boolean