Skip to content

Commit 01cdf71

Browse files
author
PureCloud Jenkins
committed
212.1.0
1 parent 39ec807 commit 01cdf71

File tree

180 files changed

+5397
-7802
lines changed

Some content is hidden

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

180 files changed

+5397
-7802
lines changed

README.md

Lines changed: 18 additions & 4 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@212.0.0
9+
Documentation version purecloud-platform-client-v2@212.1.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/212.0.0/purecloud-platform-client-v2.min.js"></script>
32+
<script src="https://sdk-cdn.mypurecloud.com/javascript/212.1.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/212.0.0/purecloud-platform-client-v2.min.js'], (platformClient) => {
49+
requirejs(['https://sdk-cdn.mypurecloud.com/javascript/amd/212.1.0/purecloud-platform-client-v2.min.js'], (platformClient) => {
5050
console.log(platformClient);
5151
});
5252
</script>
@@ -562,7 +562,7 @@ client.setProxyAgent(agent)
562562

563563
### Using MTLS authentication via a Gateway
564564

565-
If there is MTLS authentication that need to be set for a gateway server (i.e. if the Genesys Cloud requests must be sent through an intermediate API gateway or equivalent, with MTLS enabled), you can use setMTLSCertificates to set the httpsAgent.
565+
With Node.js applications, if there is MTLS authentication that need to be set for a gateway server (i.e. if the Genesys Cloud requests must be sent through an intermediate API gateway or equivalent, with MTLS enabled), you can use setMTLSCertificates to set the httpsAgent.
566566

567567
An example using `setMTLSCertificates` to setup MTLS for gateway is shown below
568568

@@ -573,13 +573,27 @@ client.setGateway({host: 'mygateway.mydomain.myextension', protocol: 'https', po
573573
client.setMTLSCertificates('mtls-test/localhost.cert.pem', 'mtls-test/localhost.key.pem', 'mtls-test/ca-chain.cert.pem')
574574
```
575575

576+
If you have content of the private keys and cert information instead of the the filepaths , you can directly set this information using setMTLSContents
577+
578+
An example using `setMTLSContents` to setup MTLS for gateway is shown below
579+
580+
```javascript
581+
const client = platformClient.ApiClient.instance;
582+
client.setGateway({host: 'mygateway.mydomain.myextension', protocol: 'https', port: 1443, path_params_login: 'myadditionalpathforlogin', path_params_api: 'myadditionalpathforapi'});
583+
584+
client.setMTLSContents(cert.pem, key, caChainCert) // cert.pem, key, caChainCert are contents of the respective keys here. If you have a passphrase encoded data, please decode it and then pass the information to this method.
585+
```
586+
587+
576588
Please do note, these are used for setting a new proxy agent for the gateway server configuration.
577589

578590
If you want a custom proxy agent with MTLS , you can still use setProxyAgent method on client instance and inject your own httpsAgent.
579591
The responsibility of setting the agent options inside the custom proxy agent will be with the caller.
580592

581593
Use Either setMTLSCertificates, or setProxyAgent or setHttpClient based on your use case, as the properties will be overridden based on what is invoked last.
582594

595+
Note that with javascript's Browser applications, MTLS is to be managed and supported by the Browser itself (Chrome, Firefox, ...), using standard Certificates stores.
596+
583597
### Inject custom Http Client
584598

585599
By default the SDK will use axios as default http client.

build/.openapi-generator/FILES

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ docs/deleteSpeechandtextanalyticsTopic-example.txt
392392
docs/deleteStationAssociateduser-example.txt
393393
docs/deleteTaskmanagementWorkbin-example.txt
394394
docs/deleteTaskmanagementWorkitem-example.txt
395+
docs/deleteTaskmanagementWorkitemsBulkAddJob-example.txt
396+
docs/deleteTaskmanagementWorkitemsBulkTerminateJob-example.txt
395397
docs/deleteTaskmanagementWorkitemsSchema-example.txt
396398
docs/deleteTaskmanagementWorktype-example.txt
397399
docs/deleteTaskmanagementWorktypeFlowsDatebasedRule-example.txt
@@ -838,6 +840,7 @@ docs/getGamificationInsightsDetails-example.txt
838840
docs/getGamificationInsightsGroupsTrends-example.txt
839841
docs/getGamificationInsightsGroupsTrendsAll-example.txt
840842
docs/getGamificationInsightsMembers-example.txt
843+
docs/getGamificationInsightsRankings-example.txt
841844
docs/getGamificationInsightsTrends-example.txt
842845
docs/getGamificationInsightsUserDetails-example.txt
843846
docs/getGamificationInsightsUserTrends-example.txt
@@ -1440,6 +1443,11 @@ docs/getTaskmanagementWorkitemUserWrapups-example.txt
14401443
docs/getTaskmanagementWorkitemVersion-example.txt
14411444
docs/getTaskmanagementWorkitemVersions-example.txt
14421445
docs/getTaskmanagementWorkitemWrapups-example.txt
1446+
docs/getTaskmanagementWorkitemsBulkAddJob-example.txt
1447+
docs/getTaskmanagementWorkitemsBulkAddJobResults-example.txt
1448+
docs/getTaskmanagementWorkitemsBulkJobsUsersMe-example.txt
1449+
docs/getTaskmanagementWorkitemsBulkTerminateJob-example.txt
1450+
docs/getTaskmanagementWorkitemsBulkTerminateJobResults-example.txt
14431451
docs/getTaskmanagementWorkitemsQueryJob-example.txt
14441452
docs/getTaskmanagementWorkitemsQueryJobResults-example.txt
14451453
docs/getTaskmanagementWorkitemsSchema-example.txt
@@ -1656,6 +1664,9 @@ docs/getWorkforcemanagementBusinessunitAlternativeshiftsSettings-example.txt
16561664
docs/getWorkforcemanagementBusinessunitAlternativeshiftsTrade-example.txt
16571665
docs/getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob-example.txt
16581666
docs/getWorkforcemanagementBusinessunitIntradayPlanninggroups-example.txt
1667+
docs/getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession-example.txt
1668+
docs/getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId-example.txt
1669+
docs/getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId-example.txt
16591670
docs/getWorkforcemanagementBusinessunitManagementunits-example.txt
16601671
docs/getWorkforcemanagementBusinessunitPlanninggroup-example.txt
16611672
docs/getWorkforcemanagementBusinessunitPlanninggroups-example.txt
@@ -1875,6 +1886,8 @@ docs/patchTaskmanagementWorkitem-example.txt
18751886
docs/patchTaskmanagementWorkitemAssignment-example.txt
18761887
docs/patchTaskmanagementWorkitemUserWrapups-example.txt
18771888
docs/patchTaskmanagementWorkitemUsersMeWrapups-example.txt
1889+
docs/patchTaskmanagementWorkitemsBulkAddJob-example.txt
1890+
docs/patchTaskmanagementWorkitemsBulkTerminateJob-example.txt
18781891
docs/patchTaskmanagementWorktype-example.txt
18791892
docs/patchTaskmanagementWorktypeFlowsDatebasedRule-example.txt
18801893
docs/patchTaskmanagementWorktypeFlowsOnattributechangeRule-example.txt
@@ -1990,6 +2003,7 @@ docs/postAnalyticsReportingExports-example.txt
19902003
docs/postAnalyticsReportingSettingsDashboardsBulkRemove-example.txt
19912004
docs/postAnalyticsReportingSettingsDashboardsQuery-example.txt
19922005
docs/postAnalyticsResolutionsAggregatesJobs-example.txt
2006+
docs/postAnalyticsResolutionsAggregatesQuery-example.txt
19932007
docs/postAnalyticsRoutingActivityQuery-example.txt
19942008
docs/postAnalyticsRoutingActivityQuery-example.txt
19952009
docs/postAnalyticsSummariesAggregatesJobs-example.txt
@@ -2486,6 +2500,8 @@ docs/postTaskmanagementWorkitemAcdCancel-example.txt
24862500
docs/postTaskmanagementWorkitemDisconnect-example.txt
24872501
docs/postTaskmanagementWorkitemTerminate-example.txt
24882502
docs/postTaskmanagementWorkitems-example.txt
2503+
docs/postTaskmanagementWorkitemsBulkAddJobs-example.txt
2504+
docs/postTaskmanagementWorkitemsBulkTerminateJobs-example.txt
24892505
docs/postTaskmanagementWorkitemsQuery-example.txt
24902506
docs/postTaskmanagementWorkitemsQueryJobs-example.txt
24912507
docs/postTaskmanagementWorkitemsSchemas-example.txt

0 commit comments

Comments
 (0)