shared-ritm 1.1.63 → 1.1.64
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/shared-ritm.es.js +83132 -73462
- package/dist/shared-ritm.umd.js +162 -157
- package/package.json +1 -1
- package/src/api/services/TasksService.ts +1 -1
- package/src/api/types/Api_Repairs.ts +74 -74
package/package.json
CHANGED
|
@@ -62,7 +62,7 @@ class TasksService extends ApiService {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
public createWorkZone(params: any): Promise<unknown> {
|
|
65
|
-
return this.
|
|
65
|
+
return this.post('admin/work-zones', { params })
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
public async createTask(payload: any): Promise<ResponseApi<any>> {
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
export type Api_Team = {
|
|
2
|
-
id: string
|
|
3
|
-
display_name: string
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export type Api_Equipment_Short_Dto = {
|
|
7
|
-
id: string
|
|
8
|
-
name: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type Api_Repairs = {
|
|
12
|
-
id: string
|
|
13
|
-
name: string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type Api_Projects = {
|
|
17
|
-
id: string
|
|
18
|
-
name: string
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type OptionFilters = {
|
|
22
|
-
teams?: Api_Team[]
|
|
23
|
-
equipments?: Api_Equipment_Short_Dto[]
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type Api_Equipment_Full_Dto = {
|
|
27
|
-
id: string
|
|
28
|
-
model: null | string
|
|
29
|
-
name: string
|
|
30
|
-
registration_number: string
|
|
31
|
-
repair_frequency: number
|
|
32
|
-
repair_range: number
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type Api_Task_Video_Source = {
|
|
36
|
-
id: string
|
|
37
|
-
name: string
|
|
38
|
-
work_zones_by_tasks: Array<{
|
|
39
|
-
coordinates: { x0: number; x1: number; y0: number; y1: number }
|
|
40
|
-
id: string
|
|
41
|
-
tasks: unknown[]
|
|
42
|
-
title: string
|
|
43
|
-
}>
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export type Api_Create_Repair_With_Equipments = {
|
|
47
|
-
name: string
|
|
48
|
-
display_name: string
|
|
49
|
-
description: string
|
|
50
|
-
equipment_id: string
|
|
51
|
-
power_output_MWh?: number
|
|
52
|
-
cost_per_MWh?: number
|
|
53
|
-
category?: string
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type Api_Update_Repair = {
|
|
57
|
-
name?: string
|
|
58
|
-
display_name?: string
|
|
59
|
-
description: string
|
|
60
|
-
power_output_MWh?: number
|
|
61
|
-
cost_per_MWh?: number
|
|
62
|
-
category?: string
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export type Api_Repair_Dto = {
|
|
66
|
-
id: string
|
|
67
|
-
name: string
|
|
68
|
-
display_name: string
|
|
69
|
-
description: string
|
|
70
|
-
start_date: string
|
|
71
|
-
end_date: string
|
|
72
|
-
projects: Api_Projects[]
|
|
73
|
-
equipments: Api_Equipment_Full_Dto[]
|
|
74
|
-
}
|
|
1
|
+
export type Api_Team = {
|
|
2
|
+
id: string
|
|
3
|
+
display_name: string
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export type Api_Equipment_Short_Dto = {
|
|
7
|
+
id: string
|
|
8
|
+
name: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type Api_Repairs = {
|
|
12
|
+
id: string
|
|
13
|
+
name: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Api_Projects = {
|
|
17
|
+
id: string
|
|
18
|
+
name: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type OptionFilters = {
|
|
22
|
+
teams?: Api_Team[]
|
|
23
|
+
equipments?: Api_Equipment_Short_Dto[]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type Api_Equipment_Full_Dto = {
|
|
27
|
+
id: string
|
|
28
|
+
model: null | string
|
|
29
|
+
name: string
|
|
30
|
+
registration_number: string
|
|
31
|
+
repair_frequency: number
|
|
32
|
+
repair_range: number
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type Api_Task_Video_Source = {
|
|
36
|
+
id: string
|
|
37
|
+
name: string
|
|
38
|
+
work_zones_by_tasks: Array<{
|
|
39
|
+
coordinates: { x0: number; x1: number; y0: number; y1: number }
|
|
40
|
+
id: string
|
|
41
|
+
tasks: unknown[]
|
|
42
|
+
title: string
|
|
43
|
+
}>
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type Api_Create_Repair_With_Equipments = {
|
|
47
|
+
name: string
|
|
48
|
+
display_name: string
|
|
49
|
+
description: string
|
|
50
|
+
equipment_id: string
|
|
51
|
+
power_output_MWh?: number
|
|
52
|
+
cost_per_MWh?: number
|
|
53
|
+
category?: string
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type Api_Update_Repair = {
|
|
57
|
+
name?: string
|
|
58
|
+
display_name?: string
|
|
59
|
+
description: string
|
|
60
|
+
power_output_MWh?: number
|
|
61
|
+
cost_per_MWh?: number
|
|
62
|
+
category?: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type Api_Repair_Dto = {
|
|
66
|
+
id: string
|
|
67
|
+
name: string
|
|
68
|
+
display_name: string
|
|
69
|
+
description: string
|
|
70
|
+
start_date: string
|
|
71
|
+
end_date: string
|
|
72
|
+
projects: Api_Projects[]
|
|
73
|
+
equipments: Api_Equipment_Full_Dto[]
|
|
74
|
+
}
|