ente_nazionale_frontend/lib/models.ts
Linas 82c6d1e2cb Show and make editable the NAS folder number
Prefixes the association name with "#<folder>" in the list table and
the detail page title, and adds an editable field for it in the edit
dialog - needed since some associations are missing it (NAS folders
that were never numbered), which is what silently blanks their
ratification code on the attestato.

Verified live: table and detail title show "#2 ENCAP ODV", the edit
field reflects the current value, and saving a new value updates both
immediately.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017hQcuUQFue2bFvrYw2UQhK
2026-08-24 19:06:04 +03:00

38 lines
762 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;
nasFolderNumber?: number;
}
export interface LoginResponse {
token: string;
user: User;
association: Association;
}