shared-ritm 1.0.58 → 1.0.60
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.
- package/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +10 -2
- package/dist/shared-ritm.umd.js +3 -3
- package/dist/types/api/services/ProjectsService.d.ts +2 -1
- package/dist/types/api/services/TasksService.d.ts +4 -1
- package/dist/types/api/types/Api_Projects.d.ts +31 -0
- package/dist/types/api/types/Api_Tasks.d.ts +23 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/services/ProjectsService.ts +2 -1
- package/src/api/services/TasksService.ts +13 -1
- package/src/api/types/Api_Projects.ts +33 -0
- package/src/api/types/Api_Tasks.ts +25 -0
- package/src/common/app-input-search/AppInputSearch.vue +0 -1
- package/src/index.ts +2 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import ApiService, { ResponseApi } from '@/api/settings/ApiService';
|
|
2
2
|
import { Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks';
|
|
3
|
+
import { Api_Project_Dto } from '@/api/types/Api_Projects';
|
|
3
4
|
declare class ProjectsService extends ApiService {
|
|
4
5
|
fetchProjectById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>>;
|
|
5
6
|
createProject(params: any): Promise<ResponseApi<any>>;
|
|
6
7
|
editProject(id: string, params: any): Promise<ResponseApi<any>>;
|
|
7
|
-
fetchProjects(params: any): Promise<ResponseApi<
|
|
8
|
+
fetchProjects(params: any): Promise<ResponseApi<Api_Project_Dto[]>>;
|
|
8
9
|
cloneProject(project: any): Promise<ResponseApi<any>>;
|
|
9
10
|
archiveProject(id: string, data: any): Promise<ResponseApi<any>>;
|
|
10
11
|
unArchiveProject(id: string, data: any): Promise<ResponseApi<any>>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import ApiService, { ResponseApi } from '@/api/settings/ApiService';
|
|
2
|
-
import { Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks';
|
|
2
|
+
import { Api_Tasks_Dto, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks';
|
|
3
3
|
declare class TasksService extends ApiService {
|
|
4
4
|
fetchTaskById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>>;
|
|
5
|
+
fetchTasksList(params: any): Promise<ResponseApi<Api_Tasks_Dto[]>>;
|
|
6
|
+
fetchSubtasksList(id: string): Promise<ResponseApi<Api_Tasks_Dto[]>>;
|
|
7
|
+
fetchTaskBranch(id: string): Promise<ResponseApi<any>>;
|
|
5
8
|
}
|
|
6
9
|
export default function useTasksService(): TasksService;
|
|
7
10
|
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type Api_Project_Repair = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
start_date: null | string;
|
|
5
|
+
end_date: null | string;
|
|
6
|
+
};
|
|
7
|
+
export type Api_Project_Team = {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
display_name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
created_at: string;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
pivot: {
|
|
15
|
+
project_id: string;
|
|
16
|
+
team_id: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type Api_Project_Dto = {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
description: null;
|
|
23
|
+
image: null;
|
|
24
|
+
start_date: string;
|
|
25
|
+
end_date: string;
|
|
26
|
+
is_archive: false;
|
|
27
|
+
teams: Api_Project_Team[];
|
|
28
|
+
category: number;
|
|
29
|
+
deleted_at: null;
|
|
30
|
+
repair: Api_Project_Repair;
|
|
31
|
+
};
|
|
@@ -91,3 +91,26 @@ export type Api_Tasks_Task_Dto = {
|
|
|
91
91
|
isPause: boolean;
|
|
92
92
|
equipment: Api_Tasks_Equipment_Dto[];
|
|
93
93
|
};
|
|
94
|
+
export type Api_Tasks_Simple_Responsible_Dto = {
|
|
95
|
+
id: string;
|
|
96
|
+
full_name: string;
|
|
97
|
+
};
|
|
98
|
+
export type Api_Tasks_Dto = {
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
plan_date: null | string;
|
|
102
|
+
deadline: null | string;
|
|
103
|
+
priority: number;
|
|
104
|
+
subtasks_count: number;
|
|
105
|
+
responsible: Api_Tasks_Simple_Responsible_Dto[];
|
|
106
|
+
assigned: any[];
|
|
107
|
+
status: Api_Tasks_Status_Dto;
|
|
108
|
+
expired: boolean;
|
|
109
|
+
teams: Api_Tasks_Teams_Dto[];
|
|
110
|
+
is_critical_path: boolean;
|
|
111
|
+
isPause: boolean;
|
|
112
|
+
fact_start_date: null | string;
|
|
113
|
+
fact_end_date: null | string;
|
|
114
|
+
pause_sec: number;
|
|
115
|
+
work_sec: number;
|
|
116
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -18,3 +18,4 @@ export { AppButton, AppInput, AppToggle, AppInputSearch, AppLayout, AppSelect, A
|
|
|
18
18
|
export { ApiService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService };
|
|
19
19
|
export * from '@/api/types/Api_Tasks';
|
|
20
20
|
export * from '@/api/types/Api_Repairs';
|
|
21
|
+
export * from '@/api/types/Api_Projects';
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
2
|
import { Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
|
|
3
|
+
import { Api_Project_Dto } from '@/api/types/Api_Projects'
|
|
3
4
|
|
|
4
5
|
class ProjectsService extends ApiService {
|
|
5
6
|
public async fetchProjectById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>> {
|
|
@@ -14,7 +15,7 @@ class ProjectsService extends ApiService {
|
|
|
14
15
|
return this.put<any, ResponseApi<any>>(`/projects/${id}`, params)
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
public fetchProjects(params: any): Promise<ResponseApi<
|
|
18
|
+
public fetchProjects(params: any): Promise<ResponseApi<Api_Project_Dto[]>> {
|
|
18
19
|
return this.get(`/get_list_project`, { params })
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
|
-
import { Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
|
|
2
|
+
import { Api_Tasks_Dto, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
|
|
3
3
|
|
|
4
4
|
class TasksService extends ApiService {
|
|
5
5
|
public async fetchTaskById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>> {
|
|
6
6
|
return await this.get(`/tasks/${id}`)
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
public async fetchTasksList(params: any): Promise<ResponseApi<Api_Tasks_Dto[]>> {
|
|
10
|
+
return await this.get('/list/tasks/search', { params })
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public async fetchSubtasksList(id: string): Promise<ResponseApi<Api_Tasks_Dto[]>> {
|
|
14
|
+
return await this.get(`/task/${id}/subtasks/list`)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
public async fetchTaskBranch(id: string): Promise<ResponseApi<any>> {
|
|
18
|
+
return await this.get(`/get_list_task_branch?task_id=${id}`)
|
|
19
|
+
}
|
|
8
20
|
}
|
|
9
21
|
|
|
10
22
|
let api: TasksService
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type Api_Project_Repair = {
|
|
2
|
+
id: string
|
|
3
|
+
name: string
|
|
4
|
+
start_date: null | string
|
|
5
|
+
end_date: null | string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type Api_Project_Team = {
|
|
9
|
+
id: string
|
|
10
|
+
name: string
|
|
11
|
+
display_name: string
|
|
12
|
+
description: string
|
|
13
|
+
created_at: string
|
|
14
|
+
updated_at: string
|
|
15
|
+
pivot: {
|
|
16
|
+
project_id: string
|
|
17
|
+
team_id: string
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type Api_Project_Dto = {
|
|
22
|
+
id: string
|
|
23
|
+
name: string
|
|
24
|
+
description: null
|
|
25
|
+
image: null
|
|
26
|
+
start_date: string
|
|
27
|
+
end_date: string
|
|
28
|
+
is_archive: false
|
|
29
|
+
teams: Api_Project_Team[]
|
|
30
|
+
category: number
|
|
31
|
+
deleted_at: null
|
|
32
|
+
repair: Api_Project_Repair
|
|
33
|
+
}
|
|
@@ -97,3 +97,28 @@ export type Api_Tasks_Task_Dto = {
|
|
|
97
97
|
isPause: boolean
|
|
98
98
|
equipment: Api_Tasks_Equipment_Dto[]
|
|
99
99
|
}
|
|
100
|
+
|
|
101
|
+
export type Api_Tasks_Simple_Responsible_Dto = {
|
|
102
|
+
id: string
|
|
103
|
+
full_name: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type Api_Tasks_Dto = {
|
|
107
|
+
id: string
|
|
108
|
+
name: string
|
|
109
|
+
plan_date: null | string
|
|
110
|
+
deadline: null | string
|
|
111
|
+
priority: number
|
|
112
|
+
subtasks_count: number
|
|
113
|
+
responsible: Api_Tasks_Simple_Responsible_Dto[]
|
|
114
|
+
assigned: any[]
|
|
115
|
+
status: Api_Tasks_Status_Dto
|
|
116
|
+
expired: boolean
|
|
117
|
+
teams: Api_Tasks_Teams_Dto[]
|
|
118
|
+
is_critical_path: boolean
|
|
119
|
+
isPause: boolean
|
|
120
|
+
fact_start_date: null | string
|
|
121
|
+
fact_end_date: null | string
|
|
122
|
+
pause_sec: number
|
|
123
|
+
work_sec: number
|
|
124
|
+
}
|
package/src/index.ts
CHANGED