shared-ritm 1.3.37 → 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.
- package/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +12594 -12219
- package/dist/shared-ritm.umd.js +476 -476
- package/dist/types/api/services/AuthService.d.ts +1 -0
- package/dist/types/api/services/ControlsService.d.ts +3 -0
- package/dist/types/api/services/EquipmentService.d.ts +15 -5
- package/dist/types/api/services/GanttService.d.ts +22 -0
- package/dist/types/api/services/InstrumentsService.d.ts +6 -1
- package/dist/types/api/services/MetricsService.d.ts +5 -1
- package/dist/types/api/services/TasksService.d.ts +3 -2
- package/dist/types/api/services/UserIssueService.d.ts +15 -0
- package/dist/types/api/services/UserService.d.ts +2 -1
- package/dist/types/api/settings/ApiService.d.ts +6 -2
- package/dist/types/api/types/Api_Auth.d.ts +15 -0
- package/dist/types/api/types/Api_Controls.d.ts +1 -0
- package/dist/types/api/types/Api_Equipment.d.ts +45 -0
- package/dist/types/api/types/Api_Instruments.d.ts +24 -0
- package/dist/types/api/types/Api_Metrics.d.ts +69 -0
- package/dist/types/api/types/Api_Repairs.d.ts +14 -1
- package/dist/types/api/types/Api_Search.d.ts +1 -0
- package/dist/types/api/types/Api_User.d.ts +12 -0
- package/dist/types/api/types/Api_User_Issue.d.ts +33 -0
- package/dist/types/common/app-button/Button.stories.d.ts +13 -0
- package/dist/types/common/app-checkbox/Checkbox.stories.d.ts +12 -0
- package/dist/types/common/app-date-picker/DatePicker.stories.d.ts +7 -0
- package/dist/types/common/app-datepicker/Datepicker.stories.d.ts +10 -0
- package/dist/types/common/app-dialogs/Confirm.stories.d.ts +8 -0
- package/dist/types/common/app-dropdown/Dropdown.stories.d.ts +8 -0
- package/dist/types/common/app-file/File.stories.d.ts +8 -0
- package/dist/types/common/app-icon/Icon.stories.d.ts +7 -0
- package/dist/types/common/app-input/Input.stories.d.ts +9 -0
- package/dist/types/common/app-input-new/InputNew.stories.d.ts +12 -0
- package/dist/types/common/app-input-search/InputSearch.stories.d.ts +8 -0
- package/dist/types/common/app-loader/Loader.stories.d.ts +8 -0
- package/dist/types/common/app-select/Select.stories.d.ts +7 -0
- package/dist/types/common/app-table/components/ModalSelect.stories.d.ts +10 -0
- package/dist/types/common/app-toggle/Toggle.stories.d.ts +12 -0
- package/dist/types/configs/storybook.d.ts +1 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/utils/files.d.ts +2 -0
- package/package.json +64 -64
- package/src/App.vue +2461 -2461
- package/src/api/services/AuthService.ts +53 -53
- package/src/api/services/ControlsService.ts +96 -96
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/GanttService.ts +23 -23
- package/src/api/services/InstrumentsService.ts +68 -68
- package/src/api/services/MetricsService.ts +123 -123
- package/src/api/services/RepairsService.ts +111 -111
- package/src/api/services/TasksService.ts +157 -157
- package/src/api/services/UserService.ts +123 -123
- package/src/api/services/VideoService.ts +118 -118
- package/src/api/settings/ApiService.ts +2 -1
- package/src/api/types/Api_Auth.ts +105 -105
- package/src/api/types/Api_Controls.ts +111 -111
- package/src/api/types/Api_Equipment.ts +3 -3
- package/src/api/types/Api_Instruments.ts +156 -156
- package/src/api/types/Api_Metrics.ts +5 -5
- package/src/api/types/Api_Repairs.ts +186 -186
- package/src/api/types/Api_Search.ts +80 -80
- package/src/api/types/Api_Tasks.ts +376 -376
- package/src/api/types/Api_User.ts +146 -146
- package/src/api/types/Api_Video.ts +244 -244
- package/src/common/app-checkbox/AppCheckbox.vue +26 -26
- package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
- package/src/common/app-icon/AppIcon.vue +108 -108
- package/src/common/app-input/AppInput.vue +148 -148
- package/src/common/app-input-new/AppInputNew.vue +179 -179
- package/src/common/app-layout/components/AppLayoutHeader.vue +273 -273
- package/src/common/app-modal/index.vue +96 -96
- package/src/common/app-select/AppSelect.vue +159 -159
- package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
- package/src/common/app-sidebar/AppSidebar.vue +174 -174
- package/src/common/app-table/AppTable.vue +313 -313
- package/src/common/app-table/components/ModalSelect.vue +298 -298
- package/src/common/app-table/components/TableModal.vue +367 -367
- package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
- package/src/common/app-table/controllers/useTableModel.ts +102 -102
- package/src/common/app-toggle/AppToggle.vue +24 -24
- package/src/common/app-wrapper/AppWrapper.vue +28 -28
- package/src/index.ts +131 -131
- package/src/shared/styles/general.css +124 -124
- package/src/styles/variables.sass +12 -12
- package/src/utils/files.ts +19 -19
- package/src/utils/helpers.ts +59 -59
- package/dist/types/api/services/PhotoService.d.ts +0 -40
|
@@ -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 {
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 {};
|
|
@@ -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 {
|
|
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<
|
|
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;
|
|
@@ -5,9 +5,13 @@ export declare enum ApiServiceType {
|
|
|
5
5
|
export default class ApiService {
|
|
6
6
|
private axiosInstance;
|
|
7
7
|
constructor();
|
|
8
|
-
private
|
|
8
|
+
private setAccessToken;
|
|
9
|
+
private getAccessToken;
|
|
9
10
|
private removeToken;
|
|
10
|
-
|
|
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
17
|
protected delete<T>(url: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T, any, {}>>;
|
|
@@ -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;
|
|
@@ -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:
|
|
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[];
|
|
@@ -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
|
+
};
|
|
@@ -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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import AppInputNew from '@/common/app-input-new/AppInputNew.vue';
|
|
3
|
+
declare const meta: Meta<typeof AppInputNew>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof AppInputNew>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const InputTypes: Story;
|
|
8
|
+
export declare const Features: Story;
|
|
9
|
+
export declare const States: Story;
|
|
10
|
+
export declare const WithLabel: Story;
|
|
11
|
+
export declare const Password: Story;
|
|
12
|
+
export declare const WithAppendSlot: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import AppInputSearch from '@/common/app-input-search/AppInputSearch.vue';
|
|
3
|
+
declare const meta: Meta<typeof AppInputSearch>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof AppInputSearch>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const InputTypes: Story;
|
|
8
|
+
export declare const Styles: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import AppLoader from '@/common/app-loader/index.vue';
|
|
3
|
+
declare const meta: Meta<typeof AppLoader>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof AppLoader>;
|
|
6
|
+
export declare const GlobalLoader: Story;
|
|
7
|
+
export declare const Size: Story;
|
|
8
|
+
export declare const Thickness: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import AppSelect from '@/common/app-select/AppSelect.vue';
|
|
3
|
+
declare const meta: Meta<typeof AppSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof AppSelect>;
|
|
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 ModalSelect from './ModalSelect.vue';
|
|
3
|
+
declare const meta: Meta<typeof ModalSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ModalSelect>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Modes: Story;
|
|
8
|
+
export declare const SearchAndCreate: Story;
|
|
9
|
+
export declare const States: Story;
|
|
10
|
+
export declare const WithSlots: Story;
|