import { ITGitRequestConfig } from '..'; import { ProjectId } from '../base'; export interface ITapdWorkItems { ( params: { id: ProjectId; type: string; iid: number; }, requestOptions?: ITGitRequestConfig, ): Promise; add: ITapdWorkItemAdd; } export type ITapdWorkItemAdd = ( params: { id: ProjectId; workspace_id: string; tapd_type: string; title: string; description: string; type: string; iid: number; }, requestOptions?: ITGitRequestConfig, ) => Promise; export interface ITapdWorkItem { id: number; id_str: string; workspace_id: number; source_project_id: number; source_id: number; source_type: string; tapd_id: number; tapd_id_str: string; tapd_type: string; name: string; status: string; status_zh: string; } export interface ITapdItem { id: number; title: string; status: string; status_zh: string; workspace_id: number; type: string; }