purecloud-platform-client-v2 231.0.0 → 233.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 +22 -3
- package/dist/node/purecloud-platform-client-v2.js +378 -111
- package/dist/web-amd/purecloud-platform-client-v2.js +378 -111
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +183 -112
- package/dist/web-cjs/purecloud-platform-client-v2.js +183 -112
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1090 -522
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +31 -6
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +25 -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/BusinessRulesApi.js +3 -3
- 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 +173 -4
- 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 +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 +11 -5
- 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 +5 -2
- 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 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +7 -3
- 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 +2 -2
- 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 +6 -4
- 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 +3 -2
- 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 +3 -3
- 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 +7 -4
- 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 +31 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5,7 +5,7 @@ class GamificationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Gamification service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 233.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -365,6 +365,7 @@ class GamificationApi {
|
|
|
365
365
|
* @param {String} opts.sortMetricId Sort Metric Id
|
|
366
366
|
* @param {Object} opts.sortOrder Sort order (default to asc)
|
|
367
367
|
* @param {String} opts.userIds A list of up to 100 comma-separated user Ids
|
|
368
|
+
* @param {String} opts.reportsTo The reportsTo used by ABAC policies.
|
|
368
369
|
*/
|
|
369
370
|
getGamificationInsights(filterType, filterId, granularity, comparativePeriodStartWorkday, primaryPeriodStartWorkday, opts) {
|
|
370
371
|
opts = opts || {};
|
|
@@ -394,7 +395,7 @@ class GamificationApi {
|
|
|
394
395
|
'/api/v2/gamification/insights',
|
|
395
396
|
'GET',
|
|
396
397
|
{ },
|
|
397
|
-
{ 'filterType': filterType,'filterId': filterId,'granularity': granularity,'comparativePeriodStartWorkday': comparativePeriodStartWorkday,'primaryPeriodStartWorkday': primaryPeriodStartWorkday,'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortKey': opts['sortKey'],'sortMetricId': opts['sortMetricId'],'sortOrder': opts['sortOrder'],'userIds': opts['userIds'] },
|
|
398
|
+
{ 'filterType': filterType,'filterId': filterId,'granularity': granularity,'comparativePeriodStartWorkday': comparativePeriodStartWorkday,'primaryPeriodStartWorkday': primaryPeriodStartWorkday,'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortKey': opts['sortKey'],'sortMetricId': opts['sortMetricId'],'sortOrder': opts['sortOrder'],'userIds': opts['userIds'],'reportsTo': opts['reportsTo'] },
|
|
398
399
|
{ },
|
|
399
400
|
{ },
|
|
400
401
|
null,
|
|
@@ -566,8 +567,12 @@ class GamificationApi {
|
|
|
566
567
|
* @param {String} filterId ID for the filter type.
|
|
567
568
|
* @param {Object} granularity Granularity
|
|
568
569
|
* @param {String} startWorkday The start work day. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
570
|
+
* @param {Object} opts Optional parameters
|
|
571
|
+
* @param {String} opts.reportsTo The reportsTo used by ABAC policies.
|
|
569
572
|
*/
|
|
570
|
-
getGamificationInsightsMembers(filterType, filterId, granularity, startWorkday) {
|
|
573
|
+
getGamificationInsightsMembers(filterType, filterId, granularity, startWorkday, opts) {
|
|
574
|
+
opts = opts || {};
|
|
575
|
+
|
|
571
576
|
// verify the required parameter 'filterType' is set
|
|
572
577
|
if (filterType === undefined || filterType === null) {
|
|
573
578
|
throw 'Missing the required parameter "filterType" when calling getGamificationInsightsMembers';
|
|
@@ -589,7 +594,7 @@ class GamificationApi {
|
|
|
589
594
|
'/api/v2/gamification/insights/members',
|
|
590
595
|
'GET',
|
|
591
596
|
{ },
|
|
592
|
-
{ 'filterType': filterType,'filterId': filterId,'granularity': granularity,'startWorkday': startWorkday },
|
|
597
|
+
{ 'filterType': filterType,'filterId': filterId,'granularity': granularity,'startWorkday': startWorkday,'reportsTo': opts['reportsTo'] },
|
|
593
598
|
{ },
|
|
594
599
|
{ },
|
|
595
600
|
null,
|
|
@@ -612,6 +617,7 @@ class GamificationApi {
|
|
|
612
617
|
* @param {String} opts.sortMetricId Sort Metric Id
|
|
613
618
|
* @param {Number} opts.sectionSize The number of top and bottom users to return before ties
|
|
614
619
|
* @param {String} opts.userIds A list of up to 100 comma-separated user Ids
|
|
620
|
+
* @param {String} opts.reportsTo The reportsTo used by ABAC policies.
|
|
615
621
|
*/
|
|
616
622
|
getGamificationInsightsRankings(filterType, filterId, granularity, comparativePeriodStartWorkday, primaryPeriodStartWorkday, sortKey, opts) {
|
|
617
623
|
opts = opts || {};
|
|
@@ -645,7 +651,7 @@ class GamificationApi {
|
|
|
645
651
|
'/api/v2/gamification/insights/rankings',
|
|
646
652
|
'GET',
|
|
647
653
|
{ },
|
|
648
|
-
{ 'filterType': filterType,'filterId': filterId,'granularity': granularity,'comparativePeriodStartWorkday': comparativePeriodStartWorkday,'primaryPeriodStartWorkday': primaryPeriodStartWorkday,'sortKey': sortKey,'sortMetricId': opts['sortMetricId'],'sectionSize': opts['sectionSize'],'userIds': opts['userIds'] },
|
|
654
|
+
{ 'filterType': filterType,'filterId': filterId,'granularity': granularity,'comparativePeriodStartWorkday': comparativePeriodStartWorkday,'primaryPeriodStartWorkday': primaryPeriodStartWorkday,'sortKey': sortKey,'sortMetricId': opts['sortMetricId'],'sectionSize': opts['sectionSize'],'userIds': opts['userIds'],'reportsTo': opts['reportsTo'] },
|
|
649
655
|
{ },
|
|
650
656
|
{ },
|
|
651
657
|
null,
|
|
@@ -5,7 +5,7 @@ class IntegrationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Integrations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 233.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -189,6 +189,9 @@ class IntegrationsApi {
|
|
|
189
189
|
* @param {Array.<String>} opts.expand variable name requested by expand list
|
|
190
190
|
* @param {String} opts.nextPage next page token
|
|
191
191
|
* @param {String} opts.previousPage Previous page token
|
|
192
|
+
* @param {Array.<String>} opts.ids Comma-separated list of integration IDs to filter by (max 100)
|
|
193
|
+
* @param {String} opts.integrationType Filter integrations by integration type ID
|
|
194
|
+
* @param {Object} opts.reportedState Filter integrations by reported state (case-insensitive)
|
|
192
195
|
*/
|
|
193
196
|
getIntegrations(opts) {
|
|
194
197
|
opts = opts || {};
|
|
@@ -198,7 +201,7 @@ class IntegrationsApi {
|
|
|
198
201
|
'/api/v2/integrations',
|
|
199
202
|
'GET',
|
|
200
203
|
{ },
|
|
201
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'nextPage': opts['nextPage'],'previousPage': opts['previousPage'] },
|
|
204
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'nextPage': opts['nextPage'],'previousPage': opts['previousPage'],'ids': this.apiClient.buildCollectionParam(opts['ids'], 'multi'),'integrationType': opts['integrationType'],'reportedState': opts['reportedState'] },
|
|
202
205
|
{ },
|
|
203
206
|
{ },
|
|
204
207
|
null,
|
|
@@ -5,7 +5,7 @@ class LearningApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Learning service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 233.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1003,8 +1003,12 @@ class LearningApi {
|
|
|
1003
1003
|
* This will update a learning module rule with the specified fields.
|
|
1004
1004
|
* @param {String} moduleId The ID of the learning module
|
|
1005
1005
|
* @param {Object} body The learning module rule to be updated
|
|
1006
|
+
* @param {Object} opts Optional parameters
|
|
1007
|
+
* @param {Boolean} opts.assign Whether to assign the module to users or not (default to true)
|
|
1006
1008
|
*/
|
|
1007
|
-
putLearningModuleRule(moduleId, body) {
|
|
1009
|
+
putLearningModuleRule(moduleId, body, opts) {
|
|
1010
|
+
opts = opts || {};
|
|
1011
|
+
|
|
1008
1012
|
// verify the required parameter 'moduleId' is set
|
|
1009
1013
|
if (moduleId === undefined || moduleId === null || moduleId === '') {
|
|
1010
1014
|
throw 'Missing the required parameter "moduleId" when calling putLearningModuleRule';
|
|
@@ -1018,7 +1022,7 @@ class LearningApi {
|
|
|
1018
1022
|
'/api/v2/learning/modules/{moduleId}/rule',
|
|
1019
1023
|
'PUT',
|
|
1020
1024
|
{ 'moduleId': moduleId },
|
|
1021
|
-
{
|
|
1025
|
+
{ 'assign': opts['assign'] },
|
|
1022
1026
|
{ },
|
|
1023
1027
|
{ },
|
|
1024
1028
|
body,
|
|
@@ -5,7 +5,7 @@ class QualityApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Quality service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 233.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -588,7 +588,7 @@ class QualityApi {
|
|
|
588
588
|
}
|
|
589
589
|
|
|
590
590
|
/**
|
|
591
|
-
* Get an evaluator activity
|
|
591
|
+
* Get an evaluator activity. To ensure optimal performance and prevent timeouts when processing large datasets, startTime and endTime fields are highly recommended for all requests.
|
|
592
592
|
*
|
|
593
593
|
* @param {Object} opts Optional parameters
|
|
594
594
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
@@ -5,7 +5,7 @@ class RoutingApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Routing service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 233.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1239,6 +1239,8 @@ class RoutingApi {
|
|
|
1239
1239
|
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
1240
1240
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
1241
1241
|
* @param {Array.<String>} opts.queueId Comma-separated list of queue Ids to filter by.
|
|
1242
|
+
* @param {String} opts.kpiId Standard or custom KPI id used to filter predictors.
|
|
1243
|
+
* @param {Object} opts.state The state used to filter predictors.
|
|
1242
1244
|
*/
|
|
1243
1245
|
getRoutingPredictors(opts) {
|
|
1244
1246
|
opts = opts || {};
|
|
@@ -1248,7 +1250,7 @@ class RoutingApi {
|
|
|
1248
1250
|
'/api/v2/routing/predictors',
|
|
1249
1251
|
'GET',
|
|
1250
1252
|
{ },
|
|
1251
|
-
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'queueId': this.apiClient.buildCollectionParam(opts['queueId'], 'multi') },
|
|
1253
|
+
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'queueId': this.apiClient.buildCollectionParam(opts['queueId'], 'multi'),'kpiId': opts['kpiId'],'state': opts['state'] },
|
|
1252
1254
|
{ },
|
|
1253
1255
|
{ },
|
|
1254
1256
|
null,
|
|
@@ -1317,7 +1319,7 @@ class RoutingApi {
|
|
|
1317
1319
|
*
|
|
1318
1320
|
* @param {String} queueId Queue ID
|
|
1319
1321
|
* @param {Object} opts Optional parameters
|
|
1320
|
-
* @param {
|
|
1322
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand.
|
|
1321
1323
|
*/
|
|
1322
1324
|
getRoutingQueueAssistant(queueId, opts) {
|
|
1323
1325
|
opts = opts || {};
|
|
@@ -1331,7 +1333,7 @@ class RoutingApi {
|
|
|
1331
1333
|
'/api/v2/routing/queues/{queueId}/assistant',
|
|
1332
1334
|
'GET',
|
|
1333
1335
|
{ 'queueId': queueId },
|
|
1334
|
-
{ 'expand': opts['expand'] },
|
|
1336
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
|
|
1335
1337
|
{ },
|
|
1336
1338
|
{ },
|
|
1337
1339
|
null,
|
|
@@ -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 233.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -912,6 +912,7 @@ class SpeechTextAnalyticsApi {
|
|
|
912
912
|
* @param {Object} opts Optional parameters
|
|
913
913
|
* @param {String} opts.nextPage The key for listing the next page
|
|
914
914
|
* @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 500. (default to 20)
|
|
915
|
+
* @param {Number} opts.pageNumber The page number for the listing
|
|
915
916
|
* @param {Object} opts.state Topic state. Defaults to latest
|
|
916
917
|
* @param {String} opts.name Case insensitive partial name to filter by
|
|
917
918
|
* @param {Array.<String>} opts.ids Comma separated Topic IDs to filter by. Cannot be used with other filters. Maximum of 50 IDs allowed.
|
|
@@ -927,7 +928,7 @@ class SpeechTextAnalyticsApi {
|
|
|
927
928
|
'/api/v2/speechandtextanalytics/topics',
|
|
928
929
|
'GET',
|
|
929
930
|
{ },
|
|
930
|
-
{ 'nextPage': opts['nextPage'],'pageSize': opts['pageSize'],'state': opts['state'],'name': opts['name'],'ids': this.apiClient.buildCollectionParam(opts['ids'], 'multi'),'dialects': this.apiClient.buildCollectionParam(opts['dialects'], 'multi'),'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
|
|
931
|
+
{ 'nextPage': opts['nextPage'],'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'state': opts['state'],'name': opts['name'],'ids': this.apiClient.buildCollectionParam(opts['ids'], 'multi'),'dialects': this.apiClient.buildCollectionParam(opts['dialects'], 'multi'),'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
|
|
931
932
|
{ },
|
|
932
933
|
{ },
|
|
933
934
|
null,
|
|
@@ -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 233.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -412,7 +412,7 @@ class TaskManagementApi {
|
|
|
412
412
|
*
|
|
413
413
|
* @param {String} workitemId Workitem ID
|
|
414
414
|
* @param {Object} opts Optional parameters
|
|
415
|
-
* @param {
|
|
415
|
+
* @param {Array.<String>} opts.expands Which fields to expand. Comma separated if more than one.
|
|
416
416
|
*/
|
|
417
417
|
getTaskmanagementWorkitem(workitemId, opts) {
|
|
418
418
|
opts = opts || {};
|
|
@@ -426,7 +426,7 @@ class TaskManagementApi {
|
|
|
426
426
|
'/api/v2/taskmanagement/workitems/{workitemId}',
|
|
427
427
|
'GET',
|
|
428
428
|
{ 'workitemId': workitemId },
|
|
429
|
-
{ 'expands': opts['expands'] },
|
|
429
|
+
{ 'expands': this.apiClient.buildCollectionParam(opts['expands'], 'multi') },
|
|
430
430
|
{ },
|
|
431
431
|
{ },
|
|
432
432
|
null,
|