archetecture security fix
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
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
|
||||
Reference in New Issue
Block a user