purecloud-platform-client-v2 195.0.0 → 197.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 -2
- package/dist/node/purecloud-platform-client-v2.js +678 -119
- package/dist/web-amd/purecloud-platform-client-v2.js +678 -119
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +244 -101
- package/dist/web-cjs/purecloud-platform-client-v2.js +249 -102
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +521 -316
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +136 -0
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -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/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 +129 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.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 +156 -0
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +8 -4
- 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 +31 -2
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +3 -2
- 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 +31 -35
- 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 +2 -4
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +3 -2
- 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 +111 -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 -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 +13 -1
|
@@ -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 197.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -749,6 +749,7 @@ class JourneyApi {
|
|
|
749
749
|
* @param {Object} opts Optional parameters
|
|
750
750
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
751
751
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
752
|
+
* @param {Object} opts.eventType A comma separated list of journey event types to include in the results.
|
|
752
753
|
* getJourneySessionEvents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
753
754
|
*/
|
|
754
755
|
getJourneySessionEvents(sessionId, opts) {
|
|
@@ -763,7 +764,7 @@ class JourneyApi {
|
|
|
763
764
|
'/api/v2/journey/sessions/{sessionId}/events',
|
|
764
765
|
'GET',
|
|
765
766
|
{ 'sessionId': sessionId },
|
|
766
|
-
{ 'pageSize': opts['pageSize'],'after': opts['after'] },
|
|
767
|
+
{ 'pageSize': opts['pageSize'],'after': opts['after'],'eventType': opts['eventType'] },
|
|
767
768
|
{ },
|
|
768
769
|
{ },
|
|
769
770
|
null,
|
|
@@ -1026,6 +1027,34 @@ class JourneyApi {
|
|
|
1026
1027
|
);
|
|
1027
1028
|
}
|
|
1028
1029
|
|
|
1030
|
+
/**
|
|
1031
|
+
* Get the jobs for an organization.
|
|
1032
|
+
*
|
|
1033
|
+
* @param {Object} opts Optional parameters
|
|
1034
|
+
* @param {Number} opts.pageNumber The number of the page to return (default to 1)
|
|
1035
|
+
* @param {Number} opts.pageSize Max number of entities to return (default to 25)
|
|
1036
|
+
* @param {String} opts.interval An absolute timeframe for filtering the jobs, expressed as an ISO 8601 interval.
|
|
1037
|
+
* @param {String} opts.statuses Job statuses to filter for
|
|
1038
|
+
* getJourneyViewsJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1039
|
+
*/
|
|
1040
|
+
getJourneyViewsJobs(opts) {
|
|
1041
|
+
opts = opts || {};
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
return this.apiClient.callApi(
|
|
1045
|
+
'/api/v2/journey/views/jobs',
|
|
1046
|
+
'GET',
|
|
1047
|
+
{ },
|
|
1048
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'interval': opts['interval'],'statuses': opts['statuses'] },
|
|
1049
|
+
{ },
|
|
1050
|
+
{ },
|
|
1051
|
+
null,
|
|
1052
|
+
['PureCloud OAuth'],
|
|
1053
|
+
['application/json'],
|
|
1054
|
+
['application/json']
|
|
1055
|
+
);
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1029
1058
|
/**
|
|
1030
1059
|
* Update single action map.
|
|
1031
1060
|
*
|
|
@@ -5,7 +5,7 @@ class LearningApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Learning service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 197.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -106,6 +106,7 @@ class LearningApi {
|
|
|
106
106
|
* @param {String} stepId The ID of Learning Assignment Step
|
|
107
107
|
* @param {Object} opts Optional parameters
|
|
108
108
|
* @param {String} opts.shareableContentObjectId The ID of SCO to load
|
|
109
|
+
* @param {Object} opts.defaultShareableContentObject The default SCO to retrieve
|
|
109
110
|
* @param {Array.<String>} opts.expand Fields to expand in response
|
|
110
111
|
*/
|
|
111
112
|
getLearningAssignmentStep(assignmentId, stepId, opts) {
|
|
@@ -124,7 +125,7 @@ class LearningApi {
|
|
|
124
125
|
'/api/v2/learning/assignments/{assignmentId}/steps/{stepId}',
|
|
125
126
|
'GET',
|
|
126
127
|
{ 'assignmentId': assignmentId,'stepId': stepId },
|
|
127
|
-
{ 'shareableContentObjectId': opts['shareableContentObjectId'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
128
|
+
{ 'shareableContentObjectId': opts['shareableContentObjectId'],'defaultShareableContentObject': opts['defaultShareableContentObject'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
128
129
|
{ },
|
|
129
130
|
{ },
|
|
130
131
|
null,
|
|
@@ -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 197.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -2621,6 +2621,36 @@ class OutboundApi {
|
|
|
2621
2621
|
);
|
|
2622
2622
|
}
|
|
2623
2623
|
|
|
2624
|
+
/**
|
|
2625
|
+
* Update a campaign.
|
|
2626
|
+
*
|
|
2627
|
+
* @param {String} campaignId Campaign ID
|
|
2628
|
+
* @param {Object} body CampaignPatchRequest
|
|
2629
|
+
*/
|
|
2630
|
+
patchOutboundCampaign(campaignId, body) {
|
|
2631
|
+
// verify the required parameter 'campaignId' is set
|
|
2632
|
+
if (campaignId === undefined || campaignId === null) {
|
|
2633
|
+
throw 'Missing the required parameter "campaignId" when calling patchOutboundCampaign';
|
|
2634
|
+
}
|
|
2635
|
+
// verify the required parameter 'body' is set
|
|
2636
|
+
if (body === undefined || body === null) {
|
|
2637
|
+
throw 'Missing the required parameter "body" when calling patchOutboundCampaign';
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
return this.apiClient.callApi(
|
|
2641
|
+
'/api/v2/outbound/campaigns/{campaignId}',
|
|
2642
|
+
'PATCH',
|
|
2643
|
+
{ 'campaignId': campaignId },
|
|
2644
|
+
{ },
|
|
2645
|
+
{ },
|
|
2646
|
+
{ },
|
|
2647
|
+
body,
|
|
2648
|
+
['PureCloud OAuth'],
|
|
2649
|
+
['application/json'],
|
|
2650
|
+
['application/json']
|
|
2651
|
+
);
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2624
2654
|
/**
|
|
2625
2655
|
* Add entries to or delete entries from a DNC list.
|
|
2626
2656
|
* Only Internal DNC lists may be deleted from
|
|
@@ -2761,40 +2791,6 @@ class OutboundApi {
|
|
|
2761
2791
|
);
|
|
2762
2792
|
}
|
|
2763
2793
|
|
|
2764
|
-
/**
|
|
2765
|
-
* Retrieves audits for dialer. (Deprecated)
|
|
2766
|
-
* This endpoint is deprecated as a result of this functionality being moved to the Audit Service. Please use "/api/v2/audits/query" instead.
|
|
2767
|
-
* @param {Object} body AuditSearch
|
|
2768
|
-
* @param {Object} opts Optional parameters
|
|
2769
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
2770
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
2771
|
-
* @param {String} opts.sortBy Sort by (default to entity.name)
|
|
2772
|
-
* @param {String} opts.sortOrder Sort order (default to ascending)
|
|
2773
|
-
* @param {Boolean} opts.facetsOnly Facets only (default to false)
|
|
2774
|
-
* @deprecated
|
|
2775
|
-
*/
|
|
2776
|
-
postOutboundAudits(body, opts) {
|
|
2777
|
-
opts = opts || {};
|
|
2778
|
-
|
|
2779
|
-
// verify the required parameter 'body' is set
|
|
2780
|
-
if (body === undefined || body === null) {
|
|
2781
|
-
throw 'Missing the required parameter "body" when calling postOutboundAudits';
|
|
2782
|
-
}
|
|
2783
|
-
|
|
2784
|
-
return this.apiClient.callApi(
|
|
2785
|
-
'/api/v2/outbound/audits',
|
|
2786
|
-
'POST',
|
|
2787
|
-
{ },
|
|
2788
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'facetsOnly': opts['facetsOnly'] },
|
|
2789
|
-
{ },
|
|
2790
|
-
{ },
|
|
2791
|
-
body,
|
|
2792
|
-
['PureCloud OAuth'],
|
|
2793
|
-
['application/json'],
|
|
2794
|
-
['application/json']
|
|
2795
|
-
);
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2798
2794
|
/**
|
|
2799
2795
|
* Create callable time set
|
|
2800
2796
|
*
|
|
@@ -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 197.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -497,9 +497,7 @@ class QualityApi {
|
|
|
497
497
|
* @param {Object} opts Optional parameters
|
|
498
498
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
499
499
|
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
500
|
-
* @param {String} opts.sortBy NOTE: Does not work when querying evaluations
|
|
501
500
|
* @param {Array.<String>} opts.expand variable name requested by expand list
|
|
502
|
-
* @param {String} opts.nextPage NOTE: Does not work when querying evaluations
|
|
503
501
|
* @param {String} opts.previousPage Previous page token
|
|
504
502
|
* @param {String} opts.conversationId conversationId specified
|
|
505
503
|
* @param {String} opts.agentUserId user id of the agent
|
|
@@ -525,7 +523,7 @@ class QualityApi {
|
|
|
525
523
|
'/api/v2/quality/evaluations/query',
|
|
526
524
|
'GET',
|
|
527
525
|
{ },
|
|
528
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'
|
|
526
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'previousPage': opts['previousPage'],'conversationId': opts['conversationId'],'agentUserId': opts['agentUserId'],'agentTeamId': opts['agentTeamId'],'evaluatorUserId': opts['evaluatorUserId'],'assigneeUserId': opts['assigneeUserId'],'queueId': opts['queueId'],'startTime': opts['startTime'],'endTime': opts['endTime'],'formContextId': opts['formContextId'],'evaluationState': this.apiClient.buildCollectionParam(opts['evaluationState'], 'multi'),'isReleased': opts['isReleased'],'agentHasRead': opts['agentHasRead'],'expandAnswerTotalScores': opts['expandAnswerTotalScores'],'maximum': opts['maximum'],'sortOrder': opts['sortOrder'] },
|
|
529
527
|
{ },
|
|
530
528
|
{ },
|
|
531
529
|
null,
|
|
@@ -5,7 +5,7 @@ class RoutingApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Routing service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 197.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1916,6 +1916,7 @@ class RoutingApi {
|
|
|
1916
1916
|
* @param {Object} opts.sortOrder Sort order
|
|
1917
1917
|
* @param {String} opts.language A language tag (which is sometimes referred to as a locale identifier) to use to localize country field and sort operations (default to en-US)
|
|
1918
1918
|
* @param {String} opts.integrationId Filter on the Genesys Cloud integration id to which the phone number belongs to
|
|
1919
|
+
* @param {String} opts.supportedContentId Filter based on the supported content ID
|
|
1919
1920
|
*/
|
|
1920
1921
|
getRoutingSmsPhonenumbers(opts) {
|
|
1921
1922
|
opts = opts || {};
|
|
@@ -1925,7 +1926,7 @@ class RoutingApi {
|
|
|
1925
1926
|
'/api/v2/routing/sms/phonenumbers',
|
|
1926
1927
|
'GET',
|
|
1927
1928
|
{ },
|
|
1928
|
-
{ 'phoneNumber': opts['phoneNumber'],'phoneNumberType': this.apiClient.buildCollectionParam(opts['phoneNumberType'], 'multi'),'phoneNumberStatus': this.apiClient.buildCollectionParam(opts['phoneNumberStatus'], 'multi'),'countryCode': this.apiClient.buildCollectionParam(opts['countryCode'], 'multi'),'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'language': opts['language'],'integration.id': opts['integrationId'] },
|
|
1929
|
+
{ 'phoneNumber': opts['phoneNumber'],'phoneNumberType': this.apiClient.buildCollectionParam(opts['phoneNumberType'], 'multi'),'phoneNumberStatus': this.apiClient.buildCollectionParam(opts['phoneNumberStatus'], 'multi'),'countryCode': this.apiClient.buildCollectionParam(opts['countryCode'], 'multi'),'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'language': opts['language'],'integration.id': opts['integrationId'],'supportedContent.id': opts['supportedContentId'] },
|
|
1929
1930
|
{ },
|
|
1930
1931
|
{ },
|
|
1931
1932
|
null,
|
|
@@ -5,7 +5,7 @@ class SettingsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Settings service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 197.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -20,6 +20,31 @@ class SettingsApi {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Delete agent auto answer settings
|
|
25
|
+
*
|
|
26
|
+
* @param {String} agentId The agent to apply the auto answer settings to
|
|
27
|
+
*/
|
|
28
|
+
deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(agentId) {
|
|
29
|
+
// verify the required parameter 'agentId' is set
|
|
30
|
+
if (agentId === undefined || agentId === null) {
|
|
31
|
+
throw 'Missing the required parameter "agentId" when calling deleteUsersAgentuiAgentsAutoanswerAgentIdSettings';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return this.apiClient.callApi(
|
|
35
|
+
'/api/v2/users/agentui/agents/autoanswer/{agentId}/settings',
|
|
36
|
+
'DELETE',
|
|
37
|
+
{ 'agentId': agentId },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
|
+
null,
|
|
42
|
+
['PureCloud OAuth'],
|
|
43
|
+
['application/json'],
|
|
44
|
+
['application/json']
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
23
48
|
/**
|
|
24
49
|
* Get email Contact Center settings
|
|
25
50
|
*
|
|
@@ -61,6 +86,31 @@ class SettingsApi {
|
|
|
61
86
|
);
|
|
62
87
|
}
|
|
63
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Get agent auto answer settings
|
|
91
|
+
*
|
|
92
|
+
* @param {String} agentId The agent to apply the auto answer settings to
|
|
93
|
+
*/
|
|
94
|
+
getUsersAgentuiAgentsAutoanswerAgentIdSettings(agentId) {
|
|
95
|
+
// verify the required parameter 'agentId' is set
|
|
96
|
+
if (agentId === undefined || agentId === null) {
|
|
97
|
+
throw 'Missing the required parameter "agentId" when calling getUsersAgentuiAgentsAutoanswerAgentIdSettings';
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return this.apiClient.callApi(
|
|
101
|
+
'/api/v2/users/agentui/agents/autoanswer/{agentId}/settings',
|
|
102
|
+
'GET',
|
|
103
|
+
{ 'agentId': agentId },
|
|
104
|
+
{ },
|
|
105
|
+
{ },
|
|
106
|
+
{ },
|
|
107
|
+
null,
|
|
108
|
+
['PureCloud OAuth'],
|
|
109
|
+
['application/json'],
|
|
110
|
+
['application/json']
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
64
114
|
/**
|
|
65
115
|
* Patch email Contact Center settings
|
|
66
116
|
*
|
|
@@ -111,6 +161,66 @@ class SettingsApi {
|
|
|
111
161
|
);
|
|
112
162
|
}
|
|
113
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Update agent auto answer settings
|
|
166
|
+
*
|
|
167
|
+
* @param {String} agentId The agent to apply the auto answer settings to
|
|
168
|
+
* @param {Object} body AutoAnswerSettings
|
|
169
|
+
*/
|
|
170
|
+
patchUsersAgentuiAgentsAutoanswerAgentIdSettings(agentId, body) {
|
|
171
|
+
// verify the required parameter 'agentId' is set
|
|
172
|
+
if (agentId === undefined || agentId === null) {
|
|
173
|
+
throw 'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';
|
|
174
|
+
}
|
|
175
|
+
// verify the required parameter 'body' is set
|
|
176
|
+
if (body === undefined || body === null) {
|
|
177
|
+
throw 'Missing the required parameter "body" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return this.apiClient.callApi(
|
|
181
|
+
'/api/v2/users/agentui/agents/autoanswer/{agentId}/settings',
|
|
182
|
+
'PATCH',
|
|
183
|
+
{ 'agentId': agentId },
|
|
184
|
+
{ },
|
|
185
|
+
{ },
|
|
186
|
+
{ },
|
|
187
|
+
body,
|
|
188
|
+
['PureCloud OAuth'],
|
|
189
|
+
['application/json'],
|
|
190
|
+
['application/json']
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Set agent auto answer settings
|
|
196
|
+
*
|
|
197
|
+
* @param {String} agentId The agent to apply the auto answer settings to
|
|
198
|
+
* @param {Object} body AutoAnswerSettings
|
|
199
|
+
*/
|
|
200
|
+
putUsersAgentuiAgentsAutoanswerAgentIdSettings(agentId, body) {
|
|
201
|
+
// verify the required parameter 'agentId' is set
|
|
202
|
+
if (agentId === undefined || agentId === null) {
|
|
203
|
+
throw 'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';
|
|
204
|
+
}
|
|
205
|
+
// verify the required parameter 'body' is set
|
|
206
|
+
if (body === undefined || body === null) {
|
|
207
|
+
throw 'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
return this.apiClient.callApi(
|
|
211
|
+
'/api/v2/users/agentui/agents/autoanswer/{agentId}/settings',
|
|
212
|
+
'PUT',
|
|
213
|
+
{ 'agentId': agentId },
|
|
214
|
+
{ },
|
|
215
|
+
{ },
|
|
216
|
+
{ },
|
|
217
|
+
body,
|
|
218
|
+
['PureCloud OAuth'],
|
|
219
|
+
['application/json'],
|
|
220
|
+
['application/json']
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
114
224
|
}
|
|
115
225
|
|
|
116
226
|
|