33 lines
703 B
TypeScript
33 lines
703 B
TypeScript
|
|
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;
|
||
|
|
}
|