@dexteel/mesf-core 4.0.1-alpha → 4.1.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 (48) hide show
  1. package/dist/components/navigation/hooks/useDefaultAreaId.d.ts +1 -1
  2. package/dist/configuration/pages/asset/components/dialogs/create-new-asset-dialog.d.ts +1 -1
  3. package/dist/configuration/pages/asset/components/dialogs/edit-asset-dialog.d.ts +1 -1
  4. package/dist/configuration/pages/asset/components/dialogs/remove-asset-dialog.d.ts +1 -1
  5. package/dist/configuration/pages/asset/components/hooks/useAssetActions.d.ts +9 -12
  6. package/dist/configuration/pages/asset/context/ConfigurationAssetContext.d.ts +0 -38
  7. package/dist/configuration/pages/asset/hooks/useSearchAssets.d.ts +6 -1
  8. package/dist/configuration/pages/asset/reducers/ConfigurationAssetReducer.d.ts +0 -38
  9. package/dist/configuration/pages/asset/repositories/ConfigurationAssetRepository.d.ts +17 -25
  10. package/dist/configuration/pages/job/components/JobsTable/customHooks/{TableDataJobs/useJobsTableData.d.ts → useJobsTableData.d.ts} +5 -5
  11. package/dist/configuration/pages/job/components/ResetJob.d.ts +11 -0
  12. package/dist/configuration/pages/job/components/onEnableJob.d.ts +9 -0
  13. package/dist/configuration/pages/job/context/JobsContext.d.ts +9 -0
  14. package/dist/configuration/pages/job/reducers/JobsReducer.d.ts +9 -0
  15. package/dist/configuration/pages/job/repositories/JobsRepository.d.ts +12 -18
  16. package/dist/configuration/pages/log/components/LogsTable/TableLogs.d.ts +1 -0
  17. package/dist/configuration/pages/log/components/LogsTable/customHooks/useLogTableData.d.ts +2 -33
  18. package/dist/configuration/pages/log/components/hook/useGetLogsFromAPI.d.ts +2 -2
  19. package/dist/configuration/pages/log/repositories/LogsRepository.d.ts +3 -5
  20. package/dist/configuration/pages/profiles/components/ProceduresOfProfile/{ProceduresOfProfile.d.ts → ActionsOfProfile.d.ts} +1 -1
  21. package/dist/configuration/pages/profiles/components/ProceduresOfProfile/ProceduresDataTable/index.d.ts +3 -3
  22. package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts +2 -2
  23. package/dist/configuration/pages/profiles/components/common/Profiles/hook/useGetProfilesEffect.d.ts +2 -1
  24. package/dist/configuration/pages/profiles/models/Action.d.ts +4 -0
  25. package/dist/configuration/pages/profiles/models/Profile.d.ts +1 -0
  26. package/dist/configuration/pages/profiles/repositories/ProfilesRepository.d.ts +23 -62
  27. package/dist/configuration/pages/shifCrew/components/Create/CreateShift.d.ts +2 -3
  28. package/dist/configuration/pages/shifCrew/components/TableShifts.d.ts +3 -0
  29. package/dist/configuration/pages/shifCrew/components/customHooks/useTableShift.d.ts +5 -5
  30. package/dist/configuration/pages/shifCrew/context/ShiftsCrewsContext.d.ts +0 -11
  31. package/dist/configuration/pages/shifCrew/reducers/ShiftsCrewsReducer.d.ts +0 -11
  32. package/dist/configuration/pages/shifCrew/repositories/ShiftsCrewsRepository.d.ts +11 -26
  33. package/dist/configuration/pages/users/components/Create/CreateUser.d.ts +2 -3
  34. package/dist/configuration/pages/users/components/UsersDataTable/customHooks/useTableData.d.ts +6 -6
  35. package/dist/configuration/pages/users/components/common/ProfilesPicker.d.ts +2 -1
  36. package/dist/configuration/pages/users/repositories/UsersRepository.d.ts +26 -40
  37. package/dist/controls/panels.d.ts +1 -1
  38. package/dist/hooks/useSearchAssets.d.ts +1 -1
  39. package/dist/hooks/useSearchUTLSetting.d.ts +1 -1
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.esm.js +2000 -1669
  42. package/dist/repositorie/MESF-frontend-Repositorie.d.ts +16 -24
  43. package/dist/services/ApiService.d.ts +8 -1
  44. package/dist/utils.d.ts +1 -0
  45. package/package.json +1 -4
  46. package/dist/configuration/pages/profiles/components/common/hooks/useGetColorByPermissionId.d.ts +0 -5
  47. package/dist/configuration/pages/profiles/models/Procedure.d.ts +0 -4
  48. package/dist/utils/getError.d.ts +0 -1
@@ -1,36 +1,28 @@
1
1
  export declare const getUser: (UserId: number, UserName: string | null) => Promise<{
2
- ok: boolean;
3
- data: any;
4
- message?: undefined;
2
+ ok: false;
3
+ message: string;
5
4
  } | {
6
- ok: boolean;
7
- message: any;
8
- data?: undefined;
5
+ ok: true;
6
+ data: any;
9
7
  }>;
10
8
  export declare const getAssets: () => Promise<{
11
- ok: boolean;
12
- data: any;
13
- message?: undefined;
9
+ ok: false;
10
+ message: string;
14
11
  } | {
15
- ok: boolean;
16
- message: any;
17
- data?: undefined;
12
+ ok: true;
13
+ data: any;
18
14
  }>;
19
15
  export declare const getUTLSettings: () => Promise<{
20
- ok: boolean;
21
- data: any;
22
- message?: undefined;
16
+ ok: false;
17
+ message: string;
23
18
  } | {
24
- ok: boolean;
25
- message: any;
26
- data?: undefined;
19
+ ok: true;
20
+ data: any;
27
21
  }>;
28
22
  export declare const upsertDefaultAreaId: (UserId: number, DefaultAreaId: number | null) => Promise<{
29
- ok: boolean;
30
- data: any;
31
- message?: undefined;
23
+ ok: false;
24
+ message: string;
32
25
  } | {
33
- ok: boolean;
34
- message: any;
35
- data?: undefined;
26
+ ok: true;
27
+ data: any;
36
28
  }>;
@@ -14,6 +14,13 @@ type ExportStructure = {
14
14
  showAllSheets?: boolean;
15
15
  sheets?: ExportSheet[];
16
16
  };
17
+ type ResponseMESF = {
18
+ ok: false;
19
+ message: string;
20
+ } | {
21
+ ok: true;
22
+ data: any;
23
+ };
17
24
  export type spParameter = {
18
25
  name: string;
19
26
  value: string | number | boolean | null | Date;
@@ -31,7 +38,7 @@ export declare class MESApiService {
31
38
  loginWithWindowsAuthentication(): Promise<Response>;
32
39
  uploadFiles(selectedFiles: File[], folderName?: string): Promise<any>;
33
40
  call(procedure: string, parameters: any[], database?: string): Promise<any>;
34
- callV2(procedure: string, parameters: any[], database?: string): Promise<any>;
41
+ callV2(procedure: string, parameters: any[], database?: string): Promise<ResponseMESF>;
35
42
  callJSON(procedure: string, parameters: any[], database?: string): Promise<any>;
36
43
  import(procedure: string, parameters: any[], files: any[], uniqueFile: any, database?: string): Promise<any>;
37
44
  export(procedure: string, parameters: spParameter[], fileName: string, database?: string): Promise<string | void>;
package/dist/utils.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export declare const getError: (error: any) => any;
1
2
  export declare const MESSAGE_API: {
2
3
  ERROR_MESSAGE: string;
3
4
  ERROR_EMPTY_SEARCH: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "4.0.1-alpha",
3
+ "version": "4.1.0",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -92,9 +92,6 @@
92
92
  "@azure/msal-browser": "^2.18.0",
93
93
  "@azure/msal-react": "^1.1.0",
94
94
  "@date-io/moment": "^1.3.13",
95
- "ag-grid-community": "^29.2.0",
96
- "ag-grid-enterprise": "^29.2.0",
97
- "ag-grid-react": "^29.2.0",
98
95
  "@emotion/styled": "^11.11.0",
99
96
  "@minoru/react-dnd-treeview": "^3.4.4",
100
97
  "axios": "^1.3.5",
@@ -1,5 +0,0 @@
1
- type Props = {
2
- profilesToProfiles: number[];
3
- };
4
- export declare const useGetColorByPermissionId: ({ profilesToProfiles }: Props) => (PermissionId: number) => string | false;
5
- export {};
@@ -1,4 +0,0 @@
1
- export interface Procedure {
2
- ProcedureId: number;
3
- sProcedure: string;
4
- }
@@ -1 +0,0 @@
1
- export declare const getError: (error: any) => any;