purecloud-platform-client-v2 255.0.0 → 256.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 +693 -93
- package/dist/web-amd/purecloud-platform-client-v2.js +693 -93
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +254 -94
- package/dist/web-cjs/purecloud-platform-client-v2.js +254 -94
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +362 -30
- 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 +35 -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 +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CaseManagementApi.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 +1 -1
- 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 +151 -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 +3 -2
- 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 +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 +2 -4
- 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 +2 -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 +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/ScreenMonitoringApi.js +381 -0
- 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 +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/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 +37 -1
- package/src/purecloud-platform-client-v2/index.js +7 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ class ArchitectApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Architect service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 256.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -2842,6 +2842,40 @@ class ArchitectApi {
|
|
|
2842
2842
|
);
|
|
2843
2843
|
}
|
|
2844
2844
|
|
|
2845
|
+
/**
|
|
2846
|
+
* Look up flows by ID
|
|
2847
|
+
* Returns only flows matching the specified ID(s). Returns an empty listing if no flows match the given IDs.
|
|
2848
|
+
* @param {Array.<String>} id Flow ID(s)
|
|
2849
|
+
* @param {Object} opts Optional parameters
|
|
2850
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
2851
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
2852
|
+
* @param {String} opts.sortBy Sort by (default to id)
|
|
2853
|
+
* @param {String} opts.sortOrder Sort order (default to asc)
|
|
2854
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2855
|
+
*/
|
|
2856
|
+
getFlowsLookup(id, opts) {
|
|
2857
|
+
opts = opts || {};
|
|
2858
|
+
|
|
2859
|
+
// verify the required parameter 'id' is set
|
|
2860
|
+
if (id === undefined || id === null) {
|
|
2861
|
+
throw 'Missing the required parameter "id" when calling getFlowsLookup';
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
return this.apiClient.callApi(
|
|
2865
|
+
'/api/v2/flows/lookup',
|
|
2866
|
+
'GET',
|
|
2867
|
+
{ },
|
|
2868
|
+
{ 'id': this.apiClient.buildCollectionParam(id, 'multi'),'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
|
|
2869
|
+
{ },
|
|
2870
|
+
{ },
|
|
2871
|
+
null,
|
|
2872
|
+
['PureCloud OAuth'],
|
|
2873
|
+
['application/json'],
|
|
2874
|
+
['application/json'],
|
|
2875
|
+
opts['customHeaders']
|
|
2876
|
+
);
|
|
2877
|
+
}
|
|
2878
|
+
|
|
2845
2879
|
/**
|
|
2846
2880
|
* Get a flow milestone
|
|
2847
2881
|
* Returns a specified flow milestone
|
|
@@ -5,7 +5,7 @@ class ExternalContactsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* ExternalContacts service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 256.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1930,6 +1930,81 @@ class ExternalContactsApi {
|
|
|
1930
1930
|
);
|
|
1931
1931
|
}
|
|
1932
1932
|
|
|
1933
|
+
/**
|
|
1934
|
+
* Update a Contact Note
|
|
1935
|
+
*
|
|
1936
|
+
* @param {String} contactId ExternalContact Id
|
|
1937
|
+
* @param {String} noteId Note Id
|
|
1938
|
+
* @param {Object} body Note field to update
|
|
1939
|
+
* @param {Object} opts Optional parameters
|
|
1940
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1941
|
+
*/
|
|
1942
|
+
patchExternalcontactsContactNote(contactId, noteId, body, opts) {
|
|
1943
|
+
opts = opts || {};
|
|
1944
|
+
|
|
1945
|
+
// verify the required parameter 'contactId' is set
|
|
1946
|
+
if (contactId === undefined || contactId === null || contactId === '') {
|
|
1947
|
+
throw 'Missing the required parameter "contactId" when calling patchExternalcontactsContactNote';
|
|
1948
|
+
}
|
|
1949
|
+
// verify the required parameter 'noteId' is set
|
|
1950
|
+
if (noteId === undefined || noteId === null || noteId === '') {
|
|
1951
|
+
throw 'Missing the required parameter "noteId" when calling patchExternalcontactsContactNote';
|
|
1952
|
+
}
|
|
1953
|
+
// verify the required parameter 'body' is set
|
|
1954
|
+
if (body === undefined || body === null) {
|
|
1955
|
+
throw 'Missing the required parameter "body" when calling patchExternalcontactsContactNote';
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
return this.apiClient.callApi(
|
|
1959
|
+
'/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}',
|
|
1960
|
+
'PATCH',
|
|
1961
|
+
{ 'contactId': contactId,'noteId': noteId },
|
|
1962
|
+
{ },
|
|
1963
|
+
{ },
|
|
1964
|
+
{ },
|
|
1965
|
+
body,
|
|
1966
|
+
['PureCloud OAuth'],
|
|
1967
|
+
['application/json'],
|
|
1968
|
+
['application/json'],
|
|
1969
|
+
opts['customHeaders']
|
|
1970
|
+
);
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
/**
|
|
1974
|
+
* Update specific fields of an external organization
|
|
1975
|
+
*
|
|
1976
|
+
* @param {String} externalOrganizationId External Organization ID
|
|
1977
|
+
* @param {Object} body External Organization fields to update
|
|
1978
|
+
* @param {Object} opts Optional parameters
|
|
1979
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1980
|
+
*/
|
|
1981
|
+
patchExternalcontactsOrganization(externalOrganizationId, body, opts) {
|
|
1982
|
+
opts = opts || {};
|
|
1983
|
+
|
|
1984
|
+
// verify the required parameter 'externalOrganizationId' is set
|
|
1985
|
+
if (externalOrganizationId === undefined || externalOrganizationId === null || externalOrganizationId === '') {
|
|
1986
|
+
throw 'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganization';
|
|
1987
|
+
}
|
|
1988
|
+
// verify the required parameter 'body' is set
|
|
1989
|
+
if (body === undefined || body === null) {
|
|
1990
|
+
throw 'Missing the required parameter "body" when calling patchExternalcontactsOrganization';
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
return this.apiClient.callApi(
|
|
1994
|
+
'/api/v2/externalcontacts/organizations/{externalOrganizationId}',
|
|
1995
|
+
'PATCH',
|
|
1996
|
+
{ 'externalOrganizationId': externalOrganizationId },
|
|
1997
|
+
{ },
|
|
1998
|
+
{ },
|
|
1999
|
+
{ },
|
|
2000
|
+
body,
|
|
2001
|
+
['PureCloud OAuth'],
|
|
2002
|
+
['application/json'],
|
|
2003
|
+
['application/json'],
|
|
2004
|
+
opts['customHeaders']
|
|
2005
|
+
);
|
|
2006
|
+
}
|
|
2007
|
+
|
|
1933
2008
|
/**
|
|
1934
2009
|
* Claim or release identifiers for an external organization
|
|
1935
2010
|
*
|
|
@@ -1965,6 +2040,81 @@ class ExternalContactsApi {
|
|
|
1965
2040
|
);
|
|
1966
2041
|
}
|
|
1967
2042
|
|
|
2043
|
+
/**
|
|
2044
|
+
* Update an External Organization Note
|
|
2045
|
+
*
|
|
2046
|
+
* @param {String} externalOrganizationId External Organization Id
|
|
2047
|
+
* @param {String} noteId Note Id
|
|
2048
|
+
* @param {Object} body Note field to update
|
|
2049
|
+
* @param {Object} opts Optional parameters
|
|
2050
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2051
|
+
*/
|
|
2052
|
+
patchExternalcontactsOrganizationNote(externalOrganizationId, noteId, body, opts) {
|
|
2053
|
+
opts = opts || {};
|
|
2054
|
+
|
|
2055
|
+
// verify the required parameter 'externalOrganizationId' is set
|
|
2056
|
+
if (externalOrganizationId === undefined || externalOrganizationId === null || externalOrganizationId === '') {
|
|
2057
|
+
throw 'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationNote';
|
|
2058
|
+
}
|
|
2059
|
+
// verify the required parameter 'noteId' is set
|
|
2060
|
+
if (noteId === undefined || noteId === null || noteId === '') {
|
|
2061
|
+
throw 'Missing the required parameter "noteId" when calling patchExternalcontactsOrganizationNote';
|
|
2062
|
+
}
|
|
2063
|
+
// verify the required parameter 'body' is set
|
|
2064
|
+
if (body === undefined || body === null) {
|
|
2065
|
+
throw 'Missing the required parameter "body" when calling patchExternalcontactsOrganizationNote';
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
return this.apiClient.callApi(
|
|
2069
|
+
'/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}',
|
|
2070
|
+
'PATCH',
|
|
2071
|
+
{ 'externalOrganizationId': externalOrganizationId,'noteId': noteId },
|
|
2072
|
+
{ },
|
|
2073
|
+
{ },
|
|
2074
|
+
{ },
|
|
2075
|
+
body,
|
|
2076
|
+
['PureCloud OAuth'],
|
|
2077
|
+
['application/json'],
|
|
2078
|
+
['application/json'],
|
|
2079
|
+
opts['customHeaders']
|
|
2080
|
+
);
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
/**
|
|
2084
|
+
* Update specific fields of a relationship
|
|
2085
|
+
*
|
|
2086
|
+
* @param {String} relationshipId Relationship Id
|
|
2087
|
+
* @param {Object} body Relationship fields to update
|
|
2088
|
+
* @param {Object} opts Optional parameters
|
|
2089
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
2090
|
+
*/
|
|
2091
|
+
patchExternalcontactsRelationship(relationshipId, body, opts) {
|
|
2092
|
+
opts = opts || {};
|
|
2093
|
+
|
|
2094
|
+
// verify the required parameter 'relationshipId' is set
|
|
2095
|
+
if (relationshipId === undefined || relationshipId === null || relationshipId === '') {
|
|
2096
|
+
throw 'Missing the required parameter "relationshipId" when calling patchExternalcontactsRelationship';
|
|
2097
|
+
}
|
|
2098
|
+
// verify the required parameter 'body' is set
|
|
2099
|
+
if (body === undefined || body === null) {
|
|
2100
|
+
throw 'Missing the required parameter "body" when calling patchExternalcontactsRelationship';
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
return this.apiClient.callApi(
|
|
2104
|
+
'/api/v2/externalcontacts/relationships/{relationshipId}',
|
|
2105
|
+
'PATCH',
|
|
2106
|
+
{ 'relationshipId': relationshipId },
|
|
2107
|
+
{ },
|
|
2108
|
+
{ },
|
|
2109
|
+
{ },
|
|
2110
|
+
body,
|
|
2111
|
+
['PureCloud OAuth'],
|
|
2112
|
+
['application/json'],
|
|
2113
|
+
['application/json'],
|
|
2114
|
+
opts['customHeaders']
|
|
2115
|
+
);
|
|
2116
|
+
}
|
|
2117
|
+
|
|
1968
2118
|
/**
|
|
1969
2119
|
* Bulk fetch contacts
|
|
1970
2120
|
*
|
|
@@ -5,7 +5,7 @@ class IntegrationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Integrations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 256.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -219,6 +219,7 @@ class IntegrationsApi {
|
|
|
219
219
|
* @param {Array.<String>} opts.ids Comma-separated list of integration IDs to filter by (max 100)
|
|
220
220
|
* @param {String} opts.integrationType Filter integrations by integration type ID
|
|
221
221
|
* @param {Object} opts.reportedState Filter integrations by reported state (case-insensitive)
|
|
222
|
+
* @param {String} opts.credentialId Filter integrations by credential ID
|
|
222
223
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
223
224
|
*/
|
|
224
225
|
getIntegrations(opts) {
|
|
@@ -229,7 +230,7 @@ class IntegrationsApi {
|
|
|
229
230
|
'/api/v2/integrations',
|
|
230
231
|
'GET',
|
|
231
232
|
{ },
|
|
232
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'nextPage': opts['nextPage'],'previousPage': opts['previousPage'],'ids': this.apiClient.buildCollectionParam(opts['ids'], 'multi'),'integrationType': opts['integrationType'],'reportedState': opts['reportedState'] },
|
|
233
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'nextPage': opts['nextPage'],'previousPage': opts['previousPage'],'ids': this.apiClient.buildCollectionParam(opts['ids'], 'multi'),'integrationType': opts['integrationType'],'reportedState': opts['reportedState'],'credentialId': opts['credentialId'] },
|
|
233
234
|
{ },
|
|
234
235
|
{ },
|
|
235
236
|
null,
|