@dnv-plant/typescriptpws 1.0.66 → 1.0.67-alpha.1869576
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 +2 -2
- package/src/calculations/applicationTools.ts +2 -2
- package/src/calculations/discharge.ts +2 -2
- package/src/calculations/dispersion.ts +2 -2
- package/src/calculations/dispersionView.ts +2 -2
- package/src/calculations/fireball.ts +2 -2
- package/src/calculations/jetFire.ts +2 -2
- package/src/calculations/lateExplosion.ts +2 -2
- package/src/calculations/linkedRunners.ts +2 -2
- package/src/calculations/poolFire.ts +2 -2
- package/src/calculations/properties.ts +2 -2
- package/src/calculations/radiation.ts +2 -2
- package/src/calculations/standalones.ts +2 -2
- package/src/calculations/toxics.ts +2 -2
- package/src/calculations/utilities.ts +2 -2
- package/src/constants.ts +2 -2
- package/src/entities.ts +2 -2
- package/src/entity-schemas.ts +40 -40
- package/src/enums.ts +2 -2
- package/src/materials.ts +2 -2
- package/src/utilities.ts +2 -2
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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21: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.
|
|
3
|
+
"version": "1.0.67-alpha.1869576",
|
|
4
4
|
"description": "Integrate Phast models with our versatile APIs for enhanced customization and efficiency.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/jsonwebtoken": "^9.0.8"
|
|
20
20
|
}
|
|
21
|
-
}
|
|
21
|
+
}
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:34
|
|
5
5
|
* Template: templates/typescriptpws/calculations.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:31
|
|
5
5
|
* Template: templates/typescriptpws/constants.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/entities.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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:33
|
|
5
5
|
* Template: templates/typescriptpws/entities.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/entity-schemas.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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:33
|
|
5
5
|
* Template: templates/typescriptpws/entityschemas.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -213,7 +213,7 @@ export class MaterialSchema extends SchemaBase<MaterialSchemaData> {
|
|
|
213
213
|
components: Joi.array().items(new MaterialComponentSchema().schema).allow(null),
|
|
214
214
|
name: Joi.string().allow(""),
|
|
215
215
|
componentCount: Joi.number().integer(),
|
|
216
|
-
propertyTemplate: Joi.string().valid(...Object.
|
|
216
|
+
propertyTemplate: Joi.string().valid(...Object.keys(Enums.PropertyTemplate).filter((key) => isNaN(Number(key)))),
|
|
217
217
|
})
|
|
218
218
|
)
|
|
219
219
|
.pattern(
|
|
@@ -259,8 +259,8 @@ export class StateSchema extends SchemaBase<StateSchemaData> {
|
|
|
259
259
|
pressure: Joi.number().unsafe(),
|
|
260
260
|
temperature: Joi.number().unsafe(),
|
|
261
261
|
liquidFraction: Joi.number().unsafe(),
|
|
262
|
-
flashFlag: Joi.string().valid(...Object.
|
|
263
|
-
mixtureModelling: Joi.string().valid(...Object.
|
|
262
|
+
flashFlag: Joi.string().valid(...Object.keys(Enums.FluidSpec).filter((key) => isNaN(Number(key)))),
|
|
263
|
+
mixtureModelling: Joi.string().valid(...Object.keys(Enums.MixtureModelling).filter((key) => isNaN(Number(key)))),
|
|
264
264
|
})
|
|
265
265
|
)
|
|
266
266
|
.pattern(
|
|
@@ -383,7 +383,7 @@ export class ReleaseOverTimeSchema extends SchemaBase<ReleaseOverTimeSchemaData>
|
|
|
383
383
|
this.schema = this.schema.concat(
|
|
384
384
|
Joi.object({
|
|
385
385
|
releaseAngle: Joi.number().unsafe(),
|
|
386
|
-
timeVaryingOption: Joi.string().valid(...Object.
|
|
386
|
+
timeVaryingOption: Joi.string().valid(...Object.keys(Enums.TimeVaryingOption).filter((key) => isNaN(Number(key)))),
|
|
387
387
|
})
|
|
388
388
|
)
|
|
389
389
|
.pattern(
|
|
@@ -430,7 +430,7 @@ export class BESSReleaseSchema extends SchemaBase<BESSReleaseSchemaData> {
|
|
|
430
430
|
temperature: Joi.number().unsafe(),
|
|
431
431
|
duration: Joi.number().unsafe(),
|
|
432
432
|
releaseAngle: Joi.number().unsafe(),
|
|
433
|
-
timeVaryingOption: Joi.string().valid(...Object.
|
|
433
|
+
timeVaryingOption: Joi.string().valid(...Object.keys(Enums.TimeVaryingOption).filter((key) => isNaN(Number(key)))),
|
|
434
434
|
})
|
|
435
435
|
)
|
|
436
436
|
.pattern(
|
|
@@ -475,7 +475,7 @@ export class BESSUnitSchema extends SchemaBase<BESSUnitSchemaData> {
|
|
|
475
475
|
Joi.object({
|
|
476
476
|
location: new LocalPositionSchema().schema,
|
|
477
477
|
energyCapacity: Joi.number().unsafe(),
|
|
478
|
-
chemistry: Joi.string().valid(...Object.
|
|
478
|
+
chemistry: Joi.string().valid(...Object.keys(Enums.BESSChemistry).filter((key) => isNaN(Number(key)))),
|
|
479
479
|
})
|
|
480
480
|
)
|
|
481
481
|
.pattern(
|
|
@@ -696,7 +696,7 @@ export class DischargeParametersSchema extends SchemaBase<DischargeParametersSch
|
|
|
696
696
|
super();
|
|
697
697
|
this.schema = this.schema.concat(
|
|
698
698
|
Joi.object({
|
|
699
|
-
flashAtOrifice: Joi.string().valid(...Object.
|
|
699
|
+
flashAtOrifice: Joi.string().valid(...Object.keys(Enums.FlashAtOrifice).filter((key) => isNaN(Number(key)))),
|
|
700
700
|
})
|
|
701
701
|
)
|
|
702
702
|
.pattern(
|
|
@@ -803,7 +803,7 @@ export class DischargeResultSchema extends SchemaBase<DischargeResultSchemaData>
|
|
|
803
803
|
height: Joi.number().unsafe(),
|
|
804
804
|
angle: Joi.number().unsafe(),
|
|
805
805
|
holeDiameter: Joi.number().unsafe(),
|
|
806
|
-
releaseType: Joi.string().valid(...Object.
|
|
806
|
+
releaseType: Joi.string().valid(...Object.keys(Enums.DynamicType).filter((key) => isNaN(Number(key)))),
|
|
807
807
|
preDilutionAirRate: Joi.number().unsafe(),
|
|
808
808
|
})
|
|
809
809
|
)
|
|
@@ -858,12 +858,12 @@ export class DispersionOutputConfigSchema extends SchemaBase<DispersionOutputCon
|
|
|
858
858
|
Joi.object({
|
|
859
859
|
downwindDistance: Joi.number().unsafe(),
|
|
860
860
|
time: Joi.number().unsafe(),
|
|
861
|
-
resolution: Joi.string().valid(...Object.
|
|
861
|
+
resolution: Joi.string().valid(...Object.keys(Enums.Resolution).filter((key) => isNaN(Number(key)))),
|
|
862
862
|
elevation: Joi.number().unsafe(),
|
|
863
|
-
specialConcentration: Joi.string().valid(...Object.
|
|
863
|
+
specialConcentration: Joi.string().valid(...Object.keys(Enums.SpecialConcentration).filter((key) => isNaN(Number(key)))),
|
|
864
864
|
concentration: Joi.number().unsafe(),
|
|
865
865
|
crosswindDistance: Joi.number().unsafe(),
|
|
866
|
-
contourType: Joi.string().valid(...Object.
|
|
866
|
+
contourType: Joi.string().valid(...Object.keys(Enums.ContourType).filter((key) => isNaN(Number(key)))),
|
|
867
867
|
lflFractionValue: Joi.number().unsafe(),
|
|
868
868
|
componentToTrackIndex: Joi.number().integer(),
|
|
869
869
|
componentToTrackName: Joi.string().allow(""),
|
|
@@ -922,7 +922,7 @@ export class DispersionParametersSchema extends SchemaBase<DispersionParametersS
|
|
|
922
922
|
this.schema = this.schema.concat(
|
|
923
923
|
Joi.object({
|
|
924
924
|
relativeTolerance: Joi.number().unsafe(),
|
|
925
|
-
rainoutThermoFlag: Joi.string().valid(...Object.
|
|
925
|
+
rainoutThermoFlag: Joi.string().valid(...Object.keys(Enums.RainoutThermoFlag).filter((key) => isNaN(Number(key)))),
|
|
926
926
|
fixedStepSize: Joi.number().unsafe(),
|
|
927
927
|
outputStepMultiplier: Joi.number().unsafe(),
|
|
928
928
|
maxDispersionDistance: Joi.number().unsafe(),
|
|
@@ -1031,7 +1031,7 @@ export class DispersionRecordSchema extends SchemaBase<DispersionRecordSchemaDat
|
|
|
1031
1031
|
dropletHeight: Joi.number().unsafe(),
|
|
1032
1032
|
dropletDistance: Joi.number().unsafe(),
|
|
1033
1033
|
mass: Joi.number().unsafe(),
|
|
1034
|
-
instCon: Joi.string().valid(...Object.
|
|
1034
|
+
instCon: Joi.string().valid(...Object.keys(Enums.DynamicType).filter((key) => isNaN(Number(key)))),
|
|
1035
1035
|
})
|
|
1036
1036
|
)
|
|
1037
1037
|
.pattern(
|
|
@@ -1136,7 +1136,7 @@ export class ExplosionOutputConfigSchema extends SchemaBase<ExplosionOutputConfi
|
|
|
1136
1136
|
this.schema = this.schema.concat(
|
|
1137
1137
|
Joi.object({
|
|
1138
1138
|
overpressureLevel: Joi.number().unsafe(),
|
|
1139
|
-
meConfinedMethod: Joi.string().valid(...Object.
|
|
1139
|
+
meConfinedMethod: Joi.string().valid(...Object.keys(Enums.MEConfinedMethod).filter((key) => isNaN(Number(key)))),
|
|
1140
1140
|
})
|
|
1141
1141
|
)
|
|
1142
1142
|
.pattern(
|
|
@@ -1313,7 +1313,7 @@ export class FlameResultSchema extends SchemaBase<FlameResultSchemaData> {
|
|
|
1313
1313
|
surfaceEmissivePower: Joi.number().unsafe(),
|
|
1314
1314
|
flameLength: Joi.number().unsafe(),
|
|
1315
1315
|
flameDiameter: Joi.number().unsafe(),
|
|
1316
|
-
fireType: Joi.string().valid(...Object.
|
|
1316
|
+
fireType: Joi.string().valid(...Object.keys(Enums.FireType).filter((key) => isNaN(Number(key)))),
|
|
1317
1317
|
})
|
|
1318
1318
|
)
|
|
1319
1319
|
.pattern(
|
|
@@ -1403,10 +1403,10 @@ export class FlammableOutputConfigSchema extends SchemaBase<FlammableOutputConfi
|
|
|
1403
1403
|
Joi.object({
|
|
1404
1404
|
position: new LocalPositionSchema().schema,
|
|
1405
1405
|
transect: new TransectSchema().schema,
|
|
1406
|
-
radiationType: Joi.string().valid(...Object.
|
|
1407
|
-
contourType: Joi.string().valid(...Object.
|
|
1406
|
+
radiationType: Joi.string().valid(...Object.keys(Enums.RadiationType).filter((key) => isNaN(Number(key)))),
|
|
1407
|
+
contourType: Joi.string().valid(...Object.keys(Enums.ContourType).filter((key) => isNaN(Number(key)))),
|
|
1408
1408
|
radiationLevel: Joi.number().unsafe(),
|
|
1409
|
-
radiationResolution: Joi.string().valid(...Object.
|
|
1409
|
+
radiationResolution: Joi.string().valid(...Object.keys(Enums.Resolution).filter((key) => isNaN(Number(key)))),
|
|
1410
1410
|
fixedOrientation: Joi.number().integer(),
|
|
1411
1411
|
orientation: Joi.number().unsafe(),
|
|
1412
1412
|
fixedInclination: Joi.number().integer(),
|
|
@@ -1462,7 +1462,7 @@ export class FlammableParametersSchema extends SchemaBase<FlammableParametersSch
|
|
|
1462
1462
|
Joi.object({
|
|
1463
1463
|
maxExposureDuration: Joi.number().unsafe(),
|
|
1464
1464
|
radiationRelativeTolerance: Joi.number().unsafe(),
|
|
1465
|
-
poolFireType: Joi.string().valid(...Object.
|
|
1465
|
+
poolFireType: Joi.string().valid(...Object.keys(Enums.PoolFireType).filter((key) => isNaN(Number(key)))),
|
|
1466
1466
|
jetFireAutoSelect: Joi.boolean(),
|
|
1467
1467
|
timeAveraging: Joi.boolean(),
|
|
1468
1468
|
timeOfInterest: Joi.number().unsafe(),
|
|
@@ -1536,7 +1536,7 @@ export class FlashResultSchema extends SchemaBase<FlashResultSchemaData> {
|
|
|
1536
1536
|
dewPointTemperature: Joi.number().unsafe(),
|
|
1537
1537
|
totalFluidDensity: Joi.number().unsafe(),
|
|
1538
1538
|
liquidMassFraction: Joi.number().unsafe(),
|
|
1539
|
-
fluidPhase: Joi.string().valid(...Object.
|
|
1539
|
+
fluidPhase: Joi.string().valid(...Object.keys(Enums.Phase).filter((key) => isNaN(Number(key)))),
|
|
1540
1540
|
})
|
|
1541
1541
|
)
|
|
1542
1542
|
.pattern(
|
|
@@ -1593,7 +1593,7 @@ export class LeakSchema extends SchemaBase<LeakSchemaData> {
|
|
|
1593
1593
|
Joi.object({
|
|
1594
1594
|
holeDiameter: Joi.number().unsafe(),
|
|
1595
1595
|
releaseAngle: Joi.number().unsafe(),
|
|
1596
|
-
timeVaryingOption: Joi.string().valid(...Object.
|
|
1596
|
+
timeVaryingOption: Joi.string().valid(...Object.keys(Enums.TimeVaryingOption).filter((key) => isNaN(Number(key)))),
|
|
1597
1597
|
holeHeightFraction: Joi.number().unsafe(),
|
|
1598
1598
|
releaseElevation: Joi.number().unsafe(),
|
|
1599
1599
|
})
|
|
@@ -1643,7 +1643,7 @@ export class LineRuptureSchema extends SchemaBase<LineRuptureSchemaData> {
|
|
|
1643
1643
|
pipeDiameter: Joi.number().unsafe(),
|
|
1644
1644
|
pipeLength: Joi.number().unsafe(),
|
|
1645
1645
|
releaseAngle: Joi.number().unsafe(),
|
|
1646
|
-
timeVaryingOption: Joi.string().valid(...Object.
|
|
1646
|
+
timeVaryingOption: Joi.string().valid(...Object.keys(Enums.TimeVaryingOption).filter((key) => isNaN(Number(key)))),
|
|
1647
1647
|
pipeRoughness: Joi.number().unsafe(),
|
|
1648
1648
|
pipeHeightFraction: Joi.number().unsafe(),
|
|
1649
1649
|
})
|
|
@@ -1817,8 +1817,8 @@ export class MixtureConstantPropertiesResultSchema extends SchemaBase<MixtureCon
|
|
|
1817
1817
|
dewPoint: Joi.number().unsafe(),
|
|
1818
1818
|
emissivePowerLengthScale: Joi.number().unsafe(),
|
|
1819
1819
|
laminarBurningVelocity: Joi.number().unsafe(),
|
|
1820
|
-
flammableToxicFlag: Joi.string().valid(...Object.
|
|
1821
|
-
luminousSmokyFlame: Joi.string().valid(...Object.
|
|
1820
|
+
flammableToxicFlag: Joi.string().valid(...Object.keys(Enums.FlammableToxic).filter((key) => isNaN(Number(key)))),
|
|
1821
|
+
luminousSmokyFlame: Joi.string().valid(...Object.keys(Enums.LuminousSmokyFlame).filter((key) => isNaN(Number(key)))),
|
|
1822
1822
|
})
|
|
1823
1823
|
)
|
|
1824
1824
|
.pattern(
|
|
@@ -1931,7 +1931,7 @@ export class PipeBreachSchema extends SchemaBase<PipeBreachSchemaData> {
|
|
|
1931
1931
|
Joi.object({
|
|
1932
1932
|
distanceDownstream: Joi.number().unsafe(),
|
|
1933
1933
|
releaseAngle: Joi.number().unsafe(),
|
|
1934
|
-
timeVaryingOption: Joi.string().valid(...Object.
|
|
1934
|
+
timeVaryingOption: Joi.string().valid(...Object.keys(Enums.TimeVaryingOption).filter((key) => isNaN(Number(key)))),
|
|
1935
1935
|
relativeAperture: Joi.number().unsafe(),
|
|
1936
1936
|
})
|
|
1937
1937
|
)
|
|
@@ -1981,7 +1981,7 @@ export class PoolFireFlameResultSchema extends SchemaBase<PoolFireFlameResultSch
|
|
|
1981
1981
|
flameLength: Joi.number().unsafe(),
|
|
1982
1982
|
flameDiameter: Joi.number().unsafe(),
|
|
1983
1983
|
poolZoneSEP: Joi.array().items(Joi.number().unsafe()).allow(null),
|
|
1984
|
-
fireType: Joi.string().valid(...Object.
|
|
1984
|
+
fireType: Joi.string().valid(...Object.keys(Enums.FireType).filter((key) => isNaN(Number(key)))),
|
|
1985
1985
|
})
|
|
1986
1986
|
)
|
|
1987
1987
|
.pattern(
|
|
@@ -2140,7 +2140,7 @@ export class RadiationRecordSchema extends SchemaBase<RadiationRecordSchemaData>
|
|
|
2140
2140
|
Joi.object({
|
|
2141
2141
|
position: new LocalPositionSchema().schema,
|
|
2142
2142
|
radiationResult: Joi.number().unsafe(),
|
|
2143
|
-
radiationType: Joi.string().valid(...Object.
|
|
2143
|
+
radiationType: Joi.string().valid(...Object.keys(Enums.RadiationType).filter((key) => isNaN(Number(key)))),
|
|
2144
2144
|
})
|
|
2145
2145
|
)
|
|
2146
2146
|
.pattern(
|
|
@@ -2188,7 +2188,7 @@ export class ReliefValveSchema extends SchemaBase<ReliefValveSchemaData> {
|
|
|
2188
2188
|
pipeDiameter: Joi.number().unsafe(),
|
|
2189
2189
|
pipeLength: Joi.number().unsafe(),
|
|
2190
2190
|
releaseAngle: Joi.number().unsafe(),
|
|
2191
|
-
timeVaryingOption: Joi.string().valid(...Object.
|
|
2191
|
+
timeVaryingOption: Joi.string().valid(...Object.keys(Enums.TimeVaryingOption).filter((key) => isNaN(Number(key)))),
|
|
2192
2192
|
pipeRoughness: Joi.number().unsafe(),
|
|
2193
2193
|
pipeHeightFraction: Joi.number().unsafe(),
|
|
2194
2194
|
})
|
|
@@ -2295,7 +2295,7 @@ export class ScalarUdmOutputsSchema extends SchemaBase<ScalarUdmOutputsSchemaDat
|
|
|
2295
2295
|
windPower: Joi.number().unsafe(),
|
|
2296
2296
|
frictionVelocity: Joi.number().unsafe(),
|
|
2297
2297
|
dispersionReleaseDuration: Joi.number().unsafe(),
|
|
2298
|
-
cloudType: Joi.string().valid(...Object.
|
|
2298
|
+
cloudType: Joi.string().valid(...Object.keys(Enums.DynamicType).filter((key) => isNaN(Number(key)))),
|
|
2299
2299
|
})
|
|
2300
2300
|
)
|
|
2301
2301
|
.pattern(
|
|
@@ -2345,7 +2345,7 @@ export class ShortPipeRuptureSchema extends SchemaBase<ShortPipeRuptureSchemaDat
|
|
|
2345
2345
|
pipeLength: Joi.number().unsafe(),
|
|
2346
2346
|
pipeDiameter: Joi.number().unsafe(),
|
|
2347
2347
|
releaseAngle: Joi.number().unsafe(),
|
|
2348
|
-
timeVaryingOption: Joi.string().valid(...Object.
|
|
2348
|
+
timeVaryingOption: Joi.string().valid(...Object.keys(Enums.TimeVaryingOption).filter((key) => isNaN(Number(key)))),
|
|
2349
2349
|
pipeRoughness: Joi.number().unsafe(),
|
|
2350
2350
|
pipeHeightFraction: Joi.number().unsafe(),
|
|
2351
2351
|
})
|
|
@@ -2432,8 +2432,8 @@ export class SubstrateSchema extends SchemaBase<SubstrateSchemaData> {
|
|
|
2432
2432
|
Joi.object({
|
|
2433
2433
|
bund: new BundSchema().schema,
|
|
2434
2434
|
surfaceRoughness: Joi.number().unsafe(),
|
|
2435
|
-
surfaceType: Joi.string().valid(...Object.
|
|
2436
|
-
poolSurfaceType: Joi.string().valid(...Object.
|
|
2435
|
+
surfaceType: Joi.string().valid(...Object.keys(Enums.SurfaceType).filter((key) => isNaN(Number(key)))),
|
|
2436
|
+
poolSurfaceType: Joi.string().valid(...Object.keys(Enums.PoolSurfaceType).filter((key) => isNaN(Number(key)))),
|
|
2437
2437
|
})
|
|
2438
2438
|
)
|
|
2439
2439
|
.pattern(
|
|
@@ -2476,7 +2476,7 @@ export class ToxicRecordSchema extends SchemaBase<ToxicRecordSchemaData> {
|
|
|
2476
2476
|
Joi.object({
|
|
2477
2477
|
position: new LocalPositionSchema().schema,
|
|
2478
2478
|
toxicResult: Joi.number().unsafe(),
|
|
2479
|
-
toxicResultType: Joi.string().valid(...Object.
|
|
2479
|
+
toxicResultType: Joi.string().valid(...Object.keys(Enums.ToxicResultType).filter((key) => isNaN(Number(key)))),
|
|
2480
2480
|
})
|
|
2481
2481
|
)
|
|
2482
2482
|
.pattern(
|
|
@@ -2532,8 +2532,8 @@ export class VesselSchema extends SchemaBase<VesselSchemaData> {
|
|
|
2532
2532
|
height: Joi.number().unsafe(),
|
|
2533
2533
|
length: Joi.number().unsafe(),
|
|
2534
2534
|
width: Joi.number().unsafe(),
|
|
2535
|
-
shape: Joi.string().valid(...Object.
|
|
2536
|
-
vesselConditions: Joi.string().valid(...Object.
|
|
2535
|
+
shape: Joi.string().valid(...Object.keys(Enums.VesselShape).filter((key) => isNaN(Number(key)))),
|
|
2536
|
+
vesselConditions: Joi.string().valid(...Object.keys(Enums.VesselConditions).filter((key) => isNaN(Number(key)))),
|
|
2537
2537
|
liquidFillFractionByVolume: Joi.number().unsafe(),
|
|
2538
2538
|
})
|
|
2539
2539
|
)
|
|
@@ -2590,7 +2590,7 @@ export class VesselLeakMaxFlammableCloudResultsSchema extends SchemaBase<VesselL
|
|
|
2590
2590
|
lflExtent: Joi.number().unsafe(),
|
|
2591
2591
|
lflArea: Joi.number().unsafe(),
|
|
2592
2592
|
lflHeight: Joi.number().unsafe(),
|
|
2593
|
-
phase: Joi.string().valid(...Object.
|
|
2593
|
+
phase: Joi.string().valid(...Object.keys(Enums.Phase).filter((key) => isNaN(Number(key)))),
|
|
2594
2594
|
})
|
|
2595
2595
|
)
|
|
2596
2596
|
.pattern(
|
|
@@ -2683,12 +2683,12 @@ export class WeatherSchema extends SchemaBase<WeatherSchemaData> {
|
|
|
2683
2683
|
this.schema = this.schema.concat(
|
|
2684
2684
|
Joi.object({
|
|
2685
2685
|
windSpeed: Joi.number().unsafe(),
|
|
2686
|
-
stabilityClass: Joi.string().valid(...Object.
|
|
2686
|
+
stabilityClass: Joi.string().valid(...Object.keys(Enums.AtmosphericStabilityClass).filter((key) => isNaN(Number(key)))),
|
|
2687
2687
|
temperature: Joi.number().unsafe(),
|
|
2688
2688
|
relativeHumidity: Joi.number().unsafe(),
|
|
2689
2689
|
mixingLayerHeight: Joi.number().unsafe(),
|
|
2690
2690
|
solarRadiation: Joi.number().unsafe(),
|
|
2691
|
-
windProfileFlag: Joi.string().valid(...Object.
|
|
2691
|
+
windProfileFlag: Joi.string().valid(...Object.keys(Enums.WindProfileFlag).filter((key) => isNaN(Number(key)))),
|
|
2692
2692
|
})
|
|
2693
2693
|
)
|
|
2694
2694
|
.pattern(
|
package/src/enums.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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:32
|
|
5
5
|
* Template: templates/typescriptpws/enums.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/materials.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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:30
|
|
5
5
|
* Template: templates/typescriptpws/materials.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
package/src/utilities.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.67
|
|
4
|
+
* Date/time: 11 Apr 2025 09:21:29
|
|
5
5
|
* Template: templates/typescriptpws/utilities.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|