purecloud-platform-client-v2 223.0.0 → 225.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +3630 -2644
- package/dist/web-amd/purecloud-platform-client-v2.js +3630 -2644
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +2891 -2627
- package/dist/web-cjs/purecloud-platform-client-v2.js +2891 -2627
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +825 -249
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +387 -0
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +13 -13
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +8 -8
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +46 -46
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +124 -122
- package/src/purecloud-platform-client-v2/api/AuditApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +47 -47
- package/src/purecloud-platform-client-v2/api/BillingApi.js +7 -7
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +75 -30
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +38 -38
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +17 -17
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +32 -32
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +620 -344
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +66 -66
- package/src/purecloud-platform-client-v2/api/FaxApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +49 -49
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +101 -14
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +12 -12
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +106 -80
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +68 -68
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +212 -212
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +46 -46
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/LearningApi.js +28 -28
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +7 -7
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +6 -6
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +11 -11
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +7 -7
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +59 -59
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +118 -118
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +19 -19
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +6 -6
- package/src/purecloud-platform-client-v2/api/QualityApi.js +36 -36
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +42 -42
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +11 -11
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +148 -118
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +19 -19
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +13 -13
- package/src/purecloud-platform-client-v2/api/SearchApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +59 -59
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +33 -33
- package/src/purecloud-platform-client-v2/api/StationsApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +78 -78
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +8 -8
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +134 -93
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/TokensApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +6 -6
- package/src/purecloud-platform-client-v2/api/UsageApi.js +7 -7
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +6 -6
- package/src/purecloud-platform-client-v2/api/UsersApi.js +123 -93
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +17 -17
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +21 -21
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +18 -18
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +332 -326
- package/src/purecloud-platform-client-v2/configuration.js +80 -23
- package/src/purecloud-platform-client-v2/index.js +7 -1
|
@@ -5,7 +5,7 @@ class BusinessRulesApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* BusinessRules service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 225.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -32,7 +32,7 @@ class BusinessRulesApi {
|
|
|
32
32
|
opts = opts || {};
|
|
33
33
|
|
|
34
34
|
// verify the required parameter 'tableId' is set
|
|
35
|
-
if (tableId === undefined || tableId === null) {
|
|
35
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
36
36
|
throw 'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontable';
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -59,7 +59,7 @@ class BusinessRulesApi {
|
|
|
59
59
|
*/
|
|
60
60
|
deleteBusinessrulesDecisiontableVersion(tableId, tableVersion) {
|
|
61
61
|
// verify the required parameter 'tableId' is set
|
|
62
|
-
if (tableId === undefined || tableId === null) {
|
|
62
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
63
63
|
throw 'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';
|
|
64
64
|
}
|
|
65
65
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -91,7 +91,7 @@ class BusinessRulesApi {
|
|
|
91
91
|
*/
|
|
92
92
|
deleteBusinessrulesDecisiontableVersionRow(tableId, tableVersion, rowId) {
|
|
93
93
|
// verify the required parameter 'tableId' is set
|
|
94
|
-
if (tableId === undefined || tableId === null) {
|
|
94
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
95
95
|
throw 'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';
|
|
96
96
|
}
|
|
97
97
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -99,7 +99,7 @@ class BusinessRulesApi {
|
|
|
99
99
|
throw 'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';
|
|
100
100
|
}
|
|
101
101
|
// verify the required parameter 'rowId' is set
|
|
102
|
-
if (rowId === undefined || rowId === null) {
|
|
102
|
+
if (rowId === undefined || rowId === null || rowId === '') {
|
|
103
103
|
throw 'Missing the required parameter "rowId" when calling deleteBusinessrulesDecisiontableVersionRow';
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -125,7 +125,7 @@ class BusinessRulesApi {
|
|
|
125
125
|
*/
|
|
126
126
|
deleteBusinessrulesSchema(schemaId) {
|
|
127
127
|
// verify the required parameter 'schemaId' is set
|
|
128
|
-
if (schemaId === undefined || schemaId === null) {
|
|
128
|
+
if (schemaId === undefined || schemaId === null || schemaId === '') {
|
|
129
129
|
throw 'Missing the required parameter "schemaId" when calling deleteBusinessrulesSchema';
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -151,7 +151,7 @@ class BusinessRulesApi {
|
|
|
151
151
|
*/
|
|
152
152
|
getBusinessrulesDecisiontable(tableId) {
|
|
153
153
|
// verify the required parameter 'tableId' is set
|
|
154
|
-
if (tableId === undefined || tableId === null) {
|
|
154
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
155
155
|
throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontable';
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -178,7 +178,7 @@ class BusinessRulesApi {
|
|
|
178
178
|
*/
|
|
179
179
|
getBusinessrulesDecisiontableVersion(tableId, tableVersion) {
|
|
180
180
|
// verify the required parameter 'tableId' is set
|
|
181
|
-
if (tableId === undefined || tableId === null) {
|
|
181
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
182
182
|
throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';
|
|
183
183
|
}
|
|
184
184
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -210,7 +210,7 @@ class BusinessRulesApi {
|
|
|
210
210
|
*/
|
|
211
211
|
getBusinessrulesDecisiontableVersionRow(tableId, tableVersion, rowId) {
|
|
212
212
|
// verify the required parameter 'tableId' is set
|
|
213
|
-
if (tableId === undefined || tableId === null) {
|
|
213
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
214
214
|
throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';
|
|
215
215
|
}
|
|
216
216
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -218,7 +218,7 @@ class BusinessRulesApi {
|
|
|
218
218
|
throw 'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';
|
|
219
219
|
}
|
|
220
220
|
// verify the required parameter 'rowId' is set
|
|
221
|
-
if (rowId === undefined || rowId === null) {
|
|
221
|
+
if (rowId === undefined || rowId === null || rowId === '') {
|
|
222
222
|
throw 'Missing the required parameter "rowId" when calling getBusinessrulesDecisiontableVersionRow';
|
|
223
223
|
}
|
|
224
224
|
|
|
@@ -250,7 +250,7 @@ class BusinessRulesApi {
|
|
|
250
250
|
opts = opts || {};
|
|
251
251
|
|
|
252
252
|
// verify the required parameter 'tableId' is set
|
|
253
|
-
if (tableId === undefined || tableId === null) {
|
|
253
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
254
254
|
throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';
|
|
255
255
|
}
|
|
256
256
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -286,7 +286,7 @@ class BusinessRulesApi {
|
|
|
286
286
|
opts = opts || {};
|
|
287
287
|
|
|
288
288
|
// verify the required parameter 'tableId' is set
|
|
289
|
-
if (tableId === undefined || tableId === null) {
|
|
289
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
290
290
|
throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersions';
|
|
291
291
|
}
|
|
292
292
|
|
|
@@ -339,6 +339,9 @@ class BusinessRulesApi {
|
|
|
339
339
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
340
340
|
* @param {String} opts.schemaId Search for decision tables that use the schema with this ID. Cannot be combined with name search. Search results will not be paginated if used.
|
|
341
341
|
* @param {String} opts.name Search for decision tables with a name that contains the given search string. Search is case insensitive and will match any table that contains this string in any part of the name. Cannot be combined with schema search. Search results will not be paginated if used.
|
|
342
|
+
* @param {Boolean} opts.withPublishedVersion Filters results to only decision tables that have at least one version in Published status
|
|
343
|
+
* @param {Array.<String>} opts.expand Fields to expand in response
|
|
344
|
+
* @param {Array.<String>} opts.ids Decision table IDs to search for
|
|
342
345
|
* getBusinessrulesDecisiontablesSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
343
346
|
*/
|
|
344
347
|
getBusinessrulesDecisiontablesSearch(opts) {
|
|
@@ -349,7 +352,7 @@ class BusinessRulesApi {
|
|
|
349
352
|
'/api/v2/businessrules/decisiontables/search',
|
|
350
353
|
'GET',
|
|
351
354
|
{ },
|
|
352
|
-
{ 'after': opts['after'],'pageSize': opts['pageSize'],'schemaId': opts['schemaId'],'name': opts['name'] },
|
|
355
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'],'schemaId': opts['schemaId'],'name': opts['name'],'withPublishedVersion': opts['withPublishedVersion'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'ids': this.apiClient.buildCollectionParam(opts['ids'], 'multi') },
|
|
353
356
|
{ },
|
|
354
357
|
{ },
|
|
355
358
|
null,
|
|
@@ -367,7 +370,7 @@ class BusinessRulesApi {
|
|
|
367
370
|
*/
|
|
368
371
|
getBusinessrulesSchema(schemaId) {
|
|
369
372
|
// verify the required parameter 'schemaId' is set
|
|
370
|
-
if (schemaId === undefined || schemaId === null) {
|
|
373
|
+
if (schemaId === undefined || schemaId === null || schemaId === '') {
|
|
371
374
|
throw 'Missing the required parameter "schemaId" when calling getBusinessrulesSchema';
|
|
372
375
|
}
|
|
373
376
|
|
|
@@ -414,7 +417,7 @@ class BusinessRulesApi {
|
|
|
414
417
|
*/
|
|
415
418
|
getBusinessrulesSchemasCoretype(coreTypeName) {
|
|
416
419
|
// verify the required parameter 'coreTypeName' is set
|
|
417
|
-
if (coreTypeName === undefined || coreTypeName === null) {
|
|
420
|
+
if (coreTypeName === undefined || coreTypeName === null || coreTypeName === '') {
|
|
418
421
|
throw 'Missing the required parameter "coreTypeName" when calling getBusinessrulesSchemasCoretype';
|
|
419
422
|
}
|
|
420
423
|
|
|
@@ -462,7 +465,7 @@ class BusinessRulesApi {
|
|
|
462
465
|
*/
|
|
463
466
|
patchBusinessrulesDecisiontable(tableId, body) {
|
|
464
467
|
// verify the required parameter 'tableId' is set
|
|
465
|
-
if (tableId === undefined || tableId === null) {
|
|
468
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
466
469
|
throw 'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';
|
|
467
470
|
}
|
|
468
471
|
// verify the required parameter 'body' is set
|
|
@@ -494,7 +497,7 @@ class BusinessRulesApi {
|
|
|
494
497
|
*/
|
|
495
498
|
patchBusinessrulesDecisiontableVersion(tableId, tableVersion, body) {
|
|
496
499
|
// verify the required parameter 'tableId' is set
|
|
497
|
-
if (tableId === undefined || tableId === null) {
|
|
500
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
498
501
|
throw 'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';
|
|
499
502
|
}
|
|
500
503
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -521,17 +524,18 @@ class BusinessRulesApi {
|
|
|
521
524
|
}
|
|
522
525
|
|
|
523
526
|
/**
|
|
524
|
-
*
|
|
527
|
+
* Partially update a decision table row. Will be deprecated, we should use PUT request.
|
|
525
528
|
*
|
|
526
529
|
* @param {String} tableId Table ID
|
|
527
530
|
* @param {Number} tableVersion Table Version
|
|
528
531
|
* @param {String} rowId Row ID
|
|
529
|
-
* @param {Object} body
|
|
532
|
+
* @param {Object} body Partially update decision table row request
|
|
533
|
+
* @deprecated
|
|
530
534
|
* patchBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
531
535
|
*/
|
|
532
536
|
patchBusinessrulesDecisiontableVersionRow(tableId, tableVersion, rowId, body) {
|
|
533
537
|
// verify the required parameter 'tableId' is set
|
|
534
|
-
if (tableId === undefined || tableId === null) {
|
|
538
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
535
539
|
throw 'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersionRow';
|
|
536
540
|
}
|
|
537
541
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -539,7 +543,7 @@ class BusinessRulesApi {
|
|
|
539
543
|
throw 'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersionRow';
|
|
540
544
|
}
|
|
541
545
|
// verify the required parameter 'rowId' is set
|
|
542
|
-
if (rowId === undefined || rowId === null) {
|
|
546
|
+
if (rowId === undefined || rowId === null || rowId === '') {
|
|
543
547
|
throw 'Missing the required parameter "rowId" when calling patchBusinessrulesDecisiontableVersionRow';
|
|
544
548
|
}
|
|
545
549
|
// verify the required parameter 'body' is set
|
|
@@ -570,7 +574,7 @@ class BusinessRulesApi {
|
|
|
570
574
|
*/
|
|
571
575
|
postBusinessrulesDecisiontableExecute(tableId, body) {
|
|
572
576
|
// verify the required parameter 'tableId' is set
|
|
573
|
-
if (tableId === undefined || tableId === null) {
|
|
577
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
574
578
|
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';
|
|
575
579
|
}
|
|
576
580
|
// verify the required parameter 'body' is set
|
|
@@ -602,7 +606,7 @@ class BusinessRulesApi {
|
|
|
602
606
|
*/
|
|
603
607
|
postBusinessrulesDecisiontableVersionCopy(tableId, tableVersion, body) {
|
|
604
608
|
// verify the required parameter 'tableId' is set
|
|
605
|
-
if (tableId === undefined || tableId === null) {
|
|
609
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
606
610
|
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';
|
|
607
611
|
}
|
|
608
612
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -638,7 +642,7 @@ class BusinessRulesApi {
|
|
|
638
642
|
*/
|
|
639
643
|
postBusinessrulesDecisiontableVersionExecute(tableId, tableVersion, body) {
|
|
640
644
|
// verify the required parameter 'tableId' is set
|
|
641
|
-
if (tableId === undefined || tableId === null) {
|
|
645
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
642
646
|
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';
|
|
643
647
|
}
|
|
644
648
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -674,7 +678,7 @@ class BusinessRulesApi {
|
|
|
674
678
|
*/
|
|
675
679
|
postBusinessrulesDecisiontableVersionRows(tableId, tableVersion, body) {
|
|
676
680
|
// verify the required parameter 'tableId' is set
|
|
677
|
-
if (tableId === undefined || tableId === null) {
|
|
681
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
678
682
|
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';
|
|
679
683
|
}
|
|
680
684
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -715,7 +719,7 @@ class BusinessRulesApi {
|
|
|
715
719
|
opts = opts || {};
|
|
716
720
|
|
|
717
721
|
// verify the required parameter 'tableId' is set
|
|
718
|
-
if (tableId === undefined || tableId === null) {
|
|
722
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
719
723
|
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';
|
|
720
724
|
}
|
|
721
725
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -750,7 +754,7 @@ class BusinessRulesApi {
|
|
|
750
754
|
*/
|
|
751
755
|
postBusinessrulesDecisiontableVersionSync(tableId, tableVersion) {
|
|
752
756
|
// verify the required parameter 'tableId' is set
|
|
753
|
-
if (tableId === undefined || tableId === null) {
|
|
757
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
754
758
|
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';
|
|
755
759
|
}
|
|
756
760
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -780,7 +784,7 @@ class BusinessRulesApi {
|
|
|
780
784
|
*/
|
|
781
785
|
postBusinessrulesDecisiontableVersions(tableId) {
|
|
782
786
|
// verify the required parameter 'tableId' is set
|
|
783
|
-
if (tableId === undefined || tableId === null) {
|
|
787
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
784
788
|
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';
|
|
785
789
|
}
|
|
786
790
|
|
|
@@ -859,7 +863,7 @@ class BusinessRulesApi {
|
|
|
859
863
|
*/
|
|
860
864
|
putBusinessrulesDecisiontableVersionPublish(tableId, tableVersion) {
|
|
861
865
|
// verify the required parameter 'tableId' is set
|
|
862
|
-
if (tableId === undefined || tableId === null) {
|
|
866
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
863
867
|
throw 'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';
|
|
864
868
|
}
|
|
865
869
|
// verify the required parameter 'tableVersion' is set
|
|
@@ -881,6 +885,47 @@ class BusinessRulesApi {
|
|
|
881
885
|
);
|
|
882
886
|
}
|
|
883
887
|
|
|
888
|
+
/**
|
|
889
|
+
* Full update a decision table row
|
|
890
|
+
*
|
|
891
|
+
* @param {String} tableId Table ID
|
|
892
|
+
* @param {Number} tableVersion Table Version
|
|
893
|
+
* @param {String} rowId Row ID
|
|
894
|
+
* @param {Object} body Full update decision table row request
|
|
895
|
+
* putBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
896
|
+
*/
|
|
897
|
+
putBusinessrulesDecisiontableVersionRow(tableId, tableVersion, rowId, body) {
|
|
898
|
+
// verify the required parameter 'tableId' is set
|
|
899
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
900
|
+
throw 'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionRow';
|
|
901
|
+
}
|
|
902
|
+
// verify the required parameter 'tableVersion' is set
|
|
903
|
+
if (tableVersion === undefined || tableVersion === null) {
|
|
904
|
+
throw 'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionRow';
|
|
905
|
+
}
|
|
906
|
+
// verify the required parameter 'rowId' is set
|
|
907
|
+
if (rowId === undefined || rowId === null || rowId === '') {
|
|
908
|
+
throw 'Missing the required parameter "rowId" when calling putBusinessrulesDecisiontableVersionRow';
|
|
909
|
+
}
|
|
910
|
+
// verify the required parameter 'body' is set
|
|
911
|
+
if (body === undefined || body === null) {
|
|
912
|
+
throw 'Missing the required parameter "body" when calling putBusinessrulesDecisiontableVersionRow';
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
return this.apiClient.callApi(
|
|
916
|
+
'/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}',
|
|
917
|
+
'PUT',
|
|
918
|
+
{ 'tableId': tableId,'tableVersion': tableVersion,'rowId': rowId },
|
|
919
|
+
{ },
|
|
920
|
+
{ },
|
|
921
|
+
{ },
|
|
922
|
+
body,
|
|
923
|
+
['PureCloud OAuth'],
|
|
924
|
+
['application/json'],
|
|
925
|
+
['application/json']
|
|
926
|
+
);
|
|
927
|
+
}
|
|
928
|
+
|
|
884
929
|
/**
|
|
885
930
|
* Update a schema
|
|
886
931
|
*
|
|
@@ -890,7 +935,7 @@ class BusinessRulesApi {
|
|
|
890
935
|
*/
|
|
891
936
|
putBusinessrulesSchema(schemaId, body) {
|
|
892
937
|
// verify the required parameter 'schemaId' is set
|
|
893
|
-
if (schemaId === undefined || schemaId === null) {
|
|
938
|
+
if (schemaId === undefined || schemaId === null || schemaId === '') {
|
|
894
939
|
throw 'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';
|
|
895
940
|
}
|
|
896
941
|
// verify the required parameter 'body' is set
|
|
@@ -5,7 +5,7 @@ class ChatApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Chat service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 225.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -28,11 +28,11 @@ class ChatApi {
|
|
|
28
28
|
*/
|
|
29
29
|
deleteChatsRoomMessage(roomJid, messageId) {
|
|
30
30
|
// verify the required parameter 'roomJid' is set
|
|
31
|
-
if (roomJid === undefined || roomJid === null) {
|
|
31
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
32
32
|
throw 'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';
|
|
33
33
|
}
|
|
34
34
|
// verify the required parameter 'messageId' is set
|
|
35
|
-
if (messageId === undefined || messageId === null) {
|
|
35
|
+
if (messageId === undefined || messageId === null || messageId === '') {
|
|
36
36
|
throw 'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -58,11 +58,11 @@ class ChatApi {
|
|
|
58
58
|
*/
|
|
59
59
|
deleteChatsRoomMessagesPin(roomJid, pinnedMessageId) {
|
|
60
60
|
// verify the required parameter 'roomJid' is set
|
|
61
|
-
if (roomJid === undefined || roomJid === null) {
|
|
61
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
62
62
|
throw 'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';
|
|
63
63
|
}
|
|
64
64
|
// verify the required parameter 'pinnedMessageId' is set
|
|
65
|
-
if (pinnedMessageId === undefined || pinnedMessageId === null) {
|
|
65
|
+
if (pinnedMessageId === undefined || pinnedMessageId === null || pinnedMessageId === '') {
|
|
66
66
|
throw 'Missing the required parameter "pinnedMessageId" when calling deleteChatsRoomMessagesPin';
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -88,11 +88,11 @@ class ChatApi {
|
|
|
88
88
|
*/
|
|
89
89
|
deleteChatsRoomParticipant(roomJid, userId) {
|
|
90
90
|
// verify the required parameter 'roomJid' is set
|
|
91
|
-
if (roomJid === undefined || roomJid === null) {
|
|
91
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
92
92
|
throw 'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';
|
|
93
93
|
}
|
|
94
94
|
// verify the required parameter 'userId' is set
|
|
95
|
-
if (userId === undefined || userId === null) {
|
|
95
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
96
96
|
throw 'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -118,11 +118,11 @@ class ChatApi {
|
|
|
118
118
|
*/
|
|
119
119
|
deleteChatsUserMessage(userId, messageId) {
|
|
120
120
|
// verify the required parameter 'userId' is set
|
|
121
|
-
if (userId === undefined || userId === null) {
|
|
121
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
122
122
|
throw 'Missing the required parameter "userId" when calling deleteChatsUserMessage';
|
|
123
123
|
}
|
|
124
124
|
// verify the required parameter 'messageId' is set
|
|
125
|
-
if (messageId === undefined || messageId === null) {
|
|
125
|
+
if (messageId === undefined || messageId === null || messageId === '') {
|
|
126
126
|
throw 'Missing the required parameter "messageId" when calling deleteChatsUserMessage';
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -148,11 +148,11 @@ class ChatApi {
|
|
|
148
148
|
*/
|
|
149
149
|
deleteChatsUserMessagesPin(userId, pinnedMessageId) {
|
|
150
150
|
// verify the required parameter 'userId' is set
|
|
151
|
-
if (userId === undefined || userId === null) {
|
|
151
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
152
152
|
throw 'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';
|
|
153
153
|
}
|
|
154
154
|
// verify the required parameter 'pinnedMessageId' is set
|
|
155
|
-
if (pinnedMessageId === undefined || pinnedMessageId === null) {
|
|
155
|
+
if (pinnedMessageId === undefined || pinnedMessageId === null || pinnedMessageId === '') {
|
|
156
156
|
throw 'Missing the required parameter "pinnedMessageId" when calling deleteChatsUserMessagesPin';
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -177,7 +177,7 @@ class ChatApi {
|
|
|
177
177
|
*/
|
|
178
178
|
getChatsMessage(messageId) {
|
|
179
179
|
// verify the required parameter 'messageId' is set
|
|
180
|
-
if (messageId === undefined || messageId === null) {
|
|
180
|
+
if (messageId === undefined || messageId === null || messageId === '') {
|
|
181
181
|
throw 'Missing the required parameter "messageId" when calling getChatsMessage';
|
|
182
182
|
}
|
|
183
183
|
|
|
@@ -202,7 +202,7 @@ class ChatApi {
|
|
|
202
202
|
*/
|
|
203
203
|
getChatsRoom(roomJid) {
|
|
204
204
|
// verify the required parameter 'roomJid' is set
|
|
205
|
-
if (roomJid === undefined || roomJid === null) {
|
|
205
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
206
206
|
throw 'Missing the required parameter "roomJid" when calling getChatsRoom';
|
|
207
207
|
}
|
|
208
208
|
|
|
@@ -228,11 +228,11 @@ class ChatApi {
|
|
|
228
228
|
*/
|
|
229
229
|
getChatsRoomMessage(roomJid, messageIds) {
|
|
230
230
|
// verify the required parameter 'roomJid' is set
|
|
231
|
-
if (roomJid === undefined || roomJid === null) {
|
|
231
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
232
232
|
throw 'Missing the required parameter "roomJid" when calling getChatsRoomMessage';
|
|
233
233
|
}
|
|
234
234
|
// verify the required parameter 'messageIds' is set
|
|
235
|
-
if (messageIds === undefined || messageIds === null) {
|
|
235
|
+
if (messageIds === undefined || messageIds === null || messageIds === '') {
|
|
236
236
|
throw 'Missing the required parameter "messageIds" when calling getChatsRoomMessage';
|
|
237
237
|
}
|
|
238
238
|
|
|
@@ -263,7 +263,7 @@ class ChatApi {
|
|
|
263
263
|
opts = opts || {};
|
|
264
264
|
|
|
265
265
|
// verify the required parameter 'roomJid' is set
|
|
266
|
-
if (roomJid === undefined || roomJid === null) {
|
|
266
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
267
267
|
throw 'Missing the required parameter "roomJid" when calling getChatsRoomMessages';
|
|
268
268
|
}
|
|
269
269
|
|
|
@@ -289,11 +289,11 @@ class ChatApi {
|
|
|
289
289
|
*/
|
|
290
290
|
getChatsRoomParticipant(roomJid, participantJid) {
|
|
291
291
|
// verify the required parameter 'roomJid' is set
|
|
292
|
-
if (roomJid === undefined || roomJid === null) {
|
|
292
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
293
293
|
throw 'Missing the required parameter "roomJid" when calling getChatsRoomParticipant';
|
|
294
294
|
}
|
|
295
295
|
// verify the required parameter 'participantJid' is set
|
|
296
|
-
if (participantJid === undefined || participantJid === null) {
|
|
296
|
+
if (participantJid === undefined || participantJid === null || participantJid === '') {
|
|
297
297
|
throw 'Missing the required parameter "participantJid" when calling getChatsRoomParticipant';
|
|
298
298
|
}
|
|
299
299
|
|
|
@@ -322,7 +322,7 @@ class ChatApi {
|
|
|
322
322
|
opts = opts || {};
|
|
323
323
|
|
|
324
324
|
// verify the required parameter 'roomJid' is set
|
|
325
|
-
if (roomJid === undefined || roomJid === null) {
|
|
325
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
326
326
|
throw 'Missing the required parameter "roomJid" when calling getChatsRoomParticipants';
|
|
327
327
|
}
|
|
328
328
|
|
|
@@ -373,7 +373,7 @@ class ChatApi {
|
|
|
373
373
|
opts = opts || {};
|
|
374
374
|
|
|
375
375
|
// verify the required parameter 'threadId' is set
|
|
376
|
-
if (threadId === undefined || threadId === null) {
|
|
376
|
+
if (threadId === undefined || threadId === null || threadId === '') {
|
|
377
377
|
throw 'Missing the required parameter "threadId" when calling getChatsThreadMessages';
|
|
378
378
|
}
|
|
379
379
|
|
|
@@ -398,7 +398,7 @@ class ChatApi {
|
|
|
398
398
|
*/
|
|
399
399
|
getChatsUser(userId) {
|
|
400
400
|
// verify the required parameter 'userId' is set
|
|
401
|
-
if (userId === undefined || userId === null) {
|
|
401
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
402
402
|
throw 'Missing the required parameter "userId" when calling getChatsUser';
|
|
403
403
|
}
|
|
404
404
|
|
|
@@ -424,11 +424,11 @@ class ChatApi {
|
|
|
424
424
|
*/
|
|
425
425
|
getChatsUserMessage(userId, messageIds) {
|
|
426
426
|
// verify the required parameter 'userId' is set
|
|
427
|
-
if (userId === undefined || userId === null) {
|
|
427
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
428
428
|
throw 'Missing the required parameter "userId" when calling getChatsUserMessage';
|
|
429
429
|
}
|
|
430
430
|
// verify the required parameter 'messageIds' is set
|
|
431
|
-
if (messageIds === undefined || messageIds === null) {
|
|
431
|
+
if (messageIds === undefined || messageIds === null || messageIds === '') {
|
|
432
432
|
throw 'Missing the required parameter "messageIds" when calling getChatsUserMessage';
|
|
433
433
|
}
|
|
434
434
|
|
|
@@ -459,7 +459,7 @@ class ChatApi {
|
|
|
459
459
|
opts = opts || {};
|
|
460
460
|
|
|
461
461
|
// verify the required parameter 'userId' is set
|
|
462
|
-
if (userId === undefined || userId === null) {
|
|
462
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
463
463
|
throw 'Missing the required parameter "userId" when calling getChatsUserMessages';
|
|
464
464
|
}
|
|
465
465
|
|
|
@@ -484,7 +484,7 @@ class ChatApi {
|
|
|
484
484
|
*/
|
|
485
485
|
getChatsUserSettings(userId) {
|
|
486
486
|
// verify the required parameter 'userId' is set
|
|
487
|
-
if (userId === undefined || userId === null) {
|
|
487
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
488
488
|
throw 'Missing the required parameter "userId" when calling getChatsUserSettings';
|
|
489
489
|
}
|
|
490
490
|
|
|
@@ -530,7 +530,7 @@ class ChatApi {
|
|
|
530
530
|
*/
|
|
531
531
|
patchChatsRoom(roomJid, body) {
|
|
532
532
|
// verify the required parameter 'roomJid' is set
|
|
533
|
-
if (roomJid === undefined || roomJid === null) {
|
|
533
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
534
534
|
throw 'Missing the required parameter "roomJid" when calling patchChatsRoom';
|
|
535
535
|
}
|
|
536
536
|
// verify the required parameter 'body' is set
|
|
@@ -561,11 +561,11 @@ class ChatApi {
|
|
|
561
561
|
*/
|
|
562
562
|
patchChatsRoomMessage(roomJid, messageId, body) {
|
|
563
563
|
// verify the required parameter 'roomJid' is set
|
|
564
|
-
if (roomJid === undefined || roomJid === null) {
|
|
564
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
565
565
|
throw 'Missing the required parameter "roomJid" when calling patchChatsRoomMessage';
|
|
566
566
|
}
|
|
567
567
|
// verify the required parameter 'messageId' is set
|
|
568
|
-
if (messageId === undefined || messageId === null) {
|
|
568
|
+
if (messageId === undefined || messageId === null || messageId === '') {
|
|
569
569
|
throw 'Missing the required parameter "messageId" when calling patchChatsRoomMessage';
|
|
570
570
|
}
|
|
571
571
|
// verify the required parameter 'body' is set
|
|
@@ -621,11 +621,11 @@ class ChatApi {
|
|
|
621
621
|
*/
|
|
622
622
|
patchChatsUserMessage(userId, messageId, body) {
|
|
623
623
|
// verify the required parameter 'userId' is set
|
|
624
|
-
if (userId === undefined || userId === null) {
|
|
624
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
625
625
|
throw 'Missing the required parameter "userId" when calling patchChatsUserMessage';
|
|
626
626
|
}
|
|
627
627
|
// verify the required parameter 'messageId' is set
|
|
628
|
-
if (messageId === undefined || messageId === null) {
|
|
628
|
+
if (messageId === undefined || messageId === null || messageId === '') {
|
|
629
629
|
throw 'Missing the required parameter "messageId" when calling patchChatsUserMessage';
|
|
630
630
|
}
|
|
631
631
|
// verify the required parameter 'body' is set
|
|
@@ -655,7 +655,7 @@ class ChatApi {
|
|
|
655
655
|
*/
|
|
656
656
|
patchChatsUserSettings(userId, body) {
|
|
657
657
|
// verify the required parameter 'userId' is set
|
|
658
|
-
if (userId === undefined || userId === null) {
|
|
658
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
659
659
|
throw 'Missing the required parameter "userId" when calling patchChatsUserSettings';
|
|
660
660
|
}
|
|
661
661
|
// verify the required parameter 'body' is set
|
|
@@ -710,7 +710,7 @@ class ChatApi {
|
|
|
710
710
|
*/
|
|
711
711
|
postChatsRoomMessages(roomJid, body) {
|
|
712
712
|
// verify the required parameter 'roomJid' is set
|
|
713
|
-
if (roomJid === undefined || roomJid === null) {
|
|
713
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
714
714
|
throw 'Missing the required parameter "roomJid" when calling postChatsRoomMessages';
|
|
715
715
|
}
|
|
716
716
|
// verify the required parameter 'body' is set
|
|
@@ -740,7 +740,7 @@ class ChatApi {
|
|
|
740
740
|
*/
|
|
741
741
|
postChatsRoomMessagesPins(roomJid, body) {
|
|
742
742
|
// verify the required parameter 'roomJid' is set
|
|
743
|
-
if (roomJid === undefined || roomJid === null) {
|
|
743
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
744
744
|
throw 'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';
|
|
745
745
|
}
|
|
746
746
|
// verify the required parameter 'body' is set
|
|
@@ -770,11 +770,11 @@ class ChatApi {
|
|
|
770
770
|
*/
|
|
771
771
|
postChatsRoomParticipant(roomJid, userId) {
|
|
772
772
|
// verify the required parameter 'roomJid' is set
|
|
773
|
-
if (roomJid === undefined || roomJid === null) {
|
|
773
|
+
if (roomJid === undefined || roomJid === null || roomJid === '') {
|
|
774
774
|
throw 'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';
|
|
775
775
|
}
|
|
776
776
|
// verify the required parameter 'userId' is set
|
|
777
|
-
if (userId === undefined || userId === null) {
|
|
777
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
778
778
|
throw 'Missing the required parameter "userId" when calling postChatsRoomParticipant';
|
|
779
779
|
}
|
|
780
780
|
|
|
@@ -825,7 +825,7 @@ class ChatApi {
|
|
|
825
825
|
*/
|
|
826
826
|
postChatsUserMessages(userId, body) {
|
|
827
827
|
// verify the required parameter 'userId' is set
|
|
828
|
-
if (userId === undefined || userId === null) {
|
|
828
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
829
829
|
throw 'Missing the required parameter "userId" when calling postChatsUserMessages';
|
|
830
830
|
}
|
|
831
831
|
// verify the required parameter 'body' is set
|
|
@@ -855,7 +855,7 @@ class ChatApi {
|
|
|
855
855
|
*/
|
|
856
856
|
postChatsUserMessagesPins(userId, body) {
|
|
857
857
|
// verify the required parameter 'userId' is set
|
|
858
|
-
if (userId === undefined || userId === null) {
|
|
858
|
+
if (userId === undefined || userId === null || userId === '') {
|
|
859
859
|
throw 'Missing the required parameter "userId" when calling postChatsUserMessagesPins';
|
|
860
860
|
}
|
|
861
861
|
// verify the required parameter 'body' is set
|
|
@@ -885,7 +885,7 @@ class ChatApi {
|
|
|
885
885
|
*/
|
|
886
886
|
putChatsMessageReactions(messageId, body) {
|
|
887
887
|
// verify the required parameter 'messageId' is set
|
|
888
|
-
if (messageId === undefined || messageId === null) {
|
|
888
|
+
if (messageId === undefined || messageId === null || messageId === '') {
|
|
889
889
|
throw 'Missing the required parameter "messageId" when calling putChatsMessageReactions';
|
|
890
890
|
}
|
|
891
891
|
// verify the required parameter 'body' is set
|