remove rocket chat

This commit is contained in:
Peter Maquiran
2024-08-09 10:50:32 +01:00
parent 45e829bec3
commit 6cbd8d903c
67 changed files with 962 additions and 5618 deletions
+19 -1
View File
@@ -1,4 +1,5 @@
import { z } from "zod";
import { MessageAttachmentFileType, MessageAttachmentSource } from "../../data/dto/message/messageOutputDTO";
const MessageEntitySchema = z.object({
$id: z.any().optional(),
@@ -16,7 +17,15 @@ const MessageEntitySchema = z.object({
wxeMail: z.string(),
userPhoto: z.string(),
}),
sending: z.boolean().optional()
sending: z.boolean().optional(),
attachments: z.array(z.object({
fileType: z.nativeEnum(MessageAttachmentFileType),
source: z.nativeEnum(MessageAttachmentSource),
file: z.string(),
fileName: z.string(),
applicationId: z.string(),
docId: z.string()
}))
})
type Message = z.infer<typeof MessageEntitySchema>;
@@ -41,6 +50,15 @@ export class MessageEntity implements Message {
sending: boolean = false
sendAttemp = 0
attachments: {
fileType: MessageAttachmentFileType,
source: MessageAttachmentSource,
file: string,
fileName: string,
applicationId?: string,
docId?: string
}[]
constructor() {}
get messageStatus() {