@dnv-plant/typescriptpws 1.0.0-alpha.1788466 → 1.0.13-alpha.1789228

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/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2025 DNV AS
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
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.0
4
- * Date/time: 03 Feb 2025 13:57:57
3
+ * Version: 1.0.13
4
+ * Date/time: 03 Feb 2025 21:02:35
5
5
  * Template: templates/typescriptpws/index.razor.
6
6
  ***********************************************************************/
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnv-plant/typescriptpws",
3
- "version": "1.0.0-alpha.1788466",
3
+ "version": "1.0.13-alpha.1789228",
4
4
  "description": "Integrate Phast models with our versatile APIs for enhanced customization and efficiency.",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "keywords": [],
10
10
  "author": "DNV <software.support@dnv.com> (www.dnv.com)",
11
- "license": "ISC",
11
+ "license": "MIT",
12
12
  "dependencies": {
13
13
  "axios": "^1.7.9",
14
14
  "joi": "^17.13.3",
@@ -1,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * This file has been auto-generated by a code generation tool.
3
- * Version: 1.0.0
4
- * Date/time: 03 Feb 2025 13:57:57
3
+ * Version: 1.0.13
4
+ * Date/time: 03 Feb 2025 21:02:34
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;
@@ -5416,11 +5416,11 @@ export class LoadMassInventoryVesselForLeakScenarioCalculationResponse extends C
5416
5416
  initialiseFromDictionary(data: { [key: string]: unknown }) {
5417
5417
  if (data.vessel) {
5418
5418
  this.vessel = new Entities.Vessel();
5419
- this.vessel.initialiseFromDictionary(data.vessel);
5419
+ this.vessel.initialiseFromDictionary(data.vessel as { [key: string]: unknown });
5420
5420
  }
5421
5421
  if (data.leak) {
5422
5422
  this.leak = new Entities.Leak();
5423
- this.leak.initialiseFromDictionary(data.leak);
5423
+ this.leak.initialiseFromDictionary(data.leak as { [key: string]: unknown });
5424
5424
  }
5425
5425
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
5426
5426
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -5742,11 +5742,11 @@ export class LoadMassInventoryVesselForLineRuptureScenarioCalculationResponse ex
5742
5742
  initialiseFromDictionary(data: { [key: string]: unknown }) {
5743
5743
  if (data.vessel) {
5744
5744
  this.vessel = new Entities.Vessel();
5745
- this.vessel.initialiseFromDictionary(data.vessel);
5745
+ this.vessel.initialiseFromDictionary(data.vessel as { [key: string]: unknown });
5746
5746
  }
5747
5747
  if (data.lineRupture) {
5748
5748
  this.lineRupture = new Entities.LineRupture();
5749
- this.lineRupture.initialiseFromDictionary(data.lineRupture);
5749
+ this.lineRupture.initialiseFromDictionary(data.lineRupture as { [key: string]: unknown });
5750
5750
  }
5751
5751
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
5752
5752
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -6081,11 +6081,11 @@ export class LoadMassInventoryVesselForReliefValveScenarioCalculationResponse ex
6081
6081
  initialiseFromDictionary(data: { [key: string]: unknown }) {
6082
6082
  if (data.vessel) {
6083
6083
  this.vessel = new Entities.Vessel();
6084
- this.vessel.initialiseFromDictionary(data.vessel);
6084
+ this.vessel.initialiseFromDictionary(data.vessel as { [key: string]: unknown });
6085
6085
  }
6086
6086
  if (data.reliefValve) {
6087
6087
  this.reliefValve = new Entities.ReliefValve();
6088
- this.reliefValve.initialiseFromDictionary(data.reliefValve);
6088
+ this.reliefValve.initialiseFromDictionary(data.reliefValve as { [key: string]: unknown });
6089
6089
  }
6090
6090
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
6091
6091
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -6357,11 +6357,11 @@ export class LongPipeBreachCalculationResponse extends CalculationResponseBase {
6357
6357
  initialiseFromDictionary(data: { [key: string]: unknown }) {
6358
6358
  if (data.exitMaterial) {
6359
6359
  this.exitMaterial = new Entities.Material();
6360
- this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
6360
+ this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
6361
6361
  }
6362
6362
  if (data.dischargeResult) {
6363
6363
  this.dischargeResult = new Entities.DischargeResult();
6364
- this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
6364
+ this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
6365
6365
  }
6366
6366
  if (data.dischargeRecords && Array.isArray(data.dischargeRecords)) {
6367
6367
  this.dischargeRecords = data.dischargeRecords.map(
@@ -7592,7 +7592,7 @@ export class MixtureConstantPropertiesCalculationResponse extends CalculationRes
7592
7592
  initialiseFromDictionary(data: { [key: string]: unknown }) {
7593
7593
  if (data.mixConstantPropResult) {
7594
7594
  this.mixConstantPropResult = new Entities.MixtureConstantPropertiesResult();
7595
- this.mixConstantPropResult.initialiseFromDictionary(data.mixConstantPropResult);
7595
+ this.mixConstantPropResult.initialiseFromDictionary(data.mixConstantPropResult as { [key: string]: unknown });
7596
7596
  }
7597
7597
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
7598
7598
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -7889,7 +7889,7 @@ export class PoolFireCalculationResponse extends CalculationResponseBase {
7889
7889
  initialiseFromDictionary(data: { [key: string]: unknown }) {
7890
7890
  if (data.poolFireFlameResult) {
7891
7891
  this.poolFireFlameResult = new Entities.PoolFireFlameResult();
7892
- this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
7892
+ this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
7893
7893
  }
7894
7894
  if (data.flameRecords && Array.isArray(data.flameRecords)) {
7895
7895
  this.flameRecords = data.flameRecords.map(
@@ -10411,7 +10411,7 @@ export class SetMixingLayerHeightCalculationResponse extends CalculationResponse
10411
10411
  initialiseFromDictionary(data: { [key: string]: unknown }) {
10412
10412
  if (data.updatedWeather) {
10413
10413
  this.updatedWeather = new Entities.Weather();
10414
- this.updatedWeather.initialiseFromDictionary(data.updatedWeather);
10414
+ this.updatedWeather.initialiseFromDictionary(data.updatedWeather as { [key: string]: unknown });
10415
10415
  }
10416
10416
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
10417
10417
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -11434,7 +11434,7 @@ export class SetReleaseElevationForScenarioCalculationResponse extends Calculati
11434
11434
  initialiseFromDictionary(data: { [key: string]: unknown }) {
11435
11435
  if (data.updatedVessel) {
11436
11436
  this.updatedVessel = new Entities.Vessel();
11437
- this.updatedVessel.initialiseFromDictionary(data.updatedVessel);
11437
+ this.updatedVessel.initialiseFromDictionary(data.updatedVessel as { [key: string]: unknown });
11438
11438
  }
11439
11439
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
11440
11440
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -12040,7 +12040,7 @@ export class TankFireCalculationResponse extends CalculationResponseBase {
12040
12040
  initialiseFromDictionary(data: { [key: string]: unknown }) {
12041
12041
  if (data.poolFireFlameResult) {
12042
12042
  this.poolFireFlameResult = new Entities.PoolFireFlameResult();
12043
- this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
12043
+ this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
12044
12044
  }
12045
12045
  if (data.flameRecords && Array.isArray(data.flameRecords)) {
12046
12046
  this.flameRecords = data.flameRecords.map(
@@ -12881,11 +12881,11 @@ export class UserDefinedSourceLinkedRunCalculationResponse extends CalculationRe
12881
12881
  }
12882
12882
  if (data.jetFireFlameResult) {
12883
12883
  this.jetFireFlameResult = new Entities.FlameResult();
12884
- this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
12884
+ this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
12885
12885
  }
12886
12886
  if (data.poolFireFlameResult) {
12887
12887
  this.poolFireFlameResult = new Entities.PoolFireFlameResult();
12888
- this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
12888
+ this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
12889
12889
  }
12890
12890
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
12891
12891
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -13217,11 +13217,11 @@ export class VesselCatastrophicRuptureCalculationResponse extends CalculationRes
13217
13217
  initialiseFromDictionary(data: { [key: string]: unknown }) {
13218
13218
  if (data.exitMaterial) {
13219
13219
  this.exitMaterial = new Entities.Material();
13220
- this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
13220
+ this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
13221
13221
  }
13222
13222
  if (data.dischargeResult) {
13223
13223
  this.dischargeResult = new Entities.DischargeResult();
13224
- this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
13224
+ this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
13225
13225
  }
13226
13226
  if (data.dischargeRecords && Array.isArray(data.dischargeRecords)) {
13227
13227
  this.dischargeRecords = data.dischargeRecords.map(
@@ -13503,11 +13503,11 @@ export class VesselLeakCalculationResponse extends CalculationResponseBase {
13503
13503
  initialiseFromDictionary(data: { [key: string]: unknown }) {
13504
13504
  if (data.exitMaterial) {
13505
13505
  this.exitMaterial = new Entities.Material();
13506
- this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
13506
+ this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
13507
13507
  }
13508
13508
  if (data.dischargeResult) {
13509
13509
  this.dischargeResult = new Entities.DischargeResult();
13510
- this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
13510
+ this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
13511
13511
  }
13512
13512
  if (data.dischargeRecords && Array.isArray(data.dischargeRecords)) {
13513
13513
  this.dischargeRecords = data.dischargeRecords.map(
@@ -14148,15 +14148,15 @@ export class VesselLeakFlammableLinkedRunCalculationResponse extends Calculation
14148
14148
  initialiseFromDictionary(data: { [key: string]: unknown }) {
14149
14149
  if (data.dischargeRecord) {
14150
14150
  this.dischargeRecord = new Entities.DischargeRecord();
14151
- this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord);
14151
+ this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord as { [key: string]: unknown });
14152
14152
  }
14153
14153
  if (data.exitMaterial) {
14154
14154
  this.exitMaterial = new Entities.Material();
14155
- this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
14155
+ this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
14156
14156
  }
14157
14157
  if (data.dischargeResult) {
14158
14158
  this.dischargeResult = new Entities.DischargeResult();
14159
- this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
14159
+ this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
14160
14160
  }
14161
14161
  if (data.distancesToJetFireRadiation && Array.isArray(data.distancesToJetFireRadiation)) {
14162
14162
  this.distancesToJetFireRadiation = data.distancesToJetFireRadiation.map((item) => parseFloat(item));
@@ -14226,11 +14226,11 @@ export class VesselLeakFlammableLinkedRunCalculationResponse extends Calculation
14226
14226
  }
14227
14227
  if (data.jetFireFlameResult) {
14228
14228
  this.jetFireFlameResult = new Entities.FlameResult();
14229
- this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
14229
+ this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
14230
14230
  }
14231
14231
  if (data.poolFireFlameResult) {
14232
14232
  this.poolFireFlameResult = new Entities.PoolFireFlameResult();
14233
- this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
14233
+ this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
14234
14234
  }
14235
14235
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
14236
14236
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -15026,7 +15026,7 @@ export class VesselLeakFlamToxSimpleLinkedRunCalculationResponse extends Calcula
15026
15026
  initialiseFromDictionary(data: { [key: string]: unknown }) {
15027
15027
  if (data.dischargeRecord) {
15028
15028
  this.dischargeRecord = new Entities.DischargeRecord();
15029
- this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord);
15029
+ this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord as { [key: string]: unknown });
15030
15030
  }
15031
15031
  if (data.distancesToJetFireRadiation && Array.isArray(data.distancesToJetFireRadiation)) {
15032
15032
  this.distancesToJetFireRadiation = data.distancesToJetFireRadiation.map((item) => parseFloat(item));
@@ -15117,11 +15117,11 @@ export class VesselLeakFlamToxSimpleLinkedRunCalculationResponse extends Calcula
15117
15117
  }
15118
15118
  if (data.jetFireFlameResult) {
15119
15119
  this.jetFireFlameResult = new Entities.FlameResult();
15120
- this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
15120
+ this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
15121
15121
  }
15122
15122
  if (data.poolFireFlameResult) {
15123
15123
  this.poolFireFlameResult = new Entities.PoolFireFlameResult();
15124
- this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
15124
+ this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
15125
15125
  }
15126
15126
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
15127
15127
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -15914,7 +15914,7 @@ export class VesselLeakLinkedRunCalculationResponse extends CalculationResponseB
15914
15914
  initialiseFromDictionary(data: { [key: string]: unknown }) {
15915
15915
  if (data.dischargeRecord) {
15916
15916
  this.dischargeRecord = new Entities.DischargeRecord();
15917
- this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord);
15917
+ this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord as { [key: string]: unknown });
15918
15918
  }
15919
15919
  if (data.distancesToJetFireRadiation && Array.isArray(data.distancesToJetFireRadiation)) {
15920
15920
  this.distancesToJetFireRadiation = data.distancesToJetFireRadiation.map((item) => parseFloat(item));
@@ -16005,11 +16005,11 @@ export class VesselLeakLinkedRunCalculationResponse extends CalculationResponseB
16005
16005
  }
16006
16006
  if (data.jetFireFlameResult) {
16007
16007
  this.jetFireFlameResult = new Entities.FlameResult();
16008
- this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
16008
+ this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
16009
16009
  }
16010
16010
  if (data.poolFireFlameResult) {
16011
16011
  this.poolFireFlameResult = new Entities.PoolFireFlameResult();
16012
- this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
16012
+ this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
16013
16013
  }
16014
16014
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
16015
16015
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -16392,7 +16392,7 @@ export class VesselLeakMaxFlammableCloudCalculationResponse extends CalculationR
16392
16392
  initialiseFromDictionary(data: { [key: string]: unknown }) {
16393
16393
  if (data.vesselLeakMaxFlammableCloudResults) {
16394
16394
  this.vesselLeakMaxFlammableCloudResults = new Entities.VesselLeakMaxFlammableCloudResults();
16395
- this.vesselLeakMaxFlammableCloudResults.initialiseFromDictionary(data.vesselLeakMaxFlammableCloudResults);
16395
+ this.vesselLeakMaxFlammableCloudResults.initialiseFromDictionary(data.vesselLeakMaxFlammableCloudResults as { [key: string]: unknown });
16396
16396
  }
16397
16397
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
16398
16398
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -16657,11 +16657,11 @@ export class VesselLineRuptureCalculationResponse extends CalculationResponseBas
16657
16657
  initialiseFromDictionary(data: { [key: string]: unknown }) {
16658
16658
  if (data.exitMaterial) {
16659
16659
  this.exitMaterial = new Entities.Material();
16660
- this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
16660
+ this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
16661
16661
  }
16662
16662
  if (data.dischargeResult) {
16663
16663
  this.dischargeResult = new Entities.DischargeResult();
16664
- this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
16664
+ this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
16665
16665
  }
16666
16666
  if (data.dischargeRecords && Array.isArray(data.dischargeRecords)) {
16667
16667
  this.dischargeRecords = data.dischargeRecords.map(
@@ -17387,7 +17387,7 @@ export class VesselLineRuptureLinkedRunCalculationResponse extends CalculationRe
17387
17387
  initialiseFromDictionary(data: { [key: string]: unknown }) {
17388
17388
  if (data.dischargeRecord) {
17389
17389
  this.dischargeRecord = new Entities.DischargeRecord();
17390
- this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord);
17390
+ this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord as { [key: string]: unknown });
17391
17391
  }
17392
17392
  if (data.distancesToJetFireRadiation && Array.isArray(data.distancesToJetFireRadiation)) {
17393
17393
  this.distancesToJetFireRadiation = data.distancesToJetFireRadiation.map((item) => parseFloat(item));
@@ -17478,11 +17478,11 @@ export class VesselLineRuptureLinkedRunCalculationResponse extends CalculationRe
17478
17478
  }
17479
17479
  if (data.jetFireFlameResult) {
17480
17480
  this.jetFireFlameResult = new Entities.FlameResult();
17481
- this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
17481
+ this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
17482
17482
  }
17483
17483
  if (data.poolFireFlameResult) {
17484
17484
  this.poolFireFlameResult = new Entities.PoolFireFlameResult();
17485
- this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
17485
+ this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
17486
17486
  }
17487
17487
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
17488
17488
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -17831,11 +17831,11 @@ export class VesselReliefValveCalculationResponse extends CalculationResponseBas
17831
17831
  initialiseFromDictionary(data: { [key: string]: unknown }) {
17832
17832
  if (data.exitMaterial) {
17833
17833
  this.exitMaterial = new Entities.Material();
17834
- this.exitMaterial.initialiseFromDictionary(data.exitMaterial);
17834
+ this.exitMaterial.initialiseFromDictionary(data.exitMaterial as { [key: string]: unknown });
17835
17835
  }
17836
17836
  if (data.dischargeResult) {
17837
17837
  this.dischargeResult = new Entities.DischargeResult();
17838
- this.dischargeResult.initialiseFromDictionary(data.dischargeResult);
17838
+ this.dischargeResult.initialiseFromDictionary(data.dischargeResult as { [key: string]: unknown });
17839
17839
  }
17840
17840
  if (data.dischargeRecords && Array.isArray(data.dischargeRecords)) {
17841
17841
  this.dischargeRecords = data.dischargeRecords.map(
@@ -18561,7 +18561,7 @@ export class VesselReliefValveLinkedRunCalculationResponse extends CalculationRe
18561
18561
  initialiseFromDictionary(data: { [key: string]: unknown }) {
18562
18562
  if (data.dischargeRecord) {
18563
18563
  this.dischargeRecord = new Entities.DischargeRecord();
18564
- this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord);
18564
+ this.dischargeRecord.initialiseFromDictionary(data.dischargeRecord as { [key: string]: unknown });
18565
18565
  }
18566
18566
  if (data.distancesToJetFireRadiation && Array.isArray(data.distancesToJetFireRadiation)) {
18567
18567
  this.distancesToJetFireRadiation = data.distancesToJetFireRadiation.map((item) => parseFloat(item));
@@ -18652,11 +18652,11 @@ export class VesselReliefValveLinkedRunCalculationResponse extends CalculationRe
18652
18652
  }
18653
18653
  if (data.jetFireFlameResult) {
18654
18654
  this.jetFireFlameResult = new Entities.FlameResult();
18655
- this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult);
18655
+ this.jetFireFlameResult.initialiseFromDictionary(data.jetFireFlameResult as { [key: string]: unknown });
18656
18656
  }
18657
18657
  if (data.poolFireFlameResult) {
18658
18658
  this.poolFireFlameResult = new Entities.PoolFireFlameResult();
18659
- this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult);
18659
+ this.poolFireFlameResult.initialiseFromDictionary(data.poolFireFlameResult as { [key: string]: unknown });
18660
18660
  }
18661
18661
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
18662
18662
  this.resultCode = data.resultCode as Enums.ResultCode;
@@ -18985,7 +18985,7 @@ export class VesselStateCalculationResponse extends CalculationResponseBase {
18985
18985
  }
18986
18986
  if (data.outputState) {
18987
18987
  this.outputState = new Entities.State();
18988
- this.outputState.initialiseFromDictionary(data.outputState);
18988
+ this.outputState.initialiseFromDictionary(data.outputState as { [key: string]: unknown });
18989
18989
  }
18990
18990
  if (data.resultCode !== undefined && (typeof data.resultCode === "string" || typeof data.resultCode === "number")) {
18991
18991
  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.0
4
- * Date/time: 03 Feb 2025 13:57:55
3
+ * Version: 1.0.13
4
+ * Date/time: 03 Feb 2025 21:02:32
5
5
  * Template: templates/typescriptpws/constants.razor.
6
6
  ***********************************************************************/
7
7