shared-ritm 1.2.111 → 1.2.113
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 +13 -11
- package/dist/shared-ritm.umd.js +6 -6
- package/dist/types/api/services/ComentsServise.d.ts +10 -0
- package/dist/types/api/services/PhotoService.d.ts +51 -38
- package/dist/types/api/services/VideoService.d.ts +1 -0
- package/dist/types/api/types/Api_Users.d.ts +43 -0
- package/package.json +64 -64
- package/src/api/services/BrigadesService.ts +32 -32
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/InstrumentsService.ts +63 -63
- package/src/api/services/ModulesService.ts +27 -27
- package/src/api/services/ProjectsService.ts +72 -72
- package/src/api/services/SearchService.ts +22 -22
- package/src/api/services/UserService.ts +101 -101
- package/src/api/services/VideoService.ts +66 -62
- package/src/api/settings/ApiService.ts +124 -124
- package/src/api/types/Api_Brigades.ts +36 -36
- package/src/api/types/Api_Equipment.ts +3 -3
- package/src/api/types/Api_Instruments.ts +136 -136
- package/src/api/types/Api_Modules.ts +21 -21
- package/src/api/types/Api_Search.ts +77 -77
- package/src/api/types/Api_User.ts +117 -117
- package/src/api/types/Api_Video.ts +123 -123
- package/src/common/app-input-new/AppInputNew.vue +175 -175
- package/src/common/app-layout/components/AppLayoutHeader.vue +3 -2
- package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
- package/src/common/app-table/AppTable.vue +314 -314
- package/src/common/app-table/AppTableLayout.vue +137 -137
- package/src/common/app-table/components/ModalSelect.vue +270 -270
- package/src/common/app-table/components/TableModal.vue +356 -356
- package/src/common/app-table/controllers/useBaseTable.ts +45 -45
- package/src/index.ts +122 -122
- package/src/styles/variables.sass +12 -12
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { Api_Warehouse_Search } from '@/api/types/Api_Instruments'
|
|
2
|
-
|
|
3
|
-
export type Api_Search_User_Passes = {
|
|
4
|
-
id: string
|
|
5
|
-
type: string
|
|
6
|
-
uuid: string
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type Api_Search_User_Positions = {
|
|
10
|
-
id: string
|
|
11
|
-
name: string
|
|
12
|
-
display_name: string
|
|
13
|
-
description: string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type Api_Search_User_Roles = {
|
|
17
|
-
id: string
|
|
18
|
-
name: string
|
|
19
|
-
display_name: string
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type Api_Search_User_Teams = {
|
|
23
|
-
id: string
|
|
24
|
-
name: string
|
|
25
|
-
display_name: string
|
|
26
|
-
roles: Api_Search_User_Roles[]
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type Api_Search_User_Photos = {
|
|
30
|
-
id: string
|
|
31
|
-
name: string
|
|
32
|
-
path: string
|
|
33
|
-
type: string
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export type Api_Search_User = {
|
|
37
|
-
id: string
|
|
38
|
-
full_name: string
|
|
39
|
-
last_name: string
|
|
40
|
-
first_name: string
|
|
41
|
-
patronymic: string
|
|
42
|
-
email: string
|
|
43
|
-
phone: string
|
|
44
|
-
divisions: string
|
|
45
|
-
personnel_number: string
|
|
46
|
-
passes: Api_Search_User_Passes[]
|
|
47
|
-
positions: Api_Search_User_Positions[]
|
|
48
|
-
teams: Api_Search_User_Teams[]
|
|
49
|
-
photos: Api_Search_User_Photos[]
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export type Api_Search_Instruments = {
|
|
53
|
-
id: string
|
|
54
|
-
full_name: string
|
|
55
|
-
last_name: string
|
|
56
|
-
first_name: string
|
|
57
|
-
patronymic: string
|
|
58
|
-
divisions: string
|
|
59
|
-
personnel_number: string
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export type Api_Search_Module_User = Pick<Api_Search_User, 'id' | 'full_name' | 'email'> & {
|
|
63
|
-
teams: Omit<Api_Search_User_Teams, 'roles'>[]
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export type Api_Search_Module = {
|
|
67
|
-
id: string
|
|
68
|
-
RFID: string
|
|
69
|
-
inventory_number: string
|
|
70
|
-
title: string
|
|
71
|
-
type: string
|
|
72
|
-
mac: unknown
|
|
73
|
-
wlan: unknown
|
|
74
|
-
warehouses: Api_Warehouse_Search[]
|
|
75
|
-
user: Api_Search_Module_User
|
|
76
|
-
teams: Omit<Api_Search_User_Teams, 'roles'>[]
|
|
77
|
-
}
|
|
1
|
+
import { Api_Warehouse_Search } from '@/api/types/Api_Instruments'
|
|
2
|
+
|
|
3
|
+
export type Api_Search_User_Passes = {
|
|
4
|
+
id: string
|
|
5
|
+
type: string
|
|
6
|
+
uuid: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type Api_Search_User_Positions = {
|
|
10
|
+
id: string
|
|
11
|
+
name: string
|
|
12
|
+
display_name: string
|
|
13
|
+
description: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Api_Search_User_Roles = {
|
|
17
|
+
id: string
|
|
18
|
+
name: string
|
|
19
|
+
display_name: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type Api_Search_User_Teams = {
|
|
23
|
+
id: string
|
|
24
|
+
name: string
|
|
25
|
+
display_name: string
|
|
26
|
+
roles: Api_Search_User_Roles[]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Api_Search_User_Photos = {
|
|
30
|
+
id: string
|
|
31
|
+
name: string
|
|
32
|
+
path: string
|
|
33
|
+
type: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type Api_Search_User = {
|
|
37
|
+
id: string
|
|
38
|
+
full_name: string
|
|
39
|
+
last_name: string
|
|
40
|
+
first_name: string
|
|
41
|
+
patronymic: string
|
|
42
|
+
email: string
|
|
43
|
+
phone: string
|
|
44
|
+
divisions: string
|
|
45
|
+
personnel_number: string
|
|
46
|
+
passes: Api_Search_User_Passes[]
|
|
47
|
+
positions: Api_Search_User_Positions[]
|
|
48
|
+
teams: Api_Search_User_Teams[]
|
|
49
|
+
photos: Api_Search_User_Photos[]
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type Api_Search_Instruments = {
|
|
53
|
+
id: string
|
|
54
|
+
full_name: string
|
|
55
|
+
last_name: string
|
|
56
|
+
first_name: string
|
|
57
|
+
patronymic: string
|
|
58
|
+
divisions: string
|
|
59
|
+
personnel_number: string
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type Api_Search_Module_User = Pick<Api_Search_User, 'id' | 'full_name' | 'email'> & {
|
|
63
|
+
teams: Omit<Api_Search_User_Teams, 'roles'>[]
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type Api_Search_Module = {
|
|
67
|
+
id: string
|
|
68
|
+
RFID: string
|
|
69
|
+
inventory_number: string
|
|
70
|
+
title: string
|
|
71
|
+
type: string
|
|
72
|
+
mac: unknown
|
|
73
|
+
wlan: unknown
|
|
74
|
+
warehouses: Api_Warehouse_Search[]
|
|
75
|
+
user: Api_Search_Module_User
|
|
76
|
+
teams: Omit<Api_Search_User_Teams, 'roles'>[]
|
|
77
|
+
}
|
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
|
|
2
|
-
|
|
3
|
-
export type Api_User_Team = {
|
|
4
|
-
id: string
|
|
5
|
-
name: string
|
|
6
|
-
display_name: string
|
|
7
|
-
description: string
|
|
8
|
-
created_at: string
|
|
9
|
-
updated_at: string
|
|
10
|
-
pivot?: {
|
|
11
|
-
team_id: string
|
|
12
|
-
user_id: string
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type Api_User_Team_Search = {
|
|
17
|
-
id: string
|
|
18
|
-
name: string
|
|
19
|
-
display_name: string
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type Api_User_Photo = {
|
|
23
|
-
id: string
|
|
24
|
-
name: string
|
|
25
|
-
path: string
|
|
26
|
-
type: string
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type Api_User_Archive_History_Item = {
|
|
30
|
-
user_id: string
|
|
31
|
-
responsible_id: string
|
|
32
|
-
archived_at: string
|
|
33
|
-
reason: string | null
|
|
34
|
-
restored_at: string | null
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type Api_User_Task = {
|
|
38
|
-
id: string
|
|
39
|
-
name: string
|
|
40
|
-
project_id: string
|
|
41
|
-
status: Api_Tasks_Status_Dto
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export type Api_User = {
|
|
45
|
-
id: string
|
|
46
|
-
RFID: string
|
|
47
|
-
avatar: unknown | null
|
|
48
|
-
avatar_id: string | null
|
|
49
|
-
change_password: string
|
|
50
|
-
created_at: string
|
|
51
|
-
updated_at: string
|
|
52
|
-
deleted_at: string | null
|
|
53
|
-
dismissal_at: string | null
|
|
54
|
-
email_verified_at: string
|
|
55
|
-
divisions: string
|
|
56
|
-
email: string
|
|
57
|
-
face_recognition_id: string | null
|
|
58
|
-
first_name: string
|
|
59
|
-
full_name: string
|
|
60
|
-
last_name: string
|
|
61
|
-
patronymic: string
|
|
62
|
-
personnel_number: number
|
|
63
|
-
phone: string
|
|
64
|
-
profession: string
|
|
65
|
-
teams: Api_User_Team[]
|
|
66
|
-
photos: Api_User_Photo[]
|
|
67
|
-
archiveHistory: Api_User_Archive_History_Item[]
|
|
68
|
-
assigned_tasks?: Api_User_Task[]
|
|
69
|
-
responsible_tasks?: Api_User_Task[]
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export type Api_User_Create = {
|
|
73
|
-
last_name?: string
|
|
74
|
-
first_name?: string
|
|
75
|
-
patronymic?: string
|
|
76
|
-
email?: string
|
|
77
|
-
phone?: string
|
|
78
|
-
divisions?: string
|
|
79
|
-
positions?: [string]
|
|
80
|
-
teams?: {
|
|
81
|
-
team_id: string
|
|
82
|
-
roles: string[]
|
|
83
|
-
}[]
|
|
84
|
-
current_password?: string
|
|
85
|
-
password?: string
|
|
86
|
-
password_confirmation?: string
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export type Api_User_Permission = {
|
|
90
|
-
id: string
|
|
91
|
-
name: string
|
|
92
|
-
display_name: string
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export type Api_User_Role = {
|
|
96
|
-
id: string
|
|
97
|
-
name: string
|
|
98
|
-
display_name: string
|
|
99
|
-
permissions?: Api_User_Permission[]
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export type Api_User_Position = {
|
|
103
|
-
id: string
|
|
104
|
-
name: string
|
|
105
|
-
display_name: string
|
|
106
|
-
description?: string
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export type Api_User_Delete_Body = {
|
|
110
|
-
user_id: string
|
|
111
|
-
archive_reason?: string
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export type Api_User_Delete_Photos_Body = {
|
|
115
|
-
user_id: string
|
|
116
|
-
photos?: string[]
|
|
117
|
-
}
|
|
1
|
+
import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
|
|
2
|
+
|
|
3
|
+
export type Api_User_Team = {
|
|
4
|
+
id: string
|
|
5
|
+
name: string
|
|
6
|
+
display_name: string
|
|
7
|
+
description: string
|
|
8
|
+
created_at: string
|
|
9
|
+
updated_at: string
|
|
10
|
+
pivot?: {
|
|
11
|
+
team_id: string
|
|
12
|
+
user_id: string
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Api_User_Team_Search = {
|
|
17
|
+
id: string
|
|
18
|
+
name: string
|
|
19
|
+
display_name: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type Api_User_Photo = {
|
|
23
|
+
id: string
|
|
24
|
+
name: string
|
|
25
|
+
path: string
|
|
26
|
+
type: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Api_User_Archive_History_Item = {
|
|
30
|
+
user_id: string
|
|
31
|
+
responsible_id: string
|
|
32
|
+
archived_at: string
|
|
33
|
+
reason: string | null
|
|
34
|
+
restored_at: string | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Api_User_Task = {
|
|
38
|
+
id: string
|
|
39
|
+
name: string
|
|
40
|
+
project_id: string
|
|
41
|
+
status: Api_Tasks_Status_Dto
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type Api_User = {
|
|
45
|
+
id: string
|
|
46
|
+
RFID: string
|
|
47
|
+
avatar: unknown | null
|
|
48
|
+
avatar_id: string | null
|
|
49
|
+
change_password: string
|
|
50
|
+
created_at: string
|
|
51
|
+
updated_at: string
|
|
52
|
+
deleted_at: string | null
|
|
53
|
+
dismissal_at: string | null
|
|
54
|
+
email_verified_at: string
|
|
55
|
+
divisions: string
|
|
56
|
+
email: string
|
|
57
|
+
face_recognition_id: string | null
|
|
58
|
+
first_name: string
|
|
59
|
+
full_name: string
|
|
60
|
+
last_name: string
|
|
61
|
+
patronymic: string
|
|
62
|
+
personnel_number: number
|
|
63
|
+
phone: string
|
|
64
|
+
profession: string
|
|
65
|
+
teams: Api_User_Team[]
|
|
66
|
+
photos: Api_User_Photo[]
|
|
67
|
+
archiveHistory: Api_User_Archive_History_Item[]
|
|
68
|
+
assigned_tasks?: Api_User_Task[]
|
|
69
|
+
responsible_tasks?: Api_User_Task[]
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type Api_User_Create = {
|
|
73
|
+
last_name?: string
|
|
74
|
+
first_name?: string
|
|
75
|
+
patronymic?: string
|
|
76
|
+
email?: string
|
|
77
|
+
phone?: string
|
|
78
|
+
divisions?: string
|
|
79
|
+
positions?: [string]
|
|
80
|
+
teams?: {
|
|
81
|
+
team_id: string
|
|
82
|
+
roles: string[]
|
|
83
|
+
}[]
|
|
84
|
+
current_password?: string
|
|
85
|
+
password?: string
|
|
86
|
+
password_confirmation?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type Api_User_Permission = {
|
|
90
|
+
id: string
|
|
91
|
+
name: string
|
|
92
|
+
display_name: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type Api_User_Role = {
|
|
96
|
+
id: string
|
|
97
|
+
name: string
|
|
98
|
+
display_name: string
|
|
99
|
+
permissions?: Api_User_Permission[]
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type Api_User_Position = {
|
|
103
|
+
id: string
|
|
104
|
+
name: string
|
|
105
|
+
display_name: string
|
|
106
|
+
description?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type Api_User_Delete_Body = {
|
|
110
|
+
user_id: string
|
|
111
|
+
archive_reason?: string
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type Api_User_Delete_Photos_Body = {
|
|
115
|
+
user_id: string
|
|
116
|
+
photos?: string[]
|
|
117
|
+
}
|
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
import { Api_Status_DTO } from '@/api/types/Api_Tasks'
|
|
2
|
-
|
|
3
|
-
export type Api_Video_Source = {
|
|
4
|
-
id: string
|
|
5
|
-
name: string
|
|
6
|
-
login: string
|
|
7
|
-
password: string
|
|
8
|
-
camera_id: string | null
|
|
9
|
-
comment: string | null
|
|
10
|
-
data: unknown | null
|
|
11
|
-
snapshot_path: string | null
|
|
12
|
-
url: string
|
|
13
|
-
updated_at: string
|
|
14
|
-
created_at: string
|
|
15
|
-
fps: string
|
|
16
|
-
domed: boolean
|
|
17
|
-
height: number
|
|
18
|
-
width: number
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type Api_Work_Zone_Search = {
|
|
22
|
-
id: string
|
|
23
|
-
name: string
|
|
24
|
-
title: string
|
|
25
|
-
type: number
|
|
26
|
-
parent_id: string | null
|
|
27
|
-
created_at: string
|
|
28
|
-
deleted_at: string | null
|
|
29
|
-
updated_at: string
|
|
30
|
-
description: string
|
|
31
|
-
detect_face: boolean
|
|
32
|
-
detect_helmet: boolean
|
|
33
|
-
detect_mask: boolean
|
|
34
|
-
detect_work_time: boolean
|
|
35
|
-
detect_work_zone: boolean
|
|
36
|
-
has_tasks: boolean
|
|
37
|
-
is_parent: boolean
|
|
38
|
-
x0: number
|
|
39
|
-
x1: number
|
|
40
|
-
y0: number
|
|
41
|
-
y1: number
|
|
42
|
-
video_source: Api_Video_Source
|
|
43
|
-
video_source_id: string
|
|
44
|
-
warehouse_by_work_zone_instruments: unknown[]
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export type Api_Work_Zone_Usage_User = {
|
|
48
|
-
id: string
|
|
49
|
-
user_id: string
|
|
50
|
-
user_full_name: string
|
|
51
|
-
work_zone_id: string
|
|
52
|
-
start_interval: string
|
|
53
|
-
end_interval: string
|
|
54
|
-
minutes: number
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export type Api_Work_Zone_Task = {
|
|
58
|
-
id: string
|
|
59
|
-
name: string
|
|
60
|
-
plan_date: string
|
|
61
|
-
planned_start: null | string
|
|
62
|
-
planned_end: null | string
|
|
63
|
-
deadline: string
|
|
64
|
-
is_critical_path: boolean | null
|
|
65
|
-
is_expired: boolean
|
|
66
|
-
power_output_MWh: number
|
|
67
|
-
cost_per_MWh: number | null
|
|
68
|
-
fact_start_date: null | string
|
|
69
|
-
fact_end_date: null | string
|
|
70
|
-
time_to_complete_sec: number | null
|
|
71
|
-
status: Api_Status_DTO[]
|
|
72
|
-
usage_users: Api_Work_Zone_Usage_User[]
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export type Api_Work_Zone_Coords = {
|
|
76
|
-
x0: number
|
|
77
|
-
x1: number
|
|
78
|
-
y0: number
|
|
79
|
-
y1: number
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export type Api_Work_Zone = {
|
|
83
|
-
id: string
|
|
84
|
-
title: string
|
|
85
|
-
created_at: string
|
|
86
|
-
video_source: { id: string; name: string }
|
|
87
|
-
coordinates: Api_Work_Zone_Coords
|
|
88
|
-
warehouse_by_work_zone_instruments: unknown[]
|
|
89
|
-
tasks: Api_Work_Zone_Task[]
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export type Api_Video_Source_Search = {
|
|
93
|
-
comment: string
|
|
94
|
-
domed: boolean
|
|
95
|
-
fps: string
|
|
96
|
-
height: number
|
|
97
|
-
id: string
|
|
98
|
-
interactive_zones: unknown
|
|
99
|
-
login: string
|
|
100
|
-
name: string
|
|
101
|
-
password: string
|
|
102
|
-
related_video_sources: unknown[]
|
|
103
|
-
shapes: unknown[]
|
|
104
|
-
snapshot_path: string
|
|
105
|
-
url: string
|
|
106
|
-
video_source: Api_Video_Source_Search[]
|
|
107
|
-
width: number
|
|
108
|
-
work_zones: unknown[]
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export type Api_Video_Source_Create = {
|
|
112
|
-
fps: string
|
|
113
|
-
height: number
|
|
114
|
-
login: string
|
|
115
|
-
name: string
|
|
116
|
-
password: string
|
|
117
|
-
url: string
|
|
118
|
-
width: number
|
|
119
|
-
comment?: string
|
|
120
|
-
domed?: boolean
|
|
121
|
-
video_source_ids?: string[]
|
|
122
|
-
snapshot?: string
|
|
123
|
-
}
|
|
1
|
+
import { Api_Status_DTO } from '@/api/types/Api_Tasks'
|
|
2
|
+
|
|
3
|
+
export type Api_Video_Source = {
|
|
4
|
+
id: string
|
|
5
|
+
name: string
|
|
6
|
+
login: string
|
|
7
|
+
password: string
|
|
8
|
+
camera_id: string | null
|
|
9
|
+
comment: string | null
|
|
10
|
+
data: unknown | null
|
|
11
|
+
snapshot_path: string | null
|
|
12
|
+
url: string
|
|
13
|
+
updated_at: string
|
|
14
|
+
created_at: string
|
|
15
|
+
fps: string
|
|
16
|
+
domed: boolean
|
|
17
|
+
height: number
|
|
18
|
+
width: number
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type Api_Work_Zone_Search = {
|
|
22
|
+
id: string
|
|
23
|
+
name: string
|
|
24
|
+
title: string
|
|
25
|
+
type: number
|
|
26
|
+
parent_id: string | null
|
|
27
|
+
created_at: string
|
|
28
|
+
deleted_at: string | null
|
|
29
|
+
updated_at: string
|
|
30
|
+
description: string
|
|
31
|
+
detect_face: boolean
|
|
32
|
+
detect_helmet: boolean
|
|
33
|
+
detect_mask: boolean
|
|
34
|
+
detect_work_time: boolean
|
|
35
|
+
detect_work_zone: boolean
|
|
36
|
+
has_tasks: boolean
|
|
37
|
+
is_parent: boolean
|
|
38
|
+
x0: number
|
|
39
|
+
x1: number
|
|
40
|
+
y0: number
|
|
41
|
+
y1: number
|
|
42
|
+
video_source: Api_Video_Source
|
|
43
|
+
video_source_id: string
|
|
44
|
+
warehouse_by_work_zone_instruments: unknown[]
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type Api_Work_Zone_Usage_User = {
|
|
48
|
+
id: string
|
|
49
|
+
user_id: string
|
|
50
|
+
user_full_name: string
|
|
51
|
+
work_zone_id: string
|
|
52
|
+
start_interval: string
|
|
53
|
+
end_interval: string
|
|
54
|
+
minutes: number
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type Api_Work_Zone_Task = {
|
|
58
|
+
id: string
|
|
59
|
+
name: string
|
|
60
|
+
plan_date: string
|
|
61
|
+
planned_start: null | string
|
|
62
|
+
planned_end: null | string
|
|
63
|
+
deadline: string
|
|
64
|
+
is_critical_path: boolean | null
|
|
65
|
+
is_expired: boolean
|
|
66
|
+
power_output_MWh: number
|
|
67
|
+
cost_per_MWh: number | null
|
|
68
|
+
fact_start_date: null | string
|
|
69
|
+
fact_end_date: null | string
|
|
70
|
+
time_to_complete_sec: number | null
|
|
71
|
+
status: Api_Status_DTO[]
|
|
72
|
+
usage_users: Api_Work_Zone_Usage_User[]
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type Api_Work_Zone_Coords = {
|
|
76
|
+
x0: number
|
|
77
|
+
x1: number
|
|
78
|
+
y0: number
|
|
79
|
+
y1: number
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type Api_Work_Zone = {
|
|
83
|
+
id: string
|
|
84
|
+
title: string
|
|
85
|
+
created_at: string
|
|
86
|
+
video_source: { id: string; name: string }
|
|
87
|
+
coordinates: Api_Work_Zone_Coords
|
|
88
|
+
warehouse_by_work_zone_instruments: unknown[]
|
|
89
|
+
tasks: Api_Work_Zone_Task[]
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type Api_Video_Source_Search = {
|
|
93
|
+
comment: string
|
|
94
|
+
domed: boolean
|
|
95
|
+
fps: string
|
|
96
|
+
height: number
|
|
97
|
+
id: string
|
|
98
|
+
interactive_zones: unknown
|
|
99
|
+
login: string
|
|
100
|
+
name: string
|
|
101
|
+
password: string
|
|
102
|
+
related_video_sources: unknown[]
|
|
103
|
+
shapes: unknown[]
|
|
104
|
+
snapshot_path: string
|
|
105
|
+
url: string
|
|
106
|
+
video_source: Api_Video_Source_Search[]
|
|
107
|
+
width: number
|
|
108
|
+
work_zones: unknown[]
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type Api_Video_Source_Create = {
|
|
112
|
+
fps: string
|
|
113
|
+
height: number
|
|
114
|
+
login: string
|
|
115
|
+
name: string
|
|
116
|
+
password: string
|
|
117
|
+
url: string
|
|
118
|
+
width: number
|
|
119
|
+
comment?: string
|
|
120
|
+
domed?: boolean
|
|
121
|
+
video_source_ids?: string[]
|
|
122
|
+
snapshot?: string
|
|
123
|
+
}
|