recurence added

This commit is contained in:
Eudes Inácio
2024-06-10 09:55:23 +01:00
parent e0a7323bb0
commit c28d17fa64
11 changed files with 322 additions and 67 deletions
@@ -37,6 +37,16 @@ const OrganizerSchema = z.object({
userPhoto: z.string(),
});
const EventRecurrenceSchema = z.object({
Type: z.number(),
Day: null,
DayOfWeek: null,
Month: null,
LastOccurrence: null,
frequency: z.number(),
until: z.string()
});
export const EventOutputDTOSchema = z.object({
id: z.string(),
owner: OwnerSchema,
@@ -47,12 +57,12 @@ export const EventOutputDTOSchema = z.object({
startDate: z.string(),
endDate: z.string(),
type: z.string(),
category: z.enum(['Oficial','Pessoal']),
category: z.enum(['Oficial', 'Pessoal']),
attendees: z.array(AttendeeSchema),
isRecurring: z.boolean(),
eventRecurrence: z.null(),
eventRecurrence: EventRecurrenceSchema,
hasAttachments: z.boolean(),
attachments:z.array(AttachmentInputDTOSchema),
attachments: z.array(AttachmentInputDTOSchema),
comments: z.array(CommentSchema),
isPrivate: z.boolean(),
isAllDayEvent: z.boolean(),