shared-ritm 1.3.116 → 1.3.118
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 +12 -12
- package/dist/shared-ritm.umd.js +3 -3
- package/dist/types/api/services/PhotoService.d.ts +40 -0
- package/dist/types/api/types/Api_Tasks.d.ts +2 -0
- 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 +67 -67
- package/src/api/services/ControlsService.ts +100 -100
- package/src/api/services/EquipmentService.ts +68 -68
- package/src/api/services/InstrumentsService.ts +76 -76
- package/src/api/services/MetricsService.ts +148 -148
- package/src/api/services/RepairsService.ts +111 -111
- package/src/api/services/UserIssueService.ts +32 -32
- package/src/api/services/UserService.ts +129 -129
- package/src/api/services/VideoService.ts +118 -118
- package/src/api/settings/ApiService.ts +1 -1
- package/src/api/types/Api_Auth.ts +121 -121
- package/src/api/types/Api_Controls.ts +112 -112
- package/src/api/types/Api_Equipment.ts +54 -54
- package/src/api/types/Api_Instruments.ts +182 -182
- package/src/api/types/Api_Metrics.ts +84 -84
- package/src/api/types/Api_Repairs.ts +200 -200
- package/src/api/types/Api_Search.ts +81 -81
- package/src/api/types/Api_Tasks.ts +378 -376
- package/src/api/types/Api_User.ts +160 -160
- package/src/api/types/Api_User_Issue.ts +36 -36
- 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 +31 -31
- package/src/common/app-checkbox/Checkbox.stories.ts +252 -252
- 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 +110 -110
- 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/AppInputNew.vue +181 -181
- 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-modal/index.vue +101 -101
- 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 +369 -369
- 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 +12 -12
- package/src/common/app-toggle/Toggle.stories.ts +245 -245
- package/src/common/app-wrapper/AppWrapper.vue +31 -31
- package/src/configs/storybook.ts +14 -14
- package/src/icons/sidebar/user-requests-icon.vue +23 -23
- package/src/index.ts +134 -134
- package/src/shared/styles/general.css +140 -140
- package/src/styles/variables.sass +12 -12
- package/src/utils/files.ts +38 -38
- package/src/utils/helpers.ts +59 -59
|
@@ -1,376 +1,378 @@
|
|
|
1
|
-
import { Api_Comment_Dto } from '../types/Api_Comment'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
1
|
+
import { Api_Comment_Dto } from '../types/Api_Comment'
|
|
2
|
+
import { Api_Metrics_Performance_Task } from '@/api/types/Api_Metrics'
|
|
3
|
+
export type Api_Tasks_InstrumentHistory_Item_Dto = {
|
|
4
|
+
interval: {
|
|
5
|
+
start_interval: string
|
|
6
|
+
end_interval: string
|
|
7
|
+
minutes: number | null
|
|
8
|
+
user: {
|
|
9
|
+
id: string
|
|
10
|
+
first_name: string
|
|
11
|
+
last_name: string
|
|
12
|
+
patronymic: string | null
|
|
13
|
+
full_name: string
|
|
14
|
+
}
|
|
15
|
+
}[]
|
|
16
|
+
minutes: number
|
|
17
|
+
warehouse: {
|
|
18
|
+
id: string
|
|
19
|
+
name: string
|
|
20
|
+
status: {
|
|
21
|
+
id: string
|
|
22
|
+
name: string
|
|
23
|
+
title: string
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type Api_Tasks_AllPersonalUser_Dto = {
|
|
29
|
+
users: Api_Tasks_Personal_User_Dto[]
|
|
30
|
+
unrecognized_users: Api_PersonalUnrecognizedUser[]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type Api_Tasks_Personal_User_Dto = {
|
|
34
|
+
user: Api_Tasks_Position_Assigned_User_Dto
|
|
35
|
+
sum_minutes_interval: number
|
|
36
|
+
interval: {
|
|
37
|
+
start_interval: string
|
|
38
|
+
end_interval: string
|
|
39
|
+
}[]
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type Api_PersonalUnrecognizedUser = {
|
|
43
|
+
user_id: string
|
|
44
|
+
start_interval: string
|
|
45
|
+
end_interval: string
|
|
46
|
+
minutes: number
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type Api_Tasks_ReplaceInstrument_Request_Dto = {
|
|
50
|
+
equivalent: string
|
|
51
|
+
origin: string
|
|
52
|
+
task: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type Api_QualityMetric_Request_Dto = {
|
|
56
|
+
id: string
|
|
57
|
+
task_id: string
|
|
58
|
+
name: string
|
|
59
|
+
unit: string
|
|
60
|
+
norm_from: number
|
|
61
|
+
norm_to: number
|
|
62
|
+
metric_before: number | null
|
|
63
|
+
metric_after: number | null
|
|
64
|
+
is_normal: boolean
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type Api_Task_ChangeStatusVerification_Dto = {
|
|
68
|
+
id: string
|
|
69
|
+
name: string
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type Api_Tasks_Responsible_Dto = {
|
|
73
|
+
id: string
|
|
74
|
+
first_name: string
|
|
75
|
+
last_name: string
|
|
76
|
+
patronymic: string
|
|
77
|
+
full_name: string
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type Api_Tasks_Assigned_Dto = {
|
|
81
|
+
id: string
|
|
82
|
+
first_name: string
|
|
83
|
+
last_name: string
|
|
84
|
+
patronymic: null | string
|
|
85
|
+
full_name: string
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type Api_Tasks_Status_Dto = {
|
|
89
|
+
id: string
|
|
90
|
+
name: string
|
|
91
|
+
title: string
|
|
92
|
+
}
|
|
93
|
+
export type Api_Tasks_Project_Dto = {
|
|
94
|
+
id: string
|
|
95
|
+
name: string
|
|
96
|
+
teams: string[]
|
|
97
|
+
}
|
|
98
|
+
export type Api_Tasks_Position_Dto = {
|
|
99
|
+
id: string
|
|
100
|
+
name: string
|
|
101
|
+
display_name: string
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type Api_Tasks_Position_Assigned_User_Dto = {
|
|
105
|
+
id: string
|
|
106
|
+
full_name: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type Api_Tasks_Brigade_Simple_Dto = {
|
|
110
|
+
id: string
|
|
111
|
+
name: string
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type Api_Tasks_Position_Assigned_Dto = {
|
|
115
|
+
has_personnel_intersection?: boolean
|
|
116
|
+
id?: number
|
|
117
|
+
user?: Api_Tasks_Position_Assigned_User_Dto | null
|
|
118
|
+
position?: Api_Tasks_Position_Dto
|
|
119
|
+
brigades?: Api_Tasks_Brigade_Simple_Dto[]
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type Api_Tasks_Teams_Dto = {
|
|
123
|
+
id: string
|
|
124
|
+
name: string
|
|
125
|
+
display_name: string
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type Api_Tasks_Equipment_Dto = {
|
|
129
|
+
id: string
|
|
130
|
+
name: string
|
|
131
|
+
model: string
|
|
132
|
+
registration_number: string
|
|
133
|
+
created_at: string
|
|
134
|
+
updated_at: string
|
|
135
|
+
repair_frequency: number
|
|
136
|
+
repair_range: number
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type Api_Task_VideoSource_Dto = {
|
|
140
|
+
id: string
|
|
141
|
+
name: string
|
|
142
|
+
url: string
|
|
143
|
+
work_zone_by_task: {
|
|
144
|
+
id: string
|
|
145
|
+
title: string
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type Api_Task_QualityMetric_Dto = {
|
|
150
|
+
id: string
|
|
151
|
+
task_id: string
|
|
152
|
+
name: string
|
|
153
|
+
unit: string
|
|
154
|
+
norm_from: number
|
|
155
|
+
norm_to: number
|
|
156
|
+
metric_before: number | null
|
|
157
|
+
metric_after: number | null
|
|
158
|
+
is_normal: boolean
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export type APi_Task_Master_DTO = {
|
|
162
|
+
id: string
|
|
163
|
+
first_name: string
|
|
164
|
+
full_name: string
|
|
165
|
+
email: string
|
|
166
|
+
RFID: null | string
|
|
167
|
+
avatar: null | string
|
|
168
|
+
avatar_id: null | string
|
|
169
|
+
change_password: null | string
|
|
170
|
+
created_at: null | string
|
|
171
|
+
deleted_at: null | string
|
|
172
|
+
dismissal_at: null | string
|
|
173
|
+
divisions: null | string
|
|
174
|
+
email_verified_at: null | string
|
|
175
|
+
face_recognition_id: null | string
|
|
176
|
+
last_name: string
|
|
177
|
+
patronymic: null | string
|
|
178
|
+
personnel_number: number
|
|
179
|
+
phone: null | string
|
|
180
|
+
profession: null | string
|
|
181
|
+
updated_at: null | string
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export type Api_Task_Available_Brigades_Dto = {
|
|
185
|
+
id: string
|
|
186
|
+
name: string
|
|
187
|
+
created_at: null | string
|
|
188
|
+
deleted_at: null | string
|
|
189
|
+
task_master_user_id: string
|
|
190
|
+
updated_at: string
|
|
191
|
+
task_master: APi_Task_Master_DTO
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export type Api_Tasks_Task_Dto = {
|
|
195
|
+
id: string
|
|
196
|
+
name: string
|
|
197
|
+
type: string
|
|
198
|
+
project_id: string
|
|
199
|
+
description: string
|
|
200
|
+
subtask_counter: number
|
|
201
|
+
state_id: null | string
|
|
202
|
+
start_date: string
|
|
203
|
+
end_date: string
|
|
204
|
+
deadline: string
|
|
205
|
+
plan_date: string
|
|
206
|
+
time_to_complete: null | string | number
|
|
207
|
+
time_to_complete_sec: number | null
|
|
208
|
+
priority: number
|
|
209
|
+
work_zone_id: null | string
|
|
210
|
+
location_id: null | string
|
|
211
|
+
target: any
|
|
212
|
+
instruments?: any[]
|
|
213
|
+
warehouse: any[]
|
|
214
|
+
files: any[]
|
|
215
|
+
planned_start: null | string
|
|
216
|
+
planned_end: null | string
|
|
217
|
+
fact_start_date: string
|
|
218
|
+
fact_end_date: null | string
|
|
219
|
+
work_sec: number
|
|
220
|
+
pause_sec: number
|
|
221
|
+
repair_object: null | string
|
|
222
|
+
isPause: boolean
|
|
223
|
+
defect: string | null
|
|
224
|
+
expired: boolean
|
|
225
|
+
is_critical_task: boolean
|
|
226
|
+
usage_users: boolean
|
|
227
|
+
usage_warehouses: boolean
|
|
228
|
+
is_detach_video_source_work_zone?: number
|
|
229
|
+
available_brigades: Api_Task_Available_Brigades_Dto[]
|
|
230
|
+
subtasks: Api_Tasks_Task_Dto[]
|
|
231
|
+
status: Api_Tasks_Status_Dto
|
|
232
|
+
project: Api_Tasks_Project_Dto
|
|
233
|
+
position: Api_Tasks_Position_Dto[]
|
|
234
|
+
assigned: Api_Tasks_Assigned_Dto[]
|
|
235
|
+
responsible: Api_Tasks_Responsible_Dto[]
|
|
236
|
+
position_assigned: Api_Tasks_Position_Assigned_Dto[]
|
|
237
|
+
comments: Api_Comment_Dto[]
|
|
238
|
+
teams: Api_Tasks_Teams_Dto[]
|
|
239
|
+
equipment: Api_Tasks_Equipment_Dto
|
|
240
|
+
instrument_types: Api_Task_Instrument_From_Warehouse[]
|
|
241
|
+
quality_metrics: Api_Task_QualityMetric_Dto[]
|
|
242
|
+
video_source: Api_Task_VideoSource_Dto
|
|
243
|
+
transfer_to_work_on_video_analytics: boolean
|
|
244
|
+
pre_calc_performance: Api_Metrics_Performance_Task
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export type Api_Tasks_Task_Edit_Request_Dto = {
|
|
248
|
+
name: string
|
|
249
|
+
description?: string
|
|
250
|
+
instruments?: string[]
|
|
251
|
+
responsible?: string[]
|
|
252
|
+
equipment?: string
|
|
253
|
+
status: string
|
|
254
|
+
assigned?: string[]
|
|
255
|
+
position_assigned?: unknown[]
|
|
256
|
+
files?: string[]
|
|
257
|
+
position?: unknown[]
|
|
258
|
+
warehouse?: string[]
|
|
259
|
+
teams?: string[]
|
|
260
|
+
video_source_id?: string
|
|
261
|
+
work_zone_id?: string
|
|
262
|
+
state_id?: string
|
|
263
|
+
location_id?: string
|
|
264
|
+
project_id?: string
|
|
265
|
+
priority?: number
|
|
266
|
+
start_date?: string // YYYY-MM-DD HH:MM
|
|
267
|
+
plan_date?: string // YYYY-MM-DD HH:MM
|
|
268
|
+
deadline?: string // YYYY-MM-DD HH:MM
|
|
269
|
+
time_to_complete?: number
|
|
270
|
+
time_to_complete_sec?: number
|
|
271
|
+
target?: string
|
|
272
|
+
repair_object_id?: string
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export type Api_Task_Instrument_Dto = {
|
|
276
|
+
id: string
|
|
277
|
+
name: string
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export type Api_Task_Module_Instrument_Condition = {
|
|
281
|
+
instruments_types_conditions: Record<
|
|
282
|
+
string,
|
|
283
|
+
{
|
|
284
|
+
warehouse_responsible: boolean
|
|
285
|
+
warehouse_statuses: boolean
|
|
286
|
+
warehouse_modules: boolean
|
|
287
|
+
}
|
|
288
|
+
>
|
|
289
|
+
instruments_types_count: Record<string, number>
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export type Api_Task_Instrument_From_Warehouse = {
|
|
293
|
+
id: string
|
|
294
|
+
name: string
|
|
295
|
+
warehouse_prepared_quantity: number
|
|
296
|
+
instrument_type_plan_quantity: number
|
|
297
|
+
has_status: boolean
|
|
298
|
+
has_module: boolean
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export type Api_Task_Close_Reason = {
|
|
302
|
+
has_reason: boolean
|
|
303
|
+
category: string
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
//single task in list
|
|
307
|
+
|
|
308
|
+
export type Api_Assigned_DTO = {
|
|
309
|
+
id: string
|
|
310
|
+
first_name: string
|
|
311
|
+
last_name: string
|
|
312
|
+
patronymic: string
|
|
313
|
+
full_name: string
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export type Api_Status_DTO = {
|
|
317
|
+
id: string
|
|
318
|
+
name: string
|
|
319
|
+
title: string
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export type Api_Teams_DTO = {
|
|
323
|
+
id: string
|
|
324
|
+
name: string
|
|
325
|
+
display_name: string
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export type Api_Responsible_DTO = {
|
|
329
|
+
id: string
|
|
330
|
+
name: string
|
|
331
|
+
display_name: string
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export type Api_VideoSource_DTO = {
|
|
335
|
+
id: string
|
|
336
|
+
name: string
|
|
337
|
+
url: string
|
|
338
|
+
work_zone_by_task: { id: string; title: string }
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export type Api_Task_Intersections_DTO = {
|
|
342
|
+
deadline: null | string
|
|
343
|
+
fact_end_date: null | string
|
|
344
|
+
fact_start_date: null | string
|
|
345
|
+
id: string
|
|
346
|
+
name: string
|
|
347
|
+
plan_date: null | string
|
|
348
|
+
planned_end: null | string
|
|
349
|
+
planned_start: null | string
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export type Api_Task_Dto = {
|
|
353
|
+
id: string
|
|
354
|
+
name: string
|
|
355
|
+
plan_date: string
|
|
356
|
+
deadline: string
|
|
357
|
+
priority: number
|
|
358
|
+
subtasks_count: number
|
|
359
|
+
expired: boolean
|
|
360
|
+
is_critical_path: boolean
|
|
361
|
+
power_output_MWh: number
|
|
362
|
+
cost_per_MWh: number
|
|
363
|
+
isPause: boolean
|
|
364
|
+
fact_start_date: null | string
|
|
365
|
+
fact_end_date: null | string
|
|
366
|
+
planned_start: null | string
|
|
367
|
+
planned_end: null | string
|
|
368
|
+
pause_sec: number
|
|
369
|
+
work_sec: number
|
|
370
|
+
has_quality_metrics: boolean
|
|
371
|
+
responsible: Api_Responsible_DTO[]
|
|
372
|
+
assigned: Api_Assigned_DTO[]
|
|
373
|
+
status: Api_Status_DTO
|
|
374
|
+
teams: Api_Teams_DTO[]
|
|
375
|
+
video_source: Api_VideoSource_DTO
|
|
376
|
+
defect: boolean | null
|
|
377
|
+
transfer_to_work_on_video_analytics: boolean
|
|
378
|
+
}
|