ETASCOM CRM V3 - Documentation API
    Preparing search index...

    Interface Leave

    interface Leave {
        id: string;
        employeeId: string;
        type:
            | "EMERGENCY"
            | "UNPAID"
            | "PERSONAL"
            | "ANNUAL"
            | "SICK"
            | "MATERNITY"
            | "PATERNITY";
        startDate: string;
        endDate: string;
        days: number;
        reason?: string;
        status: "REJECTED"
        | "APPROVED"
        | "CANCELLED"
        | "PENDING";
        approvedBy?: string;
        approvedAt?: string;
        rejectedAt?: string;
        rejectionReason?: string;
        createdAt: string;
        updatedAt: string;
        employee?: {
            id: string;
            firstName: string;
            lastName: string;
            employeeNumber: string;
            user?: { email: string };
        };
        approver?: { id: string; name: string; email: string };
    }
    Index

    Properties

    id: string
    employeeId: string
    type:
        | "EMERGENCY"
        | "UNPAID"
        | "PERSONAL"
        | "ANNUAL"
        | "SICK"
        | "MATERNITY"
        | "PATERNITY"
    startDate: string
    endDate: string
    days: number
    reason?: string
    status: "REJECTED" | "APPROVED" | "CANCELLED" | "PENDING"
    approvedBy?: string
    approvedAt?: string
    rejectedAt?: string
    rejectionReason?: string
    createdAt: string
    updatedAt: string
    employee?: {
        id: string;
        firstName: string;
        lastName: string;
        employeeNumber: string;
        user?: { email: string };
    }
    approver?: { id: string; name: string; email: string }