purecloud-platform-client-v2 199.0.0 → 201.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 (87) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +1565 -120
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1565 -120
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +476 -127
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +592 -159
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +862 -244
  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/AgentUIApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +3 -3
  14. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuditApi.js +3 -2
  16. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +21 -1
  39. package/src/purecloud-platform-client-v2/api/JourneyApi.js +10 -3
  40. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/LearningApi.js +4 -4
  44. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +68 -1
  54. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/RecordingApi.js +3 -2
  60. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/RoutingApi.js +146 -1
  62. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +36 -31
  71. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/UsersApi.js +149 -4
  80. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1080 -26
  87. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5,7 +5,7 @@ class OutboundApi {
5
5
  /**
6
6
  * Outbound service.
7
7
  * @module purecloud-platform-client-v2/api/OutboundApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class PresenceApi {
5
5
  /**
6
6
  * Presence service.
7
7
  * @module purecloud-platform-client-v2/api/PresenceApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ProcessAutomationApi {
5
5
  /**
6
6
  * ProcessAutomation service.
7
7
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class QualityApi {
5
5
  /**
6
6
  * Quality service.
7
7
  * @module purecloud-platform-client-v2/api/QualityApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class RecordingApi {
5
5
  /**
6
6
  * Recording service.
7
7
  * @module purecloud-platform-client-v2/api/RecordingApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -997,10 +997,11 @@ class RecordingApi {
997
997
 
998
998
  /**
999
999
  * Update a screen recording session
1000
- *
1000
+ * This API is deprecated and the functionality to stop screen recording will be no longer supported.
1001
1001
  * @param {String} recordingSessionId Screen recording session ID
1002
1002
  * @param {Object} opts Optional parameters
1003
1003
  * @param {Object} opts.body
1004
+ * @deprecated
1004
1005
  */
1005
1006
  patchRecordingsScreensession(recordingSessionId, opts) {
1006
1007
  opts = opts || {};
@@ -5,7 +5,7 @@ class ResponseManagementApi {
5
5
  /**
6
6
  * ResponseManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class RoutingApi {
5
5
  /**
6
6
  * Routing service.
7
7
  * @module purecloud-platform-client-v2/api/RoutingApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -45,6 +45,26 @@ class RoutingApi {
45
45
  );
46
46
  }
47
47
 
48
+ /**
49
+ * Delete the user's Direct Routing Backup settings and revert to the Direct Routing Queue default.
50
+ *
51
+ */
52
+ deleteRoutingDirectroutingbackupSettingsMe() {
53
+
54
+ return this.apiClient.callApi(
55
+ '/api/v2/routing/directroutingbackup/settings/me',
56
+ 'DELETE',
57
+ { },
58
+ { },
59
+ { },
60
+ { },
61
+ null,
62
+ ['PureCloud OAuth'],
63
+ ['application/json'],
64
+ ['application/json']
65
+ );
66
+ }
67
+
48
68
  /**
49
69
  * Delete a domain
50
70
  *
@@ -415,6 +435,31 @@ class RoutingApi {
415
435
  );
416
436
  }
417
437
 
438
+ /**
439
+ * Delete the user's Direct Routing Backup settings and revert to the Direct Routing Queue default.
440
+ *
441
+ * @param {String} userId User ID
442
+ */
443
+ deleteRoutingUserDirectroutingbackupSettings(userId) {
444
+ // verify the required parameter 'userId' is set
445
+ if (userId === undefined || userId === null) {
446
+ throw 'Missing the required parameter "userId" when calling deleteRoutingUserDirectroutingbackupSettings';
447
+ }
448
+
449
+ return this.apiClient.callApi(
450
+ '/api/v2/routing/users/{userId}/directroutingbackup/settings',
451
+ 'DELETE',
452
+ { 'userId': userId },
453
+ { },
454
+ { },
455
+ { },
456
+ null,
457
+ ['PureCloud OAuth'],
458
+ ['application/json'],
459
+ ['application/json']
460
+ );
461
+ }
462
+
418
463
  /**
419
464
  * Delete the user's max utilization settings and revert to the organization-wide default.
420
465
  *
@@ -726,6 +771,26 @@ class RoutingApi {
726
771
  );
727
772
  }
728
773
 
774
+ /**
775
+ * Get the user's Direct Routing Backup settings.
776
+ *
777
+ */
778
+ getRoutingDirectroutingbackupSettingsMe() {
779
+
780
+ return this.apiClient.callApi(
781
+ '/api/v2/routing/directroutingbackup/settings/me',
782
+ 'GET',
783
+ { },
784
+ { },
785
+ { },
786
+ { },
787
+ null,
788
+ ['PureCloud OAuth'],
789
+ ['application/json'],
790
+ ['application/json']
791
+ );
792
+ }
793
+
729
794
  /**
730
795
  * Get domain
731
796
  *
@@ -1936,6 +2001,31 @@ class RoutingApi {
1936
2001
  );
1937
2002
  }
1938
2003
 
2004
+ /**
2005
+ * Get the user's Direct Routing Backup settings.
2006
+ *
2007
+ * @param {String} userId User ID
2008
+ */
2009
+ getRoutingUserDirectroutingbackupSettings(userId) {
2010
+ // verify the required parameter 'userId' is set
2011
+ if (userId === undefined || userId === null) {
2012
+ throw 'Missing the required parameter "userId" when calling getRoutingUserDirectroutingbackupSettings';
2013
+ }
2014
+
2015
+ return this.apiClient.callApi(
2016
+ '/api/v2/routing/users/{userId}/directroutingbackup/settings',
2017
+ 'GET',
2018
+ { 'userId': userId },
2019
+ { },
2020
+ { },
2021
+ { },
2022
+ null,
2023
+ ['PureCloud OAuth'],
2024
+ ['application/json'],
2025
+ ['application/json']
2026
+ );
2027
+ }
2028
+
1939
2029
  /**
1940
2030
  * Get the user's max utilization settings. If not configured, the organization-wide default is returned.
1941
2031
  *
@@ -3593,6 +3683,31 @@ class RoutingApi {
3593
3683
  );
3594
3684
  }
3595
3685
 
3686
+ /**
3687
+ * Update the user's Direct Routing Backup settings.
3688
+ *
3689
+ * @param {Object} body directRoutingBackup
3690
+ */
3691
+ putRoutingDirectroutingbackupSettingsMe(body) {
3692
+ // verify the required parameter 'body' is set
3693
+ if (body === undefined || body === null) {
3694
+ throw 'Missing the required parameter "body" when calling putRoutingDirectroutingbackupSettingsMe';
3695
+ }
3696
+
3697
+ return this.apiClient.callApi(
3698
+ '/api/v2/routing/directroutingbackup/settings/me',
3699
+ 'PUT',
3700
+ { },
3701
+ { },
3702
+ { },
3703
+ { },
3704
+ body,
3705
+ ['PureCloud OAuth'],
3706
+ ['application/json'],
3707
+ ['application/json']
3708
+ );
3709
+ }
3710
+
3596
3711
  /**
3597
3712
  * Update a route
3598
3713
  *
@@ -3793,6 +3908,36 @@ class RoutingApi {
3793
3908
  );
3794
3909
  }
3795
3910
 
3911
+ /**
3912
+ * Update the user's Direct Routing Backup settings.
3913
+ *
3914
+ * @param {String} userId User ID
3915
+ * @param {Object} body directRoutingBackup
3916
+ */
3917
+ putRoutingUserDirectroutingbackupSettings(userId, body) {
3918
+ // verify the required parameter 'userId' is set
3919
+ if (userId === undefined || userId === null) {
3920
+ throw 'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';
3921
+ }
3922
+ // verify the required parameter 'body' is set
3923
+ if (body === undefined || body === null) {
3924
+ throw 'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';
3925
+ }
3926
+
3927
+ return this.apiClient.callApi(
3928
+ '/api/v2/routing/users/{userId}/directroutingbackup/settings',
3929
+ 'PUT',
3930
+ { 'userId': userId },
3931
+ { },
3932
+ { },
3933
+ { },
3934
+ body,
3935
+ ['PureCloud OAuth'],
3936
+ ['application/json'],
3937
+ ['application/json']
3938
+ );
3939
+ }
3940
+
3796
3941
  /**
3797
3942
  * Update the user's max utilization settings. Include only those media types requiring custom configuration.
3798
3943
  *
@@ -5,7 +5,7 @@ class SCIMApi {
5
5
  /**
6
6
  * SCIM service.
7
7
  * @module purecloud-platform-client-v2/api/SCIMApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ScreenRecordingApi {
5
5
  /**
6
6
  * ScreenRecording service.
7
7
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ScriptsApi {
5
5
  /**
6
6
  * Scripts service.
7
7
  * @module purecloud-platform-client-v2/api/ScriptsApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SearchApi {
5
5
  /**
6
6
  * Search service.
7
7
  * @module purecloud-platform-client-v2/api/SearchApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SettingsApi {
5
5
  /**
6
6
  * Settings service.
7
7
  * @module purecloud-platform-client-v2/api/SettingsApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SpeechTextAnalyticsApi {
5
5
  /**
6
6
  * SpeechTextAnalytics service.
7
7
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class StationsApi {
5
5
  /**
6
6
  * Stations service.
7
7
  * @module purecloud-platform-client-v2/api/StationsApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SuggestApi {
5
5
  /**
6
6
  * Suggest service.
7
7
  * @module purecloud-platform-client-v2/api/SuggestApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TaskManagementApi {
5
5
  /**
6
6
  * TaskManagement service.
7
7
  * @module purecloud-platform-client-v2/api/TaskManagementApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -952,16 +952,17 @@ class TaskManagementApi {
952
952
  * Update the attributes of a worktype
953
953
  *
954
954
  * @param {String} worktypeId Worktype id
955
- * @param {Object} opts Optional parameters
956
- * @param {Object} opts.body body
955
+ * @param {Object} body Worktype
957
956
  */
958
- patchTaskmanagementWorktype(worktypeId, opts) {
959
- opts = opts || {};
960
-
957
+ patchTaskmanagementWorktype(worktypeId, body) {
961
958
  // verify the required parameter 'worktypeId' is set
962
959
  if (worktypeId === undefined || worktypeId === null) {
963
960
  throw 'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';
964
961
  }
962
+ // verify the required parameter 'body' is set
963
+ if (body === undefined || body === null) {
964
+ throw 'Missing the required parameter "body" when calling patchTaskmanagementWorktype';
965
+ }
965
966
 
966
967
  return this.apiClient.callApi(
967
968
  '/api/v2/taskmanagement/worktypes/{worktypeId}',
@@ -970,7 +971,7 @@ class TaskManagementApi {
970
971
  { },
971
972
  { },
972
973
  { },
973
- opts['body'],
974
+ body,
974
975
  ['PureCloud OAuth'],
975
976
  ['application/json'],
976
977
  ['application/json']
@@ -982,12 +983,9 @@ class TaskManagementApi {
982
983
  *
983
984
  * @param {String} worktypeId Worktype id
984
985
  * @param {String} statusId Status id
985
- * @param {Object} opts Optional parameters
986
- * @param {Object} opts.body body
986
+ * @param {Object} body Status
987
987
  */
988
- patchTaskmanagementWorktypeStatus(worktypeId, statusId, opts) {
989
- opts = opts || {};
990
-
988
+ patchTaskmanagementWorktypeStatus(worktypeId, statusId, body) {
991
989
  // verify the required parameter 'worktypeId' is set
992
990
  if (worktypeId === undefined || worktypeId === null) {
993
991
  throw 'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';
@@ -996,6 +994,10 @@ class TaskManagementApi {
996
994
  if (statusId === undefined || statusId === null) {
997
995
  throw 'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';
998
996
  }
997
+ // verify the required parameter 'body' is set
998
+ if (body === undefined || body === null) {
999
+ throw 'Missing the required parameter "body" when calling patchTaskmanagementWorktypeStatus';
1000
+ }
999
1001
 
1000
1002
  return this.apiClient.callApi(
1001
1003
  '/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}',
@@ -1004,7 +1006,7 @@ class TaskManagementApi {
1004
1006
  { },
1005
1007
  { },
1006
1008
  { },
1007
- opts['body'],
1009
+ body,
1008
1010
  ['PureCloud OAuth'],
1009
1011
  ['application/json'],
1010
1012
  ['application/json']
@@ -1014,12 +1016,13 @@ class TaskManagementApi {
1014
1016
  /**
1015
1017
  * Create a workbin
1016
1018
  *
1017
- * @param {Object} opts Optional parameters
1018
- * @param {Object} opts.body body
1019
+ * @param {Object} body Workbin
1019
1020
  */
1020
- postTaskmanagementWorkbins(opts) {
1021
- opts = opts || {};
1022
-
1021
+ postTaskmanagementWorkbins(body) {
1022
+ // verify the required parameter 'body' is set
1023
+ if (body === undefined || body === null) {
1024
+ throw 'Missing the required parameter "body" when calling postTaskmanagementWorkbins';
1025
+ }
1023
1026
 
1024
1027
  return this.apiClient.callApi(
1025
1028
  '/api/v2/taskmanagement/workbins',
@@ -1028,7 +1031,7 @@ class TaskManagementApi {
1028
1031
  { },
1029
1032
  { },
1030
1033
  { },
1031
- opts['body'],
1034
+ body,
1032
1035
  ['PureCloud OAuth'],
1033
1036
  ['application/json'],
1034
1037
  ['application/json']
@@ -1244,16 +1247,17 @@ class TaskManagementApi {
1244
1247
  * Add a status to a worktype
1245
1248
  *
1246
1249
  * @param {String} worktypeId Worktype id
1247
- * @param {Object} opts Optional parameters
1248
- * @param {Object} opts.body body
1250
+ * @param {Object} body Status
1249
1251
  */
1250
- postTaskmanagementWorktypeStatuses(worktypeId, opts) {
1251
- opts = opts || {};
1252
-
1252
+ postTaskmanagementWorktypeStatuses(worktypeId, body) {
1253
1253
  // verify the required parameter 'worktypeId' is set
1254
1254
  if (worktypeId === undefined || worktypeId === null) {
1255
1255
  throw 'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';
1256
1256
  }
1257
+ // verify the required parameter 'body' is set
1258
+ if (body === undefined || body === null) {
1259
+ throw 'Missing the required parameter "body" when calling postTaskmanagementWorktypeStatuses';
1260
+ }
1257
1261
 
1258
1262
  return this.apiClient.callApi(
1259
1263
  '/api/v2/taskmanagement/worktypes/{worktypeId}/statuses',
@@ -1262,7 +1266,7 @@ class TaskManagementApi {
1262
1266
  { },
1263
1267
  { },
1264
1268
  { },
1265
- opts['body'],
1269
+ body,
1266
1270
  ['PureCloud OAuth'],
1267
1271
  ['application/json'],
1268
1272
  ['application/json']
@@ -1272,12 +1276,13 @@ class TaskManagementApi {
1272
1276
  /**
1273
1277
  * Create a worktype
1274
1278
  *
1275
- * @param {Object} opts Optional parameters
1276
- * @param {Object} opts.body body
1279
+ * @param {Object} body Worktype
1277
1280
  */
1278
- postTaskmanagementWorktypes(opts) {
1279
- opts = opts || {};
1280
-
1281
+ postTaskmanagementWorktypes(body) {
1282
+ // verify the required parameter 'body' is set
1283
+ if (body === undefined || body === null) {
1284
+ throw 'Missing the required parameter "body" when calling postTaskmanagementWorktypes';
1285
+ }
1281
1286
 
1282
1287
  return this.apiClient.callApi(
1283
1288
  '/api/v2/taskmanagement/worktypes',
@@ -1286,7 +1291,7 @@ class TaskManagementApi {
1286
1291
  { },
1287
1292
  { },
1288
1293
  { },
1289
- opts['body'],
1294
+ body,
1290
1295
  ['PureCloud OAuth'],
1291
1296
  ['application/json'],
1292
1297
  ['application/json']
@@ -5,7 +5,7 @@ class TeamsApi {
5
5
  /**
6
6
  * Teams service.
7
7
  * @module purecloud-platform-client-v2/api/TeamsApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TelephonyApi {
5
5
  /**
6
6
  * Telephony service.
7
7
  * @module purecloud-platform-client-v2/api/TelephonyApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TelephonyProvidersEdgeApi {
5
5
  /**
6
6
  * TelephonyProvidersEdge service.
7
7
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TextbotsApi {
5
5
  /**
6
6
  * Textbots service.
7
7
  * @module purecloud-platform-client-v2/api/TextbotsApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TokensApi {
5
5
  /**
6
6
  * Tokens service.
7
7
  * @module purecloud-platform-client-v2/api/TokensApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UploadsApi {
5
5
  /**
6
6
  * Uploads service.
7
7
  * @module purecloud-platform-client-v2/api/UploadsApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UsageApi {
5
5
  /**
6
6
  * Usage service.
7
7
  * @module purecloud-platform-client-v2/api/UsageApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UserRecordingsApi {
5
5
  /**
6
6
  * UserRecordings service.
7
7
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
8
- * @version 199.0.0
8
+ * @version 201.0.0
9
9
  */
10
10
 
11
11
  /**