purecloud-platform-client-v2 205.0.0 → 206.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 +5 -3
- package/dist/node/purecloud-platform-client-v2.js +646 -84
- package/dist/web-amd/purecloud-platform-client-v2.js +646 -84
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +228 -85
- package/dist/web-cjs/purecloud-platform-client-v2.js +228 -85
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +467 -5
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.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/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +7 -4
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +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 +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +191 -1
- 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 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.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/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 +311 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +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/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 +2 -2
- 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 +60 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ class ConversationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Conversations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 206.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -3751,7 +3751,6 @@ class ConversationsApi {
|
|
|
3751
3751
|
* @param {String} conversationId conversationId
|
|
3752
3752
|
* @param {String} participantId participantId
|
|
3753
3753
|
* @param {Object} body Parking update request
|
|
3754
|
-
* patchConversationsEmailParticipantParkingstate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3755
3754
|
*/
|
|
3756
3755
|
patchConversationsEmailParticipantParkingstate(conversationId, participantId, body) {
|
|
3757
3756
|
// verify the required parameter 'conversationId' is set
|
|
@@ -5991,8 +5990,12 @@ class ConversationsApi {
|
|
|
5991
5990
|
* Send an inbound message to an Open Messaging integration. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least messaging scope. This will either generate a new Conversation, or be a part of an existing conversation. See https://developer.genesys.cloud/api/digital/openmessaging/ for example usage.
|
|
5992
5991
|
* @param {String} integrationId integrationId
|
|
5993
5992
|
* @param {Object} body NormalizedMessage
|
|
5993
|
+
* @param {Object} opts Optional parameters
|
|
5994
|
+
* @param {Boolean} opts.prefetchConversationId Indicates whether or not to prefetch conversationId (default to false)
|
|
5994
5995
|
*/
|
|
5995
|
-
postConversationsMessageInboundOpenMessage(integrationId, body) {
|
|
5996
|
+
postConversationsMessageInboundOpenMessage(integrationId, body, opts) {
|
|
5997
|
+
opts = opts || {};
|
|
5998
|
+
|
|
5996
5999
|
// verify the required parameter 'integrationId' is set
|
|
5997
6000
|
if (integrationId === undefined || integrationId === null) {
|
|
5998
6001
|
throw 'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';
|
|
@@ -6006,7 +6009,7 @@ class ConversationsApi {
|
|
|
6006
6009
|
'/api/v2/conversations/messages/{integrationId}/inbound/open/message',
|
|
6007
6010
|
'POST',
|
|
6008
6011
|
{ 'integrationId': integrationId },
|
|
6009
|
-
{
|
|
6012
|
+
{ 'prefetchConversationId': opts['prefetchConversationId'] },
|
|
6010
6013
|
{ },
|
|
6011
6014
|
{ },
|
|
6012
6015
|
body,
|
|
@@ -5,7 +5,7 @@ class JourneyApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Journey service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 206.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -852,6 +852,81 @@ class JourneyApi {
|
|
|
852
852
|
);
|
|
853
853
|
}
|
|
854
854
|
|
|
855
|
+
/**
|
|
856
|
+
* Get a Chart by ID
|
|
857
|
+
* returns the latest version
|
|
858
|
+
* @param {String} viewId viewId
|
|
859
|
+
* @param {String} journeyViewVersion Journey View Version
|
|
860
|
+
* @param {String} chartId chartId
|
|
861
|
+
*/
|
|
862
|
+
getJourneyViewVersionChart(viewId, journeyViewVersion, chartId) {
|
|
863
|
+
// verify the required parameter 'viewId' is set
|
|
864
|
+
if (viewId === undefined || viewId === null) {
|
|
865
|
+
throw 'Missing the required parameter "viewId" when calling getJourneyViewVersionChart';
|
|
866
|
+
}
|
|
867
|
+
// verify the required parameter 'journeyViewVersion' is set
|
|
868
|
+
if (journeyViewVersion === undefined || journeyViewVersion === null) {
|
|
869
|
+
throw 'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChart';
|
|
870
|
+
}
|
|
871
|
+
// verify the required parameter 'chartId' is set
|
|
872
|
+
if (chartId === undefined || chartId === null) {
|
|
873
|
+
throw 'Missing the required parameter "chartId" when calling getJourneyViewVersionChart';
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
return this.apiClient.callApi(
|
|
877
|
+
'/api/v2/journey/views/{viewId}/versions/{journeyViewVersion}/charts/{chartId}',
|
|
878
|
+
'GET',
|
|
879
|
+
{ 'viewId': viewId,'journeyViewVersion': journeyViewVersion,'chartId': chartId },
|
|
880
|
+
{ },
|
|
881
|
+
{ },
|
|
882
|
+
{ },
|
|
883
|
+
null,
|
|
884
|
+
['PureCloud OAuth'],
|
|
885
|
+
['application/json'],
|
|
886
|
+
['application/json']
|
|
887
|
+
);
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Get a Chart by ID and version
|
|
892
|
+
*
|
|
893
|
+
* @param {String} viewId viewId
|
|
894
|
+
* @param {String} journeyViewVersion Journey View Version
|
|
895
|
+
* @param {String} chartId chartId
|
|
896
|
+
* @param {String} chartVersion chartVersion
|
|
897
|
+
*/
|
|
898
|
+
getJourneyViewVersionChartVersion(viewId, journeyViewVersion, chartId, chartVersion) {
|
|
899
|
+
// verify the required parameter 'viewId' is set
|
|
900
|
+
if (viewId === undefined || viewId === null) {
|
|
901
|
+
throw 'Missing the required parameter "viewId" when calling getJourneyViewVersionChartVersion';
|
|
902
|
+
}
|
|
903
|
+
// verify the required parameter 'journeyViewVersion' is set
|
|
904
|
+
if (journeyViewVersion === undefined || journeyViewVersion === null) {
|
|
905
|
+
throw 'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChartVersion';
|
|
906
|
+
}
|
|
907
|
+
// verify the required parameter 'chartId' is set
|
|
908
|
+
if (chartId === undefined || chartId === null) {
|
|
909
|
+
throw 'Missing the required parameter "chartId" when calling getJourneyViewVersionChartVersion';
|
|
910
|
+
}
|
|
911
|
+
// verify the required parameter 'chartVersion' is set
|
|
912
|
+
if (chartVersion === undefined || chartVersion === null) {
|
|
913
|
+
throw 'Missing the required parameter "chartVersion" when calling getJourneyViewVersionChartVersion';
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
return this.apiClient.callApi(
|
|
917
|
+
'/api/v2/journey/views/{viewId}/versions/{journeyViewVersion}/charts/{chartId}/versions/{chartVersion}',
|
|
918
|
+
'GET',
|
|
919
|
+
{ 'viewId': viewId,'journeyViewVersion': journeyViewVersion,'chartId': chartId,'chartVersion': chartVersion },
|
|
920
|
+
{ },
|
|
921
|
+
{ },
|
|
922
|
+
{ },
|
|
923
|
+
null,
|
|
924
|
+
['PureCloud OAuth'],
|
|
925
|
+
['application/json'],
|
|
926
|
+
['application/json']
|
|
927
|
+
);
|
|
928
|
+
}
|
|
929
|
+
|
|
855
930
|
/**
|
|
856
931
|
* Get the job for a journey view version.
|
|
857
932
|
* used for long descriptions
|
|
@@ -922,6 +997,46 @@ class JourneyApi {
|
|
|
922
997
|
);
|
|
923
998
|
}
|
|
924
999
|
|
|
1000
|
+
/**
|
|
1001
|
+
* Get the chart result associated with a journey view job.
|
|
1002
|
+
*
|
|
1003
|
+
* @param {String} viewId Journey View Id
|
|
1004
|
+
* @param {String} journeyVersionId Journey View Version
|
|
1005
|
+
* @param {String} jobId JobId
|
|
1006
|
+
* @param {String} chartId ChartId
|
|
1007
|
+
*/
|
|
1008
|
+
getJourneyViewVersionJobResultsChart(viewId, journeyVersionId, jobId, chartId) {
|
|
1009
|
+
// verify the required parameter 'viewId' is set
|
|
1010
|
+
if (viewId === undefined || viewId === null) {
|
|
1011
|
+
throw 'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResultsChart';
|
|
1012
|
+
}
|
|
1013
|
+
// verify the required parameter 'journeyVersionId' is set
|
|
1014
|
+
if (journeyVersionId === undefined || journeyVersionId === null) {
|
|
1015
|
+
throw 'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobResultsChart';
|
|
1016
|
+
}
|
|
1017
|
+
// verify the required parameter 'jobId' is set
|
|
1018
|
+
if (jobId === undefined || jobId === null) {
|
|
1019
|
+
throw 'Missing the required parameter "jobId" when calling getJourneyViewVersionJobResultsChart';
|
|
1020
|
+
}
|
|
1021
|
+
// verify the required parameter 'chartId' is set
|
|
1022
|
+
if (chartId === undefined || chartId === null) {
|
|
1023
|
+
throw 'Missing the required parameter "chartId" when calling getJourneyViewVersionJobResultsChart';
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
return this.apiClient.callApi(
|
|
1027
|
+
'/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/{jobId}/results/charts/{chartId}',
|
|
1028
|
+
'GET',
|
|
1029
|
+
{ 'viewId': viewId,'journeyVersionId': journeyVersionId,'jobId': jobId,'chartId': chartId },
|
|
1030
|
+
{ },
|
|
1031
|
+
{ },
|
|
1032
|
+
{ },
|
|
1033
|
+
null,
|
|
1034
|
+
['PureCloud OAuth'],
|
|
1035
|
+
['application/json'],
|
|
1036
|
+
['application/json']
|
|
1037
|
+
);
|
|
1038
|
+
}
|
|
1039
|
+
|
|
925
1040
|
/**
|
|
926
1041
|
* Get the latest job of a journey view version.
|
|
927
1042
|
* used for long descriptions
|
|
@@ -1199,6 +1314,46 @@ class JourneyApi {
|
|
|
1199
1314
|
);
|
|
1200
1315
|
}
|
|
1201
1316
|
|
|
1317
|
+
/**
|
|
1318
|
+
* Update the job for a journey view version. Only the status can be changed and only to Cancelled
|
|
1319
|
+
* used for long descriptions
|
|
1320
|
+
* @param {String} viewId Journey View Id
|
|
1321
|
+
* @param {String} journeyVersionId Journey View Version
|
|
1322
|
+
* @param {String} jobId JobId
|
|
1323
|
+
* @param {Object} body journeyViewJob
|
|
1324
|
+
*/
|
|
1325
|
+
patchJourneyViewVersionJob(viewId, journeyVersionId, jobId, body) {
|
|
1326
|
+
// verify the required parameter 'viewId' is set
|
|
1327
|
+
if (viewId === undefined || viewId === null) {
|
|
1328
|
+
throw 'Missing the required parameter "viewId" when calling patchJourneyViewVersionJob';
|
|
1329
|
+
}
|
|
1330
|
+
// verify the required parameter 'journeyVersionId' is set
|
|
1331
|
+
if (journeyVersionId === undefined || journeyVersionId === null) {
|
|
1332
|
+
throw 'Missing the required parameter "journeyVersionId" when calling patchJourneyViewVersionJob';
|
|
1333
|
+
}
|
|
1334
|
+
// verify the required parameter 'jobId' is set
|
|
1335
|
+
if (jobId === undefined || jobId === null) {
|
|
1336
|
+
throw 'Missing the required parameter "jobId" when calling patchJourneyViewVersionJob';
|
|
1337
|
+
}
|
|
1338
|
+
// verify the required parameter 'body' is set
|
|
1339
|
+
if (body === undefined || body === null) {
|
|
1340
|
+
throw 'Missing the required parameter "body" when calling patchJourneyViewVersionJob';
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
return this.apiClient.callApi(
|
|
1344
|
+
'/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/{jobId}',
|
|
1345
|
+
'PATCH',
|
|
1346
|
+
{ 'viewId': viewId,'journeyVersionId': journeyVersionId,'jobId': jobId },
|
|
1347
|
+
{ },
|
|
1348
|
+
{ },
|
|
1349
|
+
{ },
|
|
1350
|
+
body,
|
|
1351
|
+
['PureCloud OAuth'],
|
|
1352
|
+
['application/json'],
|
|
1353
|
+
['application/json']
|
|
1354
|
+
);
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1202
1357
|
/**
|
|
1203
1358
|
* Query for journey aggregates asynchronously
|
|
1204
1359
|
*
|
|
@@ -1642,6 +1797,41 @@ class JourneyApi {
|
|
|
1642
1797
|
);
|
|
1643
1798
|
}
|
|
1644
1799
|
|
|
1800
|
+
/**
|
|
1801
|
+
* Update a Journey View by ID and version
|
|
1802
|
+
* does not create a new version
|
|
1803
|
+
* @param {String} viewId viewId
|
|
1804
|
+
* @param {String} versionId versionId
|
|
1805
|
+
* @param {Object} body JourneyView
|
|
1806
|
+
*/
|
|
1807
|
+
putJourneyViewVersion(viewId, versionId, body) {
|
|
1808
|
+
// verify the required parameter 'viewId' is set
|
|
1809
|
+
if (viewId === undefined || viewId === null) {
|
|
1810
|
+
throw 'Missing the required parameter "viewId" when calling putJourneyViewVersion';
|
|
1811
|
+
}
|
|
1812
|
+
// verify the required parameter 'versionId' is set
|
|
1813
|
+
if (versionId === undefined || versionId === null) {
|
|
1814
|
+
throw 'Missing the required parameter "versionId" when calling putJourneyViewVersion';
|
|
1815
|
+
}
|
|
1816
|
+
// verify the required parameter 'body' is set
|
|
1817
|
+
if (body === undefined || body === null) {
|
|
1818
|
+
throw 'Missing the required parameter "body" when calling putJourneyViewVersion';
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
return this.apiClient.callApi(
|
|
1822
|
+
'/api/v2/journey/views/{viewId}/versions/{versionId}',
|
|
1823
|
+
'PUT',
|
|
1824
|
+
{ 'viewId': viewId,'versionId': versionId },
|
|
1825
|
+
{ },
|
|
1826
|
+
{ },
|
|
1827
|
+
{ },
|
|
1828
|
+
body,
|
|
1829
|
+
['PureCloud OAuth'],
|
|
1830
|
+
['application/json'],
|
|
1831
|
+
['application/json']
|
|
1832
|
+
);
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1645
1835
|
}
|
|
1646
1836
|
|
|
1647
1837
|
|