import { IndexedDb } from '../db'; import { EMITTER_TYPE, QUERY_RESULT, QUERY_RESULTS, QUERY_TYPE, Repository } from './index'; import { Logger, SettingsWorkingDayEntity, StaffEntity } from '../index'; import { AuthenticationService } from "../service/authenticationService"; import { PubSubService } from "type-pubsub"; interface Args { account: string; companyId: string; staffId?: string; } export declare class StaffRepository extends Repository { private staffDb; private staffService; constructor(authenticationService: AuthenticationService, indexedDb: IndexedDb, baseURL: string, logger?: Logger); dispose(): void; protected onCascadeDelete(data: any, message: EMITTER_TYPE, channel: PubSubService, handler: any): Promise; getAllStaffs(bearer: string, account: string, companyId: string, mode?: QUERY_TYPE): Promise>; getStaff(bearer: string, account: string, companyId: string, staffId: string, mode?: QUERY_TYPE): Promise>; createStaff(bearer: string, account: string, companyId: string, staff: StaffEntity): Promise; updateStaff(bearer: string, account: string, companyId: string, staffId: string, staff: StaffEntity): Promise; patchAllStaff(bearer: string, account: string, companyId: string, workingHours?: SettingsWorkingDayEntity[], vacations?: { startDate?: Date; endDate?: Date; }[], staffIds?: string[]): Promise>; deleteStaff(bearer: string, account: string, companyId: string, staffId: string): Promise; protected remoteList(bearer: string, args: Args): Promise; protected remoteGet(bearer: string, args: Args): Promise; protected remoteCreate(bearer: string, args: Args, item: StaffEntity): Promise; protected remoteUpdate(bearer: string, args: Args, item: StaffEntity): Promise; protected remoteDelete(bearer: string, args: Args): Promise; protected localList(args: Args): Promise; protected localGet(args: Args): Promise; protected localBulkSave(args: Args, staffs: StaffEntity[]): Promise; protected localDelete(args: Args): Promise; protected localBulkDelete(items: StaffEntity[]): Promise; private checkNullable; } export {};