Skip to content

Commit 26cbec9

Browse files
author
PureCloud Jenkins
committed
23.1.0
1 parent e579045 commit 26cbec9

57 files changed

Lines changed: 1305 additions & 216 deletions

Some content is hidden

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ npm install purecloud-platform-client-v2
2525
Reference from the CDN:
2626

2727
~~~ html
28-
<!-- Replace `23.0.0` with the version you want to use. -->
29-
<script src="https://sdk-cdn.mypurecloud.com/javascript/23.0.0/purecloud-platform-client-v2.min.js"></script>
28+
<!-- Replace `23.1.0` with the version you want to use. -->
29+
<script src="https://sdk-cdn.mypurecloud.com/javascript/23.1.0/purecloud-platform-client-v2.min.js"></script>
3030
~~~
3131

3232
View the documentation on the [PureCloud Developer Center](https://developer.mypurecloud.com/api/rest/client-libraries/javascript/).
@@ -41,7 +41,7 @@ Reference the SDK in your HTML document. For convenience, all modules are bundle
4141

4242
~~~ html
4343
<!-- Include the full library -->
44-
<script src="https://sdk-cdn.mypurecloud.com/javascript/23.0.0/purecloud-platform-client-v2.min.js"></script>
44+
<script src="https://sdk-cdn.mypurecloud.com/javascript/23.1.0/purecloud-platform-client-v2.min.js"></script>
4545
~~~
4646

4747

build/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ npm install purecloud-platform-client-v2
2525
Reference from the CDN:
2626

2727
~~~ html
28-
<!-- Replace `23.0.0` with the version you want to use. -->
29-
<script src="https://sdk-cdn.mypurecloud.com/javascript/23.0.0/purecloud-platform-client-v2.min.js"></script>
28+
<!-- Replace `23.1.0` with the version you want to use. -->
29+
<script src="https://sdk-cdn.mypurecloud.com/javascript/23.1.0/purecloud-platform-client-v2.min.js"></script>
3030
~~~
3131

3232
View the documentation on the [PureCloud Developer Center](https://developer.mypurecloud.com/api/rest/client-libraries/javascript/).
@@ -41,7 +41,7 @@ Reference the SDK in your HTML document. For convenience, all modules are bundle
4141

4242
~~~ html
4343
<!-- Include the full library -->
44-
<script src="https://sdk-cdn.mypurecloud.com/javascript/23.0.0/purecloud-platform-client-v2.min.js"></script>
44+
<script src="https://sdk-cdn.mypurecloud.com/javascript/23.1.0/purecloud-platform-client-v2.min.js"></script>
4545
~~~
4646

4747

build/docs/ConversationsApi.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ All URIs are relative to *https://api.mypurecloud.com*
7777
[**postAnalyticsConversationDetailsProperties**](ConversationsApi.html#postAnalyticsConversationDetailsProperties) | **POST** /api/v2/analytics/conversations/{conversationId}/details/properties | Index conversation properties
7878
[**postAnalyticsConversationsAggregatesQuery**](ConversationsApi.html#postAnalyticsConversationsAggregatesQuery) | **POST** /api/v2/analytics/conversations/aggregates/query | Query for conversation aggregates
7979
[**postAnalyticsConversationsDetailsQuery**](ConversationsApi.html#postAnalyticsConversationsDetailsQuery) | **POST** /api/v2/analytics/conversations/details/query | Query for conversation details
80+
[**postConversationDisconnect**](ConversationsApi.html#postConversationDisconnect) | **POST** /api/v2/conversations/{conversationId}/disconnect | Performs a full conversation teardown. Issues disconnect requests for any connected media. Applies a system wrap-up code to any participants that are pending wrap-up. This is not intended to be the normal way of ending interactions but is available in the event of problems with the application to allow a resyncronization of state across all components. It is recommended that users submit a support case if they are relying on this endpoint systematically as there is likely something that needs investigation.
8081
[**postConversationParticipantCallbacks**](ConversationsApi.html#postConversationParticipantCallbacks) | **POST** /api/v2/conversations/{conversationId}/participants/{participantId}/callbacks | Create a new callback for the specified participant on the conversation.
8182
[**postConversationParticipantDigits**](ConversationsApi.html#postConversationParticipantDigits) | **POST** /api/v2/conversations/{conversationId}/participants/{participantId}/digits | Sends DTMF to the participant
8283
[**postConversationParticipantReplace**](ConversationsApi.html#postConversationParticipantReplace) | **POST** /api/v2/conversations/{conversationId}/participants/{participantId}/replace | Replace this participant with the specified user and/or address
@@ -3696,6 +3697,54 @@ apiInstance.postAnalyticsConversationsDetailsQuery(body)
36963697

36973698
**AnalyticsConversationQueryResponse**
36983699

3700+
<a name="postConversationDisconnect"></a>
3701+
3702+
# **&#39;String&#39;** postConversationDisconnect(conversationId)
3703+
3704+
POST /api/v2/conversations/{conversationId}/disconnect
3705+
3706+
Performs a full conversation teardown. Issues disconnect requests for any connected media. Applies a system wrap-up code to any participants that are pending wrap-up. This is not intended to be the normal way of ending interactions but is available in the event of problems with the application to allow a resyncronization of state across all components. It is recommended that users submit a support case if they are relying on this endpoint systematically as there is likely something that needs investigation.
3707+
3708+
3709+
3710+
### Example
3711+
3712+
~~~ javascript
3713+
// Browser
3714+
const platformClient = require('platformClient');
3715+
// Node
3716+
const platformClient = require('purecloud-platform-client-v2');
3717+
3718+
// Configure OAuth2 access token for authorization: PureCloud Auth
3719+
platformClient.ApiClient.instance.authentications['PureCloud Auth'].accessToken = 'YOUR ACCESS TOKEN';
3720+
3721+
var apiInstance = new platformClient.ConversationsApi();
3722+
3723+
var conversationId = "conversationId_example"; // String | conversation ID
3724+
3725+
apiInstance.postConversationDisconnect(conversationId)
3726+
.then(function(data) {
3727+
console.log(`postConversationDisconnect success! data: ${JSON.stringify(data, null, 2)}`);
3728+
})
3729+
.catch(function(err) {
3730+
console.log('There was a failure calling postConversationDisconnect');
3731+
console.error(err);
3732+
});
3733+
3734+
~~~
3735+
3736+
### Parameters
3737+
3738+
3739+
| Name | Type | Description | Notes |
3740+
| ------------- | ------------- | ------------- | ------------- |
3741+
**conversationId** | **String** | conversation ID | |
3742+
{: class="table table-striped"}
3743+
3744+
### Return type
3745+
3746+
**&#39;String&#39;**
3747+
36993748
<a name="postConversationParticipantCallbacks"></a>
37003749

37013750
# void postConversationParticipantCallbacks(conversationId, participantId, opts)

build/docs/RoutingApi.md

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ All URIs are relative to *https://api.mypurecloud.com*
1616
[**deleteRoutingSmsPhonenumber**](RoutingApi.html#deleteRoutingSmsPhonenumber) | **DELETE** /api/v2/routing/sms/phonenumbers/{addressId} | Delete a phone number provisioned for SMS.
1717
[**deleteRoutingUtilization**](RoutingApi.html#deleteRoutingUtilization) | **DELETE** /api/v2/routing/utilization | Delete utilization settings and revert to system defaults.
1818
[**deleteRoutingWrapupcode**](RoutingApi.html#deleteRoutingWrapupcode) | **DELETE** /api/v2/routing/wrapupcodes/{codeId} | Delete wrap-up code
19+
[**deleteUserRoutinglanguage**](RoutingApi.html#deleteUserRoutinglanguage) | **DELETE** /api/v2/users/{userId}/routinglanguages/{languageId} | Remove routing language from user
1920
[**deleteUserRoutingskill**](RoutingApi.html#deleteUserRoutingskill) | **DELETE** /api/v2/users/{userId}/routingskills/{skillId} | Remove routing skill from user
2021
[**getRoutingEmailDomain**](RoutingApi.html#getRoutingEmailDomain) | **GET** /api/v2/routing/email/domains/{domainId} | Get domain
2122
[**getRoutingEmailDomainRoute**](RoutingApi.html#getRoutingEmailDomainRoute) | **GET** /api/v2/routing/email/domains/{domainName}/routes/{routeId} | Get a route
@@ -39,9 +40,11 @@ All URIs are relative to *https://api.mypurecloud.com*
3940
[**getRoutingUtilization**](RoutingApi.html#getRoutingUtilization) | **GET** /api/v2/routing/utilization | Get the utilization settings.
4041
[**getRoutingWrapupcode**](RoutingApi.html#getRoutingWrapupcode) | **GET** /api/v2/routing/wrapupcodes/{codeId} | Get details about this wrap-up code.
4142
[**getRoutingWrapupcodes**](RoutingApi.html#getRoutingWrapupcodes) | **GET** /api/v2/routing/wrapupcodes | Get list of wrapup codes.
43+
[**getUserRoutinglanguages**](RoutingApi.html#getUserRoutinglanguages) | **GET** /api/v2/users/{userId}/routinglanguages | List routing language for user
4244
[**getUserRoutingskills**](RoutingApi.html#getUserRoutingskills) | **GET** /api/v2/users/{userId}/routingskills | List routing skills for user
4345
[**patchRoutingQueueUser**](RoutingApi.html#patchRoutingQueueUser) | **PATCH** /api/v2/routing/queues/{queueId}/users/{memberId} | Update the ring number of joined status for a User in a Queue
4446
[**patchRoutingQueueUsers**](RoutingApi.html#patchRoutingQueueUsers) | **PATCH** /api/v2/routing/queues/{queueId}/users | Join or unjoin a set of users for a queue
47+
[**patchUserRoutinglanguage**](RoutingApi.html#patchUserRoutinglanguage) | **PATCH** /api/v2/users/{userId}/routinglanguages/{languageId} | Update routing language proficiency or state.
4548
[**postAnalyticsQueuesObservationsQuery**](RoutingApi.html#postAnalyticsQueuesObservationsQuery) | **POST** /api/v2/analytics/queues/observations/query | Query for queue observations
4649
[**postRoutingEmailDomainRoutes**](RoutingApi.html#postRoutingEmailDomainRoutes) | **POST** /api/v2/routing/email/domains/{domainName}/routes | Create a route
4750
[**postRoutingEmailDomains**](RoutingApi.html#postRoutingEmailDomains) | **POST** /api/v2/routing/email/domains | Create a domain
@@ -53,6 +56,7 @@ All URIs are relative to *https://api.mypurecloud.com*
5356
[**postRoutingSmsAddresses**](RoutingApi.html#postRoutingSmsAddresses) | **POST** /api/v2/routing/sms/addresses | Provision an Address for SMS
5457
[**postRoutingSmsPhonenumbers**](RoutingApi.html#postRoutingSmsPhonenumbers) | **POST** /api/v2/routing/sms/phonenumbers | Provision a phone number for SMS
5558
[**postRoutingWrapupcodes**](RoutingApi.html#postRoutingWrapupcodes) | **POST** /api/v2/routing/wrapupcodes | Create a wrap-up code
59+
[**postUserRoutinglanguages**](RoutingApi.html#postUserRoutinglanguages) | **POST** /api/v2/users/{userId}/routinglanguages | Add routing language to user
5660
[**postUserRoutingskills**](RoutingApi.html#postUserRoutingskills) | **POST** /api/v2/users/{userId}/routingskills | Add routing skill to user
5761
[**putRoutingEmailDomainRoute**](RoutingApi.html#putRoutingEmailDomainRoute) | **PUT** /api/v2/routing/email/domains/{domainName}/routes/{routeId} | Update a route
5862
[**putRoutingMessageRecipient**](RoutingApi.html#putRoutingMessageRecipient) | **PUT** /api/v2/routing/message/recipients/{recipientId} | Update a recipient
@@ -502,6 +506,57 @@ apiInstance.deleteRoutingWrapupcode(codeId)
502506

503507
void (no response body)
504508

509+
<a name="deleteUserRoutinglanguage"></a>
510+
511+
# void deleteUserRoutinglanguage(userId, languageId)
512+
513+
DELETE /api/v2/users/{userId}/routinglanguages/{languageId}
514+
515+
Remove routing language from user
516+
517+
518+
519+
### Example
520+
521+
~~~ javascript
522+
// Browser
523+
const platformClient = require('platformClient');
524+
// Node
525+
const platformClient = require('purecloud-platform-client-v2');
526+
527+
// Configure OAuth2 access token for authorization: PureCloud Auth
528+
platformClient.ApiClient.instance.authentications['PureCloud Auth'].accessToken = 'YOUR ACCESS TOKEN';
529+
530+
var apiInstance = new platformClient.RoutingApi();
531+
532+
var userId = "userId_example"; // String | User ID
533+
534+
var languageId = "languageId_example"; // String | languageId
535+
536+
apiInstance.deleteUserRoutinglanguage(userId, languageId)
537+
.then(function() {
538+
console.log('deleteUserRoutinglanguage returned successfully.');
539+
})
540+
.catch(function(err) {
541+
console.log('There was a failure calling deleteUserRoutinglanguage');
542+
console.error(err);
543+
});
544+
545+
~~~
546+
547+
### Parameters
548+
549+
550+
| Name | Type | Description | Notes |
551+
| ------------- | ------------- | ------------- | ------------- |
552+
**userId** | **String** | User ID | |
553+
**languageId** | **String** | languageId | |
554+
{: class="table table-striped"}
555+
556+
### Return type
557+
558+
void (no response body)
559+
505560
<a name="deleteUserRoutingskill"></a>
506561

507562
# void deleteUserRoutingskill(userId, skillId)
@@ -1688,6 +1743,62 @@ apiInstance.getRoutingWrapupcodes(opts)
16881743

16891744
**WrapupCodeEntityListing**
16901745

1746+
<a name="getUserRoutinglanguages"></a>
1747+
1748+
# UserLanguageEntityListing getUserRoutinglanguages(userId, opts)
1749+
1750+
GET /api/v2/users/{userId}/routinglanguages
1751+
1752+
List routing language for user
1753+
1754+
1755+
1756+
### Example
1757+
1758+
~~~ javascript
1759+
// Browser
1760+
const platformClient = require('platformClient');
1761+
// Node
1762+
const platformClient = require('purecloud-platform-client-v2');
1763+
1764+
// Configure OAuth2 access token for authorization: PureCloud Auth
1765+
platformClient.ApiClient.instance.authentications['PureCloud Auth'].accessToken = 'YOUR ACCESS TOKEN';
1766+
1767+
var apiInstance = new platformClient.RoutingApi();
1768+
1769+
var userId = "userId_example"; // String | User ID
1770+
1771+
var opts = {
1772+
'pageSize': 25, // Number | Page size
1773+
'pageNumber': 1, // Number | Page number
1774+
'sortOrder': "ASC" // String | Ascending or descending sort order
1775+
};
1776+
apiInstance.getUserRoutinglanguages(userId, opts)
1777+
.then(function(data) {
1778+
console.log(`getUserRoutinglanguages success! data: ${JSON.stringify(data, null, 2)}`);
1779+
})
1780+
.catch(function(err) {
1781+
console.log('There was a failure calling getUserRoutinglanguages');
1782+
console.error(err);
1783+
});
1784+
1785+
~~~
1786+
1787+
### Parameters
1788+
1789+
1790+
| Name | Type | Description | Notes |
1791+
| ------------- | ------------- | ------------- | ------------- |
1792+
**userId** | **String** | User ID | |
1793+
**pageSize** | **Number** | Page size | [optional] [default to 25] |
1794+
**pageNumber** | **Number** | Page number | [optional] [default to 1] |
1795+
**sortOrder** | **String** | Ascending or descending sort order | [optional] [default to ASC]<br />**Values**: ascending, descending |
1796+
{: class="table table-striped"}
1797+
1798+
### Return type
1799+
1800+
**UserLanguageEntityListing**
1801+
16911802
<a name="getUserRoutingskills"></a>
16921803

16931804
# UserSkillEntityListing getUserRoutingskills(userId, opts)
@@ -1849,6 +1960,60 @@ apiInstance.patchRoutingQueueUsers(queueId, body)
18491960

18501961
**QueueMemberEntityListing**
18511962

1963+
<a name="patchUserRoutinglanguage"></a>
1964+
1965+
# UserRoutingLanguage patchUserRoutinglanguage(userId, languageId, body)
1966+
1967+
PATCH /api/v2/users/{userId}/routinglanguages/{languageId}
1968+
1969+
Update routing language proficiency or state.
1970+
1971+
1972+
1973+
### Example
1974+
1975+
~~~ javascript
1976+
// Browser
1977+
const platformClient = require('platformClient');
1978+
// Node
1979+
const platformClient = require('purecloud-platform-client-v2');
1980+
1981+
// Configure OAuth2 access token for authorization: PureCloud Auth
1982+
platformClient.ApiClient.instance.authentications['PureCloud Auth'].accessToken = 'YOUR ACCESS TOKEN';
1983+
1984+
var apiInstance = new platformClient.RoutingApi();
1985+
1986+
var userId = "userId_example"; // String | User ID
1987+
1988+
var languageId = "languageId_example"; // String | languageId
1989+
1990+
var body = {}; // Object | Language
1991+
1992+
apiInstance.patchUserRoutinglanguage(userId, languageId, body)
1993+
.then(function(data) {
1994+
console.log(`patchUserRoutinglanguage success! data: ${JSON.stringify(data, null, 2)}`);
1995+
})
1996+
.catch(function(err) {
1997+
console.log('There was a failure calling patchUserRoutinglanguage');
1998+
console.error(err);
1999+
});
2000+
2001+
~~~
2002+
2003+
### Parameters
2004+
2005+
2006+
| Name | Type | Description | Notes |
2007+
| ------------- | ------------- | ------------- | ------------- |
2008+
**userId** | **String** | User ID | |
2009+
**languageId** | **String** | languageId | |
2010+
**body** | **Object** | Language | |
2011+
{: class="table table-striped"}
2012+
2013+
### Return type
2014+
2015+
**UserRoutingLanguage**
2016+
18522017
<a name="postAnalyticsQueuesObservationsQuery"></a>
18532018

18542019
# QualifierMappingObservationQueryResponse postAnalyticsQueuesObservationsQuery(body)
@@ -2390,6 +2555,57 @@ apiInstance.postRoutingWrapupcodes(body)
23902555

23912556
**WrapupCode**
23922557

2558+
<a name="postUserRoutinglanguages"></a>
2559+
2560+
# UserRoutingLanguage postUserRoutinglanguages(userId, body)
2561+
2562+
POST /api/v2/users/{userId}/routinglanguages
2563+
2564+
Add routing language to user
2565+
2566+
2567+
2568+
### Example
2569+
2570+
~~~ javascript
2571+
// Browser
2572+
const platformClient = require('platformClient');
2573+
// Node
2574+
const platformClient = require('purecloud-platform-client-v2');
2575+
2576+
// Configure OAuth2 access token for authorization: PureCloud Auth
2577+
platformClient.ApiClient.instance.authentications['PureCloud Auth'].accessToken = 'YOUR ACCESS TOKEN';
2578+
2579+
var apiInstance = new platformClient.RoutingApi();
2580+
2581+
var userId = "userId_example"; // String | User ID
2582+
2583+
var body = {}; // Object | Language
2584+
2585+
apiInstance.postUserRoutinglanguages(userId, body)
2586+
.then(function(data) {
2587+
console.log(`postUserRoutinglanguages success! data: ${JSON.stringify(data, null, 2)}`);
2588+
})
2589+
.catch(function(err) {
2590+
console.log('There was a failure calling postUserRoutinglanguages');
2591+
console.error(err);
2592+
});
2593+
2594+
~~~
2595+
2596+
### Parameters
2597+
2598+
2599+
| Name | Type | Description | Notes |
2600+
| ------------- | ------------- | ------------- | ------------- |
2601+
**userId** | **String** | User ID | |
2602+
**body** | **Object** | Language | |
2603+
{: class="table table-striped"}
2604+
2605+
### Return type
2606+
2607+
**UserRoutingLanguage**
2608+
23932609
<a name="postUserRoutingskills"></a>
23942610

23952611
# UserRoutingSkill postUserRoutingskills(userId, body)

0 commit comments

Comments
 (0)