@dexteel/mesf-core 4.0.2-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.
- package/dist/components/navigation/hooks/useDefaultAreaId.d.ts +1 -1
- package/dist/configuration/pages/asset/components/dialogs/create-new-asset-dialog.d.ts +1 -1
- package/dist/configuration/pages/asset/components/dialogs/edit-asset-dialog.d.ts +1 -1
- package/dist/configuration/pages/asset/components/dialogs/remove-asset-dialog.d.ts +1 -1
- package/dist/configuration/pages/asset/components/hooks/useAssetActions.d.ts +9 -12
- package/dist/configuration/pages/asset/context/ConfigurationAssetContext.d.ts +0 -38
- package/dist/configuration/pages/asset/hooks/useSearchAssets.d.ts +6 -1
- package/dist/configuration/pages/asset/reducers/ConfigurationAssetReducer.d.ts +0 -38
- package/dist/configuration/pages/asset/repositories/ConfigurationAssetRepository.d.ts +17 -25
- package/dist/configuration/pages/job/components/JobsTable/customHooks/{TableDataJobs/useJobsTableData.d.ts → useJobsTableData.d.ts} +5 -5
- package/dist/configuration/pages/job/components/ResetJob.d.ts +11 -0
- package/dist/configuration/pages/job/components/onEnableJob.d.ts +9 -0
- package/dist/configuration/pages/job/context/JobsContext.d.ts +9 -0
- package/dist/configuration/pages/job/reducers/JobsReducer.d.ts +9 -0
- package/dist/configuration/pages/job/repositories/JobsRepository.d.ts +12 -18
- package/dist/configuration/pages/log/components/LogsTable/TableLogs.d.ts +1 -0
- package/dist/configuration/pages/log/components/LogsTable/customHooks/useLogTableData.d.ts +2 -33
- package/dist/configuration/pages/log/components/hook/useGetLogsFromAPI.d.ts +2 -2
- package/dist/configuration/pages/log/repositories/LogsRepository.d.ts +3 -5
- package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts +2 -2
- package/dist/configuration/pages/profiles/components/common/Profiles/hook/useGetProfilesEffect.d.ts +2 -1
- package/dist/configuration/pages/profiles/models/Profile.d.ts +1 -0
- package/dist/configuration/pages/profiles/repositories/ProfilesRepository.d.ts +20 -32
- package/dist/configuration/pages/shifCrew/components/Create/CreateShift.d.ts +2 -3
- package/dist/configuration/pages/shifCrew/components/TableShifts.d.ts +3 -0
- package/dist/configuration/pages/shifCrew/components/customHooks/useTableShift.d.ts +5 -5
- package/dist/configuration/pages/shifCrew/context/ShiftsCrewsContext.d.ts +0 -11
- package/dist/configuration/pages/shifCrew/reducers/ShiftsCrewsReducer.d.ts +0 -11
- package/dist/configuration/pages/shifCrew/repositories/ShiftsCrewsRepository.d.ts +11 -26
- package/dist/configuration/pages/users/components/Create/CreateUser.d.ts +2 -3
- package/dist/configuration/pages/users/components/UsersDataTable/customHooks/useTableData.d.ts +6 -6
- package/dist/configuration/pages/users/components/common/ProfilesPicker.d.ts +2 -1
- package/dist/configuration/pages/users/repositories/UsersRepository.d.ts +26 -40
- package/dist/controls/panels.d.ts +1 -1
- package/dist/hooks/useSearchAssets.d.ts +1 -1
- package/dist/hooks/useSearchUTLSetting.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1978 -1647
- package/dist/repositorie/MESF-frontend-Repositorie.d.ts +16 -24
- package/dist/services/ApiService.d.ts +8 -1
- package/dist/utils.d.ts +1 -0
- package/package.json +1 -4
- package/dist/configuration/pages/profiles/components/common/hooks/useGetColorByPermissionId.d.ts +0 -5
- 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:
|
|
3
|
-
|
|
4
|
-
message?: undefined;
|
|
2
|
+
ok: false;
|
|
3
|
+
message: string;
|
|
5
4
|
} | {
|
|
6
|
-
ok:
|
|
7
|
-
|
|
8
|
-
data?: undefined;
|
|
5
|
+
ok: true;
|
|
6
|
+
data: any;
|
|
9
7
|
}>;
|
|
10
8
|
export declare const getAssets: () => Promise<{
|
|
11
|
-
ok:
|
|
12
|
-
|
|
13
|
-
message?: undefined;
|
|
9
|
+
ok: false;
|
|
10
|
+
message: string;
|
|
14
11
|
} | {
|
|
15
|
-
ok:
|
|
16
|
-
|
|
17
|
-
data?: undefined;
|
|
12
|
+
ok: true;
|
|
13
|
+
data: any;
|
|
18
14
|
}>;
|
|
19
15
|
export declare const getUTLSettings: () => Promise<{
|
|
20
|
-
ok:
|
|
21
|
-
|
|
22
|
-
message?: undefined;
|
|
16
|
+
ok: false;
|
|
17
|
+
message: string;
|
|
23
18
|
} | {
|
|
24
|
-
ok:
|
|
25
|
-
|
|
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:
|
|
30
|
-
|
|
31
|
-
message?: undefined;
|
|
23
|
+
ok: false;
|
|
24
|
+
message: string;
|
|
32
25
|
} | {
|
|
33
|
-
ok:
|
|
34
|
-
|
|
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<
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexteel/mesf-core",
|
|
3
|
-
"version": "4.0
|
|
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",
|
package/dist/utils/getError.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getError: (error: any) => any;
|