mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
recurence added
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user