shared-ritm 1.1.22 → 1.1.24

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.
@@ -5,6 +5,7 @@ declare class TasksService extends ApiService {
5
5
  fetchTasksList(params: any): Promise<ResponseApi<Api_Tasks_Dto[]>>;
6
6
  fetchSubtasksList(id: string): Promise<ResponseApi<Api_Tasks_Dto[]>>;
7
7
  fetchTaskBranch(id: string): Promise<ResponseApi<any>>;
8
+ deleteTask(id: string): Promise<any>;
8
9
  }
9
10
  export default function useTasksService(): TasksService;
10
11
  export {};
@@ -16,6 +16,11 @@ export type Api_Project_Team = {
16
16
  team_id: string;
17
17
  };
18
18
  };
19
+ export type Api_Project_Category = {
20
+ code: number;
21
+ display_name: string;
22
+ name: string;
23
+ };
19
24
  export type Api_Project_Dto = {
20
25
  id: string;
21
26
  name: string;
@@ -23,9 +28,10 @@ export type Api_Project_Dto = {
23
28
  image: null;
24
29
  start_date: string;
25
30
  end_date: string;
26
- is_archive: false;
31
+ is_archive: boolean;
27
32
  teams: Api_Project_Team[];
28
- category: number;
33
+ category: Api_Project_Category;
29
34
  deleted_at: null;
30
- repair: Api_Project_Repair;
35
+ repair: Api_Project_Repair | null;
36
+ total_tasks: number;
31
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -17,6 +17,10 @@ class TasksService extends ApiService {
17
17
  public async fetchTaskBranch(id: string): Promise<ResponseApi<any>> {
18
18
  return await this.get(`/get_list_task_branch?task_id=${id}`)
19
19
  }
20
+
21
+ public async deleteTask(id: string): Promise<any> {
22
+ return await this.delete(`tasks/${id}`)
23
+ }
20
24
  }
21
25
 
22
26
  let api: TasksService
@@ -18,6 +18,12 @@ export type Api_Project_Team = {
18
18
  }
19
19
  }
20
20
 
21
+ export type Api_Project_Category = {
22
+ code: number
23
+ display_name: string
24
+ name: string
25
+ }
26
+
21
27
  export type Api_Project_Dto = {
22
28
  id: string
23
29
  name: string
@@ -25,9 +31,10 @@ export type Api_Project_Dto = {
25
31
  image: null
26
32
  start_date: string
27
33
  end_date: string
28
- is_archive: false
34
+ is_archive: boolean
29
35
  teams: Api_Project_Team[]
30
- category: number
36
+ category: Api_Project_Category
31
37
  deleted_at: null
32
- repair: Api_Project_Repair
38
+ repair: Api_Project_Repair | null
39
+ total_tasks: number
33
40
  }