Files
alrahma_sunday_school_api/apps/api/dist/modules/auth/auth.presenter.d.ts
T
2026-06-11 03:22:12 -04:00

98 lines
2.3 KiB
TypeScript

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