Interface Absence

interface Absence {
    _id: string;
    approver?: User;
    approverId: string;
    assignedTo?: User;
    assignedToId: string;
    canApproveAbsence: boolean;
    canBeDeleted: boolean;
    canBeEdited: boolean;
    commentary: string;
    company: string;
    created: string;
    days: AbsenceDay[];
    daysCount: number;
    denyReason: string;
    doctorsNote: boolean;
    documentIds: string[];
    end: string;
    endDateTime: string;
    forwardHistory: ForwardHistory[];
    historical: false;
    isHourly: boolean;
    modified: string;
    reason?: Reason;
    reasonId: string;
    start: string;
    startDateTime: string;
    status: number;
    substituteId: string;
    userNotificationIds: string[];
}

Hierarchy

Properties

_id: string

unique identifier

approver?: User

assigned approver (only available if requested via relations)

approverId: string

id of the user who will/has approved this absence. If the creator has sufficient permissions it will be the same as assignedToId

assignedTo?: User

assigned user (only available if requested via relations)

assignedToId: string

id of the user who is assigned to this absence

canApproveAbsence: boolean
canBeDeleted: boolean
canBeEdited: boolean
commentary: string

optional comment

company: string
created: string

date the absence was created

days: AbsenceDay[]

array detailing each day inside the absence date range

daysCount: number

the number of working days this absence counts as

denyReason: string

an optional comment for a denied absence request

doctorsNote: boolean

object with boolean value to determine if a note is required for an absence and if it was submitted

documentIds: string[]
end: string

the end date and time of the absence

endDateTime: string
forwardHistory: ForwardHistory[]
historical: false
isHourly: boolean
modified: string

date the absence was updated

reason?: Reason

assigned reason (only available if requested via relations)

reasonId: string

id of the associated absence type

start: string

the start date and time of the absence

startDateTime: string
status: number

the status of the absence

substituteId: string

id of the user who will act as a substitute during this absence

userNotificationIds: string[]

Generated using TypeDoc