purecloud-platform-client-v2 229.2.0 → 231.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 +3 -3
- package/dist/node/purecloud-platform-client-v2.js +1267 -152
- package/dist/web-amd/purecloud-platform-client-v2.js +1267 -152
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +442 -147
- package/dist/web-cjs/purecloud-platform-client-v2.js +442 -147
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1382 -550
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/PureCloudRegionHosts.js +2 -0
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +160 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +110 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +83 -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/BusinessRulesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.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 +152 -2
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.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 +1 -1
- 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/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +28 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +187 -1
- 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/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- 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/OperationalEventsApi.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 +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +107 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +19 -34
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.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/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +241 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- 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/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- 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 -32
- 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 +101 -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 +1 -1
|
@@ -5,7 +5,7 @@ class ConversationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Conversations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 231.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -71,6 +71,31 @@ class ConversationsApi {
|
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Update a conversation by disconnecting all of the participants
|
|
76
|
+
*
|
|
77
|
+
* @param {String} conversationId conversation ID
|
|
78
|
+
*/
|
|
79
|
+
deleteConversation(conversationId) {
|
|
80
|
+
// verify the required parameter 'conversationId' is set
|
|
81
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
82
|
+
throw 'Missing the required parameter "conversationId" when calling deleteConversation';
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return this.apiClient.callApi(
|
|
86
|
+
'/api/v2/conversations/{conversationId}',
|
|
87
|
+
'DELETE',
|
|
88
|
+
{ 'conversationId': conversationId },
|
|
89
|
+
{ },
|
|
90
|
+
{ },
|
|
91
|
+
{ },
|
|
92
|
+
null,
|
|
93
|
+
['PureCloud OAuth'],
|
|
94
|
+
['application/json'],
|
|
95
|
+
['application/json']
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
74
99
|
/**
|
|
75
100
|
* Delete a code used to add a communication to this participant
|
|
76
101
|
*
|
|
@@ -3281,6 +3306,36 @@ class ConversationsApi {
|
|
|
3281
3306
|
);
|
|
3282
3307
|
}
|
|
3283
3308
|
|
|
3309
|
+
/**
|
|
3310
|
+
* Update a conversation by setting its recording state
|
|
3311
|
+
*
|
|
3312
|
+
* @param {String} conversationId conversation ID
|
|
3313
|
+
* @param {Object} body SetRecordingState
|
|
3314
|
+
*/
|
|
3315
|
+
patchConversationRecordingstate(conversationId, body) {
|
|
3316
|
+
// verify the required parameter 'conversationId' is set
|
|
3317
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3318
|
+
throw 'Missing the required parameter "conversationId" when calling patchConversationRecordingstate';
|
|
3319
|
+
}
|
|
3320
|
+
// verify the required parameter 'body' is set
|
|
3321
|
+
if (body === undefined || body === null) {
|
|
3322
|
+
throw 'Missing the required parameter "body" when calling patchConversationRecordingstate';
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3325
|
+
return this.apiClient.callApi(
|
|
3326
|
+
'/api/v2/conversations/{conversationId}/recordingstate',
|
|
3327
|
+
'PATCH',
|
|
3328
|
+
{ 'conversationId': conversationId },
|
|
3329
|
+
{ },
|
|
3330
|
+
{ },
|
|
3331
|
+
{ },
|
|
3332
|
+
body,
|
|
3333
|
+
['PureCloud OAuth'],
|
|
3334
|
+
['application/json'],
|
|
3335
|
+
['application/json']
|
|
3336
|
+
);
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3284
3339
|
/**
|
|
3285
3340
|
* Update the secure attributes on a conversation.
|
|
3286
3341
|
*
|
|
@@ -3479,6 +3534,36 @@ class ConversationsApi {
|
|
|
3479
3534
|
);
|
|
3480
3535
|
}
|
|
3481
3536
|
|
|
3537
|
+
/**
|
|
3538
|
+
* Update a conversation by merging in other conversations to create a conference
|
|
3539
|
+
*
|
|
3540
|
+
* @param {String} conversationId conversationId
|
|
3541
|
+
* @param {Object} body UpdateConferenceRequest
|
|
3542
|
+
*/
|
|
3543
|
+
patchConversationsCallConference(conversationId, body) {
|
|
3544
|
+
// verify the required parameter 'conversationId' is set
|
|
3545
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
3546
|
+
throw 'Missing the required parameter "conversationId" when calling patchConversationsCallConference';
|
|
3547
|
+
}
|
|
3548
|
+
// verify the required parameter 'body' is set
|
|
3549
|
+
if (body === undefined || body === null) {
|
|
3550
|
+
throw 'Missing the required parameter "body" when calling patchConversationsCallConference';
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3553
|
+
return this.apiClient.callApi(
|
|
3554
|
+
'/api/v2/conversations/calls/{conversationId}/conference',
|
|
3555
|
+
'PATCH',
|
|
3556
|
+
{ 'conversationId': conversationId },
|
|
3557
|
+
{ },
|
|
3558
|
+
{ },
|
|
3559
|
+
{ },
|
|
3560
|
+
body,
|
|
3561
|
+
['PureCloud OAuth'],
|
|
3562
|
+
['application/json'],
|
|
3563
|
+
['application/json']
|
|
3564
|
+
);
|
|
3565
|
+
}
|
|
3566
|
+
|
|
3482
3567
|
/**
|
|
3483
3568
|
* Update conversation participant
|
|
3484
3569
|
*
|
|
@@ -5872,6 +5957,41 @@ class ConversationsApi {
|
|
|
5872
5957
|
);
|
|
5873
5958
|
}
|
|
5874
5959
|
|
|
5960
|
+
/**
|
|
5961
|
+
* Add participants to a conversation without a user context
|
|
5962
|
+
*
|
|
5963
|
+
* @param {String} conversationId conversationId
|
|
5964
|
+
* @param {String} userId userId
|
|
5965
|
+
* @param {Object} body Conversation
|
|
5966
|
+
*/
|
|
5967
|
+
postConversationsCallParticipantsUserUserId(conversationId, userId, body) {
|
|
5968
|
+
// verify the required parameter 'conversationId' is set
|
|
5969
|
+
if (conversationId === undefined || conversationId === null || conversationId === '') {
|
|
5970
|
+
throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantsUserUserId';
|
|
5971
|
+
}
|
|
5972
|
+
// verify the required parameter 'userId' is set
|
|
5973
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
5974
|
+
throw 'Missing the required parameter "userId" when calling postConversationsCallParticipantsUserUserId';
|
|
5975
|
+
}
|
|
5976
|
+
// verify the required parameter 'body' is set
|
|
5977
|
+
if (body === undefined || body === null) {
|
|
5978
|
+
throw 'Missing the required parameter "body" when calling postConversationsCallParticipantsUserUserId';
|
|
5979
|
+
}
|
|
5980
|
+
|
|
5981
|
+
return this.apiClient.callApi(
|
|
5982
|
+
'/api/v2/conversations/calls/{conversationId}/participants/user/{userId}',
|
|
5983
|
+
'POST',
|
|
5984
|
+
{ 'conversationId': conversationId,'userId': userId },
|
|
5985
|
+
{ },
|
|
5986
|
+
{ },
|
|
5987
|
+
{ },
|
|
5988
|
+
body,
|
|
5989
|
+
['PureCloud OAuth'],
|
|
5990
|
+
['application/json'],
|
|
5991
|
+
['application/json']
|
|
5992
|
+
);
|
|
5993
|
+
}
|
|
5994
|
+
|
|
5875
5995
|
/**
|
|
5876
5996
|
* Apply wrap-up for this conversation communication
|
|
5877
5997
|
*
|
|
@@ -6046,6 +6166,36 @@ class ConversationsApi {
|
|
|
6046
6166
|
);
|
|
6047
6167
|
}
|
|
6048
6168
|
|
|
6169
|
+
/**
|
|
6170
|
+
* Create a call conversation on behalf of a user
|
|
6171
|
+
*
|
|
6172
|
+
* @param {String} userId userId
|
|
6173
|
+
* @param {Object} body Call request
|
|
6174
|
+
*/
|
|
6175
|
+
postConversationsCallsUserUserId(userId, body) {
|
|
6176
|
+
// verify the required parameter 'userId' is set
|
|
6177
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
6178
|
+
throw 'Missing the required parameter "userId" when calling postConversationsCallsUserUserId';
|
|
6179
|
+
}
|
|
6180
|
+
// verify the required parameter 'body' is set
|
|
6181
|
+
if (body === undefined || body === null) {
|
|
6182
|
+
throw 'Missing the required parameter "body" when calling postConversationsCallsUserUserId';
|
|
6183
|
+
}
|
|
6184
|
+
|
|
6185
|
+
return this.apiClient.callApi(
|
|
6186
|
+
'/api/v2/conversations/calls/user/{userId}',
|
|
6187
|
+
'POST',
|
|
6188
|
+
{ 'userId': userId },
|
|
6189
|
+
{ },
|
|
6190
|
+
{ },
|
|
6191
|
+
{ },
|
|
6192
|
+
body,
|
|
6193
|
+
['PureCloud OAuth'],
|
|
6194
|
+
['application/json'],
|
|
6195
|
+
['application/json']
|
|
6196
|
+
);
|
|
6197
|
+
}
|
|
6198
|
+
|
|
6049
6199
|
/**
|
|
6050
6200
|
* Send a message on behalf of a communication in a chat conversation.
|
|
6051
6201
|
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
@@ -6456,7 +6606,7 @@ class ConversationsApi {
|
|
|
6456
6606
|
|
|
6457
6607
|
/**
|
|
6458
6608
|
* Reconnect the user to the most recently disconnected customer on a fully disconnected email conversation
|
|
6459
|
-
*
|
|
6609
|
+
* This request is not valid when using the Client Credentials OAuth grant.
|
|
6460
6610
|
* @param {String} conversationId conversationId
|
|
6461
6611
|
*/
|
|
6462
6612
|
postConversationsEmailReconnect(conversationId) {
|
|
@@ -5,7 +5,7 @@ class JourneyApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Journey service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 231.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1293,6 +1293,33 @@ class JourneyApi {
|
|
|
1293
1293
|
);
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
|
+
/**
|
|
1297
|
+
* Get my jobs
|
|
1298
|
+
*
|
|
1299
|
+
* @param {Object} opts Optional parameters
|
|
1300
|
+
* @param {Number} opts.pageNumber The number of the page to return (default to 1)
|
|
1301
|
+
* @param {Number} opts.pageSize Max number of entities to return (default to 25)
|
|
1302
|
+
* @param {String} opts.interval An absolute timeframe for filtering the jobs, expressed as an ISO 8601 interval.
|
|
1303
|
+
* @param {String} opts.statuses Job statuses to filter for
|
|
1304
|
+
*/
|
|
1305
|
+
getJourneyViewsJobsMe(opts) {
|
|
1306
|
+
opts = opts || {};
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
return this.apiClient.callApi(
|
|
1310
|
+
'/api/v2/journey/views/jobs/me',
|
|
1311
|
+
'GET',
|
|
1312
|
+
{ },
|
|
1313
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'interval': opts['interval'],'statuses': opts['statuses'] },
|
|
1314
|
+
{ },
|
|
1315
|
+
{ },
|
|
1316
|
+
null,
|
|
1317
|
+
['PureCloud OAuth'],
|
|
1318
|
+
['application/json'],
|
|
1319
|
+
['application/json']
|
|
1320
|
+
);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1296
1323
|
/**
|
|
1297
1324
|
* Get the journey schedules for an organization.
|
|
1298
1325
|
*
|
|
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* LanguageUnderstanding service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 231.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -379,6 +379,72 @@ class LanguageUnderstandingApi {
|
|
|
379
379
|
);
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
+
/**
|
|
383
|
+
* Get list of all ignored phrases of the specified language code
|
|
384
|
+
*
|
|
385
|
+
* @param {String} languageCode Language Code
|
|
386
|
+
* @param {Object} opts Optional parameters
|
|
387
|
+
* @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 200. (default to 25)
|
|
388
|
+
* @param {Number} opts.pageNumber The page number for the listing (default to 1)
|
|
389
|
+
* @param {String} opts.text The phrase text filter applied to the listing
|
|
390
|
+
* @param {Object} opts.sortOrder The sort order for the listing (default to desc)
|
|
391
|
+
* @param {Object} opts.sortBy The field to sort by for the listing (default to dateModified)
|
|
392
|
+
*/
|
|
393
|
+
getLanguageunderstandingIgnorephrase(languageCode, opts) {
|
|
394
|
+
opts = opts || {};
|
|
395
|
+
|
|
396
|
+
// verify the required parameter 'languageCode' is set
|
|
397
|
+
if (languageCode === undefined || languageCode === null || languageCode === '') {
|
|
398
|
+
throw 'Missing the required parameter "languageCode" when calling getLanguageunderstandingIgnorephrase';
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
return this.apiClient.callApi(
|
|
402
|
+
'/api/v2/languageunderstanding/ignorephrases/{languageCode}',
|
|
403
|
+
'GET',
|
|
404
|
+
{ 'languageCode': languageCode },
|
|
405
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'text': opts['text'],'sortOrder': opts['sortOrder'],'sortBy': opts['sortBy'] },
|
|
406
|
+
{ },
|
|
407
|
+
{ },
|
|
408
|
+
null,
|
|
409
|
+
['PureCloud OAuth'],
|
|
410
|
+
['application/json'],
|
|
411
|
+
['application/json']
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Get list of all ignored topics of the specified language code
|
|
417
|
+
*
|
|
418
|
+
* @param {String} languageCode Language Code
|
|
419
|
+
* @param {Object} opts Optional parameters
|
|
420
|
+
* @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 200. (default to 25)
|
|
421
|
+
* @param {Number} opts.pageNumber The page number for the listing (default to 1)
|
|
422
|
+
* @param {String} opts.text The topic text filter applied to the listing
|
|
423
|
+
* @param {Object} opts.sortOrder The sort order for the listing (default to desc)
|
|
424
|
+
* @param {Object} opts.sortBy The field to sort by for the listing (default to dateModified)
|
|
425
|
+
*/
|
|
426
|
+
getLanguageunderstandingIgnoretopic(languageCode, opts) {
|
|
427
|
+
opts = opts || {};
|
|
428
|
+
|
|
429
|
+
// verify the required parameter 'languageCode' is set
|
|
430
|
+
if (languageCode === undefined || languageCode === null || languageCode === '') {
|
|
431
|
+
throw 'Missing the required parameter "languageCode" when calling getLanguageunderstandingIgnoretopic';
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
return this.apiClient.callApi(
|
|
435
|
+
'/api/v2/languageunderstanding/ignoretopics/{languageCode}',
|
|
436
|
+
'GET',
|
|
437
|
+
{ 'languageCode': languageCode },
|
|
438
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'text': opts['text'],'sortOrder': opts['sortOrder'],'sortBy': opts['sortBy'] },
|
|
439
|
+
{ },
|
|
440
|
+
{ },
|
|
441
|
+
null,
|
|
442
|
+
['PureCloud OAuth'],
|
|
443
|
+
['application/json'],
|
|
444
|
+
['application/json']
|
|
445
|
+
);
|
|
446
|
+
}
|
|
447
|
+
|
|
382
448
|
/**
|
|
383
449
|
* Get information about a miner.
|
|
384
450
|
*
|
|
@@ -913,6 +979,126 @@ class LanguageUnderstandingApi {
|
|
|
913
979
|
);
|
|
914
980
|
}
|
|
915
981
|
|
|
982
|
+
/**
|
|
983
|
+
* Add phrases to the ignored phrases list
|
|
984
|
+
*
|
|
985
|
+
* @param {String} languageCode Language Code
|
|
986
|
+
* @param {Object} body Request body containing phrases to be ignored
|
|
987
|
+
*/
|
|
988
|
+
postLanguageunderstandingIgnorephrase(languageCode, body) {
|
|
989
|
+
// verify the required parameter 'languageCode' is set
|
|
990
|
+
if (languageCode === undefined || languageCode === null || languageCode === '') {
|
|
991
|
+
throw 'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephrase';
|
|
992
|
+
}
|
|
993
|
+
// verify the required parameter 'body' is set
|
|
994
|
+
if (body === undefined || body === null) {
|
|
995
|
+
throw 'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephrase';
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
return this.apiClient.callApi(
|
|
999
|
+
'/api/v2/languageunderstanding/ignorephrases/{languageCode}',
|
|
1000
|
+
'POST',
|
|
1001
|
+
{ 'languageCode': languageCode },
|
|
1002
|
+
{ },
|
|
1003
|
+
{ },
|
|
1004
|
+
{ },
|
|
1005
|
+
body,
|
|
1006
|
+
['PureCloud OAuth'],
|
|
1007
|
+
['application/json'],
|
|
1008
|
+
['application/json']
|
|
1009
|
+
);
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Delete ignored phrases
|
|
1014
|
+
*
|
|
1015
|
+
* @param {String} languageCode Language Code
|
|
1016
|
+
* @param {Object} body Request body containing entities to be removed
|
|
1017
|
+
*/
|
|
1018
|
+
postLanguageunderstandingIgnorephraseRemove(languageCode, body) {
|
|
1019
|
+
// verify the required parameter 'languageCode' is set
|
|
1020
|
+
if (languageCode === undefined || languageCode === null || languageCode === '') {
|
|
1021
|
+
throw 'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephraseRemove';
|
|
1022
|
+
}
|
|
1023
|
+
// verify the required parameter 'body' is set
|
|
1024
|
+
if (body === undefined || body === null) {
|
|
1025
|
+
throw 'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephraseRemove';
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
return this.apiClient.callApi(
|
|
1029
|
+
'/api/v2/languageunderstanding/ignorephrases/{languageCode}/remove',
|
|
1030
|
+
'POST',
|
|
1031
|
+
{ 'languageCode': languageCode },
|
|
1032
|
+
{ },
|
|
1033
|
+
{ },
|
|
1034
|
+
{ },
|
|
1035
|
+
body,
|
|
1036
|
+
['PureCloud OAuth'],
|
|
1037
|
+
['application/json'],
|
|
1038
|
+
['application/json']
|
|
1039
|
+
);
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Add topics to the ignored topics list
|
|
1044
|
+
*
|
|
1045
|
+
* @param {String} languageCode Language Code
|
|
1046
|
+
* @param {Object} body Request body containing topics to be ignored
|
|
1047
|
+
*/
|
|
1048
|
+
postLanguageunderstandingIgnoretopic(languageCode, body) {
|
|
1049
|
+
// verify the required parameter 'languageCode' is set
|
|
1050
|
+
if (languageCode === undefined || languageCode === null || languageCode === '') {
|
|
1051
|
+
throw 'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopic';
|
|
1052
|
+
}
|
|
1053
|
+
// verify the required parameter 'body' is set
|
|
1054
|
+
if (body === undefined || body === null) {
|
|
1055
|
+
throw 'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopic';
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
return this.apiClient.callApi(
|
|
1059
|
+
'/api/v2/languageunderstanding/ignoretopics/{languageCode}',
|
|
1060
|
+
'POST',
|
|
1061
|
+
{ 'languageCode': languageCode },
|
|
1062
|
+
{ },
|
|
1063
|
+
{ },
|
|
1064
|
+
{ },
|
|
1065
|
+
body,
|
|
1066
|
+
['PureCloud OAuth'],
|
|
1067
|
+
['application/json'],
|
|
1068
|
+
['application/json']
|
|
1069
|
+
);
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Delete ignored topics
|
|
1074
|
+
*
|
|
1075
|
+
* @param {String} languageCode Language Code
|
|
1076
|
+
* @param {Object} body Request body containing entities to be removed
|
|
1077
|
+
*/
|
|
1078
|
+
postLanguageunderstandingIgnoretopicRemove(languageCode, body) {
|
|
1079
|
+
// verify the required parameter 'languageCode' is set
|
|
1080
|
+
if (languageCode === undefined || languageCode === null || languageCode === '') {
|
|
1081
|
+
throw 'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopicRemove';
|
|
1082
|
+
}
|
|
1083
|
+
// verify the required parameter 'body' is set
|
|
1084
|
+
if (body === undefined || body === null) {
|
|
1085
|
+
throw 'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopicRemove';
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
return this.apiClient.callApi(
|
|
1089
|
+
'/api/v2/languageunderstanding/ignoretopics/{languageCode}/remove',
|
|
1090
|
+
'POST',
|
|
1091
|
+
{ 'languageCode': languageCode },
|
|
1092
|
+
{ },
|
|
1093
|
+
{ },
|
|
1094
|
+
{ },
|
|
1095
|
+
body,
|
|
1096
|
+
['PureCloud OAuth'],
|
|
1097
|
+
['application/json'],
|
|
1098
|
+
['application/json']
|
|
1099
|
+
);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
916
1102
|
/**
|
|
917
1103
|
* Create a new draft resource.
|
|
918
1104
|
*
|