shared-ritm 1.2.138 → 1.2.139
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/types/api/services/RepairsService.d.ts +1 -1
- package/dist/types/api/types/Api_Repairs.d.ts +8 -11
- package/dist/types/api/types/Api_Tasks.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/services/RepairsService.ts +1 -1
- package/src/api/types/Api_Repairs.ts +13 -11
- package/src/api/types/Api_Tasks.ts +1 -1
|
@@ -22,7 +22,7 @@ declare class RepairsService extends ApiService {
|
|
|
22
22
|
updateRepair(payload: Api_Update_Repair, id: string): Promise<void>;
|
|
23
23
|
copyRepair(id: string): Promise<any>;
|
|
24
24
|
deleteRepair(id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
25
|
-
fetchIntersection(id: string): Promise<Api_Repair_Intersection[]
|
|
25
|
+
fetchIntersection(id: string): Promise<Api_Repair_Intersection[]>;
|
|
26
26
|
}
|
|
27
27
|
export default function useRepairsService(): RepairsService;
|
|
28
28
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Api_Status_DTO, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks';
|
|
1
2
|
export type Api_Team = {
|
|
2
3
|
id: string;
|
|
3
4
|
display_name: string;
|
|
@@ -107,23 +108,19 @@ export type Api_Repair_Template = {
|
|
|
107
108
|
};
|
|
108
109
|
task_list: string;
|
|
109
110
|
};
|
|
110
|
-
export type
|
|
111
|
+
export type Api_Repair_Intersection_Task = {
|
|
111
112
|
position: {
|
|
112
|
-
name: string;
|
|
113
|
-
display_name: string;
|
|
114
|
-
};
|
|
115
|
-
status: {
|
|
116
113
|
id: string;
|
|
117
|
-
name: string;
|
|
118
114
|
display_name: string;
|
|
119
|
-
};
|
|
120
|
-
task: {
|
|
121
|
-
id: string;
|
|
122
115
|
name: string;
|
|
123
|
-
project_id: string;
|
|
124
116
|
};
|
|
117
|
+
status: Omit<Api_Status_DTO, 'id'>;
|
|
118
|
+
task: Pick<Api_Tasks_Task_Dto, 'id' | 'name' | 'plan_date' | 'planned_start' | 'fact_start_date' | 'planned_end' | 'deadline' | 'fact_end_date'>;
|
|
119
|
+
};
|
|
120
|
+
export type Api_Repair_Intersection = {
|
|
121
|
+
tasks: Api_Repair_Intersection_Task[];
|
|
125
122
|
user: {
|
|
126
|
-
id: string;
|
|
123
|
+
id: string | null;
|
|
127
124
|
full_name: string;
|
|
128
125
|
};
|
|
129
126
|
};
|
|
@@ -284,7 +284,7 @@ export type Api_Task_Dto = {
|
|
|
284
284
|
has_quality_metrics: boolean;
|
|
285
285
|
responsible: Api_Responsible_DTO[];
|
|
286
286
|
assigned: Api_Assigned_DTO[];
|
|
287
|
-
status: Api_Status_DTO
|
|
287
|
+
status: Api_Status_DTO;
|
|
288
288
|
teams: Api_Teams_DTO[];
|
|
289
289
|
video_source: Api_VideoSource_DTO;
|
|
290
290
|
};
|
package/package.json
CHANGED
|
@@ -111,7 +111,7 @@ class RepairsService extends ApiService {
|
|
|
111
111
|
return this.delete<any>(`/repairs/${id}`)
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
public fetchIntersection(id: string): Promise<Api_Repair_Intersection[]
|
|
114
|
+
public fetchIntersection(id: string): Promise<Api_Repair_Intersection[]> {
|
|
115
115
|
return this.get(`v3/repairs/${id}/personnel/intersection`)
|
|
116
116
|
}
|
|
117
117
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Api_Status_DTO, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
|
|
2
|
+
|
|
1
3
|
export type Api_Team = {
|
|
2
4
|
id: string
|
|
3
5
|
display_name: string
|
|
@@ -116,23 +118,23 @@ export type Api_Repair_Template = {
|
|
|
116
118
|
task_list: string
|
|
117
119
|
}
|
|
118
120
|
|
|
119
|
-
export type
|
|
121
|
+
export type Api_Repair_Intersection_Task = {
|
|
120
122
|
position: {
|
|
121
|
-
name: string
|
|
122
|
-
display_name: string
|
|
123
|
-
}
|
|
124
|
-
status: {
|
|
125
123
|
id: string
|
|
126
|
-
name: string
|
|
127
124
|
display_name: string
|
|
128
|
-
}
|
|
129
|
-
task: {
|
|
130
|
-
id: string
|
|
131
125
|
name: string
|
|
132
|
-
project_id: string
|
|
133
126
|
}
|
|
127
|
+
status: Omit<Api_Status_DTO, 'id'>
|
|
128
|
+
task: Pick<
|
|
129
|
+
Api_Tasks_Task_Dto,
|
|
130
|
+
'id' | 'name' | 'plan_date' | 'planned_start' | 'fact_start_date' | 'planned_end' | 'deadline' | 'fact_end_date'
|
|
131
|
+
>
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type Api_Repair_Intersection = {
|
|
135
|
+
tasks: Api_Repair_Intersection_Task[]
|
|
134
136
|
user: {
|
|
135
|
-
id: string
|
|
137
|
+
id: string | null
|
|
136
138
|
full_name: string
|
|
137
139
|
}
|
|
138
140
|
}
|
|
@@ -313,7 +313,7 @@ export type Api_Task_Dto = {
|
|
|
313
313
|
has_quality_metrics: boolean
|
|
314
314
|
responsible: Api_Responsible_DTO[]
|
|
315
315
|
assigned: Api_Assigned_DTO[]
|
|
316
|
-
status: Api_Status_DTO
|
|
316
|
+
status: Api_Status_DTO
|
|
317
317
|
teams: Api_Teams_DTO[]
|
|
318
318
|
video_source: Api_VideoSource_DTO
|
|
319
319
|
}
|