Alisa/web/src/types.ts
2024-07-11 21:09:14 +02:00

30 lines
542 B
TypeScript

export interface LicenseGroup {
id: string;
name: string;
licenses: License[];
}
export interface License {
name: string;
id: string;
start?: string;
end?: string;
key: string;
amount?: number;
note?: string;
group_id: string;
}
export interface CreateLicenseDto {
name: string;
start: Date | null;
end: Date | null;
key: string;
amount?: number;
group_id: string;
note?: string;
}
export type CreateGroupDto = Omit<LicenseGroup, "id" | "licenses">;
export type UpdateLicenseDto = Omit<License, "id">;