purecloud-platform-client-v2 223.0.0 → 225.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +3630 -2644
  3. package/dist/web-amd/purecloud-platform-client-v2.js +3630 -2644
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +2891 -2627
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +2891 -2627
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +825 -249
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AIStudioApi.js +387 -0
  12. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +13 -13
  13. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +3 -3
  14. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +5 -5
  15. package/src/purecloud-platform-client-v2/api/AlertingApi.js +8 -8
  16. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +46 -46
  17. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +124 -122
  18. package/src/purecloud-platform-client-v2/api/AuditApi.js +3 -3
  19. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +47 -47
  20. package/src/purecloud-platform-client-v2/api/BillingApi.js +7 -7
  21. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +75 -30
  22. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ChatApi.js +38 -38
  24. package/src/purecloud-platform-client-v2/api/CoachingApi.js +17 -17
  25. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +32 -32
  26. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +620 -344
  27. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +2 -2
  28. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +4 -4
  29. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +2 -2
  30. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +4 -4
  32. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +66 -66
  34. package/src/purecloud-platform-client-v2/api/FaxApi.js +5 -5
  35. package/src/purecloud-platform-client-v2/api/FlowsApi.js +3 -3
  36. package/src/purecloud-platform-client-v2/api/GamificationApi.js +49 -49
  37. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +2 -2
  38. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +5 -5
  39. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +101 -14
  40. package/src/purecloud-platform-client-v2/api/GroupsApi.js +12 -12
  41. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +4 -4
  42. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +3 -3
  43. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +106 -80
  44. package/src/purecloud-platform-client-v2/api/JourneyApi.js +68 -68
  45. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +212 -212
  46. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +46 -46
  47. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +4 -4
  48. package/src/purecloud-platform-client-v2/api/LearningApi.js +28 -28
  49. package/src/purecloud-platform-client-v2/api/LicenseApi.js +5 -5
  50. package/src/purecloud-platform-client-v2/api/LocationsApi.js +5 -5
  51. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +5 -5
  52. package/src/purecloud-platform-client-v2/api/MessagingApi.js +7 -7
  53. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +4 -4
  54. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +6 -6
  55. package/src/purecloud-platform-client-v2/api/OAuthApi.js +11 -11
  56. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +7 -7
  57. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +2 -2
  58. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +5 -5
  59. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +59 -59
  60. package/src/purecloud-platform-client-v2/api/OutboundApi.js +118 -118
  61. package/src/purecloud-platform-client-v2/api/PresenceApi.js +19 -19
  62. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +6 -6
  63. package/src/purecloud-platform-client-v2/api/QualityApi.js +36 -36
  64. package/src/purecloud-platform-client-v2/api/RecordingApi.js +42 -42
  65. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +11 -11
  66. package/src/purecloud-platform-client-v2/api/RoutingApi.js +148 -118
  67. package/src/purecloud-platform-client-v2/api/SCIMApi.js +19 -19
  68. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +13 -13
  70. package/src/purecloud-platform-client-v2/api/SearchApi.js +2 -2
  71. package/src/purecloud-platform-client-v2/api/SettingsApi.js +5 -5
  72. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +59 -59
  73. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +33 -33
  74. package/src/purecloud-platform-client-v2/api/StationsApi.js +3 -3
  75. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +78 -78
  77. package/src/purecloud-platform-client-v2/api/TeamsApi.js +8 -8
  78. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +4 -4
  79. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +134 -93
  80. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +2 -2
  81. package/src/purecloud-platform-client-v2/api/TokensApi.js +2 -2
  82. package/src/purecloud-platform-client-v2/api/UploadsApi.js +6 -6
  83. package/src/purecloud-platform-client-v2/api/UsageApi.js +7 -7
  84. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +6 -6
  85. package/src/purecloud-platform-client-v2/api/UsersApi.js +123 -93
  86. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +17 -17
  88. package/src/purecloud-platform-client-v2/api/WebChatApi.js +21 -21
  89. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +18 -18
  90. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +4 -4
  92. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +332 -326
  93. package/src/purecloud-platform-client-v2/configuration.js +80 -23
  94. package/src/purecloud-platform-client-v2/index.js +7 -1
@@ -5,7 +5,7 @@ class WorkforceManagementApi {
5
5
  /**
6
6
  * WorkforceManagement service.
7
7
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
8
- * @version 223.0.0
8
+ * @version 225.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -27,7 +27,7 @@ class WorkforceManagementApi {
27
27
  */
28
28
  deleteWorkforcemanagementBusinessunit(businessUnitId) {
29
29
  // verify the required parameter 'businessUnitId' is set
30
- if (businessUnitId === undefined || businessUnitId === null) {
30
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
31
31
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunit';
32
32
  }
33
33
 
@@ -53,11 +53,11 @@ class WorkforceManagementApi {
53
53
  */
54
54
  deleteWorkforcemanagementBusinessunitActivitycode(businessUnitId, activityCodeId) {
55
55
  // verify the required parameter 'businessUnitId' is set
56
- if (businessUnitId === undefined || businessUnitId === null) {
56
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
57
57
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';
58
58
  }
59
59
  // verify the required parameter 'activityCodeId' is set
60
- if (activityCodeId === undefined || activityCodeId === null) {
60
+ if (activityCodeId === undefined || activityCodeId === null || activityCodeId === '') {
61
61
  throw 'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';
62
62
  }
63
63
 
@@ -83,11 +83,11 @@ class WorkforceManagementApi {
83
83
  */
84
84
  deleteWorkforcemanagementBusinessunitPlanninggroup(businessUnitId, planningGroupId) {
85
85
  // verify the required parameter 'businessUnitId' is set
86
- if (businessUnitId === undefined || businessUnitId === null) {
86
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
87
87
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';
88
88
  }
89
89
  // verify the required parameter 'planningGroupId' is set
90
- if (planningGroupId === undefined || planningGroupId === null) {
90
+ if (planningGroupId === undefined || planningGroupId === null || planningGroupId === '') {
91
91
  throw 'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';
92
92
  }
93
93
 
@@ -113,11 +113,11 @@ class WorkforceManagementApi {
113
113
  */
114
114
  deleteWorkforcemanagementBusinessunitSchedulingRun(businessUnitId, runId) {
115
115
  // verify the required parameter 'businessUnitId' is set
116
- if (businessUnitId === undefined || businessUnitId === null) {
116
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
117
117
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';
118
118
  }
119
119
  // verify the required parameter 'runId' is set
120
- if (runId === undefined || runId === null) {
120
+ if (runId === undefined || runId === null || runId === '') {
121
121
  throw 'Missing the required parameter "runId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';
122
122
  }
123
123
 
@@ -143,11 +143,11 @@ class WorkforceManagementApi {
143
143
  */
144
144
  deleteWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId, serviceGoalTemplateId) {
145
145
  // verify the required parameter 'businessUnitId' is set
146
- if (businessUnitId === undefined || businessUnitId === null) {
146
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
147
147
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';
148
148
  }
149
149
  // verify the required parameter 'serviceGoalTemplateId' is set
150
- if (serviceGoalTemplateId === undefined || serviceGoalTemplateId === null) {
150
+ if (serviceGoalTemplateId === undefined || serviceGoalTemplateId === null || serviceGoalTemplateId === '') {
151
151
  throw 'Missing the required parameter "serviceGoalTemplateId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';
152
152
  }
153
153
 
@@ -173,11 +173,11 @@ class WorkforceManagementApi {
173
173
  */
174
174
  deleteWorkforcemanagementBusinessunitStaffinggroup(businessUnitId, staffingGroupId) {
175
175
  // verify the required parameter 'businessUnitId' is set
176
- if (businessUnitId === undefined || businessUnitId === null) {
176
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
177
177
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';
178
178
  }
179
179
  // verify the required parameter 'staffingGroupId' is set
180
- if (staffingGroupId === undefined || staffingGroupId === null) {
180
+ if (staffingGroupId === undefined || staffingGroupId === null || staffingGroupId === '') {
181
181
  throw 'Missing the required parameter "staffingGroupId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';
182
182
  }
183
183
 
@@ -203,11 +203,11 @@ class WorkforceManagementApi {
203
203
  */
204
204
  deleteWorkforcemanagementBusinessunitTimeofflimit(businessUnitId, timeOffLimitId) {
205
205
  // verify the required parameter 'businessUnitId' is set
206
- if (businessUnitId === undefined || businessUnitId === null) {
206
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
207
207
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';
208
208
  }
209
209
  // verify the required parameter 'timeOffLimitId' is set
210
- if (timeOffLimitId === undefined || timeOffLimitId === null) {
210
+ if (timeOffLimitId === undefined || timeOffLimitId === null || timeOffLimitId === '') {
211
211
  throw 'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';
212
212
  }
213
213
 
@@ -233,11 +233,11 @@ class WorkforceManagementApi {
233
233
  */
234
234
  deleteWorkforcemanagementBusinessunitTimeoffplan(businessUnitId, timeOffPlanId) {
235
235
  // verify the required parameter 'businessUnitId' is set
236
- if (businessUnitId === undefined || businessUnitId === null) {
236
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
237
237
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';
238
238
  }
239
239
  // verify the required parameter 'timeOffPlanId' is set
240
- if (timeOffPlanId === undefined || timeOffPlanId === null) {
240
+ if (timeOffPlanId === undefined || timeOffPlanId === null || timeOffPlanId === '') {
241
241
  throw 'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';
242
242
  }
243
243
 
@@ -264,7 +264,7 @@ class WorkforceManagementApi {
264
264
  */
265
265
  deleteWorkforcemanagementBusinessunitWeekSchedule(businessUnitId, weekId, scheduleId) {
266
266
  // verify the required parameter 'businessUnitId' is set
267
- if (businessUnitId === undefined || businessUnitId === null) {
267
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
268
268
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';
269
269
  }
270
270
  // verify the required parameter 'weekId' is set
@@ -272,7 +272,7 @@ class WorkforceManagementApi {
272
272
  throw 'Missing the required parameter "weekId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';
273
273
  }
274
274
  // verify the required parameter 'scheduleId' is set
275
- if (scheduleId === undefined || scheduleId === null) {
275
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
276
276
  throw 'Missing the required parameter "scheduleId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';
277
277
  }
278
278
 
@@ -299,7 +299,7 @@ class WorkforceManagementApi {
299
299
  */
300
300
  deleteWorkforcemanagementBusinessunitWeekShorttermforecast(businessUnitId, weekDateId, forecastId) {
301
301
  // verify the required parameter 'businessUnitId' is set
302
- if (businessUnitId === undefined || businessUnitId === null) {
302
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
303
303
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';
304
304
  }
305
305
  // verify the required parameter 'weekDateId' is set
@@ -307,7 +307,7 @@ class WorkforceManagementApi {
307
307
  throw 'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';
308
308
  }
309
309
  // verify the required parameter 'forecastId' is set
310
- if (forecastId === undefined || forecastId === null) {
310
+ if (forecastId === undefined || forecastId === null || forecastId === '') {
311
311
  throw 'Missing the required parameter "forecastId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';
312
312
  }
313
313
 
@@ -333,11 +333,11 @@ class WorkforceManagementApi {
333
333
  */
334
334
  deleteWorkforcemanagementBusinessunitWorkplanbid(businessUnitId, bidId) {
335
335
  // verify the required parameter 'businessUnitId' is set
336
- if (businessUnitId === undefined || businessUnitId === null) {
336
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
337
337
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';
338
338
  }
339
339
  // verify the required parameter 'bidId' is set
340
- if (bidId === undefined || bidId === null) {
340
+ if (bidId === undefined || bidId === null || bidId === '') {
341
341
  throw 'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';
342
342
  }
343
343
 
@@ -364,15 +364,15 @@ class WorkforceManagementApi {
364
364
  */
365
365
  deleteWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId, bidId, bidGroupId) {
366
366
  // verify the required parameter 'businessUnitId' is set
367
- if (businessUnitId === undefined || businessUnitId === null) {
367
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
368
368
  throw 'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';
369
369
  }
370
370
  // verify the required parameter 'bidId' is set
371
- if (bidId === undefined || bidId === null) {
371
+ if (bidId === undefined || bidId === null || bidId === '') {
372
372
  throw 'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';
373
373
  }
374
374
  // verify the required parameter 'bidGroupId' is set
375
- if (bidGroupId === undefined || bidGroupId === null) {
375
+ if (bidGroupId === undefined || bidGroupId === null || bidGroupId === '') {
376
376
  throw 'Missing the required parameter "bidGroupId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';
377
377
  }
378
378
 
@@ -417,7 +417,7 @@ class WorkforceManagementApi {
417
417
  */
418
418
  deleteWorkforcemanagementManagementunit(managementUnitId) {
419
419
  // verify the required parameter 'managementUnitId' is set
420
- if (managementUnitId === undefined || managementUnitId === null) {
420
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
421
421
  throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunit';
422
422
  }
423
423
 
@@ -443,11 +443,11 @@ class WorkforceManagementApi {
443
443
  */
444
444
  deleteWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
445
445
  // verify the required parameter 'managementUnitId' is set
446
- if (managementUnitId === undefined || managementUnitId === null) {
446
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
447
447
  throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
448
448
  }
449
449
  // verify the required parameter 'timeOffLimitId' is set
450
- if (timeOffLimitId === undefined || timeOffLimitId === null) {
450
+ if (timeOffLimitId === undefined || timeOffLimitId === null || timeOffLimitId === '') {
451
451
  throw 'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
452
452
  }
453
453
 
@@ -473,11 +473,11 @@ class WorkforceManagementApi {
473
473
  */
474
474
  deleteWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
475
475
  // verify the required parameter 'managementUnitId' is set
476
- if (managementUnitId === undefined || managementUnitId === null) {
476
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
477
477
  throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
478
478
  }
479
479
  // verify the required parameter 'timeOffPlanId' is set
480
- if (timeOffPlanId === undefined || timeOffPlanId === null) {
480
+ if (timeOffPlanId === undefined || timeOffPlanId === null || timeOffPlanId === '') {
481
481
  throw 'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
482
482
  }
483
483
 
@@ -503,11 +503,11 @@ class WorkforceManagementApi {
503
503
  */
504
504
  deleteWorkforcemanagementManagementunitWorkplan(managementUnitId, workPlanId) {
505
505
  // verify the required parameter 'managementUnitId' is set
506
- if (managementUnitId === undefined || managementUnitId === null) {
506
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
507
507
  throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplan';
508
508
  }
509
509
  // verify the required parameter 'workPlanId' is set
510
- if (workPlanId === undefined || workPlanId === null) {
510
+ if (workPlanId === undefined || workPlanId === null || workPlanId === '') {
511
511
  throw 'Missing the required parameter "workPlanId" when calling deleteWorkforcemanagementManagementunitWorkplan';
512
512
  }
513
513
 
@@ -533,11 +533,11 @@ class WorkforceManagementApi {
533
533
  */
534
534
  deleteWorkforcemanagementManagementunitWorkplanrotation(managementUnitId, workPlanRotationId) {
535
535
  // verify the required parameter 'managementUnitId' is set
536
- if (managementUnitId === undefined || managementUnitId === null) {
536
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
537
537
  throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';
538
538
  }
539
539
  // verify the required parameter 'workPlanRotationId' is set
540
- if (workPlanRotationId === undefined || workPlanRotationId === null) {
540
+ if (workPlanRotationId === undefined || workPlanRotationId === null || workPlanRotationId === '') {
541
541
  throw 'Missing the required parameter "workPlanRotationId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';
542
542
  }
543
543
 
@@ -587,7 +587,7 @@ class WorkforceManagementApi {
587
587
  */
588
588
  getWorkforcemanagementAdherenceExplanation(explanationId) {
589
589
  // verify the required parameter 'explanationId' is set
590
- if (explanationId === undefined || explanationId === null) {
590
+ if (explanationId === undefined || explanationId === null || explanationId === '') {
591
591
  throw 'Missing the required parameter "explanationId" when calling getWorkforcemanagementAdherenceExplanation';
592
592
  }
593
593
 
@@ -612,7 +612,7 @@ class WorkforceManagementApi {
612
612
  */
613
613
  getWorkforcemanagementAdherenceExplanationsJob(jobId) {
614
614
  // verify the required parameter 'jobId' is set
615
- if (jobId === undefined || jobId === null) {
615
+ if (jobId === undefined || jobId === null || jobId === '') {
616
616
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceExplanationsJob';
617
617
  }
618
618
 
@@ -637,7 +637,7 @@ class WorkforceManagementApi {
637
637
  */
638
638
  getWorkforcemanagementAdherenceHistoricalBulkJob(jobId) {
639
639
  // verify the required parameter 'jobId' is set
640
- if (jobId === undefined || jobId === null) {
640
+ if (jobId === undefined || jobId === null || jobId === '') {
641
641
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceHistoricalBulkJob';
642
642
  }
643
643
 
@@ -662,7 +662,7 @@ class WorkforceManagementApi {
662
662
  */
663
663
  getWorkforcemanagementAdherenceHistoricalJob(jobId) {
664
664
  // verify the required parameter 'jobId' is set
665
- if (jobId === undefined || jobId === null) {
665
+ if (jobId === undefined || jobId === null || jobId === '') {
666
666
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceHistoricalJob';
667
667
  }
668
668
 
@@ -688,11 +688,11 @@ class WorkforceManagementApi {
688
688
  */
689
689
  getWorkforcemanagementAgentAdherenceExplanation(agentId, explanationId) {
690
690
  // verify the required parameter 'agentId' is set
691
- if (agentId === undefined || agentId === null) {
691
+ if (agentId === undefined || agentId === null || agentId === '') {
692
692
  throw 'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceExplanation';
693
693
  }
694
694
  // verify the required parameter 'explanationId' is set
695
- if (explanationId === undefined || explanationId === null) {
695
+ if (explanationId === undefined || explanationId === null || explanationId === '') {
696
696
  throw 'Missing the required parameter "explanationId" when calling getWorkforcemanagementAgentAdherenceExplanation';
697
697
  }
698
698
 
@@ -717,7 +717,7 @@ class WorkforceManagementApi {
717
717
  */
718
718
  getWorkforcemanagementAgentManagementunit(agentId) {
719
719
  // verify the required parameter 'agentId' is set
720
- if (agentId === undefined || agentId === null) {
720
+ if (agentId === undefined || agentId === null || agentId === '') {
721
721
  throw 'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentManagementunit';
722
722
  }
723
723
 
@@ -762,7 +762,7 @@ class WorkforceManagementApi {
762
762
  */
763
763
  getWorkforcemanagementAlternativeshiftsOffersJob(jobId) {
764
764
  // verify the required parameter 'jobId' is set
765
- if (jobId === undefined || jobId === null) {
765
+ if (jobId === undefined || jobId === null || jobId === '') {
766
766
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsOffersJob';
767
767
  }
768
768
 
@@ -787,7 +787,7 @@ class WorkforceManagementApi {
787
787
  */
788
788
  getWorkforcemanagementAlternativeshiftsOffersSearchJob(jobId) {
789
789
  // verify the required parameter 'jobId' is set
790
- if (jobId === undefined || jobId === null) {
790
+ if (jobId === undefined || jobId === null || jobId === '') {
791
791
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsOffersSearchJob';
792
792
  }
793
793
 
@@ -832,7 +832,7 @@ class WorkforceManagementApi {
832
832
  */
833
833
  getWorkforcemanagementAlternativeshiftsTrade(tradeId) {
834
834
  // verify the required parameter 'tradeId' is set
835
- if (tradeId === undefined || tradeId === null) {
835
+ if (tradeId === undefined || tradeId === null || tradeId === '') {
836
836
  throw 'Missing the required parameter "tradeId" when calling getWorkforcemanagementAlternativeshiftsTrade';
837
837
  }
838
838
 
@@ -881,7 +881,7 @@ class WorkforceManagementApi {
881
881
  */
882
882
  getWorkforcemanagementAlternativeshiftsTradesJob(jobId) {
883
883
  // verify the required parameter 'jobId' is set
884
- if (jobId === undefined || jobId === null) {
884
+ if (jobId === undefined || jobId === null || jobId === '') {
885
885
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsTradesJob';
886
886
  }
887
887
 
@@ -906,7 +906,7 @@ class WorkforceManagementApi {
906
906
  */
907
907
  getWorkforcemanagementAlternativeshiftsTradesStateJob(jobId) {
908
908
  // verify the required parameter 'jobId' is set
909
- if (jobId === undefined || jobId === null) {
909
+ if (jobId === undefined || jobId === null || jobId === '') {
910
910
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsTradesStateJob';
911
911
  }
912
912
 
@@ -935,7 +935,7 @@ class WorkforceManagementApi {
935
935
  opts = opts || {};
936
936
 
937
937
  // verify the required parameter 'businessUnitId' is set
938
- if (businessUnitId === undefined || businessUnitId === null) {
938
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
939
939
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunit';
940
940
  }
941
941
 
@@ -961,11 +961,11 @@ class WorkforceManagementApi {
961
961
  */
962
962
  getWorkforcemanagementBusinessunitActivitycode(businessUnitId, activityCodeId) {
963
963
  // verify the required parameter 'businessUnitId' is set
964
- if (businessUnitId === undefined || businessUnitId === null) {
964
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
965
965
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycode';
966
966
  }
967
967
  // verify the required parameter 'activityCodeId' is set
968
- if (activityCodeId === undefined || activityCodeId === null) {
968
+ if (activityCodeId === undefined || activityCodeId === null || activityCodeId === '') {
969
969
  throw 'Missing the required parameter "activityCodeId" when calling getWorkforcemanagementBusinessunitActivitycode';
970
970
  }
971
971
 
@@ -994,7 +994,7 @@ class WorkforceManagementApi {
994
994
  opts = opts || {};
995
995
 
996
996
  // verify the required parameter 'businessUnitId' is set
997
- if (businessUnitId === undefined || businessUnitId === null) {
997
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
998
998
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycodes';
999
999
  }
1000
1000
 
@@ -1020,11 +1020,11 @@ class WorkforceManagementApi {
1020
1020
  */
1021
1021
  getWorkforcemanagementBusinessunitActivityplan(businessUnitId, activityPlanId) {
1022
1022
  // verify the required parameter 'businessUnitId' is set
1023
- if (businessUnitId === undefined || businessUnitId === null) {
1023
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1024
1024
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';
1025
1025
  }
1026
1026
  // verify the required parameter 'activityPlanId' is set
1027
- if (activityPlanId === undefined || activityPlanId === null) {
1027
+ if (activityPlanId === undefined || activityPlanId === null || activityPlanId === '') {
1028
1028
  throw 'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';
1029
1029
  }
1030
1030
 
@@ -1051,15 +1051,15 @@ class WorkforceManagementApi {
1051
1051
  */
1052
1052
  getWorkforcemanagementBusinessunitActivityplanRunsJob(businessUnitId, activityPlanId, jobId) {
1053
1053
  // verify the required parameter 'businessUnitId' is set
1054
- if (businessUnitId === undefined || businessUnitId === null) {
1054
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1055
1055
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';
1056
1056
  }
1057
1057
  // verify the required parameter 'activityPlanId' is set
1058
- if (activityPlanId === undefined || activityPlanId === null) {
1058
+ if (activityPlanId === undefined || activityPlanId === null || activityPlanId === '') {
1059
1059
  throw 'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';
1060
1060
  }
1061
1061
  // verify the required parameter 'jobId' is set
1062
- if (jobId === undefined || jobId === null) {
1062
+ if (jobId === undefined || jobId === null || jobId === '') {
1063
1063
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';
1064
1064
  }
1065
1065
 
@@ -1088,7 +1088,7 @@ class WorkforceManagementApi {
1088
1088
  opts = opts || {};
1089
1089
 
1090
1090
  // verify the required parameter 'businessUnitId' is set
1091
- if (businessUnitId === undefined || businessUnitId === null) {
1091
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1092
1092
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplans';
1093
1093
  }
1094
1094
 
@@ -1113,7 +1113,7 @@ class WorkforceManagementApi {
1113
1113
  */
1114
1114
  getWorkforcemanagementBusinessunitActivityplansJobs(businessUnitId) {
1115
1115
  // verify the required parameter 'businessUnitId' is set
1116
- if (businessUnitId === undefined || businessUnitId === null) {
1116
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1117
1117
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplansJobs';
1118
1118
  }
1119
1119
 
@@ -1138,7 +1138,7 @@ class WorkforceManagementApi {
1138
1138
  */
1139
1139
  getWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId) {
1140
1140
  // verify the required parameter 'businessUnitId' is set
1141
- if (businessUnitId === undefined || businessUnitId === null) {
1141
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1142
1142
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsSettings';
1143
1143
  }
1144
1144
 
@@ -1164,11 +1164,11 @@ class WorkforceManagementApi {
1164
1164
  */
1165
1165
  getWorkforcemanagementBusinessunitAlternativeshiftsTrade(businessUnitId, tradeId) {
1166
1166
  // verify the required parameter 'businessUnitId' is set
1167
- if (businessUnitId === undefined || businessUnitId === null) {
1167
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1168
1168
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';
1169
1169
  }
1170
1170
  // verify the required parameter 'tradeId' is set
1171
- if (tradeId === undefined || tradeId === null) {
1171
+ if (tradeId === undefined || tradeId === null || tradeId === '') {
1172
1172
  throw 'Missing the required parameter "tradeId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';
1173
1173
  }
1174
1174
 
@@ -1194,11 +1194,11 @@ class WorkforceManagementApi {
1194
1194
  */
1195
1195
  getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(businessUnitId, jobId) {
1196
1196
  // verify the required parameter 'businessUnitId' is set
1197
- if (businessUnitId === undefined || businessUnitId === null) {
1197
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1198
1198
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';
1199
1199
  }
1200
1200
  // verify the required parameter 'jobId' is set
1201
- if (jobId === undefined || jobId === null) {
1201
+ if (jobId === undefined || jobId === null || jobId === '') {
1202
1202
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';
1203
1203
  }
1204
1204
 
@@ -1224,7 +1224,7 @@ class WorkforceManagementApi {
1224
1224
  */
1225
1225
  getWorkforcemanagementBusinessunitIntradayPlanninggroups(businessUnitId, _date) {
1226
1226
  // verify the required parameter 'businessUnitId' is set
1227
- if (businessUnitId === undefined || businessUnitId === null) {
1227
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1228
1228
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';
1229
1229
  }
1230
1230
  // verify the required parameter '_date' is set
@@ -1254,7 +1254,7 @@ class WorkforceManagementApi {
1254
1254
  */
1255
1255
  getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession(businessUnitId) {
1256
1256
  // verify the required parameter 'businessUnitId' is set
1257
- if (businessUnitId === undefined || businessUnitId === null) {
1257
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1258
1258
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession';
1259
1259
  }
1260
1260
 
@@ -1281,11 +1281,11 @@ class WorkforceManagementApi {
1281
1281
  */
1282
1282
  getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId(businessUnitId, sessionId) {
1283
1283
  // verify the required parameter 'businessUnitId' is set
1284
- if (businessUnitId === undefined || businessUnitId === null) {
1284
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1285
1285
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';
1286
1286
  }
1287
1287
  // verify the required parameter 'sessionId' is set
1288
- if (sessionId === undefined || sessionId === null) {
1288
+ if (sessionId === undefined || sessionId === null || sessionId === '') {
1289
1289
  throw 'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';
1290
1290
  }
1291
1291
 
@@ -1313,15 +1313,15 @@ class WorkforceManagementApi {
1313
1313
  */
1314
1314
  getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId(businessUnitId, sessionId, snapshotId) {
1315
1315
  // verify the required parameter 'businessUnitId' is set
1316
- if (businessUnitId === undefined || businessUnitId === null) {
1316
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1317
1317
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
1318
1318
  }
1319
1319
  // verify the required parameter 'sessionId' is set
1320
- if (sessionId === undefined || sessionId === null) {
1320
+ if (sessionId === undefined || sessionId === null || sessionId === '') {
1321
1321
  throw 'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
1322
1322
  }
1323
1323
  // verify the required parameter 'snapshotId' is set
1324
- if (snapshotId === undefined || snapshotId === null) {
1324
+ if (snapshotId === undefined || snapshotId === null || snapshotId === '') {
1325
1325
  throw 'Missing the required parameter "snapshotId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';
1326
1326
  }
1327
1327
 
@@ -1351,7 +1351,7 @@ class WorkforceManagementApi {
1351
1351
  opts = opts || {};
1352
1352
 
1353
1353
  // verify the required parameter 'businessUnitId' is set
1354
- if (businessUnitId === undefined || businessUnitId === null) {
1354
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1355
1355
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitManagementunits';
1356
1356
  }
1357
1357
 
@@ -1377,11 +1377,11 @@ class WorkforceManagementApi {
1377
1377
  */
1378
1378
  getWorkforcemanagementBusinessunitPlanninggroup(businessUnitId, planningGroupId) {
1379
1379
  // verify the required parameter 'businessUnitId' is set
1380
- if (businessUnitId === undefined || businessUnitId === null) {
1380
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1381
1381
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroup';
1382
1382
  }
1383
1383
  // verify the required parameter 'planningGroupId' is set
1384
- if (planningGroupId === undefined || planningGroupId === null) {
1384
+ if (planningGroupId === undefined || planningGroupId === null || planningGroupId === '') {
1385
1385
  throw 'Missing the required parameter "planningGroupId" when calling getWorkforcemanagementBusinessunitPlanninggroup';
1386
1386
  }
1387
1387
 
@@ -1406,7 +1406,7 @@ class WorkforceManagementApi {
1406
1406
  */
1407
1407
  getWorkforcemanagementBusinessunitPlanninggroups(businessUnitId) {
1408
1408
  // verify the required parameter 'businessUnitId' is set
1409
- if (businessUnitId === undefined || businessUnitId === null) {
1409
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1410
1410
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroups';
1411
1411
  }
1412
1412
 
@@ -1432,11 +1432,11 @@ class WorkforceManagementApi {
1432
1432
  */
1433
1433
  getWorkforcemanagementBusinessunitSchedulingRun(businessUnitId, runId) {
1434
1434
  // verify the required parameter 'businessUnitId' is set
1435
- if (businessUnitId === undefined || businessUnitId === null) {
1435
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1436
1436
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRun';
1437
1437
  }
1438
1438
  // verify the required parameter 'runId' is set
1439
- if (runId === undefined || runId === null) {
1439
+ if (runId === undefined || runId === null || runId === '') {
1440
1440
  throw 'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRun';
1441
1441
  }
1442
1442
 
@@ -1464,11 +1464,11 @@ class WorkforceManagementApi {
1464
1464
  */
1465
1465
  getWorkforcemanagementBusinessunitSchedulingRunResult(businessUnitId, runId, managementUnitIds, expand) {
1466
1466
  // verify the required parameter 'businessUnitId' is set
1467
- if (businessUnitId === undefined || businessUnitId === null) {
1467
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1468
1468
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';
1469
1469
  }
1470
1470
  // verify the required parameter 'runId' is set
1471
- if (runId === undefined || runId === null) {
1471
+ if (runId === undefined || runId === null || runId === '') {
1472
1472
  throw 'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';
1473
1473
  }
1474
1474
  // verify the required parameter 'managementUnitIds' is set
@@ -1501,7 +1501,7 @@ class WorkforceManagementApi {
1501
1501
  */
1502
1502
  getWorkforcemanagementBusinessunitSchedulingRuns(businessUnitId) {
1503
1503
  // verify the required parameter 'businessUnitId' is set
1504
- if (businessUnitId === undefined || businessUnitId === null) {
1504
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1505
1505
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRuns';
1506
1506
  }
1507
1507
 
@@ -1531,11 +1531,11 @@ class WorkforceManagementApi {
1531
1531
  opts = opts || {};
1532
1532
 
1533
1533
  // verify the required parameter 'businessUnitId' is set
1534
- if (businessUnitId === undefined || businessUnitId === null) {
1534
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1535
1535
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';
1536
1536
  }
1537
1537
  // verify the required parameter 'serviceGoalTemplateId' is set
1538
- if (serviceGoalTemplateId === undefined || serviceGoalTemplateId === null) {
1538
+ if (serviceGoalTemplateId === undefined || serviceGoalTemplateId === null || serviceGoalTemplateId === '') {
1539
1539
  throw 'Missing the required parameter "serviceGoalTemplateId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';
1540
1540
  }
1541
1541
 
@@ -1564,7 +1564,7 @@ class WorkforceManagementApi {
1564
1564
  opts = opts || {};
1565
1565
 
1566
1566
  // verify the required parameter 'businessUnitId' is set
1567
- if (businessUnitId === undefined || businessUnitId === null) {
1567
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1568
1568
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplates';
1569
1569
  }
1570
1570
 
@@ -1590,11 +1590,11 @@ class WorkforceManagementApi {
1590
1590
  */
1591
1591
  getWorkforcemanagementBusinessunitStaffinggroup(businessUnitId, staffingGroupId) {
1592
1592
  // verify the required parameter 'businessUnitId' is set
1593
- if (businessUnitId === undefined || businessUnitId === null) {
1593
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1594
1594
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroup';
1595
1595
  }
1596
1596
  // verify the required parameter 'staffingGroupId' is set
1597
- if (staffingGroupId === undefined || staffingGroupId === null) {
1597
+ if (staffingGroupId === undefined || staffingGroupId === null || staffingGroupId === '') {
1598
1598
  throw 'Missing the required parameter "staffingGroupId" when calling getWorkforcemanagementBusinessunitStaffinggroup';
1599
1599
  }
1600
1600
 
@@ -1618,12 +1618,13 @@ class WorkforceManagementApi {
1618
1618
  * @param {String} businessUnitId The ID of the business unit
1619
1619
  * @param {Object} opts Optional parameters
1620
1620
  * @param {String} opts.managementUnitId The ID of the management unit to get management unit specific staffing groups
1621
+ * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
1621
1622
  */
1622
1623
  getWorkforcemanagementBusinessunitStaffinggroups(businessUnitId, opts) {
1623
1624
  opts = opts || {};
1624
1625
 
1625
1626
  // verify the required parameter 'businessUnitId' is set
1626
- if (businessUnitId === undefined || businessUnitId === null) {
1627
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1627
1628
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroups';
1628
1629
  }
1629
1630
 
@@ -1631,7 +1632,7 @@ class WorkforceManagementApi {
1631
1632
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups',
1632
1633
  'GET',
1633
1634
  { 'businessUnitId': businessUnitId },
1634
- { 'managementUnitId': opts['managementUnitId'] },
1635
+ { 'managementUnitId': opts['managementUnitId'],'forceDownloadService': opts['forceDownloadService'] },
1635
1636
  { },
1636
1637
  { },
1637
1638
  null,
@@ -1649,11 +1650,11 @@ class WorkforceManagementApi {
1649
1650
  */
1650
1651
  getWorkforcemanagementBusinessunitTimeofflimit(businessUnitId, timeOffLimitId) {
1651
1652
  // verify the required parameter 'businessUnitId' is set
1652
- if (businessUnitId === undefined || businessUnitId === null) {
1653
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1653
1654
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';
1654
1655
  }
1655
1656
  // verify the required parameter 'timeOffLimitId' is set
1656
- if (timeOffLimitId === undefined || timeOffLimitId === null) {
1657
+ if (timeOffLimitId === undefined || timeOffLimitId === null || timeOffLimitId === '') {
1657
1658
  throw 'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';
1658
1659
  }
1659
1660
 
@@ -1682,7 +1683,7 @@ class WorkforceManagementApi {
1682
1683
  opts = opts || {};
1683
1684
 
1684
1685
  // verify the required parameter 'businessUnitId' is set
1685
- if (businessUnitId === undefined || businessUnitId === null) {
1686
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1686
1687
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimits';
1687
1688
  }
1688
1689
 
@@ -1708,11 +1709,11 @@ class WorkforceManagementApi {
1708
1709
  */
1709
1710
  getWorkforcemanagementBusinessunitTimeoffplan(businessUnitId, timeOffPlanId) {
1710
1711
  // verify the required parameter 'businessUnitId' is set
1711
- if (businessUnitId === undefined || businessUnitId === null) {
1712
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1712
1713
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplan';
1713
1714
  }
1714
1715
  // verify the required parameter 'timeOffPlanId' is set
1715
- if (timeOffPlanId === undefined || timeOffPlanId === null) {
1716
+ if (timeOffPlanId === undefined || timeOffPlanId === null || timeOffPlanId === '') {
1716
1717
  throw 'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementBusinessunitTimeoffplan';
1717
1718
  }
1718
1719
 
@@ -1742,7 +1743,7 @@ class WorkforceManagementApi {
1742
1743
  opts = opts || {};
1743
1744
 
1744
1745
  // verify the required parameter 'businessUnitId' is set
1745
- if (businessUnitId === undefined || businessUnitId === null) {
1746
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1746
1747
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplans';
1747
1748
  }
1748
1749
 
@@ -1773,7 +1774,7 @@ class WorkforceManagementApi {
1773
1774
  opts = opts || {};
1774
1775
 
1775
1776
  // verify the required parameter 'businessUnitId' is set
1776
- if (businessUnitId === undefined || businessUnitId === null) {
1777
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1777
1778
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedule';
1778
1779
  }
1779
1780
  // verify the required parameter 'weekId' is set
@@ -1781,7 +1782,7 @@ class WorkforceManagementApi {
1781
1782
  throw 'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedule';
1782
1783
  }
1783
1784
  // verify the required parameter 'scheduleId' is set
1784
- if (scheduleId === undefined || scheduleId === null) {
1785
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
1785
1786
  throw 'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedule';
1786
1787
  }
1787
1788
 
@@ -1808,7 +1809,7 @@ class WorkforceManagementApi {
1808
1809
  */
1809
1810
  getWorkforcemanagementBusinessunitWeekScheduleGenerationresults(businessUnitId, weekId, scheduleId) {
1810
1811
  // verify the required parameter 'businessUnitId' is set
1811
- if (businessUnitId === undefined || businessUnitId === null) {
1812
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1812
1813
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';
1813
1814
  }
1814
1815
  // verify the required parameter 'weekId' is set
@@ -1816,7 +1817,7 @@ class WorkforceManagementApi {
1816
1817
  throw 'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';
1817
1818
  }
1818
1819
  // verify the required parameter 'scheduleId' is set
1819
- if (scheduleId === undefined || scheduleId === null) {
1820
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
1820
1821
  throw 'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';
1821
1822
  }
1822
1823
 
@@ -1847,7 +1848,7 @@ class WorkforceManagementApi {
1847
1848
  opts = opts || {};
1848
1849
 
1849
1850
  // verify the required parameter 'businessUnitId' is set
1850
- if (businessUnitId === undefined || businessUnitId === null) {
1851
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1851
1852
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';
1852
1853
  }
1853
1854
  // verify the required parameter 'weekId' is set
@@ -1855,7 +1856,7 @@ class WorkforceManagementApi {
1855
1856
  throw 'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';
1856
1857
  }
1857
1858
  // verify the required parameter 'scheduleId' is set
1858
- if (scheduleId === undefined || scheduleId === null) {
1859
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
1859
1860
  throw 'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';
1860
1861
  }
1861
1862
 
@@ -1883,7 +1884,7 @@ class WorkforceManagementApi {
1883
1884
  */
1884
1885
  getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent(businessUnitId, weekId, scheduleId, agentId) {
1885
1886
  // verify the required parameter 'businessUnitId' is set
1886
- if (businessUnitId === undefined || businessUnitId === null) {
1887
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1887
1888
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';
1888
1889
  }
1889
1890
  // verify the required parameter 'weekId' is set
@@ -1891,11 +1892,11 @@ class WorkforceManagementApi {
1891
1892
  throw 'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';
1892
1893
  }
1893
1894
  // verify the required parameter 'scheduleId' is set
1894
- if (scheduleId === undefined || scheduleId === null) {
1895
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
1895
1896
  throw 'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';
1896
1897
  }
1897
1898
  // verify the required parameter 'agentId' is set
1898
- if (agentId === undefined || agentId === null) {
1899
+ if (agentId === undefined || agentId === null || agentId === '') {
1899
1900
  throw 'Missing the required parameter "agentId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';
1900
1901
  }
1901
1902
 
@@ -1922,15 +1923,15 @@ class WorkforceManagementApi {
1922
1923
  */
1923
1924
  getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions(businessUnitId, weekId, scheduleId) {
1924
1925
  // verify the required parameter 'businessUnitId' is set
1925
- if (businessUnitId === undefined || businessUnitId === null) {
1926
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1926
1927
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';
1927
1928
  }
1928
1929
  // verify the required parameter 'weekId' is set
1929
- if (weekId === undefined || weekId === null) {
1930
+ if (weekId === undefined || weekId === null || weekId === '') {
1930
1931
  throw 'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';
1931
1932
  }
1932
1933
  // verify the required parameter 'scheduleId' is set
1933
- if (scheduleId === undefined || scheduleId === null) {
1934
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
1934
1935
  throw 'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';
1935
1936
  }
1936
1937
 
@@ -1958,19 +1959,19 @@ class WorkforceManagementApi {
1958
1959
  */
1959
1960
  getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation(businessUnitId, weekId, scheduleId, recalculationId) {
1960
1961
  // verify the required parameter 'businessUnitId' is set
1961
- if (businessUnitId === undefined || businessUnitId === null) {
1962
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
1962
1963
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';
1963
1964
  }
1964
1965
  // verify the required parameter 'weekId' is set
1965
- if (weekId === undefined || weekId === null) {
1966
+ if (weekId === undefined || weekId === null || weekId === '') {
1966
1967
  throw 'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';
1967
1968
  }
1968
1969
  // verify the required parameter 'scheduleId' is set
1969
- if (scheduleId === undefined || scheduleId === null) {
1970
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
1970
1971
  throw 'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';
1971
1972
  }
1972
1973
  // verify the required parameter 'recalculationId' is set
1973
- if (recalculationId === undefined || recalculationId === null) {
1974
+ if (recalculationId === undefined || recalculationId === null || recalculationId === '') {
1974
1975
  throw 'Missing the required parameter "recalculationId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';
1975
1976
  }
1976
1977
 
@@ -2001,11 +2002,11 @@ class WorkforceManagementApi {
2001
2002
  opts = opts || {};
2002
2003
 
2003
2004
  // verify the required parameter 'businessUnitId' is set
2004
- if (businessUnitId === undefined || businessUnitId === null) {
2005
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2005
2006
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedules';
2006
2007
  }
2007
2008
  // verify the required parameter 'weekId' is set
2008
- if (weekId === undefined || weekId === null) {
2009
+ if (weekId === undefined || weekId === null || weekId === '') {
2009
2010
  throw 'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedules';
2010
2011
  }
2011
2012
 
@@ -2036,7 +2037,7 @@ class WorkforceManagementApi {
2036
2037
  opts = opts || {};
2037
2038
 
2038
2039
  // verify the required parameter 'businessUnitId' is set
2039
- if (businessUnitId === undefined || businessUnitId === null) {
2040
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2040
2041
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';
2041
2042
  }
2042
2043
  // verify the required parameter 'weekDateId' is set
@@ -2044,7 +2045,7 @@ class WorkforceManagementApi {
2044
2045
  throw 'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';
2045
2046
  }
2046
2047
  // verify the required parameter 'forecastId' is set
2047
- if (forecastId === undefined || forecastId === null) {
2048
+ if (forecastId === undefined || forecastId === null || forecastId === '') {
2048
2049
  throw 'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';
2049
2050
  }
2050
2051
 
@@ -2076,7 +2077,7 @@ class WorkforceManagementApi {
2076
2077
  opts = opts || {};
2077
2078
 
2078
2079
  // verify the required parameter 'businessUnitId' is set
2079
- if (businessUnitId === undefined || businessUnitId === null) {
2080
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2080
2081
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';
2081
2082
  }
2082
2083
  // verify the required parameter 'weekDateId' is set
@@ -2084,7 +2085,7 @@ class WorkforceManagementApi {
2084
2085
  throw 'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';
2085
2086
  }
2086
2087
  // verify the required parameter 'forecastId' is set
2087
- if (forecastId === undefined || forecastId === null) {
2088
+ if (forecastId === undefined || forecastId === null || forecastId === '') {
2088
2089
  throw 'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';
2089
2090
  }
2090
2091
 
@@ -2111,7 +2112,7 @@ class WorkforceManagementApi {
2111
2112
  */
2112
2113
  getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults(businessUnitId, weekDateId, forecastId) {
2113
2114
  // verify the required parameter 'businessUnitId' is set
2114
- if (businessUnitId === undefined || businessUnitId === null) {
2115
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2115
2116
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';
2116
2117
  }
2117
2118
  // verify the required parameter 'weekDateId' is set
@@ -2119,7 +2120,7 @@ class WorkforceManagementApi {
2119
2120
  throw 'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';
2120
2121
  }
2121
2122
  // verify the required parameter 'forecastId' is set
2122
- if (forecastId === undefined || forecastId === null) {
2123
+ if (forecastId === undefined || forecastId === null || forecastId === '') {
2123
2124
  throw 'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';
2124
2125
  }
2125
2126
 
@@ -2150,7 +2151,7 @@ class WorkforceManagementApi {
2150
2151
  opts = opts || {};
2151
2152
 
2152
2153
  // verify the required parameter 'businessUnitId' is set
2153
- if (businessUnitId === undefined || businessUnitId === null) {
2154
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2154
2155
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';
2155
2156
  }
2156
2157
  // verify the required parameter 'weekDateId' is set
@@ -2158,7 +2159,7 @@ class WorkforceManagementApi {
2158
2159
  throw 'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';
2159
2160
  }
2160
2161
  // verify the required parameter 'forecastId' is set
2161
- if (forecastId === undefined || forecastId === null) {
2162
+ if (forecastId === undefined || forecastId === null || forecastId === '') {
2162
2163
  throw 'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';
2163
2164
  }
2164
2165
 
@@ -2185,7 +2186,7 @@ class WorkforceManagementApi {
2185
2186
  */
2186
2187
  getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups(businessUnitId, weekDateId, forecastId) {
2187
2188
  // verify the required parameter 'businessUnitId' is set
2188
- if (businessUnitId === undefined || businessUnitId === null) {
2189
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2189
2190
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';
2190
2191
  }
2191
2192
  // verify the required parameter 'weekDateId' is set
@@ -2193,7 +2194,7 @@ class WorkforceManagementApi {
2193
2194
  throw 'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';
2194
2195
  }
2195
2196
  // verify the required parameter 'forecastId' is set
2196
- if (forecastId === undefined || forecastId === null) {
2197
+ if (forecastId === undefined || forecastId === null || forecastId === '') {
2197
2198
  throw 'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';
2198
2199
  }
2199
2200
 
@@ -2224,7 +2225,7 @@ class WorkforceManagementApi {
2224
2225
  opts = opts || {};
2225
2226
 
2226
2227
  // verify the required parameter 'businessUnitId' is set
2227
- if (businessUnitId === undefined || businessUnitId === null) {
2228
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2228
2229
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';
2229
2230
  }
2230
2231
  // verify the required parameter 'weekDateId' is set
@@ -2232,7 +2233,7 @@ class WorkforceManagementApi {
2232
2233
  throw 'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';
2233
2234
  }
2234
2235
  // verify the required parameter 'forecastId' is set
2235
- if (forecastId === undefined || forecastId === null) {
2236
+ if (forecastId === undefined || forecastId === null || forecastId === '') {
2236
2237
  throw 'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';
2237
2238
  }
2238
2239
 
@@ -2258,11 +2259,11 @@ class WorkforceManagementApi {
2258
2259
  */
2259
2260
  getWorkforcemanagementBusinessunitWeekShorttermforecasts(businessUnitId, weekDateId) {
2260
2261
  // verify the required parameter 'businessUnitId' is set
2261
- if (businessUnitId === undefined || businessUnitId === null) {
2262
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2262
2263
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';
2263
2264
  }
2264
2265
  // verify the required parameter 'weekDateId' is set
2265
- if (weekDateId === undefined || weekDateId === null) {
2266
+ if (weekDateId === undefined || weekDateId === null || weekDateId === '') {
2266
2267
  throw 'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';
2267
2268
  }
2268
2269
 
@@ -2288,11 +2289,11 @@ class WorkforceManagementApi {
2288
2289
  */
2289
2290
  getWorkforcemanagementBusinessunitWorkplanbid(businessUnitId, bidId) {
2290
2291
  // verify the required parameter 'businessUnitId' is set
2291
- if (businessUnitId === undefined || businessUnitId === null) {
2292
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2292
2293
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';
2293
2294
  }
2294
2295
  // verify the required parameter 'bidId' is set
2295
- if (bidId === undefined || bidId === null) {
2296
+ if (bidId === undefined || bidId === null || bidId === '') {
2296
2297
  throw 'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbid';
2297
2298
  }
2298
2299
 
@@ -2319,15 +2320,15 @@ class WorkforceManagementApi {
2319
2320
  */
2320
2321
  getWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId, bidId, bidGroupId) {
2321
2322
  // verify the required parameter 'businessUnitId' is set
2322
- if (businessUnitId === undefined || businessUnitId === null) {
2323
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2323
2324
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';
2324
2325
  }
2325
2326
  // verify the required parameter 'bidId' is set
2326
- if (bidId === undefined || bidId === null) {
2327
+ if (bidId === undefined || bidId === null || bidId === '') {
2327
2328
  throw 'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';
2328
2329
  }
2329
2330
  // verify the required parameter 'bidGroupId' is set
2330
- if (bidGroupId === undefined || bidGroupId === null) {
2331
+ if (bidGroupId === undefined || bidGroupId === null || bidGroupId === '') {
2331
2332
  throw 'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';
2332
2333
  }
2333
2334
 
@@ -2354,15 +2355,15 @@ class WorkforceManagementApi {
2354
2355
  */
2355
2356
  getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId, bidId, bidGroupId) {
2356
2357
  // verify the required parameter 'businessUnitId' is set
2357
- if (businessUnitId === undefined || businessUnitId === null) {
2358
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2358
2359
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';
2359
2360
  }
2360
2361
  // verify the required parameter 'bidId' is set
2361
- if (bidId === undefined || bidId === null) {
2362
+ if (bidId === undefined || bidId === null || bidId === '') {
2362
2363
  throw 'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';
2363
2364
  }
2364
2365
  // verify the required parameter 'bidGroupId' is set
2365
- if (bidGroupId === undefined || bidGroupId === null) {
2366
+ if (bidGroupId === undefined || bidGroupId === null || bidGroupId === '') {
2366
2367
  throw 'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';
2367
2368
  }
2368
2369
 
@@ -2388,11 +2389,11 @@ class WorkforceManagementApi {
2388
2389
  */
2389
2390
  getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(businessUnitId, bidId) {
2390
2391
  // verify the required parameter 'businessUnitId' is set
2391
- if (businessUnitId === undefined || businessUnitId === null) {
2392
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2392
2393
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';
2393
2394
  }
2394
2395
  // verify the required parameter 'bidId' is set
2395
- if (bidId === undefined || bidId === null) {
2396
+ if (bidId === undefined || bidId === null || bidId === '') {
2396
2397
  throw 'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';
2397
2398
  }
2398
2399
 
@@ -2417,7 +2418,7 @@ class WorkforceManagementApi {
2417
2418
  */
2418
2419
  getWorkforcemanagementBusinessunitWorkplanbids(businessUnitId) {
2419
2420
  // verify the required parameter 'businessUnitId' is set
2420
- if (businessUnitId === undefined || businessUnitId === null) {
2421
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
2421
2422
  throw 'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbids';
2422
2423
  }
2423
2424
 
@@ -2536,7 +2537,7 @@ class WorkforceManagementApi {
2536
2537
  */
2537
2538
  getWorkforcemanagementHistoricaldataBulkRemoveJob(jobId) {
2538
2539
  // verify the required parameter 'jobId' is set
2539
- if (jobId === undefined || jobId === null) {
2540
+ if (jobId === undefined || jobId === null || jobId === '') {
2540
2541
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementHistoricaldataBulkRemoveJob';
2541
2542
  }
2542
2543
 
@@ -2622,7 +2623,7 @@ class WorkforceManagementApi {
2622
2623
  */
2623
2624
  getWorkforcemanagementHistoricaldataImportstatusJobId(jobId) {
2624
2625
  // verify the required parameter 'jobId' is set
2625
- if (jobId === undefined || jobId === null) {
2626
+ if (jobId === undefined || jobId === null || jobId === '') {
2626
2627
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementHistoricaldataImportstatusJobId';
2627
2628
  }
2628
2629
 
@@ -2667,7 +2668,7 @@ class WorkforceManagementApi {
2667
2668
  */
2668
2669
  getWorkforcemanagementIntegrationsHrisTimeofftypesJob(jobId) {
2669
2670
  // verify the required parameter 'jobId' is set
2670
- if (jobId === undefined || jobId === null) {
2671
+ if (jobId === undefined || jobId === null || jobId === '') {
2671
2672
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementIntegrationsHrisTimeofftypesJob';
2672
2673
  }
2673
2674
 
@@ -2696,7 +2697,7 @@ class WorkforceManagementApi {
2696
2697
  opts = opts || {};
2697
2698
 
2698
2699
  // verify the required parameter 'managementUnitId' is set
2699
- if (managementUnitId === undefined || managementUnitId === null) {
2700
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
2700
2701
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunit';
2701
2702
  }
2702
2703
 
@@ -2722,7 +2723,7 @@ class WorkforceManagementApi {
2722
2723
  */
2723
2724
  getWorkforcemanagementManagementunitActivitycodes(managementUnitId) {
2724
2725
  // verify the required parameter 'managementUnitId' is set
2725
- if (managementUnitId === undefined || managementUnitId === null) {
2726
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
2726
2727
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitActivitycodes';
2727
2728
  }
2728
2729
 
@@ -2751,7 +2752,7 @@ class WorkforceManagementApi {
2751
2752
  opts = opts || {};
2752
2753
 
2753
2754
  // verify the required parameter 'managementUnitId' is set
2754
- if (managementUnitId === undefined || managementUnitId === null) {
2755
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
2755
2756
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAdherence';
2756
2757
  }
2757
2758
 
@@ -2782,11 +2783,11 @@ class WorkforceManagementApi {
2782
2783
  opts = opts || {};
2783
2784
 
2784
2785
  // verify the required parameter 'managementUnitId' is set
2785
- if (managementUnitId === undefined || managementUnitId === null) {
2786
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
2786
2787
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';
2787
2788
  }
2788
2789
  // verify the required parameter 'agentId' is set
2789
- if (agentId === undefined || agentId === null) {
2790
+ if (agentId === undefined || agentId === null || agentId === '') {
2790
2791
  throw 'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';
2791
2792
  }
2792
2793
 
@@ -2812,11 +2813,11 @@ class WorkforceManagementApi {
2812
2813
  */
2813
2814
  getWorkforcemanagementManagementunitAgentShifttrades(managementUnitId, agentId) {
2814
2815
  // verify the required parameter 'managementUnitId' is set
2815
- if (managementUnitId === undefined || managementUnitId === null) {
2816
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
2816
2817
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgentShifttrades';
2817
2818
  }
2818
2819
  // verify the required parameter 'agentId' is set
2819
- if (agentId === undefined || agentId === null) {
2820
+ if (agentId === undefined || agentId === null || agentId === '') {
2820
2821
  throw 'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgentShifttrades';
2821
2822
  }
2822
2823
 
@@ -2841,7 +2842,7 @@ class WorkforceManagementApi {
2841
2842
  */
2842
2843
  getWorkforcemanagementManagementunitShifttradesMatched(managementUnitId) {
2843
2844
  // verify the required parameter 'managementUnitId' is set
2844
- if (managementUnitId === undefined || managementUnitId === null) {
2845
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
2845
2846
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitShifttradesMatched';
2846
2847
  }
2847
2848
 
@@ -2866,7 +2867,7 @@ class WorkforceManagementApi {
2866
2867
  */
2867
2868
  getWorkforcemanagementManagementunitShifttradesUsers(managementUnitId) {
2868
2869
  // verify the required parameter 'managementUnitId' is set
2869
- if (managementUnitId === undefined || managementUnitId === null) {
2870
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
2870
2871
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitShifttradesUsers';
2871
2872
  }
2872
2873
 
@@ -2892,11 +2893,11 @@ class WorkforceManagementApi {
2892
2893
  */
2893
2894
  getWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
2894
2895
  // verify the required parameter 'managementUnitId' is set
2895
- if (managementUnitId === undefined || managementUnitId === null) {
2896
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
2896
2897
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
2897
2898
  }
2898
2899
  // verify the required parameter 'timeOffLimitId' is set
2899
- if (timeOffLimitId === undefined || timeOffLimitId === null) {
2900
+ if (timeOffLimitId === undefined || timeOffLimitId === null || timeOffLimitId === '') {
2900
2901
  throw 'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
2901
2902
  }
2902
2903
 
@@ -2921,7 +2922,7 @@ class WorkforceManagementApi {
2921
2922
  */
2922
2923
  getWorkforcemanagementManagementunitTimeofflimits(managementUnitId) {
2923
2924
  // verify the required parameter 'managementUnitId' is set
2924
- if (managementUnitId === undefined || managementUnitId === null) {
2925
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
2925
2926
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimits';
2926
2927
  }
2927
2928
 
@@ -2947,11 +2948,11 @@ class WorkforceManagementApi {
2947
2948
  */
2948
2949
  getWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
2949
2950
  // verify the required parameter 'managementUnitId' is set
2950
- if (managementUnitId === undefined || managementUnitId === null) {
2951
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
2951
2952
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';
2952
2953
  }
2953
2954
  // verify the required parameter 'timeOffPlanId' is set
2954
- if (timeOffPlanId === undefined || timeOffPlanId === null) {
2955
+ if (timeOffPlanId === undefined || timeOffPlanId === null || timeOffPlanId === '') {
2955
2956
  throw 'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';
2956
2957
  }
2957
2958
 
@@ -2976,7 +2977,7 @@ class WorkforceManagementApi {
2976
2977
  */
2977
2978
  getWorkforcemanagementManagementunitTimeoffplans(managementUnitId) {
2978
2979
  // verify the required parameter 'managementUnitId' is set
2979
- if (managementUnitId === undefined || managementUnitId === null) {
2980
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
2980
2981
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplans';
2981
2982
  }
2982
2983
 
@@ -3003,15 +3004,15 @@ class WorkforceManagementApi {
3003
3004
  */
3004
3005
  getWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId, userId, timeOffRequestId) {
3005
3006
  // verify the required parameter 'managementUnitId' is set
3006
- if (managementUnitId === undefined || managementUnitId === null) {
3007
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
3007
3008
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';
3008
3009
  }
3009
3010
  // verify the required parameter 'userId' is set
3010
- if (userId === undefined || userId === null) {
3011
+ if (userId === undefined || userId === null || userId === '') {
3011
3012
  throw 'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';
3012
3013
  }
3013
3014
  // verify the required parameter 'timeOffRequestId' is set
3014
- if (timeOffRequestId === undefined || timeOffRequestId === null) {
3015
+ if (timeOffRequestId === undefined || timeOffRequestId === null || timeOffRequestId === '') {
3015
3016
  throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';
3016
3017
  }
3017
3018
 
@@ -3038,15 +3039,15 @@ class WorkforceManagementApi {
3038
3039
  */
3039
3040
  getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(managementUnitId, userId, timeOffRequestId) {
3040
3041
  // verify the required parameter 'managementUnitId' is set
3041
- if (managementUnitId === undefined || managementUnitId === null) {
3042
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
3042
3043
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
3043
3044
  }
3044
3045
  // verify the required parameter 'userId' is set
3045
- if (userId === undefined || userId === null) {
3046
+ if (userId === undefined || userId === null || userId === '') {
3046
3047
  throw 'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
3047
3048
  }
3048
3049
  // verify the required parameter 'timeOffRequestId' is set
3049
- if (timeOffRequestId === undefined || timeOffRequestId === null) {
3050
+ if (timeOffRequestId === undefined || timeOffRequestId === null || timeOffRequestId === '') {
3050
3051
  throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
3051
3052
  }
3052
3053
 
@@ -3072,11 +3073,11 @@ class WorkforceManagementApi {
3072
3073
  */
3073
3074
  getWorkforcemanagementManagementunitUserTimeoffrequests(managementUnitId, userId) {
3074
3075
  // verify the required parameter 'managementUnitId' is set
3075
- if (managementUnitId === undefined || managementUnitId === null) {
3076
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
3076
3077
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';
3077
3078
  }
3078
3079
  // verify the required parameter 'userId' is set
3079
- if (userId === undefined || userId === null) {
3080
+ if (userId === undefined || userId === null || userId === '') {
3080
3081
  throw 'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';
3081
3082
  }
3082
3083
 
@@ -3101,7 +3102,7 @@ class WorkforceManagementApi {
3101
3102
  */
3102
3103
  getWorkforcemanagementManagementunitUsers(managementUnitId) {
3103
3104
  // verify the required parameter 'managementUnitId' is set
3104
- if (managementUnitId === undefined || managementUnitId === null) {
3105
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
3105
3106
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUsers';
3106
3107
  }
3107
3108
 
@@ -3134,15 +3135,15 @@ class WorkforceManagementApi {
3134
3135
  opts = opts || {};
3135
3136
 
3136
3137
  // verify the required parameter 'managementUnitId' is set
3137
- if (managementUnitId === undefined || managementUnitId === null) {
3138
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
3138
3139
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedule';
3139
3140
  }
3140
3141
  // verify the required parameter 'weekId' is set
3141
- if (weekId === undefined || weekId === null) {
3142
+ if (weekId === undefined || weekId === null || weekId === '') {
3142
3143
  throw 'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedule';
3143
3144
  }
3144
3145
  // verify the required parameter 'scheduleId' is set
3145
- if (scheduleId === undefined || scheduleId === null) {
3146
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
3146
3147
  throw 'Missing the required parameter "scheduleId" when calling getWorkforcemanagementManagementunitWeekSchedule';
3147
3148
  }
3148
3149
 
@@ -3175,11 +3176,11 @@ class WorkforceManagementApi {
3175
3176
  opts = opts || {};
3176
3177
 
3177
3178
  // verify the required parameter 'managementUnitId' is set
3178
- if (managementUnitId === undefined || managementUnitId === null) {
3179
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
3179
3180
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedules';
3180
3181
  }
3181
3182
  // verify the required parameter 'weekId' is set
3182
- if (weekId === undefined || weekId === null) {
3183
+ if (weekId === undefined || weekId === null || weekId === '') {
3183
3184
  throw 'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedules';
3184
3185
  }
3185
3186
 
@@ -3211,7 +3212,7 @@ class WorkforceManagementApi {
3211
3212
  opts = opts || {};
3212
3213
 
3213
3214
  // verify the required parameter 'managementUnitId' is set
3214
- if (managementUnitId === undefined || managementUnitId === null) {
3215
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
3215
3216
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';
3216
3217
  }
3217
3218
  // verify the required parameter 'weekDateId' is set
@@ -3245,11 +3246,11 @@ class WorkforceManagementApi {
3245
3246
  opts = opts || {};
3246
3247
 
3247
3248
  // verify the required parameter 'managementUnitId' is set
3248
- if (managementUnitId === undefined || managementUnitId === null) {
3249
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
3249
3250
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplan';
3250
3251
  }
3251
3252
  // verify the required parameter 'workPlanId' is set
3252
- if (workPlanId === undefined || workPlanId === null) {
3253
+ if (workPlanId === undefined || workPlanId === null || workPlanId === '') {
3253
3254
  throw 'Missing the required parameter "workPlanId" when calling getWorkforcemanagementManagementunitWorkplan';
3254
3255
  }
3255
3256
 
@@ -3275,11 +3276,11 @@ class WorkforceManagementApi {
3275
3276
  */
3276
3277
  getWorkforcemanagementManagementunitWorkplanrotation(managementUnitId, workPlanRotationId) {
3277
3278
  // verify the required parameter 'managementUnitId' is set
3278
- if (managementUnitId === undefined || managementUnitId === null) {
3279
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
3279
3280
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotation';
3280
3281
  }
3281
3282
  // verify the required parameter 'workPlanRotationId' is set
3282
- if (workPlanRotationId === undefined || workPlanRotationId === null) {
3283
+ if (workPlanRotationId === undefined || workPlanRotationId === null || workPlanRotationId === '') {
3283
3284
  throw 'Missing the required parameter "workPlanRotationId" when calling getWorkforcemanagementManagementunitWorkplanrotation';
3284
3285
  }
3285
3286
 
@@ -3308,7 +3309,7 @@ class WorkforceManagementApi {
3308
3309
  opts = opts || {};
3309
3310
 
3310
3311
  // verify the required parameter 'managementUnitId' is set
3311
- if (managementUnitId === undefined || managementUnitId === null) {
3312
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
3312
3313
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotations';
3313
3314
  }
3314
3315
 
@@ -3338,7 +3339,7 @@ class WorkforceManagementApi {
3338
3339
  opts = opts || {};
3339
3340
 
3340
3341
  // verify the required parameter 'managementUnitId' is set
3341
- if (managementUnitId === undefined || managementUnitId === null) {
3342
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
3342
3343
  throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplans';
3343
3344
  }
3344
3345
 
@@ -3435,7 +3436,7 @@ class WorkforceManagementApi {
3435
3436
  */
3436
3437
  getWorkforcemanagementSchedulingjob(jobId) {
3437
3438
  // verify the required parameter 'jobId' is set
3438
- if (jobId === undefined || jobId === null) {
3439
+ if (jobId === undefined || jobId === null || jobId === '') {
3439
3440
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementSchedulingjob';
3440
3441
  }
3441
3442
 
@@ -3480,7 +3481,7 @@ class WorkforceManagementApi {
3480
3481
  */
3481
3482
  getWorkforcemanagementShrinkageJob(jobId) {
3482
3483
  // verify the required parameter 'jobId' is set
3483
- if (jobId === undefined || jobId === null) {
3484
+ if (jobId === undefined || jobId === null || jobId === '') {
3484
3485
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementShrinkageJob';
3485
3486
  }
3486
3487
 
@@ -3505,7 +3506,7 @@ class WorkforceManagementApi {
3505
3506
  */
3506
3507
  getWorkforcemanagementTimeoffbalanceJob(jobId) {
3507
3508
  // verify the required parameter 'jobId' is set
3508
- if (jobId === undefined || jobId === null) {
3509
+ if (jobId === undefined || jobId === null || jobId === '') {
3509
3510
  throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementTimeoffbalanceJob';
3510
3511
  }
3511
3512
 
@@ -3530,7 +3531,7 @@ class WorkforceManagementApi {
3530
3531
  */
3531
3532
  getWorkforcemanagementTimeoffrequest(timeOffRequestId) {
3532
3533
  // verify the required parameter 'timeOffRequestId' is set
3533
- if (timeOffRequestId === undefined || timeOffRequestId === null) {
3534
+ if (timeOffRequestId === undefined || timeOffRequestId === null || timeOffRequestId === '') {
3534
3535
  throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequest';
3535
3536
  }
3536
3537
 
@@ -3555,7 +3556,7 @@ class WorkforceManagementApi {
3555
3556
  */
3556
3557
  getWorkforcemanagementTimeoffrequestWaitlistpositions(timeOffRequestId) {
3557
3558
  // verify the required parameter 'timeOffRequestId' is set
3558
- if (timeOffRequestId === undefined || timeOffRequestId === null) {
3559
+ if (timeOffRequestId === undefined || timeOffRequestId === null || timeOffRequestId === '') {
3559
3560
  throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequestWaitlistpositions';
3560
3561
  }
3561
3562
 
@@ -3600,7 +3601,7 @@ class WorkforceManagementApi {
3600
3601
  */
3601
3602
  getWorkforcemanagementUserWorkplanbidranks(userId) {
3602
3603
  // verify the required parameter 'userId' is set
3603
- if (userId === undefined || userId === null) {
3604
+ if (userId === undefined || userId === null || userId === '') {
3604
3605
  throw 'Missing the required parameter "userId" when calling getWorkforcemanagementUserWorkplanbidranks';
3605
3606
  }
3606
3607
 
@@ -3625,7 +3626,7 @@ class WorkforceManagementApi {
3625
3626
  */
3626
3627
  getWorkforcemanagementWorkplanbidPreferences(bidId) {
3627
3628
  // verify the required parameter 'bidId' is set
3628
- if (bidId === undefined || bidId === null) {
3629
+ if (bidId === undefined || bidId === null || bidId === '') {
3629
3630
  throw 'Missing the required parameter "bidId" when calling getWorkforcemanagementWorkplanbidPreferences';
3630
3631
  }
3631
3632
 
@@ -3650,7 +3651,7 @@ class WorkforceManagementApi {
3650
3651
  */
3651
3652
  getWorkforcemanagementWorkplanbidWorkplans(bidId) {
3652
3653
  // verify the required parameter 'bidId' is set
3653
- if (bidId === undefined || bidId === null) {
3654
+ if (bidId === undefined || bidId === null || bidId === '') {
3654
3655
  throw 'Missing the required parameter "bidId" when calling getWorkforcemanagementWorkplanbidWorkplans';
3655
3656
  }
3656
3657
 
@@ -3697,11 +3698,11 @@ class WorkforceManagementApi {
3697
3698
  */
3698
3699
  patchWorkforcemanagementAgentAdherenceExplanation(agentId, explanationId, body) {
3699
3700
  // verify the required parameter 'agentId' is set
3700
- if (agentId === undefined || agentId === null) {
3701
+ if (agentId === undefined || agentId === null || agentId === '') {
3701
3702
  throw 'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';
3702
3703
  }
3703
3704
  // verify the required parameter 'explanationId' is set
3704
- if (explanationId === undefined || explanationId === null) {
3705
+ if (explanationId === undefined || explanationId === null || explanationId === '') {
3705
3706
  throw 'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';
3706
3707
  }
3707
3708
  // verify the required parameter 'body' is set
@@ -3731,7 +3732,7 @@ class WorkforceManagementApi {
3731
3732
  */
3732
3733
  patchWorkforcemanagementAlternativeshiftsTrade(tradeId, body) {
3733
3734
  // verify the required parameter 'tradeId' is set
3734
- if (tradeId === undefined || tradeId === null) {
3735
+ if (tradeId === undefined || tradeId === null || tradeId === '') {
3735
3736
  throw 'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';
3736
3737
  }
3737
3738
  // verify the required parameter 'body' is set
@@ -3786,7 +3787,7 @@ class WorkforceManagementApi {
3786
3787
  */
3787
3788
  patchWorkforcemanagementBusinessunit(businessUnitId, body) {
3788
3789
  // verify the required parameter 'businessUnitId' is set
3789
- if (businessUnitId === undefined || businessUnitId === null) {
3790
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
3790
3791
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';
3791
3792
  }
3792
3793
  // verify the required parameter 'body' is set
@@ -3817,11 +3818,11 @@ class WorkforceManagementApi {
3817
3818
  */
3818
3819
  patchWorkforcemanagementBusinessunitActivitycode(businessUnitId, activityCodeId, body) {
3819
3820
  // verify the required parameter 'businessUnitId' is set
3820
- if (businessUnitId === undefined || businessUnitId === null) {
3821
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
3821
3822
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';
3822
3823
  }
3823
3824
  // verify the required parameter 'activityCodeId' is set
3824
- if (activityCodeId === undefined || activityCodeId === null) {
3825
+ if (activityCodeId === undefined || activityCodeId === null || activityCodeId === '') {
3825
3826
  throw 'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';
3826
3827
  }
3827
3828
  // verify the required parameter 'body' is set
@@ -3852,11 +3853,11 @@ class WorkforceManagementApi {
3852
3853
  */
3853
3854
  patchWorkforcemanagementBusinessunitActivityplan(businessUnitId, activityPlanId, body) {
3854
3855
  // verify the required parameter 'businessUnitId' is set
3855
- if (businessUnitId === undefined || businessUnitId === null) {
3856
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
3856
3857
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';
3857
3858
  }
3858
3859
  // verify the required parameter 'activityPlanId' is set
3859
- if (activityPlanId === undefined || activityPlanId === null) {
3860
+ if (activityPlanId === undefined || activityPlanId === null || activityPlanId === '') {
3860
3861
  throw 'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';
3861
3862
  }
3862
3863
  // verify the required parameter 'body' is set
@@ -3886,7 +3887,7 @@ class WorkforceManagementApi {
3886
3887
  */
3887
3888
  patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId, body) {
3888
3889
  // verify the required parameter 'businessUnitId' is set
3889
- if (businessUnitId === undefined || businessUnitId === null) {
3890
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
3890
3891
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';
3891
3892
  }
3892
3893
  // verify the required parameter 'body' is set
@@ -3917,11 +3918,11 @@ class WorkforceManagementApi {
3917
3918
  */
3918
3919
  patchWorkforcemanagementBusinessunitPlanninggroup(businessUnitId, planningGroupId, body) {
3919
3920
  // verify the required parameter 'businessUnitId' is set
3920
- if (businessUnitId === undefined || businessUnitId === null) {
3921
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
3921
3922
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';
3922
3923
  }
3923
3924
  // verify the required parameter 'planningGroupId' is set
3924
- if (planningGroupId === undefined || planningGroupId === null) {
3925
+ if (planningGroupId === undefined || planningGroupId === null || planningGroupId === '') {
3925
3926
  throw 'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';
3926
3927
  }
3927
3928
  // verify the required parameter 'body' is set
@@ -3952,11 +3953,11 @@ class WorkforceManagementApi {
3952
3953
  */
3953
3954
  patchWorkforcemanagementBusinessunitSchedulingRun(businessUnitId, runId, body) {
3954
3955
  // verify the required parameter 'businessUnitId' is set
3955
- if (businessUnitId === undefined || businessUnitId === null) {
3956
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
3956
3957
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';
3957
3958
  }
3958
3959
  // verify the required parameter 'runId' is set
3959
- if (runId === undefined || runId === null) {
3960
+ if (runId === undefined || runId === null || runId === '') {
3960
3961
  throw 'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';
3961
3962
  }
3962
3963
  // verify the required parameter 'body' is set
@@ -3987,11 +3988,11 @@ class WorkforceManagementApi {
3987
3988
  */
3988
3989
  patchWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId, serviceGoalTemplateId, body) {
3989
3990
  // verify the required parameter 'businessUnitId' is set
3990
- if (businessUnitId === undefined || businessUnitId === null) {
3991
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
3991
3992
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';
3992
3993
  }
3993
3994
  // verify the required parameter 'serviceGoalTemplateId' is set
3994
- if (serviceGoalTemplateId === undefined || serviceGoalTemplateId === null) {
3995
+ if (serviceGoalTemplateId === undefined || serviceGoalTemplateId === null || serviceGoalTemplateId === '') {
3995
3996
  throw 'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';
3996
3997
  }
3997
3998
  // verify the required parameter 'body' is set
@@ -4022,11 +4023,11 @@ class WorkforceManagementApi {
4022
4023
  */
4023
4024
  patchWorkforcemanagementBusinessunitStaffinggroup(businessUnitId, staffingGroupId, body) {
4024
4025
  // verify the required parameter 'businessUnitId' is set
4025
- if (businessUnitId === undefined || businessUnitId === null) {
4026
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
4026
4027
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';
4027
4028
  }
4028
4029
  // verify the required parameter 'staffingGroupId' is set
4029
- if (staffingGroupId === undefined || staffingGroupId === null) {
4030
+ if (staffingGroupId === undefined || staffingGroupId === null || staffingGroupId === '') {
4030
4031
  throw 'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';
4031
4032
  }
4032
4033
  // verify the required parameter 'body' is set
@@ -4057,11 +4058,11 @@ class WorkforceManagementApi {
4057
4058
  */
4058
4059
  patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId, timeOffPlanId, body) {
4059
4060
  // verify the required parameter 'businessUnitId' is set
4060
- if (businessUnitId === undefined || businessUnitId === null) {
4061
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
4061
4062
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';
4062
4063
  }
4063
4064
  // verify the required parameter 'timeOffPlanId' is set
4064
- if (timeOffPlanId === undefined || timeOffPlanId === null) {
4065
+ if (timeOffPlanId === undefined || timeOffPlanId === null || timeOffPlanId === '') {
4065
4066
  throw 'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';
4066
4067
  }
4067
4068
  // verify the required parameter 'body' is set
@@ -4092,11 +4093,11 @@ class WorkforceManagementApi {
4092
4093
  */
4093
4094
  patchWorkforcemanagementBusinessunitWorkplanbid(businessUnitId, bidId, body) {
4094
4095
  // verify the required parameter 'businessUnitId' is set
4095
- if (businessUnitId === undefined || businessUnitId === null) {
4096
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
4096
4097
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';
4097
4098
  }
4098
4099
  // verify the required parameter 'bidId' is set
4099
- if (bidId === undefined || bidId === null) {
4100
+ if (bidId === undefined || bidId === null || bidId === '') {
4100
4101
  throw 'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';
4101
4102
  }
4102
4103
  // verify the required parameter 'body' is set
@@ -4128,15 +4129,15 @@ class WorkforceManagementApi {
4128
4129
  */
4129
4130
  patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId, bidId, bidGroupId, body) {
4130
4131
  // verify the required parameter 'businessUnitId' is set
4131
- if (businessUnitId === undefined || businessUnitId === null) {
4132
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
4132
4133
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';
4133
4134
  }
4134
4135
  // verify the required parameter 'bidId' is set
4135
- if (bidId === undefined || bidId === null) {
4136
+ if (bidId === undefined || bidId === null || bidId === '') {
4136
4137
  throw 'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';
4137
4138
  }
4138
4139
  // verify the required parameter 'bidGroupId' is set
4139
- if (bidGroupId === undefined || bidGroupId === null) {
4140
+ if (bidGroupId === undefined || bidGroupId === null || bidGroupId === '') {
4140
4141
  throw 'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';
4141
4142
  }
4142
4143
  // verify the required parameter 'body' is set
@@ -4168,15 +4169,15 @@ class WorkforceManagementApi {
4168
4169
  */
4169
4170
  patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId, bidId, bidGroupId, body) {
4170
4171
  // verify the required parameter 'businessUnitId' is set
4171
- if (businessUnitId === undefined || businessUnitId === null) {
4172
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
4172
4173
  throw 'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';
4173
4174
  }
4174
4175
  // verify the required parameter 'bidId' is set
4175
- if (bidId === undefined || bidId === null) {
4176
+ if (bidId === undefined || bidId === null || bidId === '') {
4176
4177
  throw 'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';
4177
4178
  }
4178
4179
  // verify the required parameter 'bidGroupId' is set
4179
- if (bidGroupId === undefined || bidGroupId === null) {
4180
+ if (bidGroupId === undefined || bidGroupId === null || bidGroupId === '') {
4180
4181
  throw 'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';
4181
4182
  }
4182
4183
  // verify the required parameter 'body' is set
@@ -4206,7 +4207,7 @@ class WorkforceManagementApi {
4206
4207
  */
4207
4208
  patchWorkforcemanagementManagementunit(managementUnitId, body) {
4208
4209
  // verify the required parameter 'managementUnitId' is set
4209
- if (managementUnitId === undefined || managementUnitId === null) {
4210
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
4210
4211
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';
4211
4212
  }
4212
4213
  // verify the required parameter 'body' is set
@@ -4236,7 +4237,7 @@ class WorkforceManagementApi {
4236
4237
  */
4237
4238
  patchWorkforcemanagementManagementunitAgents(managementUnitId, body) {
4238
4239
  // verify the required parameter 'managementUnitId' is set
4239
- if (managementUnitId === undefined || managementUnitId === null) {
4240
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
4240
4241
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';
4241
4242
  }
4242
4243
  // verify the required parameter 'body' is set
@@ -4266,7 +4267,7 @@ class WorkforceManagementApi {
4266
4267
  */
4267
4268
  patchWorkforcemanagementManagementunitAgentsWorkplansBulk(managementUnitId, body) {
4268
4269
  // verify the required parameter 'managementUnitId' is set
4269
- if (managementUnitId === undefined || managementUnitId === null) {
4270
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
4270
4271
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';
4271
4272
  }
4272
4273
  // verify the required parameter 'body' is set
@@ -4297,11 +4298,11 @@ class WorkforceManagementApi {
4297
4298
  */
4298
4299
  patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId, body) {
4299
4300
  // verify the required parameter 'managementUnitId' is set
4300
- if (managementUnitId === undefined || managementUnitId === null) {
4301
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
4301
4302
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
4302
4303
  }
4303
4304
  // verify the required parameter 'timeOffLimitId' is set
4304
- if (timeOffLimitId === undefined || timeOffLimitId === null) {
4305
+ if (timeOffLimitId === undefined || timeOffLimitId === null || timeOffLimitId === '') {
4305
4306
  throw 'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
4306
4307
  }
4307
4308
  // verify the required parameter 'body' is set
@@ -4332,11 +4333,11 @@ class WorkforceManagementApi {
4332
4333
  */
4333
4334
  patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId, body) {
4334
4335
  // verify the required parameter 'managementUnitId' is set
4335
- if (managementUnitId === undefined || managementUnitId === null) {
4336
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
4336
4337
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
4337
4338
  }
4338
4339
  // verify the required parameter 'timeOffPlanId' is set
4339
- if (timeOffPlanId === undefined || timeOffPlanId === null) {
4340
+ if (timeOffPlanId === undefined || timeOffPlanId === null || timeOffPlanId === '') {
4340
4341
  throw 'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
4341
4342
  }
4342
4343
  // verify the required parameter 'body' is set
@@ -4368,15 +4369,15 @@ class WorkforceManagementApi {
4368
4369
  */
4369
4370
  patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId, timeOffRequestId, userId, body) {
4370
4371
  // verify the required parameter 'managementUnitId' is set
4371
- if (managementUnitId === undefined || managementUnitId === null) {
4372
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
4372
4373
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';
4373
4374
  }
4374
4375
  // verify the required parameter 'timeOffRequestId' is set
4375
- if (timeOffRequestId === undefined || timeOffRequestId === null) {
4376
+ if (timeOffRequestId === undefined || timeOffRequestId === null || timeOffRequestId === '') {
4376
4377
  throw 'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';
4377
4378
  }
4378
4379
  // verify the required parameter 'userId' is set
4379
- if (userId === undefined || userId === null) {
4380
+ if (userId === undefined || userId === null || userId === '') {
4380
4381
  throw 'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';
4381
4382
  }
4382
4383
  // verify the required parameter 'body' is set
@@ -4408,15 +4409,15 @@ class WorkforceManagementApi {
4408
4409
  */
4409
4410
  patchWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId, userId, timeOffRequestId, body) {
4410
4411
  // verify the required parameter 'managementUnitId' is set
4411
- if (managementUnitId === undefined || managementUnitId === null) {
4412
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
4412
4413
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';
4413
4414
  }
4414
4415
  // verify the required parameter 'userId' is set
4415
- if (userId === undefined || userId === null) {
4416
+ if (userId === undefined || userId === null || userId === '') {
4416
4417
  throw 'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';
4417
4418
  }
4418
4419
  // verify the required parameter 'timeOffRequestId' is set
4419
- if (timeOffRequestId === undefined || timeOffRequestId === null) {
4420
+ if (timeOffRequestId === undefined || timeOffRequestId === null || timeOffRequestId === '') {
4420
4421
  throw 'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';
4421
4422
  }
4422
4423
  // verify the required parameter 'body' is set
@@ -4448,7 +4449,7 @@ class WorkforceManagementApi {
4448
4449
  */
4449
4450
  patchWorkforcemanagementManagementunitWeekShifttrade(managementUnitId, weekDateId, tradeId, body) {
4450
4451
  // verify the required parameter 'managementUnitId' is set
4451
- if (managementUnitId === undefined || managementUnitId === null) {
4452
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
4452
4453
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';
4453
4454
  }
4454
4455
  // verify the required parameter 'weekDateId' is set
@@ -4456,7 +4457,7 @@ class WorkforceManagementApi {
4456
4457
  throw 'Missing the required parameter "weekDateId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';
4457
4458
  }
4458
4459
  // verify the required parameter 'tradeId' is set
4459
- if (tradeId === undefined || tradeId === null) {
4460
+ if (tradeId === undefined || tradeId === null || tradeId === '') {
4460
4461
  throw 'Missing the required parameter "tradeId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';
4461
4462
  }
4462
4463
  // verify the required parameter 'body' is set
@@ -4491,11 +4492,11 @@ class WorkforceManagementApi {
4491
4492
  opts = opts || {};
4492
4493
 
4493
4494
  // verify the required parameter 'managementUnitId' is set
4494
- if (managementUnitId === undefined || managementUnitId === null) {
4495
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
4495
4496
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';
4496
4497
  }
4497
4498
  // verify the required parameter 'workPlanId' is set
4498
- if (workPlanId === undefined || workPlanId === null) {
4499
+ if (workPlanId === undefined || workPlanId === null || workPlanId === '') {
4499
4500
  throw 'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';
4500
4501
  }
4501
4502
  // verify the required parameter 'body' is set
@@ -4526,11 +4527,11 @@ class WorkforceManagementApi {
4526
4527
  */
4527
4528
  patchWorkforcemanagementManagementunitWorkplanrotation(managementUnitId, workPlanRotationId, body) {
4528
4529
  // verify the required parameter 'managementUnitId' is set
4529
- if (managementUnitId === undefined || managementUnitId === null) {
4530
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
4530
4531
  throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';
4531
4532
  }
4532
4533
  // verify the required parameter 'workPlanRotationId' is set
4533
- if (workPlanRotationId === undefined || workPlanRotationId === null) {
4534
+ if (workPlanRotationId === undefined || workPlanRotationId === null || workPlanRotationId === '') {
4534
4535
  throw 'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';
4535
4536
  }
4536
4537
  // verify the required parameter 'body' is set
@@ -4560,7 +4561,7 @@ class WorkforceManagementApi {
4560
4561
  */
4561
4562
  patchWorkforcemanagementTimeoffrequest(timeOffRequestId, body) {
4562
4563
  // verify the required parameter 'timeOffRequestId' is set
4563
- if (timeOffRequestId === undefined || timeOffRequestId === null) {
4564
+ if (timeOffRequestId === undefined || timeOffRequestId === null || timeOffRequestId === '') {
4564
4565
  throw 'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';
4565
4566
  }
4566
4567
  // verify the required parameter 'body' is set
@@ -4590,7 +4591,7 @@ class WorkforceManagementApi {
4590
4591
  */
4591
4592
  patchWorkforcemanagementUserWorkplanbidranks(userId, body) {
4592
4593
  // verify the required parameter 'userId' is set
4593
- if (userId === undefined || userId === null) {
4594
+ if (userId === undefined || userId === null || userId === '') {
4594
4595
  throw 'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';
4595
4596
  }
4596
4597
  // verify the required parameter 'body' is set
@@ -4645,7 +4646,7 @@ class WorkforceManagementApi {
4645
4646
  */
4646
4647
  patchWorkforcemanagementWorkplanbidPreferences(bidId, body) {
4647
4648
  // verify the required parameter 'bidId' is set
4648
- if (bidId === undefined || bidId === null) {
4649
+ if (bidId === undefined || bidId === null || bidId === '') {
4649
4650
  throw 'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';
4650
4651
  }
4651
4652
  // verify the required parameter 'body' is set
@@ -4780,7 +4781,7 @@ class WorkforceManagementApi {
4780
4781
  */
4781
4782
  postWorkforcemanagementAgentAdherenceExplanations(agentId, body) {
4782
4783
  // verify the required parameter 'agentId' is set
4783
- if (agentId === undefined || agentId === null) {
4784
+ if (agentId === undefined || agentId === null || agentId === '') {
4784
4785
  throw 'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanations';
4785
4786
  }
4786
4787
  // verify the required parameter 'body' is set
@@ -4815,7 +4816,7 @@ class WorkforceManagementApi {
4815
4816
  opts = opts || {};
4816
4817
 
4817
4818
  // verify the required parameter 'agentId' is set
4818
- if (agentId === undefined || agentId === null) {
4819
+ if (agentId === undefined || agentId === null || agentId === '') {
4819
4820
  throw 'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';
4820
4821
  }
4821
4822
  // verify the required parameter 'body' is set
@@ -5020,7 +5021,7 @@ class WorkforceManagementApi {
5020
5021
  */
5021
5022
  postWorkforcemanagementBusinessunitActivitycodes(businessUnitId, body) {
5022
5023
  // verify the required parameter 'businessUnitId' is set
5023
- if (businessUnitId === undefined || businessUnitId === null) {
5024
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5024
5025
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';
5025
5026
  }
5026
5027
  // verify the required parameter 'body' is set
@@ -5050,11 +5051,11 @@ class WorkforceManagementApi {
5050
5051
  */
5051
5052
  postWorkforcemanagementBusinessunitActivityplanRunsJobs(businessUnitId, activityPlanId) {
5052
5053
  // verify the required parameter 'businessUnitId' is set
5053
- if (businessUnitId === undefined || businessUnitId === null) {
5054
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5054
5055
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';
5055
5056
  }
5056
5057
  // verify the required parameter 'activityPlanId' is set
5057
- if (activityPlanId === undefined || activityPlanId === null) {
5058
+ if (activityPlanId === undefined || activityPlanId === null || activityPlanId === '') {
5058
5059
  throw 'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';
5059
5060
  }
5060
5061
 
@@ -5080,7 +5081,7 @@ class WorkforceManagementApi {
5080
5081
  */
5081
5082
  postWorkforcemanagementBusinessunitActivityplans(businessUnitId, body) {
5082
5083
  // verify the required parameter 'businessUnitId' is set
5083
- if (businessUnitId === undefined || businessUnitId === null) {
5084
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5084
5085
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';
5085
5086
  }
5086
5087
  // verify the required parameter 'body' is set
@@ -5115,7 +5116,7 @@ class WorkforceManagementApi {
5115
5116
  opts = opts || {};
5116
5117
 
5117
5118
  // verify the required parameter 'businessUnitId' is set
5118
- if (businessUnitId === undefined || businessUnitId === null) {
5119
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5119
5120
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';
5120
5121
  }
5121
5122
  // verify the required parameter 'body' is set
@@ -5150,7 +5151,7 @@ class WorkforceManagementApi {
5150
5151
  opts = opts || {};
5151
5152
 
5152
5153
  // verify the required parameter 'businessUnitId' is set
5153
- if (businessUnitId === undefined || businessUnitId === null) {
5154
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5154
5155
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';
5155
5156
  }
5156
5157
  // verify the required parameter 'body' is set
@@ -5184,7 +5185,7 @@ class WorkforceManagementApi {
5184
5185
  opts = opts || {};
5185
5186
 
5186
5187
  // verify the required parameter 'businessUnitId' is set
5187
- if (businessUnitId === undefined || businessUnitId === null) {
5188
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5188
5189
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';
5189
5190
  }
5190
5191
  // verify the required parameter 'body' is set
@@ -5218,7 +5219,7 @@ class WorkforceManagementApi {
5218
5219
  opts = opts || {};
5219
5220
 
5220
5221
  // verify the required parameter 'businessUnitId' is set
5221
- if (businessUnitId === undefined || businessUnitId === null) {
5222
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5222
5223
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';
5223
5224
  }
5224
5225
  // verify the required parameter 'body' is set
@@ -5248,7 +5249,7 @@ class WorkforceManagementApi {
5248
5249
  */
5249
5250
  postWorkforcemanagementBusinessunitPlanninggroups(businessUnitId, body) {
5250
5251
  // verify the required parameter 'businessUnitId' is set
5251
- if (businessUnitId === undefined || businessUnitId === null) {
5252
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5252
5253
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';
5253
5254
  }
5254
5255
  // verify the required parameter 'body' is set
@@ -5278,7 +5279,7 @@ class WorkforceManagementApi {
5278
5279
  */
5279
5280
  postWorkforcemanagementBusinessunitServicegoaltemplates(businessUnitId, body) {
5280
5281
  // verify the required parameter 'businessUnitId' is set
5281
- if (businessUnitId === undefined || businessUnitId === null) {
5282
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5282
5283
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';
5283
5284
  }
5284
5285
  // verify the required parameter 'body' is set
@@ -5308,7 +5309,7 @@ class WorkforceManagementApi {
5308
5309
  */
5309
5310
  postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId, body) {
5310
5311
  // verify the required parameter 'businessUnitId' is set
5311
- if (businessUnitId === undefined || businessUnitId === null) {
5312
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5312
5313
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';
5313
5314
  }
5314
5315
  // verify the required parameter 'body' is set
@@ -5335,10 +5336,14 @@ class WorkforceManagementApi {
5335
5336
  *
5336
5337
  * @param {String} businessUnitId The ID of the business unit
5337
5338
  * @param {Object} body body
5339
+ * @param {Object} opts Optional parameters
5340
+ * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service
5338
5341
  */
5339
- postWorkforcemanagementBusinessunitStaffinggroupsQuery(businessUnitId, body) {
5342
+ postWorkforcemanagementBusinessunitStaffinggroupsQuery(businessUnitId, body, opts) {
5343
+ opts = opts || {};
5344
+
5340
5345
  // verify the required parameter 'businessUnitId' is set
5341
- if (businessUnitId === undefined || businessUnitId === null) {
5346
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5342
5347
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';
5343
5348
  }
5344
5349
  // verify the required parameter 'body' is set
@@ -5350,7 +5355,7 @@ class WorkforceManagementApi {
5350
5355
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/query',
5351
5356
  'POST',
5352
5357
  { 'businessUnitId': businessUnitId },
5353
- { },
5358
+ { 'forceDownloadService': opts['forceDownloadService'] },
5354
5359
  { },
5355
5360
  { },
5356
5361
  body,
@@ -5368,7 +5373,7 @@ class WorkforceManagementApi {
5368
5373
  */
5369
5374
  postWorkforcemanagementBusinessunitTimeofflimits(businessUnitId, body) {
5370
5375
  // verify the required parameter 'businessUnitId' is set
5371
- if (businessUnitId === undefined || businessUnitId === null) {
5376
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5372
5377
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';
5373
5378
  }
5374
5379
  // verify the required parameter 'body' is set
@@ -5398,7 +5403,7 @@ class WorkforceManagementApi {
5398
5403
  */
5399
5404
  postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(businessUnitId, body) {
5400
5405
  // verify the required parameter 'businessUnitId' is set
5401
- if (businessUnitId === undefined || businessUnitId === null) {
5406
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5402
5407
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';
5403
5408
  }
5404
5409
  // verify the required parameter 'body' is set
@@ -5428,7 +5433,7 @@ class WorkforceManagementApi {
5428
5433
  */
5429
5434
  postWorkforcemanagementBusinessunitTimeoffplans(businessUnitId, body) {
5430
5435
  // verify the required parameter 'businessUnitId' is set
5431
- if (businessUnitId === undefined || businessUnitId === null) {
5436
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5432
5437
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';
5433
5438
  }
5434
5439
  // verify the required parameter 'body' is set
@@ -5465,7 +5470,7 @@ class WorkforceManagementApi {
5465
5470
  opts = opts || {};
5466
5471
 
5467
5472
  // verify the required parameter 'businessUnitId' is set
5468
- if (businessUnitId === undefined || businessUnitId === null) {
5473
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5469
5474
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';
5470
5475
  }
5471
5476
  // verify the required parameter 'weekId' is set
@@ -5473,7 +5478,7 @@ class WorkforceManagementApi {
5473
5478
  throw 'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';
5474
5479
  }
5475
5480
  // verify the required parameter 'scheduleId' is set
5476
- if (scheduleId === undefined || scheduleId === null) {
5481
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
5477
5482
  throw 'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';
5478
5483
  }
5479
5484
  // verify the required parameter 'body' is set
@@ -5505,7 +5510,7 @@ class WorkforceManagementApi {
5505
5510
  */
5506
5511
  postWorkforcemanagementBusinessunitWeekScheduleCopy(businessUnitId, weekId, scheduleId, body) {
5507
5512
  // verify the required parameter 'businessUnitId' is set
5508
- if (businessUnitId === undefined || businessUnitId === null) {
5513
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5509
5514
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';
5510
5515
  }
5511
5516
  // verify the required parameter 'weekId' is set
@@ -5513,7 +5518,7 @@ class WorkforceManagementApi {
5513
5518
  throw 'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';
5514
5519
  }
5515
5520
  // verify the required parameter 'scheduleId' is set
5516
- if (scheduleId === undefined || scheduleId === null) {
5521
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
5517
5522
  throw 'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';
5518
5523
  }
5519
5524
  // verify the required parameter 'body' is set
@@ -5545,15 +5550,15 @@ class WorkforceManagementApi {
5545
5550
  */
5546
5551
  postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(businessUnitId, weekId, scheduleId, body) {
5547
5552
  // verify the required parameter 'businessUnitId' is set
5548
- if (businessUnitId === undefined || businessUnitId === null) {
5553
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5549
5554
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';
5550
5555
  }
5551
5556
  // verify the required parameter 'weekId' is set
5552
- if (weekId === undefined || weekId === null) {
5557
+ if (weekId === undefined || weekId === null || weekId === '') {
5553
5558
  throw 'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';
5554
5559
  }
5555
5560
  // verify the required parameter 'scheduleId' is set
5556
- if (scheduleId === undefined || scheduleId === null) {
5561
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
5557
5562
  throw 'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';
5558
5563
  }
5559
5564
  // verify the required parameter 'body' is set
@@ -5585,15 +5590,15 @@ class WorkforceManagementApi {
5585
5590
  */
5586
5591
  postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(businessUnitId, weekId, scheduleId, body) {
5587
5592
  // verify the required parameter 'businessUnitId' is set
5588
- if (businessUnitId === undefined || businessUnitId === null) {
5593
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5589
5594
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';
5590
5595
  }
5591
5596
  // verify the required parameter 'weekId' is set
5592
- if (weekId === undefined || weekId === null) {
5597
+ if (weekId === undefined || weekId === null || weekId === '') {
5593
5598
  throw 'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';
5594
5599
  }
5595
5600
  // verify the required parameter 'scheduleId' is set
5596
- if (scheduleId === undefined || scheduleId === null) {
5601
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
5597
5602
  throw 'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';
5598
5603
  }
5599
5604
  // verify the required parameter 'body' is set
@@ -5625,7 +5630,7 @@ class WorkforceManagementApi {
5625
5630
  */
5626
5631
  postWorkforcemanagementBusinessunitWeekScheduleReschedule(businessUnitId, weekId, scheduleId, body) {
5627
5632
  // verify the required parameter 'businessUnitId' is set
5628
- if (businessUnitId === undefined || businessUnitId === null) {
5633
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5629
5634
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';
5630
5635
  }
5631
5636
  // verify the required parameter 'weekId' is set
@@ -5633,7 +5638,7 @@ class WorkforceManagementApi {
5633
5638
  throw 'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';
5634
5639
  }
5635
5640
  // verify the required parameter 'scheduleId' is set
5636
- if (scheduleId === undefined || scheduleId === null) {
5641
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
5637
5642
  throw 'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';
5638
5643
  }
5639
5644
  // verify the required parameter 'body' is set
@@ -5665,7 +5670,7 @@ class WorkforceManagementApi {
5665
5670
  */
5666
5671
  postWorkforcemanagementBusinessunitWeekScheduleUpdate(businessUnitId, weekId, scheduleId, body) {
5667
5672
  // verify the required parameter 'businessUnitId' is set
5668
- if (businessUnitId === undefined || businessUnitId === null) {
5673
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5669
5674
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';
5670
5675
  }
5671
5676
  // verify the required parameter 'weekId' is set
@@ -5673,7 +5678,7 @@ class WorkforceManagementApi {
5673
5678
  throw 'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';
5674
5679
  }
5675
5680
  // verify the required parameter 'scheduleId' is set
5676
- if (scheduleId === undefined || scheduleId === null) {
5681
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
5677
5682
  throw 'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';
5678
5683
  }
5679
5684
  // verify the required parameter 'body' is set
@@ -5705,7 +5710,7 @@ class WorkforceManagementApi {
5705
5710
  */
5706
5711
  postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl(businessUnitId, weekId, scheduleId, body) {
5707
5712
  // verify the required parameter 'businessUnitId' is set
5708
- if (businessUnitId === undefined || businessUnitId === null) {
5713
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5709
5714
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';
5710
5715
  }
5711
5716
  // verify the required parameter 'weekId' is set
@@ -5713,7 +5718,7 @@ class WorkforceManagementApi {
5713
5718
  throw 'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';
5714
5719
  }
5715
5720
  // verify the required parameter 'scheduleId' is set
5716
- if (scheduleId === undefined || scheduleId === null) {
5721
+ if (scheduleId === undefined || scheduleId === null || scheduleId === '') {
5717
5722
  throw 'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';
5718
5723
  }
5719
5724
  // verify the required parameter 'body' is set
@@ -5744,7 +5749,7 @@ class WorkforceManagementApi {
5744
5749
  */
5745
5750
  postWorkforcemanagementBusinessunitWeekSchedules(businessUnitId, weekId, body) {
5746
5751
  // verify the required parameter 'businessUnitId' is set
5747
- if (businessUnitId === undefined || businessUnitId === null) {
5752
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5748
5753
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedules';
5749
5754
  }
5750
5755
  // verify the required parameter 'weekId' is set
@@ -5779,7 +5784,7 @@ class WorkforceManagementApi {
5779
5784
  */
5780
5785
  postWorkforcemanagementBusinessunitWeekSchedulesGenerate(businessUnitId, weekId, body) {
5781
5786
  // verify the required parameter 'businessUnitId' is set
5782
- if (businessUnitId === undefined || businessUnitId === null) {
5787
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5783
5788
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';
5784
5789
  }
5785
5790
  // verify the required parameter 'weekId' is set
@@ -5814,7 +5819,7 @@ class WorkforceManagementApi {
5814
5819
  */
5815
5820
  postWorkforcemanagementBusinessunitWeekSchedulesImport(businessUnitId, weekId, body) {
5816
5821
  // verify the required parameter 'businessUnitId' is set
5817
- if (businessUnitId === undefined || businessUnitId === null) {
5822
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5818
5823
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';
5819
5824
  }
5820
5825
  // verify the required parameter 'weekId' is set
@@ -5849,7 +5854,7 @@ class WorkforceManagementApi {
5849
5854
  */
5850
5855
  postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl(businessUnitId, weekId, body) {
5851
5856
  // verify the required parameter 'businessUnitId' is set
5852
- if (businessUnitId === undefined || businessUnitId === null) {
5857
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5853
5858
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';
5854
5859
  }
5855
5860
  // verify the required parameter 'weekId' is set
@@ -5889,7 +5894,7 @@ class WorkforceManagementApi {
5889
5894
  opts = opts || {};
5890
5895
 
5891
5896
  // verify the required parameter 'businessUnitId' is set
5892
- if (businessUnitId === undefined || businessUnitId === null) {
5897
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5893
5898
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';
5894
5899
  }
5895
5900
  // verify the required parameter 'weekDateId' is set
@@ -5897,7 +5902,7 @@ class WorkforceManagementApi {
5897
5902
  throw 'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';
5898
5903
  }
5899
5904
  // verify the required parameter 'forecastId' is set
5900
- if (forecastId === undefined || forecastId === null) {
5905
+ if (forecastId === undefined || forecastId === null || forecastId === '') {
5901
5906
  throw 'Missing the required parameter "forecastId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';
5902
5907
  }
5903
5908
  // verify the required parameter 'body' is set
@@ -5932,7 +5937,7 @@ class WorkforceManagementApi {
5932
5937
  opts = opts || {};
5933
5938
 
5934
5939
  // verify the required parameter 'businessUnitId' is set
5935
- if (businessUnitId === undefined || businessUnitId === null) {
5940
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5936
5941
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';
5937
5942
  }
5938
5943
  // verify the required parameter 'weekDateId' is set
@@ -5967,7 +5972,7 @@ class WorkforceManagementApi {
5967
5972
  */
5968
5973
  postWorkforcemanagementBusinessunitWeekShorttermforecastsImport(businessUnitId, weekDateId, body) {
5969
5974
  // verify the required parameter 'businessUnitId' is set
5970
- if (businessUnitId === undefined || businessUnitId === null) {
5975
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
5971
5976
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';
5972
5977
  }
5973
5978
  // verify the required parameter 'weekDateId' is set
@@ -6002,7 +6007,7 @@ class WorkforceManagementApi {
6002
6007
  */
6003
6008
  postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl(businessUnitId, weekDateId, body) {
6004
6009
  // verify the required parameter 'businessUnitId' is set
6005
- if (businessUnitId === undefined || businessUnitId === null) {
6010
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
6006
6011
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';
6007
6012
  }
6008
6013
  // verify the required parameter 'weekDateId' is set
@@ -6033,20 +6038,21 @@ class WorkforceManagementApi {
6033
6038
  *
6034
6039
  * @param {String} businessUnitId The ID of the business unit
6035
6040
  * @param {String} bidId The ID of the work plan bid to copy
6036
- * @param {Object} opts Optional parameters
6037
- * @param {Object} opts.body body
6041
+ * @param {Object} body body
6038
6042
  */
6039
- postWorkforcemanagementBusinessunitWorkplanbidCopy(businessUnitId, bidId, opts) {
6040
- opts = opts || {};
6041
-
6043
+ postWorkforcemanagementBusinessunitWorkplanbidCopy(businessUnitId, bidId, body) {
6042
6044
  // verify the required parameter 'businessUnitId' is set
6043
- if (businessUnitId === undefined || businessUnitId === null) {
6045
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
6044
6046
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';
6045
6047
  }
6046
6048
  // verify the required parameter 'bidId' is set
6047
- if (bidId === undefined || bidId === null) {
6049
+ if (bidId === undefined || bidId === null || bidId === '') {
6048
6050
  throw 'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';
6049
6051
  }
6052
+ // verify the required parameter 'body' is set
6053
+ if (body === undefined || body === null) {
6054
+ throw 'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';
6055
+ }
6050
6056
 
6051
6057
  return this.apiClient.callApi(
6052
6058
  '/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/copy',
@@ -6055,7 +6061,7 @@ class WorkforceManagementApi {
6055
6061
  { },
6056
6062
  { },
6057
6063
  { },
6058
- opts['body'],
6064
+ body,
6059
6065
  ['PureCloud OAuth'],
6060
6066
  ['application/json'],
6061
6067
  ['application/json']
@@ -6071,11 +6077,11 @@ class WorkforceManagementApi {
6071
6077
  */
6072
6078
  postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId, bidId, body) {
6073
6079
  // verify the required parameter 'businessUnitId' is set
6074
- if (businessUnitId === undefined || businessUnitId === null) {
6080
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
6075
6081
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';
6076
6082
  }
6077
6083
  // verify the required parameter 'bidId' is set
6078
- if (bidId === undefined || bidId === null) {
6084
+ if (bidId === undefined || bidId === null || bidId === '') {
6079
6085
  throw 'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';
6080
6086
  }
6081
6087
  // verify the required parameter 'body' is set
@@ -6105,7 +6111,7 @@ class WorkforceManagementApi {
6105
6111
  */
6106
6112
  postWorkforcemanagementBusinessunitWorkplanbids(businessUnitId, body) {
6107
6113
  // verify the required parameter 'businessUnitId' is set
6108
- if (businessUnitId === undefined || businessUnitId === null) {
6114
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
6109
6115
  throw 'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';
6110
6116
  }
6111
6117
  // verify the required parameter 'body' is set
@@ -6254,7 +6260,7 @@ class WorkforceManagementApi {
6254
6260
  */
6255
6261
  postWorkforcemanagementIntegrationsHriTimeofftypesJobs(hrisIntegrationId) {
6256
6262
  // verify the required parameter 'hrisIntegrationId' is set
6257
- if (hrisIntegrationId === undefined || hrisIntegrationId === null) {
6263
+ if (hrisIntegrationId === undefined || hrisIntegrationId === null || hrisIntegrationId === '') {
6258
6264
  throw 'Missing the required parameter "hrisIntegrationId" when calling postWorkforcemanagementIntegrationsHriTimeofftypesJobs';
6259
6265
  }
6260
6266
 
@@ -6284,7 +6290,7 @@ class WorkforceManagementApi {
6284
6290
  opts = opts || {};
6285
6291
 
6286
6292
  // verify the required parameter 'managementUnitId' is set
6287
- if (managementUnitId === undefined || managementUnitId === null) {
6293
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6288
6294
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';
6289
6295
  }
6290
6296
  // verify the required parameter 'body' is set
@@ -6319,7 +6325,7 @@ class WorkforceManagementApi {
6319
6325
  opts = opts || {};
6320
6326
 
6321
6327
  // verify the required parameter 'managementUnitId' is set
6322
- if (managementUnitId === undefined || managementUnitId === null) {
6328
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6323
6329
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';
6324
6330
  }
6325
6331
  // verify the required parameter 'body' is set
@@ -6349,7 +6355,7 @@ class WorkforceManagementApi {
6349
6355
  */
6350
6356
  postWorkforcemanagementManagementunitHistoricaladherencequery(managementUnitId, body) {
6351
6357
  // verify the required parameter 'managementUnitId' is set
6352
- if (managementUnitId === undefined || managementUnitId === null) {
6358
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6353
6359
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';
6354
6360
  }
6355
6361
  // verify the required parameter 'body' is set
@@ -6379,7 +6385,7 @@ class WorkforceManagementApi {
6379
6385
  */
6380
6386
  postWorkforcemanagementManagementunitMove(managementUnitId, body) {
6381
6387
  // verify the required parameter 'managementUnitId' is set
6382
- if (managementUnitId === undefined || managementUnitId === null) {
6388
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6383
6389
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';
6384
6390
  }
6385
6391
  // verify the required parameter 'body' is set
@@ -6410,7 +6416,7 @@ class WorkforceManagementApi {
6410
6416
  */
6411
6417
  postWorkforcemanagementManagementunitSchedulesSearch(managementUnitId, body) {
6412
6418
  // verify the required parameter 'managementUnitId' is set
6413
- if (managementUnitId === undefined || managementUnitId === null) {
6419
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6414
6420
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';
6415
6421
  }
6416
6422
  // verify the required parameter 'body' is set
@@ -6440,7 +6446,7 @@ class WorkforceManagementApi {
6440
6446
  */
6441
6447
  postWorkforcemanagementManagementunitShrinkageJobs(managementUnitId, body) {
6442
6448
  // verify the required parameter 'managementUnitId' is set
6443
- if (managementUnitId === undefined || managementUnitId === null) {
6449
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6444
6450
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';
6445
6451
  }
6446
6452
  // verify the required parameter 'body' is set
@@ -6470,7 +6476,7 @@ class WorkforceManagementApi {
6470
6476
  */
6471
6477
  postWorkforcemanagementManagementunitTimeofflimits(managementUnitId, body) {
6472
6478
  // verify the required parameter 'managementUnitId' is set
6473
- if (managementUnitId === undefined || managementUnitId === null) {
6479
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6474
6480
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';
6475
6481
  }
6476
6482
  // verify the required parameter 'body' is set
@@ -6500,7 +6506,7 @@ class WorkforceManagementApi {
6500
6506
  */
6501
6507
  postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId, body) {
6502
6508
  // verify the required parameter 'managementUnitId' is set
6503
- if (managementUnitId === undefined || managementUnitId === null) {
6509
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6504
6510
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';
6505
6511
  }
6506
6512
  // verify the required parameter 'body' is set
@@ -6530,7 +6536,7 @@ class WorkforceManagementApi {
6530
6536
  */
6531
6537
  postWorkforcemanagementManagementunitTimeoffplans(managementUnitId, body) {
6532
6538
  // verify the required parameter 'managementUnitId' is set
6533
- if (managementUnitId === undefined || managementUnitId === null) {
6539
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6534
6540
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';
6535
6541
  }
6536
6542
  // verify the required parameter 'body' is set
@@ -6560,7 +6566,7 @@ class WorkforceManagementApi {
6560
6566
  */
6561
6567
  postWorkforcemanagementManagementunitTimeoffrequests(managementUnitId, body) {
6562
6568
  // verify the required parameter 'managementUnitId' is set
6563
- if (managementUnitId === undefined || managementUnitId === null) {
6569
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6564
6570
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';
6565
6571
  }
6566
6572
  // verify the required parameter 'body' is set
@@ -6590,7 +6596,7 @@ class WorkforceManagementApi {
6590
6596
  */
6591
6597
  postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(managementUnitId, body) {
6592
6598
  // verify the required parameter 'managementUnitId' is set
6593
- if (managementUnitId === undefined || managementUnitId === null) {
6599
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6594
6600
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';
6595
6601
  }
6596
6602
  // verify the required parameter 'body' is set
@@ -6624,7 +6630,7 @@ class WorkforceManagementApi {
6624
6630
  opts = opts || {};
6625
6631
 
6626
6632
  // verify the required parameter 'managementUnitId' is set
6627
- if (managementUnitId === undefined || managementUnitId === null) {
6633
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6628
6634
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';
6629
6635
  }
6630
6636
  // verify the required parameter 'body' is set
@@ -6654,7 +6660,7 @@ class WorkforceManagementApi {
6654
6660
  */
6655
6661
  postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId, body) {
6656
6662
  // verify the required parameter 'managementUnitId' is set
6657
- if (managementUnitId === undefined || managementUnitId === null) {
6663
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6658
6664
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';
6659
6665
  }
6660
6666
  // verify the required parameter 'body' is set
@@ -6685,11 +6691,11 @@ class WorkforceManagementApi {
6685
6691
  */
6686
6692
  postWorkforcemanagementManagementunitUserTimeoffbalanceJobs(managementUnitId, userId, body) {
6687
6693
  // verify the required parameter 'managementUnitId' is set
6688
- if (managementUnitId === undefined || managementUnitId === null) {
6694
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6689
6695
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';
6690
6696
  }
6691
6697
  // verify the required parameter 'userId' is set
6692
- if (userId === undefined || userId === null) {
6698
+ if (userId === undefined || userId === null || userId === '') {
6693
6699
  throw 'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';
6694
6700
  }
6695
6701
  // verify the required parameter 'body' is set
@@ -6720,15 +6726,15 @@ class WorkforceManagementApi {
6720
6726
  */
6721
6727
  postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs(managementUnitId, userId, timeOffRequestId) {
6722
6728
  // verify the required parameter 'managementUnitId' is set
6723
- if (managementUnitId === undefined || managementUnitId === null) {
6729
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6724
6730
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';
6725
6731
  }
6726
6732
  // verify the required parameter 'userId' is set
6727
- if (userId === undefined || userId === null) {
6733
+ if (userId === undefined || userId === null || userId === '') {
6728
6734
  throw 'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';
6729
6735
  }
6730
6736
  // verify the required parameter 'timeOffRequestId' is set
6731
- if (timeOffRequestId === undefined || timeOffRequestId === null) {
6737
+ if (timeOffRequestId === undefined || timeOffRequestId === null || timeOffRequestId === '') {
6732
6738
  throw 'Missing the required parameter "timeOffRequestId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';
6733
6739
  }
6734
6740
 
@@ -6755,11 +6761,11 @@ class WorkforceManagementApi {
6755
6761
  */
6756
6762
  postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId, userId, body) {
6757
6763
  // verify the required parameter 'managementUnitId' is set
6758
- if (managementUnitId === undefined || managementUnitId === null) {
6764
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6759
6765
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';
6760
6766
  }
6761
6767
  // verify the required parameter 'userId' is set
6762
- if (userId === undefined || userId === null) {
6768
+ if (userId === undefined || userId === null || userId === '') {
6763
6769
  throw 'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';
6764
6770
  }
6765
6771
  // verify the required parameter 'body' is set
@@ -6791,7 +6797,7 @@ class WorkforceManagementApi {
6791
6797
  */
6792
6798
  postWorkforcemanagementManagementunitWeekShifttradeMatch(managementUnitId, weekDateId, tradeId, body) {
6793
6799
  // verify the required parameter 'managementUnitId' is set
6794
- if (managementUnitId === undefined || managementUnitId === null) {
6800
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6795
6801
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';
6796
6802
  }
6797
6803
  // verify the required parameter 'weekDateId' is set
@@ -6799,7 +6805,7 @@ class WorkforceManagementApi {
6799
6805
  throw 'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';
6800
6806
  }
6801
6807
  // verify the required parameter 'tradeId' is set
6802
- if (tradeId === undefined || tradeId === null) {
6808
+ if (tradeId === undefined || tradeId === null || tradeId === '') {
6803
6809
  throw 'Missing the required parameter "tradeId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';
6804
6810
  }
6805
6811
  // verify the required parameter 'body' is set
@@ -6830,7 +6836,7 @@ class WorkforceManagementApi {
6830
6836
  */
6831
6837
  postWorkforcemanagementManagementunitWeekShifttrades(managementUnitId, weekDateId, body) {
6832
6838
  // verify the required parameter 'managementUnitId' is set
6833
- if (managementUnitId === undefined || managementUnitId === null) {
6839
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6834
6840
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttrades';
6835
6841
  }
6836
6842
  // verify the required parameter 'weekDateId' is set
@@ -6869,7 +6875,7 @@ class WorkforceManagementApi {
6869
6875
  opts = opts || {};
6870
6876
 
6871
6877
  // verify the required parameter 'managementUnitId' is set
6872
- if (managementUnitId === undefined || managementUnitId === null) {
6878
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6873
6879
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';
6874
6880
  }
6875
6881
  // verify the required parameter 'weekDateId' is set
@@ -6908,7 +6914,7 @@ class WorkforceManagementApi {
6908
6914
  opts = opts || {};
6909
6915
 
6910
6916
  // verify the required parameter 'managementUnitId' is set
6911
- if (managementUnitId === undefined || managementUnitId === null) {
6917
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6912
6918
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';
6913
6919
  }
6914
6920
  // verify the required parameter 'weekDateId' is set
@@ -6943,11 +6949,11 @@ class WorkforceManagementApi {
6943
6949
  */
6944
6950
  postWorkforcemanagementManagementunitWorkplanCopy(managementUnitId, workPlanId, body) {
6945
6951
  // verify the required parameter 'managementUnitId' is set
6946
- if (managementUnitId === undefined || managementUnitId === null) {
6952
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6947
6953
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';
6948
6954
  }
6949
6955
  // verify the required parameter 'workPlanId' is set
6950
- if (workPlanId === undefined || workPlanId === null) {
6956
+ if (workPlanId === undefined || workPlanId === null || workPlanId === '') {
6951
6957
  throw 'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';
6952
6958
  }
6953
6959
  // verify the required parameter 'body' is set
@@ -6982,11 +6988,11 @@ class WorkforceManagementApi {
6982
6988
  opts = opts || {};
6983
6989
 
6984
6990
  // verify the required parameter 'managementUnitId' is set
6985
- if (managementUnitId === undefined || managementUnitId === null) {
6991
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
6986
6992
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';
6987
6993
  }
6988
6994
  // verify the required parameter 'workPlanId' is set
6989
- if (workPlanId === undefined || workPlanId === null) {
6995
+ if (workPlanId === undefined || workPlanId === null || workPlanId === '') {
6990
6996
  throw 'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';
6991
6997
  }
6992
6998
  // verify the required parameter 'body' is set
@@ -7017,11 +7023,11 @@ class WorkforceManagementApi {
7017
7023
  */
7018
7024
  postWorkforcemanagementManagementunitWorkplanrotationCopy(managementUnitId, workPlanRotationId, body) {
7019
7025
  // verify the required parameter 'managementUnitId' is set
7020
- if (managementUnitId === undefined || managementUnitId === null) {
7026
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
7021
7027
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';
7022
7028
  }
7023
7029
  // verify the required parameter 'workPlanRotationId' is set
7024
- if (workPlanRotationId === undefined || workPlanRotationId === null) {
7030
+ if (workPlanRotationId === undefined || workPlanRotationId === null || workPlanRotationId === '') {
7025
7031
  throw 'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';
7026
7032
  }
7027
7033
  // verify the required parameter 'body' is set
@@ -7051,7 +7057,7 @@ class WorkforceManagementApi {
7051
7057
  */
7052
7058
  postWorkforcemanagementManagementunitWorkplanrotations(managementUnitId, body) {
7053
7059
  // verify the required parameter 'managementUnitId' is set
7054
- if (managementUnitId === undefined || managementUnitId === null) {
7060
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
7055
7061
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';
7056
7062
  }
7057
7063
  // verify the required parameter 'body' is set
@@ -7085,7 +7091,7 @@ class WorkforceManagementApi {
7085
7091
  opts = opts || {};
7086
7092
 
7087
7093
  // verify the required parameter 'managementUnitId' is set
7088
- if (managementUnitId === undefined || managementUnitId === null) {
7094
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
7089
7095
  throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';
7090
7096
  }
7091
7097
  // verify the required parameter 'body' is set
@@ -7190,7 +7196,7 @@ class WorkforceManagementApi {
7190
7196
  */
7191
7197
  postWorkforcemanagementTeamAdherenceHistorical(teamId, body) {
7192
7198
  // verify the required parameter 'teamId' is set
7193
- if (teamId === undefined || teamId === null) {
7199
+ if (teamId === undefined || teamId === null || teamId === '') {
7194
7200
  throw 'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';
7195
7201
  }
7196
7202
  // verify the required parameter 'body' is set
@@ -7220,7 +7226,7 @@ class WorkforceManagementApi {
7220
7226
  */
7221
7227
  postWorkforcemanagementTeamShrinkageJobs(teamId, body) {
7222
7228
  // verify the required parameter 'teamId' is set
7223
- if (teamId === undefined || teamId === null) {
7229
+ if (teamId === undefined || teamId === null || teamId === '') {
7224
7230
  throw 'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';
7225
7231
  }
7226
7232
  // verify the required parameter 'body' is set
@@ -7375,7 +7381,7 @@ class WorkforceManagementApi {
7375
7381
  */
7376
7382
  putWorkforcemanagementAgentIntegrationsHris(agentId, body) {
7377
7383
  // verify the required parameter 'agentId' is set
7378
- if (agentId === undefined || agentId === null) {
7384
+ if (agentId === undefined || agentId === null || agentId === '') {
7379
7385
  throw 'Missing the required parameter "agentId" when calling putWorkforcemanagementAgentIntegrationsHris';
7380
7386
  }
7381
7387
  // verify the required parameter 'body' is set
@@ -7406,11 +7412,11 @@ class WorkforceManagementApi {
7406
7412
  */
7407
7413
  putWorkforcemanagementBusinessunitTimeofflimitValues(businessUnitId, timeOffLimitId, body) {
7408
7414
  // verify the required parameter 'businessUnitId' is set
7409
- if (businessUnitId === undefined || businessUnitId === null) {
7415
+ if (businessUnitId === undefined || businessUnitId === null || businessUnitId === '') {
7410
7416
  throw 'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';
7411
7417
  }
7412
7418
  // verify the required parameter 'timeOffLimitId' is set
7413
- if (timeOffLimitId === undefined || timeOffLimitId === null) {
7419
+ if (timeOffLimitId === undefined || timeOffLimitId === null || timeOffLimitId === '') {
7414
7420
  throw 'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';
7415
7421
  }
7416
7422
  // verify the required parameter 'body' is set
@@ -7441,11 +7447,11 @@ class WorkforceManagementApi {
7441
7447
  */
7442
7448
  putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId, timeOffLimitId, body) {
7443
7449
  // verify the required parameter 'managementUnitId' is set
7444
- if (managementUnitId === undefined || managementUnitId === null) {
7450
+ if (managementUnitId === undefined || managementUnitId === null || managementUnitId === '') {
7445
7451
  throw 'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
7446
7452
  }
7447
7453
  // verify the required parameter 'timeOffLimitId' is set
7448
- if (timeOffLimitId === undefined || timeOffLimitId === null) {
7454
+ if (timeOffLimitId === undefined || timeOffLimitId === null || timeOffLimitId === '') {
7449
7455
  throw 'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
7450
7456
  }
7451
7457
  // verify the required parameter 'body' is set