shared-ritm 1.2.82 → 1.2.83

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 (49) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +3066 -3050
  3. package/dist/shared-ritm.umd.js +269 -269
  4. package/dist/types/api/services/AuthService.d.ts +1 -1
  5. package/dist/types/api/services/ComentsServise.d.ts +10 -0
  6. package/dist/types/api/services/CommentsService.d.ts +10 -0
  7. package/dist/types/api/services/ControlsService.d.ts +3 -3
  8. package/dist/types/api/services/FileService.d.ts +3 -4
  9. package/dist/types/api/services/GanttService.d.ts +1 -1
  10. package/dist/types/api/services/InstrumentsService.d.ts +2 -2
  11. package/dist/types/api/services/MetricsService.d.ts +2 -2
  12. package/dist/types/api/services/PhotoService.d.ts +51 -38
  13. package/dist/types/api/services/ProjectsService.d.ts +7 -7
  14. package/dist/types/api/services/RepairsService.d.ts +3 -3
  15. package/dist/types/api/services/SearchService.d.ts +4 -4
  16. package/dist/types/api/services/TasksService.d.ts +25 -34
  17. package/dist/types/api/services/UserService.d.ts +3 -3
  18. package/dist/types/api/services/VideoService.d.ts +2 -1
  19. package/dist/types/api/types/Api_Comment.d.ts +37 -0
  20. package/dist/types/api/types/Api_Files.d.ts +7 -1
  21. package/dist/types/api/types/Api_Instruments.d.ts +1 -1
  22. package/dist/types/api/types/Api_Tasks.d.ts +133 -18
  23. package/dist/types/api/types/Api_Users.d.ts +43 -0
  24. package/dist/types/index.d.ts +43 -40
  25. package/dist/types/utils/faceApiHelper.d.ts +40 -0
  26. package/package.json +1 -1
  27. package/src/api/services/AuthService.ts +1 -1
  28. package/src/api/services/CommentsService.ts +24 -0
  29. package/src/api/services/ControlsService.ts +3 -3
  30. package/src/api/services/FileService.ts +6 -5
  31. package/src/api/services/GanttService.ts +1 -1
  32. package/src/api/services/InstrumentsService.ts +2 -2
  33. package/src/api/services/MetricsService.ts +2 -2
  34. package/src/api/services/ProjectsService.ts +10 -10
  35. package/src/api/services/RepairsService.ts +3 -3
  36. package/src/api/services/SearchService.ts +5 -5
  37. package/src/api/services/TasksService.ts +72 -65
  38. package/src/api/services/UserService.ts +3 -3
  39. package/src/api/services/VideoService.ts +4 -1
  40. package/src/api/types/Api_Comment.ts +40 -0
  41. package/src/api/types/Api_Files.ts +7 -1
  42. package/src/api/types/Api_Instruments.ts +1 -1
  43. package/src/api/types/Api_Tasks.ts +144 -18
  44. package/src/common/app-dialogs/AppConfirmDialog.vue +1 -1
  45. package/src/index.ts +48 -41
  46. package/src/shared/styles/general.css +0 -1
  47. package/src/styles/variables.sass +12 -12
  48. package/src/{api/services/PhotoService.ts → utils/faceApiHelper.ts} +5 -5
  49. package/src/utils/helpers.ts +1 -0
@@ -1,4 +1,4 @@
1
- import ApiService from '@/api/settings/ApiService';
1
+ import ApiService from '../settings/ApiService';
2
2
  export type LoginPayload = {
3
3
  email: string;
4
4
  password: string;
@@ -0,0 +1,10 @@
1
+ import ApiService from '@/api/settings/ApiService'
2
+ import { Api_Comment_Request_Dto } from '@/api/types/Api_Comment'
3
+ import { Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
4
+ declare class CommentsService extends ApiService {
5
+ uploadComment(payload: Api_Comment_Request_Dto): Promise<Api_Tasks_Task_Dto>
6
+ deleteComment(commentId: string): Promise<unknown>
7
+ editComment(payload: { commentId: string; data: unknown }): Promise<unknown>
8
+ }
9
+ export default function useCommentsService(): CommentsService
10
+ export {}
@@ -0,0 +1,10 @@
1
+ import ApiService from '../settings/ApiService';
2
+ import { Api_Comment_Request_Dto, Api_Comment_Update_Dto } from '../types/Api_Comment';
3
+ import { Api_Tasks_Task_Dto } from '../types/Api_Tasks';
4
+ declare class CommentsService extends ApiService {
5
+ uploadComment(payload: Api_Comment_Request_Dto): Promise<Api_Tasks_Task_Dto>;
6
+ deleteComment(commentId: string): Promise<any>;
7
+ editComment(commentId: string, payload: Api_Comment_Request_Dto): Promise<Api_Comment_Update_Dto>;
8
+ }
9
+ export default function useCommentsService(): CommentsService;
10
+ export {};
@@ -1,6 +1,6 @@
1
- import ApiService from '@/api/settings/ApiService';
2
- import { Api_ControlLogs_Dto, Api_ControlZones_Dto } from '@/api/types/Api_Controls';
3
- import { ResponseApi } from '@/api/types/Api_Service';
1
+ import ApiService from '../settings/ApiService';
2
+ import { Api_ControlLogs_Dto, Api_ControlZones_Dto } from '../types/Api_Controls';
3
+ import { ResponseApi } from '../types/Api_Service';
4
4
  declare class ControlsService extends ApiService {
5
5
  fetchControlZones(params: Record<string, any>): Promise<ResponseApi<Api_ControlZones_Dto[]>>;
6
6
  fetchControlZone(id: string): Promise<ResponseApi<Api_ControlZones_Dto>>;
@@ -1,8 +1,7 @@
1
- import ApiService from '@/api/settings/ApiService';
2
- import { ResponseApi } from '@/api/types/Api_Service';
3
- import { Api_Files_Responsible_Dto } from '@/api/types/Api_Files';
1
+ import ApiService from '../settings/ApiService';
2
+ import { Api_Files_Responsible_Dto } from '../types/Api_Files';
4
3
  declare class FileService extends ApiService {
5
- uploadFile(data: FormData): Promise<ResponseApi<Api_Files_Responsible_Dto>>;
4
+ uploadFile(data: FormData): Promise<Api_Files_Responsible_Dto[]>;
6
5
  }
7
6
  export default function useFileService(): FileService;
8
7
  export {};
@@ -1,4 +1,4 @@
1
- import ApiService from '@/api/settings/ApiService';
1
+ import ApiService from '../settings/ApiService';
2
2
  declare class GanttService extends ApiService {
3
3
  fetchCriticalPathTasks(params: string): Promise<any>;
4
4
  fetchGanttList(params: string): Promise<any>;
@@ -1,5 +1,5 @@
1
- import ApiService from '@/api/settings/ApiService';
2
- import { Api_instruments_HistoryResponse } from '@/api/types/Api_Instruments';
1
+ import ApiService from '../settings/ApiService';
2
+ import { Api_instruments_HistoryResponse } from '../types/Api_Instruments';
3
3
  declare class InstrumentsService extends ApiService {
4
4
  fetchUserInstrumentsHistory(id: string, page: number): Promise<Api_instruments_HistoryResponse>;
5
5
  }
@@ -1,5 +1,5 @@
1
- import ApiService from '@/api/settings/ApiService';
2
- import { ResponseApi } from '@/api/types/Api_Service';
1
+ import ApiService from '../settings/ApiService';
2
+ import { ResponseApi } from '../types/Api_Service';
3
3
  declare class MetricsService extends ApiService {
4
4
  fetchPieProjects(queryString: string): Promise<ResponseApi<any>>;
5
5
  fetchPieTasks(queryString: string): Promise<ResponseApi<any>>;
@@ -1,40 +1,53 @@
1
- import * as faceapi from 'face-api.js';
1
+ import * as faceapi from 'face-api.js'
2
2
  declare class PhotoService {
3
- getVideoStreamConfig(width: number, height: number): {
4
- audio: boolean;
5
- video: {
6
- width: {
7
- min: number;
8
- ideal: number;
9
- };
10
- height: {
11
- min: number;
12
- ideal: number;
13
- };
14
- facingMode: string;
15
- };
16
- };
17
- getContourCoordinate(width: number, height: number): {
18
- x: number;
19
- y: number;
20
- width: number;
21
- height: number;
22
- };
23
- getBoxData(box: any): {
24
- x: any;
25
- y: any;
26
- width: any;
27
- height: any;
28
- } | null;
29
- setStylesForCanvas(canvasContainer: any): void;
30
- checkFaceInclusion(frame: any, face: any): boolean;
31
- getFaceDetections(videoRef: any): Promise<faceapi.WithFaceExpressions<faceapi.WithFaceLandmarks<{
32
- detection: faceapi.FaceDetection;
33
- }, faceapi.FaceLandmarks68>>[]>;
34
- getCanvas(videoRef: any): HTMLCanvasElement;
35
- getResizedAndDetection(canvas: any, detections: any, ctx: any, videoWidth: number, videoHeight: number): void;
36
- getFaceSnapshot(inputImage: any, box: any): Promise<string | null>;
37
- initModels(): Promise<void>;
3
+ getVideoStreamConfig(
4
+ width: number,
5
+ height: number,
6
+ ): {
7
+ audio: boolean
8
+ video: {
9
+ width: {
10
+ min: number
11
+ ideal: number
12
+ }
13
+ height: {
14
+ min: number
15
+ ideal: number
16
+ }
17
+ facingMode: string
18
+ }
19
+ }
20
+ getContourCoordinate(
21
+ width: number,
22
+ height: number,
23
+ ): {
24
+ x: number
25
+ y: number
26
+ width: number
27
+ height: number
28
+ }
29
+ getBoxData(box: any): {
30
+ x: any
31
+ y: any
32
+ width: any
33
+ height: any
34
+ } | null
35
+ setStylesForCanvas(canvasContainer: any): void
36
+ checkFaceInclusion(frame: any, face: any): boolean
37
+ getFaceDetections(videoRef: any): Promise<
38
+ faceapi.WithFaceExpressions<
39
+ faceapi.WithFaceLandmarks<
40
+ {
41
+ detection: faceapi.FaceDetection
42
+ },
43
+ faceapi.FaceLandmarks68
44
+ >
45
+ >[]
46
+ >
47
+ getCanvas(videoRef: any): HTMLCanvasElement
48
+ getResizedAndDetection(canvas: any, detections: any, ctx: any, videoWidth: number, videoHeight: number): void
49
+ getFaceSnapshot(inputImage: any, box: any): Promise<string | null>
50
+ initModels(): Promise<void>
38
51
  }
39
- export default function usePhotoService(): PhotoService;
40
- export {};
52
+ export default function usePhotoService(): PhotoService
53
+ export {}
@@ -1,12 +1,12 @@
1
- import ApiService from '@/api/settings/ApiService';
2
- import { ResponseApi } from '@/api/types/Api_Service';
3
- import { Api_Project_Dto } from '@/api/types/Api_Projects';
1
+ import ApiService from '../settings/ApiService';
2
+ import { ResponseApi } from '../types/Api_Service';
3
+ import { Api_Project_Dto } from '../types/Api_Projects';
4
4
  declare class ProjectsService extends ApiService {
5
- fetchProjectById(id: string): Promise<ResponseApi<Api_Project_Dto>>;
6
- createProject(params: any): Promise<ResponseApi<any>>;
7
- editProject(id: string, params: any): Promise<ResponseApi<any>>;
5
+ fetchProjectById(id: string): Promise<Api_Project_Dto>;
6
+ createProject(params: any): Promise<Api_Project_Dto>;
7
+ editProject(id: string, params: any): Promise<Api_Project_Dto>;
8
8
  fetchProjects(params: any): Promise<ResponseApi<Api_Project_Dto[]>>;
9
- cloneProject(project: any): Promise<ResponseApi<any>>;
9
+ cloneProject(project: Api_Project_Dto): Promise<Api_Project_Dto>;
10
10
  archiveProject(id: string, data: any): Promise<ResponseApi<any>>;
11
11
  unArchiveProject(id: string, data: any): Promise<ResponseApi<any>>;
12
12
  moveAprProject(id: string): Promise<ResponseApi<any>>;
@@ -1,6 +1,6 @@
1
- import ApiService from '@/api/settings/ApiService';
2
- import { ResponseApi } from '@/api/types/Api_Service';
3
- import { Api_Create_Repair_With_Equipments, Api_Create_Repair_With_Template, Api_Equipment_Full_Dto, Api_Repair_Dto, Api_Repair_Template, Api_Update_Repair, OptionFilters } from '@/api/types/Api_Repairs';
1
+ import ApiService from '../settings/ApiService';
2
+ import { ResponseApi } from '../types/Api_Service';
3
+ import { Api_Create_Repair_With_Equipments, Api_Create_Repair_With_Template, Api_Equipment_Full_Dto, Api_Repair_Dto, Api_Repair_Template, Api_Update_Repair, OptionFilters } from '../types/Api_Repairs';
4
4
  declare class RepairsService extends ApiService {
5
5
  fetchFilters(fullParams: string): Promise<OptionFilters>;
6
6
  fetchRepairs(isQuery: boolean, queries?: string, hasTeams?: boolean | string, teamsFilter?: string, typeFilter?: string): Promise<ResponseApi<Api_Repair_Dto[]>>;
@@ -1,8 +1,8 @@
1
- import ApiService from '@/api/settings/ApiService';
2
- import { ResponseApi } from '@/api/types/Api_Service';
3
- import { Api_Search_User } from '@/api/types/Api_Search';
1
+ import ApiService from '../settings/ApiService';
2
+ import { ResponseApi } from '../types/Api_Service';
3
+ import { Api_Search_User } from '../types/Api_Search';
4
4
  declare class SearchService extends ApiService {
5
- fetchSearchUsers(params: any): Promise<ResponseApi<Api_Search_User>>;
5
+ fetchSearchUsers(params: any): Promise<ResponseApi<Api_Search_User[]>>;
6
6
  }
7
7
  export default function useSearchService(): SearchService;
8
8
  export {};
@@ -1,11 +1,19 @@
1
- import ApiService from '@/api/settings/ApiService';
2
- import { ResponseApi } from '@/api/types/Api_Service';
3
- import { Api_Task_Close_Reason, Api_Task_Instrument_Dto, Api_Task_Instrument_From_Warehouse, Api_Task_Module_Instrument_Condition, Api_Task_DTO, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks';
4
- import { Api_Equipment_Full_Dto, Api_Task_Video_Source, Api_Task_Video_Source_Stream } from '@/api/types/Api_Repairs';
1
+ import ApiService from '../settings/ApiService';
2
+ import { ResponseApi } from '../types/Api_Service';
3
+ import { Api_Task_Close_Reason, Api_Task_Instrument_Dto, Api_Task_Instrument_From_Warehouse, Api_Task_Module_Instrument_Condition, Api_Task_Dto, Api_Tasks_Task_Dto, Api_Task_ChangeStatusVerification_Dto, Api_QualityMetric_Request_Dto, Api_Tasks_Task_Edit_Request_Dto, Api_Tasks_ReplaceInstrument_Request_Dto, Api_Tasks_AllPersonalUser_Dto, Api_Tasks_InstrumentHistory_Item_Dto } from '../types/Api_Tasks';
4
+ import { Api_Equipment_Full_Dto, Api_Task_Video_Source, Api_Task_Video_Source_Stream } from '../types/Api_Repairs';
5
+ export type EquipmentData = {
6
+ id: string;
7
+ model: unknown;
8
+ name: string;
9
+ registration_number: string;
10
+ repair_frequency: unknown;
11
+ repair_range: number;
12
+ };
5
13
  declare class TasksService extends ApiService {
6
- fetchTaskById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>>;
7
- fetchTasksList(params: any): Promise<ResponseApi<Api_Task_DTO[]>>;
8
- fetchSubtasksList(id: string): Promise<ResponseApi<Api_Task_DTO[]>>;
14
+ fetchTaskById(id: string): Promise<Api_Tasks_Task_Dto>;
15
+ fetchTasksList(params: any): Promise<ResponseApi<Api_Task_Dto[]>>;
16
+ fetchSubtasksList(id: string): Promise<Api_Task_Dto[]>;
9
17
  fetchTaskBranch(id: string): Promise<ResponseApi<any>>;
10
18
  fetchInstrumentsList(params: any): Promise<ResponseApi<any[]>>;
11
19
  fetchInstrumentTypeListWithPreparedWarehouse(params: {
@@ -13,46 +21,29 @@ declare class TasksService extends ApiService {
13
21
  per_page: number;
14
22
  'filterList[taskId]'?: string | undefined;
15
23
  search?: string;
16
- }): Promise<Api_Task_Instrument_From_Warehouse[]>;
24
+ }): Promise<ResponseApi<Api_Task_Instrument_From_Warehouse[]>>;
17
25
  fetchInstrumentsEquivalentList(params: any): Promise<ResponseApi<Api_Task_Instrument_Dto[]>>;
18
26
  fetchDiffInstruments(params: any): Promise<ResponseApi<Api_Task_Module_Instrument_Condition>>;
19
- replaceInstruments(payload: any): Promise<ResponseApi<any>>;
20
- fetchTaskUsagePersonal(params: any): Promise<ResponseApi<unknown[]>>;
21
- fetchTaskUsageInstrument(params: any): Promise<ResponseApi<unknown[]>>;
27
+ replaceInstruments(payload: Api_Tasks_ReplaceInstrument_Request_Dto[]): Promise<ResponseApi<any[]>>;
28
+ fetchTaskUsagePersonal(task_id: string): Promise<Api_Tasks_AllPersonalUser_Dto>;
29
+ fetchTaskUsageInstrument(task_id: string): Promise<Api_Tasks_InstrumentHistory_Item_Dto[]>;
22
30
  fetchEquipment(params: any): Promise<ResponseApi<Api_Equipment_Full_Dto[]>>;
23
31
  fetchTaskVideoSources(params: any): Promise<ResponseApi<Api_Task_Video_Source[]>>;
24
32
  fetchTaskVideoSourcesStream(params: any): Promise<ResponseApi<Api_Task_Video_Source_Stream[]>>;
25
33
  createWorkZone(payload: any): Promise<unknown>;
26
34
  createTask(payload: any): Promise<ResponseApi<any>>;
27
- editTask(payload: any): Promise<ResponseApi<any>>;
35
+ editTask(task_id: string, payload: Api_Tasks_Task_Edit_Request_Dto): Promise<Api_Tasks_Task_Dto>;
28
36
  mergeTask(payload: {
29
37
  name: string;
30
38
  tasks_id: string[];
31
39
  defect?: string;
32
40
  }): Promise<ResponseApi<any>>;
33
41
  deleteTask(id: string): Promise<any>;
34
- changeStatus(payload: {
35
- taskId: string;
36
- data: unknown;
37
- }): Promise<unknown>;
38
- uploadComment(payload: unknown): Promise<unknown>;
39
- deleteComment(commentId: string): Promise<unknown>;
40
- editComment(payload: {
41
- commentId: string;
42
- data: unknown;
43
- }): Promise<unknown>;
44
- saveMetrics(payload: unknown): Promise<unknown>;
45
- checkReasonForStatus(payload: {
46
- task_Id: string;
47
- data: unknown;
48
- }): Promise<Api_Task_Close_Reason>;
49
- verifyTaskStatus(payload: {
50
- task_id: string;
51
- data: unknown;
52
- }): Promise<unknown>;
53
- checkBranchBeforeCloseTask(payload: {
54
- task_Id: string;
55
- }): Promise<unknown>;
42
+ changeStatus(taskId: string, statusId: string): Promise<any>;
43
+ saveMetrics(payload: Api_QualityMetric_Request_Dto[]): Promise<EquipmentData[]>;
44
+ checkReasonForStatus(task_id: string): Promise<Api_Task_Close_Reason>;
45
+ verifyTaskStatus(task_id: string, status_id: string): Promise<Api_Task_ChangeStatusVerification_Dto[]>;
46
+ checkBranchBeforeCloseTask(task_id: string): Promise<ResponseApi<boolean>>;
56
47
  }
57
48
  export default function useTasksService(): TasksService;
58
49
  export {};
@@ -1,6 +1,6 @@
1
- import ApiService from '@/api/settings/ApiService';
2
- import { Api_User, Api_User_Role } from '@/api/types/Api_User';
3
- import { ResponseApi } from '@/api/types/Api_Service';
1
+ import ApiService from '../settings/ApiService';
2
+ import { Api_User, Api_User_Role } from '../types/Api_User';
3
+ import { ResponseApi } from '../types/Api_Service';
4
4
  declare class UserService extends ApiService {
5
5
  editUser({ id, model }: {
6
6
  id: string;
@@ -1,6 +1,7 @@
1
- import ApiService from '@/api/settings/ApiService';
1
+ import ApiService from '../settings/ApiService';
2
2
  declare class VideoService extends ApiService {
3
3
  startVideoAnalytics(): Promise<boolean>;
4
+ reloadVideoAnalytics(ids: string[]): Promise<any>;
4
5
  }
5
6
  export default function useVideoService(): VideoService;
6
7
  export {};
@@ -0,0 +1,37 @@
1
+ export type FileRequest = {
2
+ name: string;
3
+ type: string;
4
+ path: string;
5
+ extension: string;
6
+ id: string;
7
+ };
8
+ export type Api_Comment_Dto = {
9
+ created_at: string;
10
+ files: FileRequest[];
11
+ first_name: string;
12
+ for_status: boolean;
13
+ full_name: string;
14
+ id: string;
15
+ last_name: string;
16
+ text: string;
17
+ user_id: string;
18
+ user_name: string;
19
+ };
20
+ export type Api_Comment_Request_Dto = {
21
+ for_status?: boolean;
22
+ task_id?: string;
23
+ text?: string;
24
+ type_id?: string;
25
+ files?: string[];
26
+ };
27
+ export type Api_Comment_Update_Dto = {
28
+ created_at: string;
29
+ files: FileRequest[];
30
+ for_status: false;
31
+ id: string;
32
+ text: string;
33
+ type: string | null;
34
+ type_id: string | null;
35
+ updated_at: string;
36
+ user_id: string;
37
+ };
@@ -1 +1,7 @@
1
- export type Api_Files_Responsible_Dto = unknown;
1
+ export type Api_Files_Responsible_Dto = {
2
+ name: string;
3
+ type: string;
4
+ path: string;
5
+ extension: string;
6
+ id: string;
7
+ };
@@ -1,4 +1,4 @@
1
- import { Api_User } from '@/api/types/Api_User';
1
+ import { Api_User } from '../types/Api_User';
2
2
  export type Api_Instrument_Storage = {
3
3
  id: string;
4
4
  created_at: string;
@@ -1,3 +1,66 @@
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
+ export type Api_Tasks_AllPersonalUser_Dto = {
27
+ users: Api_Tasks_Personal_User_Dto[];
28
+ unrecognized_users: Api_PersonalUnrecognizedUser[];
29
+ };
30
+ export type Api_Tasks_Personal_User_Dto = {
31
+ user: Api_Tasks_Position_Assigned_User_Dto;
32
+ sum_minutes_interval: number;
33
+ interval: {
34
+ start_interval: string;
35
+ end_interval: string;
36
+ }[];
37
+ };
38
+ export type Api_PersonalUnrecognizedUser = {
39
+ user_id: string;
40
+ start_interval: string;
41
+ end_interval: string;
42
+ minutes: number;
43
+ };
44
+ export type Api_Tasks_ReplaceInstrument_Request_Dto = {
45
+ equivalent: string;
46
+ origin: string;
47
+ task: string;
48
+ };
49
+ export type Api_QualityMetric_Request_Dto = {
50
+ id: string;
51
+ task_id: string;
52
+ name: string;
53
+ unit: string;
54
+ norm_from: number;
55
+ norm_to: number;
56
+ metric_before: number | null;
57
+ metric_after: number | null;
58
+ is_normal: boolean;
59
+ };
60
+ export type Api_Task_ChangeStatusVerification_Dto = {
61
+ id: string;
62
+ name: string;
63
+ };
1
64
  export type Api_Tasks_Responsible_Dto = {
2
65
  id: string;
3
66
  first_name: string;
@@ -27,13 +90,14 @@ export type Api_Tasks_Position_Dto = {
27
90
  name: string;
28
91
  display_name: string;
29
92
  };
93
+ export type Api_Tasks_Position_Assigned_User_Dto = {
94
+ id: string;
95
+ full_name: string;
96
+ };
30
97
  export type Api_Tasks_Position_Assigned_Dto = {
31
- id: number;
32
- user: {
33
- id: string;
34
- full_name: string;
35
- };
36
- position: Api_Tasks_Position_Dto;
98
+ id?: number;
99
+ user?: Api_Tasks_Position_Assigned_User_Dto | null;
100
+ position?: Api_Tasks_Position_Dto;
37
101
  };
38
102
  export type Api_Tasks_Teams_Dto = {
39
103
  id: string;
@@ -50,6 +114,26 @@ export type Api_Tasks_Equipment_Dto = {
50
114
  repair_frequency: number;
51
115
  repair_range: number;
52
116
  };
117
+ export type Api_Task_VideoSource_Dto = {
118
+ id: string;
119
+ name: string;
120
+ url: string;
121
+ work_zone_by_task: {
122
+ id: string;
123
+ title: string;
124
+ };
125
+ };
126
+ export type Api_Task_QualityMetric_Dto = {
127
+ id: string;
128
+ task_id: string;
129
+ name: string;
130
+ unit: string;
131
+ norm_from: number;
132
+ norm_to: number;
133
+ metric_before: number | null;
134
+ metric_after: number | null;
135
+ is_normal: boolean;
136
+ };
53
137
  export type Api_Tasks_Task_Dto = {
54
138
  id: string;
55
139
  name: string;
@@ -57,29 +141,20 @@ export type Api_Tasks_Task_Dto = {
57
141
  project_id: string;
58
142
  description: string;
59
143
  subtask_counter: number;
60
- subtasks: Api_Tasks_Task_Dto[];
61
144
  state_id: null | string;
62
145
  start_date: string;
63
146
  end_date: string;
64
147
  deadline: string;
65
148
  plan_date: string;
66
149
  time_to_complete: null | string | number;
67
- time_to_complete_sec: number;
150
+ time_to_complete_sec: number | null;
68
151
  priority: number;
69
152
  work_zone_id: null | string;
70
153
  location_id: null | string;
71
154
  target: any;
72
- status: Api_Tasks_Status_Dto;
73
- project: Api_Tasks_Project_Dto;
74
- position: Api_Tasks_Position_Dto[];
75
- assigned: Api_Tasks_Assigned_Dto[];
76
- instruments: any[];
155
+ instruments?: any[];
77
156
  warehouse: any[];
78
- responsible: Api_Tasks_Responsible_Dto[];
79
- position_assigned: Api_Tasks_Position_Assigned_Dto[];
80
- comments: any[];
81
157
  files: any[];
82
- teams: Api_Tasks_Teams_Dto[];
83
158
  work_zone: string;
84
159
  planned_start: null | string;
85
160
  planned_end: null | string;
@@ -89,7 +164,47 @@ export type Api_Tasks_Task_Dto = {
89
164
  pause_sec: number;
90
165
  repair_object: null | string;
91
166
  isPause: boolean;
167
+ defect: string | null;
168
+ subtasks: Api_Tasks_Task_Dto[];
169
+ status: Api_Tasks_Status_Dto;
170
+ project: Api_Tasks_Project_Dto;
171
+ position: Api_Tasks_Position_Dto[];
172
+ assigned: Api_Tasks_Assigned_Dto[];
173
+ responsible: Api_Tasks_Responsible_Dto[];
174
+ position_assigned: Api_Tasks_Position_Assigned_Dto[];
175
+ comments: Api_Comment_Dto[];
176
+ teams: Api_Tasks_Teams_Dto[];
92
177
  equipment: Api_Tasks_Equipment_Dto[];
178
+ instrument_types: Api_Task_Instrument_From_Warehouse[];
179
+ quality_metrics: Api_Task_QualityMetric_Dto[];
180
+ video_source: Api_Task_VideoSource_Dto;
181
+ };
182
+ export type Api_Tasks_Task_Edit_Request_Dto = {
183
+ name: string;
184
+ description?: string;
185
+ instruments?: string[];
186
+ responsible?: string[];
187
+ equipment?: string;
188
+ status: string;
189
+ assigned?: string[];
190
+ position_assigned?: unknown[];
191
+ files?: string[];
192
+ position?: unknown[];
193
+ warehouse?: string[];
194
+ teams?: string[];
195
+ video_source_id?: string;
196
+ work_zone_id?: string;
197
+ state_id?: string;
198
+ location_id?: string;
199
+ project_id?: string;
200
+ priority?: number;
201
+ start_date?: string;
202
+ plan_date?: string;
203
+ deadline?: string;
204
+ time_to_complete?: number;
205
+ time_to_complete_sec?: number;
206
+ target?: string;
207
+ repair_object_id?: string;
93
208
  };
94
209
  export type Api_Task_Instrument_Dto = {
95
210
  id: string;
@@ -146,7 +261,7 @@ export type Api_VideoSource_DTO = {
146
261
  title: string;
147
262
  };
148
263
  };
149
- export type Api_Task_DTO = {
264
+ export type Api_Task_Dto = {
150
265
  id: string;
151
266
  name: string;
152
267
  plan_date: string;
@@ -0,0 +1,43 @@
1
+ export type Api_Search_User_Passes = {
2
+ id: string
3
+ type: string
4
+ uuid: string
5
+ }
6
+ export type Api_Search_User_Positions = {
7
+ id: string
8
+ name: string
9
+ display_name: string
10
+ description: string
11
+ }
12
+ export type Api_Search_User_Roles = {
13
+ id: string
14
+ name: string
15
+ display_name: string
16
+ }
17
+ export type Api_Search_User_Teams = {
18
+ id: string
19
+ name: string
20
+ display_name: string
21
+ roles: Api_Search_User_Roles[]
22
+ }
23
+ export type Api_Search_User_Photos = {
24
+ id: string
25
+ name: string
26
+ path: string
27
+ type: string
28
+ }
29
+ export type Api_Search_User = {
30
+ id: string
31
+ full_name: string
32
+ last_name: string
33
+ first_name: string
34
+ patronymic: string
35
+ email: string
36
+ phone: string
37
+ divisions: string
38
+ personnel_number: string
39
+ passes: Api_Search_User_Passes[]
40
+ positions: Api_Search_User_Positions[]
41
+ teams: Api_Search_User_Teams[]
42
+ photos: Api_Search_User_Photos[]
43
+ }