merge made with peter branch

This commit is contained in:
Eudes Inácio
2024-06-18 12:26:54 +01:00
33 changed files with 438 additions and 217 deletions
@@ -81,6 +81,7 @@
import { EEventType } from "src/app/services/Repositorys/Agenda/model/enums";
import { z } from "zod";
const ParticipantSchema = z.object({
@@ -106,7 +107,7 @@ const WorkflowInstanceDataFieldsSchema = z.object({
Status: z.string(),
TimeZone: z.string().nullable(),
Agenda: z.string(),
EventType: z.string(),
EventType: z.nativeEnum(EEventType),
EventID: z.string().nullable(),
HasAttachments: z.boolean(),
ParticipantsList: z.array(ParticipantSchema),
@@ -155,8 +156,16 @@ const Attachments = z.object({
FileSize: z.number().optional(),
});
const OwnerSchema = z.object({
wxUserId: z.number(),
wxFullName: z.string(),
wxeMail: z.string(),
userPhoto: z.string(),
});
const EventToApproveDetails = z.object({
owner: OwnerSchema,
serialNumber: z.string(),
taskStatus: z.string().nullable(),
originator: OriginatorSchema,