import type { Temporal } from 'temporal-polyfill'; import type { ClientType, MailStatus } from '@/client'; import type { DealUuid } from '@/models/deal/dealUuid.model.ts'; import type { PublicFileReference } from '@/models/file-reference/fileReference.model'; import type { MailUuid } from '@/models/mail/mailUuid.model.ts'; export interface MailIndex { uuid: MailUuid; dealUuid: DealUuid | null; createdAt: Temporal.ZonedDateTime; updatedAt: Temporal.ZonedDateTime; attachments: PublicFileReference[]; bcc: string[]; cc: string[]; client: { uuid: string; type: ClientType; }; from: string | null; replyTo: string | null; status: MailStatus; subject: string; text: string; to: string[]; }