purecloud-platform-client-v2 136.0.0 → 137.0.1

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.
Files changed (73) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +9663 -9406
  3. package/dist/web-amd/purecloud-platform-client-v2.js +9663 -9406
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +9670 -9406
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +9670 -9406
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +620 -462
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +14 -5
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +56 -56
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +231 -231
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +573 -524
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +31 -31
  15. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +212 -212
  16. package/src/purecloud-platform-client-v2/api/BillingApi.js +12 -12
  17. package/src/purecloud-platform-client-v2/api/ChatApi.js +16 -16
  18. package/src/purecloud-platform-client-v2/api/CoachingApi.js +96 -96
  19. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +192 -192
  20. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +808 -808
  21. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +17 -17
  22. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +337 -337
  23. package/src/purecloud-platform-client-v2/api/FaxApi.js +31 -31
  24. package/src/purecloud-platform-client-v2/api/FlowsApi.js +11 -11
  25. package/src/purecloud-platform-client-v2/api/GamificationApi.js +246 -246
  26. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +21 -21
  27. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +26 -26
  28. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +88 -88
  29. package/src/purecloud-platform-client-v2/api/GroupsApi.js +72 -72
  30. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +171 -171
  31. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +311 -311
  32. package/src/purecloud-platform-client-v2/api/JourneyApi.js +146 -146
  33. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +131 -131
  34. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +151 -151
  35. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +51 -51
  36. package/src/purecloud-platform-client-v2/api/LearningApi.js +107 -107
  37. package/src/purecloud-platform-client-v2/api/LicenseApi.js +49 -49
  38. package/src/purecloud-platform-client-v2/api/LocationsApi.js +41 -41
  39. package/src/purecloud-platform-client-v2/api/MessagingApi.js +26 -26
  40. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +26 -26
  41. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +43 -43
  42. package/src/purecloud-platform-client-v2/api/OAuthApi.js +67 -67
  43. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +50 -50
  44. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +81 -81
  45. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +162 -162
  46. package/src/purecloud-platform-client-v2/api/OutboundApi.js +768 -568
  47. package/src/purecloud-platform-client-v2/api/PresenceApi.js +64 -64
  48. package/src/purecloud-platform-client-v2/api/QualityApi.js +285 -285
  49. package/src/purecloud-platform-client-v2/api/RecordingApi.js +302 -302
  50. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +86 -86
  51. package/src/purecloud-platform-client-v2/api/RoutingApi.js +536 -536
  52. package/src/purecloud-platform-client-v2/api/SCIMApi.js +195 -195
  53. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +66 -66
  54. package/src/purecloud-platform-client-v2/api/SearchApi.js +96 -96
  55. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +194 -194
  56. package/src/purecloud-platform-client-v2/api/StationsApi.js +28 -28
  57. package/src/purecloud-platform-client-v2/api/SuggestApi.js +21 -21
  58. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +16 -16
  59. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +657 -657
  60. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +23 -23
  61. package/src/purecloud-platform-client-v2/api/TokensApi.js +21 -21
  62. package/src/purecloud-platform-client-v2/api/UploadsApi.js +26 -26
  63. package/src/purecloud-platform-client-v2/api/UsageApi.js +11 -11
  64. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +31 -31
  65. package/src/purecloud-platform-client-v2/api/UsersApi.js +413 -413
  66. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +21 -21
  67. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +140 -140
  68. package/src/purecloud-platform-client-v2/api/WebChatApi.js +97 -97
  69. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +66 -66
  70. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +6 -6
  71. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +26 -26
  72. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +765 -765
  73. package/src/purecloud-platform-client-v2/index.js +2 -1
@@ -5,7 +5,7 @@ class WorkforceManagementApi {
5
5
  /**
6
6
  * WorkforceManagement service.
7
7
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
8
- * @version 136.0.0
8
+ * @version 137.0.1
9
9
  */
10
10
 
11
11
  /**
@@ -23,7 +23,7 @@ class WorkforceManagementApi {
23
23
  /**
24
24
  * Delete business unit
25
25
  * A business unit cannot be deleted if it contains one or more management units
26
- * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
26
+ * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
27
27
  */
28
28
  deleteWorkforcemanagementBusinessunit(businessUnitId) {
29
29
  // verify the required parameter 'businessUnitId' is set
@@ -34,13 +34,13 @@ class WorkforceManagementApi {
34
34
  return this.apiClient.callApi(
35
35
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}',
36
36
  'DELETE',
37
- { 'businessUnitId': businessUnitId },
38
- { },
39
- { },
40
- { },
37
+ { 'businessUnitId': businessUnitId },
38
+ { },
39
+ { },
40
+ { },
41
41
  null,
42
42
  ['PureCloud OAuth'],
43
- ['application/json'],
43
+ ['application/json'],
44
44
  ['application/json']
45
45
  );
46
46
  }
@@ -48,7 +48,7 @@ class WorkforceManagementApi {
48
48
  /**
49
49
  * Deletes an activity code
50
50
  *
51
- * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
51
+ * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
52
52
  * @param {String} activityCodeId The ID of the activity code to delete
53
53
  */
54
54
  deleteWorkforcemanagementBusinessunitActivitycode(businessUnitId, activityCodeId) {
@@ -64,13 +64,13 @@ class WorkforceManagementApi {
64
64
  return this.apiClient.callApi(
65
65
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}',
66
66
  'DELETE',
67
- { 'businessUnitId': businessUnitId,'activityCodeId': activityCodeId },
68
- { },
69
- { },
70
- { },
67
+ { 'businessUnitId': businessUnitId,'activityCodeId': activityCodeId },
68
+ { },
69
+ { },
70
+ { },
71
71
  null,
72
72
  ['PureCloud OAuth'],
73
- ['application/json'],
73
+ ['application/json'],
74
74
  ['application/json']
75
75
  );
76
76
  }
@@ -94,13 +94,13 @@ class WorkforceManagementApi {
94
94
  return this.apiClient.callApi(
95
95
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}',
96
96
  'DELETE',
97
- { 'businessUnitId': businessUnitId,'planningGroupId': planningGroupId },
98
- { },
99
- { },
100
- { },
97
+ { 'businessUnitId': businessUnitId,'planningGroupId': planningGroupId },
98
+ { },
99
+ { },
100
+ { },
101
101
  null,
102
102
  ['PureCloud OAuth'],
103
- ['application/json'],
103
+ ['application/json'],
104
104
  ['application/json']
105
105
  );
106
106
  }
@@ -124,13 +124,13 @@ class WorkforceManagementApi {
124
124
  return this.apiClient.callApi(
125
125
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}',
126
126
  'DELETE',
127
- { 'businessUnitId': businessUnitId,'runId': runId },
128
- { },
129
- { },
130
- { },
127
+ { 'businessUnitId': businessUnitId,'runId': runId },
128
+ { },
129
+ { },
130
+ { },
131
131
  null,
132
132
  ['PureCloud OAuth'],
133
- ['application/json'],
133
+ ['application/json'],
134
134
  ['application/json']
135
135
  );
136
136
  }
@@ -154,13 +154,13 @@ class WorkforceManagementApi {
154
154
  return this.apiClient.callApi(
155
155
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}',
156
156
  'DELETE',
157
- { 'businessUnitId': businessUnitId,'serviceGoalTemplateId': serviceGoalTemplateId },
158
- { },
159
- { },
160
- { },
157
+ { 'businessUnitId': businessUnitId,'serviceGoalTemplateId': serviceGoalTemplateId },
158
+ { },
159
+ { },
160
+ { },
161
161
  null,
162
162
  ['PureCloud OAuth'],
163
- ['application/json'],
163
+ ['application/json'],
164
164
  ['application/json']
165
165
  );
166
166
  }
@@ -189,13 +189,13 @@ class WorkforceManagementApi {
189
189
  return this.apiClient.callApi(
190
190
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}',
191
191
  'DELETE',
192
- { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
193
- { },
194
- { },
195
- { },
192
+ { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
193
+ { },
194
+ { },
195
+ { },
196
196
  null,
197
197
  ['PureCloud OAuth'],
198
- ['application/json'],
198
+ ['application/json'],
199
199
  ['application/json']
200
200
  );
201
201
  }
@@ -224,13 +224,13 @@ class WorkforceManagementApi {
224
224
  return this.apiClient.callApi(
225
225
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}',
226
226
  'DELETE',
227
- { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
228
- { },
229
- { },
230
- { },
227
+ { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
228
+ { },
229
+ { },
230
+ { },
231
231
  null,
232
232
  ['PureCloud OAuth'],
233
- ['application/json'],
233
+ ['application/json'],
234
234
  ['application/json']
235
235
  );
236
236
  }
@@ -244,13 +244,13 @@ class WorkforceManagementApi {
244
244
  return this.apiClient.callApi(
245
245
  '/api/v2/workforcemanagement/calendar/url/ics',
246
246
  'DELETE',
247
- { },
248
- { },
249
- { },
250
- { },
247
+ { },
248
+ { },
249
+ { },
250
+ { },
251
251
  null,
252
252
  ['PureCloud OAuth'],
253
- ['application/json'],
253
+ ['application/json'],
254
254
  ['application/json']
255
255
  );
256
256
  }
@@ -258,7 +258,7 @@ class WorkforceManagementApi {
258
258
  /**
259
259
  * Delete management unit
260
260
  *
261
- * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
261
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
262
262
  */
263
263
  deleteWorkforcemanagementManagementunit(managementUnitId) {
264
264
  // verify the required parameter 'managementUnitId' is set
@@ -269,13 +269,13 @@ class WorkforceManagementApi {
269
269
  return this.apiClient.callApi(
270
270
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}',
271
271
  'DELETE',
272
- { 'managementUnitId': managementUnitId },
273
- { },
274
- { },
275
- { },
272
+ { 'managementUnitId': managementUnitId },
273
+ { },
274
+ { },
275
+ { },
276
276
  null,
277
277
  ['PureCloud OAuth'],
278
- ['application/json'],
278
+ ['application/json'],
279
279
  ['application/json']
280
280
  );
281
281
  }
@@ -299,13 +299,13 @@ class WorkforceManagementApi {
299
299
  return this.apiClient.callApi(
300
300
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
301
301
  'DELETE',
302
- { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
303
- { },
304
- { },
305
- { },
302
+ { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
303
+ { },
304
+ { },
305
+ { },
306
306
  null,
307
307
  ['PureCloud OAuth'],
308
- ['application/json'],
308
+ ['application/json'],
309
309
  ['application/json']
310
310
  );
311
311
  }
@@ -329,13 +329,13 @@ class WorkforceManagementApi {
329
329
  return this.apiClient.callApi(
330
330
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
331
331
  'DELETE',
332
- { 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
333
- { },
334
- { },
335
- { },
332
+ { 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
333
+ { },
334
+ { },
335
+ { },
336
336
  null,
337
337
  ['PureCloud OAuth'],
338
- ['application/json'],
338
+ ['application/json'],
339
339
  ['application/json']
340
340
  );
341
341
  }
@@ -343,7 +343,7 @@ class WorkforceManagementApi {
343
343
  /**
344
344
  * Delete a work plan
345
345
  *
346
- * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
346
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
347
347
  * @param {String} workPlanId The ID of the work plan to delete
348
348
  */
349
349
  deleteWorkforcemanagementManagementunitWorkplan(managementUnitId, workPlanId) {
@@ -359,13 +359,13 @@ class WorkforceManagementApi {
359
359
  return this.apiClient.callApi(
360
360
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}',
361
361
  'DELETE',
362
- { 'managementUnitId': managementUnitId,'workPlanId': workPlanId },
363
- { },
364
- { },
365
- { },
362
+ { 'managementUnitId': managementUnitId,'workPlanId': workPlanId },
363
+ { },
364
+ { },
365
+ { },
366
366
  null,
367
367
  ['PureCloud OAuth'],
368
- ['application/json'],
368
+ ['application/json'],
369
369
  ['application/json']
370
370
  );
371
371
  }
@@ -373,7 +373,7 @@ class WorkforceManagementApi {
373
373
  /**
374
374
  * Delete a work plan rotation
375
375
  *
376
- * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
376
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
377
377
  * @param {String} workPlanRotationId The ID of the work plan rotation to be deleted
378
378
  */
379
379
  deleteWorkforcemanagementManagementunitWorkplanrotation(managementUnitId, workPlanRotationId) {
@@ -389,13 +389,13 @@ class WorkforceManagementApi {
389
389
  return this.apiClient.callApi(
390
390
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}',
391
391
  'DELETE',
392
- { 'managementUnitId': managementUnitId,'workPlanRotationId': workPlanRotationId },
393
- { },
394
- { },
395
- { },
392
+ { 'managementUnitId': managementUnitId,'workPlanRotationId': workPlanRotationId },
393
+ { },
394
+ { },
395
+ { },
396
396
  null,
397
397
  ['PureCloud OAuth'],
398
- ['application/json'],
398
+ ['application/json'],
399
399
  ['application/json']
400
400
  );
401
401
  }
@@ -414,13 +414,13 @@ class WorkforceManagementApi {
414
414
  return this.apiClient.callApi(
415
415
  '/api/v2/workforcemanagement/adherence',
416
416
  'GET',
417
- { },
418
- { 'userId': this.apiClient.buildCollectionParam(userId, 'multi') },
419
- { },
420
- { },
417
+ { },
418
+ { 'userId': this.apiClient.buildCollectionParam(userId, 'multi') },
419
+ { },
420
+ { },
421
421
  null,
422
422
  ['PureCloud OAuth'],
423
- ['application/json'],
423
+ ['application/json'],
424
424
  ['application/json']
425
425
  );
426
426
  }
@@ -439,13 +439,13 @@ class WorkforceManagementApi {
439
439
  return this.apiClient.callApi(
440
440
  '/api/v2/workforcemanagement/adhocmodelingjobs/{jobId}',
441
441
  'GET',
442
- { 'jobId': jobId },
443
- { },
444
- { },
445
- { },
442
+ { 'jobId': jobId },
443
+ { },
444
+ { },
445
+ { },
446
446
  null,
447
447
  ['PureCloud OAuth'],
448
- ['application/json'],
448
+ ['application/json'],
449
449
  ['application/json']
450
450
  );
451
451
  }
@@ -464,13 +464,13 @@ class WorkforceManagementApi {
464
464
  return this.apiClient.callApi(
465
465
  '/api/v2/workforcemanagement/agents/{agentId}/managementunit',
466
466
  'GET',
467
- { 'agentId': agentId },
468
- { },
469
- { },
470
- { },
467
+ { 'agentId': agentId },
468
+ { },
469
+ { },
470
+ { },
471
471
  null,
472
472
  ['PureCloud OAuth'],
473
- ['application/json'],
473
+ ['application/json'],
474
474
  ['application/json']
475
475
  );
476
476
  }
@@ -484,21 +484,21 @@ class WorkforceManagementApi {
484
484
  return this.apiClient.callApi(
485
485
  '/api/v2/workforcemanagement/agents/me/managementunit',
486
486
  'GET',
487
- { },
488
- { },
489
- { },
490
- { },
487
+ { },
488
+ { },
489
+ { },
490
+ { },
491
491
  null,
492
492
  ['PureCloud OAuth'],
493
- ['application/json'],
493
+ ['application/json'],
494
494
  ['application/json']
495
495
  );
496
496
  }
497
497
 
498
498
  /**
499
499
  * Get business unit
500
- * Expanding \"settings\" will retrieve all settings. All other expands will retrieve only the requested settings field(s).
501
- * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
500
+ * Expanding "settings" will retrieve all settings. All other expands will retrieve only the requested settings field(s).
501
+ * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
502
502
  * @param {Object} opts Optional parameters
503
503
  * @param {Array.<String>} opts.expand
504
504
  */
@@ -513,13 +513,13 @@ class WorkforceManagementApi {
513
513
  return this.apiClient.callApi(
514
514
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}',
515
515
  'GET',
516
- { 'businessUnitId': businessUnitId },
517
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
518
- { },
519
- { },
516
+ { 'businessUnitId': businessUnitId },
517
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
518
+ { },
519
+ { },
520
520
  null,
521
521
  ['PureCloud OAuth'],
522
- ['application/json'],
522
+ ['application/json'],
523
523
  ['application/json']
524
524
  );
525
525
  }
@@ -527,7 +527,7 @@ class WorkforceManagementApi {
527
527
  /**
528
528
  * Get an activity code
529
529
  *
530
- * @param {String} businessUnitId The ID of the business unit, or &#39;mine&#39; for the business unit of the logged-in user.
530
+ * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
531
531
  * @param {String} activityCodeId The ID of the activity code to fetch
532
532
  */
533
533
  getWorkforcemanagementBusinessunitActivitycode(businessUnitId, activityCodeId) {
@@ -543,13 +543,13 @@ class WorkforceManagementApi {
543
543
  return this.apiClient.callApi(
544
544
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}',
545
545
  'GET',
546
- { 'businessUnitId': businessUnitId,'activityCodeId': activityCodeId },
547
- { },
548
- { },
549
- { },
546
+ { 'businessUnitId': businessUnitId,'activityCodeId': activityCodeId },
547
+ { },
548
+ { },
549
+ { },
550
550
  null,
551
551
  ['PureCloud OAuth'],
552
- ['application/json'],
552
+ ['application/json'],
553
553
  ['application/json']
554
554
  );
555
555
  }
@@ -557,7 +557,7 @@ class WorkforceManagementApi {
557
557
  /**
558
558
  * Get activity codes
559
559
  *
560
- * @param {String} businessUnitId The ID of the business unit, or &#39;mine&#39; for the business unit of the logged-in user.
560
+ * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
561
561
  */
562
562
  getWorkforcemanagementBusinessunitActivitycodes(businessUnitId) {
563
563
  // verify the required parameter 'businessUnitId' is set
@@ -568,13 +568,13 @@ class WorkforceManagementApi {
568
568
  return this.apiClient.callApi(
569
569
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes',
570
570
  'GET',
571
- { 'businessUnitId': businessUnitId },
572
- { },
573
- { },
574
- { },
571
+ { 'businessUnitId': businessUnitId },
572
+ { },
573
+ { },
574
+ { },
575
575
  null,
576
576
  ['PureCloud OAuth'],
577
- ['application/json'],
577
+ ['application/json'],
578
578
  ['application/json']
579
579
  );
580
580
  }
@@ -598,13 +598,13 @@ class WorkforceManagementApi {
598
598
  return this.apiClient.callApi(
599
599
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday/planninggroups',
600
600
  'GET',
601
- { 'businessUnitId': businessUnitId },
602
- { 'date': _date },
603
- { },
604
- { },
601
+ { 'businessUnitId': businessUnitId },
602
+ { 'date': _date },
603
+ { },
604
+ { },
605
605
  null,
606
606
  ['PureCloud OAuth'],
607
- ['application/json'],
607
+ ['application/json'],
608
608
  ['application/json']
609
609
  );
610
610
  }
@@ -612,7 +612,7 @@ class WorkforceManagementApi {
612
612
  /**
613
613
  * Get all authorized management units in the business unit
614
614
  *
615
- * @param {String} businessUnitId The ID of the business unit, or &#39;mine&#39; for the business unit of the logged-in user.
615
+ * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
616
616
  * @param {Object} opts Optional parameters
617
617
  * @param {Object} opts.feature
618
618
  * @param {String} opts.divisionId
@@ -628,13 +628,13 @@ class WorkforceManagementApi {
628
628
  return this.apiClient.callApi(
629
629
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/managementunits',
630
630
  'GET',
631
- { 'businessUnitId': businessUnitId },
632
- { 'feature': opts['feature'],'divisionId': opts['divisionId'] },
633
- { },
634
- { },
631
+ { 'businessUnitId': businessUnitId },
632
+ { 'feature': opts['feature'],'divisionId': opts['divisionId'] },
633
+ { },
634
+ { },
635
635
  null,
636
636
  ['PureCloud OAuth'],
637
- ['application/json'],
637
+ ['application/json'],
638
638
  ['application/json']
639
639
  );
640
640
  }
@@ -658,13 +658,13 @@ class WorkforceManagementApi {
658
658
  return this.apiClient.callApi(
659
659
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}',
660
660
  'GET',
661
- { 'businessUnitId': businessUnitId,'planningGroupId': planningGroupId },
662
- { },
663
- { },
664
- { },
661
+ { 'businessUnitId': businessUnitId,'planningGroupId': planningGroupId },
662
+ { },
663
+ { },
664
+ { },
665
665
  null,
666
666
  ['PureCloud OAuth'],
667
- ['application/json'],
667
+ ['application/json'],
668
668
  ['application/json']
669
669
  );
670
670
  }
@@ -683,13 +683,13 @@ class WorkforceManagementApi {
683
683
  return this.apiClient.callApi(
684
684
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups',
685
685
  'GET',
686
- { 'businessUnitId': businessUnitId },
687
- { },
688
- { },
689
- { },
686
+ { 'businessUnitId': businessUnitId },
687
+ { },
688
+ { },
689
+ { },
690
690
  null,
691
691
  ['PureCloud OAuth'],
692
- ['application/json'],
692
+ ['application/json'],
693
693
  ['application/json']
694
694
  );
695
695
  }
@@ -713,13 +713,13 @@ class WorkforceManagementApi {
713
713
  return this.apiClient.callApi(
714
714
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}',
715
715
  'GET',
716
- { 'businessUnitId': businessUnitId,'runId': runId },
717
- { },
718
- { },
719
- { },
716
+ { 'businessUnitId': businessUnitId,'runId': runId },
717
+ { },
718
+ { },
719
+ { },
720
720
  null,
721
721
  ['PureCloud OAuth'],
722
- ['application/json'],
722
+ ['application/json'],
723
723
  ['application/json']
724
724
  );
725
725
  }
@@ -753,13 +753,13 @@ class WorkforceManagementApi {
753
753
  return this.apiClient.callApi(
754
754
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}/result',
755
755
  'GET',
756
- { 'businessUnitId': businessUnitId,'runId': runId },
757
- { 'managementUnitIds': this.apiClient.buildCollectionParam(managementUnitIds, 'multi'),'expand': this.apiClient.buildCollectionParam(expand, 'multi') },
758
- { },
759
- { },
756
+ { 'businessUnitId': businessUnitId,'runId': runId },
757
+ { 'managementUnitIds': this.apiClient.buildCollectionParam(managementUnitIds, 'multi'),'expand': this.apiClient.buildCollectionParam(expand, 'multi') },
758
+ { },
759
+ { },
760
760
  null,
761
761
  ['PureCloud OAuth'],
762
- ['application/json'],
762
+ ['application/json'],
763
763
  ['application/json']
764
764
  );
765
765
  }
@@ -778,13 +778,13 @@ class WorkforceManagementApi {
778
778
  return this.apiClient.callApi(
779
779
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs',
780
780
  'GET',
781
- { 'businessUnitId': businessUnitId },
782
- { },
783
- { },
784
- { },
781
+ { 'businessUnitId': businessUnitId },
782
+ { },
783
+ { },
784
+ { },
785
785
  null,
786
786
  ['PureCloud OAuth'],
787
- ['application/json'],
787
+ ['application/json'],
788
788
  ['application/json']
789
789
  );
790
790
  }
@@ -808,13 +808,13 @@ class WorkforceManagementApi {
808
808
  return this.apiClient.callApi(
809
809
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}',
810
810
  'GET',
811
- { 'businessUnitId': businessUnitId,'serviceGoalTemplateId': serviceGoalTemplateId },
812
- { },
813
- { },
814
- { },
811
+ { 'businessUnitId': businessUnitId,'serviceGoalTemplateId': serviceGoalTemplateId },
812
+ { },
813
+ { },
814
+ { },
815
815
  null,
816
816
  ['PureCloud OAuth'],
817
- ['application/json'],
817
+ ['application/json'],
818
818
  ['application/json']
819
819
  );
820
820
  }
@@ -833,13 +833,13 @@ class WorkforceManagementApi {
833
833
  return this.apiClient.callApi(
834
834
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates',
835
835
  'GET',
836
- { 'businessUnitId': businessUnitId },
837
- { },
838
- { },
839
- { },
836
+ { 'businessUnitId': businessUnitId },
837
+ { },
838
+ { },
839
+ { },
840
840
  null,
841
841
  ['PureCloud OAuth'],
842
- ['application/json'],
842
+ ['application/json'],
843
843
  ['application/json']
844
844
  );
845
845
  }
@@ -872,13 +872,13 @@ class WorkforceManagementApi {
872
872
  return this.apiClient.callApi(
873
873
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}',
874
874
  'GET',
875
- { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
876
- { 'expand': opts['expand'] },
877
- { },
878
- { },
875
+ { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
876
+ { 'expand': opts['expand'] },
877
+ { },
878
+ { },
879
879
  null,
880
880
  ['PureCloud OAuth'],
881
- ['application/json'],
881
+ ['application/json'],
882
882
  ['application/json']
883
883
  );
884
884
  }
@@ -907,13 +907,13 @@ class WorkforceManagementApi {
907
907
  return this.apiClient.callApi(
908
908
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/generationresults',
909
909
  'GET',
910
- { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
911
- { },
912
- { },
913
- { },
910
+ { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
911
+ { },
912
+ { },
913
+ { },
914
914
  null,
915
915
  ['PureCloud OAuth'],
916
- ['application/json'],
916
+ ['application/json'],
917
917
  ['application/json']
918
918
  );
919
919
  }
@@ -946,19 +946,19 @@ class WorkforceManagementApi {
946
946
  return this.apiClient.callApi(
947
947
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/headcountforecast',
948
948
  'GET',
949
- { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
950
- { 'forceDownload': opts['forceDownload'] },
951
- { },
952
- { },
949
+ { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
950
+ { 'forceDownload': opts['forceDownload'] },
951
+ { },
952
+ { },
953
953
  null,
954
954
  ['PureCloud OAuth'],
955
- ['application/json'],
955
+ ['application/json'],
956
956
  ['application/json']
957
957
  );
958
958
  }
959
959
 
960
960
  /**
961
- * Loads agent&#39;s schedule history.
961
+ * Loads agent's schedule history.
962
962
  *
963
963
  * @param {String} businessUnitId The ID of the business unit
964
964
  * @param {String} weekId First day of schedule week in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
@@ -986,22 +986,22 @@ class WorkforceManagementApi {
986
986
  return this.apiClient.callApi(
987
987
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/history/agents/{agentId}',
988
988
  'GET',
989
- { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId,'agentId': agentId },
990
- { },
991
- { },
992
- { },
989
+ { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId,'agentId': agentId },
990
+ { },
991
+ { },
992
+ { },
993
993
  null,
994
994
  ['PureCloud OAuth'],
995
- ['application/json'],
995
+ ['application/json'],
996
996
  ['application/json']
997
997
  );
998
998
  }
999
999
 
1000
1000
  /**
1001
1001
  * Get the list of week schedules for the specified week
1002
- * Use \&quot;recent\&quot; (without quotes) for the `weekId` path parameter to fetch all forecasts for +/- 26 weeks from the current date. Response will include any schedule which spans the specified week
1002
+ * Use "recent" (without quotes) for the `weekId` path parameter to fetch all forecasts for +/- 26 weeks from the current date. Response will include any schedule which spans the specified week
1003
1003
  * @param {String} businessUnitId The ID of the business unit
1004
- * @param {String} weekId First day of schedule week in yyyy-MM-dd format, or &#39;recent&#39; (without quotes) to get recent schedules
1004
+ * @param {String} weekId First day of schedule week in yyyy-MM-dd format, or 'recent' (without quotes) to get recent schedules
1005
1005
  * @param {Object} opts Optional parameters
1006
1006
  * @param {Boolean} opts.includeOnlyPublished includeOnlyPublished
1007
1007
  * @param {Object} opts.expand expand
@@ -1021,13 +1021,13 @@ class WorkforceManagementApi {
1021
1021
  return this.apiClient.callApi(
1022
1022
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules',
1023
1023
  'GET',
1024
- { 'businessUnitId': businessUnitId,'weekId': weekId },
1025
- { 'includeOnlyPublished': opts['includeOnlyPublished'],'expand': opts['expand'] },
1026
- { },
1027
- { },
1024
+ { 'businessUnitId': businessUnitId,'weekId': weekId },
1025
+ { 'includeOnlyPublished': opts['includeOnlyPublished'],'expand': opts['expand'] },
1026
+ { },
1027
+ { },
1028
1028
  null,
1029
1029
  ['PureCloud OAuth'],
1030
- ['application/json'],
1030
+ ['application/json'],
1031
1031
  ['application/json']
1032
1032
  );
1033
1033
  }
@@ -1060,13 +1060,13 @@ class WorkforceManagementApi {
1060
1060
  return this.apiClient.callApi(
1061
1061
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}',
1062
1062
  'GET',
1063
- { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
1064
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
1065
- { },
1066
- { },
1063
+ { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
1064
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
1065
+ { },
1066
+ { },
1067
1067
  null,
1068
1068
  ['PureCloud OAuth'],
1069
- ['application/json'],
1069
+ ['application/json'],
1070
1070
  ['application/json']
1071
1071
  );
1072
1072
  }
@@ -1100,13 +1100,13 @@ class WorkforceManagementApi {
1100
1100
  return this.apiClient.callApi(
1101
1101
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/data',
1102
1102
  'GET',
1103
- { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
1104
- { 'weekNumber': opts['weekNumber'],'forceDownloadService': opts['forceDownloadService'] },
1105
- { },
1106
- { },
1103
+ { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
1104
+ { 'weekNumber': opts['weekNumber'],'forceDownloadService': opts['forceDownloadService'] },
1105
+ { },
1106
+ { },
1107
1107
  null,
1108
1108
  ['PureCloud OAuth'],
1109
- ['application/json'],
1109
+ ['application/json'],
1110
1110
  ['application/json']
1111
1111
  );
1112
1112
  }
@@ -1135,13 +1135,13 @@ class WorkforceManagementApi {
1135
1135
  return this.apiClient.callApi(
1136
1136
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/generationresults',
1137
1137
  'GET',
1138
- { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
1139
- { },
1140
- { },
1141
- { },
1138
+ { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
1139
+ { },
1140
+ { },
1141
+ { },
1142
1142
  null,
1143
1143
  ['PureCloud OAuth'],
1144
- ['application/json'],
1144
+ ['application/json'],
1145
1145
  ['application/json']
1146
1146
  );
1147
1147
  }
@@ -1174,13 +1174,13 @@ class WorkforceManagementApi {
1174
1174
  return this.apiClient.callApi(
1175
1175
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/longtermforecastdata',
1176
1176
  'GET',
1177
- { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
1178
- { 'forceDownloadService': opts['forceDownloadService'] },
1179
- { },
1180
- { },
1177
+ { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
1178
+ { 'forceDownloadService': opts['forceDownloadService'] },
1179
+ { },
1180
+ { },
1181
1181
  null,
1182
1182
  ['PureCloud OAuth'],
1183
- ['application/json'],
1183
+ ['application/json'],
1184
1184
  ['application/json']
1185
1185
  );
1186
1186
  }
@@ -1209,22 +1209,22 @@ class WorkforceManagementApi {
1209
1209
  return this.apiClient.callApi(
1210
1210
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/planninggroups',
1211
1211
  'GET',
1212
- { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
1213
- { },
1214
- { },
1215
- { },
1212
+ { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
1213
+ { },
1214
+ { },
1215
+ { },
1216
1216
  null,
1217
1217
  ['PureCloud OAuth'],
1218
- ['application/json'],
1218
+ ['application/json'],
1219
1219
  ['application/json']
1220
1220
  );
1221
1221
  }
1222
1222
 
1223
1223
  /**
1224
1224
  * Get short term forecasts
1225
- * Use \&quot;recent\&quot; (without quotes) for the `weekDateId` path parameter to fetch all forecasts for +/- 26 weeks from the current date. Response will include any forecast which spans the specified week
1225
+ * Use "recent" (without quotes) for the `weekDateId` path parameter to fetch all forecasts for +/- 26 weeks from the current date. Response will include any forecast which spans the specified week
1226
1226
  * @param {String} businessUnitId The ID of the business unit to which the forecast belongs
1227
- * @param {String} weekDateId The week start date of the forecast in yyyy-MM-dd format or &#39;recent&#39; (without quotes) to fetch recent forecasts
1227
+ * @param {String} weekDateId The week start date of the forecast in yyyy-MM-dd format or 'recent' (without quotes) to fetch recent forecasts
1228
1228
  */
1229
1229
  getWorkforcemanagementBusinessunitWeekShorttermforecasts(businessUnitId, weekDateId) {
1230
1230
  // verify the required parameter 'businessUnitId' is set
@@ -1239,13 +1239,13 @@ class WorkforceManagementApi {
1239
1239
  return this.apiClient.callApi(
1240
1240
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts',
1241
1241
  'GET',
1242
- { 'businessUnitId': businessUnitId,'weekDateId': weekDateId },
1243
- { },
1244
- { },
1245
- { },
1242
+ { 'businessUnitId': businessUnitId,'weekDateId': weekDateId },
1243
+ { },
1244
+ { },
1245
+ { },
1246
1246
  null,
1247
1247
  ['PureCloud OAuth'],
1248
- ['application/json'],
1248
+ ['application/json'],
1249
1249
  ['application/json']
1250
1250
  );
1251
1251
  }
@@ -1264,13 +1264,13 @@ class WorkforceManagementApi {
1264
1264
  return this.apiClient.callApi(
1265
1265
  '/api/v2/workforcemanagement/businessunits',
1266
1266
  'GET',
1267
- { },
1268
- { 'feature': opts['feature'],'divisionId': opts['divisionId'] },
1269
- { },
1270
- { },
1267
+ { },
1268
+ { 'feature': opts['feature'],'divisionId': opts['divisionId'] },
1269
+ { },
1270
+ { },
1271
1271
  null,
1272
1272
  ['PureCloud OAuth'],
1273
- ['application/json'],
1273
+ ['application/json'],
1274
1274
  ['application/json']
1275
1275
  );
1276
1276
  }
@@ -1288,13 +1288,13 @@ class WorkforceManagementApi {
1288
1288
  return this.apiClient.callApi(
1289
1289
  '/api/v2/workforcemanagement/businessunits/divisionviews',
1290
1290
  'GET',
1291
- { },
1292
- { 'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
1293
- { },
1294
- { },
1291
+ { },
1292
+ { 'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
1293
+ { },
1294
+ { },
1295
1295
  null,
1296
1296
  ['PureCloud OAuth'],
1297
- ['application/json'],
1297
+ ['application/json'],
1298
1298
  ['application/json']
1299
1299
  );
1300
1300
  }
@@ -1313,13 +1313,13 @@ class WorkforceManagementApi {
1313
1313
  return this.apiClient.callApi(
1314
1314
  '/api/v2/workforcemanagement/calendar/data/ics',
1315
1315
  'GET',
1316
- { },
1317
- { 'calendarId': calendarId },
1318
- { },
1319
- { },
1316
+ { },
1317
+ { 'calendarId': calendarId },
1318
+ { },
1319
+ { },
1320
1320
  null,
1321
1321
  ['PureCloud OAuth'],
1322
- ['application/json'],
1322
+ ['application/json'],
1323
1323
  ['text/calendar']
1324
1324
  );
1325
1325
  }
@@ -1333,13 +1333,13 @@ class WorkforceManagementApi {
1333
1333
  return this.apiClient.callApi(
1334
1334
  '/api/v2/workforcemanagement/calendar/url/ics',
1335
1335
  'GET',
1336
- { },
1337
- { },
1338
- { },
1339
- { },
1336
+ { },
1337
+ { },
1338
+ { },
1339
+ { },
1340
1340
  null,
1341
1341
  ['PureCloud OAuth'],
1342
- ['application/json'],
1342
+ ['application/json'],
1343
1343
  ['application/json']
1344
1344
  );
1345
1345
  }
@@ -1353,13 +1353,13 @@ class WorkforceManagementApi {
1353
1353
  return this.apiClient.callApi(
1354
1354
  '/api/v2/workforcemanagement/historicaldata/deletejob',
1355
1355
  'GET',
1356
- { },
1357
- { },
1358
- { },
1359
- { },
1356
+ { },
1357
+ { },
1358
+ { },
1359
+ { },
1360
1360
  null,
1361
1361
  ['PureCloud OAuth'],
1362
- ['application/json'],
1362
+ ['application/json'],
1363
1363
  ['application/json']
1364
1364
  );
1365
1365
  }
@@ -1373,13 +1373,13 @@ class WorkforceManagementApi {
1373
1373
  return this.apiClient.callApi(
1374
1374
  '/api/v2/workforcemanagement/historicaldata/importstatus',
1375
1375
  'GET',
1376
- { },
1377
- { },
1378
- { },
1379
- { },
1376
+ { },
1377
+ { },
1378
+ { },
1379
+ { },
1380
1380
  null,
1381
1381
  ['PureCloud OAuth'],
1382
- ['application/json'],
1382
+ ['application/json'],
1383
1383
  ['application/json']
1384
1384
  );
1385
1385
  }
@@ -1387,7 +1387,7 @@ class WorkforceManagementApi {
1387
1387
  /**
1388
1388
  * Get management unit
1389
1389
  * settings.shortTermForecasting is deprecated and now lives on the business unit
1390
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1390
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1391
1391
  * @param {Object} opts Optional parameters
1392
1392
  * @param {Array.<String>} opts.expand
1393
1393
  */
@@ -1402,13 +1402,13 @@ class WorkforceManagementApi {
1402
1402
  return this.apiClient.callApi(
1403
1403
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}',
1404
1404
  'GET',
1405
- { 'managementUnitId': managementUnitId },
1406
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
1407
- { },
1408
- { },
1405
+ { 'managementUnitId': managementUnitId },
1406
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
1407
+ { },
1408
+ { },
1409
1409
  null,
1410
1410
  ['PureCloud OAuth'],
1411
- ['application/json'],
1411
+ ['application/json'],
1412
1412
  ['application/json']
1413
1413
  );
1414
1414
  }
@@ -1416,7 +1416,7 @@ class WorkforceManagementApi {
1416
1416
  /**
1417
1417
  * Get activity codes
1418
1418
  *
1419
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1419
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1420
1420
  */
1421
1421
  getWorkforcemanagementManagementunitActivitycodes(managementUnitId) {
1422
1422
  // verify the required parameter 'managementUnitId' is set
@@ -1427,13 +1427,13 @@ class WorkforceManagementApi {
1427
1427
  return this.apiClient.callApi(
1428
1428
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/activitycodes',
1429
1429
  'GET',
1430
- { 'managementUnitId': managementUnitId },
1431
- { },
1432
- { },
1433
- { },
1430
+ { 'managementUnitId': managementUnitId },
1431
+ { },
1432
+ { },
1433
+ { },
1434
1434
  null,
1435
1435
  ['PureCloud OAuth'],
1436
- ['application/json'],
1436
+ ['application/json'],
1437
1437
  ['application/json']
1438
1438
  );
1439
1439
  }
@@ -1456,13 +1456,13 @@ class WorkforceManagementApi {
1456
1456
  return this.apiClient.callApi(
1457
1457
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/adherence',
1458
1458
  'GET',
1459
- { 'managementUnitId': managementUnitId },
1460
- { 'forceDownloadService': opts['forceDownloadService'] },
1461
- { },
1462
- { },
1459
+ { 'managementUnitId': managementUnitId },
1460
+ { 'forceDownloadService': opts['forceDownloadService'] },
1461
+ { },
1462
+ { },
1463
1463
  null,
1464
1464
  ['PureCloud OAuth'],
1465
- ['application/json'],
1465
+ ['application/json'],
1466
1466
  ['application/json']
1467
1467
  );
1468
1468
  }
@@ -1470,7 +1470,7 @@ class WorkforceManagementApi {
1470
1470
  /**
1471
1471
  * Get data for agent in the management unit
1472
1472
  *
1473
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1473
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1474
1474
  * @param {String} agentId The agent id
1475
1475
  * @param {Object} opts Optional parameters
1476
1476
  * @param {Boolean} opts.excludeCapabilities Excludes all capabilities of the agent such as queues, languages, and skills
@@ -1490,13 +1490,13 @@ class WorkforceManagementApi {
1490
1490
  return this.apiClient.callApi(
1491
1491
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}',
1492
1492
  'GET',
1493
- { 'managementUnitId': managementUnitId,'agentId': agentId },
1494
- { 'excludeCapabilities': opts['excludeCapabilities'] },
1495
- { },
1496
- { },
1493
+ { 'managementUnitId': managementUnitId,'agentId': agentId },
1494
+ { 'excludeCapabilities': opts['excludeCapabilities'] },
1495
+ { },
1496
+ { },
1497
1497
  null,
1498
1498
  ['PureCloud OAuth'],
1499
- ['application/json'],
1499
+ ['application/json'],
1500
1500
  ['application/json']
1501
1501
  );
1502
1502
  }
@@ -1504,7 +1504,7 @@ class WorkforceManagementApi {
1504
1504
  /**
1505
1505
  * Gets all the shift trades for a given agent
1506
1506
  *
1507
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1507
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1508
1508
  * @param {String} agentId The agent id
1509
1509
  */
1510
1510
  getWorkforcemanagementManagementunitAgentShifttrades(managementUnitId, agentId) {
@@ -1520,13 +1520,13 @@ class WorkforceManagementApi {
1520
1520
  return this.apiClient.callApi(
1521
1521
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}/shifttrades',
1522
1522
  'GET',
1523
- { 'managementUnitId': managementUnitId,'agentId': agentId },
1524
- { },
1525
- { },
1526
- { },
1523
+ { 'managementUnitId': managementUnitId,'agentId': agentId },
1524
+ { },
1525
+ { },
1526
+ { },
1527
1527
  null,
1528
1528
  ['PureCloud OAuth'],
1529
- ['application/json'],
1529
+ ['application/json'],
1530
1530
  ['application/json']
1531
1531
  );
1532
1532
  }
@@ -1534,7 +1534,7 @@ class WorkforceManagementApi {
1534
1534
  /**
1535
1535
  * Gets a summary of all shift trades in the matched state
1536
1536
  *
1537
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1537
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1538
1538
  */
1539
1539
  getWorkforcemanagementManagementunitShifttradesMatched(managementUnitId) {
1540
1540
  // verify the required parameter 'managementUnitId' is set
@@ -1545,13 +1545,13 @@ class WorkforceManagementApi {
1545
1545
  return this.apiClient.callApi(
1546
1546
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/shifttrades/matched',
1547
1547
  'GET',
1548
- { 'managementUnitId': managementUnitId },
1549
- { },
1550
- { },
1551
- { },
1548
+ { 'managementUnitId': managementUnitId },
1549
+ { },
1550
+ { },
1551
+ { },
1552
1552
  null,
1553
1553
  ['PureCloud OAuth'],
1554
- ['application/json'],
1554
+ ['application/json'],
1555
1555
  ['application/json']
1556
1556
  );
1557
1557
  }
@@ -1559,7 +1559,7 @@ class WorkforceManagementApi {
1559
1559
  /**
1560
1560
  * Gets list of users available for whom you can send direct shift trade requests
1561
1561
  *
1562
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1562
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1563
1563
  */
1564
1564
  getWorkforcemanagementManagementunitShifttradesUsers(managementUnitId) {
1565
1565
  // verify the required parameter 'managementUnitId' is set
@@ -1570,13 +1570,13 @@ class WorkforceManagementApi {
1570
1570
  return this.apiClient.callApi(
1571
1571
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/shifttrades/users',
1572
1572
  'GET',
1573
- { 'managementUnitId': managementUnitId },
1574
- { },
1575
- { },
1576
- { },
1573
+ { 'managementUnitId': managementUnitId },
1574
+ { },
1575
+ { },
1576
+ { },
1577
1577
  null,
1578
1578
  ['PureCloud OAuth'],
1579
- ['application/json'],
1579
+ ['application/json'],
1580
1580
  ['application/json']
1581
1581
  );
1582
1582
  }
@@ -1600,13 +1600,13 @@ class WorkforceManagementApi {
1600
1600
  return this.apiClient.callApi(
1601
1601
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
1602
1602
  'GET',
1603
- { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
1604
- { },
1605
- { },
1606
- { },
1603
+ { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
1604
+ { },
1605
+ { },
1606
+ { },
1607
1607
  null,
1608
1608
  ['PureCloud OAuth'],
1609
- ['application/json'],
1609
+ ['application/json'],
1610
1610
  ['application/json']
1611
1611
  );
1612
1612
  }
@@ -1625,13 +1625,13 @@ class WorkforceManagementApi {
1625
1625
  return this.apiClient.callApi(
1626
1626
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
1627
1627
  'GET',
1628
- { 'managementUnitId': managementUnitId },
1629
- { },
1630
- { },
1631
- { },
1628
+ { 'managementUnitId': managementUnitId },
1629
+ { },
1630
+ { },
1631
+ { },
1632
1632
  null,
1633
1633
  ['PureCloud OAuth'],
1634
- ['application/json'],
1634
+ ['application/json'],
1635
1635
  ['application/json']
1636
1636
  );
1637
1637
  }
@@ -1655,13 +1655,13 @@ class WorkforceManagementApi {
1655
1655
  return this.apiClient.callApi(
1656
1656
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
1657
1657
  'GET',
1658
- { 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
1659
- { },
1660
- { },
1661
- { },
1658
+ { 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
1659
+ { },
1660
+ { },
1661
+ { },
1662
1662
  null,
1663
1663
  ['PureCloud OAuth'],
1664
- ['application/json'],
1664
+ ['application/json'],
1665
1665
  ['application/json']
1666
1666
  );
1667
1667
  }
@@ -1680,13 +1680,13 @@ class WorkforceManagementApi {
1680
1680
  return this.apiClient.callApi(
1681
1681
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
1682
1682
  'GET',
1683
- { 'managementUnitId': managementUnitId },
1684
- { },
1685
- { },
1686
- { },
1683
+ { 'managementUnitId': managementUnitId },
1684
+ { },
1685
+ { },
1686
+ { },
1687
1687
  null,
1688
1688
  ['PureCloud OAuth'],
1689
- ['application/json'],
1689
+ ['application/json'],
1690
1690
  ['application/json']
1691
1691
  );
1692
1692
  }
@@ -1694,7 +1694,7 @@ class WorkforceManagementApi {
1694
1694
  /**
1695
1695
  * Get a time off request
1696
1696
  *
1697
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1697
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1698
1698
  * @param {String} userId The userId to whom the Time Off Request applies.
1699
1699
  * @param {String} timeOffRequestId Time Off Request Id
1700
1700
  */
@@ -1715,13 +1715,13 @@ class WorkforceManagementApi {
1715
1715
  return this.apiClient.callApi(
1716
1716
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}',
1717
1717
  'GET',
1718
- { 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
1719
- { },
1720
- { },
1721
- { },
1718
+ { 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
1719
+ { },
1720
+ { },
1721
+ { },
1722
1722
  null,
1723
1723
  ['PureCloud OAuth'],
1724
- ['application/json'],
1724
+ ['application/json'],
1725
1725
  ['application/json']
1726
1726
  );
1727
1727
  }
@@ -1750,13 +1750,13 @@ class WorkforceManagementApi {
1750
1750
  return this.apiClient.callApi(
1751
1751
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeofflimits',
1752
1752
  'GET',
1753
- { 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
1754
- { },
1755
- { },
1756
- { },
1753
+ { 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
1754
+ { },
1755
+ { },
1756
+ { },
1757
1757
  null,
1758
1758
  ['PureCloud OAuth'],
1759
- ['application/json'],
1759
+ ['application/json'],
1760
1760
  ['application/json']
1761
1761
  );
1762
1762
  }
@@ -1764,7 +1764,7 @@ class WorkforceManagementApi {
1764
1764
  /**
1765
1765
  * Get a list of time off requests for a given user
1766
1766
  *
1767
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1767
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1768
1768
  * @param {String} userId The userId to whom the Time Off Request applies.
1769
1769
  * @param {Object} opts Optional parameters
1770
1770
  * @param {Boolean} opts.recentlyReviewed Limit results to requests that have been reviewed within the preceding 30 days (default to false)
@@ -1784,13 +1784,13 @@ class WorkforceManagementApi {
1784
1784
  return this.apiClient.callApi(
1785
1785
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests',
1786
1786
  'GET',
1787
- { 'managementUnitId': managementUnitId,'userId': userId },
1788
- { 'recentlyReviewed': opts['recentlyReviewed'] },
1789
- { },
1790
- { },
1787
+ { 'managementUnitId': managementUnitId,'userId': userId },
1788
+ { 'recentlyReviewed': opts['recentlyReviewed'] },
1789
+ { },
1790
+ { },
1791
1791
  null,
1792
1792
  ['PureCloud OAuth'],
1793
- ['application/json'],
1793
+ ['application/json'],
1794
1794
  ['application/json']
1795
1795
  );
1796
1796
  }
@@ -1798,7 +1798,7 @@ class WorkforceManagementApi {
1798
1798
  /**
1799
1799
  * Get users in the management unit
1800
1800
  *
1801
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1801
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1802
1802
  */
1803
1803
  getWorkforcemanagementManagementunitUsers(managementUnitId) {
1804
1804
  // verify the required parameter 'managementUnitId' is set
@@ -1809,13 +1809,13 @@ class WorkforceManagementApi {
1809
1809
  return this.apiClient.callApi(
1810
1810
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/users',
1811
1811
  'GET',
1812
- { 'managementUnitId': managementUnitId },
1813
- { },
1814
- { },
1815
- { },
1812
+ { 'managementUnitId': managementUnitId },
1813
+ { },
1814
+ { },
1815
+ { },
1816
1816
  null,
1817
1817
  ['PureCloud OAuth'],
1818
- ['application/json'],
1818
+ ['application/json'],
1819
1819
  ['application/json']
1820
1820
  );
1821
1821
  }
@@ -1823,7 +1823,7 @@ class WorkforceManagementApi {
1823
1823
  /**
1824
1824
  * Deprecated. Use the equivalent business unit resource instead. Get a week schedule
1825
1825
  *
1826
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1826
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1827
1827
  * @param {String} weekId First day of schedule week in yyyy-MM-dd format.
1828
1828
  * @param {String} scheduleId The ID of the schedule to fetch
1829
1829
  * @param {Object} opts Optional parameters
@@ -1849,13 +1849,13 @@ class WorkforceManagementApi {
1849
1849
  return this.apiClient.callApi(
1850
1850
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}',
1851
1851
  'GET',
1852
- { 'managementUnitId': managementUnitId,'weekId': weekId,'scheduleId': scheduleId },
1853
- { 'expand': opts['expand'],'forceDownloadService': opts['forceDownloadService'] },
1854
- { },
1855
- { },
1852
+ { 'managementUnitId': managementUnitId,'weekId': weekId,'scheduleId': scheduleId },
1853
+ { 'expand': opts['expand'],'forceDownloadService': opts['forceDownloadService'] },
1854
+ { },
1855
+ { },
1856
1856
  null,
1857
1857
  ['PureCloud OAuth'],
1858
- ['application/json'],
1858
+ ['application/json'],
1859
1859
  ['application/json']
1860
1860
  );
1861
1861
  }
@@ -1863,7 +1863,7 @@ class WorkforceManagementApi {
1863
1863
  /**
1864
1864
  * Deprecated. Use the equivalent business unit resource instead. Get the list of schedules in a week in management unit
1865
1865
  *
1866
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1866
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1867
1867
  * @param {String} weekId First day of schedule week in yyyy-MM-dd format.
1868
1868
  * @param {Object} opts Optional parameters
1869
1869
  * @param {Boolean} opts.includeOnlyPublished Return only published schedules
@@ -1885,13 +1885,13 @@ class WorkforceManagementApi {
1885
1885
  return this.apiClient.callApi(
1886
1886
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules',
1887
1887
  'GET',
1888
- { 'managementUnitId': managementUnitId,'weekId': weekId },
1889
- { 'includeOnlyPublished': opts['includeOnlyPublished'],'earliestWeekDate': opts['earliestWeekDate'],'latestWeekDate': opts['latestWeekDate'] },
1890
- { },
1891
- { },
1888
+ { 'managementUnitId': managementUnitId,'weekId': weekId },
1889
+ { 'includeOnlyPublished': opts['includeOnlyPublished'],'earliestWeekDate': opts['earliestWeekDate'],'latestWeekDate': opts['latestWeekDate'] },
1890
+ { },
1891
+ { },
1892
1892
  null,
1893
1893
  ['PureCloud OAuth'],
1894
- ['application/json'],
1894
+ ['application/json'],
1895
1895
  ['application/json']
1896
1896
  );
1897
1897
  }
@@ -1899,7 +1899,7 @@ class WorkforceManagementApi {
1899
1899
  /**
1900
1900
  * Gets all the shift trades for a given week
1901
1901
  *
1902
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1902
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1903
1903
  * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
1904
1904
  * @param {Object} opts Optional parameters
1905
1905
  * @param {Boolean} opts.evaluateMatches Whether to evaluate the matches for violations (default to true)
@@ -1919,13 +1919,13 @@ class WorkforceManagementApi {
1919
1919
  return this.apiClient.callApi(
1920
1920
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades',
1921
1921
  'GET',
1922
- { 'managementUnitId': managementUnitId,'weekDateId': weekDateId },
1923
- { 'evaluateMatches': opts['evaluateMatches'] },
1924
- { },
1925
- { },
1922
+ { 'managementUnitId': managementUnitId,'weekDateId': weekDateId },
1923
+ { 'evaluateMatches': opts['evaluateMatches'] },
1924
+ { },
1925
+ { },
1926
1926
  null,
1927
1927
  ['PureCloud OAuth'],
1928
- ['application/json'],
1928
+ ['application/json'],
1929
1929
  ['application/json']
1930
1930
  );
1931
1931
  }
@@ -1933,7 +1933,7 @@ class WorkforceManagementApi {
1933
1933
  /**
1934
1934
  * Get a work plan
1935
1935
  *
1936
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1936
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1937
1937
  * @param {String} workPlanId The ID of the work plan to fetch
1938
1938
  * @param {Object} opts Optional parameters
1939
1939
  * @param {Array.<String>} opts.includeOnly limit response to the specified fields
@@ -1953,13 +1953,13 @@ class WorkforceManagementApi {
1953
1953
  return this.apiClient.callApi(
1954
1954
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}',
1955
1955
  'GET',
1956
- { 'managementUnitId': managementUnitId,'workPlanId': workPlanId },
1957
- { 'includeOnly': this.apiClient.buildCollectionParam(opts['includeOnly'], 'multi') },
1958
- { },
1959
- { },
1956
+ { 'managementUnitId': managementUnitId,'workPlanId': workPlanId },
1957
+ { 'includeOnly': this.apiClient.buildCollectionParam(opts['includeOnly'], 'multi') },
1958
+ { },
1959
+ { },
1960
1960
  null,
1961
1961
  ['PureCloud OAuth'],
1962
- ['application/json'],
1962
+ ['application/json'],
1963
1963
  ['application/json']
1964
1964
  );
1965
1965
  }
@@ -1967,7 +1967,7 @@ class WorkforceManagementApi {
1967
1967
  /**
1968
1968
  * Get a work plan rotation
1969
1969
  *
1970
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
1970
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
1971
1971
  * @param {String} workPlanRotationId The ID of the work plan rotation to fetch
1972
1972
  */
1973
1973
  getWorkforcemanagementManagementunitWorkplanrotation(managementUnitId, workPlanRotationId) {
@@ -1983,13 +1983,13 @@ class WorkforceManagementApi {
1983
1983
  return this.apiClient.callApi(
1984
1984
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}',
1985
1985
  'GET',
1986
- { 'managementUnitId': managementUnitId,'workPlanRotationId': workPlanRotationId },
1987
- { },
1988
- { },
1989
- { },
1986
+ { 'managementUnitId': managementUnitId,'workPlanRotationId': workPlanRotationId },
1987
+ { },
1988
+ { },
1989
+ { },
1990
1990
  null,
1991
1991
  ['PureCloud OAuth'],
1992
- ['application/json'],
1992
+ ['application/json'],
1993
1993
  ['application/json']
1994
1994
  );
1995
1995
  }
@@ -1997,7 +1997,7 @@ class WorkforceManagementApi {
1997
1997
  /**
1998
1998
  * Get work plan rotations
1999
1999
  *
2000
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
2000
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
2001
2001
  * @param {Object} opts Optional parameters
2002
2002
  * @param {Array.<String>} opts.expand
2003
2003
  */
@@ -2012,21 +2012,21 @@ class WorkforceManagementApi {
2012
2012
  return this.apiClient.callApi(
2013
2013
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations',
2014
2014
  'GET',
2015
- { 'managementUnitId': managementUnitId },
2016
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
2017
- { },
2018
- { },
2015
+ { 'managementUnitId': managementUnitId },
2016
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
2017
+ { },
2018
+ { },
2019
2019
  null,
2020
2020
  ['PureCloud OAuth'],
2021
- ['application/json'],
2021
+ ['application/json'],
2022
2022
  ['application/json']
2023
2023
  );
2024
2024
  }
2025
2025
 
2026
2026
  /**
2027
2027
  * Get work plans
2028
- * \&quot;expand=details\&quot; is deprecated
2029
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
2028
+ * "expand=details" is deprecated
2029
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
2030
2030
  * @param {Object} opts Optional parameters
2031
2031
  * @param {Array.<String>} opts.expand
2032
2032
  */
@@ -2041,13 +2041,13 @@ class WorkforceManagementApi {
2041
2041
  return this.apiClient.callApi(
2042
2042
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans',
2043
2043
  'GET',
2044
- { 'managementUnitId': managementUnitId },
2045
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
2046
- { },
2047
- { },
2044
+ { 'managementUnitId': managementUnitId },
2045
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
2046
+ { },
2047
+ { },
2048
2048
  null,
2049
2049
  ['PureCloud OAuth'],
2050
- ['application/json'],
2050
+ ['application/json'],
2051
2051
  ['application/json']
2052
2052
  );
2053
2053
  }
@@ -2069,13 +2069,13 @@ class WorkforceManagementApi {
2069
2069
  return this.apiClient.callApi(
2070
2070
  '/api/v2/workforcemanagement/managementunits',
2071
2071
  'GET',
2072
- { },
2073
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'expand': opts['expand'],'feature': opts['feature'],'divisionId': opts['divisionId'] },
2074
- { },
2075
- { },
2072
+ { },
2073
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'expand': opts['expand'],'feature': opts['feature'],'divisionId': opts['divisionId'] },
2074
+ { },
2075
+ { },
2076
2076
  null,
2077
2077
  ['PureCloud OAuth'],
2078
- ['application/json'],
2078
+ ['application/json'],
2079
2079
  ['application/json']
2080
2080
  );
2081
2081
  }
@@ -2093,13 +2093,13 @@ class WorkforceManagementApi {
2093
2093
  return this.apiClient.callApi(
2094
2094
  '/api/v2/workforcemanagement/managementunits/divisionviews',
2095
2095
  'GET',
2096
- { },
2097
- { 'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
2098
- { },
2099
- { },
2096
+ { },
2097
+ { 'divisionId': this.apiClient.buildCollectionParam(opts['divisionId'], 'multi') },
2098
+ { },
2099
+ { },
2100
2100
  null,
2101
2101
  ['PureCloud OAuth'],
2102
- ['application/json'],
2102
+ ['application/json'],
2103
2103
  ['application/json']
2104
2104
  );
2105
2105
  }
@@ -2113,13 +2113,13 @@ class WorkforceManagementApi {
2113
2113
  return this.apiClient.callApi(
2114
2114
  '/api/v2/workforcemanagement/notifications',
2115
2115
  'GET',
2116
- { },
2117
- { },
2118
- { },
2119
- { },
2116
+ { },
2117
+ { },
2118
+ { },
2119
+ { },
2120
2120
  null,
2121
2121
  ['PureCloud OAuth'],
2122
- ['application/json'],
2122
+ ['application/json'],
2123
2123
  ['application/json']
2124
2124
  );
2125
2125
  }
@@ -2138,13 +2138,13 @@ class WorkforceManagementApi {
2138
2138
  return this.apiClient.callApi(
2139
2139
  '/api/v2/workforcemanagement/schedulingjobs/{jobId}',
2140
2140
  'GET',
2141
- { 'jobId': jobId },
2142
- { },
2143
- { },
2144
- { },
2141
+ { 'jobId': jobId },
2142
+ { },
2143
+ { },
2144
+ { },
2145
2145
  null,
2146
2146
  ['PureCloud OAuth'],
2147
- ['application/json'],
2147
+ ['application/json'],
2148
2148
  ['application/json']
2149
2149
  );
2150
2150
  }
@@ -2158,13 +2158,13 @@ class WorkforceManagementApi {
2158
2158
  return this.apiClient.callApi(
2159
2159
  '/api/v2/workforcemanagement/shifttrades',
2160
2160
  'GET',
2161
- { },
2162
- { },
2163
- { },
2164
- { },
2161
+ { },
2162
+ { },
2163
+ { },
2164
+ { },
2165
2165
  null,
2166
2166
  ['PureCloud OAuth'],
2167
- ['application/json'],
2167
+ ['application/json'],
2168
2168
  ['application/json']
2169
2169
  );
2170
2170
  }
@@ -2183,13 +2183,13 @@ class WorkforceManagementApi {
2183
2183
  return this.apiClient.callApi(
2184
2184
  '/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}',
2185
2185
  'GET',
2186
- { 'timeOffRequestId': timeOffRequestId },
2187
- { },
2188
- { },
2189
- { },
2186
+ { 'timeOffRequestId': timeOffRequestId },
2187
+ { },
2188
+ { },
2189
+ { },
2190
2190
  null,
2191
2191
  ['PureCloud OAuth'],
2192
- ['application/json'],
2192
+ ['application/json'],
2193
2193
  ['application/json']
2194
2194
  );
2195
2195
  }
@@ -2208,13 +2208,13 @@ class WorkforceManagementApi {
2208
2208
  return this.apiClient.callApi(
2209
2209
  '/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}/waitlistpositions',
2210
2210
  'GET',
2211
- { 'timeOffRequestId': timeOffRequestId },
2212
- { },
2213
- { },
2214
- { },
2211
+ { 'timeOffRequestId': timeOffRequestId },
2212
+ { },
2213
+ { },
2214
+ { },
2215
2215
  null,
2216
2216
  ['PureCloud OAuth'],
2217
- ['application/json'],
2217
+ ['application/json'],
2218
2218
  ['application/json']
2219
2219
  );
2220
2220
  }
@@ -2232,13 +2232,13 @@ class WorkforceManagementApi {
2232
2232
  return this.apiClient.callApi(
2233
2233
  '/api/v2/workforcemanagement/timeoffrequests',
2234
2234
  'GET',
2235
- { },
2236
- { 'recentlyReviewed': opts['recentlyReviewed'] },
2237
- { },
2238
- { },
2235
+ { },
2236
+ { 'recentlyReviewed': opts['recentlyReviewed'] },
2237
+ { },
2238
+ { },
2239
2239
  null,
2240
2240
  ['PureCloud OAuth'],
2241
- ['application/json'],
2241
+ ['application/json'],
2242
2242
  ['application/json']
2243
2243
  );
2244
2244
  }
@@ -2246,7 +2246,7 @@ class WorkforceManagementApi {
2246
2246
  /**
2247
2247
  * Update business unit
2248
2248
  *
2249
- * @param {String} businessUnitId The ID of the business unit, or &#39;mine&#39; for the business unit of the logged-in user.
2249
+ * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
2250
2250
  * @param {Object} opts Optional parameters
2251
2251
  * @param {Object} opts.body body
2252
2252
  */
@@ -2261,13 +2261,13 @@ class WorkforceManagementApi {
2261
2261
  return this.apiClient.callApi(
2262
2262
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}',
2263
2263
  'PATCH',
2264
- { 'businessUnitId': businessUnitId },
2265
- { },
2266
- { },
2267
- { },
2264
+ { 'businessUnitId': businessUnitId },
2265
+ { },
2266
+ { },
2267
+ { },
2268
2268
  opts['body'],
2269
2269
  ['PureCloud OAuth'],
2270
- ['application/json'],
2270
+ ['application/json'],
2271
2271
  ['application/json']
2272
2272
  );
2273
2273
  }
@@ -2275,7 +2275,7 @@ class WorkforceManagementApi {
2275
2275
  /**
2276
2276
  * Update an activity code
2277
2277
  *
2278
- * @param {String} businessUnitId The ID of the business unit, or &#39;mine&#39; for the business unit of the logged-in user.
2278
+ * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
2279
2279
  * @param {String} activityCodeId The ID of the activity code to update
2280
2280
  * @param {Object} opts Optional parameters
2281
2281
  * @param {Object} opts.body body
@@ -2295,13 +2295,13 @@ class WorkforceManagementApi {
2295
2295
  return this.apiClient.callApi(
2296
2296
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}',
2297
2297
  'PATCH',
2298
- { 'businessUnitId': businessUnitId,'activityCodeId': activityCodeId },
2299
- { },
2300
- { },
2301
- { },
2298
+ { 'businessUnitId': businessUnitId,'activityCodeId': activityCodeId },
2299
+ { },
2300
+ { },
2301
+ { },
2302
2302
  opts['body'],
2303
2303
  ['PureCloud OAuth'],
2304
- ['application/json'],
2304
+ ['application/json'],
2305
2305
  ['application/json']
2306
2306
  );
2307
2307
  }
@@ -2329,13 +2329,13 @@ class WorkforceManagementApi {
2329
2329
  return this.apiClient.callApi(
2330
2330
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}',
2331
2331
  'PATCH',
2332
- { 'businessUnitId': businessUnitId,'planningGroupId': planningGroupId },
2333
- { },
2334
- { },
2335
- { },
2332
+ { 'businessUnitId': businessUnitId,'planningGroupId': planningGroupId },
2333
+ { },
2334
+ { },
2335
+ { },
2336
2336
  opts['body'],
2337
2337
  ['PureCloud OAuth'],
2338
- ['application/json'],
2338
+ ['application/json'],
2339
2339
  ['application/json']
2340
2340
  );
2341
2341
  }
@@ -2363,13 +2363,13 @@ class WorkforceManagementApi {
2363
2363
  return this.apiClient.callApi(
2364
2364
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}',
2365
2365
  'PATCH',
2366
- { 'businessUnitId': businessUnitId,'runId': runId },
2367
- { },
2368
- { },
2369
- { },
2366
+ { 'businessUnitId': businessUnitId,'runId': runId },
2367
+ { },
2368
+ { },
2369
+ { },
2370
2370
  opts['body'],
2371
2371
  ['PureCloud OAuth'],
2372
- ['application/json'],
2372
+ ['application/json'],
2373
2373
  ['application/json']
2374
2374
  );
2375
2375
  }
@@ -2397,13 +2397,13 @@ class WorkforceManagementApi {
2397
2397
  return this.apiClient.callApi(
2398
2398
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}',
2399
2399
  'PATCH',
2400
- { 'businessUnitId': businessUnitId,'serviceGoalTemplateId': serviceGoalTemplateId },
2401
- { },
2402
- { },
2403
- { },
2400
+ { 'businessUnitId': businessUnitId,'serviceGoalTemplateId': serviceGoalTemplateId },
2401
+ { },
2402
+ { },
2403
+ { },
2404
2404
  opts['body'],
2405
2405
  ['PureCloud OAuth'],
2406
- ['application/json'],
2406
+ ['application/json'],
2407
2407
  ['application/json']
2408
2408
  );
2409
2409
  }
@@ -2411,7 +2411,7 @@ class WorkforceManagementApi {
2411
2411
  /**
2412
2412
  * Update the requested management unit
2413
2413
  *
2414
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
2414
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
2415
2415
  * @param {Object} opts Optional parameters
2416
2416
  * @param {Object} opts.body body
2417
2417
  */
@@ -2426,13 +2426,13 @@ class WorkforceManagementApi {
2426
2426
  return this.apiClient.callApi(
2427
2427
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}',
2428
2428
  'PATCH',
2429
- { 'managementUnitId': managementUnitId },
2430
- { },
2431
- { },
2432
- { },
2429
+ { 'managementUnitId': managementUnitId },
2430
+ { },
2431
+ { },
2432
+ { },
2433
2433
  opts['body'],
2434
2434
  ['PureCloud OAuth'],
2435
- ['application/json'],
2435
+ ['application/json'],
2436
2436
  ['application/json']
2437
2437
  );
2438
2438
  }
@@ -2460,13 +2460,13 @@ class WorkforceManagementApi {
2460
2460
  return this.apiClient.callApi(
2461
2461
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
2462
2462
  'PATCH',
2463
- { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
2464
- { },
2465
- { },
2466
- { },
2463
+ { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
2464
+ { },
2465
+ { },
2466
+ { },
2467
2467
  opts['body'],
2468
2468
  ['PureCloud OAuth'],
2469
- ['application/json'],
2469
+ ['application/json'],
2470
2470
  ['application/json']
2471
2471
  );
2472
2472
  }
@@ -2494,13 +2494,13 @@ class WorkforceManagementApi {
2494
2494
  return this.apiClient.callApi(
2495
2495
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
2496
2496
  'PATCH',
2497
- { 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
2498
- { },
2499
- { },
2500
- { },
2497
+ { 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
2498
+ { },
2499
+ { },
2500
+ { },
2501
2501
  opts['body'],
2502
2502
  ['PureCloud OAuth'],
2503
- ['application/json'],
2503
+ ['application/json'],
2504
2504
  ['application/json']
2505
2505
  );
2506
2506
  }
@@ -2508,7 +2508,7 @@ class WorkforceManagementApi {
2508
2508
  /**
2509
2509
  * Update a time off request
2510
2510
  *
2511
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
2511
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
2512
2512
  * @param {String} userId The id of the user the requested time off request belongs to
2513
2513
  * @param {String} timeOffRequestId The id of the time off request to update
2514
2514
  * @param {Object} opts Optional parameters
@@ -2533,13 +2533,13 @@ class WorkforceManagementApi {
2533
2533
  return this.apiClient.callApi(
2534
2534
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}',
2535
2535
  'PATCH',
2536
- { 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
2537
- { },
2538
- { },
2539
- { },
2536
+ { 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
2537
+ { },
2538
+ { },
2539
+ { },
2540
2540
  opts['body'],
2541
2541
  ['PureCloud OAuth'],
2542
- ['application/json'],
2542
+ ['application/json'],
2543
2543
  ['application/json']
2544
2544
  );
2545
2545
  }
@@ -2547,12 +2547,12 @@ class WorkforceManagementApi {
2547
2547
  /**
2548
2548
  * Updates a shift trade. This route can only be called by the initiating agent
2549
2549
  *
2550
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
2550
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
2551
2551
  * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
2552
- * @param {Object} body body
2553
2552
  * @param {String} tradeId The ID of the shift trade to update
2553
+ * @param {Object} body body
2554
2554
  */
2555
- patchWorkforcemanagementManagementunitWeekShifttrade(managementUnitId, weekDateId, body, tradeId) {
2555
+ patchWorkforcemanagementManagementunitWeekShifttrade(managementUnitId, weekDateId, tradeId, body) {
2556
2556
  // verify the required parameter 'managementUnitId' is set
2557
2557
  if (managementUnitId === undefined || managementUnitId === null) {
2558
2558
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';
@@ -2561,25 +2561,25 @@ class WorkforceManagementApi {
2561
2561
  if (weekDateId === undefined || weekDateId === null) {
2562
2562
  throw 'Missing the required parameter "weekDateId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';
2563
2563
  }
2564
- // verify the required parameter 'body' is set
2565
- if (body === undefined || body === null) {
2566
- throw 'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWeekShifttrade';
2567
- }
2568
2564
  // verify the required parameter 'tradeId' is set
2569
2565
  if (tradeId === undefined || tradeId === null) {
2570
2566
  throw 'Missing the required parameter "tradeId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';
2571
2567
  }
2568
+ // verify the required parameter 'body' is set
2569
+ if (body === undefined || body === null) {
2570
+ throw 'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWeekShifttrade';
2571
+ }
2572
2572
 
2573
2573
  return this.apiClient.callApi(
2574
2574
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/{tradeId}',
2575
2575
  'PATCH',
2576
- { 'managementUnitId': managementUnitId,'weekDateId': weekDateId,'tradeId': tradeId },
2577
- { },
2578
- { },
2579
- { },
2576
+ { 'managementUnitId': managementUnitId,'weekDateId': weekDateId,'tradeId': tradeId },
2577
+ { },
2578
+ { },
2579
+ { },
2580
2580
  body,
2581
2581
  ['PureCloud OAuth'],
2582
- ['application/json'],
2582
+ ['application/json'],
2583
2583
  ['application/json']
2584
2584
  );
2585
2585
  }
@@ -2587,11 +2587,11 @@ class WorkforceManagementApi {
2587
2587
  /**
2588
2588
  * Update a work plan
2589
2589
  *
2590
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
2590
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
2591
2591
  * @param {String} workPlanId The ID of the work plan to update
2592
2592
  * @param {Object} opts Optional parameters
2593
- * @param {Object} opts.body body
2594
2593
  * @param {Object} opts.validationMode Allows to update work plan even if validation result is invalid
2594
+ * @param {Object} opts.body body
2595
2595
  */
2596
2596
  patchWorkforcemanagementManagementunitWorkplan(managementUnitId, workPlanId, opts) {
2597
2597
  opts = opts || {};
@@ -2608,13 +2608,13 @@ class WorkforceManagementApi {
2608
2608
  return this.apiClient.callApi(
2609
2609
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}',
2610
2610
  'PATCH',
2611
- { 'managementUnitId': managementUnitId,'workPlanId': workPlanId },
2612
- { 'validationMode': opts['validationMode'] },
2613
- { },
2614
- { },
2611
+ { 'managementUnitId': managementUnitId,'workPlanId': workPlanId },
2612
+ { 'validationMode': opts['validationMode'] },
2613
+ { },
2614
+ { },
2615
2615
  opts['body'],
2616
2616
  ['PureCloud OAuth'],
2617
- ['application/json'],
2617
+ ['application/json'],
2618
2618
  ['application/json']
2619
2619
  );
2620
2620
  }
@@ -2622,7 +2622,7 @@ class WorkforceManagementApi {
2622
2622
  /**
2623
2623
  * Update a work plan rotation
2624
2624
  *
2625
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
2625
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
2626
2626
  * @param {String} workPlanRotationId The ID of the work plan rotation to update
2627
2627
  * @param {Object} opts Optional parameters
2628
2628
  * @param {Object} opts.body body
@@ -2642,13 +2642,13 @@ class WorkforceManagementApi {
2642
2642
  return this.apiClient.callApi(
2643
2643
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}',
2644
2644
  'PATCH',
2645
- { 'managementUnitId': managementUnitId,'workPlanRotationId': workPlanRotationId },
2646
- { },
2647
- { },
2648
- { },
2645
+ { 'managementUnitId': managementUnitId,'workPlanRotationId': workPlanRotationId },
2646
+ { },
2647
+ { },
2648
+ { },
2649
2649
  opts['body'],
2650
2650
  ['PureCloud OAuth'],
2651
- ['application/json'],
2651
+ ['application/json'],
2652
2652
  ['application/json']
2653
2653
  );
2654
2654
  }
@@ -2671,13 +2671,13 @@ class WorkforceManagementApi {
2671
2671
  return this.apiClient.callApi(
2672
2672
  '/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}',
2673
2673
  'PATCH',
2674
- { 'timeOffRequestId': timeOffRequestId },
2675
- { },
2676
- { },
2677
- { },
2674
+ { 'timeOffRequestId': timeOffRequestId },
2675
+ { },
2676
+ { },
2677
+ { },
2678
2678
  opts['body'],
2679
2679
  ['PureCloud OAuth'],
2680
- ['application/json'],
2680
+ ['application/json'],
2681
2681
  ['application/json']
2682
2682
  );
2683
2683
  }
@@ -2695,13 +2695,13 @@ class WorkforceManagementApi {
2695
2695
  return this.apiClient.callApi(
2696
2696
  '/api/v2/workforcemanagement/adherence/historical',
2697
2697
  'POST',
2698
- { },
2699
- { },
2700
- { },
2701
- { },
2698
+ { },
2699
+ { },
2700
+ { },
2701
+ { },
2702
2702
  opts['body'],
2703
2703
  ['PureCloud OAuth'],
2704
- ['application/json'],
2704
+ ['application/json'],
2705
2705
  ['application/json']
2706
2706
  );
2707
2707
  }
@@ -2719,13 +2719,13 @@ class WorkforceManagementApi {
2719
2719
  return this.apiClient.callApi(
2720
2720
  '/api/v2/workforcemanagement/agentschedules/mine',
2721
2721
  'POST',
2722
- { },
2723
- { },
2724
- { },
2725
- { },
2722
+ { },
2723
+ { },
2724
+ { },
2725
+ { },
2726
2726
  opts['body'],
2727
2727
  ['PureCloud OAuth'],
2728
- ['application/json'],
2728
+ ['application/json'],
2729
2729
  ['application/json']
2730
2730
  );
2731
2731
  }
@@ -2733,7 +2733,7 @@ class WorkforceManagementApi {
2733
2733
  /**
2734
2734
  * Create a new activity code
2735
2735
  *
2736
- * @param {String} businessUnitId The ID of the business unit, or &#39;mine&#39; for the business unit of the logged-in user.
2736
+ * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
2737
2737
  * @param {Object} opts Optional parameters
2738
2738
  * @param {Object} opts.body body
2739
2739
  */
@@ -2748,13 +2748,13 @@ class WorkforceManagementApi {
2748
2748
  return this.apiClient.callApi(
2749
2749
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes',
2750
2750
  'POST',
2751
- { 'businessUnitId': businessUnitId },
2752
- { },
2753
- { },
2754
- { },
2751
+ { 'businessUnitId': businessUnitId },
2752
+ { },
2753
+ { },
2754
+ { },
2755
2755
  opts['body'],
2756
2756
  ['PureCloud OAuth'],
2757
- ['application/json'],
2757
+ ['application/json'],
2758
2758
  ['application/json']
2759
2759
  );
2760
2760
  }
@@ -2764,9 +2764,9 @@ class WorkforceManagementApi {
2764
2764
  *
2765
2765
  * @param {String} businessUnitId The ID of the business unit
2766
2766
  * @param {Object} opts Optional parameters
2767
- * @param {Object} opts.body body
2768
2767
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
2769
2768
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
2769
+ * @param {Object} opts.body body
2770
2770
  */
2771
2771
  postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId, opts) {
2772
2772
  opts = opts || {};
@@ -2779,13 +2779,13 @@ class WorkforceManagementApi {
2779
2779
  return this.apiClient.callApi(
2780
2780
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search',
2781
2781
  'POST',
2782
- { 'businessUnitId': businessUnitId },
2783
- { 'forceAsync': opts['forceAsync'],'forceDownloadService': opts['forceDownloadService'] },
2784
- { },
2785
- { },
2782
+ { 'businessUnitId': businessUnitId },
2783
+ { 'forceAsync': opts['forceAsync'],'forceDownloadService': opts['forceDownloadService'] },
2784
+ { },
2785
+ { },
2786
2786
  opts['body'],
2787
2787
  ['PureCloud OAuth'],
2788
- ['application/json'],
2788
+ ['application/json'],
2789
2789
  ['application/json']
2790
2790
  );
2791
2791
  }
@@ -2809,13 +2809,13 @@ class WorkforceManagementApi {
2809
2809
  return this.apiClient.callApi(
2810
2810
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday',
2811
2811
  'POST',
2812
- { 'businessUnitId': businessUnitId },
2813
- { 'forceAsync': opts['forceAsync'] },
2814
- { },
2815
- { },
2812
+ { 'businessUnitId': businessUnitId },
2813
+ { 'forceAsync': opts['forceAsync'] },
2814
+ { },
2815
+ { },
2816
2816
  opts['body'],
2817
2817
  ['PureCloud OAuth'],
2818
- ['application/json'],
2818
+ ['application/json'],
2819
2819
  ['application/json']
2820
2820
  );
2821
2821
  }
@@ -2838,13 +2838,13 @@ class WorkforceManagementApi {
2838
2838
  return this.apiClient.callApi(
2839
2839
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups',
2840
2840
  'POST',
2841
- { 'businessUnitId': businessUnitId },
2842
- { },
2843
- { },
2844
- { },
2841
+ { 'businessUnitId': businessUnitId },
2842
+ { },
2843
+ { },
2844
+ { },
2845
2845
  opts['body'],
2846
2846
  ['PureCloud OAuth'],
2847
- ['application/json'],
2847
+ ['application/json'],
2848
2848
  ['application/json']
2849
2849
  );
2850
2850
  }
@@ -2867,13 +2867,13 @@ class WorkforceManagementApi {
2867
2867
  return this.apiClient.callApi(
2868
2868
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates',
2869
2869
  'POST',
2870
- { 'businessUnitId': businessUnitId },
2871
- { },
2872
- { },
2873
- { },
2870
+ { 'businessUnitId': businessUnitId },
2871
+ { },
2872
+ { },
2873
+ { },
2874
2874
  opts['body'],
2875
2875
  ['PureCloud OAuth'],
2876
- ['application/json'],
2876
+ ['application/json'],
2877
2877
  ['application/json']
2878
2878
  );
2879
2879
  }
@@ -2912,13 +2912,13 @@ class WorkforceManagementApi {
2912
2912
  return this.apiClient.callApi(
2913
2913
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/agentschedules/query',
2914
2914
  'POST',
2915
- { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
2916
- { 'forceAsync': opts['forceAsync'],'forceDownloadService': opts['forceDownloadService'] },
2917
- { },
2918
- { },
2915
+ { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
2916
+ { 'forceAsync': opts['forceAsync'],'forceDownloadService': opts['forceDownloadService'] },
2917
+ { },
2918
+ { },
2919
2919
  body,
2920
2920
  ['PureCloud OAuth'],
2921
- ['application/json'],
2921
+ ['application/json'],
2922
2922
  ['application/json']
2923
2923
  );
2924
2924
  }
@@ -2952,13 +2952,13 @@ class WorkforceManagementApi {
2952
2952
  return this.apiClient.callApi(
2953
2953
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/copy',
2954
2954
  'POST',
2955
- { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
2956
- { },
2957
- { },
2958
- { },
2955
+ { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
2956
+ { },
2957
+ { },
2958
+ { },
2959
2959
  body,
2960
2960
  ['PureCloud OAuth'],
2961
- ['application/json'],
2961
+ ['application/json'],
2962
2962
  ['application/json']
2963
2963
  );
2964
2964
  }
@@ -2992,13 +2992,13 @@ class WorkforceManagementApi {
2992
2992
  return this.apiClient.callApi(
2993
2993
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/reschedule',
2994
2994
  'POST',
2995
- { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
2996
- { },
2997
- { },
2998
- { },
2995
+ { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
2996
+ { },
2997
+ { },
2998
+ { },
2999
2999
  body,
3000
3000
  ['PureCloud OAuth'],
3001
- ['application/json'],
3001
+ ['application/json'],
3002
3002
  ['application/json']
3003
3003
  );
3004
3004
  }
@@ -3032,13 +3032,13 @@ class WorkforceManagementApi {
3032
3032
  return this.apiClient.callApi(
3033
3033
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/update',
3034
3034
  'POST',
3035
- { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
3036
- { },
3037
- { },
3038
- { },
3035
+ { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
3036
+ { },
3037
+ { },
3038
+ { },
3039
3039
  body,
3040
3040
  ['PureCloud OAuth'],
3041
- ['application/json'],
3041
+ ['application/json'],
3042
3042
  ['application/json']
3043
3043
  );
3044
3044
  }
@@ -3072,13 +3072,13 @@ class WorkforceManagementApi {
3072
3072
  return this.apiClient.callApi(
3073
3073
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/update/uploadurl',
3074
3074
  'POST',
3075
- { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
3076
- { },
3077
- { },
3078
- { },
3075
+ { 'businessUnitId': businessUnitId,'weekId': weekId,'scheduleId': scheduleId },
3076
+ { },
3077
+ { },
3078
+ { },
3079
3079
  body,
3080
3080
  ['PureCloud OAuth'],
3081
- ['application/json'],
3081
+ ['application/json'],
3082
3082
  ['application/json']
3083
3083
  );
3084
3084
  }
@@ -3107,13 +3107,13 @@ class WorkforceManagementApi {
3107
3107
  return this.apiClient.callApi(
3108
3108
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules',
3109
3109
  'POST',
3110
- { 'businessUnitId': businessUnitId,'weekId': weekId },
3111
- { },
3112
- { },
3113
- { },
3110
+ { 'businessUnitId': businessUnitId,'weekId': weekId },
3111
+ { },
3112
+ { },
3113
+ { },
3114
3114
  body,
3115
3115
  ['PureCloud OAuth'],
3116
- ['application/json'],
3116
+ ['application/json'],
3117
3117
  ['application/json']
3118
3118
  );
3119
3119
  }
@@ -3142,13 +3142,13 @@ class WorkforceManagementApi {
3142
3142
  return this.apiClient.callApi(
3143
3143
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/generate',
3144
3144
  'POST',
3145
- { 'businessUnitId': businessUnitId,'weekId': weekId },
3146
- { },
3147
- { },
3148
- { },
3145
+ { 'businessUnitId': businessUnitId,'weekId': weekId },
3146
+ { },
3147
+ { },
3148
+ { },
3149
3149
  body,
3150
3150
  ['PureCloud OAuth'],
3151
- ['application/json'],
3151
+ ['application/json'],
3152
3152
  ['application/json']
3153
3153
  );
3154
3154
  }
@@ -3177,13 +3177,13 @@ class WorkforceManagementApi {
3177
3177
  return this.apiClient.callApi(
3178
3178
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/import',
3179
3179
  'POST',
3180
- { 'businessUnitId': businessUnitId,'weekId': weekId },
3181
- { },
3182
- { },
3183
- { },
3180
+ { 'businessUnitId': businessUnitId,'weekId': weekId },
3181
+ { },
3182
+ { },
3183
+ { },
3184
3184
  body,
3185
3185
  ['PureCloud OAuth'],
3186
- ['application/json'],
3186
+ ['application/json'],
3187
3187
  ['application/json']
3188
3188
  );
3189
3189
  }
@@ -3212,13 +3212,13 @@ class WorkforceManagementApi {
3212
3212
  return this.apiClient.callApi(
3213
3213
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/import/uploadurl',
3214
3214
  'POST',
3215
- { 'businessUnitId': businessUnitId,'weekId': weekId },
3216
- { },
3217
- { },
3218
- { },
3215
+ { 'businessUnitId': businessUnitId,'weekId': weekId },
3216
+ { },
3217
+ { },
3218
+ { },
3219
3219
  body,
3220
3220
  ['PureCloud OAuth'],
3221
- ['application/json'],
3221
+ ['application/json'],
3222
3222
  ['application/json']
3223
3223
  );
3224
3224
  }
@@ -3256,13 +3256,13 @@ class WorkforceManagementApi {
3256
3256
  return this.apiClient.callApi(
3257
3257
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/copy',
3258
3258
  'POST',
3259
- { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
3260
- { 'forceAsync': opts['forceAsync'] },
3261
- { },
3262
- { },
3259
+ { 'businessUnitId': businessUnitId,'weekDateId': weekDateId,'forecastId': forecastId },
3260
+ { 'forceAsync': opts['forceAsync'] },
3261
+ { },
3262
+ { },
3263
3263
  body,
3264
3264
  ['PureCloud OAuth'],
3265
- ['application/json'],
3265
+ ['application/json'],
3266
3266
  ['application/json']
3267
3267
  );
3268
3268
  }
@@ -3295,13 +3295,13 @@ class WorkforceManagementApi {
3295
3295
  return this.apiClient.callApi(
3296
3296
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/generate',
3297
3297
  'POST',
3298
- { 'businessUnitId': businessUnitId,'weekDateId': weekDateId },
3299
- { 'forceAsync': opts['forceAsync'] },
3300
- { },
3301
- { },
3298
+ { 'businessUnitId': businessUnitId,'weekDateId': weekDateId },
3299
+ { 'forceAsync': opts['forceAsync'] },
3300
+ { },
3301
+ { },
3302
3302
  body,
3303
3303
  ['PureCloud OAuth'],
3304
- ['application/json'],
3304
+ ['application/json'],
3305
3305
  ['application/json']
3306
3306
  );
3307
3307
  }
@@ -3330,13 +3330,13 @@ class WorkforceManagementApi {
3330
3330
  return this.apiClient.callApi(
3331
3331
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/import',
3332
3332
  'POST',
3333
- { 'businessUnitId': businessUnitId,'weekDateId': weekDateId },
3334
- { },
3335
- { },
3336
- { },
3333
+ { 'businessUnitId': businessUnitId,'weekDateId': weekDateId },
3334
+ { },
3335
+ { },
3336
+ { },
3337
3337
  body,
3338
3338
  ['PureCloud OAuth'],
3339
- ['application/json'],
3339
+ ['application/json'],
3340
3340
  ['application/json']
3341
3341
  );
3342
3342
  }
@@ -3365,13 +3365,13 @@ class WorkforceManagementApi {
3365
3365
  return this.apiClient.callApi(
3366
3366
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/import/uploadurl',
3367
3367
  'POST',
3368
- { 'businessUnitId': businessUnitId,'weekDateId': weekDateId },
3369
- { },
3370
- { },
3371
- { },
3368
+ { 'businessUnitId': businessUnitId,'weekDateId': weekDateId },
3369
+ { },
3370
+ { },
3371
+ { },
3372
3372
  body,
3373
3373
  ['PureCloud OAuth'],
3374
- ['application/json'],
3374
+ ['application/json'],
3375
3375
  ['application/json']
3376
3376
  );
3377
3377
  }
@@ -3389,13 +3389,13 @@ class WorkforceManagementApi {
3389
3389
  return this.apiClient.callApi(
3390
3390
  '/api/v2/workforcemanagement/businessunits',
3391
3391
  'POST',
3392
- { },
3393
- { },
3394
- { },
3395
- { },
3392
+ { },
3393
+ { },
3394
+ { },
3395
+ { },
3396
3396
  opts['body'],
3397
3397
  ['PureCloud OAuth'],
3398
- ['application/json'],
3398
+ ['application/json'],
3399
3399
  ['application/json']
3400
3400
  );
3401
3401
  }
@@ -3404,7 +3404,7 @@ class WorkforceManagementApi {
3404
3404
  * Create a newly generated calendar link for the current user; if the current user has previously generated one, the generated link will be returned
3405
3405
  *
3406
3406
  * @param {Object} opts Optional parameters
3407
- * @param {String} opts.language A language tag (which is sometimes referred to as a \&quot;locale identifier\&quot;) to use to localize default activity code names in the ics-formatted calendar (default to en-US)
3407
+ * @param {String} opts.language A language tag (which is sometimes referred to as a locale identifier) to use to localize default activity code names in the ics-formatted calendar (default to en-US)
3408
3408
  */
3409
3409
  postWorkforcemanagementCalendarUrlIcs(opts) {
3410
3410
  opts = opts || {};
@@ -3413,13 +3413,13 @@ class WorkforceManagementApi {
3413
3413
  return this.apiClient.callApi(
3414
3414
  '/api/v2/workforcemanagement/calendar/url/ics',
3415
3415
  'POST',
3416
- { },
3417
- { 'language': opts['language'] },
3418
- { },
3419
- { },
3416
+ { },
3417
+ { 'language': opts['language'] },
3418
+ { },
3419
+ { },
3420
3420
  null,
3421
3421
  ['PureCloud OAuth'],
3422
- ['application/json'],
3422
+ ['application/json'],
3423
3423
  ['application/json']
3424
3424
  );
3425
3425
  }
@@ -3433,13 +3433,13 @@ class WorkforceManagementApi {
3433
3433
  return this.apiClient.callApi(
3434
3434
  '/api/v2/workforcemanagement/historicaldata/deletejob',
3435
3435
  'POST',
3436
- { },
3437
- { },
3438
- { },
3439
- { },
3436
+ { },
3437
+ { },
3438
+ { },
3439
+ { },
3440
3440
  null,
3441
3441
  ['PureCloud OAuth'],
3442
- ['application/json'],
3442
+ ['application/json'],
3443
3443
  ['application/json']
3444
3444
  );
3445
3445
  }
@@ -3457,13 +3457,13 @@ class WorkforceManagementApi {
3457
3457
  return this.apiClient.callApi(
3458
3458
  '/api/v2/workforcemanagement/historicaldata/validate',
3459
3459
  'POST',
3460
- { },
3461
- { },
3462
- { },
3463
- { },
3460
+ { },
3461
+ { },
3462
+ { },
3463
+ { },
3464
3464
  opts['body'],
3465
3465
  ['PureCloud OAuth'],
3466
- ['application/json'],
3466
+ ['application/json'],
3467
3467
  ['application/json']
3468
3468
  );
3469
3469
  }
@@ -3471,11 +3471,11 @@ class WorkforceManagementApi {
3471
3471
  /**
3472
3472
  * Query published schedules for given given time range for set of users
3473
3473
  *
3474
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3474
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3475
3475
  * @param {Object} opts Optional parameters
3476
- * @param {Object} opts.body body
3477
3476
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
3478
3477
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
3478
+ * @param {Object} opts.body body
3479
3479
  */
3480
3480
  postWorkforcemanagementManagementunitAgentschedulesSearch(managementUnitId, opts) {
3481
3481
  opts = opts || {};
@@ -3488,13 +3488,13 @@ class WorkforceManagementApi {
3488
3488
  return this.apiClient.callApi(
3489
3489
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/agentschedules/search',
3490
3490
  'POST',
3491
- { 'managementUnitId': managementUnitId },
3492
- { 'forceAsync': opts['forceAsync'],'forceDownloadService': opts['forceDownloadService'] },
3493
- { },
3494
- { },
3491
+ { 'managementUnitId': managementUnitId },
3492
+ { 'forceAsync': opts['forceAsync'],'forceDownloadService': opts['forceDownloadService'] },
3493
+ { },
3494
+ { },
3495
3495
  opts['body'],
3496
3496
  ['PureCloud OAuth'],
3497
- ['application/json'],
3497
+ ['application/json'],
3498
3498
  ['application/json']
3499
3499
  );
3500
3500
  }
@@ -3517,13 +3517,13 @@ class WorkforceManagementApi {
3517
3517
  return this.apiClient.callApi(
3518
3518
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery',
3519
3519
  'POST',
3520
- { 'managementUnitId': managementUnitId },
3521
- { },
3522
- { },
3523
- { },
3520
+ { 'managementUnitId': managementUnitId },
3521
+ { },
3522
+ { },
3523
+ { },
3524
3524
  opts['body'],
3525
3525
  ['PureCloud OAuth'],
3526
- ['application/json'],
3526
+ ['application/json'],
3527
3527
  ['application/json']
3528
3528
  );
3529
3529
  }
@@ -3531,7 +3531,7 @@ class WorkforceManagementApi {
3531
3531
  /**
3532
3532
  * Move the requested management unit to a new business unit
3533
3533
  * Returns status 200 if the management unit is already in the requested business unit
3534
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3534
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3535
3535
  * @param {Object} opts Optional parameters
3536
3536
  * @param {Object} opts.body body
3537
3537
  */
@@ -3546,13 +3546,13 @@ class WorkforceManagementApi {
3546
3546
  return this.apiClient.callApi(
3547
3547
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/move',
3548
3548
  'POST',
3549
- { 'managementUnitId': managementUnitId },
3550
- { },
3551
- { },
3552
- { },
3549
+ { 'managementUnitId': managementUnitId },
3550
+ { },
3551
+ { },
3552
+ { },
3553
3553
  opts['body'],
3554
3554
  ['PureCloud OAuth'],
3555
- ['application/json'],
3555
+ ['application/json'],
3556
3556
  ['application/json']
3557
3557
  );
3558
3558
  }
@@ -3560,7 +3560,7 @@ class WorkforceManagementApi {
3560
3560
  /**
3561
3561
  * Query published schedules for given given time range for set of users
3562
3562
  *
3563
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3563
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3564
3564
  * @param {Object} opts Optional parameters
3565
3565
  * @param {Object} opts.body body
3566
3566
  */
@@ -3575,13 +3575,13 @@ class WorkforceManagementApi {
3575
3575
  return this.apiClient.callApi(
3576
3576
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search',
3577
3577
  'POST',
3578
- { 'managementUnitId': managementUnitId },
3579
- { },
3580
- { },
3581
- { },
3578
+ { 'managementUnitId': managementUnitId },
3579
+ { },
3580
+ { },
3581
+ { },
3582
3582
  opts['body'],
3583
3583
  ['PureCloud OAuth'],
3584
- ['application/json'],
3584
+ ['application/json'],
3585
3585
  ['application/json']
3586
3586
  );
3587
3587
  }
@@ -3604,13 +3604,13 @@ class WorkforceManagementApi {
3604
3604
  return this.apiClient.callApi(
3605
3605
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
3606
3606
  'POST',
3607
- { 'managementUnitId': managementUnitId },
3608
- { },
3609
- { },
3610
- { },
3607
+ { 'managementUnitId': managementUnitId },
3608
+ { },
3609
+ { },
3610
+ { },
3611
3611
  opts['body'],
3612
3612
  ['PureCloud OAuth'],
3613
- ['application/json'],
3613
+ ['application/json'],
3614
3614
  ['application/json']
3615
3615
  );
3616
3616
  }
@@ -3633,13 +3633,13 @@ class WorkforceManagementApi {
3633
3633
  return this.apiClient.callApi(
3634
3634
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query',
3635
3635
  'POST',
3636
- { 'managementUnitId': managementUnitId },
3637
- { },
3638
- { },
3639
- { },
3636
+ { 'managementUnitId': managementUnitId },
3637
+ { },
3638
+ { },
3639
+ { },
3640
3640
  opts['body'],
3641
3641
  ['PureCloud OAuth'],
3642
- ['application/json'],
3642
+ ['application/json'],
3643
3643
  ['application/json']
3644
3644
  );
3645
3645
  }
@@ -3662,13 +3662,13 @@ class WorkforceManagementApi {
3662
3662
  return this.apiClient.callApi(
3663
3663
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
3664
3664
  'POST',
3665
- { 'managementUnitId': managementUnitId },
3666
- { },
3667
- { },
3668
- { },
3665
+ { 'managementUnitId': managementUnitId },
3666
+ { },
3667
+ { },
3668
+ { },
3669
3669
  opts['body'],
3670
3670
  ['PureCloud OAuth'],
3671
- ['application/json'],
3671
+ ['application/json'],
3672
3672
  ['application/json']
3673
3673
  );
3674
3674
  }
@@ -3676,7 +3676,7 @@ class WorkforceManagementApi {
3676
3676
  /**
3677
3677
  * Create a new time off request
3678
3678
  *
3679
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3679
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3680
3680
  * @param {Object} opts Optional parameters
3681
3681
  * @param {Object} opts.body body
3682
3682
  */
@@ -3691,13 +3691,13 @@ class WorkforceManagementApi {
3691
3691
  return this.apiClient.callApi(
3692
3692
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests',
3693
3693
  'POST',
3694
- { 'managementUnitId': managementUnitId },
3695
- { },
3696
- { },
3697
- { },
3694
+ { 'managementUnitId': managementUnitId },
3695
+ { },
3696
+ { },
3697
+ { },
3698
3698
  opts['body'],
3699
3699
  ['PureCloud OAuth'],
3700
- ['application/json'],
3700
+ ['application/json'],
3701
3701
  ['application/json']
3702
3702
  );
3703
3703
  }
@@ -3705,7 +3705,7 @@ class WorkforceManagementApi {
3705
3705
  /**
3706
3706
  * Fetches time off requests matching the conditions specified in the request body
3707
3707
  * Request body requires one of the following: User ID is specified, statuses == [Pending] or date range to be specified and less than or equal to 33 days. All other fields are filters
3708
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3708
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3709
3709
  * @param {Object} opts Optional parameters
3710
3710
  * @param {Object} opts.body body
3711
3711
  */
@@ -3720,13 +3720,13 @@ class WorkforceManagementApi {
3720
3720
  return this.apiClient.callApi(
3721
3721
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/query',
3722
3722
  'POST',
3723
- { 'managementUnitId': managementUnitId },
3724
- { },
3725
- { },
3726
- { },
3723
+ { 'managementUnitId': managementUnitId },
3724
+ { },
3725
+ { },
3726
+ { },
3727
3727
  opts['body'],
3728
3728
  ['PureCloud OAuth'],
3729
- ['application/json'],
3729
+ ['application/json'],
3730
3730
  ['application/json']
3731
3731
  );
3732
3732
  }
@@ -3749,13 +3749,13 @@ class WorkforceManagementApi {
3749
3749
  return this.apiClient.callApi(
3750
3750
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query',
3751
3751
  'POST',
3752
- { 'managementUnitId': managementUnitId },
3753
- { },
3754
- { },
3755
- { },
3752
+ { 'managementUnitId': managementUnitId },
3753
+ { },
3754
+ { },
3755
+ { },
3756
3756
  opts['body'],
3757
3757
  ['PureCloud OAuth'],
3758
- ['application/json'],
3758
+ ['application/json'],
3759
3759
  ['application/json']
3760
3760
  );
3761
3761
  }
@@ -3763,12 +3763,12 @@ class WorkforceManagementApi {
3763
3763
  /**
3764
3764
  * Matches a shift trade. This route can only be called by the receiving agent
3765
3765
  *
3766
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3766
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3767
3767
  * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
3768
- * @param {Object} body body
3769
3768
  * @param {String} tradeId The ID of the shift trade to update
3769
+ * @param {Object} body body
3770
3770
  */
3771
- postWorkforcemanagementManagementunitWeekShifttradeMatch(managementUnitId, weekDateId, body, tradeId) {
3771
+ postWorkforcemanagementManagementunitWeekShifttradeMatch(managementUnitId, weekDateId, tradeId, body) {
3772
3772
  // verify the required parameter 'managementUnitId' is set
3773
3773
  if (managementUnitId === undefined || managementUnitId === null) {
3774
3774
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';
@@ -3777,25 +3777,25 @@ class WorkforceManagementApi {
3777
3777
  if (weekDateId === undefined || weekDateId === null) {
3778
3778
  throw 'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';
3779
3779
  }
3780
- // verify the required parameter 'body' is set
3781
- if (body === undefined || body === null) {
3782
- throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';
3783
- }
3784
3780
  // verify the required parameter 'tradeId' is set
3785
3781
  if (tradeId === undefined || tradeId === null) {
3786
3782
  throw 'Missing the required parameter "tradeId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';
3787
3783
  }
3784
+ // verify the required parameter 'body' is set
3785
+ if (body === undefined || body === null) {
3786
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';
3787
+ }
3788
3788
 
3789
3789
  return this.apiClient.callApi(
3790
3790
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/{tradeId}/match',
3791
3791
  'POST',
3792
- { 'managementUnitId': managementUnitId,'weekDateId': weekDateId,'tradeId': tradeId },
3793
- { },
3794
- { },
3795
- { },
3792
+ { 'managementUnitId': managementUnitId,'weekDateId': weekDateId,'tradeId': tradeId },
3793
+ { },
3794
+ { },
3795
+ { },
3796
3796
  body,
3797
3797
  ['PureCloud OAuth'],
3798
- ['application/json'],
3798
+ ['application/json'],
3799
3799
  ['application/json']
3800
3800
  );
3801
3801
  }
@@ -3803,7 +3803,7 @@ class WorkforceManagementApi {
3803
3803
  /**
3804
3804
  * Adds a shift trade
3805
3805
  *
3806
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3806
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3807
3807
  * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
3808
3808
  * @param {Object} body body
3809
3809
  */
@@ -3824,13 +3824,13 @@ class WorkforceManagementApi {
3824
3824
  return this.apiClient.callApi(
3825
3825
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades',
3826
3826
  'POST',
3827
- { 'managementUnitId': managementUnitId,'weekDateId': weekDateId },
3828
- { },
3829
- { },
3830
- { },
3827
+ { 'managementUnitId': managementUnitId,'weekDateId': weekDateId },
3828
+ { },
3829
+ { },
3830
+ { },
3831
3831
  body,
3832
3832
  ['PureCloud OAuth'],
3833
- ['application/json'],
3833
+ ['application/json'],
3834
3834
  ['application/json']
3835
3835
  );
3836
3836
  }
@@ -3838,7 +3838,7 @@ class WorkforceManagementApi {
3838
3838
  /**
3839
3839
  * Searches for potential shift trade matches for the current agent
3840
3840
  *
3841
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3841
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3842
3842
  * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
3843
3843
  * @param {Object} body body
3844
3844
  */
@@ -3859,21 +3859,21 @@ class WorkforceManagementApi {
3859
3859
  return this.apiClient.callApi(
3860
3860
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/search',
3861
3861
  'POST',
3862
- { 'managementUnitId': managementUnitId,'weekDateId': weekDateId },
3863
- { },
3864
- { },
3865
- { },
3862
+ { 'managementUnitId': managementUnitId,'weekDateId': weekDateId },
3863
+ { },
3864
+ { },
3865
+ { },
3866
3866
  body,
3867
3867
  ['PureCloud OAuth'],
3868
- ['application/json'],
3868
+ ['application/json'],
3869
3869
  ['application/json']
3870
3870
  );
3871
3871
  }
3872
3872
 
3873
3873
  /**
3874
3874
  * Updates the state of a batch of shift trades
3875
- * Admin functionality is not supported with \&quot;mine\&quot;.
3876
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3875
+ * Admin functionality is not supported with "mine".
3876
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3877
3877
  * @param {String} weekDateId The start date of the week schedule in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
3878
3878
  * @param {Object} body body
3879
3879
  * @param {Object} opts Optional parameters
@@ -3898,13 +3898,13 @@ class WorkforceManagementApi {
3898
3898
  return this.apiClient.callApi(
3899
3899
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/state/bulk',
3900
3900
  'POST',
3901
- { 'managementUnitId': managementUnitId,'weekDateId': weekDateId },
3902
- { 'forceAsync': opts['forceAsync'] },
3903
- { },
3904
- { },
3901
+ { 'managementUnitId': managementUnitId,'weekDateId': weekDateId },
3902
+ { 'forceAsync': opts['forceAsync'] },
3903
+ { },
3904
+ { },
3905
3905
  body,
3906
3906
  ['PureCloud OAuth'],
3907
- ['application/json'],
3907
+ ['application/json'],
3908
3908
  ['application/json']
3909
3909
  );
3910
3910
  }
@@ -3912,7 +3912,7 @@ class WorkforceManagementApi {
3912
3912
  /**
3913
3913
  * Create a copy of work plan
3914
3914
  *
3915
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3915
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3916
3916
  * @param {String} workPlanId The ID of the work plan to create a copy
3917
3917
  * @param {Object} opts Optional parameters
3918
3918
  * @param {Object} opts.body body
@@ -3932,13 +3932,13 @@ class WorkforceManagementApi {
3932
3932
  return this.apiClient.callApi(
3933
3933
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/copy',
3934
3934
  'POST',
3935
- { 'managementUnitId': managementUnitId,'workPlanId': workPlanId },
3936
- { },
3937
- { },
3938
- { },
3935
+ { 'managementUnitId': managementUnitId,'workPlanId': workPlanId },
3936
+ { },
3937
+ { },
3938
+ { },
3939
3939
  opts['body'],
3940
3940
  ['PureCloud OAuth'],
3941
- ['application/json'],
3941
+ ['application/json'],
3942
3942
  ['application/json']
3943
3943
  );
3944
3944
  }
@@ -3946,11 +3946,11 @@ class WorkforceManagementApi {
3946
3946
  /**
3947
3947
  * Validate Work Plan
3948
3948
  *
3949
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3950
- * @param {String} workPlanId The ID of the work plan to validate. For new work plan, use the word &#39;new&#39; for the ID.
3949
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3950
+ * @param {String} workPlanId The ID of the work plan to validate. For new work plan, use the word 'new' for the ID.
3951
3951
  * @param {Object} opts Optional parameters
3952
- * @param {Object} opts.body body
3953
3952
  * @param {Array.<String>} opts.expand
3953
+ * @param {Object} opts.body body
3954
3954
  */
3955
3955
  postWorkforcemanagementManagementunitWorkplanValidate(managementUnitId, workPlanId, opts) {
3956
3956
  opts = opts || {};
@@ -3967,13 +3967,13 @@ class WorkforceManagementApi {
3967
3967
  return this.apiClient.callApi(
3968
3968
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/validate',
3969
3969
  'POST',
3970
- { 'managementUnitId': managementUnitId,'workPlanId': workPlanId },
3971
- { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
3972
- { },
3973
- { },
3970
+ { 'managementUnitId': managementUnitId,'workPlanId': workPlanId },
3971
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
3972
+ { },
3973
+ { },
3974
3974
  opts['body'],
3975
3975
  ['PureCloud OAuth'],
3976
- ['application/json'],
3976
+ ['application/json'],
3977
3977
  ['application/json']
3978
3978
  );
3979
3979
  }
@@ -3981,7 +3981,7 @@ class WorkforceManagementApi {
3981
3981
  /**
3982
3982
  * Create a copy of work plan rotation
3983
3983
  *
3984
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
3984
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
3985
3985
  * @param {String} workPlanRotationId The ID of the work plan rotation to create a copy
3986
3986
  * @param {Object} opts Optional parameters
3987
3987
  * @param {Object} opts.body body
@@ -4001,13 +4001,13 @@ class WorkforceManagementApi {
4001
4001
  return this.apiClient.callApi(
4002
4002
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}/copy',
4003
4003
  'POST',
4004
- { 'managementUnitId': managementUnitId,'workPlanRotationId': workPlanRotationId },
4005
- { },
4006
- { },
4007
- { },
4004
+ { 'managementUnitId': managementUnitId,'workPlanRotationId': workPlanRotationId },
4005
+ { },
4006
+ { },
4007
+ { },
4008
4008
  opts['body'],
4009
4009
  ['PureCloud OAuth'],
4010
- ['application/json'],
4010
+ ['application/json'],
4011
4011
  ['application/json']
4012
4012
  );
4013
4013
  }
@@ -4015,7 +4015,7 @@ class WorkforceManagementApi {
4015
4015
  /**
4016
4016
  * Create a new work plan rotation
4017
4017
  *
4018
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
4018
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
4019
4019
  * @param {Object} opts Optional parameters
4020
4020
  * @param {Object} opts.body body
4021
4021
  */
@@ -4030,13 +4030,13 @@ class WorkforceManagementApi {
4030
4030
  return this.apiClient.callApi(
4031
4031
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations',
4032
4032
  'POST',
4033
- { 'managementUnitId': managementUnitId },
4034
- { },
4035
- { },
4036
- { },
4033
+ { 'managementUnitId': managementUnitId },
4034
+ { },
4035
+ { },
4036
+ { },
4037
4037
  opts['body'],
4038
4038
  ['PureCloud OAuth'],
4039
- ['application/json'],
4039
+ ['application/json'],
4040
4040
  ['application/json']
4041
4041
  );
4042
4042
  }
@@ -4044,10 +4044,10 @@ class WorkforceManagementApi {
4044
4044
  /**
4045
4045
  * Create a new work plan
4046
4046
  *
4047
- * @param {String} managementUnitId The ID of the management unit, or &#39;mine&#39; for the management unit of the logged-in user.
4047
+ * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
4048
4048
  * @param {Object} opts Optional parameters
4049
- * @param {Object} opts.body body
4050
4049
  * @param {Object} opts.validationMode Allows to create work plan even if the validation result is invalid
4050
+ * @param {Object} opts.body body
4051
4051
  */
4052
4052
  postWorkforcemanagementManagementunitWorkplans(managementUnitId, opts) {
4053
4053
  opts = opts || {};
@@ -4060,13 +4060,13 @@ class WorkforceManagementApi {
4060
4060
  return this.apiClient.callApi(
4061
4061
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans',
4062
4062
  'POST',
4063
- { 'managementUnitId': managementUnitId },
4064
- { 'validationMode': opts['validationMode'] },
4065
- { },
4066
- { },
4063
+ { 'managementUnitId': managementUnitId },
4064
+ { 'validationMode': opts['validationMode'] },
4065
+ { },
4066
+ { },
4067
4067
  opts['body'],
4068
4068
  ['PureCloud OAuth'],
4069
- ['application/json'],
4069
+ ['application/json'],
4070
4070
  ['application/json']
4071
4071
  );
4072
4072
  }
@@ -4084,13 +4084,13 @@ class WorkforceManagementApi {
4084
4084
  return this.apiClient.callApi(
4085
4085
  '/api/v2/workforcemanagement/managementunits',
4086
4086
  'POST',
4087
- { },
4088
- { },
4089
- { },
4090
- { },
4087
+ { },
4088
+ { },
4089
+ { },
4090
+ { },
4091
4091
  opts['body'],
4092
4092
  ['PureCloud OAuth'],
4093
- ['application/json'],
4093
+ ['application/json'],
4094
4094
  ['application/json']
4095
4095
  );
4096
4096
  }
@@ -4108,13 +4108,13 @@ class WorkforceManagementApi {
4108
4108
  return this.apiClient.callApi(
4109
4109
  '/api/v2/workforcemanagement/notifications/update',
4110
4110
  'POST',
4111
- { },
4112
- { },
4113
- { },
4114
- { },
4111
+ { },
4112
+ { },
4113
+ { },
4114
+ { },
4115
4115
  opts['body'],
4116
4116
  ['PureCloud OAuth'],
4117
- ['application/json'],
4117
+ ['application/json'],
4118
4118
  ['application/json']
4119
4119
  );
4120
4120
  }
@@ -4132,13 +4132,13 @@ class WorkforceManagementApi {
4132
4132
  return this.apiClient.callApi(
4133
4133
  '/api/v2/workforcemanagement/schedules',
4134
4134
  'POST',
4135
- { },
4136
- { },
4137
- { },
4138
- { },
4135
+ { },
4136
+ { },
4137
+ { },
4138
+ { },
4139
4139
  opts['body'],
4140
4140
  ['PureCloud OAuth'],
4141
- ['application/json'],
4141
+ ['application/json'],
4142
4142
  ['application/json']
4143
4143
  );
4144
4144
  }
@@ -4156,13 +4156,13 @@ class WorkforceManagementApi {
4156
4156
  return this.apiClient.callApi(
4157
4157
  '/api/v2/workforcemanagement/timeofflimits/available/query',
4158
4158
  'POST',
4159
- { },
4160
- { },
4161
- { },
4162
- { },
4159
+ { },
4160
+ { },
4161
+ { },
4162
+ { },
4163
4163
  opts['body'],
4164
4164
  ['PureCloud OAuth'],
4165
- ['application/json'],
4165
+ ['application/json'],
4166
4166
  ['application/json']
4167
4167
  );
4168
4168
  }
@@ -4180,13 +4180,13 @@ class WorkforceManagementApi {
4180
4180
  return this.apiClient.callApi(
4181
4181
  '/api/v2/workforcemanagement/timeoffrequests',
4182
4182
  'POST',
4183
- { },
4184
- { },
4185
- { },
4186
- { },
4183
+ { },
4184
+ { },
4185
+ { },
4186
+ { },
4187
4187
  opts['body'],
4188
4188
  ['PureCloud OAuth'],
4189
- ['application/json'],
4189
+ ['application/json'],
4190
4190
  ['application/json']
4191
4191
  );
4192
4192
  }
@@ -4214,13 +4214,13 @@ class WorkforceManagementApi {
4214
4214
  return this.apiClient.callApi(
4215
4215
  '/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values',
4216
4216
  'PUT',
4217
- { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
4218
- { },
4219
- { },
4220
- { },
4217
+ { 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
4218
+ { },
4219
+ { },
4220
+ { },
4221
4221
  opts['body'],
4222
4222
  ['PureCloud OAuth'],
4223
- ['application/json'],
4223
+ ['application/json'],
4224
4224
  ['application/json']
4225
4225
  );
4226
4226
  }