purecloud-client-app-sdk
Advanced tools
Comparing version 2.6.2 to 2.6.3
@@ -201,2 +201,12 @@ /** | ||
/** | ||
* Returns the gcEnvironment (e.g. mypurecloud.com, mypurecloud.jp) if known; null otherwise. | ||
* This value will be available if a valid Genesys Cloud Environment is provided, inferred, or | ||
* defaulted from the config passed to this instance. | ||
* | ||
* @returns the valid Genesys Cloud environment; null if unknown. | ||
* | ||
* @since 2.6.3 | ||
*/ | ||
get gcEnvironment(): string | null; | ||
/** | ||
* Displays the version of the PureClound Client App SDK. | ||
@@ -203,0 +213,0 @@ * |
{ | ||
"name": "purecloud-client-app-sdk", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "Javascript API for integrating 3rd-party apps with Genesys Cloud", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -33,2 +33,5 @@ import ClientApp from './index'; | ||
}); | ||
it('should export gcEnvironment', () => { | ||
expect(new ClientApp().gcEnvironment).toBe(VALID_DEFAULT_PC_ENVIRONMENT); | ||
}); | ||
@@ -35,0 +38,0 @@ describe('pcEnvironmentQueryParam config', () => { |
@@ -271,2 +271,14 @@ /** | ||
get pcEnvironment() { | ||
return this.gcEnvironment; | ||
} | ||
/** | ||
* Returns the gcEnvironment (e.g. mypurecloud.com, mypurecloud.jp) if known; null otherwise. | ||
* This value will be available if a valid Genesys Cloud Environment is provided, inferred, or | ||
* defaulted from the config passed to this instance. | ||
* | ||
* @returns the valid Genesys Cloud environment; null if unknown. | ||
* | ||
* @since 2.6.3 | ||
*/ | ||
get gcEnvironment() { | ||
return (this._pcEnv ? this._pcEnv.pcEnvTld : null); | ||
@@ -273,0 +285,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
620837
10878