Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace jobService

Helper functions for job handling

import { jobService } from '@oneblink/apps'

Index

Functions

  • ensurePrefillFormDataExists(jobs: FormsAppJob[]): Promise<void>
  • Helper to store Job prefill data locally if it is not currently in the local store. Pass in an array of Jobs.

    Example

    const jobs = [...]
    await jobService.ensurePrefillFormDataExists(jobs)

    Parameters

    Returns Promise<void>

  • getJobs(formsAppId: number, jobsLabel: string): Promise<FormsAppJob[]>
  • 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.

    Example

    const formsAppId = 1
    const label = 'Applications'
    const jobs = await jobService.getJobs(formsAppId, label)

    Parameters

    • formsAppId: number
    • jobsLabel: string

    Returns Promise<FormsAppJob[]>