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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.3.30",
3
+ "version": "1.3.32",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -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
  }
@@ -212,6 +212,7 @@ export type Api_Video_Source_Work_Zone_Task = Pick<
212
212
  > & {
213
213
  power_output_MWh: number | null
214
214
  cost_per_MWh: number | null
215
+ project_id: string
215
216
  }
216
217
 
217
218
  export type Api_Video_Source_Work_Zone = Pick<
@@ -16,7 +16,7 @@
16
16
  @click="onDialogOK"
17
17
  />
18
18
  <app-button
19
- data-test="cancel-button"
19
+ data-test="close-button"
20
20
  :class="$style['footer__btn--cancel']"
21
21
  label="Отменить"
22
22
  @click="onDialogHide"
@@ -25,15 +25,11 @@ export function useColumnSelector(allColumns: ColumnConfig[], fixedColumnNames:
25
25
  },
26
26
  cancel: {
27
27
  label: 'Отмена',
28
- attrs: {
29
- 'data-test': 'cancel-button',
30
- },
28
+ 'data-test': 'cancel-button',
31
29
  },
32
30
  ok: {
33
31
  label: 'Ок',
34
- attrs: {
35
- 'data-test': 'ok-button',
36
- },
32
+ 'data-test': 'ok-button',
37
33
  },
38
34
  persistent: true,
39
35
  }).onOk((val: string[]) => {