All files / src/app/core/model job.interface.ts

100% Statements 16/16
100% Branches 4/4
100% Functions 2/2
100% Lines 14/14

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45                                                        10x 10x 10x 10x 10x 10x 10x 10x 10x 10x     10x 10x 10x 10x  
import { Activity } from "./activity.interface"
import { Attachment } from "./attachment.interface"
 
export interface JobRating {
    value: number;
}
 
export interface Job {
    id: string,
    url: string,
    status: JobStatus,
    title: string,
    company: string,
    description: string,
    profile: string,
    comment: string,
    salary: string,
    rating: JobRating,
    createdAt: string
    updatedAt: string,
    statusUpdatedAt: string,
    activities: Activity[],
    attachments: Attachment[],
    // for now it remains optional because 
    // the backend doesn't ensure this info is always provided
    followUpLate?: boolean
}
 
export enum JobStatus {
    CREATED = "CREATED",
    PENDING = "PENDING",
    RELAUNCHED = "RELAUNCHED",
    APPLICANT_REFUSED = "APPLICANT_REFUSED",
    COMPANY_REFUSED = "COMPANY_REFUSED",
    EXPIRED = "EXPIRED",
    CANCELLED = "CANCELLED",
    ACCEPTED = "ACCEPTED",
    HIRED = "HIRED"
}
 
export enum JobStatusMeta { 
    ACTIVE = "ACTIVE",
    INACTIVE = "INACTIVE",
    LATE = "LATE"
}