issue types
Gitea Actions / Deploy (push) Successful in 27s

This commit is contained in:
vadim committed 2026-10-18 20:52:26 +03:00
1 parent cc490f8d4a
commit 7639a54c50
8 files changed
+135 -2

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { apiClient } from '@/lib/api-client.ts'
export interface IssueType {
name: string
alias: 'TASK' | 'BUG' | 'FEATURE'
color: string
}
// CLIENT REQUEST
export async function issueTypesList() {
return apiClient.get<IssueType[]>('/api/issue-types')
}
+3
View File
@@ -1,5 +1,6 @@
import { apiClient, toQuery } from '@/lib/api-client.ts'
import type { User } from '@/api/user.api.ts'
import type { IssueType } from '@/api/issue-type.api.ts'
export interface Issue {
id: number
@@ -7,6 +8,7 @@ export interface Issue {
title: string
content: string
status: 'OPEN' | 'IN_PROGRESS' | 'DONE' | 'CANCELLED'
type: IssueType['alias']
priority: 0 | 1 | 2 | 3 | 4
assigneeId: string
reporterId: string
@@ -29,6 +31,7 @@ export interface CreateIssueInput {
projectId: string
content?: string
status?: Issue['status']
type?: Issue['type']
priority?: Issue['priority']
assignee?: string
dueDate?: string | null