archetecture security fix

This commit is contained in:
root
2026-06-11 03:22:12 -04:00
parent 6def9993da
commit 9483750161
3126 changed files with 177194 additions and 37211 deletions
+67
View File
@@ -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