67 lines
1.9 KiB
TypeScript
67 lines
1.9 KiB
TypeScript
import { employeeLanguageSchema, employeeLoginSchema } from './auth.employee.schemas';
|
|
import type { output } from 'zod';
|
|
type EmployeeLoginInput = output<typeof employeeLoginSchema>;
|
|
type EmployeeLanguageInput = output<typeof employeeLanguageSchema>;
|
|
export declare function getMe(employeeId: string): Promise<{
|
|
employee: {
|
|
id: string;
|
|
email: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
role: string;
|
|
preferredLanguage: string | null | undefined;
|
|
companyId: string;
|
|
companyName: string;
|
|
companySlug: string;
|
|
};
|
|
} | {
|
|
employee: {
|
|
id: string;
|
|
email: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
role: string;
|
|
preferredLanguage: string | null | undefined;
|
|
companyId: string;
|
|
companyName: string;
|
|
companySlug: string;
|
|
};
|
|
token: string;
|
|
}>;
|
|
export declare function login(body: EmployeeLoginInput): Promise<{
|
|
employee: {
|
|
id: string;
|
|
email: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
role: string;
|
|
preferredLanguage: string | null | undefined;
|
|
companyId: string;
|
|
companyName: string;
|
|
companySlug: string;
|
|
};
|
|
} | {
|
|
employee: {
|
|
id: string;
|
|
email: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
role: string;
|
|
preferredLanguage: string | null | undefined;
|
|
companyId: string;
|
|
companyName: string;
|
|
companySlug: string;
|
|
};
|
|
token: string;
|
|
}>;
|
|
export declare function forgotPassword(email: string): Promise<{
|
|
message: string;
|
|
}>;
|
|
export declare function updateLanguage(employeeId: string, language: EmployeeLanguageInput['language']): Promise<{
|
|
language: "en" | "fr" | "ar";
|
|
}>;
|
|
export declare function resetPassword(token: string, password: string): Promise<{
|
|
message: string;
|
|
}>;
|
|
export {};
|
|
//# sourceMappingURL=auth.employee.service.d.ts.map
|