purecloud-platform-client-v2 218.1.0 → 219.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 +1118 -100
- package/dist/web-amd/purecloud-platform-client-v2.js +1118 -100
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +349 -100
- package/dist/web-cjs/purecloud-platform-client-v2.js +349 -100
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +499 -8
- 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 +54 -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 +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 +396 -2
- 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 +366 -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 +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 +54 -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 +60 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +11 -11
- 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 +6 -4
- 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/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 +66 -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 +26 -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 +7 -5
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5,7 +5,7 @@ class GamificationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Gamification service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 219.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -45,6 +45,31 @@ class GamificationApi {
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Delete a Contest by Id
|
|
50
|
+
*
|
|
51
|
+
* @param {String} contestId The ID of the contest
|
|
52
|
+
*/
|
|
53
|
+
deleteGamificationContest(contestId) {
|
|
54
|
+
// verify the required parameter 'contestId' is set
|
|
55
|
+
if (contestId === undefined || contestId === null) {
|
|
56
|
+
throw 'Missing the required parameter "contestId" when calling deleteGamificationContest';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return this.apiClient.callApi(
|
|
60
|
+
'/api/v2/gamification/contests/{contestId}',
|
|
61
|
+
'DELETE',
|
|
62
|
+
{ 'contestId': contestId },
|
|
63
|
+
{ },
|
|
64
|
+
{ },
|
|
65
|
+
{ },
|
|
66
|
+
null,
|
|
67
|
+
['PureCloud OAuth'],
|
|
68
|
+
['application/json'],
|
|
69
|
+
['application/json']
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
48
73
|
/**
|
|
49
74
|
* Get an External Metric Definition
|
|
50
75
|
*
|
|
@@ -95,6 +120,236 @@ class GamificationApi {
|
|
|
95
120
|
);
|
|
96
121
|
}
|
|
97
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Get a Contest by Id
|
|
125
|
+
*
|
|
126
|
+
* @param {String} contestId The ID of the contest
|
|
127
|
+
*/
|
|
128
|
+
getGamificationContest(contestId) {
|
|
129
|
+
// verify the required parameter 'contestId' is set
|
|
130
|
+
if (contestId === undefined || contestId === null) {
|
|
131
|
+
throw 'Missing the required parameter "contestId" when calling getGamificationContest';
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return this.apiClient.callApi(
|
|
135
|
+
'/api/v2/gamification/contests/{contestId}',
|
|
136
|
+
'GET',
|
|
137
|
+
{ 'contestId': contestId },
|
|
138
|
+
{ },
|
|
139
|
+
{ },
|
|
140
|
+
{ },
|
|
141
|
+
null,
|
|
142
|
+
['PureCloud OAuth'],
|
|
143
|
+
['application/json'],
|
|
144
|
+
['application/json']
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Get Contest Scores (Admin)
|
|
150
|
+
*
|
|
151
|
+
* @param {String} contestId The ID of the contest
|
|
152
|
+
* @param {Object} opts Optional parameters
|
|
153
|
+
* @param {Number} opts.pageNumber (default to 1)
|
|
154
|
+
* @param {Number} opts.pageSize (default to 25)
|
|
155
|
+
* @param {String} opts.workday Target querying workday. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
156
|
+
* @param {Object} opts.returnsView Desired response results (default to All)
|
|
157
|
+
*/
|
|
158
|
+
getGamificationContestAgentsScores(contestId, opts) {
|
|
159
|
+
opts = opts || {};
|
|
160
|
+
|
|
161
|
+
// verify the required parameter 'contestId' is set
|
|
162
|
+
if (contestId === undefined || contestId === null) {
|
|
163
|
+
throw 'Missing the required parameter "contestId" when calling getGamificationContestAgentsScores';
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return this.apiClient.callApi(
|
|
167
|
+
'/api/v2/gamification/contests/{contestId}/agents/scores',
|
|
168
|
+
'GET',
|
|
169
|
+
{ 'contestId': contestId },
|
|
170
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'workday': opts['workday'],'returnsView': opts['returnsView'] },
|
|
171
|
+
{ },
|
|
172
|
+
{ },
|
|
173
|
+
null,
|
|
174
|
+
['PureCloud OAuth'],
|
|
175
|
+
['application/json'],
|
|
176
|
+
['application/json']
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Get Contest Scores for the requesting Agent/Supervisor
|
|
182
|
+
*
|
|
183
|
+
* @param {String} contestId The ID of the contest
|
|
184
|
+
* @param {Object} opts Optional parameters
|
|
185
|
+
* @param {Number} opts.pageNumber (default to 1)
|
|
186
|
+
* @param {Number} opts.pageSize (default to 25)
|
|
187
|
+
* @param {String} opts.workday Target querying workday. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
188
|
+
* @param {Object} opts.returnsView Desired response results (Supervisor Only) (default to All)
|
|
189
|
+
*/
|
|
190
|
+
getGamificationContestAgentsScoresMe(contestId, opts) {
|
|
191
|
+
opts = opts || {};
|
|
192
|
+
|
|
193
|
+
// verify the required parameter 'contestId' is set
|
|
194
|
+
if (contestId === undefined || contestId === null) {
|
|
195
|
+
throw 'Missing the required parameter "contestId" when calling getGamificationContestAgentsScoresMe';
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return this.apiClient.callApi(
|
|
199
|
+
'/api/v2/gamification/contests/{contestId}/agents/scores/me',
|
|
200
|
+
'GET',
|
|
201
|
+
{ 'contestId': contestId },
|
|
202
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'workday': opts['workday'],'returnsView': opts['returnsView'] },
|
|
203
|
+
{ },
|
|
204
|
+
{ },
|
|
205
|
+
null,
|
|
206
|
+
['PureCloud OAuth'],
|
|
207
|
+
['application/json'],
|
|
208
|
+
['application/json']
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Get a Contest Score Trend (Average Trend)
|
|
214
|
+
*
|
|
215
|
+
* @param {String} contestId The ID of the contest
|
|
216
|
+
*/
|
|
217
|
+
getGamificationContestAgentsScoresTrends(contestId) {
|
|
218
|
+
// verify the required parameter 'contestId' is set
|
|
219
|
+
if (contestId === undefined || contestId === null) {
|
|
220
|
+
throw 'Missing the required parameter "contestId" when calling getGamificationContestAgentsScoresTrends';
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return this.apiClient.callApi(
|
|
224
|
+
'/api/v2/gamification/contests/{contestId}/agents/scores/trends',
|
|
225
|
+
'GET',
|
|
226
|
+
{ 'contestId': contestId },
|
|
227
|
+
{ },
|
|
228
|
+
{ },
|
|
229
|
+
{ },
|
|
230
|
+
null,
|
|
231
|
+
['PureCloud OAuth'],
|
|
232
|
+
['application/json'],
|
|
233
|
+
['application/json']
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Get a Contest Score Trend for the requesting Agent
|
|
239
|
+
*
|
|
240
|
+
* @param {String} contestId The ID of the contest
|
|
241
|
+
*/
|
|
242
|
+
getGamificationContestAgentsScoresTrendsMe(contestId) {
|
|
243
|
+
// verify the required parameter 'contestId' is set
|
|
244
|
+
if (contestId === undefined || contestId === null) {
|
|
245
|
+
throw 'Missing the required parameter "contestId" when calling getGamificationContestAgentsScoresTrendsMe';
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return this.apiClient.callApi(
|
|
249
|
+
'/api/v2/gamification/contests/{contestId}/agents/scores/trends/me',
|
|
250
|
+
'GET',
|
|
251
|
+
{ 'contestId': contestId },
|
|
252
|
+
{ },
|
|
253
|
+
{ },
|
|
254
|
+
{ },
|
|
255
|
+
null,
|
|
256
|
+
['PureCloud OAuth'],
|
|
257
|
+
['application/json'],
|
|
258
|
+
['application/json']
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Get a Contest Prize Image by Id
|
|
264
|
+
*
|
|
265
|
+
* @param {String} contestId The ID of the contest
|
|
266
|
+
* @param {String} prizeImageId The ID of the prize image
|
|
267
|
+
*/
|
|
268
|
+
getGamificationContestPrizeimage(contestId, prizeImageId) {
|
|
269
|
+
// verify the required parameter 'contestId' is set
|
|
270
|
+
if (contestId === undefined || contestId === null) {
|
|
271
|
+
throw 'Missing the required parameter "contestId" when calling getGamificationContestPrizeimage';
|
|
272
|
+
}
|
|
273
|
+
// verify the required parameter 'prizeImageId' is set
|
|
274
|
+
if (prizeImageId === undefined || prizeImageId === null) {
|
|
275
|
+
throw 'Missing the required parameter "prizeImageId" when calling getGamificationContestPrizeimage';
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
return this.apiClient.callApi(
|
|
279
|
+
'/api/v2/gamification/contests/{contestId}/prizeimages/{prizeImageId}',
|
|
280
|
+
'GET',
|
|
281
|
+
{ 'contestId': contestId,'prizeImageId': prizeImageId },
|
|
282
|
+
{ },
|
|
283
|
+
{ },
|
|
284
|
+
{ },
|
|
285
|
+
null,
|
|
286
|
+
['PureCloud OAuth'],
|
|
287
|
+
['application/json'],
|
|
288
|
+
['application/json']
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Get a List of Contests (Admin)
|
|
294
|
+
*
|
|
295
|
+
* @param {Object} opts Optional parameters
|
|
296
|
+
* @param {Number} opts.pageNumber (default to 1)
|
|
297
|
+
* @param {Number} opts.pageSize (default to 25)
|
|
298
|
+
* @param {String} opts.dateStart Start date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
299
|
+
* @param {String} opts.dateEnd End date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
300
|
+
* @param {Array.<String>} opts.status
|
|
301
|
+
* @param {Object} opts.sortBy (default to dateStart)
|
|
302
|
+
* @param {Object} opts.sortOrder (default to desc)
|
|
303
|
+
*/
|
|
304
|
+
getGamificationContests(opts) {
|
|
305
|
+
opts = opts || {};
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
return this.apiClient.callApi(
|
|
309
|
+
'/api/v2/gamification/contests',
|
|
310
|
+
'GET',
|
|
311
|
+
{ },
|
|
312
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'dateStart': opts['dateStart'],'dateEnd': opts['dateEnd'],'status': this.apiClient.buildCollectionParam(opts['status'], 'multi'),'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
|
|
313
|
+
{ },
|
|
314
|
+
{ },
|
|
315
|
+
null,
|
|
316
|
+
['PureCloud OAuth'],
|
|
317
|
+
['application/json'],
|
|
318
|
+
['application/json']
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Get a List of Contests (Agent/Supervisor)
|
|
324
|
+
*
|
|
325
|
+
* @param {Object} opts Optional parameters
|
|
326
|
+
* @param {Number} opts.pageNumber (default to 1)
|
|
327
|
+
* @param {Number} opts.pageSize (default to 25)
|
|
328
|
+
* @param {String} opts.dateStart Start date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
329
|
+
* @param {String} opts.dateEnd End date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
330
|
+
* @param {Array.<String>} opts.status
|
|
331
|
+
* @param {Object} opts.sortBy (default to dateStart)
|
|
332
|
+
* @param {Object} opts.sortOrder (default to desc)
|
|
333
|
+
* @param {Object} opts.view (default to participant)
|
|
334
|
+
*/
|
|
335
|
+
getGamificationContestsMe(opts) {
|
|
336
|
+
opts = opts || {};
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
return this.apiClient.callApi(
|
|
340
|
+
'/api/v2/gamification/contests/me',
|
|
341
|
+
'GET',
|
|
342
|
+
{ },
|
|
343
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'dateStart': opts['dateStart'],'dateEnd': opts['dateEnd'],'status': this.apiClient.buildCollectionParam(opts['status'], 'multi'),'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'view': opts['view'] },
|
|
344
|
+
{ },
|
|
345
|
+
{ },
|
|
346
|
+
null,
|
|
347
|
+
['PureCloud OAuth'],
|
|
348
|
+
['application/json'],
|
|
349
|
+
['application/json']
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
|
|
98
353
|
/**
|
|
99
354
|
* Get insights summary
|
|
100
355
|
*
|
|
@@ -1745,6 +2000,36 @@ class GamificationApi {
|
|
|
1745
2000
|
);
|
|
1746
2001
|
}
|
|
1747
2002
|
|
|
2003
|
+
/**
|
|
2004
|
+
* Finalize a Contest by Id
|
|
2005
|
+
*
|
|
2006
|
+
* @param {String} contestId The ID of the contest
|
|
2007
|
+
* @param {Object} body Finalize Contest
|
|
2008
|
+
*/
|
|
2009
|
+
patchGamificationContest(contestId, body) {
|
|
2010
|
+
// verify the required parameter 'contestId' is set
|
|
2011
|
+
if (contestId === undefined || contestId === null) {
|
|
2012
|
+
throw 'Missing the required parameter "contestId" when calling patchGamificationContest';
|
|
2013
|
+
}
|
|
2014
|
+
// verify the required parameter 'body' is set
|
|
2015
|
+
if (body === undefined || body === null) {
|
|
2016
|
+
throw 'Missing the required parameter "body" when calling patchGamificationContest';
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
return this.apiClient.callApi(
|
|
2020
|
+
'/api/v2/gamification/contests/{contestId}',
|
|
2021
|
+
'PATCH',
|
|
2022
|
+
{ 'contestId': contestId },
|
|
2023
|
+
{ },
|
|
2024
|
+
{ },
|
|
2025
|
+
{ },
|
|
2026
|
+
body,
|
|
2027
|
+
['PureCloud OAuth'],
|
|
2028
|
+
['application/json'],
|
|
2029
|
+
['application/json']
|
|
2030
|
+
);
|
|
2031
|
+
}
|
|
2032
|
+
|
|
1748
2033
|
/**
|
|
1749
2034
|
* Write External Metric Data
|
|
1750
2035
|
*
|
|
@@ -1793,6 +2078,56 @@ class GamificationApi {
|
|
|
1793
2078
|
);
|
|
1794
2079
|
}
|
|
1795
2080
|
|
|
2081
|
+
/**
|
|
2082
|
+
* Creates a Contest
|
|
2083
|
+
*
|
|
2084
|
+
* @param {Object} body Create Contest
|
|
2085
|
+
*/
|
|
2086
|
+
postGamificationContests(body) {
|
|
2087
|
+
// verify the required parameter 'body' is set
|
|
2088
|
+
if (body === undefined || body === null) {
|
|
2089
|
+
throw 'Missing the required parameter "body" when calling postGamificationContests';
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
return this.apiClient.callApi(
|
|
2093
|
+
'/api/v2/gamification/contests',
|
|
2094
|
+
'POST',
|
|
2095
|
+
{ },
|
|
2096
|
+
{ },
|
|
2097
|
+
{ },
|
|
2098
|
+
{ },
|
|
2099
|
+
body,
|
|
2100
|
+
['PureCloud OAuth'],
|
|
2101
|
+
['application/json'],
|
|
2102
|
+
['application/json']
|
|
2103
|
+
);
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
/**
|
|
2107
|
+
* Generates pre-signed URL to upload a prize image for gamification contests
|
|
2108
|
+
*
|
|
2109
|
+
* @param {Object} body query
|
|
2110
|
+
*/
|
|
2111
|
+
postGamificationContestsUploadsPrizeimages(body) {
|
|
2112
|
+
// verify the required parameter 'body' is set
|
|
2113
|
+
if (body === undefined || body === null) {
|
|
2114
|
+
throw 'Missing the required parameter "body" when calling postGamificationContestsUploadsPrizeimages';
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
return this.apiClient.callApi(
|
|
2118
|
+
'/api/v2/gamification/contests/uploads/prizeimages',
|
|
2119
|
+
'POST',
|
|
2120
|
+
{ },
|
|
2121
|
+
{ },
|
|
2122
|
+
{ },
|
|
2123
|
+
{ },
|
|
2124
|
+
body,
|
|
2125
|
+
['PureCloud OAuth'],
|
|
2126
|
+
['application/json'],
|
|
2127
|
+
['application/json']
|
|
2128
|
+
);
|
|
2129
|
+
}
|
|
2130
|
+
|
|
1796
2131
|
/**
|
|
1797
2132
|
* Activate a performance profile
|
|
1798
2133
|
*
|
|
@@ -2052,6 +2387,36 @@ class GamificationApi {
|
|
|
2052
2387
|
);
|
|
2053
2388
|
}
|
|
2054
2389
|
|
|
2390
|
+
/**
|
|
2391
|
+
* Update a Contest by Id
|
|
2392
|
+
*
|
|
2393
|
+
* @param {String} contestId The ID of the contest
|
|
2394
|
+
* @param {Object} body Contest
|
|
2395
|
+
*/
|
|
2396
|
+
putGamificationContest(contestId, body) {
|
|
2397
|
+
// verify the required parameter 'contestId' is set
|
|
2398
|
+
if (contestId === undefined || contestId === null) {
|
|
2399
|
+
throw 'Missing the required parameter "contestId" when calling putGamificationContest';
|
|
2400
|
+
}
|
|
2401
|
+
// verify the required parameter 'body' is set
|
|
2402
|
+
if (body === undefined || body === null) {
|
|
2403
|
+
throw 'Missing the required parameter "body" when calling putGamificationContest';
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
return this.apiClient.callApi(
|
|
2407
|
+
'/api/v2/gamification/contests/{contestId}',
|
|
2408
|
+
'PUT',
|
|
2409
|
+
{ 'contestId': contestId },
|
|
2410
|
+
{ },
|
|
2411
|
+
{ },
|
|
2412
|
+
{ },
|
|
2413
|
+
body,
|
|
2414
|
+
['PureCloud OAuth'],
|
|
2415
|
+
['application/json'],
|
|
2416
|
+
['application/json']
|
|
2417
|
+
);
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2055
2420
|
/**
|
|
2056
2421
|
* Updates a performance profile
|
|
2057
2422
|
*
|
|
@@ -5,7 +5,7 @@ class ObjectsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Objects service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 219.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -110,6 +110,31 @@ class ObjectsApi {
|
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Get a list of soft deleted divisions for the org
|
|
115
|
+
*
|
|
116
|
+
* @param {Object} opts Optional parameters
|
|
117
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
118
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
119
|
+
*/
|
|
120
|
+
getAuthorizationDivisionsDeleted(opts) {
|
|
121
|
+
opts = opts || {};
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
return this.apiClient.callApi(
|
|
125
|
+
'/api/v2/authorization/divisions/deleted',
|
|
126
|
+
'GET',
|
|
127
|
+
{ },
|
|
128
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
|
|
129
|
+
{ },
|
|
130
|
+
{ },
|
|
131
|
+
null,
|
|
132
|
+
['PureCloud OAuth'],
|
|
133
|
+
['application/json'],
|
|
134
|
+
['application/json']
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
113
138
|
/**
|
|
114
139
|
* Retrieve the home division for the organization.
|
|
115
140
|
* Will not include object counts.
|
|
@@ -150,6 +175,34 @@ class ObjectsApi {
|
|
|
150
175
|
);
|
|
151
176
|
}
|
|
152
177
|
|
|
178
|
+
/**
|
|
179
|
+
* Retrieve a list of all divisions defined for the organization with cursor
|
|
180
|
+
* Use "after" and "before" param to fetch next/previous page}
|
|
181
|
+
* @param {Object} opts Optional parameters
|
|
182
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
183
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
184
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
185
|
+
* @param {Array.<String>} opts.id Optionally request specific divisions by their IDs
|
|
186
|
+
* @param {String} opts.name Optionally request specific divisions by division name
|
|
187
|
+
*/
|
|
188
|
+
getAuthorizationDivisionsQuery(opts) {
|
|
189
|
+
opts = opts || {};
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
return this.apiClient.callApi(
|
|
193
|
+
'/api/v2/authorization/divisions/query',
|
|
194
|
+
'GET',
|
|
195
|
+
{ },
|
|
196
|
+
{ 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'name': opts['name'] },
|
|
197
|
+
{ },
|
|
198
|
+
{ },
|
|
199
|
+
null,
|
|
200
|
+
['PureCloud OAuth'],
|
|
201
|
+
['application/json'],
|
|
202
|
+
['application/json']
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
153
206
|
/**
|
|
154
207
|
* Assign a list of objects to a division
|
|
155
208
|
* Set the division of a specified list of objects. The objects must all be of the same type, one of: CAMPAIGN, MANAGEMENTUNIT, FLOW, QUEUE, DATATABLES or USER. The body of the request is a list of object IDs, which are expected to be GUIDs, e.g. ["206ce31f-61ec-40ed-a8b1-be6f06303998","250a754e-f5e4-4f51-800f-a92f09d3bf8c"]
|