interface attachments { name: string; url: string; } interface ResponseInbox { body: string; createdFullName: string; createdUserId: string; id: string; isOpen: boolean; lastUpdateFullName: string; lastUpdateUserId: string; lastUpdatedAt: Date; openDate: Date | null; payload: { attachments: attachments[] }; receiveDate: Date; receiverUserId: string; subject: string; } interface DataInbox { no: string; sender: string; subject: string; timereceive: Date; body: string; payload: { attachments: attachments[] }; ratingModel: number; isOpen: boolean; } export type { ResponseInbox, DataInbox };