add viewer do task details

This commit is contained in:
Peter Maquiran
2024-02-15 13:03:38 +01:00
parent eb2a665d2a
commit b7bccfa25d
17 changed files with 353 additions and 52 deletions
@@ -1,12 +1,18 @@
import { z } from "zod";
const Bodyschema = z.object({
SerialNumber: z.string(),
DispatchDocId: z.number(),
FolderID: z.any(),
Subject: z.string(),
Comment: z.string().optional(),
DelegatedUserEmail: z.string().email(),
UserId: z.any(),
DraftIds: z.string(),
export const ViewerAttachmentParams = z.object({
ApplicationId: z.string().optional(),
Assunto: z.string({}).nonempty(),
DocDate: z.string(),
DocId: z.string().nonempty(),
DocNumber: z.string(),
FolderId: z.string(),
Sender: z.string(),
SourceDocId: z.string(),
content: z.string().nonempty(),
path: z.string().nonempty(),
ownerId: z.string().nonempty(),
status: z.string().nonempty(),
})
export type ViewerAttachment = z.infer<typeof ViewerAttachmentParams>;