erp-platform/ui/src/proxy/reports/models.ts

33 lines
703 B
TypeScript
Raw Normal View History

2025-08-15 08:07:51 +00:00
export interface ReportTemplateDto {
id: string;
name: string;
description: string;
htmlContent: string;
parameters: ReportParameterDto[];
creationTime: Date;
lastModificationTime: Date;
category: string;
tags: string[];
}
export type ReportParameterType = "text" | "number" | "date" | "email" | "url";
export interface ReportParameterDto {
id: string;
name: string;
placeholder: string;
type: ReportParameterType;
defaultValue?: string;
required: boolean;
description?: string;
}
export interface GeneratedReportDto {
id: string;
templateId: string;
templateName: string;
generatedContent: string;
parameters: Record<string, string>;
generatedAt: Date;
}