UNPKG

@canes/ecb-tas-feature

Version:
27 lines (26 loc) 929 B
export interface IEmployee { userNumber: string; isMale: boolean; joiningDate: string; isOfficial: boolean; } export declare type LeaveRequestQuota = { paidQuota: number; paidQuotaLeaveOver: number; earlyOrLateQuota: number; }; declare function getAll(): Promise<IEmployee[]>; declare function getByUserNumber(userNumber: string): Promise<IEmployee>; declare function getQuotaByDate(date: string): Promise<LeaveRequestQuota>; declare function create(model: IEmployee): Promise<unknown>; declare function update(model: IEmployee): Promise<unknown>; declare function remove(userNumber: string): Promise<unknown>; declare const employeeService: { getAll: typeof getAll; getByUserNumber: typeof getByUserNumber; getQuotaByDate: typeof getQuotaByDate; create: typeof create; update: typeof update; remove: typeof remove; }; export default employeeService;