@sheerid/jslib
    Preparing search index...

    Interface VerificationServiceFunctions<T>

    interface VerificationServiceFunctions<T extends ViewModel = ViewModel> {
        dispatch?: Dispatch;
        fetchExistingVerificationRequest: (
            programId: string,
            verificationId: string,
            previousVerificationResponse?: VerificationResponse,
            previousViewModel?: T,
            needsLoading?: boolean,
        ) => Promise<object>;
        fetchNewVerificationRequest: (
            programId: string,
            segment: Segment,
            previousViewModel: T,
            trackingId?: string,
            forceNewVerificationRequest?: boolean,
        ) => Promise<object>;
        resetState: () => void;
        submitStep: (
            stepName: VerificationStep,
            viewModel: T,
            previousResponse: VerificationResponse,
        ) => Promise<object>;
        updateFieldValidationErrors: (
            fieldValidationErrors: FieldValidationErrors,
        ) => void;
        updateLocale: (
            locale:
                | "es"
                | "id"
                | "is"
                | "no"
                | "ar"
                | "bg"
                | "bn-IN"
                | "cs"
                | "da"
                | "de"
                | "el"
                | "en-GB"
                | "en-US"
                | "es-ES"
                | "fi"
                | "fr-CA"
                | "fr"
                | "ga"
                | "hi-IN"
                | "hr"
                | "hu"
                | "it"
                | "iw"
                | "ja"
                | "ko"
                | "lo"
                | "lt"
                | "ms"
                | "nl"
                | "nl-BE"
                | "pl"
                | "pt-BR"
                | "pt"
                | "ro"
                | "ru"
                | "sk"
                | "sl"
                | "sr"
                | "sv"
                | "sw"
                | "uk"
                | "ur"
                | "vi"
                | "th"
                | "tr"
                | "zh-HK"
                | "zh"
                | "zu",
            segment: Segment,
        ) => void;
        updateProgramTheme: (programTheme: ProgramTheme) => void;
        updateViewModel: <
            Opts extends
                Partial<ViewModelUpdateOptions> = {
                externalUserIdCheck: false;
                metadataCheck: false;
                partial: false;
            },
        >(
            viewModel: Opts["partial"] extends true ? Partial<T> : T,
            options?: Opts,
        ) => void;
    }

    Type Parameters

    Index

    Properties

    dispatch?: Dispatch
    fetchExistingVerificationRequest: (
        programId: string,
        verificationId: string,
        previousVerificationResponse?: VerificationResponse,
        previousViewModel?: T,
        needsLoading?: boolean,
    ) => Promise<object>
    fetchNewVerificationRequest: (
        programId: string,
        segment: Segment,
        previousViewModel: T,
        trackingId?: string,
        forceNewVerificationRequest?: boolean,
    ) => Promise<object>
    resetState: () => void
    submitStep: (
        stepName: VerificationStep,
        viewModel: T,
        previousResponse: VerificationResponse,
    ) => Promise<object>
    updateFieldValidationErrors: (
        fieldValidationErrors: FieldValidationErrors,
    ) => void
    updateLocale: (
        locale:
            | "es"
            | "id"
            | "is"
            | "no"
            | "ar"
            | "bg"
            | "bn-IN"
            | "cs"
            | "da"
            | "de"
            | "el"
            | "en-GB"
            | "en-US"
            | "es-ES"
            | "fi"
            | "fr-CA"
            | "fr"
            | "ga"
            | "hi-IN"
            | "hr"
            | "hu"
            | "it"
            | "iw"
            | "ja"
            | "ko"
            | "lo"
            | "lt"
            | "ms"
            | "nl"
            | "nl-BE"
            | "pl"
            | "pt-BR"
            | "pt"
            | "ro"
            | "ru"
            | "sk"
            | "sl"
            | "sr"
            | "sv"
            | "sw"
            | "uk"
            | "ur"
            | "vi"
            | "th"
            | "tr"
            | "zh-HK"
            | "zh"
            | "zu",
        segment: Segment,
    ) => void
    updateProgramTheme: (programTheme: ProgramTheme) => void
    updateViewModel: <
        Opts extends
            Partial<ViewModelUpdateOptions> = {
            externalUserIdCheck: false;
            metadataCheck: false;
            partial: false;
        },
    >(
        viewModel: Opts["partial"] extends true ? Partial<T> : T,
        options?: Opts,
    ) => void