add interface

This commit is contained in:
Peter Maquiran
2024-08-27 20:29:57 +01:00
parent 6c0a15fb7c
commit ee30dd2d5b
43 changed files with 470 additions and 221 deletions
+14 -1
View File
@@ -1,7 +1,20 @@
import { z } from "zod";
import { MessageAttachmentFileType, MessageAttachmentSource } from "../../../module/chat/data/dto/message/messageOutputDTO";
import { base64Schema } from "src/app/utils/zod";
export enum MessageAttachmentSource {
Webtrix = 1,
Device,
}
export enum MessageAttachmentFileType {
Doc = 1,
Image ,
Audio ,
Video
}
export const MessageEntitySchema = z.object({
$id: z.any().optional(),
id: z.string().optional(),