@gridsuite/commons-ui 0.187.0 → 0.188.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/index.js CHANGED
@@ -245,7 +245,7 @@ import { AnnouncementSeverity, ArrayAction } from "./utils/types/types.js";
245
245
  import { MODIFICATION_TYPES, ModificationType } from "./utils/types/modificationType.js";
246
246
  import { FieldType } from "./utils/types/fieldType.js";
247
247
  import { ParameterType } from "./utils/types/parameters.type.js";
248
- import { SolverTypeInfos } from "./utils/types/dynamic-simulation.type.js";
248
+ import { SolverType } from "./utils/types/dynamic-simulation.type.js";
249
249
  import { DistributionType, SensitivityType } from "./utils/types/sensitivity-analysis.type.js";
250
250
  import { CalculationType, LoadModelsRule } from "./utils/types/dynamic-margin-calculation.type.js";
251
251
  import { OperationType } from "./utils/types/network-modification-types.js";
@@ -783,7 +783,7 @@ export {
783
783
  SilentRenewCallbackHandler,
784
784
  SliderInput,
785
785
  SnackbarProvider,
786
- SolverTypeInfos,
786
+ SolverType,
787
787
  SubmitButton,
788
788
  Substation,
789
789
  SubstationCreationForm,
@@ -27,7 +27,7 @@ import { AnnouncementSeverity, ArrayAction } from "./types/types.js";
27
27
  import { MODIFICATION_TYPES, ModificationType } from "./types/modificationType.js";
28
28
  import { FieldType } from "./types/fieldType.js";
29
29
  import { ParameterType } from "./types/parameters.type.js";
30
- import { SolverTypeInfos } from "./types/dynamic-simulation.type.js";
30
+ import { SolverType } from "./types/dynamic-simulation.type.js";
31
31
  import { DistributionType, SensitivityType } from "./types/sensitivity-analysis.type.js";
32
32
  import { CalculationType, LoadModelsRule } from "./types/dynamic-margin-calculation.type.js";
33
33
  import { OperationType } from "./types/network-modification-types.js";
@@ -115,7 +115,7 @@ export {
115
115
  SVC,
116
116
  SensitivityType,
117
117
  ShuntCompensator,
118
- SolverTypeInfos,
118
+ SolverType,
119
119
  Substation,
120
120
  SusceptanceAdornment,
121
121
  TYPE_TAG_MAX_SIZE,
@@ -1,12 +1,11 @@
1
1
  import { UUID } from 'node:crypto';
2
- export declare enum SolverTypeInfos {
2
+ export declare enum SolverType {
3
3
  IDA = "IDA",
4
4
  SIM = "SIM"
5
5
  }
6
6
  type CommonSolverInfos = {
7
- id: string;
8
- name: string;
9
- type: SolverTypeInfos;
7
+ id: UUID;
8
+ type: SolverType;
10
9
  fNormTolAlg: number;
11
10
  initialAddTolAlg: number;
12
11
  scStepTolAlg: number;
@@ -32,8 +31,7 @@ type CommonSolverInfos = {
32
31
  minimalAcceptableStep: number;
33
32
  };
34
33
  type IdaSolverInfos = CommonSolverInfos & {
35
- name: 'IDA';
36
- type: SolverTypeInfos.IDA;
34
+ type: SolverType.IDA;
37
35
  order: number;
38
36
  initStep: number;
39
37
  minStep: number;
@@ -42,8 +40,7 @@ type IdaSolverInfos = CommonSolverInfos & {
42
40
  relAccuracy: number;
43
41
  };
44
42
  type SimSolverInfos = CommonSolverInfos & {
45
- name: 'SIM';
46
- type: SolverTypeInfos.SIM;
43
+ type: SolverType.SIM;
47
44
  hMin: number;
48
45
  hMax: number;
49
46
  kReduceStep: number;
@@ -63,8 +60,9 @@ type SimSolverInfos = CommonSolverInfos & {
63
60
  minimumModeChangeTypeForAlgebraicRestoration: string;
64
61
  minimumModeChangeTypeForAlgebraicRestorationInit: string;
65
62
  };
66
- type NetworkInfos = Record<string, number | string | boolean>;
63
+ type NetworkInfos = Record<string, UUID | number | string | boolean>;
67
64
  type CurveInfos = {
65
+ id?: UUID;
68
66
  equipmentType?: string;
69
67
  equipmentId: string;
70
68
  variableId: string;
@@ -95,11 +93,12 @@ export type MappingInfos = {
95
93
  name: string;
96
94
  };
97
95
  export type DynamicSimulationParametersInfos = {
96
+ id?: UUID;
98
97
  provider?: string;
99
98
  startTime?: number;
100
99
  stopTime?: number;
101
100
  mapping?: string;
102
- solverId: string;
101
+ solver: SolverType;
103
102
  solvers?: SolverInfos[];
104
103
  network?: NetworkInfos;
105
104
  curves?: CurveInfos[] | null;
@@ -1,8 +1,8 @@
1
- var SolverTypeInfos = /* @__PURE__ */ ((SolverTypeInfos2) => {
2
- SolverTypeInfos2["IDA"] = "IDA";
3
- SolverTypeInfos2["SIM"] = "SIM";
4
- return SolverTypeInfos2;
5
- })(SolverTypeInfos || {});
1
+ var SolverType = /* @__PURE__ */ ((SolverType2) => {
2
+ SolverType2["IDA"] = "IDA";
3
+ SolverType2["SIM"] = "SIM";
4
+ return SolverType2;
5
+ })(SolverType || {});
6
6
  export {
7
- SolverTypeInfos
7
+ SolverType
8
8
  };
@@ -8,7 +8,7 @@ import { AnnouncementSeverity, ArrayAction } from "./types.js";
8
8
  import { MODIFICATION_TYPES, ModificationType } from "./modificationType.js";
9
9
  import { FieldType } from "./fieldType.js";
10
10
  import { ParameterType } from "./parameters.type.js";
11
- import { SolverTypeInfos } from "./dynamic-simulation.type.js";
11
+ import { SolverType } from "./dynamic-simulation.type.js";
12
12
  import { DistributionType, SensitivityType } from "./sensitivity-analysis.type.js";
13
13
  import { CalculationType, LoadModelsRule } from "./dynamic-margin-calculation.type.js";
14
14
  import { OperationType } from "./network-modification-types.js";
@@ -47,7 +47,7 @@ export {
47
47
  SVC,
48
48
  SensitivityType,
49
49
  ShuntCompensator,
50
- SolverTypeInfos,
50
+ SolverType,
51
51
  Substation,
52
52
  TYPE_TAG_MAX_SIZE,
53
53
  ThreeWindingTransfo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.187.0",
3
+ "version": "0.188.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",