import { STATUSES } from '../constants' export type Conversation = { id: number assignee: Assignee customerId: number customers: ConversationCustomer[] customFields: CustomField[] following: boolean mailboxId: number number: number status: Status subject: string tags: Tag[] } type ConversationCustomer = { id: number firstName: string lastName: string emails: ConversationCustomerEmail[] } type ConversationCustomerEmail = { id: number value: string default: boolean } type Assignee = { id: number first: string last: string type: string email: string } type CustomField = { id: number name: string value: string text: string } export type Status = (typeof STATUSES)[keyof typeof STATUSES] type Tag = { id: number tag: string }