@healthcloudai/hc-sdk 3.13.1 → 3.13.2
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/dist/index.cjs +3 -4
- package/dist/index.js +3 -4
- package/docs/configuration.md +1 -1
- package/docs/docs-manifest.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -97,11 +97,10 @@ function isServiceName(value) {
|
|
|
97
97
|
}
|
|
98
98
|
function resolveBaseUrl(environment, service) {
|
|
99
99
|
if (service === "ams") {
|
|
100
|
-
const
|
|
101
|
-
return `https://${
|
|
100
|
+
const prefix = environment === "prod" ? "" : `${environment}-`;
|
|
101
|
+
return `https://${prefix}amsservices.health.cloud/api/ams`;
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
return `https://${prefix}api-${service}.health.cloud`;
|
|
103
|
+
return `https://${environment}-api-${service}.health.cloud`;
|
|
105
104
|
}
|
|
106
105
|
function assertTimeout(timeout, label = "timeout") {
|
|
107
106
|
if (typeof timeout !== "number" || !Number.isFinite(timeout) || timeout <= 0) {
|
package/dist/index.js
CHANGED
|
@@ -22,11 +22,10 @@ function isServiceName(value) {
|
|
|
22
22
|
}
|
|
23
23
|
function resolveBaseUrl(environment, service) {
|
|
24
24
|
if (service === "ams") {
|
|
25
|
-
const
|
|
26
|
-
return `https://${
|
|
25
|
+
const prefix = environment === "prod" ? "" : `${environment}-`;
|
|
26
|
+
return `https://${prefix}amsservices.health.cloud/api/ams`;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
return `https://${prefix}api-${service}.health.cloud`;
|
|
28
|
+
return `https://${environment}-api-${service}.health.cloud`;
|
|
30
29
|
}
|
|
31
30
|
function assertTimeout(timeout, label = "timeout") {
|
|
32
31
|
if (typeof timeout !== "number" || !Number.isFinite(timeout) || timeout <= 0) {
|
package/docs/configuration.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Configuration
|
|
2
2
|
|
|
3
|
-
- `environment`: Required: `dev`, `uat`, or `prod`.
|
|
3
|
+
- `environment`: Required: `dev`, `uat`, or `prod`. API defaults use `https://{environment}-api-{service}.health.cloud`, including `prod-api-`. AMS uses `https://amsservices.health.cloud/api/ams` in prod and dev-/uat- prefixed AMS hosts otherwise.
|
|
4
4
|
- `tenantId`: Tenant used by tenant-aware authentication operations.
|
|
5
5
|
- `accessToken`: Optional bearer token for authenticated APIs.
|
|
6
6
|
- `baseUrlOverrides`: Optional per-service override intended for controlled development and testing.
|
package/docs/docs-manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"docsDataContentDigest": "sha256:
|
|
2
|
+
"docsDataContentDigest": "sha256:2594a9f19a9d96f724822c71d6705dd6787f3df22ac0a88d42319db1a6abb013",
|
|
3
3
|
"generatedFiles": [
|
|
4
4
|
"authentication.md",
|
|
5
5
|
"clients/AmsClient.md",
|
package/package.json
CHANGED