Files
doneit-web/src/app/services/Repositorys/chat/dto/message/messageOutputDTO.ts
T

21 lines
482 B
TypeScript
Raw Normal View History

2024-06-04 16:21:11 +01:00
import { z } from "zod"
const MessageOutPutDTOSchema = z.object({
id: z.string(),
sender: z.object({
wxUserId: z.number(),
wxFullName: z.string(),
wxeMail: z.string().email(),
userPhoto: z.string()
}),
message: z.string().datetime(),
messageType: z.string().datetime(),
sentAt: z.number(),
deliverAt: z.any(),
canEdit: z.any(),
oneShot: z.any(),
requireUnlock: z.any()
});
export type MessageOutPutDTO = z.infer<typeof MessageOutPutDTOSchema>