Просмотр исходного кода

add requested_restart in TTaskStatus add TTaskType

visuddhinanda 1 год назад
Родитель
Сommit
e36f065c7d
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      dashboard-v4/dashboard/src/components/api/task.ts

+ 6 - 2
dashboard-v4/dashboard/src/components/api/task.ts

@@ -21,9 +21,11 @@ export type TTaskStatus =
   | "running"
   | "done"
   | "restarted"
+  | "requested_restart"
   | "closed"
   | "canceled"
   | "expired";
+export type TTaskType = "instance" | "workflow" | "group";
 
 export interface IProject {
   id: string;
@@ -35,7 +37,7 @@ export interface ITaskData {
   title: string;
   description?: string | null;
   html?: string | null;
-  type?: "task" | "group";
+  type: TTaskType;
   order?: number;
   assignees?: IUser[] | null;
   assignees_id?: string[] | null;
@@ -70,6 +72,7 @@ export interface ITaskUpdateRequest {
   studio_name: string;
   title?: string;
   description?: string | null;
+  type?: TTaskType;
   assignees_id?: string[] | null;
   parent_id?: string | null;
   project_id?: string | null;
@@ -94,6 +97,7 @@ export interface ITaskListResponse {
 export interface ITaskCreateRequest {
   title: string;
   studio: string;
+  type: TTaskType;
 }
 
 export interface ITaskResponse {
@@ -156,7 +160,7 @@ export interface IProjectResponse {
   message: string;
   ok: boolean;
 }
-export type TProjectType = "normal" | "workflow" | "endpoint";
+export type TProjectType = "instance" | "workflow" | "endpoint";
 export interface IProjectCreateRequest {
   title: string;
   type: TProjectType;