@dnv-plant/typescriptpws 1.0.90 → 1.0.91

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
@@ -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.90
10
- * Date/time: 14 Aug 2025 11:18:59
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:06
11
11
  * Template: templates/typescriptpws/index.razor.
12
12
  ***********************************************************************/
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnv-plant/typescriptpws",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
4
4
  "description": "Integrate Phast models with our versatile APIs for enhanced customization and efficiency.",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:05
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.90
10
- * Date/time: 14 Aug 2025 11:18:56
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:03
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.90
10
- * Date/time: 14 Aug 2025 11:18:57
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:04
11
11
  * Template: templates/typescriptpws/entities.razor.
12
12
  ***********************************************************************/
13
13
 
@@ -1210,7 +1210,7 @@ export class DispersionParameters extends EntityBase {
1210
1210
  * A set of parameters used in dispersion calculations.
1211
1211
  *
1212
1212
  * @param {Object} options - Initialisation options
1213
- * @param {number} options.relativeTolerance - Controls the step size used in the core dispersion calculations for integrations of the differential equations for the cloud dynamics and droplet dynamics so as to maximize computational efficiency while minimising the errors involved. [fraction] (default value is 0.001)
1213
+ * @param {number} options.relativeTolerance - Controls the step size used in the core dispersion calculations for integrations of the differential equations for the cloud dynamics and droplet dynamics so as to maximize computational efficiency while minimising the errors involved. [fraction] (default value is 0.0001)
1214
1214
  * @param {Enums.RainoutThermoFlag} options.rainoutThermoFlag - Sets the model for droplet evaporation calculations. (default value is Enums.RainoutThermoFlag.RAINOUT_NON_EQUILIBRIUM)
1215
1215
  * @param {number} options.fixedStepSize - The size of steps within the core dispersion calculations. [s] (default value is 0.01)
1216
1216
  * @param {number} options.outputStepMultiplier - Multiplier to increase each step size after the initial fixed steps. (default value is 1.2)
@@ -1237,7 +1237,7 @@ export class DispersionParameters extends EntityBase {
1237
1237
  lflFractionToStop?: number;
1238
1238
  }) {
1239
1239
  super(options?.id, options?.typeId, options?.displayName);
1240
- this.relativeTolerance = options?.relativeTolerance ?? 0.001;
1240
+ this.relativeTolerance = options?.relativeTolerance ?? 0.0001;
1241
1241
  this.rainoutThermoFlag = options?.rainoutThermoFlag ?? Enums.RainoutThermoFlag.RAINOUT_NON_EQUILIBRIUM;
1242
1242
  this.fixedStepSize = options?.fixedStepSize ?? 0.01;
1243
1243
  this.outputStepMultiplier = options?.outputStepMultiplier ?? 1.2;
@@ -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.90
10
- * Date/time: 14 Aug 2025 11:18:58
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:04
11
11
  * Template: templates/typescriptpws/entityschemas.razor.
12
12
  ***********************************************************************/
13
13
 
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.90
10
- * Date/time: 14 Aug 2025 11:18:57
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:03
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.90
10
- * Date/time: 14 Aug 2025 11:18:56
9
+ * Version: 1.0.91
10
+ * Date/time: 05 Sept 2025 13:33:02
11
11
  * Template: templates/typescriptpws/materials.razor.
12
12
  ***********************************************************************/
13
13
 
package/src/utilities.ts CHANGED
@@ -1,15 +1,15 @@
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.90
10
- * Date/time: 14 Aug 2025 11:18:55
11
- * Template: templates/typescriptpws/utilities.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.91
10
+ * Date/time: 05 Sept 2025 13:33:01
11
+ * Template: templates/typescriptpws/utilities.razor.
12
+ ***********************************************************************/
13
13
 
14
14
  import jwt from "jsonwebtoken";
15
15
  import axios, { AxiosResponse } from "axios";
@@ -81,7 +81,7 @@ export async function postRequest<T>(
81
81
 
82
82
  const response = await axiosInstance.post<T>(url, data, {
83
83
  headers: getHeaders(accessToken),
84
- signal: controller?.signal,
84
+ signal: controller?.signal
85
85
  });
86
86
  return response;
87
87
  }
@@ -104,16 +104,13 @@ export async function putRequest<T>(
104
104
 
105
105
  const response = await axiosInstance.put<T>(url, data, {
106
106
  headers: getHeaders(accessToken),
107
- signal: controller?.signal,
107
+ signal: controller?.signal
108
108
  });
109
109
  return response;
110
110
  }
111
111
 
112
112
  // Get data from URL
113
- export async function getRequest<T>(
114
- url: string,
115
- controller?: AbortController
116
- ): Promise<AxiosResponse<T>> {
113
+ export async function getRequest<T>(url: string, controller?: AbortController): Promise<AxiosResponse<T>> {
117
114
  const accessToken = getAccessToken();
118
115
  if (!accessToken) {
119
116
  throw new Error("Access token not found");
@@ -127,7 +124,7 @@ export async function getRequest<T>(
127
124
 
128
125
  const response = await axiosInstance.get<T>(url, {
129
126
  headers: getHeaders(accessToken),
130
- signal: controller?.signal,
127
+ signal: controller?.signal
131
128
  });
132
129
  return response;
133
130
  }