Helper to store Job prefill data locally if it is not currently in the local store. Pass in an array of Jobs.
const jobs = [...]
await jobService.ensurePrefillFormDataExists(jobs)
Get Jobs for the current user. Jobs that are in the pending queue will be
filtered out and Jobs with drafts will include the draft
property.
const formsAppId = 1
const label = 'Applications'
const jobs = await jobService.getJobs(formsAppId, label)
Job Service
Helper functions for job handling