diff --git a/frontend/services/dto/client-ticket.ts b/frontend/services/dto/client-ticket.ts new file mode 100644 index 0000000..af00fb3 --- /dev/null +++ b/frontend/services/dto/client-ticket.ts @@ -0,0 +1,30 @@ +import type { TaskDocument } from './task-document' +import type { UserData } from './user-data' + +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: UserData | null + createdAt: string + updatedAt: string + documents: TaskDocument[] +} + +export type ClientTicketWrite = { + type: ClientTicketType + title: string + description: string + url?: string | null + project: string +}