purecloud-platform-client-v2 171.0.0 → 173.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 +1056 -91
- package/dist/web-amd/purecloud-platform-client-v2.js +1056 -91
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +1056 -91
- package/dist/web-cjs/purecloud-platform-client-v2.js +1056 -91
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +631 -214
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +337 -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 +259 -9
- 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 +70 -0
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +10 -4
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +204 -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/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 +1 -1
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +70 -0
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +31 -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 +2 -2
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +7 -7
- package/src/purecloud-platform-client-v2/index.js +13 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ class AlertingApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Alerting service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 173.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -20,6 +20,31 @@ class AlertingApi {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Delete an alert
|
|
25
|
+
*
|
|
26
|
+
* @param {String} alertId Alert ID
|
|
27
|
+
*/
|
|
28
|
+
deleteAlertingAlert(alertId) {
|
|
29
|
+
// verify the required parameter 'alertId' is set
|
|
30
|
+
if (alertId === undefined || alertId === null) {
|
|
31
|
+
throw 'Missing the required parameter "alertId" when calling deleteAlertingAlert';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return this.apiClient.callApi(
|
|
35
|
+
'/api/v2/alerting/alerts/{alertId}',
|
|
36
|
+
'DELETE',
|
|
37
|
+
{ 'alertId': alertId },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
|
+
null,
|
|
42
|
+
['PureCloud OAuth'],
|
|
43
|
+
['application/json'],
|
|
44
|
+
['application/json']
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
23
48
|
/**
|
|
24
49
|
* Delete an interaction stats alert
|
|
25
50
|
*
|
|
@@ -70,6 +95,56 @@ class AlertingApi {
|
|
|
70
95
|
);
|
|
71
96
|
}
|
|
72
97
|
|
|
98
|
+
/**
|
|
99
|
+
* Delete a rule.
|
|
100
|
+
*
|
|
101
|
+
* @param {String} ruleId Rule Id
|
|
102
|
+
*/
|
|
103
|
+
deleteAlertingRule(ruleId) {
|
|
104
|
+
// verify the required parameter 'ruleId' is set
|
|
105
|
+
if (ruleId === undefined || ruleId === null) {
|
|
106
|
+
throw 'Missing the required parameter "ruleId" when calling deleteAlertingRule';
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return this.apiClient.callApi(
|
|
110
|
+
'/api/v2/alerting/rules/{ruleId}',
|
|
111
|
+
'DELETE',
|
|
112
|
+
{ 'ruleId': ruleId },
|
|
113
|
+
{ },
|
|
114
|
+
{ },
|
|
115
|
+
{ },
|
|
116
|
+
null,
|
|
117
|
+
['PureCloud OAuth'],
|
|
118
|
+
['application/json'],
|
|
119
|
+
['application/json']
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Get an alert
|
|
125
|
+
*
|
|
126
|
+
* @param {String} alertId Alert ID
|
|
127
|
+
*/
|
|
128
|
+
getAlertingAlert(alertId) {
|
|
129
|
+
// verify the required parameter 'alertId' is set
|
|
130
|
+
if (alertId === undefined || alertId === null) {
|
|
131
|
+
throw 'Missing the required parameter "alertId" when calling getAlertingAlert';
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return this.apiClient.callApi(
|
|
135
|
+
'/api/v2/alerting/alerts/{alertId}',
|
|
136
|
+
'GET',
|
|
137
|
+
{ 'alertId': alertId },
|
|
138
|
+
{ },
|
|
139
|
+
{ },
|
|
140
|
+
{ },
|
|
141
|
+
null,
|
|
142
|
+
['PureCloud OAuth'],
|
|
143
|
+
['application/json'],
|
|
144
|
+
['application/json']
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
73
148
|
/**
|
|
74
149
|
* Gets active alert count for a user.
|
|
75
150
|
*
|
|
@@ -216,6 +291,134 @@ class AlertingApi {
|
|
|
216
291
|
);
|
|
217
292
|
}
|
|
218
293
|
|
|
294
|
+
/**
|
|
295
|
+
* Get a rule.
|
|
296
|
+
*
|
|
297
|
+
* @param {String} ruleId Rule Id
|
|
298
|
+
*/
|
|
299
|
+
getAlertingRule(ruleId) {
|
|
300
|
+
// verify the required parameter 'ruleId' is set
|
|
301
|
+
if (ruleId === undefined || ruleId === null) {
|
|
302
|
+
throw 'Missing the required parameter "ruleId" when calling getAlertingRule';
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
return this.apiClient.callApi(
|
|
306
|
+
'/api/v2/alerting/rules/{ruleId}',
|
|
307
|
+
'GET',
|
|
308
|
+
{ 'ruleId': ruleId },
|
|
309
|
+
{ },
|
|
310
|
+
{ },
|
|
311
|
+
{ },
|
|
312
|
+
null,
|
|
313
|
+
['PureCloud OAuth'],
|
|
314
|
+
['application/json'],
|
|
315
|
+
['application/json']
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Allows an entity to mute/snooze an alert or update the unread status of the alert.
|
|
321
|
+
* Snoozing an alert temporarily stop it from resending notifications to individualsas well as other services within Genesys Cloud for a given period. Muting an alert will only block the notifications to individuals.
|
|
322
|
+
* @param {String} alertId Alert ID
|
|
323
|
+
* @param {Object} opts Optional parameters
|
|
324
|
+
* @param {Object} opts.body
|
|
325
|
+
*/
|
|
326
|
+
patchAlertingAlert(alertId, opts) {
|
|
327
|
+
opts = opts || {};
|
|
328
|
+
|
|
329
|
+
// verify the required parameter 'alertId' is set
|
|
330
|
+
if (alertId === undefined || alertId === null) {
|
|
331
|
+
throw 'Missing the required parameter "alertId" when calling patchAlertingAlert';
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
return this.apiClient.callApi(
|
|
335
|
+
'/api/v2/alerting/alerts/{alertId}',
|
|
336
|
+
'PATCH',
|
|
337
|
+
{ 'alertId': alertId },
|
|
338
|
+
{ },
|
|
339
|
+
{ },
|
|
340
|
+
{ },
|
|
341
|
+
opts['body'],
|
|
342
|
+
['PureCloud OAuth'],
|
|
343
|
+
['application/json'],
|
|
344
|
+
['application/json']
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Bulk alert updates
|
|
350
|
+
*
|
|
351
|
+
* @param {Object} body
|
|
352
|
+
*/
|
|
353
|
+
patchAlertingAlertsBulk(body) {
|
|
354
|
+
// verify the required parameter 'body' is set
|
|
355
|
+
if (body === undefined || body === null) {
|
|
356
|
+
throw 'Missing the required parameter "body" when calling patchAlertingAlertsBulk';
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
return this.apiClient.callApi(
|
|
360
|
+
'/api/v2/alerting/alerts/bulk',
|
|
361
|
+
'PATCH',
|
|
362
|
+
{ },
|
|
363
|
+
{ },
|
|
364
|
+
{ },
|
|
365
|
+
{ },
|
|
366
|
+
body,
|
|
367
|
+
['PureCloud OAuth'],
|
|
368
|
+
['application/json'],
|
|
369
|
+
['application/json']
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Bulk update of notification lists
|
|
375
|
+
*
|
|
376
|
+
* @param {Object} body
|
|
377
|
+
*/
|
|
378
|
+
patchAlertingRulesBulk(body) {
|
|
379
|
+
// verify the required parameter 'body' is set
|
|
380
|
+
if (body === undefined || body === null) {
|
|
381
|
+
throw 'Missing the required parameter "body" when calling patchAlertingRulesBulk';
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
return this.apiClient.callApi(
|
|
385
|
+
'/api/v2/alerting/rules/bulk',
|
|
386
|
+
'PATCH',
|
|
387
|
+
{ },
|
|
388
|
+
{ },
|
|
389
|
+
{ },
|
|
390
|
+
{ },
|
|
391
|
+
body,
|
|
392
|
+
['PureCloud OAuth'],
|
|
393
|
+
['application/json'],
|
|
394
|
+
['application/json']
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Gets a paged list of alerts. The max page size is 50
|
|
400
|
+
*
|
|
401
|
+
* @param {Object} opts Optional parameters
|
|
402
|
+
* @param {Object} opts.body
|
|
403
|
+
*/
|
|
404
|
+
postAlertingAlertsQuery(opts) {
|
|
405
|
+
opts = opts || {};
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
return this.apiClient.callApi(
|
|
409
|
+
'/api/v2/alerting/alerts/query',
|
|
410
|
+
'POST',
|
|
411
|
+
{ },
|
|
412
|
+
{ },
|
|
413
|
+
{ },
|
|
414
|
+
{ },
|
|
415
|
+
opts['body'],
|
|
416
|
+
['PureCloud OAuth'],
|
|
417
|
+
['application/json'],
|
|
418
|
+
['application/json']
|
|
419
|
+
);
|
|
420
|
+
}
|
|
421
|
+
|
|
219
422
|
/**
|
|
220
423
|
* Create an interaction stats rule.
|
|
221
424
|
*
|
|
@@ -245,6 +448,109 @@ class AlertingApi {
|
|
|
245
448
|
);
|
|
246
449
|
}
|
|
247
450
|
|
|
451
|
+
/**
|
|
452
|
+
* Create a Rule.
|
|
453
|
+
*
|
|
454
|
+
* @param {Object} body rule to be created
|
|
455
|
+
*/
|
|
456
|
+
postAlertingRules(body) {
|
|
457
|
+
// verify the required parameter 'body' is set
|
|
458
|
+
if (body === undefined || body === null) {
|
|
459
|
+
throw 'Missing the required parameter "body" when calling postAlertingRules';
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
return this.apiClient.callApi(
|
|
463
|
+
'/api/v2/alerting/rules',
|
|
464
|
+
'POST',
|
|
465
|
+
{ },
|
|
466
|
+
{ },
|
|
467
|
+
{ },
|
|
468
|
+
{ },
|
|
469
|
+
body,
|
|
470
|
+
['PureCloud OAuth'],
|
|
471
|
+
['application/json'],
|
|
472
|
+
['application/json']
|
|
473
|
+
);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Bulk remove rules
|
|
478
|
+
*
|
|
479
|
+
* @param {Object} body
|
|
480
|
+
*/
|
|
481
|
+
postAlertingRulesBulkRemove(body) {
|
|
482
|
+
// verify the required parameter 'body' is set
|
|
483
|
+
if (body === undefined || body === null) {
|
|
484
|
+
throw 'Missing the required parameter "body" when calling postAlertingRulesBulkRemove';
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
return this.apiClient.callApi(
|
|
488
|
+
'/api/v2/alerting/rules/bulk/remove',
|
|
489
|
+
'POST',
|
|
490
|
+
{ },
|
|
491
|
+
{ },
|
|
492
|
+
{ },
|
|
493
|
+
{ },
|
|
494
|
+
body,
|
|
495
|
+
['PureCloud OAuth'],
|
|
496
|
+
['application/json'],
|
|
497
|
+
['application/json']
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Get a paged list of rules. The max size of the page is 50 items.
|
|
503
|
+
*
|
|
504
|
+
* @param {Object} opts Optional parameters
|
|
505
|
+
* @param {Object} opts.body
|
|
506
|
+
*/
|
|
507
|
+
postAlertingRulesQuery(opts) {
|
|
508
|
+
opts = opts || {};
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
return this.apiClient.callApi(
|
|
512
|
+
'/api/v2/alerting/rules/query',
|
|
513
|
+
'POST',
|
|
514
|
+
{ },
|
|
515
|
+
{ },
|
|
516
|
+
{ },
|
|
517
|
+
{ },
|
|
518
|
+
opts['body'],
|
|
519
|
+
['PureCloud OAuth'],
|
|
520
|
+
['application/json'],
|
|
521
|
+
['application/json']
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Update an alert read status
|
|
527
|
+
*
|
|
528
|
+
* @param {String} alertId Alert ID
|
|
529
|
+
* @param {Object} opts Optional parameters
|
|
530
|
+
* @param {Object} opts.body
|
|
531
|
+
*/
|
|
532
|
+
putAlertingAlert(alertId, opts) {
|
|
533
|
+
opts = opts || {};
|
|
534
|
+
|
|
535
|
+
// verify the required parameter 'alertId' is set
|
|
536
|
+
if (alertId === undefined || alertId === null) {
|
|
537
|
+
throw 'Missing the required parameter "alertId" when calling putAlertingAlert';
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
return this.apiClient.callApi(
|
|
541
|
+
'/api/v2/alerting/alerts/{alertId}',
|
|
542
|
+
'PUT',
|
|
543
|
+
{ 'alertId': alertId },
|
|
544
|
+
{ },
|
|
545
|
+
{ },
|
|
546
|
+
{ },
|
|
547
|
+
opts['body'],
|
|
548
|
+
['PureCloud OAuth'],
|
|
549
|
+
['application/json'],
|
|
550
|
+
['application/json']
|
|
551
|
+
);
|
|
552
|
+
}
|
|
553
|
+
|
|
248
554
|
/**
|
|
249
555
|
* Update an interaction stats alert read status
|
|
250
556
|
*
|
|
@@ -313,6 +619,36 @@ class AlertingApi {
|
|
|
313
619
|
);
|
|
314
620
|
}
|
|
315
621
|
|
|
622
|
+
/**
|
|
623
|
+
* Update a rule
|
|
624
|
+
*
|
|
625
|
+
* @param {String} ruleId Rule Id
|
|
626
|
+
* @param {Object} body rule to be updated
|
|
627
|
+
*/
|
|
628
|
+
putAlertingRule(ruleId, body) {
|
|
629
|
+
// verify the required parameter 'ruleId' is set
|
|
630
|
+
if (ruleId === undefined || ruleId === null) {
|
|
631
|
+
throw 'Missing the required parameter "ruleId" when calling putAlertingRule';
|
|
632
|
+
}
|
|
633
|
+
// verify the required parameter 'body' is set
|
|
634
|
+
if (body === undefined || body === null) {
|
|
635
|
+
throw 'Missing the required parameter "body" when calling putAlertingRule';
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
return this.apiClient.callApi(
|
|
639
|
+
'/api/v2/alerting/rules/{ruleId}',
|
|
640
|
+
'PUT',
|
|
641
|
+
{ 'ruleId': ruleId },
|
|
642
|
+
{ },
|
|
643
|
+
{ },
|
|
644
|
+
{ },
|
|
645
|
+
body,
|
|
646
|
+
['PureCloud OAuth'],
|
|
647
|
+
['application/json'],
|
|
648
|
+
['application/json']
|
|
649
|
+
);
|
|
650
|
+
}
|
|
651
|
+
|
|
316
652
|
}
|
|
317
653
|
|
|
318
654
|
|