purecloud-platform-client-v2 205.0.0 → 206.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 (89) hide show
  1. package/README.md +5 -3
  2. package/dist/node/purecloud-platform-client-v2.js +646 -84
  3. package/dist/web-amd/purecloud-platform-client-v2.js +646 -84
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +228 -85
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +228 -85
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +467 -5
  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/AgentAssistantsApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +7 -4
  25. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/JourneyApi.js +191 -1
  42. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +311 -1
  73. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +2 -2
  86. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +60 -1
  89. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5,7 +5,7 @@ class MobileDevicesApi {
5
5
  /**
6
6
  * MobileDevices service.
7
7
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
8
- * @version 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class NotificationsApi {
5
5
  /**
6
6
  * Notifications service.
7
7
  * @module purecloud-platform-client-v2/api/NotificationsApi
8
- * @version 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OAuthApi {
5
5
  /**
6
6
  * OAuth service.
7
7
  * @module purecloud-platform-client-v2/api/OAuthApi
8
- * @version 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ObjectsApi {
5
5
  /**
6
6
  * Objects service.
7
7
  * @module purecloud-platform-client-v2/api/ObjectsApi
8
- * @version 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OperationalEventsApi {
5
5
  /**
6
6
  * OperationalEvents service.
7
7
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
8
- * @version 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OrganizationApi {
5
5
  /**
6
6
  * Organization service.
7
7
  * @module purecloud-platform-client-v2/api/OrganizationApi
8
- * @version 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OrganizationAuthorizationApi {
5
5
  /**
6
6
  * OrganizationAuthorization service.
7
7
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
8
- * @version 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OutboundApi {
5
5
  /**
6
6
  * Outbound service.
7
7
  * @module purecloud-platform-client-v2/api/OutboundApi
8
- * @version 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ResponseManagementApi {
5
5
  /**
6
6
  * ResponseManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
8
- * @version 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SCIMApi {
5
5
  /**
6
6
  * SCIM service.
7
7
  * @module purecloud-platform-client-v2/api/SCIMApi
8
- * @version 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -120,6 +120,66 @@ class TaskManagementApi {
120
120
  );
121
121
  }
122
122
 
123
+ /**
124
+ * Delete a rule
125
+ *
126
+ * @param {String} worktypeId Worktype id
127
+ * @param {String} ruleId ruleId
128
+ */
129
+ deleteTaskmanagementWorktypeFlowsOnattributechangeRule(worktypeId, ruleId) {
130
+ // verify the required parameter 'worktypeId' is set
131
+ if (worktypeId === undefined || worktypeId === null) {
132
+ throw 'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';
133
+ }
134
+ // verify the required parameter 'ruleId' is set
135
+ if (ruleId === undefined || ruleId === null) {
136
+ throw 'Missing the required parameter "ruleId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';
137
+ }
138
+
139
+ return this.apiClient.callApi(
140
+ '/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}',
141
+ 'DELETE',
142
+ { 'worktypeId': worktypeId,'ruleId': ruleId },
143
+ { },
144
+ { },
145
+ { },
146
+ null,
147
+ ['PureCloud OAuth'],
148
+ ['application/json'],
149
+ ['application/json']
150
+ );
151
+ }
152
+
153
+ /**
154
+ * Delete a rule
155
+ *
156
+ * @param {String} worktypeId Worktype id
157
+ * @param {String} ruleId ruleId
158
+ */
159
+ deleteTaskmanagementWorktypeFlowsOncreateRule(worktypeId, ruleId) {
160
+ // verify the required parameter 'worktypeId' is set
161
+ if (worktypeId === undefined || worktypeId === null) {
162
+ throw 'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';
163
+ }
164
+ // verify the required parameter 'ruleId' is set
165
+ if (ruleId === undefined || ruleId === null) {
166
+ throw 'Missing the required parameter "ruleId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';
167
+ }
168
+
169
+ return this.apiClient.callApi(
170
+ '/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}',
171
+ 'DELETE',
172
+ { 'worktypeId': worktypeId,'ruleId': ruleId },
173
+ { },
174
+ { },
175
+ { },
176
+ null,
177
+ ['PureCloud OAuth'],
178
+ ['application/json'],
179
+ ['application/json']
180
+ );
181
+ }
182
+
123
183
  /**
124
184
  * Delete a status
125
185
  *
@@ -642,6 +702,126 @@ class TaskManagementApi {
642
702
  );
643
703
  }
644
704
 
705
+ /**
706
+ * Get an attribute change rule
707
+ *
708
+ * @param {String} worktypeId Worktype id
709
+ * @param {String} ruleId ruleId
710
+ */
711
+ getTaskmanagementWorktypeFlowsOnattributechangeRule(worktypeId, ruleId) {
712
+ // verify the required parameter 'worktypeId' is set
713
+ if (worktypeId === undefined || worktypeId === null) {
714
+ throw 'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';
715
+ }
716
+ // verify the required parameter 'ruleId' is set
717
+ if (ruleId === undefined || ruleId === null) {
718
+ throw 'Missing the required parameter "ruleId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';
719
+ }
720
+
721
+ return this.apiClient.callApi(
722
+ '/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}',
723
+ 'GET',
724
+ { 'worktypeId': worktypeId,'ruleId': ruleId },
725
+ { },
726
+ { },
727
+ { },
728
+ null,
729
+ ['PureCloud OAuth'],
730
+ ['application/json'],
731
+ ['application/json']
732
+ );
733
+ }
734
+
735
+ /**
736
+ * Get all attribute-change rules for a worktype
737
+ *
738
+ * @param {String} worktypeId Worktype id
739
+ * @param {Object} opts Optional parameters
740
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
741
+ * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
742
+ */
743
+ getTaskmanagementWorktypeFlowsOnattributechangeRules(worktypeId, opts) {
744
+ opts = opts || {};
745
+
746
+ // verify the required parameter 'worktypeId' is set
747
+ if (worktypeId === undefined || worktypeId === null) {
748
+ throw 'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRules';
749
+ }
750
+
751
+ return this.apiClient.callApi(
752
+ '/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules',
753
+ 'GET',
754
+ { 'worktypeId': worktypeId },
755
+ { 'after': opts['after'],'pageSize': opts['pageSize'] },
756
+ { },
757
+ { },
758
+ null,
759
+ ['PureCloud OAuth'],
760
+ ['application/json'],
761
+ ['application/json']
762
+ );
763
+ }
764
+
765
+ /**
766
+ * Get an on-create rule
767
+ *
768
+ * @param {String} worktypeId Worktype id
769
+ * @param {String} ruleId ruleId
770
+ */
771
+ getTaskmanagementWorktypeFlowsOncreateRule(worktypeId, ruleId) {
772
+ // verify the required parameter 'worktypeId' is set
773
+ if (worktypeId === undefined || worktypeId === null) {
774
+ throw 'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRule';
775
+ }
776
+ // verify the required parameter 'ruleId' is set
777
+ if (ruleId === undefined || ruleId === null) {
778
+ throw 'Missing the required parameter "ruleId" when calling getTaskmanagementWorktypeFlowsOncreateRule';
779
+ }
780
+
781
+ return this.apiClient.callApi(
782
+ '/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}',
783
+ 'GET',
784
+ { 'worktypeId': worktypeId,'ruleId': ruleId },
785
+ { },
786
+ { },
787
+ { },
788
+ null,
789
+ ['PureCloud OAuth'],
790
+ ['application/json'],
791
+ ['application/json']
792
+ );
793
+ }
794
+
795
+ /**
796
+ * Get all on-create rules for a worktype
797
+ *
798
+ * @param {String} worktypeId Worktype id
799
+ * @param {Object} opts Optional parameters
800
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
801
+ * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
802
+ */
803
+ getTaskmanagementWorktypeFlowsOncreateRules(worktypeId, opts) {
804
+ opts = opts || {};
805
+
806
+ // verify the required parameter 'worktypeId' is set
807
+ if (worktypeId === undefined || worktypeId === null) {
808
+ throw 'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRules';
809
+ }
810
+
811
+ return this.apiClient.callApi(
812
+ '/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules',
813
+ 'GET',
814
+ { 'worktypeId': worktypeId },
815
+ { 'after': opts['after'],'pageSize': opts['pageSize'] },
816
+ { },
817
+ { },
818
+ null,
819
+ ['PureCloud OAuth'],
820
+ ['application/json'],
821
+ ['application/json']
822
+ );
823
+ }
824
+
645
825
  /**
646
826
  * Get a listing of a worktype's attribute change history
647
827
  *
@@ -978,6 +1158,76 @@ class TaskManagementApi {
978
1158
  );
979
1159
  }
980
1160
 
1161
+ /**
1162
+ * Update the attributes of a rule
1163
+ *
1164
+ * @param {String} worktypeId Worktype id
1165
+ * @param {String} ruleId ruleId
1166
+ * @param {Object} body Rule
1167
+ */
1168
+ patchTaskmanagementWorktypeFlowsOnattributechangeRule(worktypeId, ruleId, body) {
1169
+ // verify the required parameter 'worktypeId' is set
1170
+ if (worktypeId === undefined || worktypeId === null) {
1171
+ throw 'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';
1172
+ }
1173
+ // verify the required parameter 'ruleId' is set
1174
+ if (ruleId === undefined || ruleId === null) {
1175
+ throw 'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';
1176
+ }
1177
+ // verify the required parameter 'body' is set
1178
+ if (body === undefined || body === null) {
1179
+ throw 'Missing the required parameter "body" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';
1180
+ }
1181
+
1182
+ return this.apiClient.callApi(
1183
+ '/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}',
1184
+ 'PATCH',
1185
+ { 'worktypeId': worktypeId,'ruleId': ruleId },
1186
+ { },
1187
+ { },
1188
+ { },
1189
+ body,
1190
+ ['PureCloud OAuth'],
1191
+ ['application/json'],
1192
+ ['application/json']
1193
+ );
1194
+ }
1195
+
1196
+ /**
1197
+ * Update the attributes of a rule
1198
+ *
1199
+ * @param {String} worktypeId Worktype id
1200
+ * @param {String} ruleId ruleId
1201
+ * @param {Object} body Rule
1202
+ */
1203
+ patchTaskmanagementWorktypeFlowsOncreateRule(worktypeId, ruleId, body) {
1204
+ // verify the required parameter 'worktypeId' is set
1205
+ if (worktypeId === undefined || worktypeId === null) {
1206
+ throw 'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';
1207
+ }
1208
+ // verify the required parameter 'ruleId' is set
1209
+ if (ruleId === undefined || ruleId === null) {
1210
+ throw 'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';
1211
+ }
1212
+ // verify the required parameter 'body' is set
1213
+ if (body === undefined || body === null) {
1214
+ throw 'Missing the required parameter "body" when calling patchTaskmanagementWorktypeFlowsOncreateRule';
1215
+ }
1216
+
1217
+ return this.apiClient.callApi(
1218
+ '/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}',
1219
+ 'PATCH',
1220
+ { 'worktypeId': worktypeId,'ruleId': ruleId },
1221
+ { },
1222
+ { },
1223
+ { },
1224
+ body,
1225
+ ['PureCloud OAuth'],
1226
+ ['application/json'],
1227
+ ['application/json']
1228
+ );
1229
+ }
1230
+
981
1231
  /**
982
1232
  * Update the attributes of a status
983
1233
  *
@@ -1243,6 +1493,66 @@ class TaskManagementApi {
1243
1493
  );
1244
1494
  }
1245
1495
 
1496
+ /**
1497
+ * Add an attribute-change rule to a worktype
1498
+ *
1499
+ * @param {String} worktypeId Worktype id
1500
+ * @param {Object} body Rule
1501
+ */
1502
+ postTaskmanagementWorktypeFlowsOnattributechangeRules(worktypeId, body) {
1503
+ // verify the required parameter 'worktypeId' is set
1504
+ if (worktypeId === undefined || worktypeId === null) {
1505
+ throw 'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';
1506
+ }
1507
+ // verify the required parameter 'body' is set
1508
+ if (body === undefined || body === null) {
1509
+ throw 'Missing the required parameter "body" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';
1510
+ }
1511
+
1512
+ return this.apiClient.callApi(
1513
+ '/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules',
1514
+ 'POST',
1515
+ { 'worktypeId': worktypeId },
1516
+ { },
1517
+ { },
1518
+ { },
1519
+ body,
1520
+ ['PureCloud OAuth'],
1521
+ ['application/json'],
1522
+ ['application/json']
1523
+ );
1524
+ }
1525
+
1526
+ /**
1527
+ * Add an on-create rule to a worktype
1528
+ *
1529
+ * @param {String} worktypeId Worktype id
1530
+ * @param {Object} body Rule
1531
+ */
1532
+ postTaskmanagementWorktypeFlowsOncreateRules(worktypeId, body) {
1533
+ // verify the required parameter 'worktypeId' is set
1534
+ if (worktypeId === undefined || worktypeId === null) {
1535
+ throw 'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOncreateRules';
1536
+ }
1537
+ // verify the required parameter 'body' is set
1538
+ if (body === undefined || body === null) {
1539
+ throw 'Missing the required parameter "body" when calling postTaskmanagementWorktypeFlowsOncreateRules';
1540
+ }
1541
+
1542
+ return this.apiClient.callApi(
1543
+ '/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules',
1544
+ 'POST',
1545
+ { 'worktypeId': worktypeId },
1546
+ { },
1547
+ { },
1548
+ { },
1549
+ body,
1550
+ ['PureCloud OAuth'],
1551
+ ['application/json'],
1552
+ ['application/json']
1553
+ );
1554
+ }
1555
+
1246
1556
  /**
1247
1557
  * Add a status to a worktype
1248
1558
  *
@@ -5,7 +5,7 @@ class TeamsApi {
5
5
  /**
6
6
  * Teams service.
7
7
  * @module purecloud-platform-client-v2/api/TeamsApi
8
- * @version 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.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 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UsersApi {
5
5
  /**
6
6
  * Users service.
7
7
  * @module purecloud-platform-client-v2/api/UsersApi
8
- * @version 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UtilitiesApi {
5
5
  /**
6
6
  * Utilities service.
7
7
  * @module purecloud-platform-client-v2/api/UtilitiesApi
8
- * @version 205.0.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**