purecloud-platform-client-v2 194.0.0 → 195.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 +2 -2
- package/dist/node/purecloud-platform-client-v2.js +589 -116
- package/dist/web-amd/purecloud-platform-client-v2.js +589 -116
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +205 -96
- package/dist/web-cjs/purecloud-platform-client-v2.js +205 -96
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +401 -299
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +4 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +147 -3
- 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 +26 -32
- 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/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 +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +3 -2
- 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 +174 -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 -7
- 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 +165 -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/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 +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5,7 +5,7 @@ class LearningApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Learning service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 195.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -99,6 +99,41 @@ class LearningApi {
|
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Get Learning Assignment Step
|
|
104
|
+
* Permission not required if you are the assigned user of the learning assignment
|
|
105
|
+
* @param {String} assignmentId The ID of Learning Assignment
|
|
106
|
+
* @param {String} stepId The ID of Learning Assignment Step
|
|
107
|
+
* @param {Object} opts Optional parameters
|
|
108
|
+
* @param {String} opts.shareableContentObjectId The ID of SCO to load
|
|
109
|
+
* @param {Array.<String>} opts.expand Fields to expand in response
|
|
110
|
+
*/
|
|
111
|
+
getLearningAssignmentStep(assignmentId, stepId, opts) {
|
|
112
|
+
opts = opts || {};
|
|
113
|
+
|
|
114
|
+
// verify the required parameter 'assignmentId' is set
|
|
115
|
+
if (assignmentId === undefined || assignmentId === null) {
|
|
116
|
+
throw 'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';
|
|
117
|
+
}
|
|
118
|
+
// verify the required parameter 'stepId' is set
|
|
119
|
+
if (stepId === undefined || stepId === null) {
|
|
120
|
+
throw 'Missing the required parameter "stepId" when calling getLearningAssignmentStep';
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return this.apiClient.callApi(
|
|
124
|
+
'/api/v2/learning/assignments/{assignmentId}/steps/{stepId}',
|
|
125
|
+
'GET',
|
|
126
|
+
{ 'assignmentId': assignmentId,'stepId': stepId },
|
|
127
|
+
{ 'shareableContentObjectId': opts['shareableContentObjectId'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
128
|
+
{ },
|
|
129
|
+
{ },
|
|
130
|
+
null,
|
|
131
|
+
['PureCloud OAuth'],
|
|
132
|
+
['application/json'],
|
|
133
|
+
['application/json']
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
102
137
|
/**
|
|
103
138
|
* List of Learning module Assignments
|
|
104
139
|
* Either moduleId or user value is required
|
|
@@ -233,6 +268,31 @@ class LearningApi {
|
|
|
233
268
|
);
|
|
234
269
|
}
|
|
235
270
|
|
|
271
|
+
/**
|
|
272
|
+
* Get a learning module preview
|
|
273
|
+
*
|
|
274
|
+
* @param {String} moduleId The ID of the learning module
|
|
275
|
+
*/
|
|
276
|
+
getLearningModulePreview(moduleId) {
|
|
277
|
+
// verify the required parameter 'moduleId' is set
|
|
278
|
+
if (moduleId === undefined || moduleId === null) {
|
|
279
|
+
throw 'Missing the required parameter "moduleId" when calling getLearningModulePreview';
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
return this.apiClient.callApi(
|
|
283
|
+
'/api/v2/learning/modules/{moduleId}/preview',
|
|
284
|
+
'GET',
|
|
285
|
+
{ 'moduleId': moduleId },
|
|
286
|
+
{ },
|
|
287
|
+
{ },
|
|
288
|
+
{ },
|
|
289
|
+
null,
|
|
290
|
+
['PureCloud OAuth'],
|
|
291
|
+
['application/json'],
|
|
292
|
+
['application/json']
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
|
|
236
296
|
/**
|
|
237
297
|
* Get a learning module rule
|
|
238
298
|
*
|
|
@@ -385,6 +445,31 @@ class LearningApi {
|
|
|
385
445
|
);
|
|
386
446
|
}
|
|
387
447
|
|
|
448
|
+
/**
|
|
449
|
+
* Get Learning SCORM Result
|
|
450
|
+
*
|
|
451
|
+
* @param {String} scormId The ID of the SCORM package
|
|
452
|
+
*/
|
|
453
|
+
getLearningScormScormId(scormId) {
|
|
454
|
+
// verify the required parameter 'scormId' is set
|
|
455
|
+
if (scormId === undefined || scormId === null) {
|
|
456
|
+
throw 'Missing the required parameter "scormId" when calling getLearningScormScormId';
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
return this.apiClient.callApi(
|
|
460
|
+
'/api/v2/learning/scorm/{scormId}',
|
|
461
|
+
'GET',
|
|
462
|
+
{ 'scormId': scormId },
|
|
463
|
+
{ },
|
|
464
|
+
{ },
|
|
465
|
+
{ },
|
|
466
|
+
null,
|
|
467
|
+
['PureCloud OAuth'],
|
|
468
|
+
['application/json'],
|
|
469
|
+
['application/json']
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
|
|
388
473
|
/**
|
|
389
474
|
* Update Learning Assignment
|
|
390
475
|
*
|
|
@@ -443,6 +528,40 @@ class LearningApi {
|
|
|
443
528
|
);
|
|
444
529
|
}
|
|
445
530
|
|
|
531
|
+
/**
|
|
532
|
+
* Update Learning Assignment Step
|
|
533
|
+
* Permission not required if you are the assigned user of the learning assignment
|
|
534
|
+
* @param {String} assignmentId The ID of Learning Assignment
|
|
535
|
+
* @param {String} stepId The ID of Learning Assignment Step
|
|
536
|
+
* @param {Object} opts Optional parameters
|
|
537
|
+
* @param {Object} opts.body The Learning Assignment Step to be updated
|
|
538
|
+
*/
|
|
539
|
+
patchLearningAssignmentStep(assignmentId, stepId, opts) {
|
|
540
|
+
opts = opts || {};
|
|
541
|
+
|
|
542
|
+
// verify the required parameter 'assignmentId' is set
|
|
543
|
+
if (assignmentId === undefined || assignmentId === null) {
|
|
544
|
+
throw 'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';
|
|
545
|
+
}
|
|
546
|
+
// verify the required parameter 'stepId' is set
|
|
547
|
+
if (stepId === undefined || stepId === null) {
|
|
548
|
+
throw 'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
return this.apiClient.callApi(
|
|
552
|
+
'/api/v2/learning/assignments/{assignmentId}/steps/{stepId}',
|
|
553
|
+
'PATCH',
|
|
554
|
+
{ 'assignmentId': assignmentId,'stepId': stepId },
|
|
555
|
+
{ },
|
|
556
|
+
{ },
|
|
557
|
+
{ },
|
|
558
|
+
opts['body'],
|
|
559
|
+
['PureCloud OAuth'],
|
|
560
|
+
['application/json'],
|
|
561
|
+
['application/json']
|
|
562
|
+
);
|
|
563
|
+
}
|
|
564
|
+
|
|
446
565
|
/**
|
|
447
566
|
* Update an external assignment for a specific user
|
|
448
567
|
*
|
|
@@ -794,6 +913,30 @@ class LearningApi {
|
|
|
794
913
|
);
|
|
795
914
|
}
|
|
796
915
|
|
|
916
|
+
/**
|
|
917
|
+
* Create a SCORM package upload request
|
|
918
|
+
*
|
|
919
|
+
* @param {Object} opts Optional parameters
|
|
920
|
+
* @param {Object} opts.body The SCORM package to be uploaded
|
|
921
|
+
*/
|
|
922
|
+
postLearningScorm(opts) {
|
|
923
|
+
opts = opts || {};
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
return this.apiClient.callApi(
|
|
927
|
+
'/api/v2/learning/scorm',
|
|
928
|
+
'POST',
|
|
929
|
+
{ },
|
|
930
|
+
{ },
|
|
931
|
+
{ },
|
|
932
|
+
{ },
|
|
933
|
+
opts['body'],
|
|
934
|
+
['PureCloud OAuth'],
|
|
935
|
+
['application/json'],
|
|
936
|
+
['application/json']
|
|
937
|
+
);
|
|
938
|
+
}
|
|
939
|
+
|
|
797
940
|
/**
|
|
798
941
|
* Update a learning module
|
|
799
942
|
* This will update the name, description, completion time in days and inform steps for a learning module
|
|
@@ -824,6 +967,36 @@ class LearningApi {
|
|
|
824
967
|
);
|
|
825
968
|
}
|
|
826
969
|
|
|
970
|
+
/**
|
|
971
|
+
* Update a learning module preview
|
|
972
|
+
* This will update a learning module preview
|
|
973
|
+
* @param {String} moduleId The ID of the learning module
|
|
974
|
+
* @param {Object} body The learning module to be updated
|
|
975
|
+
*/
|
|
976
|
+
putLearningModulePreview(moduleId, body) {
|
|
977
|
+
// verify the required parameter 'moduleId' is set
|
|
978
|
+
if (moduleId === undefined || moduleId === null) {
|
|
979
|
+
throw 'Missing the required parameter "moduleId" when calling putLearningModulePreview';
|
|
980
|
+
}
|
|
981
|
+
// verify the required parameter 'body' is set
|
|
982
|
+
if (body === undefined || body === null) {
|
|
983
|
+
throw 'Missing the required parameter "body" when calling putLearningModulePreview';
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
return this.apiClient.callApi(
|
|
987
|
+
'/api/v2/learning/modules/{moduleId}/preview',
|
|
988
|
+
'PUT',
|
|
989
|
+
{ 'moduleId': moduleId },
|
|
990
|
+
{ },
|
|
991
|
+
{ },
|
|
992
|
+
{ },
|
|
993
|
+
body,
|
|
994
|
+
['PureCloud OAuth'],
|
|
995
|
+
['application/json'],
|
|
996
|
+
['application/json']
|
|
997
|
+
);
|
|
998
|
+
}
|
|
999
|
+
|
|
827
1000
|
/**
|
|
828
1001
|
* Update a learning module rule
|
|
829
1002
|
* This will update a learning module rule with the specified fields.
|
|
@@ -5,7 +5,7 @@ class RoutingApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Routing service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 195.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -466,7 +466,6 @@ class RoutingApi {
|
|
|
466
466
|
* @param {String} labelId Utilization Label ID
|
|
467
467
|
* @param {Object} opts Optional parameters
|
|
468
468
|
* @param {Boolean} opts.forceDelete Remove all label usages (if found) without warning (default to false)
|
|
469
|
-
* deleteRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
470
469
|
*/
|
|
471
470
|
deleteRoutingUtilizationLabel(labelId, opts) {
|
|
472
471
|
opts = opts || {};
|
|
@@ -1985,7 +1984,6 @@ class RoutingApi {
|
|
|
1985
1984
|
* Get details about this utilization label
|
|
1986
1985
|
*
|
|
1987
1986
|
* @param {String} labelId Utilization Label ID
|
|
1988
|
-
* getRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1989
1987
|
*/
|
|
1990
1988
|
getRoutingUtilizationLabel(labelId) {
|
|
1991
1989
|
// verify the required parameter 'labelId' is set
|
|
@@ -2011,7 +2009,6 @@ class RoutingApi {
|
|
|
2011
2009
|
* Get list of agent ids associated with a utilization label
|
|
2012
2010
|
*
|
|
2013
2011
|
* @param {String} labelId Utilization Label ID
|
|
2014
|
-
* getRoutingUtilizationLabelAgents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2015
2012
|
*/
|
|
2016
2013
|
getRoutingUtilizationLabelAgents(labelId) {
|
|
2017
2014
|
// verify the required parameter 'labelId' is set
|
|
@@ -2041,7 +2038,6 @@ class RoutingApi {
|
|
|
2041
2038
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
2042
2039
|
* @param {Object} opts.sortOrder Sort order by name (default to ascending)
|
|
2043
2040
|
* @param {String} opts.name Utilization label's name (Wildcard is supported, e.g., 'label1*', '*label*'
|
|
2044
|
-
* getRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2045
2041
|
*/
|
|
2046
2042
|
getRoutingUtilizationLabels(opts) {
|
|
2047
2043
|
opts = opts || {};
|
|
@@ -3464,7 +3460,6 @@ class RoutingApi {
|
|
|
3464
3460
|
* Create a utilization label
|
|
3465
3461
|
*
|
|
3466
3462
|
* @param {Object} body UtilizationLabel
|
|
3467
|
-
* postRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3468
3463
|
*/
|
|
3469
3464
|
postRoutingUtilizationLabels(body) {
|
|
3470
3465
|
// verify the required parameter 'body' is set
|
|
@@ -3857,7 +3852,6 @@ class RoutingApi {
|
|
|
3857
3852
|
*
|
|
3858
3853
|
* @param {String} labelId Utilization Label ID
|
|
3859
3854
|
* @param {Object} body UtilizationLabel
|
|
3860
|
-
* putRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3861
3855
|
*/
|
|
3862
3856
|
putRoutingUtilizationLabel(labelId, body) {
|
|
3863
3857
|
// verify the required parameter 'labelId' is set
|