Browse Source

studio_name is option in IProjectUpdateRequest

visuddhinanda 1 year ago
parent
commit
886f1d0cd6
1 changed files with 15 additions and 2 deletions
  1. 15 2
      dashboard-v4/dashboard/src/components/api/task.ts

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

@@ -139,7 +139,7 @@ export interface IProjectData {
 
 export interface IProjectUpdateRequest {
   id?: string;
-  studio_name: string;
+  studio_name?: string;
   title: string;
   type: TProjectType;
   description?: string | null;
@@ -185,8 +185,11 @@ export interface ITaskStatusInProject {
 }
 
 export interface ITaskGroupInsertRequest {
+  data: ITaskGroupInsertData[];
+}
+export interface ITaskGroupInsertData {
   project_id: string;
-  data: ITaskData[];
+  tasks: ITaskData[];
 }
 
 export interface ITaskGroupResponse {
@@ -194,3 +197,13 @@ export interface ITaskGroupResponse {
   message: string;
   data: string;
 }
+export interface IProjectTreeInsertRequest {
+  studio_name: string;
+  data: IProjectUpdateRequest[];
+}
+
+export interface IProjectTreeResponse {
+  ok: boolean;
+  message: string;
+  data: { leafs: string[] };
+}