@dnv-plant/typescriptpws 1.0.66 → 1.0.68-alpha.1869874
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 +6 -14
- package/src/entity-schemas.ts +40 -43
- 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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:44
|
|
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.68-alpha.1869874",
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:41
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:42
|
|
5
5
|
* Template: templates/typescriptpws/entities.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|
|
@@ -2532,7 +2532,6 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2532
2532
|
dipprVersion?: number;
|
|
2533
2533
|
casId?: number;
|
|
2534
2534
|
dataItem: MaterialComponentDataItem[];
|
|
2535
|
-
nonStandard?: boolean;
|
|
2536
2535
|
|
|
2537
2536
|
/**
|
|
2538
2537
|
* Data related to a MaterialComponent.
|
|
@@ -2541,7 +2540,6 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2541
2540
|
* @param {number} dipprVersion - DIPPR version number.
|
|
2542
2541
|
* @param {number} casId - CAS id.
|
|
2543
2542
|
* @param {MaterialComponentDataItem[]} dataItem - List of data items defining the material component data.
|
|
2544
|
-
* @param {boolean} nonStandard - Description of new property.
|
|
2545
2543
|
*/
|
|
2546
2544
|
constructor(options?: {
|
|
2547
2545
|
id?: string;
|
|
@@ -2551,13 +2549,11 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2551
2549
|
dipprVersion?: number;
|
|
2552
2550
|
casId?: number;
|
|
2553
2551
|
dataItem?: MaterialComponentDataItem[];
|
|
2554
|
-
nonStandard?: boolean;
|
|
2555
2552
|
}) {
|
|
2556
2553
|
super(options?.id, options?.typeId, options?.displayName);
|
|
2557
2554
|
this.dipprVersion = options?.dipprVersion;
|
|
2558
2555
|
this.casId = options?.casId;
|
|
2559
2556
|
this.dataItem = options?.dataItem ?? [new MaterialComponentDataItem()];
|
|
2560
|
-
this.nonStandard = options?.nonStandard;
|
|
2561
2557
|
this.name = options?.name ?? "";
|
|
2562
2558
|
}
|
|
2563
2559
|
|
|
@@ -2579,9 +2575,6 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2579
2575
|
}
|
|
2580
2576
|
);
|
|
2581
2577
|
}
|
|
2582
|
-
if (data.nonStandard !== undefined && typeof data.nonStandard === "boolean") {
|
|
2583
|
-
this.nonStandard = data.nonStandard as boolean;
|
|
2584
|
-
}
|
|
2585
2578
|
if (data.name !== undefined && typeof data.name === "string") {
|
|
2586
2579
|
this.name = data.name as string;
|
|
2587
2580
|
}
|
|
@@ -2594,7 +2587,6 @@ export class MaterialComponentData extends EntityBase {
|
|
|
2594
2587
|
`dipprVersion: ${this.dipprVersion}`,
|
|
2595
2588
|
`casId: ${this.casId}`,
|
|
2596
2589
|
this.dataItem?.map((item) => item?.toString()).join("\n"),
|
|
2597
|
-
`nonStandard: ${this.nonStandard}`,
|
|
2598
2590
|
`name: ${this.name}`,
|
|
2599
2591
|
];
|
|
2600
2592
|
return parts.join("\n");
|
|
@@ -3717,7 +3709,7 @@ export class Vessel extends Asset {
|
|
|
3717
3709
|
* @param {number} diameter - Internal diameter of the vessel. (default value is 2)
|
|
3718
3710
|
* @param {number} height - Internal height of a VerticalCylinder or VesselCuboid. (default value is 4)
|
|
3719
3711
|
* @param {number} length - Internal length of HorizontalCylinder or VesselCuboid. (default value is 4)
|
|
3720
|
-
* @param {number} width - Internal width of a VesselCuboid. (default value is
|
|
3712
|
+
* @param {number} width - Internal width of a VesselCuboid. (default value is 2.0)
|
|
3721
3713
|
* @param {Enums.VesselShape} shape - Shape of the vessel. (default value is Enums.VesselShape.HORIZONTAL_CYLINDER)
|
|
3722
3714
|
* @param {Enums.VesselConditions} vesselConditions - The conditions inside the vessel. (default value is Enums.VesselConditions.UNSET)
|
|
3723
3715
|
* @param {number} liquidFillFractionByVolume - The proportion of the vessel occupied by liquid. Used when the VesselConditions are two-phase or pressurized liquid. (default value is 0.0)
|
|
@@ -3745,7 +3737,7 @@ export class Vessel extends Asset {
|
|
|
3745
3737
|
this.diameter = options?.diameter ?? 2;
|
|
3746
3738
|
this.height = options?.height ?? 4;
|
|
3747
3739
|
this.length = options?.length ?? 4;
|
|
3748
|
-
this.width = options?.width ??
|
|
3740
|
+
this.width = options?.width ?? 2.0;
|
|
3749
3741
|
this.shape = options?.shape ?? Enums.VesselShape.HORIZONTAL_CYLINDER;
|
|
3750
3742
|
this.vesselConditions = options?.vesselConditions ?? Enums.VesselConditions.UNSET;
|
|
3751
3743
|
this.liquidFillFractionByVolume = options?.liquidFillFractionByVolume ?? 0.0;
|
|
@@ -3978,7 +3970,7 @@ export class Weather extends EntityBase {
|
|
|
3978
3970
|
* @param {number} relativeHumidity - The amount of water vapour present in the air compared to the maximum amount the air can hold at a given temperature. (default value is 0.7)
|
|
3979
3971
|
* @param {number} mixingLayerHeight - The height of the atmospheric boundary layer which caps the centreline of the plume. (default value is 800)
|
|
3980
3972
|
* @param {number} solarRadiation - The radiation received from the sun, which contributes to pool evaporation. (default value is 500)
|
|
3981
|
-
* @param {Enums.WindProfileFlag} windProfileFlag - Wind profile flag. (default value is Enums.WindProfileFlag.
|
|
3973
|
+
* @param {Enums.WindProfileFlag} windProfileFlag - Wind profile flag. (default value is Enums.WindProfileFlag.POWER_LAW_PROFILE)
|
|
3982
3974
|
*/
|
|
3983
3975
|
constructor(options?: {
|
|
3984
3976
|
id?: string;
|
|
@@ -3999,7 +3991,7 @@ export class Weather extends EntityBase {
|
|
|
3999
3991
|
this.relativeHumidity = options?.relativeHumidity ?? 0.7;
|
|
4000
3992
|
this.mixingLayerHeight = options?.mixingLayerHeight ?? 800;
|
|
4001
3993
|
this.solarRadiation = options?.solarRadiation ?? 500;
|
|
4002
|
-
this.windProfileFlag = options?.windProfileFlag ?? Enums.WindProfileFlag.
|
|
3994
|
+
this.windProfileFlag = options?.windProfileFlag ?? Enums.WindProfileFlag.POWER_LAW_PROFILE;
|
|
4003
3995
|
}
|
|
4004
3996
|
|
|
4005
3997
|
/** Initialise the entity with data from a dictionary. */
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:43
|
|
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
|
})
|
|
@@ -1729,7 +1729,6 @@ export interface MaterialComponentDataSchemaData extends SchemaBaseData {
|
|
|
1729
1729
|
dipprVersion: number;
|
|
1730
1730
|
casId: number;
|
|
1731
1731
|
dataItem: Entities.MaterialComponentDataItem[];
|
|
1732
|
-
nonStandard: boolean;
|
|
1733
1732
|
name: string;
|
|
1734
1733
|
}
|
|
1735
1734
|
|
|
@@ -1747,7 +1746,6 @@ export class MaterialComponentDataSchema extends SchemaBase<MaterialComponentDat
|
|
|
1747
1746
|
dipprVersion: Joi.number().integer(),
|
|
1748
1747
|
casId: Joi.number().integer(),
|
|
1749
1748
|
dataItem: Joi.array().items(new MaterialComponentDataItemSchema().schema).allow(null),
|
|
1750
|
-
nonStandard: Joi.boolean(),
|
|
1751
1749
|
name: Joi.string().allow(""),
|
|
1752
1750
|
})
|
|
1753
1751
|
)
|
|
@@ -1762,7 +1760,6 @@ export class MaterialComponentDataSchema extends SchemaBase<MaterialComponentDat
|
|
|
1762
1760
|
dipprVersion: "number",
|
|
1763
1761
|
casId: "number",
|
|
1764
1762
|
dataItem: "MaterialComponentDataItem[]",
|
|
1765
|
-
nonStandard: "boolean",
|
|
1766
1763
|
name: "string",
|
|
1767
1764
|
};
|
|
1768
1765
|
}
|
|
@@ -1817,8 +1814,8 @@ export class MixtureConstantPropertiesResultSchema extends SchemaBase<MixtureCon
|
|
|
1817
1814
|
dewPoint: Joi.number().unsafe(),
|
|
1818
1815
|
emissivePowerLengthScale: Joi.number().unsafe(),
|
|
1819
1816
|
laminarBurningVelocity: Joi.number().unsafe(),
|
|
1820
|
-
flammableToxicFlag: Joi.string().valid(...Object.
|
|
1821
|
-
luminousSmokyFlame: Joi.string().valid(...Object.
|
|
1817
|
+
flammableToxicFlag: Joi.string().valid(...Object.keys(Enums.FlammableToxic).filter((key) => isNaN(Number(key)))),
|
|
1818
|
+
luminousSmokyFlame: Joi.string().valid(...Object.keys(Enums.LuminousSmokyFlame).filter((key) => isNaN(Number(key)))),
|
|
1822
1819
|
})
|
|
1823
1820
|
)
|
|
1824
1821
|
.pattern(
|
|
@@ -1931,7 +1928,7 @@ export class PipeBreachSchema extends SchemaBase<PipeBreachSchemaData> {
|
|
|
1931
1928
|
Joi.object({
|
|
1932
1929
|
distanceDownstream: Joi.number().unsafe(),
|
|
1933
1930
|
releaseAngle: Joi.number().unsafe(),
|
|
1934
|
-
timeVaryingOption: Joi.string().valid(...Object.
|
|
1931
|
+
timeVaryingOption: Joi.string().valid(...Object.keys(Enums.TimeVaryingOption).filter((key) => isNaN(Number(key)))),
|
|
1935
1932
|
relativeAperture: Joi.number().unsafe(),
|
|
1936
1933
|
})
|
|
1937
1934
|
)
|
|
@@ -1981,7 +1978,7 @@ export class PoolFireFlameResultSchema extends SchemaBase<PoolFireFlameResultSch
|
|
|
1981
1978
|
flameLength: Joi.number().unsafe(),
|
|
1982
1979
|
flameDiameter: Joi.number().unsafe(),
|
|
1983
1980
|
poolZoneSEP: Joi.array().items(Joi.number().unsafe()).allow(null),
|
|
1984
|
-
fireType: Joi.string().valid(...Object.
|
|
1981
|
+
fireType: Joi.string().valid(...Object.keys(Enums.FireType).filter((key) => isNaN(Number(key)))),
|
|
1985
1982
|
})
|
|
1986
1983
|
)
|
|
1987
1984
|
.pattern(
|
|
@@ -2140,7 +2137,7 @@ export class RadiationRecordSchema extends SchemaBase<RadiationRecordSchemaData>
|
|
|
2140
2137
|
Joi.object({
|
|
2141
2138
|
position: new LocalPositionSchema().schema,
|
|
2142
2139
|
radiationResult: Joi.number().unsafe(),
|
|
2143
|
-
radiationType: Joi.string().valid(...Object.
|
|
2140
|
+
radiationType: Joi.string().valid(...Object.keys(Enums.RadiationType).filter((key) => isNaN(Number(key)))),
|
|
2144
2141
|
})
|
|
2145
2142
|
)
|
|
2146
2143
|
.pattern(
|
|
@@ -2188,7 +2185,7 @@ export class ReliefValveSchema extends SchemaBase<ReliefValveSchemaData> {
|
|
|
2188
2185
|
pipeDiameter: Joi.number().unsafe(),
|
|
2189
2186
|
pipeLength: Joi.number().unsafe(),
|
|
2190
2187
|
releaseAngle: Joi.number().unsafe(),
|
|
2191
|
-
timeVaryingOption: Joi.string().valid(...Object.
|
|
2188
|
+
timeVaryingOption: Joi.string().valid(...Object.keys(Enums.TimeVaryingOption).filter((key) => isNaN(Number(key)))),
|
|
2192
2189
|
pipeRoughness: Joi.number().unsafe(),
|
|
2193
2190
|
pipeHeightFraction: Joi.number().unsafe(),
|
|
2194
2191
|
})
|
|
@@ -2295,7 +2292,7 @@ export class ScalarUdmOutputsSchema extends SchemaBase<ScalarUdmOutputsSchemaDat
|
|
|
2295
2292
|
windPower: Joi.number().unsafe(),
|
|
2296
2293
|
frictionVelocity: Joi.number().unsafe(),
|
|
2297
2294
|
dispersionReleaseDuration: Joi.number().unsafe(),
|
|
2298
|
-
cloudType: Joi.string().valid(...Object.
|
|
2295
|
+
cloudType: Joi.string().valid(...Object.keys(Enums.DynamicType).filter((key) => isNaN(Number(key)))),
|
|
2299
2296
|
})
|
|
2300
2297
|
)
|
|
2301
2298
|
.pattern(
|
|
@@ -2345,7 +2342,7 @@ export class ShortPipeRuptureSchema extends SchemaBase<ShortPipeRuptureSchemaDat
|
|
|
2345
2342
|
pipeLength: Joi.number().unsafe(),
|
|
2346
2343
|
pipeDiameter: Joi.number().unsafe(),
|
|
2347
2344
|
releaseAngle: Joi.number().unsafe(),
|
|
2348
|
-
timeVaryingOption: Joi.string().valid(...Object.
|
|
2345
|
+
timeVaryingOption: Joi.string().valid(...Object.keys(Enums.TimeVaryingOption).filter((key) => isNaN(Number(key)))),
|
|
2349
2346
|
pipeRoughness: Joi.number().unsafe(),
|
|
2350
2347
|
pipeHeightFraction: Joi.number().unsafe(),
|
|
2351
2348
|
})
|
|
@@ -2432,8 +2429,8 @@ export class SubstrateSchema extends SchemaBase<SubstrateSchemaData> {
|
|
|
2432
2429
|
Joi.object({
|
|
2433
2430
|
bund: new BundSchema().schema,
|
|
2434
2431
|
surfaceRoughness: Joi.number().unsafe(),
|
|
2435
|
-
surfaceType: Joi.string().valid(...Object.
|
|
2436
|
-
poolSurfaceType: Joi.string().valid(...Object.
|
|
2432
|
+
surfaceType: Joi.string().valid(...Object.keys(Enums.SurfaceType).filter((key) => isNaN(Number(key)))),
|
|
2433
|
+
poolSurfaceType: Joi.string().valid(...Object.keys(Enums.PoolSurfaceType).filter((key) => isNaN(Number(key)))),
|
|
2437
2434
|
})
|
|
2438
2435
|
)
|
|
2439
2436
|
.pattern(
|
|
@@ -2476,7 +2473,7 @@ export class ToxicRecordSchema extends SchemaBase<ToxicRecordSchemaData> {
|
|
|
2476
2473
|
Joi.object({
|
|
2477
2474
|
position: new LocalPositionSchema().schema,
|
|
2478
2475
|
toxicResult: Joi.number().unsafe(),
|
|
2479
|
-
toxicResultType: Joi.string().valid(...Object.
|
|
2476
|
+
toxicResultType: Joi.string().valid(...Object.keys(Enums.ToxicResultType).filter((key) => isNaN(Number(key)))),
|
|
2480
2477
|
})
|
|
2481
2478
|
)
|
|
2482
2479
|
.pattern(
|
|
@@ -2532,8 +2529,8 @@ export class VesselSchema extends SchemaBase<VesselSchemaData> {
|
|
|
2532
2529
|
height: Joi.number().unsafe(),
|
|
2533
2530
|
length: Joi.number().unsafe(),
|
|
2534
2531
|
width: Joi.number().unsafe(),
|
|
2535
|
-
shape: Joi.string().valid(...Object.
|
|
2536
|
-
vesselConditions: Joi.string().valid(...Object.
|
|
2532
|
+
shape: Joi.string().valid(...Object.keys(Enums.VesselShape).filter((key) => isNaN(Number(key)))),
|
|
2533
|
+
vesselConditions: Joi.string().valid(...Object.keys(Enums.VesselConditions).filter((key) => isNaN(Number(key)))),
|
|
2537
2534
|
liquidFillFractionByVolume: Joi.number().unsafe(),
|
|
2538
2535
|
})
|
|
2539
2536
|
)
|
|
@@ -2590,7 +2587,7 @@ export class VesselLeakMaxFlammableCloudResultsSchema extends SchemaBase<VesselL
|
|
|
2590
2587
|
lflExtent: Joi.number().unsafe(),
|
|
2591
2588
|
lflArea: Joi.number().unsafe(),
|
|
2592
2589
|
lflHeight: Joi.number().unsafe(),
|
|
2593
|
-
phase: Joi.string().valid(...Object.
|
|
2590
|
+
phase: Joi.string().valid(...Object.keys(Enums.Phase).filter((key) => isNaN(Number(key)))),
|
|
2594
2591
|
})
|
|
2595
2592
|
)
|
|
2596
2593
|
.pattern(
|
|
@@ -2683,12 +2680,12 @@ export class WeatherSchema extends SchemaBase<WeatherSchemaData> {
|
|
|
2683
2680
|
this.schema = this.schema.concat(
|
|
2684
2681
|
Joi.object({
|
|
2685
2682
|
windSpeed: Joi.number().unsafe(),
|
|
2686
|
-
stabilityClass: Joi.string().valid(...Object.
|
|
2683
|
+
stabilityClass: Joi.string().valid(...Object.keys(Enums.AtmosphericStabilityClass).filter((key) => isNaN(Number(key)))),
|
|
2687
2684
|
temperature: Joi.number().unsafe(),
|
|
2688
2685
|
relativeHumidity: Joi.number().unsafe(),
|
|
2689
2686
|
mixingLayerHeight: Joi.number().unsafe(),
|
|
2690
2687
|
solarRadiation: Joi.number().unsafe(),
|
|
2691
|
-
windProfileFlag: Joi.string().valid(...Object.
|
|
2688
|
+
windProfileFlag: Joi.string().valid(...Object.keys(Enums.WindProfileFlag).filter((key) => isNaN(Number(key)))),
|
|
2692
2689
|
})
|
|
2693
2690
|
)
|
|
2694
2691
|
.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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:42
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:41
|
|
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.68
|
|
4
|
+
* Date/time: 11 Apr 2025 14:11:40
|
|
5
5
|
* Template: templates/typescriptpws/utilities.razor.
|
|
6
6
|
***********************************************************************/
|
|
7
7
|
|