Sask Vaccine Guide Code Docs
    Preparing search index...

    Implements

    Index

    Constructors

    Methods

    • Takes in an input string to search by and filter fields

      Parameters

      • Optionalinput: string

        Must be a string, if it does not exist then will get all rows

      • Optionalfield: string

        Does not need to be present, currently a string, should be a catagory in the future

      • language: "english" | "french" = "english"

      Returns Promise<VaccineSheet[]>

      a list of vaccine sheets to be displayed

    • Gets the remote vaccine list, updates the local version and local list

      Returns Promise<void>

      The vaccine datatable must exist.

      There must be internet connectivity.

      This modifies the vaccine datatable, updating each altered row.

    • Checks the remote vaccine list with a call to a local private functio. PDFs are also checked to ensure they are up to date. Depending on these checks all are updated

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

      | true if the update was successful | false if the update was unsuccesful

      This requires internet connectivity

      The remote vaccine list must exist

    • Checks if the local vaccine list is up to date with the remote one.

      Returns Promise<boolean>

      A promise containing a boolean value. True if the list is up to date, false otherwise

      There must be interet connectivity

      Remote version should never be less than the local version