import type { TaskDocument } from '~/modules/project-management/services/dto/task-document' export type ClientTicketType = 'bug' | 'improvement' | 'other' export type ClientTicketStatus = 'new' | 'in_progress' | 'done' | 'rejected' export type ClientTicket = { '@id'?: string id: number number: number type: ClientTicketType title: string description: string url: string | null status: ClientTicketStatus statusComment: string | null project: string // IRI submittedBy: string | null // IRI, nullable (ON DELETE SET NULL) createdAt: string updatedAt: string documents?: TaskDocument[] } export type ClientTicketCreate = { type: ClientTicketType title: string description: string url?: string | null project: string // IRI } export type ClientTicketStatusUpdate = { status: ClientTicketStatus statusComment?: string | null }