UNPKG

@canes/ecb-tas-feature

Version:
80 lines (79 loc) 3.23 kB
export declare const PAID_URI = "paid"; export declare const COMPENSATORY_URI = "compensatory"; export declare const EVENT_URI = "event"; export declare const NON_PAID_URI = "non-paid"; export declare const MATERNITY_URI = "maternity"; export declare const LATE_URI = "late"; export declare const EARLY_URI = "early"; export declare const TRAVEL_URI = "travel"; export declare const SICK_URI = "sick"; export declare const FORGET_URI = "forget"; export declare type LeaveRequestUri = "select" | "paid" | "compensatory" | "event" | "non-paid" | "maternity" | "late" | "early" | "travel" | "sick" | "forget"; export declare const NEW = "\u0110\u00E3 g\u1EEDi y\u00EAu c\u1EA7u"; export declare type LeaveRequestType = { uri: LeaveRequestUri; description: string; }; export declare const leaveRequestStatusDescriptions: string[]; export declare const leaveRequestTypes: LeaveRequestType[]; export interface IRequest { id: number; userNumber: string; leaveRequestType: number; startDate: Date; endDate: Date; startTime: string; endTime: string; createdTime: Date; responseTime: Date; status: number; checkerUserNumber: string; approverUserNumber: string; leaveTime: number; startTimeOrigin: string; endTimeOrigin: string; note: string; checkStatus: number; approvalStatus: number; } export declare type CreateRequestModelCreate = { date: string; startTime: string; endTime: string; checkerUserNumber?: string; approverUserNumber: string; note: string; }; declare function getAll(): Promise<IRequest[]>; declare function getPeriod(year: number, month: number): Promise<IRequest[]>; declare function getByChecker(): Promise<IRequest[]>; declare function getByApprover(): Promise<IRequest[]>; declare function getByCheckerOrApprover(): Promise<IRequest[]>; declare function getPeriodByCheckerOrApprover(year: number, month: number): Promise<IRequest[]>; declare function create(model: CreateRequestModelCreate, requestType: LeaveRequestUri): Promise<unknown>; declare function check(id: number): Promise<unknown>; declare function approve(id: number): Promise<unknown>; declare function reject(id: number): Promise<unknown>; declare function remove(id: number): Promise<unknown>; declare function checkAccept(id: number): Promise<unknown>; declare function checkReject(id: number): Promise<unknown>; declare function approvalAccept(id: number): Promise<unknown>; declare function approvalReject(id: number): Promise<unknown>; declare const requestService: { getAll: typeof getAll; getByChecker: typeof getByChecker; getByApprover: typeof getByApprover; create: typeof create; check: typeof check; approve: typeof approve; reject: typeof reject; remove: typeof remove; getByCheckerOrApprover: typeof getByCheckerOrApprover; checkAccept: typeof checkAccept; checkReject: typeof checkReject; approvalAccept: typeof approvalAccept; approvalReject: typeof approvalReject; getPeriod: typeof getPeriod; getPeriodByCheckerOrApprover: typeof getPeriodByCheckerOrApprover; }; export default requestService;