shared-ritm 1.2.58 → 1.2.59
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/README.md +103 -103
- package/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +4787 -4771
- package/dist/shared-ritm.umd.js +7 -7
- package/dist/types/api/services/VideoService.d.ts +6 -0
- package/dist/types/index.d.ts +2 -1
- package/package.json +63 -63
- package/src/api/services/ControlsService.ts +64 -64
- package/src/api/services/GanttService.ts +17 -17
- package/src/api/services/MetricsService.ts +109 -109
- package/src/api/services/ProjectsService.ts +67 -67
- package/src/api/services/RepairsService.ts +100 -100
- package/src/api/services/VideoService.ts +14 -0
- package/src/api/types/Api_Files.ts +1 -1
- package/src/api/types/Api_Projects.ts +55 -55
- package/src/api/types/Api_Repairs.ts +93 -93
- package/src/api/types/Api_Tasks.ts +155 -155
- package/src/common/app-checkbox/AppCheckbox.vue +26 -26
- package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
- package/src/common/app-dropdown/AppDropdown.vue +31 -31
- package/src/common/app-select/AppSelect.vue +157 -157
- package/src/common/app-sheet/AppSheet.vue +120 -120
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
- package/src/common/app-table/AppTable.vue +241 -241
- package/src/common/app-table/AppTableLayout.vue +102 -102
- package/src/common/app-table/components/ModalSelect.vue +264 -264
- package/src/common/app-table/components/TableModal.vue +329 -329
- package/src/common/app-table/components/TablePagination.vue +150 -150
- package/src/common/app-table/components/TableSearch.vue +76 -76
- package/src/common/app-table/controllers/useBaseTable.ts +42 -42
- package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
- package/src/common/app-table/controllers/useTableModel.ts +93 -93
- package/src/common/app-toggle/AppToggle.vue +23 -23
- package/src/common/app-wrapper/AppWrapper.vue +28 -28
- package/src/icons/components/table-filter-icon.vue +30 -30
- package/src/icons/dialogs/RemoveIcon.vue +12 -12
- package/src/icons/dialogs/SafetyIcon.vue +12 -12
- package/src/icons/task/attention-icon.vue +13 -13
- package/src/icons/task/clock-icon.vue +10 -10
- package/src/icons/task/delete-icon.vue +10 -10
- package/src/icons/task/fire-icon.vue +16 -16
- package/src/index.ts +86 -84
- package/src/shared/fonts/Inter_18pt-Black.ttf +0 -0
- package/src/shared/fonts/Inter_18pt-Bold.ttf +0 -0
- package/src/shared/fonts/Inter_18pt-Regular.ttf +0 -0
- package/src/shared/fonts/Inter_18pt-SemiBold.ttf +0 -0
- package/src/shared/styles/general.css +125 -96
- package/src/styles/variables.sass +12 -12
- package/src/utils/confirm.ts +12 -12
- package/src/utils/helpers.ts +39 -39
- package/src/utils/notification.ts +9 -9
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
|
-
|
|
3
|
-
import { Api_Project_Dto } from '@/api/types/Api_Projects'
|
|
4
|
-
|
|
5
|
-
class ProjectsService extends ApiService {
|
|
6
|
-
public async fetchProjectById(id: string): Promise<ResponseApi<Api_Project_Dto>> {
|
|
7
|
-
return this.get(`/projects/${id}`)
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
public createProject(params: any): Promise<ResponseApi<any>> {
|
|
11
|
-
return this.post<any, ResponseApi<any>>('/projects', params)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
public editProject(id: string, params: any): Promise<ResponseApi<any>> {
|
|
15
|
-
return this.put<any, ResponseApi<any>>(`/projects/${id}`, params)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
public fetchProjects(params: any): Promise<ResponseApi<Api_Project_Dto[]>> {
|
|
19
|
-
return this.get(`/search/projects`, { params })
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public cloneProject(project: any): Promise<ResponseApi<any>> {
|
|
23
|
-
return this.post<any, ResponseApi<any>>(`projects/${project.id}/clone`, project)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
public archiveProject(id: string, data: any): Promise<ResponseApi<any>> {
|
|
27
|
-
return this.put<any, ResponseApi<any>>(`/projects/${id}`, data)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
public unArchiveProject(id: string, data: any): Promise<ResponseApi<any>> {
|
|
31
|
-
return this.put<any, ResponseApi<any>>(`/projects/${id}`, data)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
public moveAprProject(id: string): Promise<ResponseApi<any>> {
|
|
35
|
-
return this.post<any, ResponseApi<any>>('repairs/move_plan_to_real', {
|
|
36
|
-
repairs: [id],
|
|
37
|
-
})
|
|
38
|
-
}
|
|
39
|
-
public restoreProject(id: string): Promise<ResponseApi<any>> {
|
|
40
|
-
return this.post<any, ResponseApi<any>>('/restore_project', { projects_ids: [id] })
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
public importTasks(payload: any): Promise<ResponseApi<any>> {
|
|
44
|
-
return this.post<any, ResponseApi<any>>('tasks/import', payload)
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
public importKtd(payload: any): Promise<ResponseApi<any>> {
|
|
48
|
-
return this.post<any, ResponseApi<any>>('/parse_ktd', payload, {
|
|
49
|
-
headers: { 'Content-Type': 'multipart/form-data' },
|
|
50
|
-
})
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
public fetchProjectTeamList(id: string): Promise<ResponseApi<any>> {
|
|
54
|
-
return this.put<any, ResponseApi<any>>(`/projects/${id}`, null)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
public deleteProject(id: string): Promise<any> {
|
|
58
|
-
return this.delete<ResponseApi<any>>(`/projects/${id}`)
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
let api: ProjectsService
|
|
63
|
-
|
|
64
|
-
export default function useProjectsService() {
|
|
65
|
-
if (!api) api = new ProjectsService()
|
|
66
|
-
return api
|
|
67
|
-
}
|
|
1
|
+
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
|
+
|
|
3
|
+
import { Api_Project_Dto } from '@/api/types/Api_Projects'
|
|
4
|
+
|
|
5
|
+
class ProjectsService extends ApiService {
|
|
6
|
+
public async fetchProjectById(id: string): Promise<ResponseApi<Api_Project_Dto>> {
|
|
7
|
+
return this.get(`/projects/${id}`)
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public createProject(params: any): Promise<ResponseApi<any>> {
|
|
11
|
+
return this.post<any, ResponseApi<any>>('/projects', params)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public editProject(id: string, params: any): Promise<ResponseApi<any>> {
|
|
15
|
+
return this.put<any, ResponseApi<any>>(`/projects/${id}`, params)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
public fetchProjects(params: any): Promise<ResponseApi<Api_Project_Dto[]>> {
|
|
19
|
+
return this.get(`/search/projects`, { params })
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public cloneProject(project: any): Promise<ResponseApi<any>> {
|
|
23
|
+
return this.post<any, ResponseApi<any>>(`projects/${project.id}/clone`, project)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public archiveProject(id: string, data: any): Promise<ResponseApi<any>> {
|
|
27
|
+
return this.put<any, ResponseApi<any>>(`/projects/${id}`, data)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public unArchiveProject(id: string, data: any): Promise<ResponseApi<any>> {
|
|
31
|
+
return this.put<any, ResponseApi<any>>(`/projects/${id}`, data)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public moveAprProject(id: string): Promise<ResponseApi<any>> {
|
|
35
|
+
return this.post<any, ResponseApi<any>>('repairs/move_plan_to_real', {
|
|
36
|
+
repairs: [id],
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
public restoreProject(id: string): Promise<ResponseApi<any>> {
|
|
40
|
+
return this.post<any, ResponseApi<any>>('/restore_project', { projects_ids: [id] })
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public importTasks(payload: any): Promise<ResponseApi<any>> {
|
|
44
|
+
return this.post<any, ResponseApi<any>>('tasks/import', payload)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public importKtd(payload: any): Promise<ResponseApi<any>> {
|
|
48
|
+
return this.post<any, ResponseApi<any>>('/parse_ktd', payload, {
|
|
49
|
+
headers: { 'Content-Type': 'multipart/form-data' },
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public fetchProjectTeamList(id: string): Promise<ResponseApi<any>> {
|
|
54
|
+
return this.put<any, ResponseApi<any>>(`/projects/${id}`, null)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public deleteProject(id: string): Promise<any> {
|
|
58
|
+
return this.delete<ResponseApi<any>>(`/projects/${id}`)
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let api: ProjectsService
|
|
63
|
+
|
|
64
|
+
export default function useProjectsService() {
|
|
65
|
+
if (!api) api = new ProjectsService()
|
|
66
|
+
return api
|
|
67
|
+
}
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
|
-
import {
|
|
3
|
-
Api_Create_Repair_With_Equipments,
|
|
4
|
-
Api_Equipment_Full_Dto,
|
|
5
|
-
Api_Repair_Dto,
|
|
6
|
-
Api_Update_Repair,
|
|
7
|
-
OptionFilters,
|
|
8
|
-
} from '@/api/types/Api_Repairs'
|
|
9
|
-
|
|
10
|
-
class RepairsService extends ApiService {
|
|
11
|
-
public fetchFilters(fullParams: string): Promise<OptionFilters> {
|
|
12
|
-
return this.get(`get_list_repair?smart=1&${fullParams}`)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
public fetchRepairs(
|
|
16
|
-
isQuery: boolean,
|
|
17
|
-
queries?: string,
|
|
18
|
-
hasTeams?: boolean | string,
|
|
19
|
-
teamsFilter?: string,
|
|
20
|
-
typeFilter?: string,
|
|
21
|
-
): Promise<ResponseApi<Api_Repair_Dto[]>> {
|
|
22
|
-
return this.get(
|
|
23
|
-
'get_list_repair' +
|
|
24
|
-
(isQuery
|
|
25
|
-
? `${queries}&per_page=100000${typeFilter ? '&' + typeFilter : ''}&${!hasTeams ? teamsFilter : ''}`
|
|
26
|
-
: `?per_page=100000${typeFilter ? '&' + typeFilter : ''}&${teamsFilter}`),
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
public fetchEquipment(): Promise<ResponseApi<Api_Equipment_Full_Dto[]>> {
|
|
31
|
-
return this.get('repairs/equipment/list?per_page=100000')
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
public createRepair(payload: Api_Create_Repair_With_Equipments) {
|
|
35
|
-
return this.post<Api_Create_Repair_With_Equipments, any>('/repairs/equipments', payload)
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
public startRepair(id: string): Promise<void> {
|
|
39
|
-
return this.post<null, void>(`/repairs/${id}/start`, null)
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
public finishRepair(id: string) {
|
|
43
|
-
return this.post<any, void>(`/repairs/complete_repair_list`, {
|
|
44
|
-
repairIdList: [id],
|
|
45
|
-
})
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
public finishPreparationProject(id: string) {
|
|
49
|
-
return this.post<null, void>(`/repairs/${id}/finish_preparation`, null)
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
public moveRepairToCurrent(id: string) {
|
|
53
|
-
return this.post<any, void>(`/repairs/transfer_repair_plan_to_current`, {
|
|
54
|
-
repairs: [id],
|
|
55
|
-
})
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
public moveArchiveToCurrent(id: string) {
|
|
59
|
-
return this.post<any, void>(`/repairs/transfer_repair_archive_to_current`, {
|
|
60
|
-
repairs_ids: [id],
|
|
61
|
-
})
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
public moveRepairToApr(id: string) {
|
|
65
|
-
return this.post<any, void>(`/repairs/transfer_repair_current_to_plan`, {
|
|
66
|
-
repairs: [id],
|
|
67
|
-
})
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
public moveRepairToArchive(id: string) {
|
|
71
|
-
return this.post<any, void>(`/repairs/transfer_repair_current_to_archive`, {
|
|
72
|
-
repairs_ids: [id],
|
|
73
|
-
})
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
public restoreRepair(id: string) {
|
|
77
|
-
return this.post<any, void>(`/restore_repair`, {
|
|
78
|
-
repairs_ids: [id],
|
|
79
|
-
})
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
public updateRepair(payload: Api_Update_Repair, id: string) {
|
|
83
|
-
return this.put<Api_Update_Repair, void>(`/repairs/${id}`, payload)
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
public copyRepair(id: string) {
|
|
87
|
-
return this.post<null, any>(`/repairs/${id}/clone`, null)
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
public deleteRepair(id: string) {
|
|
91
|
-
return this.delete<any>(`/repairs/${id}`)
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
let api: RepairsService
|
|
96
|
-
|
|
97
|
-
export default function useRepairsService() {
|
|
98
|
-
if (!api) api = new RepairsService()
|
|
99
|
-
return api
|
|
100
|
-
}
|
|
1
|
+
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
|
+
import {
|
|
3
|
+
Api_Create_Repair_With_Equipments,
|
|
4
|
+
Api_Equipment_Full_Dto,
|
|
5
|
+
Api_Repair_Dto,
|
|
6
|
+
Api_Update_Repair,
|
|
7
|
+
OptionFilters,
|
|
8
|
+
} from '@/api/types/Api_Repairs'
|
|
9
|
+
|
|
10
|
+
class RepairsService extends ApiService {
|
|
11
|
+
public fetchFilters(fullParams: string): Promise<OptionFilters> {
|
|
12
|
+
return this.get(`get_list_repair?smart=1&${fullParams}`)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public fetchRepairs(
|
|
16
|
+
isQuery: boolean,
|
|
17
|
+
queries?: string,
|
|
18
|
+
hasTeams?: boolean | string,
|
|
19
|
+
teamsFilter?: string,
|
|
20
|
+
typeFilter?: string,
|
|
21
|
+
): Promise<ResponseApi<Api_Repair_Dto[]>> {
|
|
22
|
+
return this.get(
|
|
23
|
+
'get_list_repair' +
|
|
24
|
+
(isQuery
|
|
25
|
+
? `${queries}&per_page=100000${typeFilter ? '&' + typeFilter : ''}&${!hasTeams ? teamsFilter : ''}`
|
|
26
|
+
: `?per_page=100000${typeFilter ? '&' + typeFilter : ''}&${teamsFilter}`),
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public fetchEquipment(): Promise<ResponseApi<Api_Equipment_Full_Dto[]>> {
|
|
31
|
+
return this.get('repairs/equipment/list?per_page=100000')
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public createRepair(payload: Api_Create_Repair_With_Equipments) {
|
|
35
|
+
return this.post<Api_Create_Repair_With_Equipments, any>('/repairs/equipments', payload)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public startRepair(id: string): Promise<void> {
|
|
39
|
+
return this.post<null, void>(`/repairs/${id}/start`, null)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public finishRepair(id: string) {
|
|
43
|
+
return this.post<any, void>(`/repairs/complete_repair_list`, {
|
|
44
|
+
repairIdList: [id],
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public finishPreparationProject(id: string) {
|
|
49
|
+
return this.post<null, void>(`/repairs/${id}/finish_preparation`, null)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public moveRepairToCurrent(id: string) {
|
|
53
|
+
return this.post<any, void>(`/repairs/transfer_repair_plan_to_current`, {
|
|
54
|
+
repairs: [id],
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public moveArchiveToCurrent(id: string) {
|
|
59
|
+
return this.post<any, void>(`/repairs/transfer_repair_archive_to_current`, {
|
|
60
|
+
repairs_ids: [id],
|
|
61
|
+
})
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
public moveRepairToApr(id: string) {
|
|
65
|
+
return this.post<any, void>(`/repairs/transfer_repair_current_to_plan`, {
|
|
66
|
+
repairs: [id],
|
|
67
|
+
})
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
public moveRepairToArchive(id: string) {
|
|
71
|
+
return this.post<any, void>(`/repairs/transfer_repair_current_to_archive`, {
|
|
72
|
+
repairs_ids: [id],
|
|
73
|
+
})
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public restoreRepair(id: string) {
|
|
77
|
+
return this.post<any, void>(`/restore_repair`, {
|
|
78
|
+
repairs_ids: [id],
|
|
79
|
+
})
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
public updateRepair(payload: Api_Update_Repair, id: string) {
|
|
83
|
+
return this.put<Api_Update_Repair, void>(`/repairs/${id}`, payload)
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
public copyRepair(id: string) {
|
|
87
|
+
return this.post<null, any>(`/repairs/${id}/clone`, null)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public deleteRepair(id: string) {
|
|
91
|
+
return this.delete<any>(`/repairs/${id}`)
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
let api: RepairsService
|
|
96
|
+
|
|
97
|
+
export default function useRepairsService() {
|
|
98
|
+
if (!api) api = new RepairsService()
|
|
99
|
+
return api
|
|
100
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import ApiService from '@/api/settings/ApiService'
|
|
2
|
+
|
|
3
|
+
class VideoService extends ApiService {
|
|
4
|
+
public async startVideoAnalytics(): Promise<boolean> {
|
|
5
|
+
return await this.post('/statanly/start', null)
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let api: VideoService
|
|
10
|
+
|
|
11
|
+
export default function useVideoService() {
|
|
12
|
+
if (!api) api = new VideoService()
|
|
13
|
+
return api
|
|
14
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Api_Files_Responsible_Dto = unknown
|
|
1
|
+
export type Api_Files_Responsible_Dto = unknown
|
|
@@ -1,55 +1,55 @@
|
|
|
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_Category = {
|
|
22
|
-
code: number
|
|
23
|
-
display_name: string
|
|
24
|
-
name: string
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type Api_Project_Status = {
|
|
28
|
-
id: string
|
|
29
|
-
name: string
|
|
30
|
-
title: string
|
|
31
|
-
description: string
|
|
32
|
-
created_at: string | null
|
|
33
|
-
updated_at: string | null
|
|
34
|
-
deleted_at: string | null
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type Api_Project_Dto = {
|
|
38
|
-
id: string
|
|
39
|
-
name: string
|
|
40
|
-
description: null
|
|
41
|
-
image: null
|
|
42
|
-
plan_date: string | null
|
|
43
|
-
deadline: string | null
|
|
44
|
-
fact_start_date: string | null
|
|
45
|
-
fact_end_date: string | null
|
|
46
|
-
planned_start: string | null
|
|
47
|
-
planned_end: string | null
|
|
48
|
-
deleted_at: string | null
|
|
49
|
-
total_tasks: number
|
|
50
|
-
is_archive: boolean
|
|
51
|
-
teams: Api_Project_Team[]
|
|
52
|
-
status: Api_Project_Status
|
|
53
|
-
category: Api_Project_Category
|
|
54
|
-
repair: Api_Project_Repair | null
|
|
55
|
-
}
|
|
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_Category = {
|
|
22
|
+
code: number
|
|
23
|
+
display_name: string
|
|
24
|
+
name: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Api_Project_Status = {
|
|
28
|
+
id: string
|
|
29
|
+
name: string
|
|
30
|
+
title: string
|
|
31
|
+
description: string
|
|
32
|
+
created_at: string | null
|
|
33
|
+
updated_at: string | null
|
|
34
|
+
deleted_at: string | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Api_Project_Dto = {
|
|
38
|
+
id: string
|
|
39
|
+
name: string
|
|
40
|
+
description: null
|
|
41
|
+
image: null
|
|
42
|
+
plan_date: string | null
|
|
43
|
+
deadline: string | null
|
|
44
|
+
fact_start_date: string | null
|
|
45
|
+
fact_end_date: string | null
|
|
46
|
+
planned_start: string | null
|
|
47
|
+
planned_end: string | null
|
|
48
|
+
deleted_at: string | null
|
|
49
|
+
total_tasks: number
|
|
50
|
+
is_archive: boolean
|
|
51
|
+
teams: Api_Project_Team[]
|
|
52
|
+
status: Api_Project_Status
|
|
53
|
+
category: Api_Project_Category
|
|
54
|
+
repair: Api_Project_Repair | null
|
|
55
|
+
}
|
|
@@ -1,93 +1,93 @@
|
|
|
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_Task_Video_Source_Stream = {
|
|
47
|
-
id: string
|
|
48
|
-
name: string
|
|
49
|
-
url: string
|
|
50
|
-
width: number
|
|
51
|
-
height: number
|
|
52
|
-
fps: string
|
|
53
|
-
login: string
|
|
54
|
-
password: string
|
|
55
|
-
comment: unknown
|
|
56
|
-
work_zones: unknown[]
|
|
57
|
-
video_source: unknown[]
|
|
58
|
-
related_video_sources: unknown[]
|
|
59
|
-
interactive_zones: unknown
|
|
60
|
-
domed: boolean
|
|
61
|
-
snapshot_path: string
|
|
62
|
-
shapes: unknown[]
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export type Api_Create_Repair_With_Equipments = {
|
|
66
|
-
name: string
|
|
67
|
-
display_name: string
|
|
68
|
-
description: string
|
|
69
|
-
equipment_id: string
|
|
70
|
-
power_output_MWh?: number
|
|
71
|
-
cost_per_MWh?: number
|
|
72
|
-
category?: string
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export type Api_Update_Repair = {
|
|
76
|
-
name?: string
|
|
77
|
-
display_name?: string
|
|
78
|
-
description: string
|
|
79
|
-
power_output_MWh?: number
|
|
80
|
-
cost_per_MWh?: number
|
|
81
|
-
category?: string
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export type Api_Repair_Dto = {
|
|
85
|
-
id: string
|
|
86
|
-
name: string
|
|
87
|
-
display_name: string
|
|
88
|
-
description: string
|
|
89
|
-
start_date: string
|
|
90
|
-
end_date: string
|
|
91
|
-
projects: Api_Projects[]
|
|
92
|
-
equipments: Api_Equipment_Full_Dto[]
|
|
93
|
-
}
|
|
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_Task_Video_Source_Stream = {
|
|
47
|
+
id: string
|
|
48
|
+
name: string
|
|
49
|
+
url: string
|
|
50
|
+
width: number
|
|
51
|
+
height: number
|
|
52
|
+
fps: string
|
|
53
|
+
login: string
|
|
54
|
+
password: string
|
|
55
|
+
comment: unknown
|
|
56
|
+
work_zones: unknown[]
|
|
57
|
+
video_source: unknown[]
|
|
58
|
+
related_video_sources: unknown[]
|
|
59
|
+
interactive_zones: unknown
|
|
60
|
+
domed: boolean
|
|
61
|
+
snapshot_path: string
|
|
62
|
+
shapes: unknown[]
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type Api_Create_Repair_With_Equipments = {
|
|
66
|
+
name: string
|
|
67
|
+
display_name: string
|
|
68
|
+
description: string
|
|
69
|
+
equipment_id: string
|
|
70
|
+
power_output_MWh?: number
|
|
71
|
+
cost_per_MWh?: number
|
|
72
|
+
category?: string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type Api_Update_Repair = {
|
|
76
|
+
name?: string
|
|
77
|
+
display_name?: string
|
|
78
|
+
description: string
|
|
79
|
+
power_output_MWh?: number
|
|
80
|
+
cost_per_MWh?: number
|
|
81
|
+
category?: string
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type Api_Repair_Dto = {
|
|
85
|
+
id: string
|
|
86
|
+
name: string
|
|
87
|
+
display_name: string
|
|
88
|
+
description: string
|
|
89
|
+
start_date: string
|
|
90
|
+
end_date: string
|
|
91
|
+
projects: Api_Projects[]
|
|
92
|
+
equipments: Api_Equipment_Full_Dto[]
|
|
93
|
+
}
|