purecloud-platform-client-v2 136.1.0 → 137.1.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 +9 -12
- package/dist/node/purecloud-platform-client-v2.js +9667 -9635
- package/dist/web-amd/purecloud-platform-client-v2.js +9667 -9635
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +9674 -9635
- package/dist/web-cjs/purecloud-platform-client-v2.js +11469 -13867
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +92 -76
- package/package.json +2 -2
- package/src/purecloud-platform-client-v2/ApiClient.js +197 -169
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +56 -56
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +231 -231
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +534 -534
- package/src/purecloud-platform-client-v2/api/AuditApi.js +31 -31
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +212 -212
- package/src/purecloud-platform-client-v2/api/BillingApi.js +12 -12
- package/src/purecloud-platform-client-v2/api/ChatApi.js +16 -16
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +96 -96
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +192 -192
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +808 -808
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +17 -17
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +337 -337
- package/src/purecloud-platform-client-v2/api/FaxApi.js +31 -31
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +11 -11
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +246 -246
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +21 -21
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +26 -26
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +88 -88
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +72 -72
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +171 -171
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +311 -311
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +146 -146
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +131 -131
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +151 -151
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +51 -51
- package/src/purecloud-platform-client-v2/api/LearningApi.js +107 -107
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +49 -49
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +41 -41
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +26 -26
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +26 -26
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +43 -43
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +67 -67
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +50 -50
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +81 -81
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +162 -162
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +608 -608
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +64 -64
- package/src/purecloud-platform-client-v2/api/QualityApi.js +285 -285
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +302 -302
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +86 -86
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +536 -536
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +195 -195
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +66 -66
- package/src/purecloud-platform-client-v2/api/SearchApi.js +96 -96
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +194 -194
- package/src/purecloud-platform-client-v2/api/StationsApi.js +28 -28
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +21 -21
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +16 -16
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +657 -657
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +23 -23
- package/src/purecloud-platform-client-v2/api/TokensApi.js +21 -21
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +26 -26
- package/src/purecloud-platform-client-v2/api/UsageApi.js +11 -11
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +31 -31
- package/src/purecloud-platform-client-v2/api/UsersApi.js +413 -413
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +21 -21
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +140 -140
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +97 -97
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +66 -66
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +6 -6
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +26 -26
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +765 -765
- package/src/purecloud-platform-client-v2/index.js +2 -1
- package/src/purecloud-platform-client-v2/logger.js +17 -13
|
@@ -5,7 +5,7 @@ class LanguagesApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Languages service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 137.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -34,13 +34,13 @@ class LanguagesApi {
|
|
|
34
34
|
return this.apiClient.callApi(
|
|
35
35
|
'/api/v2/languages/{languageId}',
|
|
36
36
|
'DELETE',
|
|
37
|
-
{ 'languageId': languageId },
|
|
38
|
-
{ },
|
|
39
|
-
{ },
|
|
40
|
-
{ },
|
|
37
|
+
{ 'languageId': languageId },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
41
|
null,
|
|
42
42
|
['PureCloud OAuth'],
|
|
43
|
-
['application/json'],
|
|
43
|
+
['application/json'],
|
|
44
44
|
['application/json']
|
|
45
45
|
);
|
|
46
46
|
}
|
|
@@ -59,13 +59,13 @@ class LanguagesApi {
|
|
|
59
59
|
return this.apiClient.callApi(
|
|
60
60
|
'/api/v2/routing/languages/{languageId}',
|
|
61
61
|
'DELETE',
|
|
62
|
-
{ 'languageId': languageId },
|
|
63
|
-
{ },
|
|
64
|
-
{ },
|
|
65
|
-
{ },
|
|
62
|
+
{ 'languageId': languageId },
|
|
63
|
+
{ },
|
|
64
|
+
{ },
|
|
65
|
+
{ },
|
|
66
66
|
null,
|
|
67
67
|
['PureCloud OAuth'],
|
|
68
|
-
['application/json'],
|
|
68
|
+
['application/json'],
|
|
69
69
|
['application/json']
|
|
70
70
|
);
|
|
71
71
|
}
|
|
@@ -84,13 +84,13 @@ class LanguagesApi {
|
|
|
84
84
|
return this.apiClient.callApi(
|
|
85
85
|
'/api/v2/languages/{languageId}',
|
|
86
86
|
'GET',
|
|
87
|
-
{ 'languageId': languageId },
|
|
88
|
-
{ },
|
|
89
|
-
{ },
|
|
90
|
-
{ },
|
|
87
|
+
{ 'languageId': languageId },
|
|
88
|
+
{ },
|
|
89
|
+
{ },
|
|
90
|
+
{ },
|
|
91
91
|
null,
|
|
92
92
|
['PureCloud OAuth'],
|
|
93
|
-
['application/json'],
|
|
93
|
+
['application/json'],
|
|
94
94
|
['application/json']
|
|
95
95
|
);
|
|
96
96
|
}
|
|
@@ -111,13 +111,13 @@ class LanguagesApi {
|
|
|
111
111
|
return this.apiClient.callApi(
|
|
112
112
|
'/api/v2/languages',
|
|
113
113
|
'GET',
|
|
114
|
-
{ },
|
|
115
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'],'name': opts['name'] },
|
|
116
|
-
{ },
|
|
117
|
-
{ },
|
|
114
|
+
{ },
|
|
115
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'],'name': opts['name'] },
|
|
116
|
+
{ },
|
|
117
|
+
{ },
|
|
118
118
|
null,
|
|
119
119
|
['PureCloud OAuth'],
|
|
120
|
-
['application/json'],
|
|
120
|
+
['application/json'],
|
|
121
121
|
['application/json']
|
|
122
122
|
);
|
|
123
123
|
}
|
|
@@ -131,13 +131,13 @@ class LanguagesApi {
|
|
|
131
131
|
return this.apiClient.callApi(
|
|
132
132
|
'/api/v2/languages/translations',
|
|
133
133
|
'GET',
|
|
134
|
-
{ },
|
|
135
|
-
{ },
|
|
136
|
-
{ },
|
|
137
|
-
{ },
|
|
134
|
+
{ },
|
|
135
|
+
{ },
|
|
136
|
+
{ },
|
|
137
|
+
{ },
|
|
138
138
|
null,
|
|
139
139
|
['PureCloud OAuth'],
|
|
140
|
-
['application/json'],
|
|
140
|
+
['application/json'],
|
|
141
141
|
['application/json']
|
|
142
142
|
);
|
|
143
143
|
}
|
|
@@ -156,13 +156,13 @@ class LanguagesApi {
|
|
|
156
156
|
return this.apiClient.callApi(
|
|
157
157
|
'/api/v2/languages/translations/builtin',
|
|
158
158
|
'GET',
|
|
159
|
-
{ },
|
|
160
|
-
{ 'language': language },
|
|
161
|
-
{ },
|
|
162
|
-
{ },
|
|
159
|
+
{ },
|
|
160
|
+
{ 'language': language },
|
|
161
|
+
{ },
|
|
162
|
+
{ },
|
|
163
163
|
null,
|
|
164
164
|
['PureCloud OAuth'],
|
|
165
|
-
['application/json'],
|
|
165
|
+
['application/json'],
|
|
166
166
|
['application/json']
|
|
167
167
|
);
|
|
168
168
|
}
|
|
@@ -181,13 +181,13 @@ class LanguagesApi {
|
|
|
181
181
|
return this.apiClient.callApi(
|
|
182
182
|
'/api/v2/languages/translations/organization',
|
|
183
183
|
'GET',
|
|
184
|
-
{ },
|
|
185
|
-
{ 'language': language },
|
|
186
|
-
{ },
|
|
187
|
-
{ },
|
|
184
|
+
{ },
|
|
185
|
+
{ 'language': language },
|
|
186
|
+
{ },
|
|
187
|
+
{ },
|
|
188
188
|
null,
|
|
189
189
|
['PureCloud OAuth'],
|
|
190
|
-
['application/json'],
|
|
190
|
+
['application/json'],
|
|
191
191
|
['application/json']
|
|
192
192
|
);
|
|
193
193
|
}
|
|
@@ -206,13 +206,13 @@ class LanguagesApi {
|
|
|
206
206
|
return this.apiClient.callApi(
|
|
207
207
|
'/api/v2/languages/translations/users/{userId}',
|
|
208
208
|
'GET',
|
|
209
|
-
{ 'userId': userId },
|
|
210
|
-
{ },
|
|
211
|
-
{ },
|
|
212
|
-
{ },
|
|
209
|
+
{ 'userId': userId },
|
|
210
|
+
{ },
|
|
211
|
+
{ },
|
|
212
|
+
{ },
|
|
213
213
|
null,
|
|
214
214
|
['PureCloud OAuth'],
|
|
215
|
-
['application/json'],
|
|
215
|
+
['application/json'],
|
|
216
216
|
['application/json']
|
|
217
217
|
);
|
|
218
218
|
}
|
|
@@ -231,13 +231,13 @@ class LanguagesApi {
|
|
|
231
231
|
return this.apiClient.callApi(
|
|
232
232
|
'/api/v2/routing/languages/{languageId}',
|
|
233
233
|
'GET',
|
|
234
|
-
{ 'languageId': languageId },
|
|
235
|
-
{ },
|
|
236
|
-
{ },
|
|
237
|
-
{ },
|
|
234
|
+
{ 'languageId': languageId },
|
|
235
|
+
{ },
|
|
236
|
+
{ },
|
|
237
|
+
{ },
|
|
238
238
|
null,
|
|
239
239
|
['PureCloud OAuth'],
|
|
240
|
-
['application/json'],
|
|
240
|
+
['application/json'],
|
|
241
241
|
['application/json']
|
|
242
242
|
);
|
|
243
243
|
}
|
|
@@ -256,13 +256,13 @@ class LanguagesApi {
|
|
|
256
256
|
return this.apiClient.callApi(
|
|
257
257
|
'/api/v2/languages',
|
|
258
258
|
'POST',
|
|
259
|
-
{ },
|
|
260
|
-
{ },
|
|
261
|
-
{ },
|
|
262
|
-
{ },
|
|
259
|
+
{ },
|
|
260
|
+
{ },
|
|
261
|
+
{ },
|
|
262
|
+
{ },
|
|
263
263
|
body,
|
|
264
264
|
['PureCloud OAuth'],
|
|
265
|
-
['application/json'],
|
|
265
|
+
['application/json'],
|
|
266
266
|
['application/json']
|
|
267
267
|
);
|
|
268
268
|
}
|
|
@@ -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 137.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -34,13 +34,13 @@ class LearningApi {
|
|
|
34
34
|
return this.apiClient.callApi(
|
|
35
35
|
'/api/v2/learning/assignments/{assignmentId}',
|
|
36
36
|
'DELETE',
|
|
37
|
-
{ 'assignmentId': assignmentId },
|
|
38
|
-
{ },
|
|
39
|
-
{ },
|
|
40
|
-
{ },
|
|
37
|
+
{ 'assignmentId': assignmentId },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
41
|
null,
|
|
42
42
|
['PureCloud OAuth'],
|
|
43
|
-
['application/json'],
|
|
43
|
+
['application/json'],
|
|
44
44
|
['application/json']
|
|
45
45
|
);
|
|
46
46
|
}
|
|
@@ -59,13 +59,13 @@ class LearningApi {
|
|
|
59
59
|
return this.apiClient.callApi(
|
|
60
60
|
'/api/v2/learning/modules/{moduleId}',
|
|
61
61
|
'DELETE',
|
|
62
|
-
{ 'moduleId': moduleId },
|
|
63
|
-
{ },
|
|
64
|
-
{ },
|
|
65
|
-
{ },
|
|
62
|
+
{ 'moduleId': moduleId },
|
|
63
|
+
{ },
|
|
64
|
+
{ },
|
|
65
|
+
{ },
|
|
66
66
|
null,
|
|
67
67
|
['PureCloud OAuth'],
|
|
68
|
-
['application/json'],
|
|
68
|
+
['application/json'],
|
|
69
69
|
['application/json']
|
|
70
70
|
);
|
|
71
71
|
}
|
|
@@ -88,13 +88,13 @@ class LearningApi {
|
|
|
88
88
|
return this.apiClient.callApi(
|
|
89
89
|
'/api/v2/learning/assignments/{assignmentId}',
|
|
90
90
|
'GET',
|
|
91
|
-
{ 'assignmentId': assignmentId },
|
|
92
|
-
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
93
|
-
{ },
|
|
94
|
-
{ },
|
|
91
|
+
{ 'assignmentId': assignmentId },
|
|
92
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
93
|
+
{ },
|
|
94
|
+
{ },
|
|
95
95
|
null,
|
|
96
96
|
['PureCloud OAuth'],
|
|
97
|
-
['application/json'],
|
|
97
|
+
['application/json'],
|
|
98
98
|
['application/json']
|
|
99
99
|
);
|
|
100
100
|
}
|
|
@@ -106,10 +106,10 @@ class LearningApi {
|
|
|
106
106
|
* @param {String} opts.moduleId Specifies the ID of the learning module. Fetch assignments for learning module ID
|
|
107
107
|
* @param {String} opts.interval Specifies the range of dueDates to be queried. Milliseconds will be truncated. A maximum of 1 year can be specified in the range. End date is not inclusive. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
|
|
108
108
|
* @param {String} opts.completionInterval Specifies the range of completion dates to be used for filtering. A maximum of 1 year can be specified in the range. End date is not inclusive. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
|
|
109
|
-
* @param {Object} opts.overdue Specifies if only the non-overdue (overdue is
|
|
109
|
+
* @param {Object} opts.overdue Specifies if only the non-overdue (overdue is False) or overdue (overdue is True) assignments are returned. If overdue is Any or if the overdue parameter is not supplied, all assignments are returned (default to Any)
|
|
110
110
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
111
111
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
112
|
-
* @param {Object} opts.pass Specifies if only the failed (pass is
|
|
112
|
+
* @param {Object} opts.pass Specifies if only the failed (pass is False) or passed (pass is True) assignments (completed with assessment)are returned. If pass is Any or if the pass parameter is not supplied, all assignments are returned (default to Any)
|
|
113
113
|
* @param {Number} opts.minPercentageScore The minimum assessment score for an assignment (completed with assessment) to be included in the results (inclusive)
|
|
114
114
|
* @param {Number} opts.maxPercentageScore The maximum assessment score for an assignment (completed with assessment) to be included in the results (inclusive)
|
|
115
115
|
* @param {Object} opts.sortOrder Specifies result set sort order; if not specified, default sort order is descending (Desc) (default to Desc)
|
|
@@ -126,13 +126,13 @@ class LearningApi {
|
|
|
126
126
|
return this.apiClient.callApi(
|
|
127
127
|
'/api/v2/learning/assignments',
|
|
128
128
|
'GET',
|
|
129
|
-
{ },
|
|
130
|
-
{ 'moduleId': opts['moduleId'],'interval': opts['interval'],'completionInterval': opts['completionInterval'],'overdue': opts['overdue'],'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'pass': opts['pass'],'minPercentageScore': opts['minPercentageScore'],'maxPercentageScore': opts['maxPercentageScore'],'sortOrder': opts['sortOrder'],'sortBy': opts['sortBy'],'userId': this.apiClient.buildCollectionParam(opts['userId'], 'multi'),'types': this.apiClient.buildCollectionParam(opts['types'], 'multi'),'states': this.apiClient.buildCollectionParam(opts['states'], 'multi'),'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
131
|
-
{ },
|
|
132
|
-
{ },
|
|
129
|
+
{ },
|
|
130
|
+
{ 'moduleId': opts['moduleId'],'interval': opts['interval'],'completionInterval': opts['completionInterval'],'overdue': opts['overdue'],'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'pass': opts['pass'],'minPercentageScore': opts['minPercentageScore'],'maxPercentageScore': opts['maxPercentageScore'],'sortOrder': opts['sortOrder'],'sortBy': opts['sortBy'],'userId': this.apiClient.buildCollectionParam(opts['userId'], 'multi'),'types': this.apiClient.buildCollectionParam(opts['types'], 'multi'),'states': this.apiClient.buildCollectionParam(opts['states'], 'multi'),'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
131
|
+
{ },
|
|
132
|
+
{ },
|
|
133
133
|
null,
|
|
134
134
|
['PureCloud OAuth'],
|
|
135
|
-
['application/json'],
|
|
135
|
+
['application/json'],
|
|
136
136
|
['application/json']
|
|
137
137
|
);
|
|
138
138
|
}
|
|
@@ -144,10 +144,10 @@ class LearningApi {
|
|
|
144
144
|
* @param {String} opts.moduleId Specifies the ID of the learning module. Fetch assignments for learning module ID
|
|
145
145
|
* @param {String} opts.interval Specifies the range of dueDates to be queried. Milliseconds will be truncated. A maximum of 1 year can be specified in the range. End date is not inclusive. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
|
|
146
146
|
* @param {String} opts.completionInterval Specifies the range of completion dates to be used for filtering. A maximum of 1 year can be specified in the range. End date is not inclusive. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
|
|
147
|
-
* @param {Object} opts.overdue Specifies if only the non-overdue (overdue is
|
|
147
|
+
* @param {Object} opts.overdue Specifies if only the non-overdue (overdue is False) or overdue (overdue is True) assignments are returned. If overdue is Any or if the overdue parameter is not supplied, all assignments are returned (default to Any)
|
|
148
148
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
149
149
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
150
|
-
* @param {Object} opts.pass Specifies if only the failed (pass is
|
|
150
|
+
* @param {Object} opts.pass Specifies if only the failed (pass is False) or passed (pass is True) assignments (completed with assessment)are returned. If pass is Any or if the pass parameter is not supplied, all assignments are returned (default to Any)
|
|
151
151
|
* @param {Number} opts.minPercentageScore The minimum assessment score for an assignment (completed with assessment) to be included in the results (inclusive)
|
|
152
152
|
* @param {Number} opts.maxPercentageScore The maximum assessment score for an assignment (completed with assessment) to be included in the results (inclusive)
|
|
153
153
|
* @param {Object} opts.sortOrder Specifies result set sort order; if not specified, default sort order is descending (Desc) (default to Desc)
|
|
@@ -163,13 +163,13 @@ class LearningApi {
|
|
|
163
163
|
return this.apiClient.callApi(
|
|
164
164
|
'/api/v2/learning/assignments/me',
|
|
165
165
|
'GET',
|
|
166
|
-
{ },
|
|
167
|
-
{ 'moduleId': opts['moduleId'],'interval': opts['interval'],'completionInterval': opts['completionInterval'],'overdue': opts['overdue'],'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'pass': opts['pass'],'minPercentageScore': opts['minPercentageScore'],'maxPercentageScore': opts['maxPercentageScore'],'sortOrder': opts['sortOrder'],'sortBy': opts['sortBy'],'types': this.apiClient.buildCollectionParam(opts['types'], 'multi'),'states': this.apiClient.buildCollectionParam(opts['states'], 'multi'),'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
168
|
-
{ },
|
|
169
|
-
{ },
|
|
166
|
+
{ },
|
|
167
|
+
{ 'moduleId': opts['moduleId'],'interval': opts['interval'],'completionInterval': opts['completionInterval'],'overdue': opts['overdue'],'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'pass': opts['pass'],'minPercentageScore': opts['minPercentageScore'],'maxPercentageScore': opts['maxPercentageScore'],'sortOrder': opts['sortOrder'],'sortBy': opts['sortBy'],'types': this.apiClient.buildCollectionParam(opts['types'], 'multi'),'states': this.apiClient.buildCollectionParam(opts['states'], 'multi'),'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
168
|
+
{ },
|
|
169
|
+
{ },
|
|
170
170
|
null,
|
|
171
171
|
['PureCloud OAuth'],
|
|
172
|
-
['application/json'],
|
|
172
|
+
['application/json'],
|
|
173
173
|
['application/json']
|
|
174
174
|
);
|
|
175
175
|
}
|
|
@@ -192,13 +192,13 @@ class LearningApi {
|
|
|
192
192
|
return this.apiClient.callApi(
|
|
193
193
|
'/api/v2/learning/modules/{moduleId}',
|
|
194
194
|
'GET',
|
|
195
|
-
{ 'moduleId': moduleId },
|
|
196
|
-
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
197
|
-
{ },
|
|
198
|
-
{ },
|
|
195
|
+
{ 'moduleId': moduleId },
|
|
196
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
197
|
+
{ },
|
|
198
|
+
{ },
|
|
199
199
|
null,
|
|
200
200
|
['PureCloud OAuth'],
|
|
201
|
-
['application/json'],
|
|
201
|
+
['application/json'],
|
|
202
202
|
['application/json']
|
|
203
203
|
);
|
|
204
204
|
}
|
|
@@ -217,13 +217,13 @@ class LearningApi {
|
|
|
217
217
|
return this.apiClient.callApi(
|
|
218
218
|
'/api/v2/learning/modules/{moduleId}/rule',
|
|
219
219
|
'GET',
|
|
220
|
-
{ 'moduleId': moduleId },
|
|
221
|
-
{ },
|
|
222
|
-
{ },
|
|
223
|
-
{ },
|
|
220
|
+
{ 'moduleId': moduleId },
|
|
221
|
+
{ },
|
|
222
|
+
{ },
|
|
223
|
+
{ },
|
|
224
224
|
null,
|
|
225
225
|
['PureCloud OAuth'],
|
|
226
|
-
['application/json'],
|
|
226
|
+
['application/json'],
|
|
227
227
|
['application/json']
|
|
228
228
|
);
|
|
229
229
|
}
|
|
@@ -251,13 +251,13 @@ class LearningApi {
|
|
|
251
251
|
return this.apiClient.callApi(
|
|
252
252
|
'/api/v2/learning/modules/{moduleId}/versions/{versionId}',
|
|
253
253
|
'GET',
|
|
254
|
-
{ 'moduleId': moduleId,'versionId': versionId },
|
|
255
|
-
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
256
|
-
{ },
|
|
257
|
-
{ },
|
|
254
|
+
{ 'moduleId': moduleId,'versionId': versionId },
|
|
255
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
256
|
+
{ },
|
|
257
|
+
{ },
|
|
258
258
|
null,
|
|
259
259
|
['PureCloud OAuth'],
|
|
260
|
-
['application/json'],
|
|
260
|
+
['application/json'],
|
|
261
261
|
['application/json']
|
|
262
262
|
);
|
|
263
263
|
}
|
|
@@ -274,7 +274,7 @@ class LearningApi {
|
|
|
274
274
|
* @param {Object} opts.sortBy Sort by (default to name)
|
|
275
275
|
* @param {String} opts.searchTerm Search Term (searchable by name)
|
|
276
276
|
* @param {Array.<String>} opts.expand Fields to expand in response(case insensitive)
|
|
277
|
-
* @param {Object} opts.isPublished Specifies if only the Unpublished (isPublished is
|
|
277
|
+
* @param {Object} opts.isPublished Specifies if only the Unpublished (isPublished is False) or Published (isPublished is True) modules are returned. If isPublished is Any or omitted, both types are returned (default to Any)
|
|
278
278
|
*/
|
|
279
279
|
getLearningModules(opts) {
|
|
280
280
|
opts = opts || {};
|
|
@@ -283,13 +283,13 @@ class LearningApi {
|
|
|
283
283
|
return this.apiClient.callApi(
|
|
284
284
|
'/api/v2/learning/modules',
|
|
285
285
|
'GET',
|
|
286
|
-
{ },
|
|
287
|
-
{ 'isArchived': opts['isArchived'],'types': this.apiClient.buildCollectionParam(opts['types'], 'multi'),'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'],'sortBy': opts['sortBy'],'searchTerm': opts['searchTerm'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'isPublished': opts['isPublished'] },
|
|
288
|
-
{ },
|
|
289
|
-
{ },
|
|
286
|
+
{ },
|
|
287
|
+
{ 'isArchived': opts['isArchived'],'types': this.apiClient.buildCollectionParam(opts['types'], 'multi'),'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'],'sortBy': opts['sortBy'],'searchTerm': opts['searchTerm'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'isPublished': opts['isPublished'] },
|
|
288
|
+
{ },
|
|
289
|
+
{ },
|
|
290
290
|
null,
|
|
291
291
|
['PureCloud OAuth'],
|
|
292
|
-
['application/json'],
|
|
292
|
+
['application/json'],
|
|
293
293
|
['application/json']
|
|
294
294
|
);
|
|
295
295
|
}
|
|
@@ -312,13 +312,13 @@ class LearningApi {
|
|
|
312
312
|
return this.apiClient.callApi(
|
|
313
313
|
'/api/v2/learning/assignments/{assignmentId}',
|
|
314
314
|
'PATCH',
|
|
315
|
-
{ 'assignmentId': assignmentId },
|
|
316
|
-
{ },
|
|
317
|
-
{ },
|
|
318
|
-
{ },
|
|
315
|
+
{ 'assignmentId': assignmentId },
|
|
316
|
+
{ },
|
|
317
|
+
{ },
|
|
318
|
+
{ },
|
|
319
319
|
opts['body'],
|
|
320
320
|
['PureCloud OAuth'],
|
|
321
|
-
['application/json'],
|
|
321
|
+
['application/json'],
|
|
322
322
|
['application/json']
|
|
323
323
|
);
|
|
324
324
|
}
|
|
@@ -337,13 +337,13 @@ class LearningApi {
|
|
|
337
337
|
return this.apiClient.callApi(
|
|
338
338
|
'/api/v2/learning/assessments/scoring',
|
|
339
339
|
'POST',
|
|
340
|
-
{ },
|
|
341
|
-
{ },
|
|
342
|
-
{ },
|
|
343
|
-
{ },
|
|
340
|
+
{ },
|
|
341
|
+
{ },
|
|
342
|
+
{ },
|
|
343
|
+
{ },
|
|
344
344
|
body,
|
|
345
345
|
['PureCloud OAuth'],
|
|
346
|
-
['application/json'],
|
|
346
|
+
['application/json'],
|
|
347
347
|
['application/json']
|
|
348
348
|
);
|
|
349
349
|
}
|
|
@@ -361,13 +361,13 @@ class LearningApi {
|
|
|
361
361
|
return this.apiClient.callApi(
|
|
362
362
|
'/api/v2/learning/assignments',
|
|
363
363
|
'POST',
|
|
364
|
-
{ },
|
|
365
|
-
{ },
|
|
366
|
-
{ },
|
|
367
|
-
{ },
|
|
364
|
+
{ },
|
|
365
|
+
{ },
|
|
366
|
+
{ },
|
|
367
|
+
{ },
|
|
368
368
|
opts['body'],
|
|
369
369
|
['PureCloud OAuth'],
|
|
370
|
-
['application/json'],
|
|
370
|
+
['application/json'],
|
|
371
371
|
['application/json']
|
|
372
372
|
);
|
|
373
373
|
}
|
|
@@ -386,13 +386,13 @@ class LearningApi {
|
|
|
386
386
|
return this.apiClient.callApi(
|
|
387
387
|
'/api/v2/learning/assignments/aggregates/query',
|
|
388
388
|
'POST',
|
|
389
|
-
{ },
|
|
390
|
-
{ },
|
|
391
|
-
{ },
|
|
392
|
-
{ },
|
|
389
|
+
{ },
|
|
390
|
+
{ },
|
|
391
|
+
{ },
|
|
392
|
+
{ },
|
|
393
393
|
body,
|
|
394
394
|
['PureCloud OAuth'],
|
|
395
|
-
['application/json'],
|
|
395
|
+
['application/json'],
|
|
396
396
|
['application/json']
|
|
397
397
|
);
|
|
398
398
|
}
|
|
@@ -410,13 +410,13 @@ class LearningApi {
|
|
|
410
410
|
return this.apiClient.callApi(
|
|
411
411
|
'/api/v2/learning/assignments/bulkadd',
|
|
412
412
|
'POST',
|
|
413
|
-
{ },
|
|
414
|
-
{ },
|
|
415
|
-
{ },
|
|
416
|
-
{ },
|
|
413
|
+
{ },
|
|
414
|
+
{ },
|
|
415
|
+
{ },
|
|
416
|
+
{ },
|
|
417
417
|
opts['body'],
|
|
418
418
|
['PureCloud OAuth'],
|
|
419
|
-
['application/json'],
|
|
419
|
+
['application/json'],
|
|
420
420
|
['application/json']
|
|
421
421
|
);
|
|
422
422
|
}
|
|
@@ -425,7 +425,7 @@ class LearningApi {
|
|
|
425
425
|
* Remove multiple Learning Assignments
|
|
426
426
|
*
|
|
427
427
|
* @param {Object} opts Optional parameters
|
|
428
|
-
* @param {Array.<
|
|
428
|
+
* @param {Array.<String>} opts.body The IDs of the learning assignments to be removed
|
|
429
429
|
*/
|
|
430
430
|
postLearningAssignmentsBulkremove(opts) {
|
|
431
431
|
opts = opts || {};
|
|
@@ -434,13 +434,13 @@ class LearningApi {
|
|
|
434
434
|
return this.apiClient.callApi(
|
|
435
435
|
'/api/v2/learning/assignments/bulkremove',
|
|
436
436
|
'POST',
|
|
437
|
-
{ },
|
|
438
|
-
{ },
|
|
439
|
-
{ },
|
|
440
|
-
{ },
|
|
437
|
+
{ },
|
|
438
|
+
{ },
|
|
439
|
+
{ },
|
|
440
|
+
{ },
|
|
441
441
|
opts['body'],
|
|
442
442
|
['PureCloud OAuth'],
|
|
443
|
-
['application/json'],
|
|
443
|
+
['application/json'],
|
|
444
444
|
['application/json']
|
|
445
445
|
);
|
|
446
446
|
}
|
|
@@ -459,13 +459,13 @@ class LearningApi {
|
|
|
459
459
|
return this.apiClient.callApi(
|
|
460
460
|
'/api/v2/learning/modules/{moduleId}/publish',
|
|
461
461
|
'POST',
|
|
462
|
-
{ 'moduleId': moduleId },
|
|
463
|
-
{ },
|
|
464
|
-
{ },
|
|
465
|
-
{ },
|
|
462
|
+
{ 'moduleId': moduleId },
|
|
463
|
+
{ },
|
|
464
|
+
{ },
|
|
465
|
+
{ },
|
|
466
466
|
null,
|
|
467
467
|
['PureCloud OAuth'],
|
|
468
|
-
['application/json'],
|
|
468
|
+
['application/json'],
|
|
469
469
|
['application/json']
|
|
470
470
|
);
|
|
471
471
|
}
|
|
@@ -484,13 +484,13 @@ class LearningApi {
|
|
|
484
484
|
return this.apiClient.callApi(
|
|
485
485
|
'/api/v2/learning/modules',
|
|
486
486
|
'POST',
|
|
487
|
-
{ },
|
|
488
|
-
{ },
|
|
489
|
-
{ },
|
|
490
|
-
{ },
|
|
487
|
+
{ },
|
|
488
|
+
{ },
|
|
489
|
+
{ },
|
|
490
|
+
{ },
|
|
491
491
|
body,
|
|
492
492
|
['PureCloud OAuth'],
|
|
493
|
-
['application/json'],
|
|
493
|
+
['application/json'],
|
|
494
494
|
['application/json']
|
|
495
495
|
);
|
|
496
496
|
}
|
|
@@ -519,13 +519,13 @@ class LearningApi {
|
|
|
519
519
|
return this.apiClient.callApi(
|
|
520
520
|
'/api/v2/learning/rules/query',
|
|
521
521
|
'POST',
|
|
522
|
-
{ },
|
|
523
|
-
{ 'pageSize': pageSize,'pageNumber': pageNumber },
|
|
524
|
-
{ },
|
|
525
|
-
{ },
|
|
522
|
+
{ },
|
|
523
|
+
{ 'pageSize': pageSize,'pageNumber': pageNumber },
|
|
524
|
+
{ },
|
|
525
|
+
{ },
|
|
526
526
|
body,
|
|
527
527
|
['PureCloud OAuth'],
|
|
528
|
-
['application/json'],
|
|
528
|
+
['application/json'],
|
|
529
529
|
['application/json']
|
|
530
530
|
);
|
|
531
531
|
}
|
|
@@ -549,13 +549,13 @@ class LearningApi {
|
|
|
549
549
|
return this.apiClient.callApi(
|
|
550
550
|
'/api/v2/learning/modules/{moduleId}',
|
|
551
551
|
'PUT',
|
|
552
|
-
{ 'moduleId': moduleId },
|
|
553
|
-
{ },
|
|
554
|
-
{ },
|
|
555
|
-
{ },
|
|
552
|
+
{ 'moduleId': moduleId },
|
|
553
|
+
{ },
|
|
554
|
+
{ },
|
|
555
|
+
{ },
|
|
556
556
|
body,
|
|
557
557
|
['PureCloud OAuth'],
|
|
558
|
-
['application/json'],
|
|
558
|
+
['application/json'],
|
|
559
559
|
['application/json']
|
|
560
560
|
);
|
|
561
561
|
}
|
|
@@ -579,13 +579,13 @@ class LearningApi {
|
|
|
579
579
|
return this.apiClient.callApi(
|
|
580
580
|
'/api/v2/learning/modules/{moduleId}/rule',
|
|
581
581
|
'PUT',
|
|
582
|
-
{ 'moduleId': moduleId },
|
|
583
|
-
{ },
|
|
584
|
-
{ },
|
|
585
|
-
{ },
|
|
582
|
+
{ 'moduleId': moduleId },
|
|
583
|
+
{ },
|
|
584
|
+
{ },
|
|
585
|
+
{ },
|
|
586
586
|
body,
|
|
587
587
|
['PureCloud OAuth'],
|
|
588
|
-
['application/json'],
|
|
588
|
+
['application/json'],
|
|
589
589
|
['application/json']
|
|
590
590
|
);
|
|
591
591
|
}
|