lib/ was never committed despite every page importing from it - a fresh clone couldn't build. public/logo-encap.jpg was likewise missing even though app/login/page.tsx already references it. Also gitignore .idea/, which shouldn't be tracked. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017hQcuUQFue2bFvrYw2UQhK
37 lines
734 B
TypeScript
37 lines
734 B
TypeScript
export interface Associate {
|
|
name: string;
|
|
surname: string;
|
|
birthDate: string;
|
|
address: string;
|
|
fiscalCode: string;
|
|
italianCitizen: boolean;
|
|
role: 'PRESIDENT' | 'VICE_PRESIDENT' | 'SECRETARY' | 'ASSOCIATE';
|
|
residencePermitNumber?: string;
|
|
}
|
|
|
|
export interface User {
|
|
id?: string;
|
|
email: string;
|
|
password?: string;
|
|
role: 'CLIENT' | 'MANAGER' | 'ADMIN';
|
|
}
|
|
|
|
export interface Association {
|
|
id?: string;
|
|
runtsId?: string;
|
|
name: string;
|
|
address: string;
|
|
created?: string;
|
|
isShown?: boolean;
|
|
vatNumber?: string;
|
|
translit?: string;
|
|
associates?: Associate[];
|
|
users?: User[];
|
|
ratificationCode?: string;
|
|
}
|
|
|
|
export interface LoginResponse {
|
|
token: string;
|
|
user: User;
|
|
association: Association;
|
|
} |