Skip to content

Commit 0d52429

Browse files
author
PureCloud Jenkins
committed
207.0.0
1 parent 9661500 commit 0d52429

File tree

178 files changed

+26448
-2194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+26448
-2194
lines changed

README.md

Lines changed: 100 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A JavaScript library to interface with the Genesys Cloud Platform API. View the
66
[![npm](https://img.shields.io/npm/v/purecloud-platform-client-v2.svg)](https://www.npmjs.com/package/purecloud-platform-client-v2)
77
[![Release Notes Badge](https://developer-content.genesys.cloud/images/sdk-release-notes.png)](https://github.com/MyPureCloud/platform-client-sdk-javascript/blob/master/releaseNotes.md)
88

9-
Documentation version purecloud-platform-client-v2@206.0.0
9+
Documentation version purecloud-platform-client-v2@207.0.0
1010

1111
## Preview APIs
1212

@@ -29,7 +29,7 @@ For direct use in a browser script:
2929

3030
```html
3131
<!-- Include the CJS SDK -->
32-
<script src="https://sdk-cdn.mypurecloud.com/javascript/206.0.0/purecloud-platform-client-v2.min.js"></script>
32+
<script src="https://sdk-cdn.mypurecloud.com/javascript/207.0.0/purecloud-platform-client-v2.min.js"></script>
3333

3434
<script type="text/javascript">
3535
// Obtain a reference to the platformClient object
@@ -46,7 +46,7 @@ For direct use in a browser script:
4646

4747
<script type="text/javascript">
4848
// Obtain a reference to the platformClient object
49-
requirejs(['https://sdk-cdn.mypurecloud.com/javascript/amd/206.0.0/purecloud-platform-client-v2.min.js'], (platformClient) => {
49+
requirejs(['https://sdk-cdn.mypurecloud.com/javascript/amd/207.0.0/purecloud-platform-client-v2.min.js'], (platformClient) => {
5050
console.log(platformClient);
5151
});
5252
</script>
@@ -346,6 +346,79 @@ JSON:
346346
}
347347
```
348348

349+
The Genesys Cloud Login and API URL path can be overridden if necessary (i.e. if the Genesys Cloud requests must be sent through to an intermediate API gateway or equivalent).
350+
351+
This can be achieved defining a "gateway" configuration, in the INI or the JSON configuration file.
352+
353+
* "host" is the address of your gateway.
354+
* "protocol" is not mandatory. It will default to "https" if the parameter is not defined or empty.
355+
* "port" is not mandatory. This parameter can be defined if a non default port is used and needs to be specified in the url (value must be greater or equal to 0).
356+
* "path_params_login" and "path_params_api" are not mandatory. They will be appended to the gateway url path if these parameters are defined and non empty (for Login requests and for API requests).
357+
* "username" and "password" are not used at this stage. This is for a possible future use.
358+
359+
With the configuration below, this would result in:
360+
361+
* Login requests to: "https://mygateway.mydomain.myextension:1443/myadditionalpathforlogin" (e.g. "https://mygateway.mydomain.myextension:1443/myadditionalpathforlogin/oauth/token")
362+
* API requests to: "https://mygateway.mydomain.myextension:1443/myadditionalpathforapi" (e.g. "https://mygateway.mydomain.myextension:1443/myadditionalpathforlogin/api/v2/users/me")
363+
364+
INI:
365+
366+
```ini
367+
[logging]
368+
log_level = trace
369+
log_format = text
370+
log_to_console = false
371+
log_file_path = /var/log/javascriptsdk.log
372+
log_response_body = false
373+
log_request_body = false
374+
[reauthentication]
375+
refresh_access_token = true
376+
refresh_token_wait_max = 10
377+
[general]
378+
live_reload_config = true
379+
host = https://api.mypurecloud.com
380+
[gateway]
381+
host = mygateway.mydomain.myextension
382+
protocol = https
383+
port = 1443
384+
path_params_login = myadditionalpathforlogin
385+
path_params_api = myadditionalpathforapi
386+
username = username
387+
password = password
388+
```
389+
390+
JSON:
391+
392+
```json
393+
{
394+
"logging": {
395+
"log_level": "trace",
396+
"log_format": "text",
397+
"log_to_console": false,
398+
"log_file_path": "/var/log/javascriptsdk.log",
399+
"log_response_body": false,
400+
"log_request_body": false
401+
},
402+
"reauthentication": {
403+
"refresh_access_token": true,
404+
"refresh_token_wait_max": 10
405+
},
406+
"general": {
407+
"live_reload_config": true,
408+
"host": "https://api.mypurecloud.com"
409+
},
410+
"gateway": {
411+
"host": "mygateway.mydomain.myextension",
412+
"protocol": "https",
413+
"port": 1443,
414+
"path_params_login": "myadditionalpathforlogin",
415+
"path_params_api": "myadditionalpathforapi",
416+
"username": "username",
417+
"password": "password"
418+
}
419+
}
420+
```
421+
349422
## Environments
350423

351424
If connecting to a Genesys Cloud environment other than mypurecloud.com (e.g. mypurecloud.ie), set the environment on the `ApiClient` instance with the PureCloudRegionHosts object.
@@ -355,6 +428,30 @@ const client = platformClient.ApiClient.instance;
355428
client.setEnvironment(platformClient.PureCloudRegionHosts.eu_west_1);
356429
```
357430

431+
### Setting an intermediate Gateway
432+
433+
The Genesys Cloud Login and API URL path can be overridden if necessary (i.e. if the Genesys Cloud requests must be sent through to an intermediate API gateway or equivalent).
434+
435+
This can be achieved setting the gateway configuration on the `ApiClient` instance.
436+
437+
```javascript
438+
const client = platformClient.ApiClient.instance;
439+
client.setGateway({host: 'mygateway.mydomain.myextension', protocol: 'https', port: 1443, path_params_login: 'myadditionalpathforlogin', path_params_api: 'myadditionalpathforapi'});
440+
441+
// If you need, you can later remove the Gateway Configuration and fallback to the Enviroment setting using: client.setGateway();
442+
```
443+
444+
* "host" is the address of your gateway.
445+
* "protocol" is not mandatory. It will default to "https" if the parameter is not defined or empty.
446+
* "port" is not mandatory. This parameter can be defined if a non default port is used and needs to be specified in the url (value must be greater or equal to 0).
447+
* "path_params_login" and "path_params_api" are not mandatory. They will be appended to the gateway url path if these parameters are defined and non empty (for Login requests and for API requests).
448+
* "username" and "password" are not used at this stage. This is for a possible future use.
449+
450+
With the configuration below, this would result in:
451+
452+
* Login requests to: "https://mygateway.mydomain.myextension:1443/myadditionalpathforlogin" (e.g. "https://mygateway.mydomain.myextension:1443/myadditionalpathforlogin/oauth/token")
453+
* API requests to: "https://mygateway.mydomain.myextension:1443/myadditionalpathforapi" (e.g. "https://mygateway.mydomain.myextension:1443/myadditionalpathforlogin/api/v2/users/me")
454+
358455

359456
## Access Token persistence
360457

build/.openapi-generator/FILES

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ docs/deleteExternalcontactsContact-example.txt
218218
docs/deleteExternalcontactsContactNote-example.txt
219219
docs/deleteExternalcontactsContactsSchema-example.txt
220220
docs/deleteExternalcontactsExternalsource-example.txt
221+
docs/deleteExternalcontactsImportCsvSetting-example.txt
221222
docs/deleteExternalcontactsOrganization-example.txt
222223
docs/deleteExternalcontactsOrganizationNote-example.txt
223224
docs/deleteExternalcontactsOrganizationTrustor-example.txt
@@ -747,6 +748,10 @@ docs/getExternalcontactsContactsSchemaVersions-example.txt
747748
docs/getExternalcontactsContactsSchemas-example.txt
748749
docs/getExternalcontactsExternalsource-example.txt
749750
docs/getExternalcontactsExternalsources-example.txt
751+
docs/getExternalcontactsImportCsvSetting-example.txt
752+
docs/getExternalcontactsImportCsvSettings-example.txt
753+
docs/getExternalcontactsImportCsvUploadDetails-example.txt
754+
docs/getExternalcontactsImportCsvUploadPreview-example.txt
750755
docs/getExternalcontactsOrganization-example.txt
751756
docs/getExternalcontactsOrganizationContacts-example.txt
752757
docs/getExternalcontactsOrganizationNote-example.txt
@@ -1110,6 +1115,7 @@ docs/getOrgauthorizationTrusteeUser-example.txt
11101115
docs/getOrgauthorizationTrusteeUserRoles-example.txt
11111116
docs/getOrgauthorizationTrusteeUsers-example.txt
11121117
docs/getOrgauthorizationTrustees-example.txt
1118+
docs/getOrgauthorizationTrusteesCare-example.txt
11131119
docs/getOrgauthorizationTrusteesDefault-example.txt
11141120
docs/getOrgauthorizationTrustor-example.txt
11151121
docs/getOrgauthorizationTrustorCloneduser-example.txt
@@ -1540,6 +1546,7 @@ docs/getUserrecordingsSummary-example.txt
15401546
docs/getUsers-example.txt
15411547
docs/getUsersAgentuiAgentsAutoanswerAgentIdSettings-example.txt
15421548
docs/getUsersAgentuiAgentsAutoanswerAgentIdSettings-example.txt
1549+
docs/getUsersChatsMe-example.txt
15431550
docs/getUsersDevelopmentActivities-example.txt
15441551
docs/getUsersDevelopmentActivitiesMe-example.txt
15451552
docs/getUsersDevelopmentActivity-example.txt
@@ -1562,6 +1569,8 @@ docs/getVoicemailPolicy-example.txt
15621569
docs/getVoicemailQueueMessages-example.txt
15631570
docs/getVoicemailSearch-example.txt
15641571
docs/getVoicemailSearch-example.txt
1572+
docs/getVoicemailUserMailbox-example.txt
1573+
docs/getVoicemailUserMessages-example.txt
15651574
docs/getVoicemailUserpolicy-example.txt
15661575
docs/getWebchatDeployment-example.txt
15671576
docs/getWebchatDeployments-example.txt
@@ -2127,6 +2136,9 @@ docs/postExternalcontactsContacts-example.txt
21272136
docs/postExternalcontactsContactsSchemas-example.txt
21282137
docs/postExternalcontactsExternalsources-example.txt
21292138
docs/postExternalcontactsIdentifierlookup-example.txt
2139+
docs/postExternalcontactsImportCsvJobs-example.txt
2140+
docs/postExternalcontactsImportCsvSettings-example.txt
2141+
docs/postExternalcontactsImportCsvUploads-example.txt
21302142
docs/postExternalcontactsMergeContacts-example.txt
21312143
docs/postExternalcontactsOrganizationNotes-example.txt
21322144
docs/postExternalcontactsOrganizations-example.txt
@@ -2291,13 +2303,16 @@ docs/postOrgauthorizationTrusteeGroups-example.txt
22912303
docs/postOrgauthorizationTrusteeUsers-example.txt
22922304
docs/postOrgauthorizationTrustees-example.txt
22932305
docs/postOrgauthorizationTrusteesAudits-example.txt
2306+
docs/postOrgauthorizationTrusteesCare-example.txt
22942307
docs/postOrgauthorizationTrusteesDefault-example.txt
22952308
docs/postOrgauthorizationTrustorAudits-example.txt
22962309
docs/postOutboundAttemptlimits-example.txt
22972310
docs/postOutboundCallabletimesets-example.txt
22982311
docs/postOutboundCallanalysisresponsesets-example.txt
22992312
docs/postOutboundCampaignAgentownedmappingpreview-example.txt
23002313
docs/postOutboundCampaignCallbackSchedule-example.txt
2314+
docs/postOutboundCampaignStart-example.txt
2315+
docs/postOutboundCampaignStop-example.txt
23012316
docs/postOutboundCampaignrules-example.txt
23022317
docs/postOutboundCampaigns-example.txt
23032318
docs/postOutboundCampaignsProgress-example.txt
@@ -2324,6 +2339,8 @@ docs/postOutboundDnclists-example.txt
23242339
docs/postOutboundFilespecificationtemplates-example.txt
23252340
docs/postOutboundImporttemplates-example.txt
23262341
docs/postOutboundImporttemplatesBulkAdd-example.txt
2342+
docs/postOutboundMessagingcampaignStart-example.txt
2343+
docs/postOutboundMessagingcampaignStop-example.txt
23272344
docs/postOutboundMessagingcampaigns-example.txt
23282345
docs/postOutboundMessagingcampaignsProgress-example.txt
23292346
docs/postOutboundRulesets-example.txt
@@ -2626,6 +2643,7 @@ docs/putExternalcontactsContactNote-example.txt
26262643
docs/putExternalcontactsContactsSchema-example.txt
26272644
docs/putExternalcontactsConversation-example.txt
26282645
docs/putExternalcontactsExternalsource-example.txt
2646+
docs/putExternalcontactsImportCsvSetting-example.txt
26292647
docs/putExternalcontactsOrganization-example.txt
26302648
docs/putExternalcontactsOrganizationNote-example.txt
26312649
docs/putExternalcontactsOrganizationTrustorTrustorId-example.txt

0 commit comments

Comments
 (0)