shared-ritm 1.3.87 → 1.3.88

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