@dexteel/mesf-core 4.0.2-alpha → 4.2.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 (47) hide show
  1. package/dist/MESFMain.d.ts +2 -1
  2. package/dist/components/navigation/Header.d.ts +2 -1
  3. package/dist/components/navigation/Navigation.d.ts +2 -1
  4. package/dist/components/navigation/hooks/useDefaultAreaId.d.ts +1 -1
  5. package/dist/configuration/pages/asset/components/dialogs/create-new-asset-dialog.d.ts +1 -1
  6. package/dist/configuration/pages/asset/components/dialogs/edit-asset-dialog.d.ts +1 -1
  7. package/dist/configuration/pages/asset/components/dialogs/remove-asset-dialog.d.ts +1 -1
  8. package/dist/configuration/pages/asset/components/hooks/useAssetActions.d.ts +9 -12
  9. package/dist/configuration/pages/asset/context/ConfigurationAssetContext.d.ts +0 -38
  10. package/dist/configuration/pages/asset/hooks/useSearchAssets.d.ts +6 -1
  11. package/dist/configuration/pages/asset/reducers/ConfigurationAssetReducer.d.ts +0 -38
  12. package/dist/configuration/pages/asset/repositories/ConfigurationAssetRepository.d.ts +17 -25
  13. package/dist/configuration/pages/job/components/JobsTable/customHooks/{TableDataJobs/useJobsTableData.d.ts → useJobsTableData.d.ts} +5 -5
  14. package/dist/configuration/pages/job/components/ResetJob.d.ts +11 -0
  15. package/dist/configuration/pages/job/components/onEnableJob.d.ts +9 -0
  16. package/dist/configuration/pages/job/context/JobsContext.d.ts +9 -0
  17. package/dist/configuration/pages/job/reducers/JobsReducer.d.ts +9 -0
  18. package/dist/configuration/pages/job/repositories/JobsRepository.d.ts +12 -18
  19. package/dist/configuration/pages/log/components/LogsTable/TableLogs.d.ts +1 -0
  20. package/dist/configuration/pages/log/components/LogsTable/customHooks/useLogTableData.d.ts +2 -33
  21. package/dist/configuration/pages/log/components/hook/useGetLogsFromAPI.d.ts +2 -2
  22. package/dist/configuration/pages/log/repositories/LogsRepository.d.ts +3 -5
  23. package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts +2 -2
  24. package/dist/configuration/pages/profiles/components/common/Profiles/hook/useGetProfilesEffect.d.ts +2 -1
  25. package/dist/configuration/pages/profiles/models/Profile.d.ts +1 -0
  26. package/dist/configuration/pages/profiles/repositories/ProfilesRepository.d.ts +20 -32
  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 +1964 -1635
  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/utils/getError.d.ts +0 -1
@@ -4,8 +4,9 @@ interface Props {
4
4
  authentication: any;
5
5
  routes: any;
6
6
  navbar: any;
7
+ navbarTitle?: string;
7
8
  configurations: any;
8
9
  showAreaSelector?: boolean;
9
10
  }
10
- declare function MESFMain({ authentication, routes, navbar, configurations, showAreaSelector }: Props): React.JSX.Element;
11
+ declare function MESFMain({ authentication, routes, navbar, navbarTitle, configurations, showAreaSelector }: Props): React.JSX.Element;
11
12
  export { MESFMain };
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
- export default function Header({ showAreaSelector }: {
2
+ export default function Header({ showAreaSelector, navbarTitle }: {
3
3
  showAreaSelector?: boolean;
4
+ navbarTitle?: string;
4
5
  }): React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- declare const Navigation: ({ showAreaSelector }: {
2
+ declare const Navigation: ({ showAreaSelector, navbarTitle }: {
3
3
  showAreaSelector?: boolean | undefined;
4
+ navbarTitle?: string | undefined;
4
5
  }) => React.JSX.Element;
5
6
  export default Navigation;
@@ -1 +1 @@
1
- export declare const useDefaultAreaId: () => () => void;
1
+ export declare const useDefaultAreaId: (setError: (err: string) => void) => () => void;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  type Props = {
3
3
  show: boolean;
4
- onHide: (onHide: boolean) => void;
4
+ onHide: (shouldUpdate: boolean) => void;
5
5
  };
6
6
  export declare const CreateNewAssetDialog: ({ show, onHide }: Props) => React.JSX.Element;
7
7
  export {};
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  type Props = {
3
3
  show: boolean;
4
- onHide: (onHide: boolean) => void;
4
+ onHide: (shouldUpdate: boolean) => void;
5
5
  };
6
6
  export declare const EditAssetDialog: ({ show, onHide }: Props) => React.JSX.Element;
7
7
  export {};
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  type Props = {
3
3
  show: boolean;
4
- onHide: (onHide: boolean) => void;
4
+ onHide: (shouldUpdate: boolean) => void;
5
5
  };
6
6
  export declare const RemoveAssetDialog: ({ show, onHide }: Props) => React.JSX.Element;
7
7
  export {};
@@ -1,27 +1,24 @@
1
- /// <reference types="react" />
2
1
  import { DropOptions, NodeModel } from "@minoru/react-dnd-treeview";
3
2
  import { FileProperties } from "../../models/FileProperties";
4
3
  type Props = {
5
4
  asset: NodeModel<FileProperties>[];
6
5
  selectedNodes: NodeModel<FileProperties>[];
7
- originalAsset: NodeModel<FileProperties>[];
8
6
  isCtrlPressing: boolean;
9
7
  setIsCtrlPressing: Function;
10
- setAsset: Function;
11
8
  setSelectedNodes: Function;
12
9
  setIsDragging: Function;
10
+ onAssetUpdateEnd: (result: {
11
+ ok: true;
12
+ } | {
13
+ ok: false;
14
+ message: string;
15
+ }) => void;
16
+ onAssetUpdateStart?: () => void;
13
17
  };
14
- export declare const useAssetActions: ({ asset, selectedNodes, originalAsset, setAsset, setSelectedNodes, isCtrlPressing, setIsDragging, setIsCtrlPressing }: Props) => {
15
- handleDrop: (newAsset: NodeModel<FileProperties>[], options: DropOptions<FileProperties>) => void;
16
- handleUpdateAsset: () => void;
18
+ export declare const useAssetActions: ({ asset, selectedNodes, setSelectedNodes, isCtrlPressing, setIsDragging, setIsCtrlPressing, onAssetUpdateEnd, onAssetUpdateStart, }: Props) => {
19
+ handleDrop: (_: NodeModel<FileProperties>[], options: DropOptions<FileProperties>) => Promise<void>;
17
20
  handleCtrlClick: (e: React.MouseEvent, node: NodeModel<FileProperties>) => void;
18
21
  handleDragEnd: () => void;
19
22
  handleDragStart: (node: NodeModel<FileProperties>) => void;
20
- changedNodes: NodeModel<FileProperties>[];
21
- updatedSuccessfullyMessage: boolean;
22
- setUpdatedSuccessfullyMessage: import("react").Dispatch<import("react").SetStateAction<boolean>>;
23
- setChangedNodes: import("react").Dispatch<import("react").SetStateAction<NodeModel<FileProperties>[]>>;
24
- showErrorMessage: boolean;
25
- setShowErrorMessage: import("react").Dispatch<import("react").SetStateAction<boolean>>;
26
23
  };
27
24
  export {};
@@ -16,7 +16,6 @@ export declare const useConfigurationAssetContext: () => {
16
16
  assetTreeName: string | null;
17
17
  assetCodes: any;
18
18
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
19
- allAssetLoading: boolean;
20
19
  };
21
20
  actions: import("@reduxjs/toolkit").CaseReducerActions<{
22
21
  setOpenAssets(state: import("immer/dist/internal").WritableDraft<{
@@ -35,7 +34,6 @@ export declare const useConfigurationAssetContext: () => {
35
34
  assetTreeName: string | null;
36
35
  assetCodes: any;
37
36
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
38
- allAssetLoading: boolean;
39
37
  }>, { payload }: {
40
38
  payload: any;
41
39
  type: string;
@@ -56,7 +54,6 @@ export declare const useConfigurationAssetContext: () => {
56
54
  assetTreeName: string | null;
57
55
  assetCodes: any;
58
56
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
59
- allAssetLoading: boolean;
60
57
  }>, { payload }: {
61
58
  payload: any;
62
59
  type: string;
@@ -77,7 +74,6 @@ export declare const useConfigurationAssetContext: () => {
77
74
  assetTreeName: string | null;
78
75
  assetCodes: any;
79
76
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
80
- allAssetLoading: boolean;
81
77
  }>, { payload }: {
82
78
  payload: any;
83
79
  type: string;
@@ -98,7 +94,6 @@ export declare const useConfigurationAssetContext: () => {
98
94
  assetTreeName: string | null;
99
95
  assetCodes: any;
100
96
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
101
- allAssetLoading: boolean;
102
97
  }>, { payload }: {
103
98
  payload: any;
104
99
  type: string;
@@ -119,7 +114,6 @@ export declare const useConfigurationAssetContext: () => {
119
114
  assetTreeName: string | null;
120
115
  assetCodes: any;
121
116
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
122
- allAssetLoading: boolean;
123
117
  }>, { payload }: {
124
118
  payload: any;
125
119
  type: string;
@@ -140,7 +134,6 @@ export declare const useConfigurationAssetContext: () => {
140
134
  assetTreeName: string | null;
141
135
  assetCodes: any;
142
136
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
143
- allAssetLoading: boolean;
144
137
  }>, { payload }: {
145
138
  payload: any;
146
139
  type: string;
@@ -161,7 +154,6 @@ export declare const useConfigurationAssetContext: () => {
161
154
  assetTreeName: string | null;
162
155
  assetCodes: any;
163
156
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
164
- allAssetLoading: boolean;
165
157
  }>, { payload }: {
166
158
  payload: any;
167
159
  type: string;
@@ -182,7 +174,6 @@ export declare const useConfigurationAssetContext: () => {
182
174
  assetTreeName: string | null;
183
175
  assetCodes: any;
184
176
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
185
- allAssetLoading: boolean;
186
177
  }>, { payload }: {
187
178
  payload: any;
188
179
  type: string;
@@ -203,7 +194,6 @@ export declare const useConfigurationAssetContext: () => {
203
194
  assetTreeName: string | null;
204
195
  assetCodes: any;
205
196
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
206
- allAssetLoading: boolean;
207
197
  }>, { payload }: {
208
198
  payload: any;
209
199
  type: string;
@@ -224,7 +214,6 @@ export declare const useConfigurationAssetContext: () => {
224
214
  assetTreeName: string | null;
225
215
  assetCodes: any;
226
216
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
227
- allAssetLoading: boolean;
228
217
  }>, { payload }: {
229
218
  payload: any;
230
219
  type: string;
@@ -245,7 +234,6 @@ export declare const useConfigurationAssetContext: () => {
245
234
  assetTreeName: string | null;
246
235
  assetCodes: any;
247
236
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
248
- allAssetLoading: boolean;
249
237
  }>, { payload }: {
250
238
  payload: any;
251
239
  type: string;
@@ -266,7 +254,6 @@ export declare const useConfigurationAssetContext: () => {
266
254
  assetTreeName: string | null;
267
255
  assetCodes: any;
268
256
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
269
- allAssetLoading: boolean;
270
257
  }>, { payload }: {
271
258
  payload: any;
272
259
  type: string;
@@ -287,7 +274,6 @@ export declare const useConfigurationAssetContext: () => {
287
274
  assetTreeName: string | null;
288
275
  assetCodes: any;
289
276
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
290
- allAssetLoading: boolean;
291
277
  }>, { payload }: {
292
278
  payload: any;
293
279
  type: string;
@@ -308,7 +294,6 @@ export declare const useConfigurationAssetContext: () => {
308
294
  assetTreeName: string | null;
309
295
  assetCodes: any;
310
296
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
311
- allAssetLoading: boolean;
312
297
  }>, { payload }: {
313
298
  payload: any;
314
299
  type: string;
@@ -329,7 +314,6 @@ export declare const useConfigurationAssetContext: () => {
329
314
  assetTreeName: string | null;
330
315
  assetCodes: any;
331
316
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
332
- allAssetLoading: boolean;
333
317
  }>, { payload }: {
334
318
  payload: any;
335
319
  type: string;
@@ -350,28 +334,6 @@ export declare const useConfigurationAssetContext: () => {
350
334
  assetTreeName: string | null;
351
335
  assetCodes: any;
352
336
  assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
353
- allAssetLoading: boolean;
354
- }>, { payload }: {
355
- payload: any;
356
- type: string;
357
- }): void;
358
- setAllAssetLoading(state: import("immer/dist/internal").WritableDraft<{
359
- openAssets: {
360
- [assetId: string]: string | number;
361
- [assetId: number]: string | number;
362
- };
363
- allAssetNodes: import("../models/AssetParameters").AssetParameters[];
364
- dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
365
- allNodesLoading: boolean;
366
- anchorPoint: any;
367
- menuContextAssetId: number | undefined;
368
- showContextMenu: boolean;
369
- showCreateNewContextMenu: boolean;
370
- assetTreeId: number | null;
371
- assetTreeName: string | null;
372
- assetCodes: any;
373
- assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
374
- allAssetLoading: boolean;
375
337
  }>, { payload }: {
376
338
  payload: any;
377
339
  type: string;
@@ -1,3 +1,8 @@
1
- export declare const useSearchAssets: () => {
1
+ type Props = {
2
+ setSearchError: (err: string) => void;
3
+ setAllAssetLoading: (loader: boolean) => void;
4
+ };
5
+ export declare const useSearchAssets: ({ setSearchError, setAllAssetLoading }: Props) => {
2
6
  searchAssets: () => void;
3
7
  };
8
+ export {};
@@ -16,7 +16,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
16
16
  assetTreeName: string | null;
17
17
  assetCodes: any;
18
18
  assetNodeSelectedInTree: AssetAPI;
19
- allAssetLoading: boolean;
20
19
  }, {
21
20
  setOpenAssets(state: import("immer/dist/internal").WritableDraft<{
22
21
  openAssets: {
@@ -34,7 +33,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
34
33
  assetTreeName: string | null;
35
34
  assetCodes: any;
36
35
  assetNodeSelectedInTree: AssetAPI;
37
- allAssetLoading: boolean;
38
36
  }>, { payload }: {
39
37
  payload: any;
40
38
  type: string;
@@ -55,7 +53,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
55
53
  assetTreeName: string | null;
56
54
  assetCodes: any;
57
55
  assetNodeSelectedInTree: AssetAPI;
58
- allAssetLoading: boolean;
59
56
  }>, { payload }: {
60
57
  payload: any;
61
58
  type: string;
@@ -76,7 +73,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
76
73
  assetTreeName: string | null;
77
74
  assetCodes: any;
78
75
  assetNodeSelectedInTree: AssetAPI;
79
- allAssetLoading: boolean;
80
76
  }>, { payload }: {
81
77
  payload: any;
82
78
  type: string;
@@ -97,7 +93,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
97
93
  assetTreeName: string | null;
98
94
  assetCodes: any;
99
95
  assetNodeSelectedInTree: AssetAPI;
100
- allAssetLoading: boolean;
101
96
  }>, { payload }: {
102
97
  payload: any;
103
98
  type: string;
@@ -118,7 +113,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
118
113
  assetTreeName: string | null;
119
114
  assetCodes: any;
120
115
  assetNodeSelectedInTree: AssetAPI;
121
- allAssetLoading: boolean;
122
116
  }>, { payload }: {
123
117
  payload: any;
124
118
  type: string;
@@ -139,7 +133,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
139
133
  assetTreeName: string | null;
140
134
  assetCodes: any;
141
135
  assetNodeSelectedInTree: AssetAPI;
142
- allAssetLoading: boolean;
143
136
  }>, { payload }: {
144
137
  payload: any;
145
138
  type: string;
@@ -160,7 +153,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
160
153
  assetTreeName: string | null;
161
154
  assetCodes: any;
162
155
  assetNodeSelectedInTree: AssetAPI;
163
- allAssetLoading: boolean;
164
156
  }>, { payload }: {
165
157
  payload: any;
166
158
  type: string;
@@ -181,7 +173,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
181
173
  assetTreeName: string | null;
182
174
  assetCodes: any;
183
175
  assetNodeSelectedInTree: AssetAPI;
184
- allAssetLoading: boolean;
185
176
  }>, { payload }: {
186
177
  payload: any;
187
178
  type: string;
@@ -202,7 +193,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
202
193
  assetTreeName: string | null;
203
194
  assetCodes: any;
204
195
  assetNodeSelectedInTree: AssetAPI;
205
- allAssetLoading: boolean;
206
196
  }>, { payload }: {
207
197
  payload: any;
208
198
  type: string;
@@ -223,7 +213,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
223
213
  assetTreeName: string | null;
224
214
  assetCodes: any;
225
215
  assetNodeSelectedInTree: AssetAPI;
226
- allAssetLoading: boolean;
227
216
  }>, { payload }: {
228
217
  payload: any;
229
218
  type: string;
@@ -244,7 +233,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
244
233
  assetTreeName: string | null;
245
234
  assetCodes: any;
246
235
  assetNodeSelectedInTree: AssetAPI;
247
- allAssetLoading: boolean;
248
236
  }>, { payload }: {
249
237
  payload: any;
250
238
  type: string;
@@ -265,7 +253,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
265
253
  assetTreeName: string | null;
266
254
  assetCodes: any;
267
255
  assetNodeSelectedInTree: AssetAPI;
268
- allAssetLoading: boolean;
269
256
  }>, { payload }: {
270
257
  payload: any;
271
258
  type: string;
@@ -286,7 +273,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
286
273
  assetTreeName: string | null;
287
274
  assetCodes: any;
288
275
  assetNodeSelectedInTree: AssetAPI;
289
- allAssetLoading: boolean;
290
276
  }>, { payload }: {
291
277
  payload: any;
292
278
  type: string;
@@ -307,7 +293,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
307
293
  assetTreeName: string | null;
308
294
  assetCodes: any;
309
295
  assetNodeSelectedInTree: AssetAPI;
310
- allAssetLoading: boolean;
311
296
  }>, { payload }: {
312
297
  payload: any;
313
298
  type: string;
@@ -328,7 +313,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
328
313
  assetTreeName: string | null;
329
314
  assetCodes: any;
330
315
  assetNodeSelectedInTree: AssetAPI;
331
- allAssetLoading: boolean;
332
316
  }>, { payload }: {
333
317
  payload: any;
334
318
  type: string;
@@ -349,28 +333,6 @@ export declare const ConfigurationAssetReducer: import("@reduxjs/toolkit").Slice
349
333
  assetTreeName: string | null;
350
334
  assetCodes: any;
351
335
  assetNodeSelectedInTree: AssetAPI;
352
- allAssetLoading: boolean;
353
- }>, { payload }: {
354
- payload: any;
355
- type: string;
356
- }): void;
357
- setAllAssetLoading(state: import("immer/dist/internal").WritableDraft<{
358
- openAssets: {
359
- [assetId: string]: string | number;
360
- [assetId: number]: string | number;
361
- };
362
- allAssetNodes: AssetParameters[];
363
- dataToCreateAsset: AssetAPI;
364
- allNodesLoading: boolean;
365
- anchorPoint: any;
366
- menuContextAssetId: number | undefined;
367
- showContextMenu: boolean;
368
- showCreateNewContextMenu: boolean;
369
- assetTreeId: number | null;
370
- assetTreeName: string | null;
371
- assetCodes: any;
372
- assetNodeSelectedInTree: AssetAPI;
373
- allAssetLoading: boolean;
374
336
  }>, { payload }: {
375
337
  payload: any;
376
338
  type: string;
@@ -1,36 +1,28 @@
1
- export declare const updateAsset: (AssetId: number, ParentAssetId: number) => Promise<{
2
- ok: boolean;
3
- data: any;
4
- message?: undefined;
1
+ export declare const updateAsset: (AssetIds: (number | string)[], ParentAssetId: number) => Promise<{
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 insertAsset: (AssetName: string, ParentAssetId: number, CanBeDefaultAsset: boolean | null) => 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 UpdateAssetData: (AssetId: number, AssetName: string, ParentAssetId: number, IsAsset: boolean, CanBeDefaultAsset: boolean | null) => 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 removeAsset: (AssetId: number, IsActive: boolean) => 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
  }>;
@@ -1,10 +1,10 @@
1
- import { GridColumns } from "@material-ui/data-grid";
1
+ import { Job } from "../../../models/Job";
2
+ import { ColDef } from "ag-grid-community";
2
3
  type Props = {
3
4
  getJobsFromAPI: () => Promise<void>;
4
- setMessageLoading: Function;
5
- setMessageSuccesful: Function;
5
+ setRowSelected: (job: Job | null) => void;
6
6
  };
7
- export declare const useJobsTableData: ({ getJobsFromAPI, setMessageLoading, setMessageSuccesful }: Props) => {
7
+ export declare const useJobsTableData: ({ setRowSelected }: Props) => {
8
8
  rows: {
9
9
  id: number;
10
10
  sProcedure: string;
@@ -14,6 +14,6 @@ export declare const useJobsTableData: ({ getJobsFromAPI, setMessageLoading, set
14
14
  Enabled: boolean;
15
15
  RestartAfterFailure: boolean;
16
16
  }[];
17
- columns: GridColumns;
17
+ columnDefs: ColDef<any>[];
18
18
  };
19
19
  export {};
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { Job } from "../models/Job";
3
+ type Props = {
4
+ rowSelected: Job;
5
+ show: boolean;
6
+ onHide: (shouldUpdate: boolean) => void;
7
+ setSnackbarLoading: Function;
8
+ setSnackbarSuccessfulMessage: Function;
9
+ };
10
+ export declare const ResetJob: ({ rowSelected, show, onHide, setSnackbarLoading, setSnackbarSuccessfulMessage }: Props) => React.JSX.Element;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { Job } from "../models/Job";
3
+ type Props = {
4
+ rowSelected: Job;
5
+ show: boolean;
6
+ onHide: (shouldUpdate: boolean) => void;
7
+ };
8
+ export declare const OnEnableJob: ({ rowSelected, show, onHide }: Props) => React.JSX.Element;
9
+ export {};
@@ -2,10 +2,19 @@ import { default as React, ReactNode } from "react";
2
2
  export declare const useJobsContext: () => {
3
3
  state: {
4
4
  jobsData: import("../models/Job").Job[];
5
+ blockButtons: boolean;
5
6
  };
6
7
  actions: import("@reduxjs/toolkit").CaseReducerActions<{
7
8
  setJobs(state: import("immer/dist/internal").WritableDraft<{
8
9
  jobsData: import("../models/Job").Job[];
10
+ blockButtons: boolean;
11
+ }>, { payload }: {
12
+ payload: any;
13
+ type: string;
14
+ }): void;
15
+ setBlockButtons(state: import("immer/dist/internal").WritableDraft<{
16
+ jobsData: import("../models/Job").Job[];
17
+ blockButtons: boolean;
9
18
  }>, { payload }: {
10
19
  payload: any;
11
20
  type: string;
@@ -1,9 +1,18 @@
1
1
  import { Job } from "../models/Job";
2
2
  export declare const JobsReducer: import("@reduxjs/toolkit").Slice<{
3
3
  jobsData: Job[];
4
+ blockButtons: boolean;
4
5
  }, {
5
6
  setJobs(state: import("immer/dist/internal").WritableDraft<{
6
7
  jobsData: Job[];
8
+ blockButtons: boolean;
9
+ }>, { payload }: {
10
+ payload: any;
11
+ type: string;
12
+ }): void;
13
+ setBlockButtons(state: import("immer/dist/internal").WritableDraft<{
14
+ jobsData: Job[];
15
+ blockButtons: boolean;
7
16
  }>, { payload }: {
8
17
  payload: any;
9
18
  type: string;
@@ -1,27 +1,21 @@
1
1
  export declare const GetJobsStatus: () => 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 SetJobEnable: (Enable: boolean, sProcedure: string) => 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 RestartJob: (sProcedure: string) => 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
  }>;
@@ -1,2 +1,3 @@
1
1
  import * as React from 'react';
2
+ import 'ag-grid-enterprise';
2
3
  export declare const TableLogs: () => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { ColDef } from "ag-grid-community";
1
2
  export declare const useLogTableData: () => {
2
3
  rows: {
3
4
  id: number;
@@ -7,37 +8,5 @@ export declare const useLogTableData: () => {
7
8
  LogTypeCode: string;
8
9
  User: string;
9
10
  }[];
10
- columns: ({
11
- field: string;
12
- headerName: string;
13
- minWidth: number;
14
- flex: number;
15
- valueFormatter: ({ value }: {
16
- value: any;
17
- }) => string;
18
- type?: undefined;
19
- } | {
20
- field: string;
21
- headerName: string;
22
- minWidth: number;
23
- flex: number;
24
- type: string;
25
- valueFormatter?: undefined;
26
- } | {
27
- field: string;
28
- headerName: string;
29
- minWidth: number;
30
- flex: number;
31
- valueFormatter?: undefined;
32
- type?: undefined;
33
- } | {
34
- field: string;
35
- headerName: string;
36
- minWidth: number;
37
- flex: number;
38
- type: string;
39
- valueFormatter: ({ value }: {
40
- value: any;
41
- }) => any;
42
- })[];
11
+ columnDefs: ColDef<any>[];
43
12
  };
@@ -4,7 +4,7 @@ type Props = {
4
4
  Search: string;
5
5
  LogTypeCode: number | string | null;
6
6
  setLoading: Function;
7
- setErrorsApi: Function;
7
+ setError: (err: string) => void;
8
8
  };
9
- export declare const useGetLogsFromAPI: ({ Start, End, Search, LogTypeCode, setLoading, setErrorsApi }: Props) => () => void;
9
+ export declare const useGetLogsFromAPI: ({ Start, End, Search, LogTypeCode, setError, setLoading, }: Props) => () => void;
10
10
  export {};
@@ -1,9 +1,7 @@
1
1
  export declare const GetLogs: (Start: Date, End: Date, Search: string, LogTypeCode: number | string | null) => Promise<{
2
- ok: boolean;
3
- message: any;
4
- data?: undefined;
2
+ ok: false;
3
+ message: string;
5
4
  } | {
6
- ok: boolean;
5
+ ok: true;
7
6
  data: any;
8
- message?: undefined;
9
7
  }>;