54 lines
895 B
TypeScript
54 lines
895 B
TypeScript
// model.ts
|
|
export interface Cliente {
|
|
nombre: string;
|
|
}
|
|
|
|
export interface Aula {
|
|
nombre: string;
|
|
clientes: Cliente[];
|
|
}
|
|
|
|
export interface UnidadOrganizativa {
|
|
id: string;
|
|
name: string;
|
|
uuid: string;
|
|
type: string;
|
|
parent: UnidadOrganizativa[];
|
|
}
|
|
|
|
export interface OrganizationalUnit {
|
|
"@id": string;
|
|
"@type": string;
|
|
id: number;
|
|
name: string;
|
|
type: string;
|
|
uuid: string;
|
|
}
|
|
|
|
export interface Client {
|
|
"@id": string;
|
|
"@type": string;
|
|
id: number;
|
|
name: string;
|
|
type: string;
|
|
serialNumber: string;
|
|
netiface: string;
|
|
organizationalUnit: OrganizationalUnit;
|
|
partitions: any[];
|
|
createdAt: string;
|
|
createdBy: string;
|
|
uuid: string;
|
|
}
|
|
|
|
export interface ClientCollection {
|
|
"@context": string;
|
|
"@id": string;
|
|
"@type": string;
|
|
"hydra:totalItems": number;
|
|
"hydra:member": Client[];
|
|
"hydra:view": {
|
|
"@id": string;
|
|
"@type": string;
|
|
};
|
|
}
|