purecloud-platform-client-v2 130.0.0 → 132.0.0
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 +2 -8
- package/dist/node/purecloud-platform-client-v2.js +522 -103
- package/dist/web-amd/purecloud-platform-client-v2.js +523 -104
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +528 -109
- package/dist/web-cjs/purecloud-platform-client-v2.js +4175 -964
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +315 -45
- package/package.json +9 -9
- package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +46 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +177 -2
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +7 -3
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +156 -0
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +7 -3
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +52 -2
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +8 -5
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -21
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/index.js +7 -1
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import ApiClient from '../ApiClient.js';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class MessagingApi {
|
|
5
|
+
/**
|
|
6
|
+
* Messaging service.
|
|
7
|
+
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
8
|
+
* @version 132.0.0
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Constructs a new MessagingApi.
|
|
13
|
+
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
14
|
+
* @class
|
|
15
|
+
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
16
|
+
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
17
|
+
*/
|
|
18
|
+
constructor(apiClient) {
|
|
19
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Delete a supported content profile
|
|
25
|
+
*
|
|
26
|
+
* @param {String} supportedContentId Supported Content ID
|
|
27
|
+
*/
|
|
28
|
+
deleteMessagingSupportedcontentSupportedContentId(supportedContentId) {
|
|
29
|
+
// verify the required parameter 'supportedContentId' is set
|
|
30
|
+
if (supportedContentId === undefined || supportedContentId === null) {
|
|
31
|
+
throw 'Missing the required parameter "supportedContentId" when calling deleteMessagingSupportedcontentSupportedContentId';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return this.apiClient.callApi(
|
|
35
|
+
'/api/v2/messaging/supportedcontent/{supportedContentId}',
|
|
36
|
+
'DELETE',
|
|
37
|
+
{ 'supportedContentId': supportedContentId },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
|
+
null,
|
|
42
|
+
['PureCloud OAuth'],
|
|
43
|
+
['application/json'],
|
|
44
|
+
['application/json']
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Get a list of Supported Content profiles
|
|
50
|
+
*
|
|
51
|
+
* @param {Object} opts Optional parameters
|
|
52
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
53
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
54
|
+
*/
|
|
55
|
+
getMessagingSupportedcontent(opts) {
|
|
56
|
+
opts = opts || {};
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
return this.apiClient.callApi(
|
|
60
|
+
'/api/v2/messaging/supportedcontent',
|
|
61
|
+
'GET',
|
|
62
|
+
{ },
|
|
63
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
64
|
+
{ },
|
|
65
|
+
{ },
|
|
66
|
+
null,
|
|
67
|
+
['PureCloud OAuth'],
|
|
68
|
+
['application/json'],
|
|
69
|
+
['application/json']
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Get a supported content profile
|
|
75
|
+
*
|
|
76
|
+
* @param {String} supportedContentId Supported Content ID
|
|
77
|
+
*/
|
|
78
|
+
getMessagingSupportedcontentSupportedContentId(supportedContentId) {
|
|
79
|
+
// verify the required parameter 'supportedContentId' is set
|
|
80
|
+
if (supportedContentId === undefined || supportedContentId === null) {
|
|
81
|
+
throw 'Missing the required parameter "supportedContentId" when calling getMessagingSupportedcontentSupportedContentId';
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return this.apiClient.callApi(
|
|
85
|
+
'/api/v2/messaging/supportedcontent/{supportedContentId}',
|
|
86
|
+
'GET',
|
|
87
|
+
{ 'supportedContentId': supportedContentId },
|
|
88
|
+
{ },
|
|
89
|
+
{ },
|
|
90
|
+
{ },
|
|
91
|
+
null,
|
|
92
|
+
['PureCloud OAuth'],
|
|
93
|
+
['application/json'],
|
|
94
|
+
['application/json']
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Update a supported content profile
|
|
100
|
+
*
|
|
101
|
+
* @param {String} supportedContentId Supported Content ID
|
|
102
|
+
* @param {Object} body SupportedContent
|
|
103
|
+
*/
|
|
104
|
+
patchMessagingSupportedcontentSupportedContentId(supportedContentId, body) {
|
|
105
|
+
// verify the required parameter 'supportedContentId' is set
|
|
106
|
+
if (supportedContentId === undefined || supportedContentId === null) {
|
|
107
|
+
throw 'Missing the required parameter "supportedContentId" when calling patchMessagingSupportedcontentSupportedContentId';
|
|
108
|
+
}
|
|
109
|
+
// verify the required parameter 'body' is set
|
|
110
|
+
if (body === undefined || body === null) {
|
|
111
|
+
throw 'Missing the required parameter "body" when calling patchMessagingSupportedcontentSupportedContentId';
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return this.apiClient.callApi(
|
|
115
|
+
'/api/v2/messaging/supportedcontent/{supportedContentId}',
|
|
116
|
+
'PATCH',
|
|
117
|
+
{ 'supportedContentId': supportedContentId },
|
|
118
|
+
{ },
|
|
119
|
+
{ },
|
|
120
|
+
{ },
|
|
121
|
+
body,
|
|
122
|
+
['PureCloud OAuth'],
|
|
123
|
+
['application/json'],
|
|
124
|
+
['application/json']
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Create a Supported Content profile
|
|
130
|
+
*
|
|
131
|
+
* @param {Object} body SupportedContent
|
|
132
|
+
*/
|
|
133
|
+
postMessagingSupportedcontent(body) {
|
|
134
|
+
// verify the required parameter 'body' is set
|
|
135
|
+
if (body === undefined || body === null) {
|
|
136
|
+
throw 'Missing the required parameter "body" when calling postMessagingSupportedcontent';
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return this.apiClient.callApi(
|
|
140
|
+
'/api/v2/messaging/supportedcontent',
|
|
141
|
+
'POST',
|
|
142
|
+
{ },
|
|
143
|
+
{ },
|
|
144
|
+
{ },
|
|
145
|
+
{ },
|
|
146
|
+
body,
|
|
147
|
+
['PureCloud OAuth'],
|
|
148
|
+
['application/json'],
|
|
149
|
+
['application/json']
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
export default MessagingApi;
|
|
@@ -5,7 +5,7 @@ class OutboundApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Outbound service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 132.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -2390,8 +2390,12 @@ class OutboundApi {
|
|
|
2390
2390
|
* Only Internal DNC lists may be appended to
|
|
2391
2391
|
* @param {String} dncListId DncList ID
|
|
2392
2392
|
* @param {Array.<Object>} body DNC Phone Numbers
|
|
2393
|
+
* @param {Object} opts Optional parameters
|
|
2394
|
+
* @param {String} opts.expirationDateTime Expiration date for DNC phone numbers in yyyy-MM-ddTHH:mmZ format
|
|
2393
2395
|
*/
|
|
2394
|
-
postOutboundDnclistPhonenumbers(dncListId, body) {
|
|
2396
|
+
postOutboundDnclistPhonenumbers(dncListId, body, opts) {
|
|
2397
|
+
opts = opts || {};
|
|
2398
|
+
|
|
2395
2399
|
// verify the required parameter 'dncListId' is set
|
|
2396
2400
|
if (dncListId === undefined || dncListId === null) {
|
|
2397
2401
|
throw 'Missing the required parameter "dncListId" when calling postOutboundDnclistPhonenumbers';
|
|
@@ -2405,7 +2409,7 @@ class OutboundApi {
|
|
|
2405
2409
|
'/api/v2/outbound/dnclists/{dncListId}/phonenumbers',
|
|
2406
2410
|
'POST',
|
|
2407
2411
|
{ 'dncListId': dncListId },
|
|
2408
|
-
{
|
|
2412
|
+
{ 'expirationDateTime': opts['expirationDateTime'] },
|
|
2409
2413
|
{ },
|
|
2410
2414
|
{ },
|
|
2411
2415
|
body,
|
|
@@ -5,7 +5,7 @@ class QualityApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Quality service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 132.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -161,7 +161,7 @@ class QualityApi {
|
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* Gets a list of Agent Activities
|
|
164
|
-
*
|
|
164
|
+
* Each item on the list shows one agent's evaluation activity comprised of the number of evaluations and the highest, average, and lowest standard and critical scores, as well as a sub list showing the number and average score of evaluations for each evaluator for that agent. evaluatorUserId, startTime, and endTime are all filtering criteria. If specified, the only evaluations used to compile the agent activity response will be ones that match the filtering criteria. agentUserId, name, group, and agentTeamId are all agent selection criteria. criteria. If one or more agent selection criteria are specified, then the returned activity will include users that match the criteria even if those users did not have any agent activity or evaluations that do not match any filtering criteria. If no agent selection criteria are specified but an evaluatorUserId is, then the returned activity will be only for those agents that had evaluations where the evaluator is the evaluatorUserId. If no agent selection criteria are specified and no evaluatorUserId is specified, then the returned activity will be for all users
|
|
165
165
|
* @param {Object} opts Optional parameters
|
|
166
166
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
167
167
|
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
@@ -624,6 +624,31 @@ class QualityApi {
|
|
|
624
624
|
);
|
|
625
625
|
}
|
|
626
626
|
|
|
627
|
+
/**
|
|
628
|
+
* Retrieve a list of the latest published evaluation form versions by context ids
|
|
629
|
+
*
|
|
630
|
+
* @param {Array.<String>} contextId A comma-delimited list of valid evaluation form context ids
|
|
631
|
+
*/
|
|
632
|
+
getQualityFormsEvaluationsBulkContexts(contextId) {
|
|
633
|
+
// verify the required parameter 'contextId' is set
|
|
634
|
+
if (contextId === undefined || contextId === null) {
|
|
635
|
+
throw 'Missing the required parameter "contextId" when calling getQualityFormsEvaluationsBulkContexts';
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
return this.apiClient.callApi(
|
|
639
|
+
'/api/v2/quality/forms/evaluations/bulk/contexts',
|
|
640
|
+
'GET',
|
|
641
|
+
{ },
|
|
642
|
+
{ 'contextId': this.apiClient.buildCollectionParam(contextId, 'multi') },
|
|
643
|
+
{ },
|
|
644
|
+
{ },
|
|
645
|
+
null,
|
|
646
|
+
['PureCloud OAuth'],
|
|
647
|
+
['application/json'],
|
|
648
|
+
['application/json']
|
|
649
|
+
);
|
|
650
|
+
}
|
|
651
|
+
|
|
627
652
|
/**
|
|
628
653
|
* Get a survey form
|
|
629
654
|
*
|
|
@@ -1138,6 +1163,31 @@ class QualityApi {
|
|
|
1138
1163
|
);
|
|
1139
1164
|
}
|
|
1140
1165
|
|
|
1166
|
+
/**
|
|
1167
|
+
* Query for evaluation aggregates for the current user
|
|
1168
|
+
*
|
|
1169
|
+
* @param {Object} body query
|
|
1170
|
+
*/
|
|
1171
|
+
postQualityEvaluationsAggregatesQueryMe(body) {
|
|
1172
|
+
// verify the required parameter 'body' is set
|
|
1173
|
+
if (body === undefined || body === null) {
|
|
1174
|
+
throw 'Missing the required parameter "body" when calling postQualityEvaluationsAggregatesQueryMe';
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
return this.apiClient.callApi(
|
|
1178
|
+
'/api/v2/quality/evaluations/aggregates/query/me',
|
|
1179
|
+
'POST',
|
|
1180
|
+
{ },
|
|
1181
|
+
{ },
|
|
1182
|
+
{ },
|
|
1183
|
+
{ },
|
|
1184
|
+
body,
|
|
1185
|
+
['PureCloud OAuth'],
|
|
1186
|
+
['application/json'],
|
|
1187
|
+
['application/json']
|
|
1188
|
+
);
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1141
1191
|
/**
|
|
1142
1192
|
* Score evaluation
|
|
1143
1193
|
*
|
|
@@ -5,7 +5,7 @@ class RecordingApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Recording service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 132.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -218,6 +218,7 @@ class RecordingApi {
|
|
|
218
218
|
* @param {Boolean} opts.download requesting a download format of the recording. Valid values:true,false (default to false)
|
|
219
219
|
* @param {String} opts.fileName the name of the downloaded fileName
|
|
220
220
|
* @param {String} opts.locale The locale for the requested file when downloading, as an ISO 639-1 code
|
|
221
|
+
* @param {Array.<String>} opts.mediaFormats All acceptable media formats. Overrides formatId. Valid values:WAV,WEBM,WAV_ULAW,OGG_VORBIS,OGG_OPUS,MP3
|
|
221
222
|
*/
|
|
222
223
|
getConversationRecording(conversationId, recordingId, opts) {
|
|
223
224
|
opts = opts || {};
|
|
@@ -235,7 +236,7 @@ class RecordingApi {
|
|
|
235
236
|
'/api/v2/conversations/{conversationId}/recordings/{recordingId}',
|
|
236
237
|
'GET',
|
|
237
238
|
{ 'conversationId': conversationId,'recordingId': recordingId },
|
|
238
|
-
{ 'formatId': opts['formatId'],'emailFormatId': opts['emailFormatId'],'chatFormatId': opts['chatFormatId'],'messageFormatId': opts['messageFormatId'],'download': opts['download'],'fileName': opts['fileName'],'locale': opts['locale'] },
|
|
239
|
+
{ 'formatId': opts['formatId'],'emailFormatId': opts['emailFormatId'],'chatFormatId': opts['chatFormatId'],'messageFormatId': opts['messageFormatId'],'download': opts['download'],'fileName': opts['fileName'],'locale': opts['locale'],'mediaFormats': this.apiClient.buildCollectionParam(opts['mediaFormats'], 'multi') },
|
|
239
240
|
{ },
|
|
240
241
|
{ },
|
|
241
242
|
null,
|
|
@@ -371,7 +372,8 @@ class RecordingApi {
|
|
|
371
372
|
* @param {String} conversationId Conversation ID
|
|
372
373
|
* @param {Object} opts Optional parameters
|
|
373
374
|
* @param {Number} opts.maxWaitMs The maximum number of milliseconds to wait for the recording to be ready. Must be a positive value. (default to 5000)
|
|
374
|
-
* @param {Object} opts.formatId The desired media format
|
|
375
|
+
* @param {Object} opts.formatId The desired media format. Valid values:WAV,WEBM,WAV_ULAW,OGG_VORBIS,OGG_OPUS,MP3,NONE. (default to WEBM)
|
|
376
|
+
* @param {Array.<String>} opts.mediaFormats All acceptable media formats. Overrides formatId. Valid values:WAV,WEBM,WAV_ULAW,OGG_VORBIS,OGG_OPUS,MP3.
|
|
375
377
|
*/
|
|
376
378
|
getConversationRecordings(conversationId, opts) {
|
|
377
379
|
opts = opts || {};
|
|
@@ -385,7 +387,7 @@ class RecordingApi {
|
|
|
385
387
|
'/api/v2/conversations/{conversationId}/recordings',
|
|
386
388
|
'GET',
|
|
387
389
|
{ 'conversationId': conversationId },
|
|
388
|
-
{ 'maxWaitMs': opts['maxWaitMs'],'formatId': opts['formatId'] },
|
|
390
|
+
{ 'maxWaitMs': opts['maxWaitMs'],'formatId': opts['formatId'],'mediaFormats': this.apiClient.buildCollectionParam(opts['mediaFormats'], 'multi') },
|
|
389
391
|
{ },
|
|
390
392
|
{ },
|
|
391
393
|
null,
|
|
@@ -432,6 +434,7 @@ class RecordingApi {
|
|
|
432
434
|
* @param {Boolean} opts.download requesting a download format of the recording (default to false)
|
|
433
435
|
* @param {String} opts.fileName the name of the downloaded fileName
|
|
434
436
|
* @param {String} opts.locale The locale for the requested file when downloading, as an ISO 639-1 code
|
|
437
|
+
* @param {Array.<String>} opts.mediaFormats All acceptable media formats. Overrides formatId. Valid values:WAV,WEBM,WAV_ULAW,OGG_VORBIS,OGG_OPUS,MP3
|
|
435
438
|
*/
|
|
436
439
|
getOrphanrecordingMedia(orphanId, opts) {
|
|
437
440
|
opts = opts || {};
|
|
@@ -445,7 +448,7 @@ class RecordingApi {
|
|
|
445
448
|
'/api/v2/orphanrecordings/{orphanId}/media',
|
|
446
449
|
'GET',
|
|
447
450
|
{ 'orphanId': orphanId },
|
|
448
|
-
{ 'formatId': opts['formatId'],'emailFormatId': opts['emailFormatId'],'chatFormatId': opts['chatFormatId'],'messageFormatId': opts['messageFormatId'],'download': opts['download'],'fileName': opts['fileName'],'locale': opts['locale'] },
|
|
451
|
+
{ 'formatId': opts['formatId'],'emailFormatId': opts['emailFormatId'],'chatFormatId': opts['chatFormatId'],'messageFormatId': opts['messageFormatId'],'download': opts['download'],'fileName': opts['fileName'],'locale': opts['locale'],'mediaFormats': this.apiClient.buildCollectionParam(opts['mediaFormats'], 'multi') },
|
|
449
452
|
{ },
|
|
450
453
|
{ },
|
|
451
454
|
null,
|
|
@@ -5,7 +5,7 @@ class SpeechTextAnalyticsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* SpeechTextAnalytics service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 132.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -174,26 +174,6 @@ class SpeechTextAnalyticsApi {
|
|
|
174
174
|
);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
/**
|
|
178
|
-
* Get list of supported Speech & Text Analytics dialects
|
|
179
|
-
* This api has been deprecated. Use api/v2/topics/dialects instead
|
|
180
|
-
*/
|
|
181
|
-
getSpeechandtextanalyticsDialects() {
|
|
182
|
-
|
|
183
|
-
return this.apiClient.callApi(
|
|
184
|
-
'/api/v2/speechandtextanalytics/dialects',
|
|
185
|
-
'GET',
|
|
186
|
-
{ },
|
|
187
|
-
{ },
|
|
188
|
-
{ },
|
|
189
|
-
{ },
|
|
190
|
-
null,
|
|
191
|
-
['PureCloud OAuth'],
|
|
192
|
-
['application/json'],
|
|
193
|
-
['application/json']
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
177
|
/**
|
|
198
178
|
* Get a Speech & Text Analytics program by id
|
|
199
179
|
*
|
|
@@ -5,7 +5,7 @@ class TelephonyProvidersEdgeApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* TelephonyProvidersEdge service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 132.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1419,7 +1419,7 @@ class TelephonyProvidersEdgeApi {
|
|
|
1419
1419
|
* @param {Object} opts Optional parameters
|
|
1420
1420
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1421
1421
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1422
|
-
* @param {String} opts.sortBy Sort by
|
|
1422
|
+
* @param {String} opts.sortBy Sort by
|
|
1423
1423
|
* @param {String} opts._number Number
|
|
1424
1424
|
*/
|
|
1425
1425
|
getTelephonyProvidersEdgesExtensionpools(opts) {
|