Files
turnosxpress/txclient/src/Models/SchedulesDisabled.ts
T
2026-07-16 20:48:43 -03:00

91 lines
1.8 KiB
TypeScript

export type FindSchedulesDisabledParams = {
_id?: string;
companyId: string;
employeeId?: string;
startDate?: Date;
endDate?: Date;
sessionUser: string;
};
export type CheckSchedulesDisabledParams = {
companyId: string;
employeeId?: string;
dateDay: Date;
};
export type PaginateSchedulesDisabledParams = FindSchedulesDisabledParams & {
page: number;
limit: number;
};
export type PaginateSchedulesDisabledResults = {
data: ISchedulesDisabled[];
page: number;
pages: number;
};
export type CreateSchedulesDisabledParams = {
companyId: string;
employeeId: string;
startDate: Date;
endDate: Date;
sessionUser: string;
};
export type DeleteSchedulesDisabledParams = {
id: string;
companyId: string;
sessionUser: string;
};
export type EmployeeItem = {
employeeId: string;
};
export type DisableScheduleParams = {
companyId: string;
employees: EmployeeItem[];
startDate: Date;
endDate: Date;
sessionUser: string;
};
export type DeleteSchedulesDisabledByCompanyParams = {
companyId: string;
};
export type DeleteSchedulesDisabledByEmployeeParams = {
employeeId: string;
};
export interface ISchedulesDisabled {
id?: string;
_id: string;
companyId: string;
employeeId: string;
startDate: Date;
endDate: Date;
}
export interface SchedulesDisabledView {
id: string;
employeeId: string;
employeeFullName: string;
employeeEmail: string;
employeeAvatar: string;
employeeUserId: string;
startDate: Date;
endDate: Date;
enabled: boolean;
}
export interface SchedulesDisabledByCollaboratorView {
id: string;
employeeId: string;
employeeFullName: string;
employeeEmail: string;
employeeAvatar: string;
employeeUserId: string;
disabledItems: ISchedulesDisabled[];
}