shared-ritm 1.3.36 → 1.3.38-alpha.0

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 (83) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +15284 -14832
  3. package/dist/shared-ritm.umd.js +564 -564
  4. package/dist/types/api/services/AuthService.d.ts +1 -0
  5. package/dist/types/api/services/ControlsService.d.ts +3 -0
  6. package/dist/types/api/services/EquipmentService.d.ts +15 -5
  7. package/dist/types/api/services/GanttService.d.ts +22 -0
  8. package/dist/types/api/services/InstrumentsService.d.ts +6 -1
  9. package/dist/types/api/services/MetricsService.d.ts +5 -1
  10. package/dist/types/api/services/RepairsService.d.ts +1 -1
  11. package/dist/types/api/services/TasksService.d.ts +3 -2
  12. package/dist/types/api/services/UserIssueService.d.ts +15 -0
  13. package/dist/types/api/services/UserService.d.ts +2 -1
  14. package/dist/types/api/services/VideoService.d.ts +2 -1
  15. package/dist/types/api/settings/ApiService.d.ts +7 -3
  16. package/dist/types/api/types/Api_Auth.d.ts +15 -0
  17. package/dist/types/api/types/Api_Controls.d.ts +1 -0
  18. package/dist/types/api/types/Api_Equipment.d.ts +45 -0
  19. package/dist/types/api/types/Api_Instruments.d.ts +24 -0
  20. package/dist/types/api/types/Api_Metrics.d.ts +69 -0
  21. package/dist/types/api/types/Api_Repairs.d.ts +14 -1
  22. package/dist/types/api/types/Api_Search.d.ts +1 -0
  23. package/dist/types/api/types/Api_Tasks.d.ts +1 -0
  24. package/dist/types/api/types/Api_User.d.ts +12 -0
  25. package/dist/types/api/types/Api_User_Issue.d.ts +33 -0
  26. package/dist/types/api/types/Api_Video.d.ts +5 -4
  27. package/dist/types/common/app-button/Button.stories.d.ts +13 -0
  28. package/dist/types/common/app-checkbox/Checkbox.stories.d.ts +12 -0
  29. package/dist/types/common/app-date-picker/DatePicker.stories.d.ts +7 -0
  30. package/dist/types/common/app-datepicker/Datepicker.stories.d.ts +10 -0
  31. package/dist/types/common/app-dialogs/Confirm.stories.d.ts +8 -0
  32. package/dist/types/common/app-dropdown/Dropdown.stories.d.ts +8 -0
  33. package/dist/types/common/app-file/File.stories.d.ts +8 -0
  34. package/dist/types/common/app-icon/Icon.stories.d.ts +7 -0
  35. package/dist/types/common/app-input/Input.stories.d.ts +9 -0
  36. package/dist/types/common/app-input-new/InputNew.stories.d.ts +12 -0
  37. package/dist/types/common/app-input-search/InputSearch.stories.d.ts +8 -0
  38. package/dist/types/common/app-loader/Loader.stories.d.ts +8 -0
  39. package/dist/types/common/app-select/Select.stories.d.ts +7 -0
  40. package/dist/types/common/app-table/components/ModalSelect.stories.d.ts +10 -0
  41. package/dist/types/common/app-toggle/Toggle.stories.d.ts +12 -0
  42. package/dist/types/configs/storybook.d.ts +1 -0
  43. package/dist/types/index.d.ts +3 -1
  44. package/dist/types/utils/files.d.ts +2 -0
  45. package/package.json +1 -1
  46. package/src/api/services/AuthService.ts +53 -53
  47. package/src/api/services/BrigadesService.ts +32 -32
  48. package/src/api/services/GanttService.ts +23 -23
  49. package/src/api/services/ModulesService.ts +27 -27
  50. package/src/api/services/ProjectsService.ts +83 -83
  51. package/src/api/services/ScheduleService.ts +69 -69
  52. package/src/api/services/SearchService.ts +22 -22
  53. package/src/api/services/TasksService.ts +157 -157
  54. package/src/api/services/VideoService.ts +5 -0
  55. package/src/api/settings/ApiService.ts +125 -124
  56. package/src/api/types/Api_Brigades.ts +36 -36
  57. package/src/api/types/Api_Modules.ts +21 -21
  58. package/src/api/types/Api_Projects.ts +62 -62
  59. package/src/api/types/Api_Schedule.ts +64 -64
  60. package/src/api/types/Api_Tasks.ts +376 -375
  61. package/src/api/types/Api_Video.ts +7 -4
  62. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  63. package/src/common/app-datepicker/AppDatepicker.vue +218 -218
  64. package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
  65. package/src/common/app-dropdown/AppDropdown.vue +37 -37
  66. package/src/common/app-icon/AppIcon.vue +108 -108
  67. package/src/common/app-input/AppInput.vue +148 -148
  68. package/src/common/app-layout/AppLayout.vue +84 -84
  69. package/src/common/app-layout/components/AppLayoutHeader.vue +273 -273
  70. package/src/common/app-select/AppSelect.vue +159 -159
  71. package/src/common/app-sidebar/components/SidebarMenuItem.vue +149 -149
  72. package/src/common/app-table/AppTableLayout.vue +137 -137
  73. package/src/common/app-table/components/TableModal.vue +367 -367
  74. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  75. package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
  76. package/src/common/app-toggle/AppToggle.vue +24 -24
  77. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  78. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  79. package/src/shared/styles/general.css +124 -124
  80. package/src/utils/helpers.ts +59 -59
  81. package/dist/types/api/services/ComentsServise.d.ts +0 -10
  82. package/dist/types/api/services/PhotoService.d.ts +0 -53
  83. package/dist/types/api/types/Api_Users.d.ts +0 -43
@@ -8,6 +8,7 @@ declare class AuthService extends ApiService {
8
8
  userInfo(): Promise<any>;
9
9
  configs(): Promise<ConfigResponse>;
10
10
  changePassword(id: string, password: string, password_confirmation: string): Promise<ChangePasswordResponse>;
11
+ changePasswordAndActivate(email: string, currentPassword: string, password: string, passwordConfirmation: string): Promise<any>;
11
12
  }
12
13
  export default function useAuthService(): AuthService;
13
14
  export {};
@@ -23,6 +23,9 @@ declare class ControlsService extends ApiService {
23
23
  deleteInstrumentType(id: string): Promise<any>;
24
24
  fetchRpdzLogList(params: Record<string, any>): Promise<ResponseApi<Api_ControlLogs_Dto[]>>;
25
25
  exportRpdzLogList(params: Record<string, any>): Promise<Blob>;
26
+ editControlLog(id: string, body: {
27
+ description: string | null;
28
+ }): Promise<void>;
26
29
  }
27
30
  export default function useControlsService(): ControlsService;
28
31
  export {};
@@ -1,15 +1,25 @@
1
1
  import ApiService from '../settings/ApiService';
2
2
  import { ResponseApi } from '../types/Api_Service';
3
- import { Api_Equipment_Full_Dto } from '@/api/types/Api_Repairs';
4
- import { Api_Equipment_Create } from '@/api/types/Api_Equipment';
3
+ import { Api_Create_Equipment_Dto, Api_Equipment_Dto, Api_Equipment_Tree_Dto, Api_Equipment_Type, Api_Equipment_Type_Body } from '@/api/types/Api_Equipment';
5
4
  declare class EquipmentService extends ApiService {
6
- fetchEquipment(params?: any): Promise<ResponseApi<Api_Equipment_Full_Dto[]>>;
7
- createEquipment(body: Api_Equipment_Create): Promise<Api_Equipment_Full_Dto>;
8
- editEquipment(id: string, body: Partial<Api_Equipment_Create>): Promise<Api_Equipment_Full_Dto>;
5
+ fetchEquipmentById(id: string): Promise<Api_Equipment_Dto>;
6
+ fetchEquipment(params?: any): Promise<ResponseApi<Api_Equipment_Dto[]>>;
7
+ fetchEquipmentTree(id: string): Promise<Api_Equipment_Tree_Dto[]>;
8
+ createEquipment(payload: Api_Create_Equipment_Dto): Promise<Api_Equipment_Dto>;
9
+ editEquipment(id: string, payload: Api_Create_Equipment_Dto): Promise<Api_Equipment_Dto>;
9
10
  deleteEquipment(id: string): Promise<{
10
11
  data: boolean;
11
12
  status: number;
12
13
  }>;
14
+ fetchEquipmentTypeList(params?: any): Promise<ResponseApi<Api_Equipment_Type[]>>;
15
+ fetchEquipmentType(id: string): Promise<Api_Equipment_Type>;
16
+ createEquipmentType(body: Api_Equipment_Type_Body): Promise<Api_Equipment_Type>;
17
+ editEquipmentType(id: string, body: Partial<Api_Equipment_Type_Body>): Promise<Api_Equipment_Type>;
18
+ deleteEquipmentType(id: string): Promise<{
19
+ data: boolean;
20
+ status: number;
21
+ }>;
22
+ checkEquipmentInChildTasks(task_id: string): Promise<boolean>;
13
23
  }
14
24
  export default function useEquipmentService(): EquipmentService;
15
25
  export {};
@@ -1,8 +1,30 @@
1
1
  import ApiService from '../settings/ApiService';
2
+ export type ApiCreateGanttLinkDto = {
3
+ type: 'FS' | 'SS' | 'FF' | 'SF';
4
+ parent_id: string;
5
+ child_id: string;
6
+ lag: number;
7
+ };
8
+ export type ApiUpdateGanttLinkDto = {
9
+ type: 'FS' | 'SS' | 'FF' | 'SF';
10
+ lag: number;
11
+ };
12
+ export type ApiGanttLinkDto = {
13
+ id: string;
14
+ type: 'FS' | 'SS' | 'FF' | 'SF';
15
+ parent_id: string;
16
+ child_id: string;
17
+ lag: number;
18
+ };
2
19
  declare class GanttService extends ApiService {
3
20
  fetchCriticalPathTasks(params: string): Promise<any>;
4
21
  fetchGanttList(params: string): Promise<any>;
5
22
  setFixPlan(project_id: string): Promise<any>;
23
+ getLinksByProject(id: string): Promise<ApiGanttLinkDto[]>;
24
+ createLink(payload: ApiCreateGanttLinkDto): Promise<ApiGanttLinkDto>;
25
+ editLink(id: string, payload: ApiUpdateGanttLinkDto): Promise<ApiGanttLinkDto>;
26
+ deleteLink(id: string): Promise<any>;
27
+ recalculateLinks(projectIds: string[]): Promise<any>;
6
28
  }
7
29
  export default function useGanttService(): GanttService;
8
30
  export {};
@@ -1,8 +1,9 @@
1
1
  import ApiService from '../settings/ApiService';
2
- import { Api_Instrument, Api_instruments_HistoryResponse, Api_Search_Instrument, Api_Warehouse_Create, Api_Warehouse_Search, Api_Warehouse_Status_History_Item } from '../types/Api_Instruments';
2
+ import { Api_Instrument, Api_instruments_HistoryResponse, Api_Search_Instrument, Api_Warehouse_Create, Api_Warehouse_Discard, Api_Warehouse_Search, Api_Warehouse_Status_History_Item } from '../types/Api_Instruments';
3
3
  import { ResponseApi } from '@/api/types/Api_Service';
4
4
  declare class InstrumentsService extends ApiService {
5
5
  fetchUserInstrumentsHistory(id: string, page?: number): Promise<Api_instruments_HistoryResponse>;
6
+ fetchDiscardWarehouses(params: any): Promise<ResponseApi<Api_Warehouse_Search[]>>;
6
7
  fetchWarehouses(params: any): Promise<ResponseApi<Api_Warehouse_Search[]>>;
7
8
  fetchWarehouse(id: string): Promise<Api_Instrument>;
8
9
  fetchStatusHistory(id: string): Promise<Api_Warehouse_Status_History_Item[]>;
@@ -15,6 +16,10 @@ declare class InstrumentsService extends ApiService {
15
16
  data: boolean;
16
17
  status: number;
17
18
  }>;
19
+ changeStatusWarehouse(model: Partial<Api_Warehouse_Discard>): Promise<{
20
+ data: boolean;
21
+ status: number;
22
+ }>;
18
23
  unsetWarehouseRfid(model: {
19
24
  warehouses: string[];
20
25
  }): Promise<Api_Warehouse_Search[]>;
@@ -1,6 +1,6 @@
1
1
  import ApiService from '../settings/ApiService';
2
2
  import { ResponseApi } from '../types/Api_Service';
3
- import { Api_Metrics_Unused_Personnel } from '@/api/types/Api_Metrics';
3
+ import { Api_Metrics_Instruments_Plan, Api_Metrics_Performance, Api_Metrics_Personnel_Plan, Api_Metrics_Personnel_Plan_Project, Api_Metrics_Personnel_Plan_Project_Body, Api_Metrics_Unused_Personnel } from '@/api/types/Api_Metrics';
4
4
  declare class MetricsService extends ApiService {
5
5
  fetchPieProjects(queryString: string): Promise<ResponseApi<any>>;
6
6
  fetchPieTasks(queryString: string): Promise<ResponseApi<any>>;
@@ -30,6 +30,10 @@ declare class MetricsService extends ApiService {
30
30
  fetchWorkZoneInfo(queryString: string): Promise<any>;
31
31
  fetchPieAllTasks(queryString: string): Promise<any>;
32
32
  fetchPieAllTasksInfo(queryString: string): Promise<any>;
33
+ fetchPersonnelPlan(params: any): Promise<Api_Metrics_Personnel_Plan>;
34
+ fetchPersonnelPlanProjects(body: Api_Metrics_Personnel_Plan_Project_Body): Promise<Api_Metrics_Personnel_Plan_Project[]>;
35
+ fetchInstrumentsPlan(params: any): Promise<Api_Metrics_Instruments_Plan[]>;
36
+ fetchPerformanceAssigned(id: string): Promise<Api_Metrics_Performance>;
33
37
  }
34
38
  export default function useMetricsService(): MetricsService;
35
39
  export {};
@@ -17,7 +17,7 @@ declare class RepairsService extends ApiService {
17
17
  restoreRepair(id: string): Promise<any>;
18
18
  updateRepair(payload: Api_Update_Repair, id: string): Promise<void>;
19
19
  copyRepair(id: string): Promise<any>;
20
- deleteRepair(id: string): Promise<import("axios").AxiosResponse<any, any>>;
20
+ deleteRepair(id: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
21
21
  fetchIntersection(id: string): Promise<Api_Repair_Intersection[]>;
22
22
  }
23
23
  export default function useRepairsService(): RepairsService;
@@ -1,7 +1,8 @@
1
1
  import ApiService from '../settings/ApiService';
2
2
  import { ResponseApi } from '../types/Api_Service';
3
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, Api_Task_Intersections_DTO } from '../types/Api_Tasks';
4
- import { Api_Equipment_Full_Dto, Api_Task_Video_Source, Api_Task_Video_Source_Stream } from '../types/Api_Repairs';
4
+ import { Api_Task_Video_Source, Api_Task_Video_Source_Stream } from '../types/Api_Repairs';
5
+ import { Api_Equipment_Dto } from '@/api/types/Api_Equipment';
5
6
  export type EquipmentData = {
6
7
  id: string;
7
8
  model: unknown;
@@ -28,7 +29,7 @@ declare class TasksService extends ApiService {
28
29
  replaceInstruments(payload: Api_Tasks_ReplaceInstrument_Request_Dto[]): Promise<ResponseApi<any[]>>;
29
30
  fetchTaskUsagePersonal(task_id: string): Promise<Api_Tasks_AllPersonalUser_Dto>;
30
31
  fetchTaskUsageInstrument(task_id: string): Promise<Api_Tasks_InstrumentHistory_Item_Dto[]>;
31
- fetchEquipment(params: any): Promise<ResponseApi<Api_Equipment_Full_Dto[]>>;
32
+ fetchEquipment(params: any): Promise<ResponseApi<Api_Equipment_Dto[]>>;
32
33
  fetchTaskVideoSources(params: any): Promise<ResponseApi<Api_Task_Video_Source[]>>;
33
34
  fetchTaskVideoSourcesStream(params: any): Promise<ResponseApi<Api_Task_Video_Source_Stream[]>>;
34
35
  createWorkZone(payload: any): Promise<unknown>;
@@ -0,0 +1,15 @@
1
+ import ApiService from '../settings/ApiService';
2
+ import { Api_User_Issue, Api_User_Issue_List_Item, Api_User_Issue_Properties } from '@/api/types/Api_User_Issue';
3
+ import { ResponseApi } from '@/api/types/Api_Service';
4
+ declare class UserIssueService extends ApiService {
5
+ createUserIssue(body: any): Promise<Api_User_Issue_List_Item>;
6
+ getUserIssue(id: string): Promise<Api_User_Issue>;
7
+ getUserIssueList(params: any): Promise<ResponseApi<Api_User_Issue_List_Item>>;
8
+ getProperties(): Promise<Api_User_Issue_Properties>;
9
+ deleteUserIssue(id: string): Promise<{
10
+ data: boolean;
11
+ status: number;
12
+ }>;
13
+ }
14
+ export default function useUserIssueService(): UserIssueService;
15
+ export {};
@@ -1,5 +1,5 @@
1
1
  import ApiService from '../settings/ApiService';
2
- import { Api_User, Api_User_Create, Api_User_Delete_Body, Api_User_Delete_Photos_Body, Api_User_Position, Api_User_Role, Api_User_Team, Api_User_Team_Search, Api_User_Warehouse } from '../types/Api_User';
2
+ import { Api_User, Api_User_Create, Api_User_Delete_Body, Api_User_Delete_Photos_Body, Api_User_Position, Api_User_Role, Api_User_Team, Api_User_Team_Search, Api_User_Warehouse, Api_User_Change_Password_Payload } from '../types/Api_User';
3
3
  import { ResponseApi } from '../types/Api_Service';
4
4
  declare class UserService extends ApiService {
5
5
  editUser({ id, model }: {
@@ -7,6 +7,7 @@ declare class UserService extends ApiService {
7
7
  model: any;
8
8
  }): Promise<Api_User>;
9
9
  getUser(id: string): Promise<Api_User>;
10
+ changeUserPassword(payload: Api_User_Change_Password_Payload): Promise<Api_User>;
10
11
  getUserWarehouses(params: {
11
12
  user_id: string;
12
13
  page?: number;
@@ -1,6 +1,6 @@
1
1
  import ApiService from '../settings/ApiService';
2
2
  import { ResponseApi } from '@/api/types/Api_Service';
3
- import { Api_Video_Combination, Api_Video_Source_By_Repair, Api_Video_Source_Create, Api_Video_Source_Search, Api_Video_Training_Status, Api_Work_Zone, Api_Work_Zone_Search } from '@/api/types/Api_Video';
3
+ import { Api_Video_Combination, Api_Video_Source_By_Repair, Api_Video_Source_Create, Api_Video_Source_Economics, Api_Video_Source_Search, Api_Video_Training_Status, Api_Work_Zone, Api_Work_Zone_Search } from '@/api/types/Api_Video';
4
4
  declare class VideoService extends ApiService {
5
5
  startVideoAnalytics(): Promise<boolean>;
6
6
  reloadVideoAnalytics(ids: string[]): Promise<any>;
@@ -18,6 +18,7 @@ declare class VideoService extends ApiService {
18
18
  status: number;
19
19
  }>;
20
20
  fetchVideoSources(params?: any): Promise<ResponseApi<Api_Video_Source_Search[]>>;
21
+ fetchVideoSourceEconomics(params?: any): Promise<ResponseApi<Api_Video_Source_Economics>>;
21
22
  createVideoSource(body: Api_Video_Source_Create): Promise<Api_Video_Source_Search>;
22
23
  editVideoSource(id: string, body: Partial<Api_Video_Source_Create>): Promise<Api_Video_Source_Search>;
23
24
  deleteVideoSource(id: string): Promise<void>;
@@ -5,12 +5,16 @@ export declare enum ApiServiceType {
5
5
  export default class ApiService {
6
6
  private axiosInstance;
7
7
  constructor();
8
- private getToken;
8
+ private setAccessToken;
9
+ private getAccessToken;
9
10
  private removeToken;
10
- logout(): void;
11
+ private subscribeTokenRefresh;
12
+ private refresh;
13
+ private onRefreshed;
14
+ logoutUser(): any;
11
15
  private handleError;
12
16
  protected get<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
13
- protected delete<T>(url: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T, any>>;
17
+ protected delete<T>(url: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T, any, {}>>;
14
18
  protected post<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<any>;
15
19
  protected patch<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
16
20
  protected put<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
@@ -64,6 +64,15 @@ export type Api_Auth_User = {
64
64
  roles: Api_Auth_User_Role[];
65
65
  security_warnings: any[];
66
66
  teams: Api_Auth_User_Team[];
67
+ avatar: null;
68
+ change_password: null;
69
+ created_at: string;
70
+ deleted_at: null;
71
+ face_recognition_id: null;
72
+ password_change_available_at: string;
73
+ password_change_due_at: string;
74
+ password_last_changed_at: string;
75
+ updated_at: string;
67
76
  };
68
77
  export type Api_Auth_Login = {
69
78
  token: string;
@@ -73,5 +82,11 @@ export type ChangePasswordPayload = {
73
82
  password: string;
74
83
  password_confirmation: string;
75
84
  };
85
+ export type ChangePasswordAndActivatePayload = {
86
+ email: string;
87
+ currentPassword: string;
88
+ password: string;
89
+ passwordConfirmation: string;
90
+ };
76
91
  export type ChangePasswordResponse = Pick<Api_User, 'id' | 'archiveHistory' | 'assigned_tasks' | 'divisions' | 'email' | 'full_name' | 'passes' | 'personnel_number' | 'phone' | 'photos' | 'positions' | 'responsible_tasks' | 'teams' | 'warehouses'>;
77
92
  export type ConfigResponse = any;
@@ -66,6 +66,7 @@ export type Api_ControlLogs_Dto = {
66
66
  user: Api_User_Dto[];
67
67
  frame: Api_ControlZones_Dto[];
68
68
  warehouse: Api_Warehouse_Dto[];
69
+ description: string | null;
69
70
  };
70
71
  export type Api_New_Items = {
71
72
  title: string;
@@ -1,2 +1,47 @@
1
1
  import { Api_Equipment_Full_Dto } from '@/api/types/Api_Repairs';
2
2
  export type Api_Equipment_Create = Omit<Api_Equipment_Full_Dto, 'id'>;
3
+ export type Api_Equipment_Element_Dto = {
4
+ id: string;
5
+ name: string;
6
+ model: string | null;
7
+ registration_number: string | null;
8
+ parent_id: string | null;
9
+ depth: string | null;
10
+ };
11
+ export type Api_Equipment_Dto = {
12
+ id: string;
13
+ equipment_type_id: string;
14
+ name: string;
15
+ model: string | null;
16
+ registration_number: string | null;
17
+ repair_frequency: number | string | null;
18
+ repair_range: number | string | null;
19
+ parent: Api_Equipment_Element_Dto | null;
20
+ root: Api_Equipment_Element_Dto | null;
21
+ children: Api_Equipment_Element_Dto[];
22
+ };
23
+ export type Api_Equipment_Tree_Dto = {
24
+ id: string;
25
+ parent_id: string;
26
+ root_id: string;
27
+ depth: string;
28
+ name: string;
29
+ model: string;
30
+ registration_number: string;
31
+ };
32
+ export type Api_Create_Equipment_Dto = {
33
+ equipment_type_id: string;
34
+ parent_id: string;
35
+ children: string[];
36
+ registration_number: string;
37
+ repair_frequency: number;
38
+ repair_range: number;
39
+ };
40
+ export type Api_Equipment_Type = {
41
+ id: string;
42
+ name: string;
43
+ model?: string | null;
44
+ description?: string | null;
45
+ updated_at: string;
46
+ };
47
+ export type Api_Equipment_Type_Body = Omit<Api_Equipment_Type, 'id' | 'updated_at'>;
@@ -122,3 +122,27 @@ export type Api_Search_Instrument = {
122
122
  name: string;
123
123
  warehouses: Api_Search_Instrument_Warehouse[];
124
124
  };
125
+ export type Api_Warehouse_Discard = {
126
+ status: string;
127
+ warehouses: string[];
128
+ };
129
+ export type Api_Discard_DTO = {
130
+ id: string;
131
+ status_id: string;
132
+ discarded_at: string | null;
133
+ status: {
134
+ id: string;
135
+ name: 'inspection' | 'repair' | string;
136
+ title: string;
137
+ };
138
+ responsible: {
139
+ id: string;
140
+ email: string;
141
+ full_name: string;
142
+ };
143
+ warehouse: {
144
+ id: string;
145
+ inventory_number: string;
146
+ name: string;
147
+ };
148
+ };
@@ -3,3 +3,72 @@ export type Api_Metrics_Unused_Personnel = {
3
3
  brigade_name: string | null;
4
4
  full_name: string | null;
5
5
  };
6
+ export type Api_Metrics_Personnel_Plan_User = {
7
+ user_id: string;
8
+ full_name: string;
9
+ position_id: string;
10
+ position_name: string;
11
+ position_display_name: string;
12
+ };
13
+ export type Api_Metrics_Personnel_Plan_Position = {
14
+ position_id: string;
15
+ position_name: string;
16
+ position_display_name: string;
17
+ count: number;
18
+ };
19
+ export type Api_Metrics_Personnel_Plan = {
20
+ engaged: Api_Metrics_Personnel_Plan_User[];
21
+ fixed_repair: Api_Metrics_Personnel_Plan_Position[];
22
+ ready: Api_Metrics_Personnel_Plan_User[];
23
+ };
24
+ export type Api_Metrics_Personnel_Plan_Project = {
25
+ id: string;
26
+ name: string;
27
+ };
28
+ export type Api_Metrics_Personnel_Plan_Project_Body = {
29
+ repairs: string[];
30
+ };
31
+ export type Api_Metrics_Instruments_Plan_Item = {
32
+ count: number;
33
+ instrument_name: string;
34
+ instrument_id: string;
35
+ };
36
+ export type Api_Metrics_Instruments_Plan = {
37
+ ready: Api_Metrics_Instruments_Plan_Item[];
38
+ fixate_repair: Api_Metrics_Instruments_Plan_Item[];
39
+ used: Api_Metrics_Instruments_Plan_Item[];
40
+ preparation_instrument_project: {
41
+ id: string;
42
+ name: string;
43
+ };
44
+ };
45
+ export type Api_Metrics_Performance = {
46
+ id: string;
47
+ name: string;
48
+ dynamics: boolean;
49
+ calc_performance_median: number | null;
50
+ tasks: Api_Metrics_Performance_Task[];
51
+ };
52
+ export type Api_Metrics_Performance_Task = {
53
+ id: string;
54
+ name: string;
55
+ calc_performance_median: number | null;
56
+ interval_start_date: string | null;
57
+ interval_end_date: string | null;
58
+ start_date: string | null;
59
+ end_date: string | null;
60
+ intervals_total_seconds: number | null;
61
+ work_zone_id: string;
62
+ assigned_users: Api_Metrics_Performance_User[];
63
+ };
64
+ export type Api_Metrics_Performance_User = {
65
+ id: string;
66
+ full_name: string;
67
+ calc_performance: number | null;
68
+ intervals_total_seconds: number | null;
69
+ position: {
70
+ id: string;
71
+ display_name: string;
72
+ };
73
+ intervals: unknown[];
74
+ };
@@ -18,6 +18,18 @@ export type Api_Projects = {
18
18
  id: string;
19
19
  name: string;
20
20
  };
21
+ export type Api_Repair_Project = {
22
+ id: string;
23
+ name: string;
24
+ has_positions_plan: boolean;
25
+ has_instruments_plan: boolean;
26
+ data: unknown;
27
+ category: {
28
+ display_name: string;
29
+ name: string;
30
+ code: number;
31
+ };
32
+ };
21
33
  export type OptionFilters = {
22
34
  teams?: Api_Team[];
23
35
  equipments?: Api_Equipment_Short_Dto[];
@@ -111,7 +123,7 @@ export type Api_Repair_Dto = {
111
123
  description: string;
112
124
  start_date: string;
113
125
  end_date: string;
114
- projects: Api_Projects[];
126
+ projects: Api_Repair_Project[];
115
127
  equipments: Api_Equipment_Full_Dto[];
116
128
  category: Api_Project_Category;
117
129
  completed_at: string | null;
@@ -120,6 +132,7 @@ export type Api_Repair_Dto = {
120
132
  power_output_MWh: number | null;
121
133
  has_instruments_plan: boolean;
122
134
  has_positions_plan: boolean;
135
+ is_fixed_plan: boolean;
123
136
  plan_start_date: string | null;
124
137
  status: Api_Status_DTO;
125
138
  teams: Api_Team[];
@@ -44,6 +44,7 @@ export type Api_Search_User = {
44
44
  photos: Api_Search_User_Photos[];
45
45
  archiveHistory: Api_User_Archive_History_Item[];
46
46
  has_brigades?: boolean;
47
+ has_video_analytics_photo?: boolean;
47
48
  };
48
49
  export type Api_Search_Instruments = {
49
50
  id: string;
@@ -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;
@@ -71,6 +71,16 @@ export type Api_User = {
71
71
  id: string;
72
72
  name: string;
73
73
  }[];
74
+ password_change_available_at: string;
75
+ password_change_due_at: string;
76
+ password_last_changed_at: string;
77
+ has_video_analytics_photo?: boolean;
78
+ };
79
+ export type Api_User_Change_Password_Payload = {
80
+ email: string;
81
+ password: string;
82
+ currentPassword: string;
83
+ passwordConfirmation: string;
74
84
  };
75
85
  export type Api_User_Create = {
76
86
  last_name?: string;
@@ -99,11 +109,13 @@ export type Api_User_Role = {
99
109
  display_name: string;
100
110
  permissions?: Api_User_Permission[];
101
111
  };
112
+ export type Api_User_Position_Type = 'admin' | 'worker' | null;
102
113
  export type Api_User_Position = {
103
114
  id: string;
104
115
  name: string;
105
116
  display_name: string;
106
117
  description?: string;
118
+ type?: Api_User_Position_Type;
107
119
  };
108
120
  export type Api_User_Delete_Body = {
109
121
  user_id: string;
@@ -0,0 +1,33 @@
1
+ export type Api_User_Issue_List_Item = {
2
+ id: string;
3
+ section: string;
4
+ status: string;
5
+ type: string;
6
+ topic: string;
7
+ created_at: string;
8
+ number: number;
9
+ };
10
+ export type Api_User_Issue_Msg = {
11
+ id: string;
12
+ message: string;
13
+ thread_id: string;
14
+ files: unknown[];
15
+ user: {
16
+ id: string;
17
+ full_name: string;
18
+ };
19
+ };
20
+ export type Api_User_Issue = {
21
+ id: string;
22
+ section: string;
23
+ status: string;
24
+ type: string;
25
+ topic: string;
26
+ number: number;
27
+ messages: Api_User_Issue_Msg[];
28
+ };
29
+ export type Api_User_Issue_Properties = {
30
+ section: Record<string, string>;
31
+ status: Record<string, string>;
32
+ type: Record<string, string>;
33
+ };
@@ -184,13 +184,14 @@ export type Api_Video_Combination = {
184
184
  origin_data: Api_Video_Combination_Origin;
185
185
  };
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
- power_output_MWh: number | null;
188
- cost_per_MWh: number | null;
189
187
  project_id: string;
190
188
  };
191
189
  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'> & {
192
- power_output_MWh: number | null;
193
- cost_per_MWh: number | null;
194
190
  points: unknown[];
195
191
  tasks: Api_Video_Source_Work_Zone_Task[];
196
192
  };
193
+ export type Api_Video_Source_Economics_Zone = {
194
+ id: string;
195
+ power_output_MWh: number | null;
196
+ };
197
+ export type Api_Video_Source_Economics = Record<string, Api_Video_Source_Economics_Zone[]>;
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import AppButton from '@/common/app-button/AppButton.vue';
3
+ declare const meta: Meta<typeof AppButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppButton>;
6
+ export declare const Primary: Story;
7
+ export declare const Size: Story;
8
+ export declare const Icon: Story;
9
+ export declare const Badge: Story;
10
+ export declare const Align: Story;
11
+ export declare const Spacing: Story;
12
+ export declare const Rounding: Story;
13
+ export declare const Other: Story;
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import AppCheckbox from '@/common/app-checkbox/AppCheckbox.vue';
3
+ declare const meta: Meta<typeof AppCheckbox>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppCheckbox>;
6
+ export declare const Default: Story;
7
+ export declare const States: Story;
8
+ export declare const Sizes: Story;
9
+ export declare const Colors: Story;
10
+ export declare const DarkBg: Story;
11
+ export declare const Icons: Story;
12
+ export declare const ArrayModel: Story;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import DatePicker from '@/common/app-date-picker/AppDatePicker.vue';
3
+ declare const meta: Meta<typeof DatePicker>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof DatePicker>;
6
+ export declare const Default: Story;
7
+ export declare const States: Story;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import AppDatepicker from './AppDatepicker.vue';
3
+ declare const meta: Meta<typeof AppDatepicker>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppDatepicker>;
6
+ export declare const Default: Story;
7
+ export declare const DateTimeModes: Story;
8
+ export declare const DateRestrictions: Story;
9
+ export declare const States: Story;
10
+ export declare const TimeFormat: Story;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import AppDialog from '@/common/app-dialogs/AppConfirmDialog.vue';
3
+ declare const meta: Meta<typeof AppDialog>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppDialog>;
6
+ export declare const Edit: Story;
7
+ export declare const Delete: Story;
8
+ export declare const CustomMessage: Story;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import AppDropdown from '@/common/app-dropdown/AppDropdown.vue';
3
+ declare const meta: Meta<typeof AppDropdown>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppDropdown>;
6
+ export declare const Default: Story;
7
+ export declare const WithSlots: Story;
8
+ export declare const ContentSize: Story;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import AppFile from '@/common/app-file/AppFile.vue';
3
+ declare const meta: Meta<typeof AppFile>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppFile>;
6
+ export declare const SingleFile: Story;
7
+ export declare const MultipleFiles: Story;
8
+ export declare const Disabled: Story;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import AppIcon from '@/common/app-icon/AppIcon.vue';
3
+ declare const meta: Meta<typeof AppIcon>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppIcon>;
6
+ export declare const Default: Story;
7
+ export declare const Sizes: Story;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import AppInput from '@/common/app-input/AppInput.vue';
3
+ declare const meta: Meta<typeof AppInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppInput>;
6
+ export declare const Default: Story;
7
+ export declare const InputTypes: Story;
8
+ export declare const States: Story;
9
+ export declare const Sizes: Story;