Sask Vaccine Guide Code Docs
    Preparing search index...

    Interface iVaccineDataController

    interface iVaccineDataController {
        searchVaccines(input?: string, field?: string): Promise<VaccineSheet[]>;
        updateVaccines(): Promise<
            { failed: number; success: boolean; updated: number },
        >;
    }

    Implemented by

    Index

    Methods

    • Search for vaccine sheets that are stored on device.

      Parameters

      • Optionalinput: string

        The value to search for.

      • Optionalfield: string

        The field to search in, might be removed might be updated to reflect multiple options

      Returns Promise<VaccineSheet[]>

      A list of vaccine sheets filtered by the input

    • Makes a request to update the vaccine PDFs

      Returns Promise<{ failed: number; success: boolean; updated: number }>

      a promise containing true if the update was sucessfull, and false if there was an error