improve calendar event creation
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
// dvbooking-cli/src/templates/angular/model.ts.tpl
|
||||
|
||||
|
||||
export interface RecurrenceRuleDto {
|
||||
frequency: 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY';
|
||||
|
||||
interval: number;
|
||||
|
||||
byDay?: string; // e.g., 'MO,TU,WE,TH,FR'
|
||||
|
||||
endDate?: Date;
|
||||
|
||||
count?: number;
|
||||
}
|
||||
|
||||
|
||||
// Generated by the CLI
|
||||
export interface EventFormDTO {
|
||||
id?: number;
|
||||
@@ -9,4 +23,7 @@ export interface EventFormDTO {
|
||||
start_time?: Date;
|
||||
end_time?: Date;
|
||||
is_recurring: boolean;
|
||||
recurrenceRule?: RecurrenceRuleDto;
|
||||
}
|
||||
|
||||
export interface UpdateEventFormDTO extends Partial<EventFormDTO>{}
|
||||
|
||||
Reference in New Issue
Block a user