@healthcloudai/hc-sdk 3.13.0 → 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 CHANGED
@@ -97,11 +97,10 @@ function isServiceName(value) {
97
97
  }
98
98
  function resolveBaseUrl(environment, service) {
99
99
  if (service === "ams") {
100
- const prefix2 = environment === "prod" ? "" : `${environment}-`;
101
- return `https://${prefix2}amsservices.health.cloud/api/ams`;
100
+ const prefix = environment === "prod" ? "" : `${environment}-`;
101
+ return `https://${prefix}amsservices.health.cloud/api/ams`;
102
102
  }
103
- const prefix = environment === "prod" ? "" : `${environment}-`;
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 prefix2 = environment === "prod" ? "" : `${environment}-`;
26
- return `https://${prefix2}amsservices.health.cloud/api/ams`;
25
+ const prefix = environment === "prod" ? "" : `${environment}-`;
26
+ return `https://${prefix}amsservices.health.cloud/api/ams`;
27
27
  }
28
- const prefix = environment === "prod" ? "" : `${environment}-`;
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) {
@@ -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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "docsDataContentDigest": "sha256:d1ab97111c0447932623d51f72872499e5c0f9910479bd2bbb09e273c28ef6a5",
2
+ "docsDataContentDigest": "sha256:2594a9f19a9d96f724822c71d6705dd6787f3df22ac0a88d42319db1a6abb013",
3
3
  "generatedFiles": [
4
4
  "authentication.md",
5
5
  "clients/AmsClient.md",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-sdk",
3
- "version": "3.13.0",
3
+ "version": "3.13.2",
4
4
  "description": "All-in-one HealthCloud SDK with typed platform APIs and secure connector clients.",
5
5
  "author": "Healthcheck Systems Inc",
6
6
  "license": "MIT",