shared-ritm 1.3.68 → 1.3.70
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 +4582 -4433
- package/dist/shared-ritm.umd.js +181 -181
- package/dist/types/api/services/AuthService.d.ts +0 -1
- package/dist/types/api/services/MetricsService.d.ts +2 -1
- package/dist/types/api/services/PhotoService.d.ts +40 -0
- package/dist/types/api/services/UserService.d.ts +1 -2
- package/dist/types/api/settings/ApiService.d.ts +2 -6
- package/dist/types/api/types/Api_Auth.d.ts +0 -15
- package/dist/types/api/types/Api_Metrics.d.ts +18 -0
- package/dist/types/api/types/Api_User.d.ts +0 -9
- package/dist/types/common/app-checkbox/Checkbox.stories.d.ts +5 -1
- package/dist/types/common/app-toggle/Toggle.stories.d.ts +5 -1
- package/dist/types/stories/Button.stories.d.ts +13 -0
- package/dist/types/stories/Checkbox.stories.d.ts +7 -0
- package/dist/types/stories/Confirm.stories.d.ts +8 -0
- package/dist/types/stories/DatePicker.stories.d.ts +8 -0
- package/dist/types/stories/Dropdown.stories.d.ts +8 -0
- package/dist/types/stories/File.stories.d.ts +8 -0
- package/dist/types/stories/Icon.stories.d.ts +7 -0
- package/dist/types/stories/Input.stories.d.ts +11 -0
- package/dist/types/stories/InputNew.stories.d.ts +12 -0
- package/dist/types/stories/InputSearch.stories.d.ts +10 -0
- package/dist/types/stories/Loader.stories.d.ts +8 -0
- package/dist/types/stories/Select.stories.d.ts +7 -0
- package/dist/types/stories/Toggle.stories.d.ts +8 -0
- package/package.json +70 -70
- package/src/App.vue +2461 -2461
- package/src/api/services/AuthService.ts +4 -18
- package/src/api/services/ControlsService.ts +96 -96
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/GanttService.ts +23 -23
- package/src/api/services/MetricsService.ts +127 -123
- package/src/api/services/RepairsService.ts +111 -111
- package/src/api/services/UserService.ts +0 -6
- package/src/api/services/VideoService.ts +118 -118
- package/src/api/settings/ApiService.ts +10 -70
- package/src/api/types/Api_Auth.ts +0 -16
- package/src/api/types/Api_Metrics.ts +26 -5
- package/src/api/types/Api_Repairs.ts +186 -186
- package/src/api/types/Api_Tasks.ts +376 -376
- package/src/api/types/Api_User.ts +0 -10
- package/src/api/types/Api_Video.ts +244 -244
- package/src/common/app-button/Button.stories.ts +369 -369
- package/src/common/app-checkbox/AppCheckbox.vue +17 -12
- package/src/common/app-checkbox/Checkbox.stories.ts +252 -60
- package/src/common/app-date-picker/DatePicker.stories.ts +66 -66
- package/src/common/app-datepicker/Datepicker.stories.ts +145 -145
- package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
- package/src/common/app-dialogs/Confirm.stories.ts +93 -93
- package/src/common/app-dropdown/Dropdown.stories.ts +94 -94
- package/src/common/app-file/File.stories.ts +104 -104
- package/src/common/app-icon/AppIcon.vue +108 -108
- package/src/common/app-icon/Icon.stories.ts +91 -91
- package/src/common/app-input/Input.stories.ts +160 -160
- package/src/common/app-input-new/InputNew.stories.ts +240 -240
- package/src/common/app-input-search/InputSearch.stories.ts +149 -149
- package/src/common/app-layout/components/AppLayoutHeader.vue +289 -289
- package/src/common/app-loader/Loader.stories.ts +114 -114
- package/src/common/app-select/AppSelect.vue +159 -159
- package/src/common/app-select/Select.stories.ts +155 -155
- package/src/common/app-sidebar/AppSidebar.vue +174 -174
- package/src/common/app-table/AppTable.vue +313 -313
- package/src/common/app-table/components/ModalSelect.stories.ts +323 -323
- package/src/common/app-table/components/ModalSelect.vue +302 -302
- package/src/common/app-table/components/TableModal.vue +367 -367
- package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
- package/src/common/app-table/controllers/useTableModel.ts +97 -97
- package/src/common/app-toggle/AppToggle.vue +4 -16
- package/src/common/app-toggle/Toggle.stories.ts +245 -69
- package/src/common/app-wrapper/AppWrapper.vue +31 -31
- package/src/configs/storybook.ts +14 -14
- package/src/index.ts +131 -131
- package/src/shared/styles/general.css +140 -140
- package/src/styles/variables.sass +12 -12
- package/src/utils/helpers.ts +59 -59
|
@@ -74,16 +74,6 @@ export type Api_User = {
|
|
|
74
74
|
positions: Api_Search_User_Positions[]
|
|
75
75
|
warehouses?: Partial<Api_User_Warehouse>[]
|
|
76
76
|
brigades: { id: string; name: string }[]
|
|
77
|
-
password_change_available_at: string
|
|
78
|
-
password_change_due_at: string
|
|
79
|
-
password_last_changed_at: string
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export type Api_User_Change_Password_Payload = {
|
|
83
|
-
email: string
|
|
84
|
-
password: string
|
|
85
|
-
currentPassword: string
|
|
86
|
-
passwordConfirmation: string
|
|
87
77
|
}
|
|
88
78
|
|
|
89
79
|
export type Api_User_Create = {
|
|
@@ -1,244 +1,244 @@
|
|
|
1
|
-
import { Api_Status_DTO, Api_Tasks_Task_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: Api_Video_Source_Work_Zone[]
|
|
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
|
-
}
|
|
199
|
-
|
|
200
|
-
export type Api_Video_Source_Work_Zone_Task = Pick<
|
|
201
|
-
Api_Tasks_Task_Dto,
|
|
202
|
-
| 'id'
|
|
203
|
-
| 'fact_end_date'
|
|
204
|
-
| 'fact_start_date'
|
|
205
|
-
| 'deadline'
|
|
206
|
-
| 'expired'
|
|
207
|
-
| 'name'
|
|
208
|
-
| 'plan_date'
|
|
209
|
-
| 'responsible'
|
|
210
|
-
| 'status'
|
|
211
|
-
| 'time_to_complete_sec'
|
|
212
|
-
> & {
|
|
213
|
-
project_id: string
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export type Api_Video_Source_Work_Zone = Pick<
|
|
217
|
-
Api_Work_Zone_Search,
|
|
218
|
-
| 'id'
|
|
219
|
-
| 'detect_face'
|
|
220
|
-
| 'detect_helmet'
|
|
221
|
-
| 'detect_mask'
|
|
222
|
-
| 'detect_work_time'
|
|
223
|
-
| 'detect_work_zone'
|
|
224
|
-
| 'is_parent'
|
|
225
|
-
| 'name'
|
|
226
|
-
| 'x0'
|
|
227
|
-
| 'x1'
|
|
228
|
-
| 'y0'
|
|
229
|
-
| 'y1'
|
|
230
|
-
| 'video_source_id'
|
|
231
|
-
| 'parent_id'
|
|
232
|
-
| 'type'
|
|
233
|
-
| 'title'
|
|
234
|
-
> & {
|
|
235
|
-
points: unknown[]
|
|
236
|
-
tasks: Api_Video_Source_Work_Zone_Task[]
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export type Api_Video_Source_Economics_Zone = {
|
|
240
|
-
id: string
|
|
241
|
-
power_output_MWh: number | null
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export type Api_Video_Source_Economics = Record<string, Api_Video_Source_Economics_Zone[]>
|
|
1
|
+
import { Api_Status_DTO, Api_Tasks_Task_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: Api_Video_Source_Work_Zone[]
|
|
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
|
+
}
|
|
199
|
+
|
|
200
|
+
export type Api_Video_Source_Work_Zone_Task = Pick<
|
|
201
|
+
Api_Tasks_Task_Dto,
|
|
202
|
+
| 'id'
|
|
203
|
+
| 'fact_end_date'
|
|
204
|
+
| 'fact_start_date'
|
|
205
|
+
| 'deadline'
|
|
206
|
+
| 'expired'
|
|
207
|
+
| 'name'
|
|
208
|
+
| 'plan_date'
|
|
209
|
+
| 'responsible'
|
|
210
|
+
| 'status'
|
|
211
|
+
| 'time_to_complete_sec'
|
|
212
|
+
> & {
|
|
213
|
+
project_id: string
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type Api_Video_Source_Work_Zone = Pick<
|
|
217
|
+
Api_Work_Zone_Search,
|
|
218
|
+
| 'id'
|
|
219
|
+
| 'detect_face'
|
|
220
|
+
| 'detect_helmet'
|
|
221
|
+
| 'detect_mask'
|
|
222
|
+
| 'detect_work_time'
|
|
223
|
+
| 'detect_work_zone'
|
|
224
|
+
| 'is_parent'
|
|
225
|
+
| 'name'
|
|
226
|
+
| 'x0'
|
|
227
|
+
| 'x1'
|
|
228
|
+
| 'y0'
|
|
229
|
+
| 'y1'
|
|
230
|
+
| 'video_source_id'
|
|
231
|
+
| 'parent_id'
|
|
232
|
+
| 'type'
|
|
233
|
+
| 'title'
|
|
234
|
+
> & {
|
|
235
|
+
points: unknown[]
|
|
236
|
+
tasks: Api_Video_Source_Work_Zone_Task[]
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type Api_Video_Source_Economics_Zone = {
|
|
240
|
+
id: string
|
|
241
|
+
power_output_MWh: number | null
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export type Api_Video_Source_Economics = Record<string, Api_Video_Source_Economics_Zone[]>
|