shared-ritm 1.2.118 → 1.2.119
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 +1474 -1467
- package/dist/shared-ritm.umd.js +105 -105
- 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/ProjectsService.d.ts +3 -1
- package/dist/types/api/types/Api_Projects.d.ts +4 -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 +8 -1
- package/src/api/services/SearchService.ts +22 -22
- package/src/api/services/UserService.ts +101 -101
- package/src/api/services/VideoService.ts +71 -71
- 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_Projects.ts +5 -0
- package/src/api/types/Api_Repairs.ts +117 -117
- 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 +140 -140
- package/src/common/app-input-new/AppInputNew.vue +175 -175
- package/src/common/app-layout/components/AppLayoutHeader.vue +23 -1
- 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,36 +1,36 @@
|
|
|
1
|
-
import { Api_User, Api_User_Team_Search } from '@/api/types/Api_User'
|
|
2
|
-
import { Api_Tasks_Position_Dto } from '@/api/types/Api_Tasks'
|
|
3
|
-
|
|
4
|
-
export type Api_Brigade_Master = {
|
|
5
|
-
id: string
|
|
6
|
-
full_name: string
|
|
7
|
-
email: string
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type Api_Brigade_Position = {
|
|
11
|
-
id: string
|
|
12
|
-
user: Pick<Api_User, 'id' | 'first_name' | 'last_name' | 'patronymic' | 'email' | 'full_name'> | null
|
|
13
|
-
position: Api_Tasks_Position_Dto
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type Api_Brigade = {
|
|
17
|
-
id: string
|
|
18
|
-
name: string
|
|
19
|
-
task_master: Api_Brigade_Master
|
|
20
|
-
teams: Api_User_Team_Search[]
|
|
21
|
-
positions: Api_Brigade_Position[]
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type Api_Brigade_Create = Pick<Api_Brigade, 'name' | 'teams'> & {
|
|
25
|
-
positions?: Api_Brigade_Position[]
|
|
26
|
-
task_master_user_id: string
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type Api_Brigade_Search = {
|
|
30
|
-
id: string
|
|
31
|
-
name: string
|
|
32
|
-
created_at: string
|
|
33
|
-
updated_at: string
|
|
34
|
-
task_master: Api_Brigade_Master
|
|
35
|
-
teams: Api_User_Team_Search[]
|
|
36
|
-
}
|
|
1
|
+
import { Api_User, Api_User_Team_Search } from '@/api/types/Api_User'
|
|
2
|
+
import { Api_Tasks_Position_Dto } from '@/api/types/Api_Tasks'
|
|
3
|
+
|
|
4
|
+
export type Api_Brigade_Master = {
|
|
5
|
+
id: string
|
|
6
|
+
full_name: string
|
|
7
|
+
email: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type Api_Brigade_Position = {
|
|
11
|
+
id: string
|
|
12
|
+
user: Pick<Api_User, 'id' | 'first_name' | 'last_name' | 'patronymic' | 'email' | 'full_name'> | null
|
|
13
|
+
position: Api_Tasks_Position_Dto
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Api_Brigade = {
|
|
17
|
+
id: string
|
|
18
|
+
name: string
|
|
19
|
+
task_master: Api_Brigade_Master
|
|
20
|
+
teams: Api_User_Team_Search[]
|
|
21
|
+
positions: Api_Brigade_Position[]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type Api_Brigade_Create = Pick<Api_Brigade, 'name' | 'teams'> & {
|
|
25
|
+
positions?: Api_Brigade_Position[]
|
|
26
|
+
task_master_user_id: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Api_Brigade_Search = {
|
|
30
|
+
id: string
|
|
31
|
+
name: string
|
|
32
|
+
created_at: string
|
|
33
|
+
updated_at: string
|
|
34
|
+
task_master: Api_Brigade_Master
|
|
35
|
+
teams: Api_User_Team_Search[]
|
|
36
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Api_Equipment_Full_Dto } from '@/api/types/Api_Repairs'
|
|
2
|
-
|
|
3
|
-
export type Api_Equipment_Create = Omit<Api_Equipment_Full_Dto, 'id'>
|
|
1
|
+
import { Api_Equipment_Full_Dto } from '@/api/types/Api_Repairs'
|
|
2
|
+
|
|
3
|
+
export type Api_Equipment_Create = Omit<Api_Equipment_Full_Dto, 'id'>
|
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
import { Api_User } from '../types/Api_User'
|
|
2
|
-
import { Api_Status_DTO } from '@/api/types/Api_Tasks'
|
|
3
|
-
import { Api_Search_User } from '@/api/types/Api_Search'
|
|
4
|
-
|
|
5
|
-
export type Api_Instrument_Storage = {
|
|
6
|
-
id: string
|
|
7
|
-
created_at: string
|
|
8
|
-
deleted_at: string | null
|
|
9
|
-
updated_at: string
|
|
10
|
-
description: string
|
|
11
|
-
name: string
|
|
12
|
-
title: string
|
|
13
|
-
parent: unknown | null
|
|
14
|
-
parents: unknown[]
|
|
15
|
-
state_id: unknown | null
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type Api_Instrument_Type = {
|
|
19
|
-
id: string
|
|
20
|
-
name: string
|
|
21
|
-
created_at: string
|
|
22
|
-
updated_at: string
|
|
23
|
-
deleted_at: string | null
|
|
24
|
-
icon: string
|
|
25
|
-
storage_id: string
|
|
26
|
-
storage: Api_Instrument_Storage
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type Api_Instrument_Location = {
|
|
30
|
-
id: string
|
|
31
|
-
name: string
|
|
32
|
-
title: string
|
|
33
|
-
description: string
|
|
34
|
-
created_at: string
|
|
35
|
-
updated_at: string
|
|
36
|
-
deleted_at: string | null
|
|
37
|
-
state_id: string | null
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type Api_Instrument_Status = {
|
|
41
|
-
id: string
|
|
42
|
-
description: string
|
|
43
|
-
name: string
|
|
44
|
-
title: string
|
|
45
|
-
created_at: string
|
|
46
|
-
updated_at: string
|
|
47
|
-
deleted_at: string | null
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export type Api_Instrument = {
|
|
51
|
-
id: string
|
|
52
|
-
RFID: string | null
|
|
53
|
-
instrument_id: string
|
|
54
|
-
arrival_at: string
|
|
55
|
-
created_at: string
|
|
56
|
-
supply_at: string
|
|
57
|
-
updated_at: string
|
|
58
|
-
deleted_at: string | null
|
|
59
|
-
inventory_number: string
|
|
60
|
-
instrument_type: Api_Instrument_Type
|
|
61
|
-
invoice_ref_key: string
|
|
62
|
-
last_status_updated_at: string
|
|
63
|
-
location_id: string
|
|
64
|
-
location: Api_Instrument_Location
|
|
65
|
-
misplacement: boolean
|
|
66
|
-
module: string | null
|
|
67
|
-
module_id: string | null
|
|
68
|
-
name: string
|
|
69
|
-
pressure: unknown | null
|
|
70
|
-
registry_module_id: string
|
|
71
|
-
responsible_id: string
|
|
72
|
-
responsible: Api_User
|
|
73
|
-
status: Api_Instrument_Status
|
|
74
|
-
status_id: string
|
|
75
|
-
storage: Api_Instrument_Storage
|
|
76
|
-
supervisor: unknown | null
|
|
77
|
-
supervisor_id: string
|
|
78
|
-
type: unknown | null
|
|
79
|
-
weight: unknown | null
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export type Api_instruments_HistoryResponse = {
|
|
83
|
-
data: Api_Instrument[]
|
|
84
|
-
from: number
|
|
85
|
-
to: number
|
|
86
|
-
total: number
|
|
87
|
-
per_page: number
|
|
88
|
-
current_page: number
|
|
89
|
-
total_pages: number
|
|
90
|
-
last_page_url: string
|
|
91
|
-
first_page_url: string
|
|
92
|
-
next_page_url: string | null
|
|
93
|
-
prev_page_url: string | null
|
|
94
|
-
path: string
|
|
95
|
-
links: {
|
|
96
|
-
label: string
|
|
97
|
-
url: string
|
|
98
|
-
active: boolean
|
|
99
|
-
}[]
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export type Api_Warehouse_Search = Omit<
|
|
103
|
-
Api_Instrument,
|
|
104
|
-
| 'created_at'
|
|
105
|
-
| 'deleted_at'
|
|
106
|
-
| 'invoice_ref_key'
|
|
107
|
-
| 'last_status_updated_at'
|
|
108
|
-
| 'pressure'
|
|
109
|
-
| 'registry_module_id'
|
|
110
|
-
| 'supervisor'
|
|
111
|
-
| 'supervisor_id'
|
|
112
|
-
| 'type'
|
|
113
|
-
| 'weight'
|
|
114
|
-
> & {
|
|
115
|
-
issued_in: unknown | null
|
|
116
|
-
registry: {
|
|
117
|
-
id: string
|
|
118
|
-
title: string
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export type Api_Warehouse_Create = {
|
|
123
|
-
instrument_id: string
|
|
124
|
-
inventory_number: string
|
|
125
|
-
module_id?: string
|
|
126
|
-
registry_module_id?: string
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export type Api_Warehouse_Status_History_Item = {
|
|
130
|
-
old_status: Api_Status_DTO
|
|
131
|
-
new_status: Api_Status_DTO
|
|
132
|
-
created_at: string
|
|
133
|
-
responsible: Omit<Api_Search_User, 'photos' | 'divisions' | 'passes'> & {
|
|
134
|
-
roles: { id: string; display_name: string }[]
|
|
135
|
-
}
|
|
136
|
-
}
|
|
1
|
+
import { Api_User } from '../types/Api_User'
|
|
2
|
+
import { Api_Status_DTO } from '@/api/types/Api_Tasks'
|
|
3
|
+
import { Api_Search_User } from '@/api/types/Api_Search'
|
|
4
|
+
|
|
5
|
+
export type Api_Instrument_Storage = {
|
|
6
|
+
id: string
|
|
7
|
+
created_at: string
|
|
8
|
+
deleted_at: string | null
|
|
9
|
+
updated_at: string
|
|
10
|
+
description: string
|
|
11
|
+
name: string
|
|
12
|
+
title: string
|
|
13
|
+
parent: unknown | null
|
|
14
|
+
parents: unknown[]
|
|
15
|
+
state_id: unknown | null
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type Api_Instrument_Type = {
|
|
19
|
+
id: string
|
|
20
|
+
name: string
|
|
21
|
+
created_at: string
|
|
22
|
+
updated_at: string
|
|
23
|
+
deleted_at: string | null
|
|
24
|
+
icon: string
|
|
25
|
+
storage_id: string
|
|
26
|
+
storage: Api_Instrument_Storage
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Api_Instrument_Location = {
|
|
30
|
+
id: string
|
|
31
|
+
name: string
|
|
32
|
+
title: string
|
|
33
|
+
description: string
|
|
34
|
+
created_at: string
|
|
35
|
+
updated_at: string
|
|
36
|
+
deleted_at: string | null
|
|
37
|
+
state_id: string | null
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type Api_Instrument_Status = {
|
|
41
|
+
id: string
|
|
42
|
+
description: string
|
|
43
|
+
name: string
|
|
44
|
+
title: string
|
|
45
|
+
created_at: string
|
|
46
|
+
updated_at: string
|
|
47
|
+
deleted_at: string | null
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type Api_Instrument = {
|
|
51
|
+
id: string
|
|
52
|
+
RFID: string | null
|
|
53
|
+
instrument_id: string
|
|
54
|
+
arrival_at: string
|
|
55
|
+
created_at: string
|
|
56
|
+
supply_at: string
|
|
57
|
+
updated_at: string
|
|
58
|
+
deleted_at: string | null
|
|
59
|
+
inventory_number: string
|
|
60
|
+
instrument_type: Api_Instrument_Type
|
|
61
|
+
invoice_ref_key: string
|
|
62
|
+
last_status_updated_at: string
|
|
63
|
+
location_id: string
|
|
64
|
+
location: Api_Instrument_Location
|
|
65
|
+
misplacement: boolean
|
|
66
|
+
module: string | null
|
|
67
|
+
module_id: string | null
|
|
68
|
+
name: string
|
|
69
|
+
pressure: unknown | null
|
|
70
|
+
registry_module_id: string
|
|
71
|
+
responsible_id: string
|
|
72
|
+
responsible: Api_User
|
|
73
|
+
status: Api_Instrument_Status
|
|
74
|
+
status_id: string
|
|
75
|
+
storage: Api_Instrument_Storage
|
|
76
|
+
supervisor: unknown | null
|
|
77
|
+
supervisor_id: string
|
|
78
|
+
type: unknown | null
|
|
79
|
+
weight: unknown | null
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type Api_instruments_HistoryResponse = {
|
|
83
|
+
data: Api_Instrument[]
|
|
84
|
+
from: number
|
|
85
|
+
to: number
|
|
86
|
+
total: number
|
|
87
|
+
per_page: number
|
|
88
|
+
current_page: number
|
|
89
|
+
total_pages: number
|
|
90
|
+
last_page_url: string
|
|
91
|
+
first_page_url: string
|
|
92
|
+
next_page_url: string | null
|
|
93
|
+
prev_page_url: string | null
|
|
94
|
+
path: string
|
|
95
|
+
links: {
|
|
96
|
+
label: string
|
|
97
|
+
url: string
|
|
98
|
+
active: boolean
|
|
99
|
+
}[]
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type Api_Warehouse_Search = Omit<
|
|
103
|
+
Api_Instrument,
|
|
104
|
+
| 'created_at'
|
|
105
|
+
| 'deleted_at'
|
|
106
|
+
| 'invoice_ref_key'
|
|
107
|
+
| 'last_status_updated_at'
|
|
108
|
+
| 'pressure'
|
|
109
|
+
| 'registry_module_id'
|
|
110
|
+
| 'supervisor'
|
|
111
|
+
| 'supervisor_id'
|
|
112
|
+
| 'type'
|
|
113
|
+
| 'weight'
|
|
114
|
+
> & {
|
|
115
|
+
issued_in: unknown | null
|
|
116
|
+
registry: {
|
|
117
|
+
id: string
|
|
118
|
+
title: string
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type Api_Warehouse_Create = {
|
|
123
|
+
instrument_id: string
|
|
124
|
+
inventory_number: string
|
|
125
|
+
module_id?: string
|
|
126
|
+
registry_module_id?: string
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type Api_Warehouse_Status_History_Item = {
|
|
130
|
+
old_status: Api_Status_DTO
|
|
131
|
+
new_status: Api_Status_DTO
|
|
132
|
+
created_at: string
|
|
133
|
+
responsible: Omit<Api_Search_User, 'photos' | 'divisions' | 'passes'> & {
|
|
134
|
+
roles: { id: string; display_name: string }[]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Api_Search_Module } from '@/api/types/Api_Search'
|
|
2
|
-
import { Api_Instrument, Api_Instrument_Location } from '@/api/types/Api_Instruments'
|
|
3
|
-
|
|
4
|
-
export type Api_Module_Create = Pick<Api_Search_Module, 'RFID' | 'inventory_number' | 'title' | 'type'> & {
|
|
5
|
-
user_id: string
|
|
6
|
-
teams: string[]
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type Api_Module = Api_Search_Module & {
|
|
10
|
-
auth_count: number
|
|
11
|
-
auth_failed_count: number
|
|
12
|
-
instrument: Pick<Api_Instrument, 'id' | 'RFID' | 'instrument_id' | 'inventory_number' | 'name'> | null
|
|
13
|
-
inventory_completed_count: number
|
|
14
|
-
location: Pick<Api_Instrument_Location, 'id' | 'name' | 'title' | 'state_id' | 'description'> | null
|
|
15
|
-
location_id: string | null
|
|
16
|
-
team_id: string | null
|
|
17
|
-
tun: unknown
|
|
18
|
-
user_id: string
|
|
19
|
-
warehouse_id: string | null
|
|
20
|
-
work_zones: unknown[]
|
|
21
|
-
}
|
|
1
|
+
import { Api_Search_Module } from '@/api/types/Api_Search'
|
|
2
|
+
import { Api_Instrument, Api_Instrument_Location } from '@/api/types/Api_Instruments'
|
|
3
|
+
|
|
4
|
+
export type Api_Module_Create = Pick<Api_Search_Module, 'RFID' | 'inventory_number' | 'title' | 'type'> & {
|
|
5
|
+
user_id: string
|
|
6
|
+
teams: string[]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type Api_Module = Api_Search_Module & {
|
|
10
|
+
auth_count: number
|
|
11
|
+
auth_failed_count: number
|
|
12
|
+
instrument: Pick<Api_Instrument, 'id' | 'RFID' | 'instrument_id' | 'inventory_number' | 'name'> | null
|
|
13
|
+
inventory_completed_count: number
|
|
14
|
+
location: Pick<Api_Instrument_Location, 'id' | 'name' | 'title' | 'state_id' | 'description'> | null
|
|
15
|
+
location_id: string | null
|
|
16
|
+
team_id: string | null
|
|
17
|
+
tun: unknown
|
|
18
|
+
user_id: string
|
|
19
|
+
warehouse_id: string | null
|
|
20
|
+
work_zones: unknown[]
|
|
21
|
+
}
|
|
@@ -1,117 +1,117 @@
|
|
|
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_Work_Zone_By_Tasks = {
|
|
36
|
-
coordinates: { x0: number; x1: number; y0: number; y1: number }
|
|
37
|
-
id: string
|
|
38
|
-
tasks: unknown[]
|
|
39
|
-
title: string
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type Api_Task_Video_Source = {
|
|
43
|
-
id: string
|
|
44
|
-
name: string
|
|
45
|
-
work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type Api_Task_Video_Source_Stream = {
|
|
49
|
-
id: string
|
|
50
|
-
name: string
|
|
51
|
-
url: string
|
|
52
|
-
width: number
|
|
53
|
-
height: number
|
|
54
|
-
fps: string
|
|
55
|
-
login: string
|
|
56
|
-
password: string
|
|
57
|
-
comment: unknown
|
|
58
|
-
work_zones: unknown[]
|
|
59
|
-
video_source: unknown[]
|
|
60
|
-
related_video_sources: unknown[]
|
|
61
|
-
interactive_zones: unknown
|
|
62
|
-
domed: boolean
|
|
63
|
-
snapshot_path: string
|
|
64
|
-
shapes: unknown[]
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export type Api_Create_Repair_With_Equipments = {
|
|
68
|
-
name: string
|
|
69
|
-
display_name: string
|
|
70
|
-
description?: string
|
|
71
|
-
equipment_id: string
|
|
72
|
-
power_output_MWh?: number
|
|
73
|
-
cost_per_MWh?: number
|
|
74
|
-
category: number
|
|
75
|
-
user_id_list?: string[]
|
|
76
|
-
team_id_list?: string[]
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipments, 'category' | 'equipment_id'> & {
|
|
80
|
-
repair_template_id: string
|
|
81
|
-
plan_start_date: string
|
|
82
|
-
task_id_list: string[]
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export type Api_Update_Repair = {
|
|
86
|
-
name?: string
|
|
87
|
-
display_name?: string
|
|
88
|
-
description?: string | null
|
|
89
|
-
power_output_MWh?: number | null
|
|
90
|
-
cost_per_MWh?: number | null
|
|
91
|
-
category?: number
|
|
92
|
-
user_id_list?: string[]
|
|
93
|
-
team_id_list?: string[]
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export type Api_Repair_Dto = {
|
|
97
|
-
id: string
|
|
98
|
-
name: string
|
|
99
|
-
display_name: string
|
|
100
|
-
description: string
|
|
101
|
-
start_date: string
|
|
102
|
-
end_date: string
|
|
103
|
-
projects: Api_Projects[]
|
|
104
|
-
equipments: Api_Equipment_Full_Dto[]
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export type Api_Repair_Template = {
|
|
108
|
-
id: string
|
|
109
|
-
repair_seconds: number
|
|
110
|
-
equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
|
|
111
|
-
category: {
|
|
112
|
-
display_name: string
|
|
113
|
-
name: string
|
|
114
|
-
code: number
|
|
115
|
-
}
|
|
116
|
-
task_list: string
|
|
117
|
-
}
|
|
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_Work_Zone_By_Tasks = {
|
|
36
|
+
coordinates: { x0: number; x1: number; y0: number; y1: number }
|
|
37
|
+
id: string
|
|
38
|
+
tasks: unknown[]
|
|
39
|
+
title: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type Api_Task_Video_Source = {
|
|
43
|
+
id: string
|
|
44
|
+
name: string
|
|
45
|
+
work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type Api_Task_Video_Source_Stream = {
|
|
49
|
+
id: string
|
|
50
|
+
name: string
|
|
51
|
+
url: string
|
|
52
|
+
width: number
|
|
53
|
+
height: number
|
|
54
|
+
fps: string
|
|
55
|
+
login: string
|
|
56
|
+
password: string
|
|
57
|
+
comment: unknown
|
|
58
|
+
work_zones: unknown[]
|
|
59
|
+
video_source: unknown[]
|
|
60
|
+
related_video_sources: unknown[]
|
|
61
|
+
interactive_zones: unknown
|
|
62
|
+
domed: boolean
|
|
63
|
+
snapshot_path: string
|
|
64
|
+
shapes: unknown[]
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type Api_Create_Repair_With_Equipments = {
|
|
68
|
+
name: string
|
|
69
|
+
display_name: string
|
|
70
|
+
description?: string
|
|
71
|
+
equipment_id: string
|
|
72
|
+
power_output_MWh?: number
|
|
73
|
+
cost_per_MWh?: number
|
|
74
|
+
category: number
|
|
75
|
+
user_id_list?: string[]
|
|
76
|
+
team_id_list?: string[]
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipments, 'category' | 'equipment_id'> & {
|
|
80
|
+
repair_template_id: string
|
|
81
|
+
plan_start_date: string
|
|
82
|
+
task_id_list: string[]
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type Api_Update_Repair = {
|
|
86
|
+
name?: string
|
|
87
|
+
display_name?: string
|
|
88
|
+
description?: string | null
|
|
89
|
+
power_output_MWh?: number | null
|
|
90
|
+
cost_per_MWh?: number | null
|
|
91
|
+
category?: number
|
|
92
|
+
user_id_list?: string[]
|
|
93
|
+
team_id_list?: string[]
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type Api_Repair_Dto = {
|
|
97
|
+
id: string
|
|
98
|
+
name: string
|
|
99
|
+
display_name: string
|
|
100
|
+
description: string
|
|
101
|
+
start_date: string
|
|
102
|
+
end_date: string
|
|
103
|
+
projects: Api_Projects[]
|
|
104
|
+
equipments: Api_Equipment_Full_Dto[]
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type Api_Repair_Template = {
|
|
108
|
+
id: string
|
|
109
|
+
repair_seconds: number
|
|
110
|
+
equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
|
|
111
|
+
category: {
|
|
112
|
+
display_name: string
|
|
113
|
+
name: string
|
|
114
|
+
code: number
|
|
115
|
+
}
|
|
116
|
+
task_list: string
|
|
117
|
+
}
|