@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 +2 -2
- package/package.json +1 -1
- package/src/calculations.ts +2 -2
- package/src/constants.ts +2 -2
- package/src/entities.ts +2 -2
- package/src/entity-schemas.ts +2 -2
- package/src/enums.ts +2 -2
- package/src/materials.ts +2 -2
- package/src/utilities.ts +4 -12
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.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
package/src/calculations.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.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.
|
|
4
|
-
* Date/time:
|
|
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.
|
|
4
|
-
* Date/time:
|
|
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
|
|
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.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.
|
|
4
|
-
* Date/time:
|
|
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.
|
|
4
|
-
* Date/time:
|
|
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.
|
|
4
|
-
* Date/time:
|
|
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
|
|
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
|
|
179
|
+
return PWS_CLIENT_ID;
|
|
188
180
|
}
|
|
189
181
|
|
|
190
182
|
// Convert snake_case to camelCase
|