@dnv-plant/typescriptpws 1.0.16-alpha.1800608 → 1.0.17-alpha.1802121
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/index.ts +2 -2
- package/package.json +1 -1
- package/src/calculations.ts +50 -50
- package/src/constants.ts +2 -2
- package/src/entities.ts +951 -647
- package/src/entity-schemas.ts +232 -671
- package/src/enums.ts +2 -2
- package/src/materials.ts +53 -154
- package/src/utilities.ts +11 -32
package/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time:
|
|
3
|
+
* Version: 1.0.17
|
|
4
|
+
* Date/time: 14 Feb 2025 17:00:56
|
|
5
5
|
* Template: templates/typescriptpws/index.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/package.json
CHANGED
package/src/calculations.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time:
|
|
3
|
+
* Version: 1.0.17
|
|
4
|
+
* Date/time: 14 Feb 2025 17:00:56
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -1225,7 +1225,7 @@ export class DispersionCalculationResponse extends CalculationResponseBase {
|
|
|
1225
1225
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
1226
1226
|
if (data.scalarUdmOutputs) {
|
|
1227
1227
|
this.scalarUdmOutputs = new Entities.ScalarUdmOutputs();
|
|
1228
|
-
this.scalarUdmOutputs.initialiseFromDictionary(data.scalarUdmOutputs);
|
|
1228
|
+
this.scalarUdmOutputs.initialiseFromDictionary(data.scalarUdmOutputs as { [key: string]: unknown });
|
|
1229
1229
|
}
|
|
1230
1230
|
if (data.dispersionRecords && Array.isArray(data.dispersionRecords)) {
|
|
1231
1231
|
this.dispersionRecords = data.dispersionRecords.map(
|
|
@@ -3621,7 +3621,7 @@ export class FireballCalculationResponse extends CalculationResponseBase {
|
|
|
3621
3621
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
3622
3622
|
if (data.flameResult) {
|
|
3623
3623
|
this.flameResult = new Entities.FlameResult();
|
|
3624
|
-
this.flameResult.initialiseFromDictionary(data.flameResult);
|
|
3624
|
+
this.flameResult.initialiseFromDictionary(data.flameResult as { [key: string]: unknown });
|
|
3625
3625
|
}
|
|
3626
3626
|
if (data.flameRecords && Array.isArray(data.flameRecords)) {
|
|
3627
3627
|
this.flameRecords = data.flameRecords.map(
|
|
@@ -3868,7 +3868,7 @@ export class FlashCalculationResponse extends CalculationResponseBase {
|
|
|
3868
3868
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
3869
3869
|
if (data.flashResult) {
|
|
3870
3870
|
this.flashResult = new Entities.FlashResult();
|
|
3871
|
-
this.flashResult.initialiseFromDictionary(data.flashResult);
|
|
3871
|
+
this.flashResult.initialiseFromDictionary(data.flashResult as { [key: string]: unknown });
|
|
3872
3872
|
}
|
|
3873
3873
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
3874
3874
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -4399,7 +4399,7 @@ export class JetFireCalculationResponse extends CalculationResponseBase {
|
|
|
4399
4399
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
4400
4400
|
if (data.flameResult) {
|
|
4401
4401
|
this.flameResult = new Entities.FlameResult();
|
|
4402
|
-
this.flameResult.initialiseFromDictionary(data.flameResult);
|
|
4402
|
+
this.flameResult.initialiseFromDictionary(data.flameResult as { [key: string]: unknown });
|
|
4403
4403
|
}
|
|
4404
4404
|
if (data.flameRecords && Array.isArray(data.flameRecords)) {
|
|
4405
4405
|
this.flameRecords = data.flameRecords.map(
|
|
@@ -4782,11 +4782,11 @@ export class LateExplosionCalculationResponse extends CalculationResponseBase {
|
|
|
4782
4782
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
4783
4783
|
if (data.explosionUnifConfOverpressureResult) {
|
|
4784
4784
|
this.explosionUnifConfOverpressureResult = new Entities.ExplosionOverpressureResult();
|
|
4785
|
-
this.explosionUnifConfOverpressureResult.initialiseFromDictionary(data.explosionUnifConfOverpressureResult);
|
|
4785
|
+
this.explosionUnifConfOverpressureResult.initialiseFromDictionary(data.explosionUnifConfOverpressureResult as { [key: string]: unknown });
|
|
4786
4786
|
}
|
|
4787
4787
|
if (data.explosionUnconfOverpressureResult) {
|
|
4788
4788
|
this.explosionUnconfOverpressureResult = new Entities.ExplosionOverpressureResult();
|
|
4789
|
-
this.explosionUnconfOverpressureResult.initialiseFromDictionary(data.explosionUnconfOverpressureResult);
|
|
4789
|
+
this.explosionUnconfOverpressureResult.initialiseFromDictionary(data.explosionUnconfOverpressureResult as { [key: string]: unknown });
|
|
4790
4790
|
}
|
|
4791
4791
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
4792
4792
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -5827,11 +5827,11 @@ export class LoadMassInventoryVesselForLeakScenarioCalculationResponse extends C
|
|
|
5827
5827
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
5828
5828
|
if (data.vessel) {
|
|
5829
5829
|
this.vessel = new Entities.Vessel();
|
|
5830
|
-
this.vessel.initialiseFromDictionary(data.vessel);
|
|
5830
|
+
this.vessel.initialiseFromDictionary(data.vessel as { [key: string]: unknown });
|
|
5831
5831
|
}
|
|
5832
5832
|
if (data.leak) {
|
|
5833
5833
|
this.leak = new Entities.Leak();
|
|
5834
|
-
this.leak.initialiseFromDictionary(data.leak);
|
|
5834
|
+
this.leak.initialiseFromDictionary(data.leak as { [key: string]: unknown });
|
|
5835
5835
|
}
|
|
5836
5836
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
5837
5837
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -6153,11 +6153,11 @@ export class LoadMassInventoryVesselForLineRuptureScenarioCalculationResponse ex
|
|
|
6153
6153
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
6154
6154
|
if (data.vessel) {
|
|
6155
6155
|
this.vessel = new Entities.Vessel();
|
|
6156
|
-
this.vessel.initialiseFromDictionary(data.vessel);
|
|
6156
|
+
this.vessel.initialiseFromDictionary(data.vessel as { [key: string]: unknown });
|
|
6157
6157
|
}
|
|
6158
6158
|
if (data.lineRupture) {
|
|
6159
6159
|
this.lineRupture = new Entities.LineRupture();
|
|
6160
|
-
this.lineRupture.initialiseFromDictionary(data.lineRupture);
|
|
6160
|
+
this.lineRupture.initialiseFromDictionary(data.lineRupture as { [key: string]: unknown });
|
|
6161
6161
|
}
|
|
6162
6162
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
6163
6163
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -6492,11 +6492,11 @@ export class LoadMassInventoryVesselForReliefValveScenarioCalculationResponse ex
|
|
|
6492
6492
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
6493
6493
|
if (data.vessel) {
|
|
6494
6494
|
this.vessel = new Entities.Vessel();
|
|
6495
|
-
this.vessel.initialiseFromDictionary(data.vessel);
|
|
6495
|
+
this.vessel.initialiseFromDictionary(data.vessel as { [key: string]: unknown });
|
|
6496
6496
|
}
|
|
6497
6497
|
if (data.reliefValve) {
|
|
6498
6498
|
this.reliefValve = new Entities.ReliefValve();
|
|
6499
|
-
this.reliefValve.initialiseFromDictionary(data.reliefValve);
|
|
6499
|
+
this.reliefValve.initialiseFromDictionary(data.reliefValve as { [key: string]: unknown });
|
|
6500
6500
|
}
|
|
6501
6501
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
6502
6502
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -6768,11 +6768,11 @@ export class LongPipeBreachCalculationResponse extends CalculationResponseBase {
|
|
|
6768
6768
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
6769
6769
|
if (data.exitMaterial) {
|
|
6770
6770
|
this.exitMaterial = new Entities.Material();
|
|
6771
|
-
this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
|
|
6771
|
+
this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
|
|
6772
6772
|
}
|
|
6773
6773
|
if (data.dischargeResult) {
|
|
6774
6774
|
this.dischargeResult = new Entities.DischargeResult();
|
|
6775
|
-
this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
|
|
6775
|
+
this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
|
|
6776
6776
|
}
|
|
6777
6777
|
if (data.dischargeRecords && Array.isArray(data.dischargeRecords)) {
|
|
6778
6778
|
this.dischargeRecords = data.dischargeRecords.map(
|
|
@@ -8003,7 +8003,7 @@ export class MixtureConstantPropertiesCalculationResponse extends CalculationRes
|
|
|
8003
8003
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
8004
8004
|
if (data.mixConstantPropResult) {
|
|
8005
8005
|
this.mixConstantPropResult = new Entities.MixtureConstantPropertiesResult();
|
|
8006
|
-
this.mixConstantPropResult.initialiseFromDictionary(data.mixConstantPropResult);
|
|
8006
|
+
this.mixConstantPropResult.initialiseFromDictionary(data.mixConstantPropResult as { [key: string]: unknown });
|
|
8007
8007
|
}
|
|
8008
8008
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
8009
8009
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -8587,7 +8587,7 @@ export class PoolFireCalculationResponse extends CalculationResponseBase {
|
|
|
8587
8587
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
8588
8588
|
if (data.poolFireFlameResult) {
|
|
8589
8589
|
this.poolFireFlameResult = new Entities.PoolFireFlameResult();
|
|
8590
|
-
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
|
|
8590
|
+
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
|
|
8591
8591
|
}
|
|
8592
8592
|
if (data.flameRecords && Array.isArray(data.flameRecords)) {
|
|
8593
8593
|
this.flameRecords = data.flameRecords.map(
|
|
@@ -11109,7 +11109,7 @@ export class SetMixingLayerHeightCalculationResponse extends CalculationResponse
|
|
|
11109
11109
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
11110
11110
|
if (data.updatedWeather) {
|
|
11111
11111
|
this.updatedWeather = new Entities.Weather();
|
|
11112
|
-
this.updatedWeather.initialiseFromDictionary(data.updatedWeather);
|
|
11112
|
+
this.updatedWeather.initialiseFromDictionary(data.updatedWeather as { [key: string]: unknown });
|
|
11113
11113
|
}
|
|
11114
11114
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
11115
11115
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -12132,7 +12132,7 @@ export class SetReleaseElevationForScenarioCalculationResponse extends Calculati
|
|
|
12132
12132
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
12133
12133
|
if (data.updatedVessel) {
|
|
12134
12134
|
this.updatedVessel = new Entities.Vessel();
|
|
12135
|
-
this.updatedVessel.initialiseFromDictionary(data.updatedVessel);
|
|
12135
|
+
this.updatedVessel.initialiseFromDictionary(data.updatedVessel as { [key: string]: unknown });
|
|
12136
12136
|
}
|
|
12137
12137
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
12138
12138
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -12738,7 +12738,7 @@ export class TankFireCalculationResponse extends CalculationResponseBase {
|
|
|
12738
12738
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
12739
12739
|
if (data.poolFireFlameResult) {
|
|
12740
12740
|
this.poolFireFlameResult = new Entities.PoolFireFlameResult();
|
|
12741
|
-
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
|
|
12741
|
+
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
|
|
12742
12742
|
}
|
|
12743
12743
|
if (data.flameRecords && Array.isArray(data.flameRecords)) {
|
|
12744
12744
|
this.flameRecords = data.flameRecords.map(
|
|
@@ -13579,11 +13579,11 @@ export class UserDefinedSourceLinkedRunCalculationResponse extends CalculationRe
|
|
|
13579
13579
|
}
|
|
13580
13580
|
if (data.jetFireFlameResult) {
|
|
13581
13581
|
this.jetFireFlameResult = new Entities.FlameResult();
|
|
13582
|
-
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
|
|
13582
|
+
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
|
|
13583
13583
|
}
|
|
13584
13584
|
if (data.poolFireFlameResult) {
|
|
13585
13585
|
this.poolFireFlameResult = new Entities.PoolFireFlameResult();
|
|
13586
|
-
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
|
|
13586
|
+
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
|
|
13587
13587
|
}
|
|
13588
13588
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
13589
13589
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -13915,11 +13915,11 @@ export class VesselCatastrophicRuptureCalculationResponse extends CalculationRes
|
|
|
13915
13915
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
13916
13916
|
if (data.exitMaterial) {
|
|
13917
13917
|
this.exitMaterial = new Entities.Material();
|
|
13918
|
-
this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
|
|
13918
|
+
this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
|
|
13919
13919
|
}
|
|
13920
13920
|
if (data.dischargeResult) {
|
|
13921
13921
|
this.dischargeResult = new Entities.DischargeResult();
|
|
13922
|
-
this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
|
|
13922
|
+
this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
|
|
13923
13923
|
}
|
|
13924
13924
|
if (data.dischargeRecords && Array.isArray(data.dischargeRecords)) {
|
|
13925
13925
|
this.dischargeRecords = data.dischargeRecords.map(
|
|
@@ -14201,11 +14201,11 @@ export class VesselLeakCalculationResponse extends CalculationResponseBase {
|
|
|
14201
14201
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
14202
14202
|
if (data.exitMaterial) {
|
|
14203
14203
|
this.exitMaterial = new Entities.Material();
|
|
14204
|
-
this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
|
|
14204
|
+
this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
|
|
14205
14205
|
}
|
|
14206
14206
|
if (data.dischargeResult) {
|
|
14207
14207
|
this.dischargeResult = new Entities.DischargeResult();
|
|
14208
|
-
this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
|
|
14208
|
+
this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
|
|
14209
14209
|
}
|
|
14210
14210
|
if (data.dischargeRecords && Array.isArray(data.dischargeRecords)) {
|
|
14211
14211
|
this.dischargeRecords = data.dischargeRecords.map(
|
|
@@ -14846,15 +14846,15 @@ export class VesselLeakFlammableLinkedRunCalculationResponse extends Calculation
|
|
|
14846
14846
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
14847
14847
|
if (data.dischargeRecord) {
|
|
14848
14848
|
this.dischargeRecord = new Entities.DischargeRecord();
|
|
14849
|
-
this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord);
|
|
14849
|
+
this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord as { [key: string]: unknown });
|
|
14850
14850
|
}
|
|
14851
14851
|
if (data.exitMaterial) {
|
|
14852
14852
|
this.exitMaterial = new Entities.Material();
|
|
14853
|
-
this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
|
|
14853
|
+
this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
|
|
14854
14854
|
}
|
|
14855
14855
|
if (data.dischargeResult) {
|
|
14856
14856
|
this.dischargeResult = new Entities.DischargeResult();
|
|
14857
|
-
this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
|
|
14857
|
+
this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
|
|
14858
14858
|
}
|
|
14859
14859
|
if (data.distancesToJetFireRadiation && Array.isArray(data.distancesToJetFireRadiation)) {
|
|
14860
14860
|
this.distancesToJetFireRadiation = data.distancesToJetFireRadiation.map((item) => parseFloat(item));
|
|
@@ -14924,11 +14924,11 @@ export class VesselLeakFlammableLinkedRunCalculationResponse extends Calculation
|
|
|
14924
14924
|
}
|
|
14925
14925
|
if (data.jetFireFlameResult) {
|
|
14926
14926
|
this.jetFireFlameResult = new Entities.FlameResult();
|
|
14927
|
-
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
|
|
14927
|
+
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
|
|
14928
14928
|
}
|
|
14929
14929
|
if (data.poolFireFlameResult) {
|
|
14930
14930
|
this.poolFireFlameResult = new Entities.PoolFireFlameResult();
|
|
14931
|
-
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
|
|
14931
|
+
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
|
|
14932
14932
|
}
|
|
14933
14933
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
14934
14934
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -15724,7 +15724,7 @@ export class VesselLeakFlamToxSimpleLinkedRunCalculationResponse extends Calcula
|
|
|
15724
15724
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
15725
15725
|
if (data.dischargeRecord) {
|
|
15726
15726
|
this.dischargeRecord = new Entities.DischargeRecord();
|
|
15727
|
-
this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord);
|
|
15727
|
+
this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord as { [key: string]: unknown });
|
|
15728
15728
|
}
|
|
15729
15729
|
if (data.distancesToJetFireRadiation && Array.isArray(data.distancesToJetFireRadiation)) {
|
|
15730
15730
|
this.distancesToJetFireRadiation = data.distancesToJetFireRadiation.map((item) => parseFloat(item));
|
|
@@ -15815,11 +15815,11 @@ export class VesselLeakFlamToxSimpleLinkedRunCalculationResponse extends Calcula
|
|
|
15815
15815
|
}
|
|
15816
15816
|
if (data.jetFireFlameResult) {
|
|
15817
15817
|
this.jetFireFlameResult = new Entities.FlameResult();
|
|
15818
|
-
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
|
|
15818
|
+
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
|
|
15819
15819
|
}
|
|
15820
15820
|
if (data.poolFireFlameResult) {
|
|
15821
15821
|
this.poolFireFlameResult = new Entities.PoolFireFlameResult();
|
|
15822
|
-
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
|
|
15822
|
+
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
|
|
15823
15823
|
}
|
|
15824
15824
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
15825
15825
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -16612,7 +16612,7 @@ export class VesselLeakLinkedRunCalculationResponse extends CalculationResponseB
|
|
|
16612
16612
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
16613
16613
|
if (data.dischargeRecord) {
|
|
16614
16614
|
this.dischargeRecord = new Entities.DischargeRecord();
|
|
16615
|
-
this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord);
|
|
16615
|
+
this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord as { [key: string]: unknown });
|
|
16616
16616
|
}
|
|
16617
16617
|
if (data.distancesToJetFireRadiation && Array.isArray(data.distancesToJetFireRadiation)) {
|
|
16618
16618
|
this.distancesToJetFireRadiation = data.distancesToJetFireRadiation.map((item) => parseFloat(item));
|
|
@@ -16703,11 +16703,11 @@ export class VesselLeakLinkedRunCalculationResponse extends CalculationResponseB
|
|
|
16703
16703
|
}
|
|
16704
16704
|
if (data.jetFireFlameResult) {
|
|
16705
16705
|
this.jetFireFlameResult = new Entities.FlameResult();
|
|
16706
|
-
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
|
|
16706
|
+
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
|
|
16707
16707
|
}
|
|
16708
16708
|
if (data.poolFireFlameResult) {
|
|
16709
16709
|
this.poolFireFlameResult = new Entities.PoolFireFlameResult();
|
|
16710
|
-
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
|
|
16710
|
+
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
|
|
16711
16711
|
}
|
|
16712
16712
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
16713
16713
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -17090,7 +17090,7 @@ export class VesselLeakMaxFlammableCloudCalculationResponse extends CalculationR
|
|
|
17090
17090
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
17091
17091
|
if (data.vesselLeakMaxFlammableCloudResults) {
|
|
17092
17092
|
this.vesselLeakMaxFlammableCloudResults = new Entities.VesselLeakMaxFlammableCloudResults();
|
|
17093
|
-
this.vesselLeakMaxFlammableCloudResults.initialiseFromDictionary(data.vesselLeakMaxFlammableCloudResults);
|
|
17093
|
+
this.vesselLeakMaxFlammableCloudResults.initialiseFromDictionary(data.vesselLeakMaxFlammableCloudResults as { [key: string]: unknown });
|
|
17094
17094
|
}
|
|
17095
17095
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
17096
17096
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -17355,11 +17355,11 @@ export class VesselLineRuptureCalculationResponse extends CalculationResponseBas
|
|
|
17355
17355
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
17356
17356
|
if (data.exitMaterial) {
|
|
17357
17357
|
this.exitMaterial = new Entities.Material();
|
|
17358
|
-
this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
|
|
17358
|
+
this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
|
|
17359
17359
|
}
|
|
17360
17360
|
if (data.dischargeResult) {
|
|
17361
17361
|
this.dischargeResult = new Entities.DischargeResult();
|
|
17362
|
-
this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
|
|
17362
|
+
this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
|
|
17363
17363
|
}
|
|
17364
17364
|
if (data.dischargeRecords && Array.isArray(data.dischargeRecords)) {
|
|
17365
17365
|
this.dischargeRecords = data.dischargeRecords.map(
|
|
@@ -18085,7 +18085,7 @@ export class VesselLineRuptureLinkedRunCalculationResponse extends CalculationRe
|
|
|
18085
18085
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
18086
18086
|
if (data.dischargeRecord) {
|
|
18087
18087
|
this.dischargeRecord = new Entities.DischargeRecord();
|
|
18088
|
-
this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord);
|
|
18088
|
+
this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord as { [key: string]: unknown });
|
|
18089
18089
|
}
|
|
18090
18090
|
if (data.distancesToJetFireRadiation && Array.isArray(data.distancesToJetFireRadiation)) {
|
|
18091
18091
|
this.distancesToJetFireRadiation = data.distancesToJetFireRadiation.map((item) => parseFloat(item));
|
|
@@ -18176,11 +18176,11 @@ export class VesselLineRuptureLinkedRunCalculationResponse extends CalculationRe
|
|
|
18176
18176
|
}
|
|
18177
18177
|
if (data.jetFireFlameResult) {
|
|
18178
18178
|
this.jetFireFlameResult = new Entities.FlameResult();
|
|
18179
|
-
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
|
|
18179
|
+
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
|
|
18180
18180
|
}
|
|
18181
18181
|
if (data.poolFireFlameResult) {
|
|
18182
18182
|
this.poolFireFlameResult = new Entities.PoolFireFlameResult();
|
|
18183
|
-
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
|
|
18183
|
+
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
|
|
18184
18184
|
}
|
|
18185
18185
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
18186
18186
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -18529,11 +18529,11 @@ export class VesselReliefValveCalculationResponse extends CalculationResponseBas
|
|
|
18529
18529
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
18530
18530
|
if (data.exitMaterial) {
|
|
18531
18531
|
this.exitMaterial = new Entities.Material();
|
|
18532
|
-
this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
|
|
18532
|
+
this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
|
|
18533
18533
|
}
|
|
18534
18534
|
if (data.dischargeResult) {
|
|
18535
18535
|
this.dischargeResult = new Entities.DischargeResult();
|
|
18536
|
-
this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
|
|
18536
|
+
this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
|
|
18537
18537
|
}
|
|
18538
18538
|
if (data.dischargeRecords && Array.isArray(data.dischargeRecords)) {
|
|
18539
18539
|
this.dischargeRecords = data.dischargeRecords.map(
|
|
@@ -19259,7 +19259,7 @@ export class VesselReliefValveLinkedRunCalculationResponse extends CalculationRe
|
|
|
19259
19259
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
19260
19260
|
if (data.dischargeRecord) {
|
|
19261
19261
|
this.dischargeRecord = new Entities.DischargeRecord();
|
|
19262
|
-
this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord);
|
|
19262
|
+
this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord as { [key: string]: unknown });
|
|
19263
19263
|
}
|
|
19264
19264
|
if (data.distancesToJetFireRadiation && Array.isArray(data.distancesToJetFireRadiation)) {
|
|
19265
19265
|
this.distancesToJetFireRadiation = data.distancesToJetFireRadiation.map((item) => parseFloat(item));
|
|
@@ -19350,11 +19350,11 @@ export class VesselReliefValveLinkedRunCalculationResponse extends CalculationRe
|
|
|
19350
19350
|
}
|
|
19351
19351
|
if (data.jetFireFlameResult) {
|
|
19352
19352
|
this.jetFireFlameResult = new Entities.FlameResult();
|
|
19353
|
-
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
|
|
19353
|
+
this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
|
|
19354
19354
|
}
|
|
19355
19355
|
if (data.poolFireFlameResult) {
|
|
19356
19356
|
this.poolFireFlameResult = new Entities.PoolFireFlameResult();
|
|
19357
|
-
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
|
|
19357
|
+
this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
|
|
19358
19358
|
}
|
|
19359
19359
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
19360
19360
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
|
@@ -19683,7 +19683,7 @@ export class VesselStateCalculationResponse extends CalculationResponseBase {
|
|
|
19683
19683
|
}
|
|
19684
19684
|
if (data.outputState) {
|
|
19685
19685
|
this.outputState = new Entities.State();
|
|
19686
|
-
this.outputState.initialiseFromDictionary(data.outputState);
|
|
19686
|
+
this.outputState.initialiseFromDictionary(data.outputState as { [key: string]: unknown });
|
|
19687
19687
|
}
|
|
19688
19688
|
if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
|
|
19689
19689
|
this.resultCode = data.resultCode as Enums.ResultCode;
|
package/src/constants.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* This file has been auto-generated by a code generation tool.
|
|
3
|
-
* Version: 1.0.
|
|
4
|
-
* Date/time:
|
|
3
|
+
* Version: 1.0.17
|
|
4
|
+
* Date/time: 14 Feb 2025 17:00:53
|
|
5
5
|
* Template: templates/typescriptpws/constants.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|