@dnv-plant/typescriptpws 1.0.24 → 1.0.25

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,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * This file has been auto-generated by a code generation tool.
3
- * Version: 1.0.24
4
- * Date/time: 20 Feb 2025 20:51:29
3
+ * Version: 1.0.25
4
+ * Date/time: 25 Feb 2025 23:06:04
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.24",
3
+ "version": "1.0.25",
4
4
  "description": "Integrate Phast models with our versatile APIs for enhanced customization and efficiency.",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * This file has been auto-generated by a code generation tool.
3
- * Version: 1.0.24
4
- * Date/time: 20 Feb 2025 20:51:29
3
+ * Version: 1.0.25
4
+ * Date/time: 25 Feb 2025 23:06:04
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.24
4
- * Date/time: 20 Feb 2025 20:51:26
3
+ * Version: 1.0.25
4
+ * Date/time: 25 Feb 2025 23:06:02
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.24
4
- * Date/time: 20 Feb 2025 20:51:27
3
+ * Version: 1.0.25
4
+ * Date/time: 25 Feb 2025 23:06:03
5
5
  * Template: templates/typescriptpws/entities.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.24
4
- * Date/time: 20 Feb 2025 20:51:28
3
+ * Version: 1.0.25
4
+ * Date/time: 25 Feb 2025 23:06:03
5
5
  * Template: templates/typescriptpws/entityschemas.razor.
6
6
  ***********************************************************************/
7
7
 
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.24
4
- * Date/time: 20 Feb 2025 20:51:27
3
+ * Version: 1.0.25
4
+ * Date/time: 25 Feb 2025 23:06:02
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.24
4
- * Date/time: 20 Feb 2025 20:51:26
3
+ * Version: 1.0.25
4
+ * Date/time: 25 Feb 2025 23:06:01
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.24
4
- * Date/time: 20 Feb 2025 20:51:25
3
+ * Version: 1.0.25
4
+ * Date/time: 25 Feb 2025 23:06:00
5
5
  * Template: templates/typescriptpws/utilities.razor.
6
6
  ***********************************************************************/
7
7
 
@@ -153,23 +153,15 @@ function getApiRoot() {
153
153
  // Determine API root based on devMode
154
154
  const apiTarget = devMode ? "/api/" : `${platform}/api/`;
155
155
 
156
- if (process.env.PYPWS_DEBUG) {
157
- console.log(`Dev Mode: ${devMode}, API Target: ${apiTarget}`);
158
- }
159
-
160
156
  return apiTarget;
161
157
  }
162
158
 
163
- if (process.env.PYPWS_DEBUG) {
164
- console.warn("Access token not found. Falling back to REST_API_URI.");
165
- }
166
-
167
159
  return REST_API_URI;
168
160
  }
169
161
 
170
162
  // Get API version
171
163
  function getApiVersion() {
172
- return process.env.PYPWS_API_VERSION || REST_API_VERSION;
164
+ return REST_API_VERSION;
173
165
  }
174
166
 
175
167
  // Get analytics API target URL
@@ -184,7 +176,7 @@ export function getMaterialsApiTarget() {
184
176
 
185
177
  // Get client alias ID
186
178
  export function getClientAliasId() {
187
- return process.env.PYPWS_CLIENT_ALIAS_ID || PWS_CLIENT_ID;
179
+ return PWS_CLIENT_ID;
188
180
  }
189
181
 
190
182
  // Convert snake_case to camelCase