35 lines
819 B
TypeScript
35 lines
819 B
TypeScript
import type { TaskDocument } from './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
|
|
submittedBy: string | null
|
|
createdAt: string
|
|
updatedAt: string
|
|
documents?: TaskDocument[]
|
|
}
|
|
|
|
export type ClientTicketWrite = {
|
|
type: ClientTicketType
|
|
title: string
|
|
description: string
|
|
url?: string | null
|
|
project: string
|
|
}
|
|
|
|
export type ClientTicketStatusUpdate = {
|
|
status: ClientTicketStatus
|
|
statusComment?: string | null
|
|
}
|