ente_nazionale_frontend/lib/models.ts
Linas cb0c8dc140 Add missing lib/ (API client, auth, models) and logo asset
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
2026-08-24 17:20:22 +03:00

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;
}