28 lines
651 B
TypeScript
28 lines
651 B
TypeScript
import type { ReportDocument } from './report-document'
|
|
|
|
export type ReportType = 'call' | 'meeting' | 'email' | 'note'
|
|
|
|
export type CommercialReport = {
|
|
id: number
|
|
'@id'?: string
|
|
subject: string
|
|
body: string | null
|
|
occurredAt: string
|
|
type: ReportType
|
|
author?: { id: number, username: string } | null
|
|
client?: string | null
|
|
prospect?: string | null
|
|
documents?: ReportDocument[]
|
|
createdAt?: string
|
|
updatedAt?: string
|
|
}
|
|
|
|
export type CommercialReportWrite = {
|
|
subject: string
|
|
body: string | null
|
|
occurredAt: string
|
|
type: ReportType
|
|
client?: string | null
|
|
prospect?: string | null
|
|
}
|