shared-ritm 1.3.25 → 1.3.26
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 +8778 -8704
- package/dist/shared-ritm.umd.js +324 -324
- package/dist/types/api/services/PhotoService.d.ts +38 -51
- package/dist/types/api/services/RepairsService.d.ts +1 -1
- package/dist/types/api/settings/ApiService.d.ts +1 -1
- package/dist/types/api/types/Api_Repairs.d.ts +12 -0
- package/package.json +65 -65
- package/src/App.vue +2461 -2461
- package/src/api/services/BrigadesService.ts +32 -32
- package/src/api/services/ControlsService.ts +96 -96
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/InstrumentsService.ts +68 -68
- package/src/api/services/MetricsService.ts +123 -123
- package/src/api/services/ModulesService.ts +27 -27
- package/src/api/services/ProjectsService.ts +83 -83
- package/src/api/services/RepairsService.ts +111 -111
- package/src/api/services/ScheduleService.ts +69 -69
- package/src/api/services/SearchService.ts +22 -22
- package/src/api/services/UserService.ts +119 -119
- package/src/api/services/VideoService.ts +108 -108
- package/src/api/settings/ApiService.ts +124 -124
- package/src/api/types/Api_Auth.ts +105 -105
- package/src/api/types/Api_Brigades.ts +36 -36
- package/src/api/types/Api_Controls.ts +111 -111
- package/src/api/types/Api_Equipment.ts +3 -3
- package/src/api/types/Api_Instruments.ts +156 -156
- package/src/api/types/Api_Metrics.ts +5 -5
- package/src/api/types/Api_Modules.ts +21 -21
- package/src/api/types/Api_Projects.ts +62 -62
- package/src/api/types/Api_Repairs.ts +152 -140
- package/src/api/types/Api_Schedule.ts +64 -64
- package/src/api/types/Api_Search.ts +80 -80
- package/src/api/types/Api_Tasks.ts +372 -372
- package/src/api/types/Api_User.ts +146 -146
- package/src/api/types/Api_Video.ts +198 -198
- package/src/common/app-datepicker/AppDatepicker.vue +218 -218
- package/src/common/app-dropdown/AppDropdown.vue +37 -37
- package/src/common/app-input-new/AppInputNew.vue +179 -179
- package/src/common/app-layout/AppLayout.vue +84 -84
- package/src/common/app-modal/index.vue +96 -96
- package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
- package/src/common/app-sidebar/AppSidebar.vue +174 -174
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +149 -149
- package/src/common/app-table/AppTable.vue +308 -308
- package/src/common/app-table/AppTableLayout.vue +137 -137
- package/src/common/app-table/components/TableModal.vue +356 -356
- package/src/common/app-table/controllers/useBaseTable.ts +45 -45
- package/src/common/app-table/controllers/useTableModel.ts +102 -102
- package/src/icons/dialogs/SafetyIcon.vue +12 -12
- package/src/index.ts +131 -131
- package/src/styles/variables.sass +12 -12
- package/src/utils/files.ts +19 -19
- package/dist/types/api/services/ComentsServise.d.ts +0 -10
- package/dist/types/api/types/Api_Users.d.ts +0 -43
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
|
|
2
|
-
import { Api_Instrument } from '@/api/types/Api_Instruments'
|
|
3
|
-
import { Api_Search_User_Passes, Api_Search_User_Positions } from '@/api/types/Api_Search'
|
|
4
|
-
|
|
5
|
-
export type Api_User_Team = {
|
|
6
|
-
id: string
|
|
7
|
-
name: string
|
|
8
|
-
display_name: string
|
|
9
|
-
description: string
|
|
10
|
-
created_at: string
|
|
11
|
-
updated_at: string
|
|
12
|
-
pivot?: {
|
|
13
|
-
team_id: string
|
|
14
|
-
user_id: string
|
|
15
|
-
}
|
|
16
|
-
roles?: Api_User_Role[]
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type Api_User_Team_Search = {
|
|
20
|
-
id: string
|
|
21
|
-
name: string
|
|
22
|
-
display_name: string
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type Api_User_Photo = {
|
|
26
|
-
id: string
|
|
27
|
-
name: string
|
|
28
|
-
path: string
|
|
29
|
-
type: string
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export type Api_User_Archive_History_Item = {
|
|
33
|
-
user_id: string
|
|
34
|
-
responsible_id: string
|
|
35
|
-
archived_at: string
|
|
36
|
-
reason: string | null
|
|
37
|
-
restored_at: string | null
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type Api_User_Task = {
|
|
41
|
-
id: string
|
|
42
|
-
name: string
|
|
43
|
-
project_id: string
|
|
44
|
-
status: Api_Tasks_Status_Dto
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export type Api_User = {
|
|
48
|
-
id: string
|
|
49
|
-
RFID: string
|
|
50
|
-
avatar: unknown | null
|
|
51
|
-
avatar_id: string | null
|
|
52
|
-
change_password: string
|
|
53
|
-
created_at: string
|
|
54
|
-
updated_at: string
|
|
55
|
-
deleted_at: string | null
|
|
56
|
-
dismissal_at: string | null
|
|
57
|
-
email_verified_at: string
|
|
58
|
-
divisions: string
|
|
59
|
-
email: string
|
|
60
|
-
face_recognition_id: string | null
|
|
61
|
-
first_name: string
|
|
62
|
-
full_name: string
|
|
63
|
-
last_name: string
|
|
64
|
-
patronymic: string
|
|
65
|
-
personnel_number: number
|
|
66
|
-
phone: string
|
|
67
|
-
profession: string
|
|
68
|
-
teams: Api_User_Team[]
|
|
69
|
-
photos: Api_User_Photo[]
|
|
70
|
-
archiveHistory: Api_User_Archive_History_Item[]
|
|
71
|
-
assigned_tasks?: Api_User_Task[]
|
|
72
|
-
responsible_tasks?: Api_User_Task[]
|
|
73
|
-
passes?: Api_Search_User_Passes[]
|
|
74
|
-
positions: Api_Search_User_Positions[]
|
|
75
|
-
warehouses?: Partial<Api_User_Warehouse>[]
|
|
76
|
-
brigades: { id: string; name: string }[]
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export type Api_User_Create = {
|
|
80
|
-
last_name?: string
|
|
81
|
-
first_name?: string
|
|
82
|
-
patronymic?: string
|
|
83
|
-
email?: string
|
|
84
|
-
phone?: string
|
|
85
|
-
divisions?: string
|
|
86
|
-
positions?: [string]
|
|
87
|
-
teams?: {
|
|
88
|
-
team_id: string
|
|
89
|
-
roles: string[]
|
|
90
|
-
}[]
|
|
91
|
-
current_password?: string
|
|
92
|
-
password?: string
|
|
93
|
-
password_confirmation?: string
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export type Api_User_Permission = {
|
|
97
|
-
id: string
|
|
98
|
-
name: string
|
|
99
|
-
display_name: string
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export type Api_User_Role = {
|
|
103
|
-
id: string
|
|
104
|
-
name: string
|
|
105
|
-
display_name: string
|
|
106
|
-
permissions?: Api_User_Permission[]
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export type Api_User_Position = {
|
|
110
|
-
id: string
|
|
111
|
-
name: string
|
|
112
|
-
display_name: string
|
|
113
|
-
description?: string
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export type Api_User_Delete_Body = {
|
|
117
|
-
user_id: string
|
|
118
|
-
archive_reason?: string
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export type Api_User_Delete_Photos_Body = {
|
|
122
|
-
user_id: string
|
|
123
|
-
photos?: string[]
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export type Api_User_Warehouse = Pick<
|
|
127
|
-
Api_Instrument,
|
|
128
|
-
| 'id'
|
|
129
|
-
| 'RFID'
|
|
130
|
-
| 'instrument_type'
|
|
131
|
-
| 'inventory_number'
|
|
132
|
-
| 'location'
|
|
133
|
-
| 'misplacement'
|
|
134
|
-
| 'module'
|
|
135
|
-
| 'name'
|
|
136
|
-
| 'responsible'
|
|
137
|
-
| 'status'
|
|
138
|
-
| 'storage'
|
|
139
|
-
| 'updated_at'
|
|
140
|
-
> & {
|
|
141
|
-
issued_in: string | null
|
|
142
|
-
registry: {
|
|
143
|
-
id: string
|
|
144
|
-
title: string
|
|
145
|
-
} | null
|
|
146
|
-
}
|
|
1
|
+
import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
|
|
2
|
+
import { Api_Instrument } from '@/api/types/Api_Instruments'
|
|
3
|
+
import { Api_Search_User_Passes, Api_Search_User_Positions } from '@/api/types/Api_Search'
|
|
4
|
+
|
|
5
|
+
export type Api_User_Team = {
|
|
6
|
+
id: string
|
|
7
|
+
name: string
|
|
8
|
+
display_name: string
|
|
9
|
+
description: string
|
|
10
|
+
created_at: string
|
|
11
|
+
updated_at: string
|
|
12
|
+
pivot?: {
|
|
13
|
+
team_id: string
|
|
14
|
+
user_id: string
|
|
15
|
+
}
|
|
16
|
+
roles?: Api_User_Role[]
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type Api_User_Team_Search = {
|
|
20
|
+
id: string
|
|
21
|
+
name: string
|
|
22
|
+
display_name: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type Api_User_Photo = {
|
|
26
|
+
id: string
|
|
27
|
+
name: string
|
|
28
|
+
path: string
|
|
29
|
+
type: string
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type Api_User_Archive_History_Item = {
|
|
33
|
+
user_id: string
|
|
34
|
+
responsible_id: string
|
|
35
|
+
archived_at: string
|
|
36
|
+
reason: string | null
|
|
37
|
+
restored_at: string | null
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type Api_User_Task = {
|
|
41
|
+
id: string
|
|
42
|
+
name: string
|
|
43
|
+
project_id: string
|
|
44
|
+
status: Api_Tasks_Status_Dto
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type Api_User = {
|
|
48
|
+
id: string
|
|
49
|
+
RFID: string
|
|
50
|
+
avatar: unknown | null
|
|
51
|
+
avatar_id: string | null
|
|
52
|
+
change_password: string
|
|
53
|
+
created_at: string
|
|
54
|
+
updated_at: string
|
|
55
|
+
deleted_at: string | null
|
|
56
|
+
dismissal_at: string | null
|
|
57
|
+
email_verified_at: string
|
|
58
|
+
divisions: string
|
|
59
|
+
email: string
|
|
60
|
+
face_recognition_id: string | null
|
|
61
|
+
first_name: string
|
|
62
|
+
full_name: string
|
|
63
|
+
last_name: string
|
|
64
|
+
patronymic: string
|
|
65
|
+
personnel_number: number
|
|
66
|
+
phone: string
|
|
67
|
+
profession: string
|
|
68
|
+
teams: Api_User_Team[]
|
|
69
|
+
photos: Api_User_Photo[]
|
|
70
|
+
archiveHistory: Api_User_Archive_History_Item[]
|
|
71
|
+
assigned_tasks?: Api_User_Task[]
|
|
72
|
+
responsible_tasks?: Api_User_Task[]
|
|
73
|
+
passes?: Api_Search_User_Passes[]
|
|
74
|
+
positions: Api_Search_User_Positions[]
|
|
75
|
+
warehouses?: Partial<Api_User_Warehouse>[]
|
|
76
|
+
brigades: { id: string; name: string }[]
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type Api_User_Create = {
|
|
80
|
+
last_name?: string
|
|
81
|
+
first_name?: string
|
|
82
|
+
patronymic?: string
|
|
83
|
+
email?: string
|
|
84
|
+
phone?: string
|
|
85
|
+
divisions?: string
|
|
86
|
+
positions?: [string]
|
|
87
|
+
teams?: {
|
|
88
|
+
team_id: string
|
|
89
|
+
roles: string[]
|
|
90
|
+
}[]
|
|
91
|
+
current_password?: string
|
|
92
|
+
password?: string
|
|
93
|
+
password_confirmation?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type Api_User_Permission = {
|
|
97
|
+
id: string
|
|
98
|
+
name: string
|
|
99
|
+
display_name: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type Api_User_Role = {
|
|
103
|
+
id: string
|
|
104
|
+
name: string
|
|
105
|
+
display_name: string
|
|
106
|
+
permissions?: Api_User_Permission[]
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type Api_User_Position = {
|
|
110
|
+
id: string
|
|
111
|
+
name: string
|
|
112
|
+
display_name: string
|
|
113
|
+
description?: string
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type Api_User_Delete_Body = {
|
|
117
|
+
user_id: string
|
|
118
|
+
archive_reason?: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type Api_User_Delete_Photos_Body = {
|
|
122
|
+
user_id: string
|
|
123
|
+
photos?: string[]
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type Api_User_Warehouse = Pick<
|
|
127
|
+
Api_Instrument,
|
|
128
|
+
| 'id'
|
|
129
|
+
| 'RFID'
|
|
130
|
+
| 'instrument_type'
|
|
131
|
+
| 'inventory_number'
|
|
132
|
+
| 'location'
|
|
133
|
+
| 'misplacement'
|
|
134
|
+
| 'module'
|
|
135
|
+
| 'name'
|
|
136
|
+
| 'responsible'
|
|
137
|
+
| 'status'
|
|
138
|
+
| 'storage'
|
|
139
|
+
| 'updated_at'
|
|
140
|
+
> & {
|
|
141
|
+
issued_in: string | null
|
|
142
|
+
registry: {
|
|
143
|
+
id: string
|
|
144
|
+
title: string
|
|
145
|
+
} | null
|
|
146
|
+
}
|
|
@@ -1,198 +1,198 @@
|
|
|
1
|
-
import { Api_Status_DTO } from '@/api/types/Api_Tasks'
|
|
2
|
-
import { Api_Work_Zone_By_Tasks } from '@/api/types/Api_Repairs'
|
|
3
|
-
|
|
4
|
-
export type Api_Video_Source = {
|
|
5
|
-
id: string
|
|
6
|
-
name: string
|
|
7
|
-
login: string
|
|
8
|
-
password: string
|
|
9
|
-
camera_id: string | null
|
|
10
|
-
comment: string | null
|
|
11
|
-
data: unknown | null
|
|
12
|
-
snapshot_path: string | null
|
|
13
|
-
url: string
|
|
14
|
-
updated_at: string
|
|
15
|
-
created_at: string
|
|
16
|
-
fps: string
|
|
17
|
-
domed: boolean
|
|
18
|
-
height: number
|
|
19
|
-
width: number
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type Api_Work_Zone_Search = {
|
|
23
|
-
id: string
|
|
24
|
-
name: string
|
|
25
|
-
title: string
|
|
26
|
-
type: number
|
|
27
|
-
parent_id: string | null
|
|
28
|
-
created_at: string
|
|
29
|
-
deleted_at: string | null
|
|
30
|
-
updated_at: string
|
|
31
|
-
description: string
|
|
32
|
-
detect_face: boolean
|
|
33
|
-
detect_helmet: boolean
|
|
34
|
-
detect_mask: boolean
|
|
35
|
-
detect_work_time: boolean
|
|
36
|
-
detect_work_zone: boolean
|
|
37
|
-
has_tasks: boolean
|
|
38
|
-
is_parent: boolean
|
|
39
|
-
x0: number
|
|
40
|
-
x1: number
|
|
41
|
-
y0: number
|
|
42
|
-
y1: number
|
|
43
|
-
video_source: Api_Video_Source
|
|
44
|
-
video_source_id: string
|
|
45
|
-
warehouse_by_work_zone_instruments: unknown[]
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type Api_Work_Zone_Usage_User = {
|
|
49
|
-
id: string
|
|
50
|
-
user_id: string
|
|
51
|
-
user_full_name: string
|
|
52
|
-
work_zone_id: string
|
|
53
|
-
start_interval: string
|
|
54
|
-
end_interval: string
|
|
55
|
-
minutes: number
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export type Api_Work_Zone_Task = {
|
|
59
|
-
id: string
|
|
60
|
-
name: string
|
|
61
|
-
plan_date: string
|
|
62
|
-
planned_start: null | string
|
|
63
|
-
planned_end: null | string
|
|
64
|
-
deadline: string
|
|
65
|
-
is_critical_path: boolean | null
|
|
66
|
-
is_expired: boolean
|
|
67
|
-
power_output_MWh: number
|
|
68
|
-
cost_per_MWh: number | null
|
|
69
|
-
fact_start_date: null | string
|
|
70
|
-
fact_end_date: null | string
|
|
71
|
-
time_to_complete_sec: number | null
|
|
72
|
-
status: Api_Status_DTO
|
|
73
|
-
usage_users: Api_Work_Zone_Usage_User[]
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export type Api_Work_Zone_Coords = {
|
|
77
|
-
x0: number
|
|
78
|
-
x1: number
|
|
79
|
-
y0: number
|
|
80
|
-
y1: number
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export type Api_Work_Zone = {
|
|
84
|
-
id: string
|
|
85
|
-
title: string
|
|
86
|
-
created_at: string
|
|
87
|
-
video_source: { id: string; name: string }
|
|
88
|
-
coordinates: Api_Work_Zone_Coords
|
|
89
|
-
warehouse_by_work_zone_instruments: unknown[]
|
|
90
|
-
tasks: Api_Work_Zone_Task[]
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export type Api_Video_Source_Search = {
|
|
94
|
-
comment: string
|
|
95
|
-
domed: boolean
|
|
96
|
-
fps: string
|
|
97
|
-
height: number
|
|
98
|
-
id: string
|
|
99
|
-
interactive_zones: unknown
|
|
100
|
-
login: string
|
|
101
|
-
name: string
|
|
102
|
-
password: string
|
|
103
|
-
related_video_sources: unknown[]
|
|
104
|
-
shapes: unknown[]
|
|
105
|
-
snapshot_path: string
|
|
106
|
-
url: string
|
|
107
|
-
video_source: Api_Video_Source_Search[]
|
|
108
|
-
width: number
|
|
109
|
-
work_zones: unknown[]
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export type Api_Video_Source_Create = {
|
|
113
|
-
fps: string
|
|
114
|
-
height: number
|
|
115
|
-
login: string
|
|
116
|
-
name: string
|
|
117
|
-
password: string
|
|
118
|
-
url: string
|
|
119
|
-
width: number
|
|
120
|
-
comment?: string
|
|
121
|
-
domed?: boolean
|
|
122
|
-
video_source_ids?: string[]
|
|
123
|
-
snapshot?: string
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export type Api_Video_Source_By_Repair_Project = {
|
|
127
|
-
id: string
|
|
128
|
-
name: string
|
|
129
|
-
deadline: string
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export type Api_Video_Source_By_Repair = {
|
|
133
|
-
list_video_source: {
|
|
134
|
-
id: string
|
|
135
|
-
name: string
|
|
136
|
-
url: string
|
|
137
|
-
work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
|
|
138
|
-
}[]
|
|
139
|
-
project: Api_Video_Source_By_Repair_Project
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export type Api_Video_Training_Status = {
|
|
143
|
-
'global+face': string | null
|
|
144
|
-
'global+global': string | null
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export type Api_Video_Point = {
|
|
148
|
-
id?: string
|
|
149
|
-
x: number
|
|
150
|
-
y: number
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export type Api_Video_Polygon = {
|
|
154
|
-
id: string
|
|
155
|
-
count?: number
|
|
156
|
-
points: Api_Video_Point[]
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export type Api_Video_Dote = {
|
|
160
|
-
id?: string
|
|
161
|
-
type?: string
|
|
162
|
-
x: number
|
|
163
|
-
y: number
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export type Api_Video_Combination_Origin = {
|
|
167
|
-
[key: string]: {
|
|
168
|
-
id: string
|
|
169
|
-
name: string
|
|
170
|
-
src: string
|
|
171
|
-
domed: boolean
|
|
172
|
-
doteData: {
|
|
173
|
-
doteCount: number
|
|
174
|
-
dotes: Api_Video_Dote[]
|
|
175
|
-
selectedDote: unknown
|
|
176
|
-
}
|
|
177
|
-
polygonData: {
|
|
178
|
-
polygonCount: number
|
|
179
|
-
polygons: Api_Video_Polygon[]
|
|
180
|
-
selectedPolygon: string | null
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export type Api_Video_Combination = {
|
|
186
|
-
id: number
|
|
187
|
-
created_at: string
|
|
188
|
-
updated_at: string | null
|
|
189
|
-
video_source: Api_Video_Source[]
|
|
190
|
-
data: {
|
|
191
|
-
face_cam_id: string
|
|
192
|
-
global_cam_id: string
|
|
193
|
-
polygon_height: number
|
|
194
|
-
polygon_width: number
|
|
195
|
-
polygon: number[][]
|
|
196
|
-
}
|
|
197
|
-
origin_data: Api_Video_Combination_Origin
|
|
198
|
-
}
|
|
1
|
+
import { Api_Status_DTO } from '@/api/types/Api_Tasks'
|
|
2
|
+
import { Api_Work_Zone_By_Tasks } from '@/api/types/Api_Repairs'
|
|
3
|
+
|
|
4
|
+
export type Api_Video_Source = {
|
|
5
|
+
id: string
|
|
6
|
+
name: string
|
|
7
|
+
login: string
|
|
8
|
+
password: string
|
|
9
|
+
camera_id: string | null
|
|
10
|
+
comment: string | null
|
|
11
|
+
data: unknown | null
|
|
12
|
+
snapshot_path: string | null
|
|
13
|
+
url: string
|
|
14
|
+
updated_at: string
|
|
15
|
+
created_at: string
|
|
16
|
+
fps: string
|
|
17
|
+
domed: boolean
|
|
18
|
+
height: number
|
|
19
|
+
width: number
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type Api_Work_Zone_Search = {
|
|
23
|
+
id: string
|
|
24
|
+
name: string
|
|
25
|
+
title: string
|
|
26
|
+
type: number
|
|
27
|
+
parent_id: string | null
|
|
28
|
+
created_at: string
|
|
29
|
+
deleted_at: string | null
|
|
30
|
+
updated_at: string
|
|
31
|
+
description: string
|
|
32
|
+
detect_face: boolean
|
|
33
|
+
detect_helmet: boolean
|
|
34
|
+
detect_mask: boolean
|
|
35
|
+
detect_work_time: boolean
|
|
36
|
+
detect_work_zone: boolean
|
|
37
|
+
has_tasks: boolean
|
|
38
|
+
is_parent: boolean
|
|
39
|
+
x0: number
|
|
40
|
+
x1: number
|
|
41
|
+
y0: number
|
|
42
|
+
y1: number
|
|
43
|
+
video_source: Api_Video_Source
|
|
44
|
+
video_source_id: string
|
|
45
|
+
warehouse_by_work_zone_instruments: unknown[]
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type Api_Work_Zone_Usage_User = {
|
|
49
|
+
id: string
|
|
50
|
+
user_id: string
|
|
51
|
+
user_full_name: string
|
|
52
|
+
work_zone_id: string
|
|
53
|
+
start_interval: string
|
|
54
|
+
end_interval: string
|
|
55
|
+
minutes: number
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type Api_Work_Zone_Task = {
|
|
59
|
+
id: string
|
|
60
|
+
name: string
|
|
61
|
+
plan_date: string
|
|
62
|
+
planned_start: null | string
|
|
63
|
+
planned_end: null | string
|
|
64
|
+
deadline: string
|
|
65
|
+
is_critical_path: boolean | null
|
|
66
|
+
is_expired: boolean
|
|
67
|
+
power_output_MWh: number
|
|
68
|
+
cost_per_MWh: number | null
|
|
69
|
+
fact_start_date: null | string
|
|
70
|
+
fact_end_date: null | string
|
|
71
|
+
time_to_complete_sec: number | null
|
|
72
|
+
status: Api_Status_DTO
|
|
73
|
+
usage_users: Api_Work_Zone_Usage_User[]
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type Api_Work_Zone_Coords = {
|
|
77
|
+
x0: number
|
|
78
|
+
x1: number
|
|
79
|
+
y0: number
|
|
80
|
+
y1: number
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type Api_Work_Zone = {
|
|
84
|
+
id: string
|
|
85
|
+
title: string
|
|
86
|
+
created_at: string
|
|
87
|
+
video_source: { id: string; name: string }
|
|
88
|
+
coordinates: Api_Work_Zone_Coords
|
|
89
|
+
warehouse_by_work_zone_instruments: unknown[]
|
|
90
|
+
tasks: Api_Work_Zone_Task[]
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type Api_Video_Source_Search = {
|
|
94
|
+
comment: string
|
|
95
|
+
domed: boolean
|
|
96
|
+
fps: string
|
|
97
|
+
height: number
|
|
98
|
+
id: string
|
|
99
|
+
interactive_zones: unknown
|
|
100
|
+
login: string
|
|
101
|
+
name: string
|
|
102
|
+
password: string
|
|
103
|
+
related_video_sources: unknown[]
|
|
104
|
+
shapes: unknown[]
|
|
105
|
+
snapshot_path: string
|
|
106
|
+
url: string
|
|
107
|
+
video_source: Api_Video_Source_Search[]
|
|
108
|
+
width: number
|
|
109
|
+
work_zones: unknown[]
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type Api_Video_Source_Create = {
|
|
113
|
+
fps: string
|
|
114
|
+
height: number
|
|
115
|
+
login: string
|
|
116
|
+
name: string
|
|
117
|
+
password: string
|
|
118
|
+
url: string
|
|
119
|
+
width: number
|
|
120
|
+
comment?: string
|
|
121
|
+
domed?: boolean
|
|
122
|
+
video_source_ids?: string[]
|
|
123
|
+
snapshot?: string
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type Api_Video_Source_By_Repair_Project = {
|
|
127
|
+
id: string
|
|
128
|
+
name: string
|
|
129
|
+
deadline: string
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export type Api_Video_Source_By_Repair = {
|
|
133
|
+
list_video_source: {
|
|
134
|
+
id: string
|
|
135
|
+
name: string
|
|
136
|
+
url: string
|
|
137
|
+
work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
|
|
138
|
+
}[]
|
|
139
|
+
project: Api_Video_Source_By_Repair_Project
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type Api_Video_Training_Status = {
|
|
143
|
+
'global+face': string | null
|
|
144
|
+
'global+global': string | null
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export type Api_Video_Point = {
|
|
148
|
+
id?: string
|
|
149
|
+
x: number
|
|
150
|
+
y: number
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type Api_Video_Polygon = {
|
|
154
|
+
id: string
|
|
155
|
+
count?: number
|
|
156
|
+
points: Api_Video_Point[]
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export type Api_Video_Dote = {
|
|
160
|
+
id?: string
|
|
161
|
+
type?: string
|
|
162
|
+
x: number
|
|
163
|
+
y: number
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export type Api_Video_Combination_Origin = {
|
|
167
|
+
[key: string]: {
|
|
168
|
+
id: string
|
|
169
|
+
name: string
|
|
170
|
+
src: string
|
|
171
|
+
domed: boolean
|
|
172
|
+
doteData: {
|
|
173
|
+
doteCount: number
|
|
174
|
+
dotes: Api_Video_Dote[]
|
|
175
|
+
selectedDote: unknown
|
|
176
|
+
}
|
|
177
|
+
polygonData: {
|
|
178
|
+
polygonCount: number
|
|
179
|
+
polygons: Api_Video_Polygon[]
|
|
180
|
+
selectedPolygon: string | null
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export type Api_Video_Combination = {
|
|
186
|
+
id: number
|
|
187
|
+
created_at: string
|
|
188
|
+
updated_at: string | null
|
|
189
|
+
video_source: Api_Video_Source[]
|
|
190
|
+
data: {
|
|
191
|
+
face_cam_id: string
|
|
192
|
+
global_cam_id: string
|
|
193
|
+
polygon_height: number
|
|
194
|
+
polygon_width: number
|
|
195
|
+
polygon: number[][]
|
|
196
|
+
}
|
|
197
|
+
origin_data: Api_Video_Combination_Origin
|
|
198
|
+
}
|