@@ -13,32 +13,31 @@ import {
13
13
PARAM_USE_NAME ,
14
14
PARAMS_LOADED ,
15
15
} from '../utils/config-params' ;
16
- import { Action } from 'redux' ;
16
+ import type { Action } from 'redux' ;
17
17
import {
18
- GsLang ,
19
- GsLangUser ,
20
- GsTheme ,
21
- Identifiable ,
22
- NetworkVisualizationParameters ,
23
18
ComputingType ,
19
+ type GsLang ,
20
+ type GsLangUser ,
21
+ type GsTheme ,
22
+ type Identifiable ,
23
+ type NetworkVisualizationParameters ,
24
24
} from '@gridsuite/commons-ui' ;
25
- import { UUID } from 'crypto' ;
25
+ import type { UUID } from 'crypto' ;
26
26
import type { UnknownArray } from 'type-fest' ;
27
- import NetworkModificationTreeModel from '../components/graph/network-modification-tree-model' ;
27
+ import type NetworkModificationTreeModel from '../components/graph/network-modification-tree-model' ;
28
28
import type { MapHvdcLine , MapLine , MapSubstation , MapTieLine } from '@powsybl/network-viewer' ;
29
29
import type {
30
30
AppState ,
31
- EquipmentUpdateType ,
31
+ ComputingStatusParameters ,
32
32
GlobalFilterSpreadsheetState ,
33
33
NodeSelectionForCopy ,
34
34
OneBusShortCircuitAnalysisDiagram ,
35
35
SpreadsheetFilterState ,
36
36
TableSortKeysType ,
37
- ComputingStatusParameters ,
38
37
} from './reducer' ;
39
- import { RunningStatus } from '../components/utils/running-status' ;
40
- import { IOptionalService } from '../components/utils/optional-services' ;
41
- import { GlobalFilter } from '../components/results/common/global-filter/global-filter-types' ;
38
+ import type { RunningStatus } from '../components/utils/running-status' ;
39
+ import type { IOptionalService } from '../components/utils/optional-services' ;
40
+ import type { GlobalFilter } from '../components/results/common/global-filter/global-filter-types' ;
42
41
import {
43
42
DYNAMIC_SIMULATION_RESULT_STORE_FIELD ,
44
43
LOADFLOW_RESULT_STORE_FIELD ,
@@ -53,15 +52,15 @@ import { StudyDisplayMode } from '../components/network-modification.type';
53
52
import { CurrentTreeNode , NetworkModificationNodeData , RootNodeData } from '../components/graph/tree-node.type' ;
54
53
import type GSMapEquipments from 'components/network/gs-map-equipments' ;
55
54
import {
56
- SpreadsheetEquipmentsByNodes ,
57
- ColumnDefinition ,
55
+ type ColumnDefinition ,
56
+ type SpreadsheetEquipmentsByNodes ,
58
57
SpreadsheetEquipmentType ,
59
- SpreadsheetTabDefinition ,
58
+ type SpreadsheetTabDefinition ,
60
59
} from '../components/spreadsheet-view/types/spreadsheet.type' ;
61
60
import { FilterConfig , SortConfig } from '../types/custom-aggrid-types' ;
62
61
import type { DiagramType } from '../components/diagrams/diagram.type' ;
63
- import { RootNetworkMetadata } from 'components/graph/menus/network-modifications/network-modification-menu.type' ;
64
- import { NodeInsertModes , RootNetworkIndexationStatus , StudyUpdateEventData } from 'types/notification-types' ;
62
+ import type { RootNetworkMetadata } from 'components/graph/menus/network-modifications/network-modification-menu.type' ;
63
+ import type { NodeInsertModes , RootNetworkIndexationStatus , StudyUpdateEventData } from 'types/notification-types' ;
65
64
66
65
export type TableValue < TValue = unknown > = {
67
66
uuid : UUID ;
@@ -224,13 +223,13 @@ export function removeEquipmentData(equipmentType: SpreadsheetEquipmentType): Re
224
223
225
224
export const UPDATE_EQUIPMENTS = 'UPDATE_EQUIPMENTS' ;
226
225
export type UpdateEquipmentsAction = Readonly < Action < typeof UPDATE_EQUIPMENTS > > & {
227
- equipments : Partial < Record < EquipmentUpdateType , Identifiable [ ] > > ;
226
+ equipments : Partial < Record < SpreadsheetEquipmentType , Identifiable [ ] > > ;
228
227
nodeId : UUID ;
229
228
} ;
230
229
231
230
export function updateEquipments (
232
- equipments : Partial < Record < EquipmentUpdateType , Identifiable [ ] > > ,
233
- nodeId : UUID
231
+ equipments : UpdateEquipmentsAction [ 'equipments' ] ,
232
+ nodeId : UpdateEquipmentsAction [ 'nodeId' ]
234
233
) : UpdateEquipmentsAction {
235
234
return {
236
235
type : UPDATE_EQUIPMENTS ,
0 commit comments