@dnv-plant/typescriptpws 1.0.94 → 1.0.95-alpha.2185108

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 CHANGED
@@ -1,33 +1,33 @@
1
1
  /***********************************************************************
2
- * This file has been auto-generated by a code generation tool.
3
- *
4
- * DO NOT MODIFY THIS FILE
5
- * This file is maintained by DNV.
6
- * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
- * Please contact DNV if you believe changes are required.
8
- *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:37
11
- * Template: templates/typescriptpws/index.razor.
12
- ***********************************************************************/
2
+ * This file has been auto-generated by a code generation tool.
3
+ *
4
+ * DO NOT MODIFY THIS FILE
5
+ * This file is maintained by DNV.
6
+ * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
+ * Please contact DNV if you believe changes are required.
8
+ *
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
+ * Template: templates/typescriptpws/index.razor.
12
+ ***********************************************************************/
13
13
 
14
- export * from "./src/constants";
15
- export * from "./src/entities";
16
- export * from "./src/entity-schemas";
17
- export * from "./src/enums";
18
- export * from "./src/materials";
19
- export * from "./src/utilities";
20
- export * from "./src/calculations/discharge";
21
- export * from "./src/calculations/dispersion";
22
- export * from "./src/calculations/dispersionView";
23
- export * from "./src/calculations/fireball";
24
- export * from "./src/calculations/jetFire";
25
- export * from "./src/calculations/lateExplosion";
26
- export * from "./src/calculations/linkedRunners";
27
- export * from "./src/calculations/poolFire";
28
- export * from "./src/calculations/properties";
29
- export * from "./src/calculations/radiation";
30
- export * from "./src/calculations/standalones";
31
- export * from "./src/calculations/toxics";
32
- export * from "./src/calculations/applicationTools";
33
- export * from "./src/calculations/utilities";
14
+ export * from './src/constants';
15
+ export * from './src/entities';
16
+ export * from './src/entity-schemas';
17
+ export * from './src/enums';
18
+ export * from './src/materials';
19
+ export * from './src/utilities';
20
+ export * from './src/calculations/discharge';
21
+ export * from './src/calculations/dispersion';
22
+ export * from './src/calculations/dispersionView';
23
+ export * from './src/calculations/fireball';
24
+ export * from './src/calculations/jetFire';
25
+ export * from './src/calculations/lateExplosion';
26
+ export * from './src/calculations/linkedRunners';
27
+ export * from './src/calculations/poolFire';
28
+ export * from './src/calculations/properties';
29
+ export * from './src/calculations/radiation';
30
+ export * from './src/calculations/standalones';
31
+ export * from './src/calculations/toxics';
32
+ export * from './src/calculations/applicationTools';
33
+ export * from './src/calculations/utilities';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnv-plant/typescriptpws",
3
- "version": "1.0.94",
3
+ "version": "1.0.95-alpha.2185108",
4
4
  "description": "Integrate Phast models with our versatile APIs for enhanced customization and efficiency.",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -21,4 +21,4 @@
21
21
  "@vitest/ui": "^3.2.4",
22
22
  "vitest": "^3.2.4"
23
23
  }
24
- }
24
+ }
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculationbase.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:36
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/calculations.razor.
12
12
  ***********************************************************************/
13
13
 
package/src/constants.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:34
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/constants.razor.
12
12
  ***********************************************************************/
13
13
 
package/src/entities.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:35
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/entities.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -1862,6 +1862,8 @@ export class FlameResult extends EntityBase {
1862
1862
  flameLength?: number;
1863
1863
  flameDiameter?: number;
1864
1864
  fireType?: Enums.FireType;
1865
+ liftOffHeight?: number;
1866
+ liftOffTime?: number;
1865
1867
 
1866
1868
  /**
1867
1869
  * A set of flame results.
@@ -1872,6 +1874,8 @@ export class FlameResult extends EntityBase {
1872
1874
  * @param {number} options.flameLength - Length of the flame. [m]
1873
1875
  * @param {number} options.flameDiameter - Diameter of the flame. [m]
1874
1876
  * @param {Enums.FireType} options.fireType - Type of fire. (default value is Enums.FireType.NO_FIRE)
1877
+ * @param {number} options.liftOffHeight - Fireball centre height. [m]
1878
+ * @param {number} options.liftOffTime - Time to lift off. [s]
1875
1879
  */
1876
1880
  constructor(options?: {
1877
1881
  id?: string;
@@ -1882,13 +1886,18 @@ export class FlameResult extends EntityBase {
1882
1886
  flameLength?: number;
1883
1887
  flameDiameter?: number;
1884
1888
  fireType?: Enums.FireType;
1889
+ liftOffHeight?: number;
1890
+ liftOffTime?: number;
1891
+
1885
1892
  }) {
1886
1893
  super(options?.id, options?.typeId, options?.displayName);
1887
1894
  this.time = options?.time;
1888
1895
  this.surfaceEmissivePower = options?.surfaceEmissivePower;
1889
1896
  this.flameLength = options?.flameLength;
1890
1897
  this.flameDiameter = options?.flameDiameter;
1891
- this.fireType = options?.fireType ?? Enums.FireType.NO_FIRE;
1898
+ this.fireType = options?.fireType ?? Enums.FireType.NO_FIRE;
1899
+ this.liftOffHeight = options?.liftOffHeight;
1900
+ this.liftOffTime = options?.liftOffTime;
1892
1901
  }
1893
1902
 
1894
1903
  /** Initialise the entity with data from a dictionary. */
@@ -1909,6 +1918,12 @@ export class FlameResult extends EntityBase {
1909
1918
  if (data.fireType !== undefined && (typeof data.fireType === "string" || typeof data.fireType === "number")) {
1910
1919
  this.fireType = this.parseEnumValue(data.fireType, Enums.FireType);
1911
1920
  }
1921
+ if (data.liftOffHeight !== undefined && typeof data.liftOffHeight === "number") {
1922
+ this.liftOffHeight = data.liftOffHeight as number;
1923
+ }
1924
+ if (data.liftOffTime !== undefined && typeof data.liftOffTime === "number") {
1925
+ this.liftOffTime = data.liftOffTime as number;
1926
+ }
1912
1927
  }
1913
1928
 
1914
1929
  private parseEnumValue<T extends object>(value: unknown, enumType: T): T[keyof T] | undefined {
@@ -1929,6 +1944,8 @@ export class FlameResult extends EntityBase {
1929
1944
  `flameLength: ${this.flameLength}`,
1930
1945
  `flameDiameter: ${this.flameDiameter}`,
1931
1946
  `fireType: ${this.fireType}`,
1947
+ `liftOffHeight: ${this.liftOffHeight}`,
1948
+ `liftOffTime: ${this.liftOffTime}`,
1932
1949
  ];
1933
1950
  return parts.join("\n");
1934
1951
  }
@@ -2957,6 +2974,8 @@ export class PoolFireFlameResult extends FlameResult {
2957
2974
  * @param {number} options.flameDiameter - Diameter of the flame. [m]
2958
2975
  * @param {number[]} options.poolZoneSEP - Surface emissive power from each of the two pool fire zones. [W/m2]
2959
2976
  * @param {Enums.FireType} options.fireType - Type of fire. (default value is Enums.FireType.NO_FIRE)
2977
+ * @param {number} options.liftOffHeight - Fireball centre height. [m]
2978
+ * @param {number} options.liftOffTime - Time to lift off. [s]
2960
2979
  */
2961
2980
  constructor(options?: {
2962
2981
  id?: string;
@@ -2968,6 +2987,8 @@ export class PoolFireFlameResult extends FlameResult {
2968
2987
  flameDiameter?: number;
2969
2988
  poolZoneSEP?: number[];
2970
2989
  fireType?: Enums.FireType;
2990
+ liftOffHeight?: number;
2991
+ liftOffTime?: number;
2971
2992
  }) {
2972
2993
  super(options);
2973
2994
  this.poolZoneSEP = options?.poolZoneSEP;
@@ -2991,6 +3012,8 @@ export class PoolFireFlameResult extends FlameResult {
2991
3012
  `flameDiameter: ${this.flameDiameter}`,
2992
3013
  this.poolZoneSEP?.map((item) => item?.toString()).join("\n"),
2993
3014
  `fireType: ${this.fireType}`,
3015
+ `liftOffHeight: ${this.liftOffHeight}`,
3016
+ `liftOffTime: ${this.liftOffTime}`,
2994
3017
  ];
2995
3018
  return parts.join("\n");
2996
3019
  }
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:35
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/entityschemas.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -1329,6 +1329,8 @@ export interface FlameResultSchemaData extends SchemaBaseData {
1329
1329
  flameLength: number;
1330
1330
  flameDiameter: number;
1331
1331
  fireType: Enums.FireType;
1332
+ liftOffHeight: number;
1333
+ liftOffTime: number;
1332
1334
  }
1333
1335
 
1334
1336
  /**
@@ -1348,6 +1350,8 @@ export class FlameResultSchema extends SchemaBase<FlameResultSchemaData> {
1348
1350
  flameLength: Joi.number().unsafe(),
1349
1351
  flameDiameter: Joi.number().unsafe(),
1350
1352
  fireType: Joi.string().valid(...Object.values(Enums.FireType).filter(v => typeof v === "number").sort()),
1353
+ liftOffHeight: Joi.number().unsafe(),
1354
+ liftOffTime: Joi.number().unsafe(),
1351
1355
  })
1352
1356
  )
1353
1357
  .pattern(
@@ -1363,6 +1367,8 @@ export class FlameResultSchema extends SchemaBase<FlameResultSchemaData> {
1363
1367
  flameLength: "number",
1364
1368
  flameDiameter: "number",
1365
1369
  fireType: "Enums.FireType",
1370
+ liftOffHeight: "number",
1371
+ liftOffTime: "number",
1366
1372
  };
1367
1373
  }
1368
1374
 
@@ -2005,6 +2011,8 @@ export interface PoolFireFlameResultSchemaData extends SchemaBaseData {
2005
2011
  flameDiameter: number;
2006
2012
  poolZoneSEP: number[];
2007
2013
  fireType: Enums.FireType;
2014
+ liftOffHeight: number;
2015
+ liftOffTime: number;
2008
2016
  }
2009
2017
 
2010
2018
  /**
@@ -2025,6 +2033,8 @@ export class PoolFireFlameResultSchema extends SchemaBase<PoolFireFlameResultSch
2025
2033
  flameDiameter: Joi.number().unsafe(),
2026
2034
  poolZoneSEP: Joi.array().items(Joi.number().unsafe()).allow(null),
2027
2035
  fireType: Joi.string().valid(...Object.values(Enums.FireType).filter(v => typeof v === "number").sort()),
2036
+ liftOffHeight: Joi.number().unsafe(),
2037
+ liftOffTime: Joi.number().unsafe(),
2028
2038
  })
2029
2039
  )
2030
2040
  .pattern(
@@ -2041,6 +2051,8 @@ export class PoolFireFlameResultSchema extends SchemaBase<PoolFireFlameResultSch
2041
2051
  flameDiameter: "number",
2042
2052
  poolZoneSEP: "number[]",
2043
2053
  fireType: "Enums.FireType",
2054
+ liftOffHeight: "number",
2055
+ liftOffTime: "number",
2044
2056
  };
2045
2057
  }
2046
2058
 
package/src/enums.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:34
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/enums.razor.
12
12
  ***********************************************************************/
13
13
 
package/src/materials.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:33
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/materials.razor.
12
12
  ***********************************************************************/
13
13
 
package/src/utilities.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  * Editing it may lead to inconsistent results and limit DNV's ability to provide support.
7
7
  * Please contact DNV if you believe changes are required.
8
8
  *
9
- * Version: 1.0.94
10
- * Date/time: 23 Sept 2025 11:52:32
9
+ * Version: 1.0.95
10
+ * Date/time: 19 Jan 2026 12:11:52
11
11
  * Template: templates/typescriptpws/utilities.razor.
12
12
  ***********************************************************************/
13
13