shared-ritm 1.3.30 → 1.3.32
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/shared-ritm.es.js +6 -7
- package/dist/shared-ritm.umd.js +3 -3
- package/dist/types/api/services/UserService.d.ts +3 -0
- package/dist/types/api/types/Api_Tasks.d.ts +2 -0
- package/dist/types/api/types/Api_Video.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/services/UserService.ts +4 -0
- package/src/api/types/Api_Tasks.ts +2 -0
- package/src/api/types/Api_Video.ts +1 -0
- package/src/common/app-dialogs/AppConfirmDialog.vue +1 -1
- package/src/common/app-table/controllers/useColumnSelector.ts +2 -6
|
@@ -64,6 +64,9 @@ declare class UserService extends ApiService {
|
|
|
64
64
|
delete_passes: boolean;
|
|
65
65
|
user: Partial<Api_User>;
|
|
66
66
|
}>;
|
|
67
|
+
checkUserBeforeArchive(body: {
|
|
68
|
+
user_id: string;
|
|
69
|
+
}): Promise<any>;
|
|
67
70
|
}
|
|
68
71
|
export default function useUserService(): UserService;
|
|
69
72
|
export {};
|
|
@@ -220,6 +220,7 @@ export type Api_Tasks_Task_Dto = {
|
|
|
220
220
|
instrument_types: Api_Task_Instrument_From_Warehouse[];
|
|
221
221
|
quality_metrics: Api_Task_QualityMetric_Dto[];
|
|
222
222
|
video_source: Api_Task_VideoSource_Dto;
|
|
223
|
+
transfer_to_work_on_video_analytics: boolean;
|
|
223
224
|
};
|
|
224
225
|
export type Api_Tasks_Task_Edit_Request_Dto = {
|
|
225
226
|
name: string;
|
|
@@ -336,4 +337,5 @@ export type Api_Task_Dto = {
|
|
|
336
337
|
teams: Api_Teams_DTO[];
|
|
337
338
|
video_source: Api_VideoSource_DTO;
|
|
338
339
|
defect: boolean | null;
|
|
340
|
+
transfer_to_work_on_video_analytics: boolean;
|
|
339
341
|
};
|
|
@@ -186,6 +186,7 @@ export type Api_Video_Combination = {
|
|
|
186
186
|
export type Api_Video_Source_Work_Zone_Task = Pick<Api_Tasks_Task_Dto, 'id' | 'fact_end_date' | 'fact_start_date' | 'deadline' | 'expired' | 'name' | 'plan_date' | 'responsible' | 'status' | 'time_to_complete_sec'> & {
|
|
187
187
|
power_output_MWh: number | null;
|
|
188
188
|
cost_per_MWh: number | null;
|
|
189
|
+
project_id: string;
|
|
189
190
|
};
|
|
190
191
|
export type Api_Video_Source_Work_Zone = Pick<Api_Work_Zone_Search, 'id' | 'detect_face' | 'detect_helmet' | 'detect_mask' | 'detect_work_time' | 'detect_work_zone' | 'is_parent' | 'name' | 'x0' | 'x1' | 'y0' | 'y1' | 'video_source_id' | 'parent_id' | 'type' | 'title'> & {
|
|
191
192
|
power_output_MWh: number | null;
|
package/package.json
CHANGED
|
@@ -109,6 +109,10 @@ class UserService extends ApiService {
|
|
|
109
109
|
}): Promise<{ delete_passes: boolean; user: Partial<Api_User> }> {
|
|
110
110
|
return await this.post('admin/delete/passes', body)
|
|
111
111
|
}
|
|
112
|
+
|
|
113
|
+
public async checkUserBeforeArchive(body: { user_id: string }): Promise<any> {
|
|
114
|
+
return await this.post('users/check_user_before_archive', body)
|
|
115
|
+
}
|
|
112
116
|
}
|
|
113
117
|
|
|
114
118
|
let api: UserService
|
|
@@ -239,6 +239,7 @@ export type Api_Tasks_Task_Dto = {
|
|
|
239
239
|
instrument_types: Api_Task_Instrument_From_Warehouse[]
|
|
240
240
|
quality_metrics: Api_Task_QualityMetric_Dto[]
|
|
241
241
|
video_source: Api_Task_VideoSource_Dto
|
|
242
|
+
transfer_to_work_on_video_analytics: boolean
|
|
242
243
|
}
|
|
243
244
|
|
|
244
245
|
export type Api_Tasks_Task_Edit_Request_Dto = {
|
|
@@ -369,4 +370,5 @@ export type Api_Task_Dto = {
|
|
|
369
370
|
teams: Api_Teams_DTO[]
|
|
370
371
|
video_source: Api_VideoSource_DTO
|
|
371
372
|
defect: boolean | null
|
|
373
|
+
transfer_to_work_on_video_analytics: boolean
|
|
372
374
|
}
|
|
@@ -25,15 +25,11 @@ export function useColumnSelector(allColumns: ColumnConfig[], fixedColumnNames:
|
|
|
25
25
|
},
|
|
26
26
|
cancel: {
|
|
27
27
|
label: 'Отмена',
|
|
28
|
-
|
|
29
|
-
'data-test': 'cancel-button',
|
|
30
|
-
},
|
|
28
|
+
'data-test': 'cancel-button',
|
|
31
29
|
},
|
|
32
30
|
ok: {
|
|
33
31
|
label: 'Ок',
|
|
34
|
-
|
|
35
|
-
'data-test': 'ok-button',
|
|
36
|
-
},
|
|
32
|
+
'data-test': 'ok-button',
|
|
37
33
|
},
|
|
38
34
|
persistent: true,
|
|
39
35
|
}).onOk((val: string[]) => {
|