purecloud-platform-client-v2 248.0.0 → 249.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 +2010 -100
- package/dist/web-amd/purecloud-platform-client-v2.js +2010 -100
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +602 -105
- package/dist/web-cjs/purecloud-platform-client-v2.js +602 -105
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1061 -82
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- 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 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -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 +6 -6
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CaseManagementApi.js +1100 -0
- 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 +8 -4
- 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 +31 -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/IntentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +477 -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 +26 -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 +37 -2
- 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 +57 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +5 -5
- 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 +1 -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 +46 -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 -1
- 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 +140 -1
- package/src/purecloud-platform-client-v2/index.js +7 -1
|
@@ -5,7 +5,7 @@ class KnowledgeApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Knowledge service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 249.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -20,6 +20,31 @@ class KnowledgeApi {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Delete connection
|
|
25
|
+
*
|
|
26
|
+
* @param {String} connectionId Connection ID
|
|
27
|
+
*/
|
|
28
|
+
deleteKnowledgeConnection(connectionId) {
|
|
29
|
+
// verify the required parameter 'connectionId' is set
|
|
30
|
+
if (connectionId === undefined || connectionId === null || connectionId === '') {
|
|
31
|
+
throw 'Missing the required parameter "connectionId" when calling deleteKnowledgeConnection';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return this.apiClient.callApi(
|
|
35
|
+
'/api/v2/knowledge/connections/{connectionId}',
|
|
36
|
+
'DELETE',
|
|
37
|
+
{ 'connectionId': connectionId },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
|
+
null,
|
|
42
|
+
['PureCloud OAuth'],
|
|
43
|
+
['application/json'],
|
|
44
|
+
['application/json']
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
23
48
|
/**
|
|
24
49
|
* Delete knowledge base
|
|
25
50
|
*
|
|
@@ -345,6 +370,109 @@ class KnowledgeApi {
|
|
|
345
370
|
);
|
|
346
371
|
}
|
|
347
372
|
|
|
373
|
+
/**
|
|
374
|
+
* Delete source
|
|
375
|
+
*
|
|
376
|
+
* @param {String} sourceId Source ID
|
|
377
|
+
*/
|
|
378
|
+
deleteKnowledgeSource(sourceId) {
|
|
379
|
+
// verify the required parameter 'sourceId' is set
|
|
380
|
+
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
381
|
+
throw 'Missing the required parameter "sourceId" when calling deleteKnowledgeSource';
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
return this.apiClient.callApi(
|
|
385
|
+
'/api/v2/knowledge/sources/{sourceId}',
|
|
386
|
+
'DELETE',
|
|
387
|
+
{ 'sourceId': sourceId },
|
|
388
|
+
{ },
|
|
389
|
+
{ },
|
|
390
|
+
{ },
|
|
391
|
+
null,
|
|
392
|
+
['PureCloud OAuth'],
|
|
393
|
+
['application/json'],
|
|
394
|
+
['application/json']
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Get connection
|
|
400
|
+
*
|
|
401
|
+
* @param {String} connectionId Connection ID
|
|
402
|
+
* @param {Object} opts Optional parameters
|
|
403
|
+
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
404
|
+
*/
|
|
405
|
+
getKnowledgeConnection(connectionId, opts) {
|
|
406
|
+
opts = opts || {};
|
|
407
|
+
|
|
408
|
+
// verify the required parameter 'connectionId' is set
|
|
409
|
+
if (connectionId === undefined || connectionId === null || connectionId === '') {
|
|
410
|
+
throw 'Missing the required parameter "connectionId" when calling getKnowledgeConnection';
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
return this.apiClient.callApi(
|
|
414
|
+
'/api/v2/knowledge/connections/{connectionId}',
|
|
415
|
+
'GET',
|
|
416
|
+
{ 'connectionId': connectionId },
|
|
417
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
418
|
+
{ },
|
|
419
|
+
{ },
|
|
420
|
+
null,
|
|
421
|
+
['PureCloud OAuth'],
|
|
422
|
+
['application/json'],
|
|
423
|
+
['application/json']
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Get connection options
|
|
429
|
+
*
|
|
430
|
+
* @param {String} connectionId Connection ID
|
|
431
|
+
* @param {Object} opts Optional parameters
|
|
432
|
+
* @param {String} opts.parentId The id of the parent option whose children to be listed.
|
|
433
|
+
*/
|
|
434
|
+
getKnowledgeConnectionOptions(connectionId, opts) {
|
|
435
|
+
opts = opts || {};
|
|
436
|
+
|
|
437
|
+
// verify the required parameter 'connectionId' is set
|
|
438
|
+
if (connectionId === undefined || connectionId === null || connectionId === '') {
|
|
439
|
+
throw 'Missing the required parameter "connectionId" when calling getKnowledgeConnectionOptions';
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
return this.apiClient.callApi(
|
|
443
|
+
'/api/v2/knowledge/connections/{connectionId}/options',
|
|
444
|
+
'GET',
|
|
445
|
+
{ 'connectionId': connectionId },
|
|
446
|
+
{ 'parentId': opts['parentId'] },
|
|
447
|
+
{ },
|
|
448
|
+
{ },
|
|
449
|
+
null,
|
|
450
|
+
['PureCloud OAuth'],
|
|
451
|
+
['application/json'],
|
|
452
|
+
['application/json']
|
|
453
|
+
);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Get connections
|
|
458
|
+
*
|
|
459
|
+
*/
|
|
460
|
+
getKnowledgeConnections() {
|
|
461
|
+
|
|
462
|
+
return this.apiClient.callApi(
|
|
463
|
+
'/api/v2/knowledge/connections',
|
|
464
|
+
'GET',
|
|
465
|
+
{ },
|
|
466
|
+
{ },
|
|
467
|
+
{ },
|
|
468
|
+
{ },
|
|
469
|
+
null,
|
|
470
|
+
['PureCloud OAuth'],
|
|
471
|
+
['application/json'],
|
|
472
|
+
['application/json']
|
|
473
|
+
);
|
|
474
|
+
}
|
|
475
|
+
|
|
348
476
|
/**
|
|
349
477
|
* Get categories
|
|
350
478
|
*
|
|
@@ -1527,6 +1655,175 @@ class KnowledgeApi {
|
|
|
1527
1655
|
);
|
|
1528
1656
|
}
|
|
1529
1657
|
|
|
1658
|
+
/**
|
|
1659
|
+
* Get source
|
|
1660
|
+
*
|
|
1661
|
+
* @param {String} sourceId Source ID
|
|
1662
|
+
* @param {Object} opts Optional parameters
|
|
1663
|
+
* @param {Array.<String>} opts.expand Optional fields to expand for the Source.
|
|
1664
|
+
*/
|
|
1665
|
+
getKnowledgeSource(sourceId, opts) {
|
|
1666
|
+
opts = opts || {};
|
|
1667
|
+
|
|
1668
|
+
// verify the required parameter 'sourceId' is set
|
|
1669
|
+
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
1670
|
+
throw 'Missing the required parameter "sourceId" when calling getKnowledgeSource';
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
return this.apiClient.callApi(
|
|
1674
|
+
'/api/v2/knowledge/sources/{sourceId}',
|
|
1675
|
+
'GET',
|
|
1676
|
+
{ 'sourceId': sourceId },
|
|
1677
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
1678
|
+
{ },
|
|
1679
|
+
{ },
|
|
1680
|
+
null,
|
|
1681
|
+
['PureCloud OAuth'],
|
|
1682
|
+
['application/json'],
|
|
1683
|
+
['application/json']
|
|
1684
|
+
);
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* Get a specific synchronization of a source.
|
|
1689
|
+
*
|
|
1690
|
+
* @param {String} sourceId Source ID
|
|
1691
|
+
* @param {String} synchronizationId Synchronization ID
|
|
1692
|
+
*/
|
|
1693
|
+
getKnowledgeSourceSynchronization(sourceId, synchronizationId) {
|
|
1694
|
+
// verify the required parameter 'sourceId' is set
|
|
1695
|
+
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
1696
|
+
throw 'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronization';
|
|
1697
|
+
}
|
|
1698
|
+
// verify the required parameter 'synchronizationId' is set
|
|
1699
|
+
if (synchronizationId === undefined || synchronizationId === null || synchronizationId === '') {
|
|
1700
|
+
throw 'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronization';
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
return this.apiClient.callApi(
|
|
1704
|
+
'/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}',
|
|
1705
|
+
'GET',
|
|
1706
|
+
{ 'sourceId': sourceId,'synchronizationId': synchronizationId },
|
|
1707
|
+
{ },
|
|
1708
|
+
{ },
|
|
1709
|
+
{ },
|
|
1710
|
+
null,
|
|
1711
|
+
['PureCloud OAuth'],
|
|
1712
|
+
['application/json'],
|
|
1713
|
+
['application/json']
|
|
1714
|
+
);
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* Get synchronizations of a source.
|
|
1719
|
+
*
|
|
1720
|
+
* @param {String} sourceId Source ID
|
|
1721
|
+
* @param {Object} opts Optional parameters
|
|
1722
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
1723
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
1724
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
1725
|
+
*/
|
|
1726
|
+
getKnowledgeSourceSynchronizations(sourceId, opts) {
|
|
1727
|
+
opts = opts || {};
|
|
1728
|
+
|
|
1729
|
+
// verify the required parameter 'sourceId' is set
|
|
1730
|
+
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
1731
|
+
throw 'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronizations';
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
return this.apiClient.callApi(
|
|
1735
|
+
'/api/v2/knowledge/sources/{sourceId}/synchronizations',
|
|
1736
|
+
'GET',
|
|
1737
|
+
{ 'sourceId': sourceId },
|
|
1738
|
+
{ 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
1739
|
+
{ },
|
|
1740
|
+
{ },
|
|
1741
|
+
null,
|
|
1742
|
+
['PureCloud OAuth'],
|
|
1743
|
+
['application/json'],
|
|
1744
|
+
['application/json']
|
|
1745
|
+
);
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* List sources
|
|
1750
|
+
*
|
|
1751
|
+
* @param {Object} opts Optional parameters
|
|
1752
|
+
* @param {Array.<String>} opts.expand Optional fields to expand for the Source.
|
|
1753
|
+
*/
|
|
1754
|
+
getKnowledgeSources(opts) {
|
|
1755
|
+
opts = opts || {};
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
return this.apiClient.callApi(
|
|
1759
|
+
'/api/v2/knowledge/sources',
|
|
1760
|
+
'GET',
|
|
1761
|
+
{ },
|
|
1762
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
1763
|
+
{ },
|
|
1764
|
+
{ },
|
|
1765
|
+
null,
|
|
1766
|
+
['PureCloud OAuth'],
|
|
1767
|
+
['application/json'],
|
|
1768
|
+
['application/json']
|
|
1769
|
+
);
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* Get synchronizations of all sources of the organization.
|
|
1774
|
+
*
|
|
1775
|
+
* @param {Object} opts Optional parameters
|
|
1776
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
1777
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
1778
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
1779
|
+
*/
|
|
1780
|
+
getKnowledgeSourcesSynchronizations(opts) {
|
|
1781
|
+
opts = opts || {};
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
return this.apiClient.callApi(
|
|
1785
|
+
'/api/v2/knowledge/sources/synchronizations',
|
|
1786
|
+
'GET',
|
|
1787
|
+
{ },
|
|
1788
|
+
{ 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
1789
|
+
{ },
|
|
1790
|
+
{ },
|
|
1791
|
+
null,
|
|
1792
|
+
['PureCloud OAuth'],
|
|
1793
|
+
['application/json'],
|
|
1794
|
+
['application/json']
|
|
1795
|
+
);
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* Update connection
|
|
1800
|
+
*
|
|
1801
|
+
* @param {String} connectionId Connection ID
|
|
1802
|
+
* @param {Object} opts Optional parameters
|
|
1803
|
+
* @param {Object} opts.body
|
|
1804
|
+
*/
|
|
1805
|
+
patchKnowledgeConnection(connectionId, opts) {
|
|
1806
|
+
opts = opts || {};
|
|
1807
|
+
|
|
1808
|
+
// verify the required parameter 'connectionId' is set
|
|
1809
|
+
if (connectionId === undefined || connectionId === null || connectionId === '') {
|
|
1810
|
+
throw 'Missing the required parameter "connectionId" when calling patchKnowledgeConnection';
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
return this.apiClient.callApi(
|
|
1814
|
+
'/api/v2/knowledge/connections/{connectionId}',
|
|
1815
|
+
'PATCH',
|
|
1816
|
+
{ 'connectionId': connectionId },
|
|
1817
|
+
{ },
|
|
1818
|
+
{ },
|
|
1819
|
+
{ },
|
|
1820
|
+
opts['body'],
|
|
1821
|
+
['PureCloud OAuth'],
|
|
1822
|
+
['application/json'],
|
|
1823
|
+
['application/json']
|
|
1824
|
+
);
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1530
1827
|
/**
|
|
1531
1828
|
* Update search result.
|
|
1532
1829
|
*
|
|
@@ -2019,6 +2316,66 @@ class KnowledgeApi {
|
|
|
2019
2316
|
);
|
|
2020
2317
|
}
|
|
2021
2318
|
|
|
2319
|
+
/**
|
|
2320
|
+
* Update synchronization.
|
|
2321
|
+
*
|
|
2322
|
+
* @param {String} sourceId Source ID
|
|
2323
|
+
* @param {String} synchronizationId Synchronization ID
|
|
2324
|
+
* @param {Object} body
|
|
2325
|
+
*/
|
|
2326
|
+
patchKnowledgeSourceSynchronization(sourceId, synchronizationId, body) {
|
|
2327
|
+
// verify the required parameter 'sourceId' is set
|
|
2328
|
+
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
2329
|
+
throw 'Missing the required parameter "sourceId" when calling patchKnowledgeSourceSynchronization';
|
|
2330
|
+
}
|
|
2331
|
+
// verify the required parameter 'synchronizationId' is set
|
|
2332
|
+
if (synchronizationId === undefined || synchronizationId === null || synchronizationId === '') {
|
|
2333
|
+
throw 'Missing the required parameter "synchronizationId" when calling patchKnowledgeSourceSynchronization';
|
|
2334
|
+
}
|
|
2335
|
+
// verify the required parameter 'body' is set
|
|
2336
|
+
if (body === undefined || body === null) {
|
|
2337
|
+
throw 'Missing the required parameter "body" when calling patchKnowledgeSourceSynchronization';
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
return this.apiClient.callApi(
|
|
2341
|
+
'/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}',
|
|
2342
|
+
'PATCH',
|
|
2343
|
+
{ 'sourceId': sourceId,'synchronizationId': synchronizationId },
|
|
2344
|
+
{ },
|
|
2345
|
+
{ },
|
|
2346
|
+
{ },
|
|
2347
|
+
body,
|
|
2348
|
+
['PureCloud OAuth'],
|
|
2349
|
+
['application/json'],
|
|
2350
|
+
['application/json']
|
|
2351
|
+
);
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
/**
|
|
2355
|
+
* Create new connection
|
|
2356
|
+
*
|
|
2357
|
+
* @param {Object} body
|
|
2358
|
+
*/
|
|
2359
|
+
postKnowledgeConnections(body) {
|
|
2360
|
+
// verify the required parameter 'body' is set
|
|
2361
|
+
if (body === undefined || body === null) {
|
|
2362
|
+
throw 'Missing the required parameter "body" when calling postKnowledgeConnections';
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
return this.apiClient.callApi(
|
|
2366
|
+
'/api/v2/knowledge/connections',
|
|
2367
|
+
'POST',
|
|
2368
|
+
{ },
|
|
2369
|
+
{ },
|
|
2370
|
+
{ },
|
|
2371
|
+
{ },
|
|
2372
|
+
body,
|
|
2373
|
+
['PureCloud OAuth'],
|
|
2374
|
+
['application/json'],
|
|
2375
|
+
['application/json']
|
|
2376
|
+
);
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2022
2379
|
/**
|
|
2023
2380
|
* Creates a presigned URL for uploading a knowledge import file with a set of documents
|
|
2024
2381
|
*
|
|
@@ -3228,6 +3585,95 @@ class KnowledgeApi {
|
|
|
3228
3585
|
);
|
|
3229
3586
|
}
|
|
3230
3587
|
|
|
3588
|
+
/**
|
|
3589
|
+
* Create presigned URL for uploading a file in the synchronization.
|
|
3590
|
+
*
|
|
3591
|
+
* @param {String} sourceId Source ID
|
|
3592
|
+
* @param {String} synchronizationId Synchronization ID
|
|
3593
|
+
* @param {Object} body
|
|
3594
|
+
*/
|
|
3595
|
+
postKnowledgeSourceSynchronizationUploads(sourceId, synchronizationId, body) {
|
|
3596
|
+
// verify the required parameter 'sourceId' is set
|
|
3597
|
+
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
3598
|
+
throw 'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizationUploads';
|
|
3599
|
+
}
|
|
3600
|
+
// verify the required parameter 'synchronizationId' is set
|
|
3601
|
+
if (synchronizationId === undefined || synchronizationId === null || synchronizationId === '') {
|
|
3602
|
+
throw 'Missing the required parameter "synchronizationId" when calling postKnowledgeSourceSynchronizationUploads';
|
|
3603
|
+
}
|
|
3604
|
+
// verify the required parameter 'body' is set
|
|
3605
|
+
if (body === undefined || body === null) {
|
|
3606
|
+
throw 'Missing the required parameter "body" when calling postKnowledgeSourceSynchronizationUploads';
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
return this.apiClient.callApi(
|
|
3610
|
+
'/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}/uploads',
|
|
3611
|
+
'POST',
|
|
3612
|
+
{ 'sourceId': sourceId,'synchronizationId': synchronizationId },
|
|
3613
|
+
{ },
|
|
3614
|
+
{ },
|
|
3615
|
+
{ },
|
|
3616
|
+
body,
|
|
3617
|
+
['PureCloud OAuth'],
|
|
3618
|
+
['application/json'],
|
|
3619
|
+
['application/json']
|
|
3620
|
+
);
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
/**
|
|
3624
|
+
* Start a manual synchronization from a source.
|
|
3625
|
+
*
|
|
3626
|
+
* @param {String} sourceId Source ID
|
|
3627
|
+
* @param {Object} opts Optional parameters
|
|
3628
|
+
* @param {Object} opts.body
|
|
3629
|
+
*/
|
|
3630
|
+
postKnowledgeSourceSynchronizations(sourceId, opts) {
|
|
3631
|
+
opts = opts || {};
|
|
3632
|
+
|
|
3633
|
+
// verify the required parameter 'sourceId' is set
|
|
3634
|
+
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
3635
|
+
throw 'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizations';
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
return this.apiClient.callApi(
|
|
3639
|
+
'/api/v2/knowledge/sources/{sourceId}/synchronizations',
|
|
3640
|
+
'POST',
|
|
3641
|
+
{ 'sourceId': sourceId },
|
|
3642
|
+
{ },
|
|
3643
|
+
{ },
|
|
3644
|
+
{ },
|
|
3645
|
+
opts['body'],
|
|
3646
|
+
['PureCloud OAuth'],
|
|
3647
|
+
['application/json'],
|
|
3648
|
+
['application/json']
|
|
3649
|
+
);
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
/**
|
|
3653
|
+
* Create a new source
|
|
3654
|
+
*
|
|
3655
|
+
* @param {Object} body
|
|
3656
|
+
*/
|
|
3657
|
+
postKnowledgeSources(body) {
|
|
3658
|
+
// verify the required parameter 'body' is set
|
|
3659
|
+
if (body === undefined || body === null) {
|
|
3660
|
+
throw 'Missing the required parameter "body" when calling postKnowledgeSources';
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
return this.apiClient.callApi(
|
|
3664
|
+
'/api/v2/knowledge/sources',
|
|
3665
|
+
'POST',
|
|
3666
|
+
{ },
|
|
3667
|
+
{ },
|
|
3668
|
+
{ },
|
|
3669
|
+
{ },
|
|
3670
|
+
body,
|
|
3671
|
+
['PureCloud OAuth'],
|
|
3672
|
+
['application/json'],
|
|
3673
|
+
['application/json']
|
|
3674
|
+
);
|
|
3675
|
+
}
|
|
3676
|
+
|
|
3231
3677
|
/**
|
|
3232
3678
|
* Update Salesforce Knowledge integration source
|
|
3233
3679
|
*
|
|
@@ -3298,6 +3744,36 @@ class KnowledgeApi {
|
|
|
3298
3744
|
);
|
|
3299
3745
|
}
|
|
3300
3746
|
|
|
3747
|
+
/**
|
|
3748
|
+
* Update the source
|
|
3749
|
+
*
|
|
3750
|
+
* @param {String} sourceId Source ID
|
|
3751
|
+
* @param {Object} body
|
|
3752
|
+
*/
|
|
3753
|
+
putKnowledgeSource(sourceId, body) {
|
|
3754
|
+
// verify the required parameter 'sourceId' is set
|
|
3755
|
+
if (sourceId === undefined || sourceId === null || sourceId === '') {
|
|
3756
|
+
throw 'Missing the required parameter "sourceId" when calling putKnowledgeSource';
|
|
3757
|
+
}
|
|
3758
|
+
// verify the required parameter 'body' is set
|
|
3759
|
+
if (body === undefined || body === null) {
|
|
3760
|
+
throw 'Missing the required parameter "body" when calling putKnowledgeSource';
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
return this.apiClient.callApi(
|
|
3764
|
+
'/api/v2/knowledge/sources/{sourceId}',
|
|
3765
|
+
'PUT',
|
|
3766
|
+
{ 'sourceId': sourceId },
|
|
3767
|
+
{ },
|
|
3768
|
+
{ },
|
|
3769
|
+
{ },
|
|
3770
|
+
body,
|
|
3771
|
+
['PureCloud OAuth'],
|
|
3772
|
+
['application/json'],
|
|
3773
|
+
['application/json']
|
|
3774
|
+
);
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3301
3777
|
}
|
|
3302
3778
|
|
|
3303
3779
|
|
|
@@ -5,7 +5,7 @@ class LicenseApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* License service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 249.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -164,6 +164,31 @@ class LicenseApi {
|
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
+
/**
|
|
168
|
+
* Get a list of licenses inferred based on a list of permissions
|
|
169
|
+
*
|
|
170
|
+
* @param {Object} opts Optional parameters
|
|
171
|
+
* @param {Array.<String>} opts.body The permissions to use while inferring licenses
|
|
172
|
+
* postLicenseInferPermissions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
173
|
+
*/
|
|
174
|
+
postLicenseInferPermissions(opts) {
|
|
175
|
+
opts = opts || {};
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
return this.apiClient.callApi(
|
|
179
|
+
'/api/v2/license/infer/permissions',
|
|
180
|
+
'POST',
|
|
181
|
+
{ },
|
|
182
|
+
{ },
|
|
183
|
+
{ },
|
|
184
|
+
{ },
|
|
185
|
+
opts['body'],
|
|
186
|
+
['PureCloud OAuth'],
|
|
187
|
+
['application/json'],
|
|
188
|
+
['application/json']
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
167
192
|
/**
|
|
168
193
|
* Update the organization's license assignments in a batch.
|
|
169
194
|
*
|