archetecture security fix
This commit is contained in:
+98
@@ -0,0 +1,98 @@
|
||||
type EmployeeWithCompany = {
|
||||
id: string;
|
||||
email: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
role: string;
|
||||
preferredLanguage?: string | null;
|
||||
companyId: string;
|
||||
company: {
|
||||
name: string;
|
||||
slug: string;
|
||||
};
|
||||
};
|
||||
type CompanySignupResult = {
|
||||
company: {
|
||||
id: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
};
|
||||
trialEndAt: Date;
|
||||
emailDelivery?: unknown;
|
||||
};
|
||||
type RenterProfile = {
|
||||
id: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
preferredLocale: string | null;
|
||||
preferredCurrency: string | null;
|
||||
emailVerified: boolean;
|
||||
savedCompanies: Array<{
|
||||
companyId: string;
|
||||
}>;
|
||||
};
|
||||
type SavedCompany = {
|
||||
id: string;
|
||||
brand: {
|
||||
displayName: string | null;
|
||||
subdomain: string | null;
|
||||
logoUrl: string | null;
|
||||
} | null;
|
||||
};
|
||||
export declare function presentEmployeeSession(employee: EmployeeWithCompany, token?: string): {
|
||||
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 presentCompanySignup(result: CompanySignupResult): {
|
||||
companyId: string;
|
||||
companyName: string;
|
||||
slug: string;
|
||||
invitationId: null;
|
||||
trialEndsAt: string;
|
||||
nextStep: string;
|
||||
emailDelivery: {};
|
||||
};
|
||||
export declare function presentRenterProfile(renter: RenterProfile, companies: SavedCompany[]): {
|
||||
savedCompanies: {
|
||||
id: string;
|
||||
brand: {
|
||||
displayName: string | null;
|
||||
subdomain: string | null;
|
||||
logoUrl: string | null;
|
||||
} | null;
|
||||
}[];
|
||||
id: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
preferredLocale: string | null;
|
||||
preferredCurrency: string | null;
|
||||
emailVerified: boolean;
|
||||
};
|
||||
export {};
|
||||
//# sourceMappingURL=auth.presenter.d.ts.map
|
||||
Reference in New Issue
Block a user