shared-ritm 1.2.34 → 1.2.36
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/README.md +103 -103
- package/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +12 -11
- package/dist/shared-ritm.umd.js +3 -3
- package/dist/types/api/services/AuthService.d.ts +3 -3
- package/dist/types/api/services/ControlsService.d.ts +11 -0
- package/dist/types/api/services/RepairsService.d.ts +7 -7
- package/dist/types/api/settings/ApiService.d.ts +1 -1
- package/dist/types/api/types/Api_Controls.d.ts +12 -0
- package/package.json +1 -1
- package/src/App.vue +2461 -2461
- package/src/api/services/AuthService.ts +58 -58
- package/src/api/services/ControlsService.ts +32 -0
- package/src/api/services/GanttService.ts +17 -17
- package/src/api/services/MetricsService.ts +101 -101
- package/src/api/settings/ApiService.ts +126 -126
- package/src/api/types/Api_Controls.ts +12 -0
- package/src/api/types/Api_Files.ts +1 -1
- package/src/api/types/Api_Projects.ts +55 -55
- package/src/api/types/Api_Repairs.ts +93 -93
- package/src/common/app-checkbox/AppCheckbox.vue +26 -26
- package/src/common/app-date-picker/AppDatePicker.vue +81 -81
- package/src/common/app-dialogs/AppConfirmDialog.vue +100 -100
- package/src/common/app-dropdown/AppDropdown.vue +31 -31
- package/src/common/app-icon/AppIcon.vue +108 -108
- package/src/common/app-input-search/AppInputSearch.vue +174 -174
- package/src/common/app-layout/AppLayout.vue +84 -84
- package/src/common/app-layout/components/AppLayoutHeader.vue +246 -246
- package/src/common/app-layout/components/AppLayoutPage.vue +16 -16
- package/src/common/app-select/AppSelect.vue +157 -157
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +146 -146
- package/src/common/app-toggle/AppToggle.vue +23 -23
- package/src/common/app-wrapper/AppWrapper.vue +28 -28
- package/src/icons/dialogs/RemoveIcon.vue +12 -12
- package/src/icons/dialogs/SafetyIcon.vue +12 -12
- package/src/icons/header/NotificationIcon.vue +18 -18
- package/src/icons/header/PersonIcon.vue +11 -11
- package/src/icons/header/SettingIcon.vue +14 -14
- package/src/icons/task/attention-icon.vue +13 -13
- package/src/icons/task/clock-icon.vue +10 -10
- package/src/icons/task/delete-icon.vue +10 -10
- package/src/icons/task/fire-icon.vue +16 -16
- package/src/main.ts +28 -28
- package/src/shared/styles/general.css +96 -96
- package/src/utils/confirm.ts +12 -12
- package/src/utils/notification.ts +9 -9
|
@@ -14,9 +14,9 @@ export type ChangePasswordPayload = {
|
|
|
14
14
|
export type ChangePasswordResponse = any;
|
|
15
15
|
export type ConfigResponse = any;
|
|
16
16
|
declare class AuthService extends ApiService {
|
|
17
|
-
login(email: string, password: string): Promise<
|
|
18
|
-
loginPhoto(photo: any): Promise<
|
|
19
|
-
logout(): Promise<
|
|
17
|
+
login(email: string, password: string): Promise<any>;
|
|
18
|
+
loginPhoto(photo: any): Promise<any>;
|
|
19
|
+
logout(): Promise<any>;
|
|
20
20
|
userInfo(): Promise<any>;
|
|
21
21
|
configs(): Promise<any>;
|
|
22
22
|
changePassword(id: string, password: string, password_confirmation: string): Promise<any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import ApiService, { ResponseApi } from '@/api/settings/ApiService';
|
|
2
|
+
import { Api_ControlZones_Dto } from '@/api/types/Api_Controls';
|
|
3
|
+
declare class ControlsService extends ApiService {
|
|
4
|
+
fetchProjectById(id: string): Promise<ResponseApi<Api_ControlZones_Dto>>;
|
|
5
|
+
createProject(params: any): Promise<ResponseApi<any>>;
|
|
6
|
+
editProject(id: string, params: any): Promise<ResponseApi<any>>;
|
|
7
|
+
fetchProjects(params: any): Promise<ResponseApi<Api_ControlZones_Dto[]>>;
|
|
8
|
+
deleteProject(id: string): Promise<any>;
|
|
9
|
+
}
|
|
10
|
+
export default function useControlsService(): ControlsService;
|
|
11
|
+
export {};
|
|
@@ -6,13 +6,13 @@ declare class RepairsService extends ApiService {
|
|
|
6
6
|
fetchEquipment(): Promise<ResponseApi<Api_Equipment_Full_Dto[]>>;
|
|
7
7
|
createRepair(payload: Api_Create_Repair_With_Equipments): Promise<any>;
|
|
8
8
|
startRepair(id: string): Promise<void>;
|
|
9
|
-
finishRepair(id: string): Promise<
|
|
10
|
-
finishPreparationProject(id: string): Promise<
|
|
11
|
-
moveRepairToCurrent(id: string): Promise<
|
|
12
|
-
moveArchiveToCurrent(id: string): Promise<
|
|
13
|
-
moveRepairToApr(id: string): Promise<
|
|
14
|
-
moveRepairToArchive(id: string): Promise<
|
|
15
|
-
restoreRepair(id: string): Promise<
|
|
9
|
+
finishRepair(id: string): Promise<any>;
|
|
10
|
+
finishPreparationProject(id: string): Promise<any>;
|
|
11
|
+
moveRepairToCurrent(id: string): Promise<any>;
|
|
12
|
+
moveArchiveToCurrent(id: string): Promise<any>;
|
|
13
|
+
moveRepairToApr(id: string): Promise<any>;
|
|
14
|
+
moveRepairToArchive(id: string): Promise<any>;
|
|
15
|
+
restoreRepair(id: string): Promise<any>;
|
|
16
16
|
updateRepair(payload: Api_Update_Repair, id: string): Promise<void>;
|
|
17
17
|
copyRepair(id: string): Promise<any>;
|
|
18
18
|
deleteRepair(id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -19,6 +19,6 @@ export default class ApiService {
|
|
|
19
19
|
private handleError;
|
|
20
20
|
protected get<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
|
|
21
21
|
protected delete<T>(url: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T, any>>;
|
|
22
|
-
protected post<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<
|
|
22
|
+
protected post<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<any>;
|
|
23
23
|
protected put<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
|
|
24
24
|
}
|