UNPKG

job-hoarder

Version:

Job board aggregator to pull in standardized job postings from company job pages

40 lines (39 loc) 1.23 kB
declare type IndeedParams = { host: string; query?: string; city?: string; radius?: string; level?: string; maxAge?: string; sort?: string; jobType?: string; excludeSponsored?: boolean; excludeAgencies?: boolean; includeDescription?: boolean; limit?: number; start?: number; }; export default class Indeed implements JobClient { private params; private parser; constructor({ host, query, city, radius, level, maxAge, sort, jobType, excludeSponsored, excludeAgencies, includeDescription, limit, start, }: IndeedParams); private buildUrl; private buildDescriptionsUrl; /** * Gets jobs from job board * @param {boolean} enrich Enriches job listing with details (optional) Default is false * @returns {array} List of jobs */ getJobs({ start: _start, limit: _limit, includeDescription, }?: { start?: number | undefined; limit?: number | undefined; includeDescription?: boolean | 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>; } export {};