Async
Async
this function is asynchronous Gets the local version of the Vaccine List. This version number is obtained from the vaccine list JSON endpoint and store in async storage
If the version number is not present in storage a -1 is returned to ensure that it is always less than the new version
A promise containing the version number. It is type casted as AsyncStorage can only store strings
Async
this function is asynchronous Stores the remote vaccine list locally, returns a promise
a list of VaccineInfoJSON objects to insert into the vaccine data table. This will also update and existing row if a row with the productId already exists.
a void promise
Async
this function is asynchronous Stores the version of the Vaccine List. This version number is obtained from the vaccine list JSON endpoint
a string representing the version number to set
Async
this function is asynchronous Takes in a product id and potentially an english and french filename. Filenames that exist are updated in the row linked to the product Id
the id of the row to update, a vaccine entry This must be a positive number which already exists in the table.
Optional
englishFilename: stringthe new name of the remote vaccine pdf in english This must be a string.
Optional
frenchFilename: stringthe new name of the remote vaccine pdf in french This must be a string.
A void promise.
Queries the database for vaccine sheets
The language to query for, defaults to "english" if no value is provided
Optional
input: stringThe value to search for.
Optional
searchColumn: stringOptional
order: {The sorting order for the results
A list of responses from the
this function is asynchronous