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 CoachingApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Coaching service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 250.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -24,8 +24,12 @@ class CoachingApi {
|
|
|
24
24
|
* Delete an existing appointment
|
|
25
25
|
* Permission not required if you are the creator of the appointment
|
|
26
26
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
27
|
+
* @param {Object} opts Optional parameters
|
|
28
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
27
29
|
*/
|
|
28
|
-
deleteCoachingAppointment(appointmentId) {
|
|
30
|
+
deleteCoachingAppointment(appointmentId, opts) {
|
|
31
|
+
opts = opts || {};
|
|
32
|
+
|
|
29
33
|
// verify the required parameter 'appointmentId' is set
|
|
30
34
|
if (appointmentId === undefined || appointmentId === null || appointmentId === '') {
|
|
31
35
|
throw 'Missing the required parameter "appointmentId" when calling deleteCoachingAppointment';
|
|
@@ -41,7 +45,8 @@ class CoachingApi {
|
|
|
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
|
|
|
@@ -50,8 +55,12 @@ class CoachingApi {
|
|
|
50
55
|
* You must have the appropriate permission for the type of annotation you are updating. Permission not required if you are the creator or facilitator of the appointment
|
|
51
56
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
52
57
|
* @param {String} annotationId The ID of the annotation.
|
|
58
|
+
* @param {Object} opts Optional parameters
|
|
59
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
53
60
|
*/
|
|
54
|
-
deleteCoachingAppointmentAnnotation(appointmentId, annotationId) {
|
|
61
|
+
deleteCoachingAppointmentAnnotation(appointmentId, annotationId, opts) {
|
|
62
|
+
opts = opts || {};
|
|
63
|
+
|
|
55
64
|
// verify the required parameter 'appointmentId' is set
|
|
56
65
|
if (appointmentId === undefined || appointmentId === null || appointmentId === '') {
|
|
57
66
|
throw 'Missing the required parameter "appointmentId" when calling deleteCoachingAppointmentAnnotation';
|
|
@@ -71,7 +80,8 @@ class CoachingApi {
|
|
|
71
80
|
null,
|
|
72
81
|
['PureCloud OAuth'],
|
|
73
82
|
['application/json'],
|
|
74
|
-
['application/json']
|
|
83
|
+
['application/json'],
|
|
84
|
+
opts['customHeaders']
|
|
75
85
|
);
|
|
76
86
|
}
|
|
77
87
|
|
|
@@ -79,8 +89,12 @@ class CoachingApi {
|
|
|
79
89
|
* Retrieve an appointment
|
|
80
90
|
* Permission not required if you are the attendee, creator or facilitator of the appointment
|
|
81
91
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
92
|
+
* @param {Object} opts Optional parameters
|
|
93
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
82
94
|
*/
|
|
83
|
-
getCoachingAppointment(appointmentId) {
|
|
95
|
+
getCoachingAppointment(appointmentId, opts) {
|
|
96
|
+
opts = opts || {};
|
|
97
|
+
|
|
84
98
|
// verify the required parameter 'appointmentId' is set
|
|
85
99
|
if (appointmentId === undefined || appointmentId === null || appointmentId === '') {
|
|
86
100
|
throw 'Missing the required parameter "appointmentId" when calling getCoachingAppointment';
|
|
@@ -96,7 +110,8 @@ class CoachingApi {
|
|
|
96
110
|
null,
|
|
97
111
|
['PureCloud OAuth'],
|
|
98
112
|
['application/json'],
|
|
99
|
-
['application/json']
|
|
113
|
+
['application/json'],
|
|
114
|
+
opts['customHeaders']
|
|
100
115
|
);
|
|
101
116
|
}
|
|
102
117
|
|
|
@@ -105,8 +120,12 @@ class CoachingApi {
|
|
|
105
120
|
* You must have the appropriate permission for the type of annotation you are creating. Permission not required if you are related to the appointment (only the creator or facilitator can view private annotations).
|
|
106
121
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
107
122
|
* @param {String} annotationId The ID of the annotation.
|
|
123
|
+
* @param {Object} opts Optional parameters
|
|
124
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
108
125
|
*/
|
|
109
|
-
getCoachingAppointmentAnnotation(appointmentId, annotationId) {
|
|
126
|
+
getCoachingAppointmentAnnotation(appointmentId, annotationId, opts) {
|
|
127
|
+
opts = opts || {};
|
|
128
|
+
|
|
110
129
|
// verify the required parameter 'appointmentId' is set
|
|
111
130
|
if (appointmentId === undefined || appointmentId === null || appointmentId === '') {
|
|
112
131
|
throw 'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotation';
|
|
@@ -126,7 +145,8 @@ class CoachingApi {
|
|
|
126
145
|
null,
|
|
127
146
|
['PureCloud OAuth'],
|
|
128
147
|
['application/json'],
|
|
129
|
-
['application/json']
|
|
148
|
+
['application/json'],
|
|
149
|
+
opts['customHeaders']
|
|
130
150
|
);
|
|
131
151
|
}
|
|
132
152
|
|
|
@@ -137,6 +157,7 @@ class CoachingApi {
|
|
|
137
157
|
* @param {Object} opts Optional parameters
|
|
138
158
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
139
159
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
160
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
140
161
|
*/
|
|
141
162
|
getCoachingAppointmentAnnotations(appointmentId, opts) {
|
|
142
163
|
opts = opts || {};
|
|
@@ -156,7 +177,8 @@ class CoachingApi {
|
|
|
156
177
|
null,
|
|
157
178
|
['PureCloud OAuth'],
|
|
158
179
|
['application/json'],
|
|
159
|
-
['application/json']
|
|
180
|
+
['application/json'],
|
|
181
|
+
opts['customHeaders']
|
|
160
182
|
);
|
|
161
183
|
}
|
|
162
184
|
|
|
@@ -167,6 +189,7 @@ class CoachingApi {
|
|
|
167
189
|
* @param {Object} opts Optional parameters
|
|
168
190
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
169
191
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
192
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
170
193
|
*/
|
|
171
194
|
getCoachingAppointmentStatuses(appointmentId, opts) {
|
|
172
195
|
opts = opts || {};
|
|
@@ -186,7 +209,8 @@ class CoachingApi {
|
|
|
186
209
|
null,
|
|
187
210
|
['PureCloud OAuth'],
|
|
188
211
|
['application/json'],
|
|
189
|
-
['application/json']
|
|
212
|
+
['application/json'],
|
|
213
|
+
opts['customHeaders']
|
|
190
214
|
);
|
|
191
215
|
}
|
|
192
216
|
|
|
@@ -205,6 +229,7 @@ class CoachingApi {
|
|
|
205
229
|
* @param {String} opts.completionInterval Appointment completion start and end to filter by. End date is not inclusive. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
|
|
206
230
|
* @param {Object} opts.overdue Overdue status to filter by
|
|
207
231
|
* @param {Object} opts.intervalCondition Filter condition for interval
|
|
232
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
208
233
|
*/
|
|
209
234
|
getCoachingAppointments(userIds, opts) {
|
|
210
235
|
opts = opts || {};
|
|
@@ -224,7 +249,8 @@ class CoachingApi {
|
|
|
224
249
|
null,
|
|
225
250
|
['PureCloud OAuth'],
|
|
226
251
|
['application/json'],
|
|
227
|
-
['application/json']
|
|
252
|
+
['application/json'],
|
|
253
|
+
opts['customHeaders']
|
|
228
254
|
);
|
|
229
255
|
}
|
|
230
256
|
|
|
@@ -242,6 +268,7 @@ class CoachingApi {
|
|
|
242
268
|
* @param {String} opts.completionInterval Appointment completion start and end to filter by. End date is not inclusive. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
|
|
243
269
|
* @param {Object} opts.overdue Overdue status to filter by
|
|
244
270
|
* @param {Object} opts.intervalCondition Filter condition for interval
|
|
271
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
245
272
|
*/
|
|
246
273
|
getCoachingAppointmentsMe(opts) {
|
|
247
274
|
opts = opts || {};
|
|
@@ -257,7 +284,8 @@ class CoachingApi {
|
|
|
257
284
|
null,
|
|
258
285
|
['PureCloud OAuth'],
|
|
259
286
|
['application/json'],
|
|
260
|
-
['application/json']
|
|
287
|
+
['application/json'],
|
|
288
|
+
opts['customHeaders']
|
|
261
289
|
);
|
|
262
290
|
}
|
|
263
291
|
|
|
@@ -267,6 +295,7 @@ class CoachingApi {
|
|
|
267
295
|
* @param {String} notificationId The ID of the notification.
|
|
268
296
|
* @param {Object} opts Optional parameters
|
|
269
297
|
* @param {Array.<String>} opts.expand Indicates a field in the response which should be expanded.
|
|
298
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
270
299
|
*/
|
|
271
300
|
getCoachingNotification(notificationId, opts) {
|
|
272
301
|
opts = opts || {};
|
|
@@ -286,7 +315,8 @@ class CoachingApi {
|
|
|
286
315
|
null,
|
|
287
316
|
['PureCloud OAuth'],
|
|
288
317
|
['application/json'],
|
|
289
|
-
['application/json']
|
|
318
|
+
['application/json'],
|
|
319
|
+
opts['customHeaders']
|
|
290
320
|
);
|
|
291
321
|
}
|
|
292
322
|
|
|
@@ -297,6 +327,7 @@ class CoachingApi {
|
|
|
297
327
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
298
328
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
299
329
|
* @param {Array.<String>} opts.expand Indicates a field in the response which should be expanded.
|
|
330
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
300
331
|
*/
|
|
301
332
|
getCoachingNotifications(opts) {
|
|
302
333
|
opts = opts || {};
|
|
@@ -312,7 +343,8 @@ class CoachingApi {
|
|
|
312
343
|
null,
|
|
313
344
|
['PureCloud OAuth'],
|
|
314
345
|
['application/json'],
|
|
315
|
-
['application/json']
|
|
346
|
+
['application/json'],
|
|
347
|
+
opts['customHeaders']
|
|
316
348
|
);
|
|
317
349
|
}
|
|
318
350
|
|
|
@@ -320,8 +352,12 @@ class CoachingApi {
|
|
|
320
352
|
* Retrieve the status of the job for the slots where a coaching appointment can be scheduled.
|
|
321
353
|
*
|
|
322
354
|
* @param {String} jobId The ID of job
|
|
355
|
+
* @param {Object} opts Optional parameters
|
|
356
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
323
357
|
*/
|
|
324
|
-
getCoachingScheduleslotsJob(jobId) {
|
|
358
|
+
getCoachingScheduleslotsJob(jobId, opts) {
|
|
359
|
+
opts = opts || {};
|
|
360
|
+
|
|
325
361
|
// verify the required parameter 'jobId' is set
|
|
326
362
|
if (jobId === undefined || jobId === null || jobId === '') {
|
|
327
363
|
throw 'Missing the required parameter "jobId" when calling getCoachingScheduleslotsJob';
|
|
@@ -337,7 +373,8 @@ class CoachingApi {
|
|
|
337
373
|
null,
|
|
338
374
|
['PureCloud OAuth'],
|
|
339
375
|
['application/json'],
|
|
340
|
-
['application/json']
|
|
376
|
+
['application/json'],
|
|
377
|
+
opts['customHeaders']
|
|
341
378
|
);
|
|
342
379
|
}
|
|
343
380
|
|
|
@@ -346,8 +383,12 @@ class CoachingApi {
|
|
|
346
383
|
* Permission not required if you are the creator or facilitator of the appointment
|
|
347
384
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
348
385
|
* @param {Object} body The new version of the appointment
|
|
386
|
+
* @param {Object} opts Optional parameters
|
|
387
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
349
388
|
*/
|
|
350
|
-
patchCoachingAppointment(appointmentId, body) {
|
|
389
|
+
patchCoachingAppointment(appointmentId, body, opts) {
|
|
390
|
+
opts = opts || {};
|
|
391
|
+
|
|
351
392
|
// verify the required parameter 'appointmentId' is set
|
|
352
393
|
if (appointmentId === undefined || appointmentId === null || appointmentId === '') {
|
|
353
394
|
throw 'Missing the required parameter "appointmentId" when calling patchCoachingAppointment';
|
|
@@ -367,7 +408,8 @@ class CoachingApi {
|
|
|
367
408
|
body,
|
|
368
409
|
['PureCloud OAuth'],
|
|
369
410
|
['application/json'],
|
|
370
|
-
['application/json']
|
|
411
|
+
['application/json'],
|
|
412
|
+
opts['customHeaders']
|
|
371
413
|
);
|
|
372
414
|
}
|
|
373
415
|
|
|
@@ -377,8 +419,12 @@ class CoachingApi {
|
|
|
377
419
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
378
420
|
* @param {String} annotationId The ID of the annotation.
|
|
379
421
|
* @param {Object} body The new version of the annotation
|
|
422
|
+
* @param {Object} opts Optional parameters
|
|
423
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
380
424
|
*/
|
|
381
|
-
patchCoachingAppointmentAnnotation(appointmentId, annotationId, body) {
|
|
425
|
+
patchCoachingAppointmentAnnotation(appointmentId, annotationId, body, opts) {
|
|
426
|
+
opts = opts || {};
|
|
427
|
+
|
|
382
428
|
// verify the required parameter 'appointmentId' is set
|
|
383
429
|
if (appointmentId === undefined || appointmentId === null || appointmentId === '') {
|
|
384
430
|
throw 'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentAnnotation';
|
|
@@ -402,7 +448,8 @@ class CoachingApi {
|
|
|
402
448
|
body,
|
|
403
449
|
['PureCloud OAuth'],
|
|
404
450
|
['application/json'],
|
|
405
|
-
['application/json']
|
|
451
|
+
['application/json'],
|
|
452
|
+
opts['customHeaders']
|
|
406
453
|
);
|
|
407
454
|
}
|
|
408
455
|
|
|
@@ -411,8 +458,12 @@ class CoachingApi {
|
|
|
411
458
|
* Permission not required if you are an attendee, creator or facilitator of the appointment
|
|
412
459
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
413
460
|
* @param {Object} body Updated status of the coaching appointment
|
|
461
|
+
* @param {Object} opts Optional parameters
|
|
462
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
414
463
|
*/
|
|
415
|
-
patchCoachingAppointmentStatus(appointmentId, body) {
|
|
464
|
+
patchCoachingAppointmentStatus(appointmentId, body, opts) {
|
|
465
|
+
opts = opts || {};
|
|
466
|
+
|
|
416
467
|
// verify the required parameter 'appointmentId' is set
|
|
417
468
|
if (appointmentId === undefined || appointmentId === null || appointmentId === '') {
|
|
418
469
|
throw 'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentStatus';
|
|
@@ -432,7 +483,8 @@ class CoachingApi {
|
|
|
432
483
|
body,
|
|
433
484
|
['PureCloud OAuth'],
|
|
434
485
|
['application/json'],
|
|
435
|
-
['application/json']
|
|
486
|
+
['application/json'],
|
|
487
|
+
opts['customHeaders']
|
|
436
488
|
);
|
|
437
489
|
}
|
|
438
490
|
|
|
@@ -441,8 +493,12 @@ class CoachingApi {
|
|
|
441
493
|
* Can only update your own notifications.
|
|
442
494
|
* @param {String} notificationId The ID of the notification.
|
|
443
495
|
* @param {Object} body Change the read state of a notification
|
|
496
|
+
* @param {Object} opts Optional parameters
|
|
497
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
444
498
|
*/
|
|
445
|
-
patchCoachingNotification(notificationId, body) {
|
|
499
|
+
patchCoachingNotification(notificationId, body, opts) {
|
|
500
|
+
opts = opts || {};
|
|
501
|
+
|
|
446
502
|
// verify the required parameter 'notificationId' is set
|
|
447
503
|
if (notificationId === undefined || notificationId === null || notificationId === '') {
|
|
448
504
|
throw 'Missing the required parameter "notificationId" when calling patchCoachingNotification';
|
|
@@ -462,7 +518,8 @@ class CoachingApi {
|
|
|
462
518
|
body,
|
|
463
519
|
['PureCloud OAuth'],
|
|
464
520
|
['application/json'],
|
|
465
|
-
['application/json']
|
|
521
|
+
['application/json'],
|
|
522
|
+
opts['customHeaders']
|
|
466
523
|
);
|
|
467
524
|
}
|
|
468
525
|
|
|
@@ -471,8 +528,12 @@ class CoachingApi {
|
|
|
471
528
|
* You must have the appropriate permission for the type of annotation you are creating. Permission not required if you are related to the appointment (only the creator or facilitator can create private annotations).
|
|
472
529
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
473
530
|
* @param {Object} body The annotation to add
|
|
531
|
+
* @param {Object} opts Optional parameters
|
|
532
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
474
533
|
*/
|
|
475
|
-
postCoachingAppointmentAnnotations(appointmentId, body) {
|
|
534
|
+
postCoachingAppointmentAnnotations(appointmentId, body, opts) {
|
|
535
|
+
opts = opts || {};
|
|
536
|
+
|
|
476
537
|
// verify the required parameter 'appointmentId' is set
|
|
477
538
|
if (appointmentId === undefined || appointmentId === null || appointmentId === '') {
|
|
478
539
|
throw 'Missing the required parameter "appointmentId" when calling postCoachingAppointmentAnnotations';
|
|
@@ -492,7 +553,8 @@ class CoachingApi {
|
|
|
492
553
|
body,
|
|
493
554
|
['PureCloud OAuth'],
|
|
494
555
|
['application/json'],
|
|
495
|
-
['application/json']
|
|
556
|
+
['application/json'],
|
|
557
|
+
opts['customHeaders']
|
|
496
558
|
);
|
|
497
559
|
}
|
|
498
560
|
|
|
@@ -501,8 +563,12 @@ class CoachingApi {
|
|
|
501
563
|
* Permission not required if you are the creator or facilitator of the appointment
|
|
502
564
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
503
565
|
* @param {Object} body body
|
|
566
|
+
* @param {Object} opts Optional parameters
|
|
567
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
504
568
|
*/
|
|
505
|
-
postCoachingAppointmentConversations(appointmentId, body) {
|
|
569
|
+
postCoachingAppointmentConversations(appointmentId, body, opts) {
|
|
570
|
+
opts = opts || {};
|
|
571
|
+
|
|
506
572
|
// verify the required parameter 'appointmentId' is set
|
|
507
573
|
if (appointmentId === undefined || appointmentId === null || appointmentId === '') {
|
|
508
574
|
throw 'Missing the required parameter "appointmentId" when calling postCoachingAppointmentConversations';
|
|
@@ -522,7 +588,8 @@ class CoachingApi {
|
|
|
522
588
|
body,
|
|
523
589
|
['PureCloud OAuth'],
|
|
524
590
|
['application/json'],
|
|
525
|
-
['application/json']
|
|
591
|
+
['application/json'],
|
|
592
|
+
opts['customHeaders']
|
|
526
593
|
);
|
|
527
594
|
}
|
|
528
595
|
|
|
@@ -530,8 +597,12 @@ class CoachingApi {
|
|
|
530
597
|
* Create a new appointment
|
|
531
598
|
*
|
|
532
599
|
* @param {Object} body The appointment to add
|
|
600
|
+
* @param {Object} opts Optional parameters
|
|
601
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
533
602
|
*/
|
|
534
|
-
postCoachingAppointments(body) {
|
|
603
|
+
postCoachingAppointments(body, opts) {
|
|
604
|
+
opts = opts || {};
|
|
605
|
+
|
|
535
606
|
// verify the required parameter 'body' is set
|
|
536
607
|
if (body === undefined || body === null) {
|
|
537
608
|
throw 'Missing the required parameter "body" when calling postCoachingAppointments';
|
|
@@ -547,7 +618,8 @@ class CoachingApi {
|
|
|
547
618
|
body,
|
|
548
619
|
['PureCloud OAuth'],
|
|
549
620
|
['application/json'],
|
|
550
|
-
['application/json']
|
|
621
|
+
['application/json'],
|
|
622
|
+
opts['customHeaders']
|
|
551
623
|
);
|
|
552
624
|
}
|
|
553
625
|
|
|
@@ -555,8 +627,12 @@ class CoachingApi {
|
|
|
555
627
|
* Retrieve aggregated appointment data
|
|
556
628
|
*
|
|
557
629
|
* @param {Object} body Aggregate Request
|
|
630
|
+
* @param {Object} opts Optional parameters
|
|
631
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
558
632
|
*/
|
|
559
|
-
postCoachingAppointmentsAggregatesQuery(body) {
|
|
633
|
+
postCoachingAppointmentsAggregatesQuery(body, opts) {
|
|
634
|
+
opts = opts || {};
|
|
635
|
+
|
|
560
636
|
// verify the required parameter 'body' is set
|
|
561
637
|
if (body === undefined || body === null) {
|
|
562
638
|
throw 'Missing the required parameter "body" when calling postCoachingAppointmentsAggregatesQuery';
|
|
@@ -572,7 +648,8 @@ class CoachingApi {
|
|
|
572
648
|
body,
|
|
573
649
|
['PureCloud OAuth'],
|
|
574
650
|
['application/json'],
|
|
575
|
-
['application/json']
|
|
651
|
+
['application/json'],
|
|
652
|
+
opts['customHeaders']
|
|
576
653
|
);
|
|
577
654
|
}
|
|
578
655
|
|
|
@@ -580,8 +657,12 @@ class CoachingApi {
|
|
|
580
657
|
* Start job to retrieve the slots where a coaching appointment can be scheduled.
|
|
581
658
|
*
|
|
582
659
|
* @param {Object} body The slots search request
|
|
660
|
+
* @param {Object} opts Optional parameters
|
|
661
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
583
662
|
*/
|
|
584
|
-
postCoachingScheduleslotsJobs(body) {
|
|
663
|
+
postCoachingScheduleslotsJobs(body, opts) {
|
|
664
|
+
opts = opts || {};
|
|
665
|
+
|
|
585
666
|
// verify the required parameter 'body' is set
|
|
586
667
|
if (body === undefined || body === null) {
|
|
587
668
|
throw 'Missing the required parameter "body" when calling postCoachingScheduleslotsJobs';
|
|
@@ -597,7 +678,8 @@ class CoachingApi {
|
|
|
597
678
|
body,
|
|
598
679
|
['PureCloud OAuth'],
|
|
599
680
|
['application/json'],
|
|
600
|
-
['application/json']
|
|
681
|
+
['application/json'],
|
|
682
|
+
opts['customHeaders']
|
|
601
683
|
);
|
|
602
684
|
}
|
|
603
685
|
|
|
@@ -605,8 +687,12 @@ class CoachingApi {
|
|
|
605
687
|
* Get list of possible slots where a coaching appointment can be scheduled.
|
|
606
688
|
*
|
|
607
689
|
* @param {Object} body The slot search request
|
|
690
|
+
* @param {Object} opts Optional parameters
|
|
691
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
608
692
|
*/
|
|
609
|
-
postCoachingScheduleslotsQuery(body) {
|
|
693
|
+
postCoachingScheduleslotsQuery(body, opts) {
|
|
694
|
+
opts = opts || {};
|
|
695
|
+
|
|
610
696
|
// verify the required parameter 'body' is set
|
|
611
697
|
if (body === undefined || body === null) {
|
|
612
698
|
throw 'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';
|
|
@@ -622,7 +708,8 @@ class CoachingApi {
|
|
|
622
708
|
body,
|
|
623
709
|
['PureCloud OAuth'],
|
|
624
710
|
['application/json'],
|
|
625
|
-
['application/json']
|
|
711
|
+
['application/json'],
|
|
712
|
+
opts['customHeaders']
|
|
626
713
|
);
|
|
627
714
|
}
|
|
628
715
|
|