@healthcloudai/hc-ams 3.6.5 → 3.6.6
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/README.md +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -228,7 +228,7 @@ notifications, and activity.
|
|
|
228
228
|
|
|
229
229
|
| Option | Description |
|
|
230
230
|
| --- | --- |
|
|
231
|
-
| `environment` | `"dev"` \| `"uat"` \| `"prod"`. DEV uses AWS `https://dev-ams-services.health.cloud
|
|
231
|
+
| `environment` | `"dev"` \| `"uat"` \| `"prod"`. DEV uses AWS `https://dev-ams-services.health.cloud` and PROD uses AWS `https://ams-services.health.cloud`; UAT retains `https://uat-amsservices.health.cloud`. |
|
|
232
232
|
| `tenantId` | Optional default tenant ID, used by `connectAgentChat` when no `tenantId` is passed per-call. |
|
|
233
233
|
| `accessToken` | Optional Tenant Admin bearer token for authenticated REST methods. |
|
|
234
234
|
| `baseUrlOverride` | Complete AMS API base including `/api/ams` (or a custom API mount). Used by every public/admin REST client. Its origin also selects the default WebSocket origin. |
|
package/dist/index.cjs
CHANGED
|
@@ -51,8 +51,8 @@ var DEFAULT_TIMEOUT_MS = 3e4;
|
|
|
51
51
|
function resolveAmsOrigin(environment) {
|
|
52
52
|
assertEnvironment(environment);
|
|
53
53
|
if (environment === "dev") return "https://dev-ams-services.health.cloud";
|
|
54
|
-
|
|
55
|
-
return
|
|
54
|
+
if (environment === "prod") return "https://ams-services.health.cloud";
|
|
55
|
+
return "https://uat-amsservices.health.cloud";
|
|
56
56
|
}
|
|
57
57
|
function resolveBaseUrl(environment) {
|
|
58
58
|
return `${resolveAmsOrigin(environment)}/api/ams`;
|
package/dist/index.d.cts
CHANGED
|
@@ -24,8 +24,9 @@ interface SDKRuntimeState {
|
|
|
24
24
|
}
|
|
25
25
|
declare const DEFAULT_TIMEOUT_MS = 30000;
|
|
26
26
|
/**
|
|
27
|
-
* DEV
|
|
28
|
-
*
|
|
27
|
+
* DEV and PROD use the AWS AMS deployments. UAT keeps its existing hostname
|
|
28
|
+
* (no AWS UAT AMS host exists yet). All three AMS endpoint families (REST,
|
|
29
|
+
* auth, WSS) use the same environment origin.
|
|
29
30
|
*/
|
|
30
31
|
declare function resolveAmsOrigin(environment: Environment): string;
|
|
31
32
|
declare function resolveBaseUrl(environment: Environment): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -24,8 +24,9 @@ interface SDKRuntimeState {
|
|
|
24
24
|
}
|
|
25
25
|
declare const DEFAULT_TIMEOUT_MS = 30000;
|
|
26
26
|
/**
|
|
27
|
-
* DEV
|
|
28
|
-
*
|
|
27
|
+
* DEV and PROD use the AWS AMS deployments. UAT keeps its existing hostname
|
|
28
|
+
* (no AWS UAT AMS host exists yet). All three AMS endpoint families (REST,
|
|
29
|
+
* auth, WSS) use the same environment origin.
|
|
29
30
|
*/
|
|
30
31
|
declare function resolveAmsOrigin(environment: Environment): string;
|
|
31
32
|
declare function resolveBaseUrl(environment: Environment): string;
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,8 @@ var DEFAULT_TIMEOUT_MS = 3e4;
|
|
|
4
4
|
function resolveAmsOrigin(environment) {
|
|
5
5
|
assertEnvironment(environment);
|
|
6
6
|
if (environment === "dev") return "https://dev-ams-services.health.cloud";
|
|
7
|
-
|
|
8
|
-
return
|
|
7
|
+
if (environment === "prod") return "https://ams-services.health.cloud";
|
|
8
|
+
return "https://uat-amsservices.health.cloud";
|
|
9
9
|
}
|
|
10
10
|
function resolveBaseUrl(environment) {
|
|
11
11
|
return `${resolveAmsOrigin(environment)}/api/ams`;
|