purecloud-platform-client-v2 253.0.0 → 255.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 +1886 -311
- package/dist/web-amd/purecloud-platform-client-v2.js +1887 -311
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +635 -310
- package/dist/web-cjs/purecloud-platform-client-v2.js +642 -3129
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1030 -65
- package/package.json +1 -2
- package/src/purecloud-platform-client-v2/ApiClient.js +5 -5
- package/src/purecloud-platform-client-v2/PureCloudRegionHosts.js +1 -0
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -62
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +64 -1
- package/src/purecloud-platform-client-v2/api/AssistantCopilotVariationsApi.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/BackgroundAssistantApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +435 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CaseManagementApi.js +207 -125
- 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 +2 -6
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -5
- 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/IntentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -5
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +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 -9
- 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 +155 -3
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +2 -2
- 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 +268 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -5
- package/src/purecloud-platform-client-v2/api/UsersRulesApi.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 +719 -57
- package/src/purecloud-platform-client-v2/index.js +1 -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 255.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -51,6 +51,76 @@ class BusinessRulesApi {
|
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Delete an export job for a decision table
|
|
56
|
+
*
|
|
57
|
+
* @param {String} tableId Table ID
|
|
58
|
+
* @param {String} exportJobId Export Job ID
|
|
59
|
+
* @param {Object} opts Optional parameters
|
|
60
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
61
|
+
*/
|
|
62
|
+
deleteBusinessrulesDecisiontableExport(tableId, exportJobId, opts) {
|
|
63
|
+
opts = opts || {};
|
|
64
|
+
|
|
65
|
+
// verify the required parameter 'tableId' is set
|
|
66
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
67
|
+
throw 'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableExport';
|
|
68
|
+
}
|
|
69
|
+
// verify the required parameter 'exportJobId' is set
|
|
70
|
+
if (exportJobId === undefined || exportJobId === null || exportJobId === '') {
|
|
71
|
+
throw 'Missing the required parameter "exportJobId" when calling deleteBusinessrulesDecisiontableExport';
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return this.apiClient.callApi(
|
|
75
|
+
'/api/v2/businessrules/decisiontables/{tableId}/exports/{exportJobId}',
|
|
76
|
+
'DELETE',
|
|
77
|
+
{ 'tableId': tableId,'exportJobId': exportJobId },
|
|
78
|
+
{ },
|
|
79
|
+
{ },
|
|
80
|
+
{ },
|
|
81
|
+
null,
|
|
82
|
+
['PureCloud OAuth'],
|
|
83
|
+
['application/json'],
|
|
84
|
+
['application/json'],
|
|
85
|
+
opts['customHeaders']
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Delete decision table row import job
|
|
91
|
+
*
|
|
92
|
+
* @param {String} tableId Table ID
|
|
93
|
+
* @param {String} importJobId Import job ID
|
|
94
|
+
* @param {Object} opts Optional parameters
|
|
95
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
96
|
+
*/
|
|
97
|
+
deleteBusinessrulesDecisiontableImport(tableId, importJobId, opts) {
|
|
98
|
+
opts = opts || {};
|
|
99
|
+
|
|
100
|
+
// verify the required parameter 'tableId' is set
|
|
101
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
102
|
+
throw 'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableImport';
|
|
103
|
+
}
|
|
104
|
+
// verify the required parameter 'importJobId' is set
|
|
105
|
+
if (importJobId === undefined || importJobId === null || importJobId === '') {
|
|
106
|
+
throw 'Missing the required parameter "importJobId" when calling deleteBusinessrulesDecisiontableImport';
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return this.apiClient.callApi(
|
|
110
|
+
'/api/v2/businessrules/decisiontables/{tableId}/imports/{importJobId}',
|
|
111
|
+
'DELETE',
|
|
112
|
+
{ 'tableId': tableId,'importJobId': importJobId },
|
|
113
|
+
{ },
|
|
114
|
+
{ },
|
|
115
|
+
{ },
|
|
116
|
+
null,
|
|
117
|
+
['PureCloud OAuth'],
|
|
118
|
+
['application/json'],
|
|
119
|
+
['application/json'],
|
|
120
|
+
opts['customHeaders']
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
|
|
54
124
|
/**
|
|
55
125
|
* Delete a decision table version
|
|
56
126
|
*
|
|
@@ -186,6 +256,140 @@ class BusinessRulesApi {
|
|
|
186
256
|
);
|
|
187
257
|
}
|
|
188
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Get an export job for a decision table
|
|
261
|
+
*
|
|
262
|
+
* @param {String} tableId Table ID
|
|
263
|
+
* @param {String} exportJobId Export Job ID
|
|
264
|
+
* @param {Object} opts Optional parameters
|
|
265
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
266
|
+
*/
|
|
267
|
+
getBusinessrulesDecisiontableExport(tableId, exportJobId, opts) {
|
|
268
|
+
opts = opts || {};
|
|
269
|
+
|
|
270
|
+
// verify the required parameter 'tableId' is set
|
|
271
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
272
|
+
throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableExport';
|
|
273
|
+
}
|
|
274
|
+
// verify the required parameter 'exportJobId' is set
|
|
275
|
+
if (exportJobId === undefined || exportJobId === null || exportJobId === '') {
|
|
276
|
+
throw 'Missing the required parameter "exportJobId" when calling getBusinessrulesDecisiontableExport';
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return this.apiClient.callApi(
|
|
280
|
+
'/api/v2/businessrules/decisiontables/{tableId}/exports/{exportJobId}',
|
|
281
|
+
'GET',
|
|
282
|
+
{ 'tableId': tableId,'exportJobId': exportJobId },
|
|
283
|
+
{ },
|
|
284
|
+
{ },
|
|
285
|
+
{ },
|
|
286
|
+
null,
|
|
287
|
+
['PureCloud OAuth'],
|
|
288
|
+
['application/json'],
|
|
289
|
+
['application/json'],
|
|
290
|
+
opts['customHeaders']
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* List export jobs for a decision table
|
|
296
|
+
*
|
|
297
|
+
* @param {String} tableId Table ID
|
|
298
|
+
* @param {Object} opts Optional parameters
|
|
299
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
300
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
301
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
302
|
+
*/
|
|
303
|
+
getBusinessrulesDecisiontableExports(tableId, opts) {
|
|
304
|
+
opts = opts || {};
|
|
305
|
+
|
|
306
|
+
// verify the required parameter 'tableId' is set
|
|
307
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
308
|
+
throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableExports';
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
return this.apiClient.callApi(
|
|
312
|
+
'/api/v2/businessrules/decisiontables/{tableId}/exports',
|
|
313
|
+
'GET',
|
|
314
|
+
{ 'tableId': tableId },
|
|
315
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
316
|
+
{ },
|
|
317
|
+
{ },
|
|
318
|
+
null,
|
|
319
|
+
['PureCloud OAuth'],
|
|
320
|
+
['application/json'],
|
|
321
|
+
['application/json'],
|
|
322
|
+
opts['customHeaders']
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Get decision table row import job
|
|
328
|
+
*
|
|
329
|
+
* @param {String} tableId Table ID
|
|
330
|
+
* @param {String} importJobId Import job ID
|
|
331
|
+
* @param {Object} opts Optional parameters
|
|
332
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
333
|
+
*/
|
|
334
|
+
getBusinessrulesDecisiontableImport(tableId, importJobId, opts) {
|
|
335
|
+
opts = opts || {};
|
|
336
|
+
|
|
337
|
+
// verify the required parameter 'tableId' is set
|
|
338
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
339
|
+
throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableImport';
|
|
340
|
+
}
|
|
341
|
+
// verify the required parameter 'importJobId' is set
|
|
342
|
+
if (importJobId === undefined || importJobId === null || importJobId === '') {
|
|
343
|
+
throw 'Missing the required parameter "importJobId" when calling getBusinessrulesDecisiontableImport';
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
return this.apiClient.callApi(
|
|
347
|
+
'/api/v2/businessrules/decisiontables/{tableId}/imports/{importJobId}',
|
|
348
|
+
'GET',
|
|
349
|
+
{ 'tableId': tableId,'importJobId': importJobId },
|
|
350
|
+
{ },
|
|
351
|
+
{ },
|
|
352
|
+
{ },
|
|
353
|
+
null,
|
|
354
|
+
['PureCloud OAuth'],
|
|
355
|
+
['application/json'],
|
|
356
|
+
['application/json'],
|
|
357
|
+
opts['customHeaders']
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* List decision table row import jobs
|
|
363
|
+
*
|
|
364
|
+
* @param {String} tableId Table ID
|
|
365
|
+
* @param {Object} opts Optional parameters
|
|
366
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
367
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
368
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
369
|
+
*/
|
|
370
|
+
getBusinessrulesDecisiontableImports(tableId, opts) {
|
|
371
|
+
opts = opts || {};
|
|
372
|
+
|
|
373
|
+
// verify the required parameter 'tableId' is set
|
|
374
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
375
|
+
throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableImports';
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
return this.apiClient.callApi(
|
|
379
|
+
'/api/v2/businessrules/decisiontables/{tableId}/imports',
|
|
380
|
+
'GET',
|
|
381
|
+
{ 'tableId': tableId },
|
|
382
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
383
|
+
{ },
|
|
384
|
+
{ },
|
|
385
|
+
null,
|
|
386
|
+
['PureCloud OAuth'],
|
|
387
|
+
['application/json'],
|
|
388
|
+
['application/json'],
|
|
389
|
+
opts['customHeaders']
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
|
|
189
393
|
/**
|
|
190
394
|
* Get a decision table version
|
|
191
395
|
*
|
|
@@ -536,6 +740,46 @@ class BusinessRulesApi {
|
|
|
536
740
|
);
|
|
537
741
|
}
|
|
538
742
|
|
|
743
|
+
/**
|
|
744
|
+
* Update decision table row import job
|
|
745
|
+
*
|
|
746
|
+
* @param {String} tableId Table ID
|
|
747
|
+
* @param {String} importJobId Import job ID
|
|
748
|
+
* @param {Object} body Import job update request
|
|
749
|
+
* @param {Object} opts Optional parameters
|
|
750
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
751
|
+
*/
|
|
752
|
+
patchBusinessrulesDecisiontableImport(tableId, importJobId, body, opts) {
|
|
753
|
+
opts = opts || {};
|
|
754
|
+
|
|
755
|
+
// verify the required parameter 'tableId' is set
|
|
756
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
757
|
+
throw 'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableImport';
|
|
758
|
+
}
|
|
759
|
+
// verify the required parameter 'importJobId' is set
|
|
760
|
+
if (importJobId === undefined || importJobId === null || importJobId === '') {
|
|
761
|
+
throw 'Missing the required parameter "importJobId" when calling patchBusinessrulesDecisiontableImport';
|
|
762
|
+
}
|
|
763
|
+
// verify the required parameter 'body' is set
|
|
764
|
+
if (body === undefined || body === null) {
|
|
765
|
+
throw 'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableImport';
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
return this.apiClient.callApi(
|
|
769
|
+
'/api/v2/businessrules/decisiontables/{tableId}/imports/{importJobId}',
|
|
770
|
+
'PATCH',
|
|
771
|
+
{ 'tableId': tableId,'importJobId': importJobId },
|
|
772
|
+
{ },
|
|
773
|
+
{ },
|
|
774
|
+
{ },
|
|
775
|
+
body,
|
|
776
|
+
['PureCloud OAuth'],
|
|
777
|
+
['application/json'],
|
|
778
|
+
['application/json'],
|
|
779
|
+
opts['customHeaders']
|
|
780
|
+
);
|
|
781
|
+
}
|
|
782
|
+
|
|
539
783
|
/**
|
|
540
784
|
* Update a decision table version
|
|
541
785
|
*
|
|
@@ -611,6 +855,76 @@ class BusinessRulesApi {
|
|
|
611
855
|
);
|
|
612
856
|
}
|
|
613
857
|
|
|
858
|
+
/**
|
|
859
|
+
* Create an export job for a decision table version
|
|
860
|
+
*
|
|
861
|
+
* @param {String} tableId Table ID
|
|
862
|
+
* @param {Object} body Export job request
|
|
863
|
+
* @param {Object} opts Optional parameters
|
|
864
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
865
|
+
*/
|
|
866
|
+
postBusinessrulesDecisiontableExports(tableId, body, opts) {
|
|
867
|
+
opts = opts || {};
|
|
868
|
+
|
|
869
|
+
// verify the required parameter 'tableId' is set
|
|
870
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
871
|
+
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExports';
|
|
872
|
+
}
|
|
873
|
+
// verify the required parameter 'body' is set
|
|
874
|
+
if (body === undefined || body === null) {
|
|
875
|
+
throw 'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExports';
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
return this.apiClient.callApi(
|
|
879
|
+
'/api/v2/businessrules/decisiontables/{tableId}/exports',
|
|
880
|
+
'POST',
|
|
881
|
+
{ 'tableId': tableId },
|
|
882
|
+
{ },
|
|
883
|
+
{ },
|
|
884
|
+
{ },
|
|
885
|
+
body,
|
|
886
|
+
['PureCloud OAuth'],
|
|
887
|
+
['application/json'],
|
|
888
|
+
['application/json'],
|
|
889
|
+
opts['customHeaders']
|
|
890
|
+
);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Create a decision table row import job
|
|
895
|
+
*
|
|
896
|
+
* @param {String} tableId Table ID
|
|
897
|
+
* @param {Object} body Import job create request
|
|
898
|
+
* @param {Object} opts Optional parameters
|
|
899
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
900
|
+
*/
|
|
901
|
+
postBusinessrulesDecisiontableImports(tableId, body, opts) {
|
|
902
|
+
opts = opts || {};
|
|
903
|
+
|
|
904
|
+
// verify the required parameter 'tableId' is set
|
|
905
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
906
|
+
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableImports';
|
|
907
|
+
}
|
|
908
|
+
// verify the required parameter 'body' is set
|
|
909
|
+
if (body === undefined || body === null) {
|
|
910
|
+
throw 'Missing the required parameter "body" when calling postBusinessrulesDecisiontableImports';
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
return this.apiClient.callApi(
|
|
914
|
+
'/api/v2/businessrules/decisiontables/{tableId}/imports',
|
|
915
|
+
'POST',
|
|
916
|
+
{ 'tableId': tableId },
|
|
917
|
+
{ },
|
|
918
|
+
{ },
|
|
919
|
+
{ },
|
|
920
|
+
body,
|
|
921
|
+
['PureCloud OAuth'],
|
|
922
|
+
['application/json'],
|
|
923
|
+
['application/json'],
|
|
924
|
+
opts['customHeaders']
|
|
925
|
+
);
|
|
926
|
+
}
|
|
927
|
+
|
|
614
928
|
/**
|
|
615
929
|
* Copy a decision table version
|
|
616
930
|
*
|
|
@@ -731,6 +1045,126 @@ class BusinessRulesApi {
|
|
|
731
1045
|
);
|
|
732
1046
|
}
|
|
733
1047
|
|
|
1048
|
+
/**
|
|
1049
|
+
* Bulk add decision table rows
|
|
1050
|
+
* Required permissions depend on table content: if the table or row contains queue references, routing:queue:view is required in each queues division. Future platform objects will require their associated permissions in the relevant divisions when the table or row contains references to them.
|
|
1051
|
+
* @param {String} tableId Table ID
|
|
1052
|
+
* @param {Number} tableVersion Table Version
|
|
1053
|
+
* @param {Object} body Bulk add decision table rows request
|
|
1054
|
+
* @param {Object} opts Optional parameters
|
|
1055
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1056
|
+
*/
|
|
1057
|
+
postBusinessrulesDecisiontableVersionRowsBulkAdd(tableId, tableVersion, body, opts) {
|
|
1058
|
+
opts = opts || {};
|
|
1059
|
+
|
|
1060
|
+
// verify the required parameter 'tableId' is set
|
|
1061
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
1062
|
+
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsBulkAdd';
|
|
1063
|
+
}
|
|
1064
|
+
// verify the required parameter 'tableVersion' is set
|
|
1065
|
+
if (tableVersion === undefined || tableVersion === null) {
|
|
1066
|
+
throw 'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsBulkAdd';
|
|
1067
|
+
}
|
|
1068
|
+
// verify the required parameter 'body' is set
|
|
1069
|
+
if (body === undefined || body === null) {
|
|
1070
|
+
throw 'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsBulkAdd';
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
return this.apiClient.callApi(
|
|
1074
|
+
'/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/bulk/add',
|
|
1075
|
+
'POST',
|
|
1076
|
+
{ 'tableId': tableId,'tableVersion': tableVersion },
|
|
1077
|
+
{ },
|
|
1078
|
+
{ },
|
|
1079
|
+
{ },
|
|
1080
|
+
body,
|
|
1081
|
+
['PureCloud OAuth'],
|
|
1082
|
+
['application/json'],
|
|
1083
|
+
['application/json'],
|
|
1084
|
+
opts['customHeaders']
|
|
1085
|
+
);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Bulk delete decision table rows
|
|
1090
|
+
* Required permissions depend on table content: if the table or row contains queue references, routing:queue:view is required in each queues division. Future platform objects will require their associated permissions in the relevant divisions when the table or row contains references to them.
|
|
1091
|
+
* @param {String} tableId Table ID
|
|
1092
|
+
* @param {Number} tableVersion Table Version
|
|
1093
|
+
* @param {Object} body
|
|
1094
|
+
* @param {Object} opts Optional parameters
|
|
1095
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1096
|
+
*/
|
|
1097
|
+
postBusinessrulesDecisiontableVersionRowsBulkRemove(tableId, tableVersion, body, opts) {
|
|
1098
|
+
opts = opts || {};
|
|
1099
|
+
|
|
1100
|
+
// verify the required parameter 'tableId' is set
|
|
1101
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
1102
|
+
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsBulkRemove';
|
|
1103
|
+
}
|
|
1104
|
+
// verify the required parameter 'tableVersion' is set
|
|
1105
|
+
if (tableVersion === undefined || tableVersion === null) {
|
|
1106
|
+
throw 'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsBulkRemove';
|
|
1107
|
+
}
|
|
1108
|
+
// verify the required parameter 'body' is set
|
|
1109
|
+
if (body === undefined || body === null) {
|
|
1110
|
+
throw 'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsBulkRemove';
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
return this.apiClient.callApi(
|
|
1114
|
+
'/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/bulk/remove',
|
|
1115
|
+
'POST',
|
|
1116
|
+
{ 'tableId': tableId,'tableVersion': tableVersion },
|
|
1117
|
+
{ },
|
|
1118
|
+
{ },
|
|
1119
|
+
{ },
|
|
1120
|
+
body,
|
|
1121
|
+
['PureCloud OAuth'],
|
|
1122
|
+
['application/json'],
|
|
1123
|
+
['application/json'],
|
|
1124
|
+
opts['customHeaders']
|
|
1125
|
+
);
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* Bulk update decision table rows
|
|
1130
|
+
* Required permissions depend on table content: if the table or row contains queue references, routing:queue:view is required in each queues division. Future platform objects will require their associated permissions in the relevant divisions when the table or row contains references to them.
|
|
1131
|
+
* @param {String} tableId Table ID
|
|
1132
|
+
* @param {Number} tableVersion Table Version
|
|
1133
|
+
* @param {Object} body Bulk update decision table rows request
|
|
1134
|
+
* @param {Object} opts Optional parameters
|
|
1135
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1136
|
+
*/
|
|
1137
|
+
postBusinessrulesDecisiontableVersionRowsBulkUpdate(tableId, tableVersion, body, opts) {
|
|
1138
|
+
opts = opts || {};
|
|
1139
|
+
|
|
1140
|
+
// verify the required parameter 'tableId' is set
|
|
1141
|
+
if (tableId === undefined || tableId === null || tableId === '') {
|
|
1142
|
+
throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsBulkUpdate';
|
|
1143
|
+
}
|
|
1144
|
+
// verify the required parameter 'tableVersion' is set
|
|
1145
|
+
if (tableVersion === undefined || tableVersion === null) {
|
|
1146
|
+
throw 'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsBulkUpdate';
|
|
1147
|
+
}
|
|
1148
|
+
// verify the required parameter 'body' is set
|
|
1149
|
+
if (body === undefined || body === null) {
|
|
1150
|
+
throw 'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsBulkUpdate';
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
return this.apiClient.callApi(
|
|
1154
|
+
'/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/bulk/update',
|
|
1155
|
+
'POST',
|
|
1156
|
+
{ 'tableId': tableId,'tableVersion': tableVersion },
|
|
1157
|
+
{ },
|
|
1158
|
+
{ },
|
|
1159
|
+
{ },
|
|
1160
|
+
body,
|
|
1161
|
+
['PureCloud OAuth'],
|
|
1162
|
+
['application/json'],
|
|
1163
|
+
['application/json'],
|
|
1164
|
+
opts['customHeaders']
|
|
1165
|
+
);
|
|
1166
|
+
}
|
|
1167
|
+
|
|
734
1168
|
/**
|
|
735
1169
|
* Search for decision table rows
|
|
736
1170
|
*
|