job-hoarder
Version:
Job board aggregator to pull in standardized job postings from company job pages
42 lines (41 loc) • 1.12 kB
TypeScript
declare type JazzAPIParams = {
companyId?: string;
apiKey?: string;
status?: string;
};
export default class JazzAPI {
private parser;
private status;
private apiKey;
constructor({ companyId, apiKey, status }?: JazzAPIParams);
private queryAll;
/**
* Gets jobs from job board
* @param {string} status Status to filter to (optional)
* @returns {array} List of jobs
*/
getJobs({ status }?: {
status?: string | undefined;
}): Promise<Job[]>;
/**
* Gets job details from job board
* @param {string} id Id of job to retrieve
* @returns {object} Job assigned to Id
*/
getJob(id: string): Promise<Job>;
/**
* Gets job applicants from job board
* @param {string} jobId Id of job to retrieve applications from
* @returns {array} Applicants to the job
*/
getApplications(jobId: string): Promise<{
id: string;
job_id: string;
job_title: string;
first_name: string;
last_name: string;
prospect_phone: string;
apply_date: string;
}[]>;
}
export {};