purecloud-platform-client-v2 249.0.0 → 250.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 +34 -3
- package/dist/node/purecloud-platform-client-v2.js +20042 -5569
- package/dist/web-amd/purecloud-platform-client-v2.js +20042 -5569
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +11159 -5369
- package/dist/web-cjs/purecloud-platform-client-v2.js +11159 -5369
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +10600 -2242
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +26 -2
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +136 -40
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +130 -39
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +18 -6
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +29 -9
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +86 -26
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +917 -224
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +754 -226
- package/src/purecloud-platform-client-v2/api/AssistantCopilotVariationsApi.js +36 -11
- package/src/purecloud-platform-client-v2/api/AuditApi.js +38 -12
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +302 -91
- package/src/purecloud-platform-client-v2/api/BackgroundAssistantApi.js +7 -3
- package/src/purecloud-platform-client-v2/api/BillingApi.js +41 -13
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +180 -53
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +11 -4
- package/src/purecloud-platform-client-v2/api/CaseManagementApi.js +187 -56
- package/src/purecloud-platform-client-v2/api/ChatApi.js +223 -65
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +124 -37
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +165 -51
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1992 -578
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +22 -7
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +39 -12
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +4 -2
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +28 -9
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +35 -11
- package/src/purecloud-platform-client-v2/api/EventsApi.js +22 -7
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +700 -206
- package/src/purecloud-platform-client-v2/api/FaxApi.js +49 -15
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +42 -13
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +419 -125
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +21 -7
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +29 -9
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +106 -32
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +103 -31
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +267 -77
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +20 -7
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +461 -139
- package/src/purecloud-platform-client-v2/api/IntentsApi.js +93 -28
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +872 -120
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +618 -185
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +221 -66
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +53 -16
- package/src/purecloud-platform-client-v2/api/LearningApi.js +199 -60
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +51 -16
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +45 -14
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +34 -11
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +84 -25
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +28 -9
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +41 -13
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +72 -22
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +58 -18
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +21 -7
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +122 -36
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +297 -87
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1066 -312
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +162 -48
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +41 -13
- package/src/purecloud-platform-client-v2/api/QualityApi.js +409 -121
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +351 -108
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +113 -34
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +964 -284
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +123 -39
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +50 -17
- package/src/purecloud-platform-client-v2/api/SearchApi.js +147 -44
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +87 -26
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +208 -67
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +389 -114
- package/src/purecloud-platform-client-v2/api/StationsApi.js +18 -6
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +13 -5
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +473 -138
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +55 -17
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +80 -24
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +751 -220
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +25 -8
- package/src/purecloud-platform-client-v2/api/TokensApi.js +35 -11
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +78 -23
- package/src/purecloud-platform-client-v2/api/UsageApi.js +62 -19
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +27 -9
- package/src/purecloud-platform-client-v2/api/UsersApi.js +717 -228
- package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +52 -16
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +25 -8
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +154 -46
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +126 -37
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +120 -36
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +25 -8
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +36 -11
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +2475 -577
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* GeneralDataProtectionRegulation service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 250.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -24,8 +24,12 @@ class GeneralDataProtectionRegulationApi {
|
|
|
24
24
|
* Get an existing GDPR request
|
|
25
25
|
*
|
|
26
26
|
* @param {String} requestId Request id
|
|
27
|
+
* @param {Object} opts Optional parameters
|
|
28
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
27
29
|
*/
|
|
28
|
-
getGdprRequest(requestId) {
|
|
30
|
+
getGdprRequest(requestId, opts) {
|
|
31
|
+
opts = opts || {};
|
|
32
|
+
|
|
29
33
|
// verify the required parameter 'requestId' is set
|
|
30
34
|
if (requestId === undefined || requestId === null || requestId === '') {
|
|
31
35
|
throw 'Missing the required parameter "requestId" when calling getGdprRequest';
|
|
@@ -41,7 +45,8 @@ class GeneralDataProtectionRegulationApi {
|
|
|
41
45
|
null,
|
|
42
46
|
['PureCloud OAuth'],
|
|
43
47
|
['application/json'],
|
|
44
|
-
['application/json']
|
|
48
|
+
['application/json'],
|
|
49
|
+
opts['customHeaders']
|
|
45
50
|
);
|
|
46
51
|
}
|
|
47
52
|
|
|
@@ -51,6 +56,7 @@ class GeneralDataProtectionRegulationApi {
|
|
|
51
56
|
* @param {Object} opts Optional parameters
|
|
52
57
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
53
58
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
59
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
54
60
|
*/
|
|
55
61
|
getGdprRequests(opts) {
|
|
56
62
|
opts = opts || {};
|
|
@@ -66,7 +72,8 @@ class GeneralDataProtectionRegulationApi {
|
|
|
66
72
|
null,
|
|
67
73
|
['PureCloud OAuth'],
|
|
68
74
|
['application/json'],
|
|
69
|
-
['application/json']
|
|
75
|
+
['application/json'],
|
|
76
|
+
opts['customHeaders']
|
|
70
77
|
);
|
|
71
78
|
}
|
|
72
79
|
|
|
@@ -75,8 +82,12 @@ class GeneralDataProtectionRegulationApi {
|
|
|
75
82
|
*
|
|
76
83
|
* @param {Object} searchType Search Type
|
|
77
84
|
* @param {String} searchValue Search Value
|
|
85
|
+
* @param {Object} opts Optional parameters
|
|
86
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
78
87
|
*/
|
|
79
|
-
getGdprSubjects(searchType, searchValue) {
|
|
88
|
+
getGdprSubjects(searchType, searchValue, opts) {
|
|
89
|
+
opts = opts || {};
|
|
90
|
+
|
|
80
91
|
// verify the required parameter 'searchType' is set
|
|
81
92
|
if (searchType === undefined || searchType === null) {
|
|
82
93
|
throw 'Missing the required parameter "searchType" when calling getGdprSubjects';
|
|
@@ -96,7 +107,8 @@ class GeneralDataProtectionRegulationApi {
|
|
|
96
107
|
null,
|
|
97
108
|
['PureCloud OAuth'],
|
|
98
109
|
['application/json'],
|
|
99
|
-
['application/json']
|
|
110
|
+
['application/json'],
|
|
111
|
+
opts['customHeaders']
|
|
100
112
|
);
|
|
101
113
|
}
|
|
102
114
|
|
|
@@ -106,6 +118,7 @@ class GeneralDataProtectionRegulationApi {
|
|
|
106
118
|
* @param {Object} body GDPR request
|
|
107
119
|
* @param {Object} opts Optional parameters
|
|
108
120
|
* @param {Boolean} opts.deleteConfirmed Confirm delete (default to false)
|
|
121
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
109
122
|
*/
|
|
110
123
|
postGdprRequests(body, opts) {
|
|
111
124
|
opts = opts || {};
|
|
@@ -125,7 +138,8 @@ class GeneralDataProtectionRegulationApi {
|
|
|
125
138
|
body,
|
|
126
139
|
['PureCloud OAuth'],
|
|
127
140
|
['application/json'],
|
|
128
|
-
['application/json']
|
|
141
|
+
['application/json'],
|
|
142
|
+
opts['customHeaders']
|
|
129
143
|
);
|
|
130
144
|
}
|
|
131
145
|
|
|
@@ -5,7 +5,7 @@ class GeolocationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Geolocation service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 250.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -23,8 +23,12 @@ class GeolocationApi {
|
|
|
23
23
|
/**
|
|
24
24
|
* Get a organization's GeolocationSettings
|
|
25
25
|
*
|
|
26
|
+
* @param {Object} opts Optional parameters
|
|
27
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
26
28
|
*/
|
|
27
|
-
getGeolocationsSettings() {
|
|
29
|
+
getGeolocationsSettings(opts) {
|
|
30
|
+
opts = opts || {};
|
|
31
|
+
|
|
28
32
|
|
|
29
33
|
return this.apiClient.callApi(
|
|
30
34
|
'/api/v2/geolocations/settings',
|
|
@@ -36,7 +40,8 @@ class GeolocationApi {
|
|
|
36
40
|
null,
|
|
37
41
|
['PureCloud OAuth'],
|
|
38
42
|
['application/json'],
|
|
39
|
-
['application/json']
|
|
43
|
+
['application/json'],
|
|
44
|
+
opts['customHeaders']
|
|
40
45
|
);
|
|
41
46
|
}
|
|
42
47
|
|
|
@@ -45,8 +50,12 @@ class GeolocationApi {
|
|
|
45
50
|
*
|
|
46
51
|
* @param {String} userId user Id
|
|
47
52
|
* @param {String} clientId client Id
|
|
53
|
+
* @param {Object} opts Optional parameters
|
|
54
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
48
55
|
*/
|
|
49
|
-
getUserGeolocation(userId, clientId) {
|
|
56
|
+
getUserGeolocation(userId, clientId, opts) {
|
|
57
|
+
opts = opts || {};
|
|
58
|
+
|
|
50
59
|
// verify the required parameter 'userId' is set
|
|
51
60
|
if (userId === undefined || userId === null || userId === '') {
|
|
52
61
|
throw 'Missing the required parameter "userId" when calling getUserGeolocation';
|
|
@@ -66,7 +75,8 @@ class GeolocationApi {
|
|
|
66
75
|
null,
|
|
67
76
|
['PureCloud OAuth'],
|
|
68
77
|
['application/json'],
|
|
69
|
-
['application/json']
|
|
78
|
+
['application/json'],
|
|
79
|
+
opts['customHeaders']
|
|
70
80
|
);
|
|
71
81
|
}
|
|
72
82
|
|
|
@@ -74,8 +84,12 @@ class GeolocationApi {
|
|
|
74
84
|
* Patch a organization's GeolocationSettings
|
|
75
85
|
*
|
|
76
86
|
* @param {Object} body Geolocation settings
|
|
87
|
+
* @param {Object} opts Optional parameters
|
|
88
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
77
89
|
*/
|
|
78
|
-
patchGeolocationsSettings(body) {
|
|
90
|
+
patchGeolocationsSettings(body, opts) {
|
|
91
|
+
opts = opts || {};
|
|
92
|
+
|
|
79
93
|
// verify the required parameter 'body' is set
|
|
80
94
|
if (body === undefined || body === null) {
|
|
81
95
|
throw 'Missing the required parameter "body" when calling patchGeolocationsSettings';
|
|
@@ -91,7 +105,8 @@ class GeolocationApi {
|
|
|
91
105
|
body,
|
|
92
106
|
['PureCloud OAuth'],
|
|
93
107
|
['application/json'],
|
|
94
|
-
['application/json']
|
|
108
|
+
['application/json'],
|
|
109
|
+
opts['customHeaders']
|
|
95
110
|
);
|
|
96
111
|
}
|
|
97
112
|
|
|
@@ -101,8 +116,12 @@ class GeolocationApi {
|
|
|
101
116
|
* @param {String} userId user Id
|
|
102
117
|
* @param {String} clientId client Id
|
|
103
118
|
* @param {Object} body Geolocation
|
|
119
|
+
* @param {Object} opts Optional parameters
|
|
120
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
104
121
|
*/
|
|
105
|
-
patchUserGeolocation(userId, clientId, body) {
|
|
122
|
+
patchUserGeolocation(userId, clientId, body, opts) {
|
|
123
|
+
opts = opts || {};
|
|
124
|
+
|
|
106
125
|
// verify the required parameter 'userId' is set
|
|
107
126
|
if (userId === undefined || userId === null || userId === '') {
|
|
108
127
|
throw 'Missing the required parameter "userId" when calling patchUserGeolocation';
|
|
@@ -126,7 +145,8 @@ class GeolocationApi {
|
|
|
126
145
|
body,
|
|
127
146
|
['PureCloud OAuth'],
|
|
128
147
|
['application/json'],
|
|
129
|
-
['application/json']
|
|
148
|
+
['application/json'],
|
|
149
|
+
opts['customHeaders']
|
|
130
150
|
);
|
|
131
151
|
}
|
|
132
152
|
|
|
@@ -5,7 +5,7 @@ class GreetingsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Greetings service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 250.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -24,8 +24,12 @@ class GreetingsApi {
|
|
|
24
24
|
* Deletes a Greeting with the given GreetingId
|
|
25
25
|
*
|
|
26
26
|
* @param {String} greetingId Greeting ID
|
|
27
|
+
* @param {Object} opts Optional parameters
|
|
28
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
27
29
|
*/
|
|
28
|
-
deleteGreeting(greetingId) {
|
|
30
|
+
deleteGreeting(greetingId, opts) {
|
|
31
|
+
opts = opts || {};
|
|
32
|
+
|
|
29
33
|
// verify the required parameter 'greetingId' is set
|
|
30
34
|
if (greetingId === undefined || greetingId === null || greetingId === '') {
|
|
31
35
|
throw 'Missing the required parameter "greetingId" when calling deleteGreeting';
|
|
@@ -41,7 +45,8 @@ class GreetingsApi {
|
|
|
41
45
|
null,
|
|
42
46
|
['PureCloud OAuth'],
|
|
43
47
|
['application/json'],
|
|
44
|
-
['application/json']
|
|
48
|
+
['application/json'],
|
|
49
|
+
opts['customHeaders']
|
|
45
50
|
);
|
|
46
51
|
}
|
|
47
52
|
|
|
@@ -49,8 +54,12 @@ class GreetingsApi {
|
|
|
49
54
|
* Get a Greeting with the given GreetingId
|
|
50
55
|
*
|
|
51
56
|
* @param {String} greetingId Greeting ID
|
|
57
|
+
* @param {Object} opts Optional parameters
|
|
58
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
52
59
|
*/
|
|
53
|
-
getGreeting(greetingId) {
|
|
60
|
+
getGreeting(greetingId, opts) {
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
|
|
54
63
|
// verify the required parameter 'greetingId' is set
|
|
55
64
|
if (greetingId === undefined || greetingId === null || greetingId === '') {
|
|
56
65
|
throw 'Missing the required parameter "greetingId" when calling getGreeting';
|
|
@@ -66,7 +75,8 @@ class GreetingsApi {
|
|
|
66
75
|
null,
|
|
67
76
|
['PureCloud OAuth'],
|
|
68
77
|
['application/json'],
|
|
69
|
-
['application/json']
|
|
78
|
+
['application/json'],
|
|
79
|
+
opts['customHeaders']
|
|
70
80
|
);
|
|
71
81
|
}
|
|
72
82
|
|
|
@@ -76,6 +86,7 @@ class GreetingsApi {
|
|
|
76
86
|
* @param {String} greetingId Greeting ID
|
|
77
87
|
* @param {Object} opts Optional parameters
|
|
78
88
|
* @param {Object} opts.formatId The desired media format. (default to WAV)
|
|
89
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
79
90
|
*/
|
|
80
91
|
getGreetingDownloads(greetingId, opts) {
|
|
81
92
|
opts = opts || {};
|
|
@@ -95,7 +106,8 @@ class GreetingsApi {
|
|
|
95
106
|
null,
|
|
96
107
|
['PureCloud OAuth'],
|
|
97
108
|
['application/json'],
|
|
98
|
-
['application/json']
|
|
109
|
+
['application/json'],
|
|
110
|
+
opts['customHeaders']
|
|
99
111
|
);
|
|
100
112
|
}
|
|
101
113
|
|
|
@@ -105,6 +117,7 @@ class GreetingsApi {
|
|
|
105
117
|
* @param {String} greetingId Greeting ID
|
|
106
118
|
* @param {Object} opts Optional parameters
|
|
107
119
|
* @param {Object} opts.formatId The desired media format. (default to WAV)
|
|
120
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
108
121
|
*/
|
|
109
122
|
getGreetingGroupsDownloads(greetingId, opts) {
|
|
110
123
|
opts = opts || {};
|
|
@@ -124,7 +137,8 @@ class GreetingsApi {
|
|
|
124
137
|
null,
|
|
125
138
|
['PureCloud OAuth'],
|
|
126
139
|
['application/json'],
|
|
127
|
-
['application/json']
|
|
140
|
+
['application/json'],
|
|
141
|
+
opts['customHeaders']
|
|
128
142
|
);
|
|
129
143
|
}
|
|
130
144
|
|
|
@@ -134,6 +148,7 @@ class GreetingsApi {
|
|
|
134
148
|
* @param {String} greetingId Greeting ID
|
|
135
149
|
* @param {Object} opts Optional parameters
|
|
136
150
|
* @param {Object} opts.formatId The desired media format. (default to WAV)
|
|
151
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
137
152
|
*/
|
|
138
153
|
getGreetingMedia(greetingId, opts) {
|
|
139
154
|
opts = opts || {};
|
|
@@ -153,7 +168,8 @@ class GreetingsApi {
|
|
|
153
168
|
null,
|
|
154
169
|
['PureCloud OAuth'],
|
|
155
170
|
['application/json'],
|
|
156
|
-
['application/json']
|
|
171
|
+
['application/json'],
|
|
172
|
+
opts['customHeaders']
|
|
157
173
|
);
|
|
158
174
|
}
|
|
159
175
|
|
|
@@ -163,6 +179,7 @@ class GreetingsApi {
|
|
|
163
179
|
* @param {String} greetingId Greeting ID
|
|
164
180
|
* @param {Object} opts Optional parameters
|
|
165
181
|
* @param {Object} opts.formatId The desired media format. (default to WAV)
|
|
182
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
166
183
|
*/
|
|
167
184
|
getGreetingUsersDownloads(greetingId, opts) {
|
|
168
185
|
opts = opts || {};
|
|
@@ -182,7 +199,8 @@ class GreetingsApi {
|
|
|
182
199
|
null,
|
|
183
200
|
['PureCloud OAuth'],
|
|
184
201
|
['application/json'],
|
|
185
|
-
['application/json']
|
|
202
|
+
['application/json'],
|
|
203
|
+
opts['customHeaders']
|
|
186
204
|
);
|
|
187
205
|
}
|
|
188
206
|
|
|
@@ -192,6 +210,7 @@ class GreetingsApi {
|
|
|
192
210
|
* @param {Object} opts Optional parameters
|
|
193
211
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
194
212
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
213
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
195
214
|
*/
|
|
196
215
|
getGreetings(opts) {
|
|
197
216
|
opts = opts || {};
|
|
@@ -207,15 +226,20 @@ class GreetingsApi {
|
|
|
207
226
|
null,
|
|
208
227
|
['PureCloud OAuth'],
|
|
209
228
|
['application/json'],
|
|
210
|
-
['application/json']
|
|
229
|
+
['application/json'],
|
|
230
|
+
opts['customHeaders']
|
|
211
231
|
);
|
|
212
232
|
}
|
|
213
233
|
|
|
214
234
|
/**
|
|
215
235
|
* Get an Organization's DefaultGreetingList
|
|
216
236
|
*
|
|
237
|
+
* @param {Object} opts Optional parameters
|
|
238
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
217
239
|
*/
|
|
218
|
-
getGreetingsDefaults() {
|
|
240
|
+
getGreetingsDefaults(opts) {
|
|
241
|
+
opts = opts || {};
|
|
242
|
+
|
|
219
243
|
|
|
220
244
|
return this.apiClient.callApi(
|
|
221
245
|
'/api/v2/greetings/defaults',
|
|
@@ -227,7 +251,8 @@ class GreetingsApi {
|
|
|
227
251
|
null,
|
|
228
252
|
['PureCloud OAuth'],
|
|
229
253
|
['application/json'],
|
|
230
|
-
['application/json']
|
|
254
|
+
['application/json'],
|
|
255
|
+
opts['customHeaders']
|
|
231
256
|
);
|
|
232
257
|
}
|
|
233
258
|
|
|
@@ -238,6 +263,7 @@ class GreetingsApi {
|
|
|
238
263
|
* @param {Object} opts Optional parameters
|
|
239
264
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
240
265
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
266
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
241
267
|
*/
|
|
242
268
|
getGroupGreetings(groupId, opts) {
|
|
243
269
|
opts = opts || {};
|
|
@@ -257,7 +283,8 @@ class GreetingsApi {
|
|
|
257
283
|
null,
|
|
258
284
|
['PureCloud OAuth'],
|
|
259
285
|
['application/json'],
|
|
260
|
-
['application/json']
|
|
286
|
+
['application/json'],
|
|
287
|
+
opts['customHeaders']
|
|
261
288
|
);
|
|
262
289
|
}
|
|
263
290
|
|
|
@@ -265,8 +292,12 @@ class GreetingsApi {
|
|
|
265
292
|
* Grabs the list of Default Greetings given a Group's ID
|
|
266
293
|
*
|
|
267
294
|
* @param {String} groupId Group ID
|
|
295
|
+
* @param {Object} opts Optional parameters
|
|
296
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
268
297
|
*/
|
|
269
|
-
getGroupGreetingsDefaults(groupId) {
|
|
298
|
+
getGroupGreetingsDefaults(groupId, opts) {
|
|
299
|
+
opts = opts || {};
|
|
300
|
+
|
|
270
301
|
// verify the required parameter 'groupId' is set
|
|
271
302
|
if (groupId === undefined || groupId === null || groupId === '') {
|
|
272
303
|
throw 'Missing the required parameter "groupId" when calling getGroupGreetingsDefaults';
|
|
@@ -282,7 +313,8 @@ class GreetingsApi {
|
|
|
282
313
|
null,
|
|
283
314
|
['PureCloud OAuth'],
|
|
284
315
|
['application/json'],
|
|
285
|
-
['application/json']
|
|
316
|
+
['application/json'],
|
|
317
|
+
opts['customHeaders']
|
|
286
318
|
);
|
|
287
319
|
}
|
|
288
320
|
|
|
@@ -293,6 +325,7 @@ class GreetingsApi {
|
|
|
293
325
|
* @param {Object} opts Optional parameters
|
|
294
326
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
295
327
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
328
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
296
329
|
*/
|
|
297
330
|
getUserGreetings(userId, opts) {
|
|
298
331
|
opts = opts || {};
|
|
@@ -312,7 +345,8 @@ class GreetingsApi {
|
|
|
312
345
|
null,
|
|
313
346
|
['PureCloud OAuth'],
|
|
314
347
|
['application/json'],
|
|
315
|
-
['application/json']
|
|
348
|
+
['application/json'],
|
|
349
|
+
opts['customHeaders']
|
|
316
350
|
);
|
|
317
351
|
}
|
|
318
352
|
|
|
@@ -320,8 +354,12 @@ class GreetingsApi {
|
|
|
320
354
|
* Grabs the list of Default Greetings given a User's ID
|
|
321
355
|
*
|
|
322
356
|
* @param {String} userId User ID
|
|
357
|
+
* @param {Object} opts Optional parameters
|
|
358
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
323
359
|
*/
|
|
324
|
-
getUserGreetingsDefaults(userId) {
|
|
360
|
+
getUserGreetingsDefaults(userId, opts) {
|
|
361
|
+
opts = opts || {};
|
|
362
|
+
|
|
325
363
|
// verify the required parameter 'userId' is set
|
|
326
364
|
if (userId === undefined || userId === null || userId === '') {
|
|
327
365
|
throw 'Missing the required parameter "userId" when calling getUserGreetingsDefaults';
|
|
@@ -337,7 +375,8 @@ class GreetingsApi {
|
|
|
337
375
|
null,
|
|
338
376
|
['PureCloud OAuth'],
|
|
339
377
|
['application/json'],
|
|
340
|
-
['application/json']
|
|
378
|
+
['application/json'],
|
|
379
|
+
opts['customHeaders']
|
|
341
380
|
);
|
|
342
381
|
}
|
|
343
382
|
|
|
@@ -345,8 +384,12 @@ class GreetingsApi {
|
|
|
345
384
|
* Create a Greeting for an Organization
|
|
346
385
|
*
|
|
347
386
|
* @param {Object} body The Greeting to create
|
|
387
|
+
* @param {Object} opts Optional parameters
|
|
388
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
348
389
|
*/
|
|
349
|
-
postGreetings(body) {
|
|
390
|
+
postGreetings(body, opts) {
|
|
391
|
+
opts = opts || {};
|
|
392
|
+
|
|
350
393
|
// verify the required parameter 'body' is set
|
|
351
394
|
if (body === undefined || body === null) {
|
|
352
395
|
throw 'Missing the required parameter "body" when calling postGreetings';
|
|
@@ -362,7 +405,8 @@ class GreetingsApi {
|
|
|
362
405
|
body,
|
|
363
406
|
['PureCloud OAuth'],
|
|
364
407
|
['application/json'],
|
|
365
|
-
['application/json']
|
|
408
|
+
['application/json'],
|
|
409
|
+
opts['customHeaders']
|
|
366
410
|
);
|
|
367
411
|
}
|
|
368
412
|
|
|
@@ -371,8 +415,12 @@ class GreetingsApi {
|
|
|
371
415
|
*
|
|
372
416
|
* @param {String} groupId Group ID
|
|
373
417
|
* @param {Object} body The Greeting to create
|
|
418
|
+
* @param {Object} opts Optional parameters
|
|
419
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
374
420
|
*/
|
|
375
|
-
postGroupGreetings(groupId, body) {
|
|
421
|
+
postGroupGreetings(groupId, body, opts) {
|
|
422
|
+
opts = opts || {};
|
|
423
|
+
|
|
376
424
|
// verify the required parameter 'groupId' is set
|
|
377
425
|
if (groupId === undefined || groupId === null || groupId === '') {
|
|
378
426
|
throw 'Missing the required parameter "groupId" when calling postGroupGreetings';
|
|
@@ -392,7 +440,8 @@ class GreetingsApi {
|
|
|
392
440
|
body,
|
|
393
441
|
['PureCloud OAuth'],
|
|
394
442
|
['application/json'],
|
|
395
|
-
['application/json']
|
|
443
|
+
['application/json'],
|
|
444
|
+
opts['customHeaders']
|
|
396
445
|
);
|
|
397
446
|
}
|
|
398
447
|
|
|
@@ -401,8 +450,12 @@ class GreetingsApi {
|
|
|
401
450
|
*
|
|
402
451
|
* @param {String} userId User ID
|
|
403
452
|
* @param {Object} body The Greeting to create
|
|
453
|
+
* @param {Object} opts Optional parameters
|
|
454
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
404
455
|
*/
|
|
405
|
-
postUserGreetings(userId, body) {
|
|
456
|
+
postUserGreetings(userId, body, opts) {
|
|
457
|
+
opts = opts || {};
|
|
458
|
+
|
|
406
459
|
// verify the required parameter 'userId' is set
|
|
407
460
|
if (userId === undefined || userId === null || userId === '') {
|
|
408
461
|
throw 'Missing the required parameter "userId" when calling postUserGreetings';
|
|
@@ -422,7 +475,8 @@ class GreetingsApi {
|
|
|
422
475
|
body,
|
|
423
476
|
['PureCloud OAuth'],
|
|
424
477
|
['application/json'],
|
|
425
|
-
['application/json']
|
|
478
|
+
['application/json'],
|
|
479
|
+
opts['customHeaders']
|
|
426
480
|
);
|
|
427
481
|
}
|
|
428
482
|
|
|
@@ -431,8 +485,12 @@ class GreetingsApi {
|
|
|
431
485
|
*
|
|
432
486
|
* @param {String} greetingId Greeting ID
|
|
433
487
|
* @param {Object} body The updated Greeting
|
|
488
|
+
* @param {Object} opts Optional parameters
|
|
489
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
434
490
|
*/
|
|
435
|
-
putGreeting(greetingId, body) {
|
|
491
|
+
putGreeting(greetingId, body, opts) {
|
|
492
|
+
opts = opts || {};
|
|
493
|
+
|
|
436
494
|
// verify the required parameter 'greetingId' is set
|
|
437
495
|
if (greetingId === undefined || greetingId === null || greetingId === '') {
|
|
438
496
|
throw 'Missing the required parameter "greetingId" when calling putGreeting';
|
|
@@ -452,7 +510,8 @@ class GreetingsApi {
|
|
|
452
510
|
body,
|
|
453
511
|
['PureCloud OAuth'],
|
|
454
512
|
['application/json'],
|
|
455
|
-
['application/json']
|
|
513
|
+
['application/json'],
|
|
514
|
+
opts['customHeaders']
|
|
456
515
|
);
|
|
457
516
|
}
|
|
458
517
|
|
|
@@ -460,8 +519,12 @@ class GreetingsApi {
|
|
|
460
519
|
* Update an Organization's DefaultGreetingList
|
|
461
520
|
*
|
|
462
521
|
* @param {Object} body The updated defaultGreetingList
|
|
522
|
+
* @param {Object} opts Optional parameters
|
|
523
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
463
524
|
*/
|
|
464
|
-
putGreetingsDefaults(body) {
|
|
525
|
+
putGreetingsDefaults(body, opts) {
|
|
526
|
+
opts = opts || {};
|
|
527
|
+
|
|
465
528
|
// verify the required parameter 'body' is set
|
|
466
529
|
if (body === undefined || body === null) {
|
|
467
530
|
throw 'Missing the required parameter "body" when calling putGreetingsDefaults';
|
|
@@ -477,7 +540,8 @@ class GreetingsApi {
|
|
|
477
540
|
body,
|
|
478
541
|
['PureCloud OAuth'],
|
|
479
542
|
['application/json'],
|
|
480
|
-
['application/json']
|
|
543
|
+
['application/json'],
|
|
544
|
+
opts['customHeaders']
|
|
481
545
|
);
|
|
482
546
|
}
|
|
483
547
|
|
|
@@ -486,8 +550,12 @@ class GreetingsApi {
|
|
|
486
550
|
*
|
|
487
551
|
* @param {String} groupId Group ID
|
|
488
552
|
* @param {Object} body The updated defaultGreetingList
|
|
553
|
+
* @param {Object} opts Optional parameters
|
|
554
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
489
555
|
*/
|
|
490
|
-
putGroupGreetingsDefaults(groupId, body) {
|
|
556
|
+
putGroupGreetingsDefaults(groupId, body, opts) {
|
|
557
|
+
opts = opts || {};
|
|
558
|
+
|
|
491
559
|
// verify the required parameter 'groupId' is set
|
|
492
560
|
if (groupId === undefined || groupId === null || groupId === '') {
|
|
493
561
|
throw 'Missing the required parameter "groupId" when calling putGroupGreetingsDefaults';
|
|
@@ -507,7 +575,8 @@ class GreetingsApi {
|
|
|
507
575
|
body,
|
|
508
576
|
['PureCloud OAuth'],
|
|
509
577
|
['application/json'],
|
|
510
|
-
['application/json']
|
|
578
|
+
['application/json'],
|
|
579
|
+
opts['customHeaders']
|
|
511
580
|
);
|
|
512
581
|
}
|
|
513
582
|
|
|
@@ -516,8 +585,12 @@ class GreetingsApi {
|
|
|
516
585
|
*
|
|
517
586
|
* @param {String} userId User ID
|
|
518
587
|
* @param {Object} body The updated defaultGreetingList
|
|
588
|
+
* @param {Object} opts Optional parameters
|
|
589
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
519
590
|
*/
|
|
520
|
-
putUserGreetingsDefaults(userId, body) {
|
|
591
|
+
putUserGreetingsDefaults(userId, body, opts) {
|
|
592
|
+
opts = opts || {};
|
|
593
|
+
|
|
521
594
|
// verify the required parameter 'userId' is set
|
|
522
595
|
if (userId === undefined || userId === null || userId === '') {
|
|
523
596
|
throw 'Missing the required parameter "userId" when calling putUserGreetingsDefaults';
|
|
@@ -537,7 +610,8 @@ class GreetingsApi {
|
|
|
537
610
|
body,
|
|
538
611
|
['PureCloud OAuth'],
|
|
539
612
|
['application/json'],
|
|
540
|
-
['application/json']
|
|
613
|
+
['application/json'],
|
|
614
|
+
opts['customHeaders']
|
|
541
615
|
);
|
|
542
616
|
}
|
|
543
617
|
|