shared-ritm 1.1.44 → 1.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,6 +7,10 @@ declare class TasksService extends ApiService {
|
|
|
7
7
|
fetchTaskBranch(id: string): Promise<ResponseApi<any>>;
|
|
8
8
|
fetchInstrumentsList(params: any): Promise<ResponseApi<any[]>>;
|
|
9
9
|
createTask(payload: any): Promise<ResponseApi<any>>;
|
|
10
|
+
mergeTask(payload: {
|
|
11
|
+
name: string;
|
|
12
|
+
tasks_id: string[];
|
|
13
|
+
}): Promise<ResponseApi<any>>;
|
|
10
14
|
deleteTask(id: string): Promise<any>;
|
|
11
15
|
}
|
|
12
16
|
export default function useTasksService(): TasksService;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ class GanttService extends ApiService {
|
|
|
5
5
|
return await this.get(`gantt/get_list_task_on_critical_path?${params}`)
|
|
6
6
|
}
|
|
7
7
|
public async fetchGanttList(params: string): Promise<any> {
|
|
8
|
-
return await this.get(`/
|
|
8
|
+
return await this.get(`/list/tasks/search?${params}&gantt=1`)
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -26,6 +26,10 @@ class TasksService extends ApiService {
|
|
|
26
26
|
return await this.post(`tasks`, payload)
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
public async mergeTask(payload: { name: string; tasks_id: string[] }): Promise<ResponseApi<any>> {
|
|
30
|
+
return await this.post(`tasks/merge`, payload)
|
|
31
|
+
}
|
|
32
|
+
|
|
29
33
|
public async deleteTask(id: string): Promise<any> {
|
|
30
34
|
return await this.delete(`tasks/${id}`)
|
|
31
35
|
}
|