purecloud-platform-client-v2 204.1.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.
- package/README.md +5 -3
- package/dist/node/purecloud-platform-client-v2.js +1344 -85
- package/dist/web-amd/purecloud-platform-client-v2.js +1344 -85
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +410 -87
- package/dist/web-cjs/purecloud-platform-client-v2.js +410 -87
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +986 -7
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +33 -4
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +191 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +516 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +31 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +58 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +311 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +70 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +60 -1
- 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
|
|
8
|
+
* @version 206.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1116,6 +1116,36 @@ class OutboundApi {
|
|
|
1116
1116
|
);
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
|
+
/**
|
|
1120
|
+
* Get the remaining and total contact count for each skill combination in a skills campaign
|
|
1121
|
+
*
|
|
1122
|
+
* @param {String} campaignId Campaign ID
|
|
1123
|
+
* @param {Object} opts Optional parameters
|
|
1124
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1125
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1126
|
+
*/
|
|
1127
|
+
getOutboundCampaignSkillcombinations(campaignId, opts) {
|
|
1128
|
+
opts = opts || {};
|
|
1129
|
+
|
|
1130
|
+
// verify the required parameter 'campaignId' is set
|
|
1131
|
+
if (campaignId === undefined || campaignId === null) {
|
|
1132
|
+
throw 'Missing the required parameter "campaignId" when calling getOutboundCampaignSkillcombinations';
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
return this.apiClient.callApi(
|
|
1136
|
+
'/api/v2/outbound/campaigns/{campaignId}/skillcombinations',
|
|
1137
|
+
'GET',
|
|
1138
|
+
{ 'campaignId': campaignId },
|
|
1139
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
|
|
1140
|
+
{ },
|
|
1141
|
+
{ },
|
|
1142
|
+
null,
|
|
1143
|
+
['PureCloud OAuth'],
|
|
1144
|
+
['application/json'],
|
|
1145
|
+
['application/json']
|
|
1146
|
+
);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1119
1149
|
/**
|
|
1120
1150
|
* Get statistics about a Dialer Campaign
|
|
1121
1151
|
*
|
|
@@ -5,7 +5,7 @@ class SpeechTextAnalyticsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* SpeechTextAnalytics service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 206.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -823,6 +823,63 @@ class SpeechTextAnalyticsApi {
|
|
|
823
823
|
);
|
|
824
824
|
}
|
|
825
825
|
|
|
826
|
+
/**
|
|
827
|
+
* Translate all communication(s) for an interaction.
|
|
828
|
+
*
|
|
829
|
+
* @param {String} languageId Target translation language
|
|
830
|
+
* @param {String} conversationId Conversation id
|
|
831
|
+
* @param {Object} opts Optional parameters
|
|
832
|
+
* @param {String} opts.communicationId Communication id associated with the conversation
|
|
833
|
+
* @param {String} opts.recordingId Recording id associated with the communication
|
|
834
|
+
* getSpeechandtextanalyticsTranslationsLanguageConversation is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
835
|
+
*/
|
|
836
|
+
getSpeechandtextanalyticsTranslationsLanguageConversation(languageId, conversationId, opts) {
|
|
837
|
+
opts = opts || {};
|
|
838
|
+
|
|
839
|
+
// verify the required parameter 'languageId' is set
|
|
840
|
+
if (languageId === undefined || languageId === null) {
|
|
841
|
+
throw 'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';
|
|
842
|
+
}
|
|
843
|
+
// verify the required parameter 'conversationId' is set
|
|
844
|
+
if (conversationId === undefined || conversationId === null) {
|
|
845
|
+
throw 'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
return this.apiClient.callApi(
|
|
849
|
+
'/api/v2/speechandtextanalytics/translations/languages/{languageId}/conversations/{conversationId}',
|
|
850
|
+
'GET',
|
|
851
|
+
{ 'languageId': languageId,'conversationId': conversationId },
|
|
852
|
+
{ 'communicationId': opts['communicationId'],'recordingId': opts['recordingId'] },
|
|
853
|
+
{ },
|
|
854
|
+
{ },
|
|
855
|
+
null,
|
|
856
|
+
['PureCloud OAuth'],
|
|
857
|
+
['application/json'],
|
|
858
|
+
['application/json']
|
|
859
|
+
);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* Get supported translation languages
|
|
864
|
+
*
|
|
865
|
+
* getSpeechandtextanalyticsTranslationsLanguages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
866
|
+
*/
|
|
867
|
+
getSpeechandtextanalyticsTranslationsLanguages() {
|
|
868
|
+
|
|
869
|
+
return this.apiClient.callApi(
|
|
870
|
+
'/api/v2/speechandtextanalytics/translations/languages',
|
|
871
|
+
'GET',
|
|
872
|
+
{ },
|
|
873
|
+
{ },
|
|
874
|
+
{ },
|
|
875
|
+
{ },
|
|
876
|
+
null,
|
|
877
|
+
['PureCloud OAuth'],
|
|
878
|
+
['application/json'],
|
|
879
|
+
['application/json']
|
|
880
|
+
);
|
|
881
|
+
}
|
|
882
|
+
|
|
826
883
|
/**
|
|
827
884
|
* Patch Speech And Text Analytics Settings
|
|
828
885
|
*
|
|
@@ -5,7 +5,7 @@ class TaskManagementApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* TaskManagement service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
8
|
-
* @version
|
|
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
|
*
|