purecloud-platform-client-v2 211.1.0 → 212.1.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 +18 -4
- package/dist/node/purecloud-platform-client-v2.js +1049 -239
- package/dist/web-amd/purecloud-platform-client-v2.js +1050 -239
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +471 -277
- package/dist/web-cjs/purecloud-platform-client-v2.js +662 -6356
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +843 -236
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +21 -18
- 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 +212 -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 +7 -3
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.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 +3 -2
- 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 +57 -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 +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -2
- 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 +1 -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 +2 -2
- 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/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -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 +443 -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 +1 -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 +1 -1
- 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 +94 -1
- package/src/purecloud-platform-client-v2/index.js +8 -3
|
@@ -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 212.1.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -70,6 +70,56 @@ class TaskManagementApi {
|
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Delete a bulk add job
|
|
75
|
+
*
|
|
76
|
+
* @param {String} bulkJobId Bulk job id
|
|
77
|
+
*/
|
|
78
|
+
deleteTaskmanagementWorkitemsBulkAddJob(bulkJobId) {
|
|
79
|
+
// verify the required parameter 'bulkJobId' is set
|
|
80
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
81
|
+
throw 'Missing the required parameter "bulkJobId" when calling deleteTaskmanagementWorkitemsBulkAddJob';
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return this.apiClient.callApi(
|
|
85
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
|
|
86
|
+
'DELETE',
|
|
87
|
+
{ 'bulkJobId': bulkJobId },
|
|
88
|
+
{ },
|
|
89
|
+
{ },
|
|
90
|
+
{ },
|
|
91
|
+
null,
|
|
92
|
+
['PureCloud OAuth'],
|
|
93
|
+
['application/json'],
|
|
94
|
+
['application/json']
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Delete a Bulk job
|
|
100
|
+
*
|
|
101
|
+
* @param {String} bulkJobId Bulk job id
|
|
102
|
+
*/
|
|
103
|
+
deleteTaskmanagementWorkitemsBulkTerminateJob(bulkJobId) {
|
|
104
|
+
// verify the required parameter 'bulkJobId' is set
|
|
105
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
106
|
+
throw 'Missing the required parameter "bulkJobId" when calling deleteTaskmanagementWorkitemsBulkTerminateJob';
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return this.apiClient.callApi(
|
|
110
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
|
|
111
|
+
'DELETE',
|
|
112
|
+
{ 'bulkJobId': bulkJobId },
|
|
113
|
+
{ },
|
|
114
|
+
{ },
|
|
115
|
+
{ },
|
|
116
|
+
null,
|
|
117
|
+
['PureCloud OAuth'],
|
|
118
|
+
['application/json'],
|
|
119
|
+
['application/json']
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
73
123
|
/**
|
|
74
124
|
* Delete a schema
|
|
75
125
|
*
|
|
@@ -120,6 +170,36 @@ class TaskManagementApi {
|
|
|
120
170
|
);
|
|
121
171
|
}
|
|
122
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Delete a date based rule
|
|
175
|
+
*
|
|
176
|
+
* @param {String} worktypeId Worktype id
|
|
177
|
+
* @param {String} ruleId ruleId
|
|
178
|
+
*/
|
|
179
|
+
deleteTaskmanagementWorktypeFlowsDatebasedRule(worktypeId, ruleId) {
|
|
180
|
+
// verify the required parameter 'worktypeId' is set
|
|
181
|
+
if (worktypeId === undefined || worktypeId === null) {
|
|
182
|
+
throw 'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsDatebasedRule';
|
|
183
|
+
}
|
|
184
|
+
// verify the required parameter 'ruleId' is set
|
|
185
|
+
if (ruleId === undefined || ruleId === null) {
|
|
186
|
+
throw 'Missing the required parameter "ruleId" when calling deleteTaskmanagementWorktypeFlowsDatebasedRule';
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return this.apiClient.callApi(
|
|
190
|
+
'/api/v2/taskmanagement/worktypes/{worktypeId}/flows/datebased/rules/{ruleId}',
|
|
191
|
+
'DELETE',
|
|
192
|
+
{ 'worktypeId': worktypeId,'ruleId': ruleId },
|
|
193
|
+
{ },
|
|
194
|
+
{ },
|
|
195
|
+
{ },
|
|
196
|
+
null,
|
|
197
|
+
['PureCloud OAuth'],
|
|
198
|
+
['application/json'],
|
|
199
|
+
['application/json']
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
123
203
|
/**
|
|
124
204
|
* Delete a rule
|
|
125
205
|
*
|
|
@@ -523,6 +603,133 @@ class TaskManagementApi {
|
|
|
523
603
|
);
|
|
524
604
|
}
|
|
525
605
|
|
|
606
|
+
/**
|
|
607
|
+
* Get the bulk add job associated with the job id.
|
|
608
|
+
*
|
|
609
|
+
* @param {String} bulkJobId Bulk job id
|
|
610
|
+
*/
|
|
611
|
+
getTaskmanagementWorkitemsBulkAddJob(bulkJobId) {
|
|
612
|
+
// verify the required parameter 'bulkJobId' is set
|
|
613
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
614
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkAddJob';
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
return this.apiClient.callApi(
|
|
618
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
|
|
619
|
+
'GET',
|
|
620
|
+
{ 'bulkJobId': bulkJobId },
|
|
621
|
+
{ },
|
|
622
|
+
{ },
|
|
623
|
+
{ },
|
|
624
|
+
null,
|
|
625
|
+
['PureCloud OAuth'],
|
|
626
|
+
['application/json'],
|
|
627
|
+
['application/json']
|
|
628
|
+
);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Get bulk add job results.
|
|
633
|
+
*
|
|
634
|
+
* @param {String} bulkJobId Bulk job id
|
|
635
|
+
*/
|
|
636
|
+
getTaskmanagementWorkitemsBulkAddJobResults(bulkJobId) {
|
|
637
|
+
// verify the required parameter 'bulkJobId' is set
|
|
638
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
639
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkAddJobResults';
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
return this.apiClient.callApi(
|
|
643
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}/results',
|
|
644
|
+
'GET',
|
|
645
|
+
{ 'bulkJobId': bulkJobId },
|
|
646
|
+
{ },
|
|
647
|
+
{ },
|
|
648
|
+
{ },
|
|
649
|
+
null,
|
|
650
|
+
['PureCloud OAuth'],
|
|
651
|
+
['application/json'],
|
|
652
|
+
['application/json']
|
|
653
|
+
);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Get bulk jobs created by the currently logged in user.
|
|
658
|
+
*
|
|
659
|
+
* @param {Object} opts Optional parameters
|
|
660
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
661
|
+
* @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)
|
|
662
|
+
* @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
|
|
663
|
+
* @param {Object} opts.action The bulk job action.
|
|
664
|
+
*/
|
|
665
|
+
getTaskmanagementWorkitemsBulkJobsUsersMe(opts) {
|
|
666
|
+
opts = opts || {};
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
return this.apiClient.callApi(
|
|
670
|
+
'/api/v2/taskmanagement/workitems/bulk/jobs/users/me',
|
|
671
|
+
'GET',
|
|
672
|
+
{ },
|
|
673
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'],'sortOrder': opts['sortOrder'],'action': opts['action'] },
|
|
674
|
+
{ },
|
|
675
|
+
{ },
|
|
676
|
+
null,
|
|
677
|
+
['PureCloud OAuth'],
|
|
678
|
+
['application/json'],
|
|
679
|
+
['application/json']
|
|
680
|
+
);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Get the bulk job associated with the job id.
|
|
685
|
+
*
|
|
686
|
+
* @param {String} bulkJobId Bulk job id
|
|
687
|
+
*/
|
|
688
|
+
getTaskmanagementWorkitemsBulkTerminateJob(bulkJobId) {
|
|
689
|
+
// verify the required parameter 'bulkJobId' is set
|
|
690
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
691
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkTerminateJob';
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
return this.apiClient.callApi(
|
|
695
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
|
|
696
|
+
'GET',
|
|
697
|
+
{ 'bulkJobId': bulkJobId },
|
|
698
|
+
{ },
|
|
699
|
+
{ },
|
|
700
|
+
{ },
|
|
701
|
+
null,
|
|
702
|
+
['PureCloud OAuth'],
|
|
703
|
+
['application/json'],
|
|
704
|
+
['application/json']
|
|
705
|
+
);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Get bulk terminate job results.
|
|
710
|
+
*
|
|
711
|
+
* @param {String} bulkJobId Bulk job id
|
|
712
|
+
*/
|
|
713
|
+
getTaskmanagementWorkitemsBulkTerminateJobResults(bulkJobId) {
|
|
714
|
+
// verify the required parameter 'bulkJobId' is set
|
|
715
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
716
|
+
throw 'Missing the required parameter "bulkJobId" when calling getTaskmanagementWorkitemsBulkTerminateJobResults';
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
return this.apiClient.callApi(
|
|
720
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}/results',
|
|
721
|
+
'GET',
|
|
722
|
+
{ 'bulkJobId': bulkJobId },
|
|
723
|
+
{ },
|
|
724
|
+
{ },
|
|
725
|
+
{ },
|
|
726
|
+
null,
|
|
727
|
+
['PureCloud OAuth'],
|
|
728
|
+
['application/json'],
|
|
729
|
+
['application/json']
|
|
730
|
+
);
|
|
731
|
+
}
|
|
732
|
+
|
|
526
733
|
/**
|
|
527
734
|
* Get the workitem query job associated with the job id.
|
|
528
735
|
*
|
|
@@ -702,6 +909,66 @@ class TaskManagementApi {
|
|
|
702
909
|
);
|
|
703
910
|
}
|
|
704
911
|
|
|
912
|
+
/**
|
|
913
|
+
* Get a date based rule
|
|
914
|
+
*
|
|
915
|
+
* @param {String} worktypeId Worktype id
|
|
916
|
+
* @param {String} ruleId ruleId
|
|
917
|
+
*/
|
|
918
|
+
getTaskmanagementWorktypeFlowsDatebasedRule(worktypeId, ruleId) {
|
|
919
|
+
// verify the required parameter 'worktypeId' is set
|
|
920
|
+
if (worktypeId === undefined || worktypeId === null) {
|
|
921
|
+
throw 'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsDatebasedRule';
|
|
922
|
+
}
|
|
923
|
+
// verify the required parameter 'ruleId' is set
|
|
924
|
+
if (ruleId === undefined || ruleId === null) {
|
|
925
|
+
throw 'Missing the required parameter "ruleId" when calling getTaskmanagementWorktypeFlowsDatebasedRule';
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
return this.apiClient.callApi(
|
|
929
|
+
'/api/v2/taskmanagement/worktypes/{worktypeId}/flows/datebased/rules/{ruleId}',
|
|
930
|
+
'GET',
|
|
931
|
+
{ 'worktypeId': worktypeId,'ruleId': ruleId },
|
|
932
|
+
{ },
|
|
933
|
+
{ },
|
|
934
|
+
{ },
|
|
935
|
+
null,
|
|
936
|
+
['PureCloud OAuth'],
|
|
937
|
+
['application/json'],
|
|
938
|
+
['application/json']
|
|
939
|
+
);
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Get all date based rules for a worktype
|
|
944
|
+
*
|
|
945
|
+
* @param {String} worktypeId Worktype id
|
|
946
|
+
* @param {Object} opts Optional parameters
|
|
947
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
948
|
+
* @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)
|
|
949
|
+
*/
|
|
950
|
+
getTaskmanagementWorktypeFlowsDatebasedRules(worktypeId, opts) {
|
|
951
|
+
opts = opts || {};
|
|
952
|
+
|
|
953
|
+
// verify the required parameter 'worktypeId' is set
|
|
954
|
+
if (worktypeId === undefined || worktypeId === null) {
|
|
955
|
+
throw 'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsDatebasedRules';
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
return this.apiClient.callApi(
|
|
959
|
+
'/api/v2/taskmanagement/worktypes/{worktypeId}/flows/datebased/rules',
|
|
960
|
+
'GET',
|
|
961
|
+
{ 'worktypeId': worktypeId },
|
|
962
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
963
|
+
{ },
|
|
964
|
+
{ },
|
|
965
|
+
null,
|
|
966
|
+
['PureCloud OAuth'],
|
|
967
|
+
['application/json'],
|
|
968
|
+
['application/json']
|
|
969
|
+
);
|
|
970
|
+
}
|
|
971
|
+
|
|
705
972
|
/**
|
|
706
973
|
* Get an attribute change rule
|
|
707
974
|
*
|
|
@@ -1128,6 +1395,66 @@ class TaskManagementApi {
|
|
|
1128
1395
|
);
|
|
1129
1396
|
}
|
|
1130
1397
|
|
|
1398
|
+
/**
|
|
1399
|
+
* Update workitem bulk add job.
|
|
1400
|
+
*
|
|
1401
|
+
* @param {String} bulkJobId Bulk job id
|
|
1402
|
+
* @param {Object} body Bulk add job update request
|
|
1403
|
+
*/
|
|
1404
|
+
patchTaskmanagementWorkitemsBulkAddJob(bulkJobId, body) {
|
|
1405
|
+
// verify the required parameter 'bulkJobId' is set
|
|
1406
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
1407
|
+
throw 'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkAddJob';
|
|
1408
|
+
}
|
|
1409
|
+
// verify the required parameter 'body' is set
|
|
1410
|
+
if (body === undefined || body === null) {
|
|
1411
|
+
throw 'Missing the required parameter "body" when calling patchTaskmanagementWorkitemsBulkAddJob';
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
return this.apiClient.callApi(
|
|
1415
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs/{bulkJobId}',
|
|
1416
|
+
'PATCH',
|
|
1417
|
+
{ 'bulkJobId': bulkJobId },
|
|
1418
|
+
{ },
|
|
1419
|
+
{ },
|
|
1420
|
+
{ },
|
|
1421
|
+
body,
|
|
1422
|
+
['PureCloud OAuth'],
|
|
1423
|
+
['application/json'],
|
|
1424
|
+
['application/json']
|
|
1425
|
+
);
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* Update workitem bulk terminate job.
|
|
1430
|
+
*
|
|
1431
|
+
* @param {String} bulkJobId Bulk job id
|
|
1432
|
+
* @param {Object} body Bulk job update request
|
|
1433
|
+
*/
|
|
1434
|
+
patchTaskmanagementWorkitemsBulkTerminateJob(bulkJobId, body) {
|
|
1435
|
+
// verify the required parameter 'bulkJobId' is set
|
|
1436
|
+
if (bulkJobId === undefined || bulkJobId === null) {
|
|
1437
|
+
throw 'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkTerminateJob';
|
|
1438
|
+
}
|
|
1439
|
+
// verify the required parameter 'body' is set
|
|
1440
|
+
if (body === undefined || body === null) {
|
|
1441
|
+
throw 'Missing the required parameter "body" when calling patchTaskmanagementWorkitemsBulkTerminateJob';
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
return this.apiClient.callApi(
|
|
1445
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs/{bulkJobId}',
|
|
1446
|
+
'PATCH',
|
|
1447
|
+
{ 'bulkJobId': bulkJobId },
|
|
1448
|
+
{ },
|
|
1449
|
+
{ },
|
|
1450
|
+
{ },
|
|
1451
|
+
body,
|
|
1452
|
+
['PureCloud OAuth'],
|
|
1453
|
+
['application/json'],
|
|
1454
|
+
['application/json']
|
|
1455
|
+
);
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1131
1458
|
/**
|
|
1132
1459
|
* Update the attributes of a worktype
|
|
1133
1460
|
*
|
|
@@ -1158,6 +1485,41 @@ class TaskManagementApi {
|
|
|
1158
1485
|
);
|
|
1159
1486
|
}
|
|
1160
1487
|
|
|
1488
|
+
/**
|
|
1489
|
+
* Update the attributes of a date based rule
|
|
1490
|
+
*
|
|
1491
|
+
* @param {String} worktypeId Worktype id
|
|
1492
|
+
* @param {String} ruleId ruleId
|
|
1493
|
+
* @param {Object} body Rule
|
|
1494
|
+
*/
|
|
1495
|
+
patchTaskmanagementWorktypeFlowsDatebasedRule(worktypeId, ruleId, body) {
|
|
1496
|
+
// verify the required parameter 'worktypeId' is set
|
|
1497
|
+
if (worktypeId === undefined || worktypeId === null) {
|
|
1498
|
+
throw 'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';
|
|
1499
|
+
}
|
|
1500
|
+
// verify the required parameter 'ruleId' is set
|
|
1501
|
+
if (ruleId === undefined || ruleId === null) {
|
|
1502
|
+
throw 'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';
|
|
1503
|
+
}
|
|
1504
|
+
// verify the required parameter 'body' is set
|
|
1505
|
+
if (body === undefined || body === null) {
|
|
1506
|
+
throw 'Missing the required parameter "body" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
return this.apiClient.callApi(
|
|
1510
|
+
'/api/v2/taskmanagement/worktypes/{worktypeId}/flows/datebased/rules/{ruleId}',
|
|
1511
|
+
'PATCH',
|
|
1512
|
+
{ 'worktypeId': worktypeId,'ruleId': ruleId },
|
|
1513
|
+
{ },
|
|
1514
|
+
{ },
|
|
1515
|
+
{ },
|
|
1516
|
+
body,
|
|
1517
|
+
['PureCloud OAuth'],
|
|
1518
|
+
['application/json'],
|
|
1519
|
+
['application/json']
|
|
1520
|
+
);
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1161
1523
|
/**
|
|
1162
1524
|
* Update the attributes of a rule
|
|
1163
1525
|
*
|
|
@@ -1417,6 +1779,56 @@ class TaskManagementApi {
|
|
|
1417
1779
|
);
|
|
1418
1780
|
}
|
|
1419
1781
|
|
|
1782
|
+
/**
|
|
1783
|
+
* Create a workitem bulk add job.
|
|
1784
|
+
*
|
|
1785
|
+
* @param {Object} body Bulk job definition.
|
|
1786
|
+
*/
|
|
1787
|
+
postTaskmanagementWorkitemsBulkAddJobs(body) {
|
|
1788
|
+
// verify the required parameter 'body' is set
|
|
1789
|
+
if (body === undefined || body === null) {
|
|
1790
|
+
throw 'Missing the required parameter "body" when calling postTaskmanagementWorkitemsBulkAddJobs';
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
return this.apiClient.callApi(
|
|
1794
|
+
'/api/v2/taskmanagement/workitems/bulk/add/jobs',
|
|
1795
|
+
'POST',
|
|
1796
|
+
{ },
|
|
1797
|
+
{ },
|
|
1798
|
+
{ },
|
|
1799
|
+
{ },
|
|
1800
|
+
body,
|
|
1801
|
+
['PureCloud OAuth'],
|
|
1802
|
+
['application/json'],
|
|
1803
|
+
['application/json']
|
|
1804
|
+
);
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* Create a workitem bulk terminate job.
|
|
1809
|
+
*
|
|
1810
|
+
* @param {Object} body Bulk job definition.
|
|
1811
|
+
*/
|
|
1812
|
+
postTaskmanagementWorkitemsBulkTerminateJobs(body) {
|
|
1813
|
+
// verify the required parameter 'body' is set
|
|
1814
|
+
if (body === undefined || body === null) {
|
|
1815
|
+
throw 'Missing the required parameter "body" when calling postTaskmanagementWorkitemsBulkTerminateJobs';
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
return this.apiClient.callApi(
|
|
1819
|
+
'/api/v2/taskmanagement/workitems/bulk/terminate/jobs',
|
|
1820
|
+
'POST',
|
|
1821
|
+
{ },
|
|
1822
|
+
{ },
|
|
1823
|
+
{ },
|
|
1824
|
+
{ },
|
|
1825
|
+
body,
|
|
1826
|
+
['PureCloud OAuth'],
|
|
1827
|
+
['application/json'],
|
|
1828
|
+
['application/json']
|
|
1829
|
+
);
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1420
1832
|
/**
|
|
1421
1833
|
* Query for workitems
|
|
1422
1834
|
* This query requires at least one EQ filter on the workbinId, assigneeId or typeId attributes.
|
|
@@ -1493,6 +1905,36 @@ class TaskManagementApi {
|
|
|
1493
1905
|
);
|
|
1494
1906
|
}
|
|
1495
1907
|
|
|
1908
|
+
/**
|
|
1909
|
+
* Add a date based rule to a worktype
|
|
1910
|
+
*
|
|
1911
|
+
* @param {String} worktypeId Worktype id
|
|
1912
|
+
* @param {Object} body Rule
|
|
1913
|
+
*/
|
|
1914
|
+
postTaskmanagementWorktypeFlowsDatebasedRules(worktypeId, body) {
|
|
1915
|
+
// verify the required parameter 'worktypeId' is set
|
|
1916
|
+
if (worktypeId === undefined || worktypeId === null) {
|
|
1917
|
+
throw 'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsDatebasedRules';
|
|
1918
|
+
}
|
|
1919
|
+
// verify the required parameter 'body' is set
|
|
1920
|
+
if (body === undefined || body === null) {
|
|
1921
|
+
throw 'Missing the required parameter "body" when calling postTaskmanagementWorktypeFlowsDatebasedRules';
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
return this.apiClient.callApi(
|
|
1925
|
+
'/api/v2/taskmanagement/worktypes/{worktypeId}/flows/datebased/rules',
|
|
1926
|
+
'POST',
|
|
1927
|
+
{ 'worktypeId': worktypeId },
|
|
1928
|
+
{ },
|
|
1929
|
+
{ },
|
|
1930
|
+
{ },
|
|
1931
|
+
body,
|
|
1932
|
+
['PureCloud OAuth'],
|
|
1933
|
+
['application/json'],
|
|
1934
|
+
['application/json']
|
|
1935
|
+
);
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1496
1938
|
/**
|
|
1497
1939
|
* Add an attribute-change rule to a worktype
|
|
1498
1940
|
*
|