purecloud-platform-client-v2 142.0.0 → 145.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 +2 -2
- package/dist/node/purecloud-platform-client-v2.js +502 -72
- package/dist/web-amd/purecloud-platform-client-v2.js +502 -72
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +502 -72
- package/dist/web-cjs/purecloud-platform-client-v2.js +502 -72
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +450 -210
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/PureCloudRegionHosts.js +1 -0
- 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/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 +211 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.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 +157 -8
- 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/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 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +26 -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/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/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/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 +21 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.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/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/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 +26 -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 +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ class ConversationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Conversations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 145.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -598,6 +598,31 @@ class ConversationsApi {
|
|
|
598
598
|
);
|
|
599
599
|
}
|
|
600
600
|
|
|
601
|
+
/**
|
|
602
|
+
* Get the secure attributes on a conversation.
|
|
603
|
+
*
|
|
604
|
+
* @param {String} conversationId conversation ID
|
|
605
|
+
*/
|
|
606
|
+
getConversationSecureattributes(conversationId) {
|
|
607
|
+
// verify the required parameter 'conversationId' is set
|
|
608
|
+
if (conversationId === undefined || conversationId === null) {
|
|
609
|
+
throw 'Missing the required parameter "conversationId" when calling getConversationSecureattributes';
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
return this.apiClient.callApi(
|
|
613
|
+
'/api/v2/conversations/{conversationId}/secureattributes',
|
|
614
|
+
'GET',
|
|
615
|
+
{ 'conversationId': conversationId },
|
|
616
|
+
{ },
|
|
617
|
+
{ },
|
|
618
|
+
{ },
|
|
619
|
+
null,
|
|
620
|
+
['PureCloud OAuth'],
|
|
621
|
+
['application/json'],
|
|
622
|
+
['application/json']
|
|
623
|
+
);
|
|
624
|
+
}
|
|
625
|
+
|
|
601
626
|
/**
|
|
602
627
|
* Get active conversations for the logged in user
|
|
603
628
|
*
|
|
@@ -1381,6 +1406,51 @@ class ConversationsApi {
|
|
|
1381
1406
|
);
|
|
1382
1407
|
}
|
|
1383
1408
|
|
|
1409
|
+
/**
|
|
1410
|
+
* Get the encryption key configurations
|
|
1411
|
+
*
|
|
1412
|
+
* @param {String} keyconfigurationsId Key Configurations Id
|
|
1413
|
+
*/
|
|
1414
|
+
getConversationsKeyconfiguration(keyconfigurationsId) {
|
|
1415
|
+
// verify the required parameter 'keyconfigurationsId' is set
|
|
1416
|
+
if (keyconfigurationsId === undefined || keyconfigurationsId === null) {
|
|
1417
|
+
throw 'Missing the required parameter "keyconfigurationsId" when calling getConversationsKeyconfiguration';
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
return this.apiClient.callApi(
|
|
1421
|
+
'/api/v2/conversations/keyconfigurations/{keyconfigurationsId}',
|
|
1422
|
+
'GET',
|
|
1423
|
+
{ 'keyconfigurationsId': keyconfigurationsId },
|
|
1424
|
+
{ },
|
|
1425
|
+
{ },
|
|
1426
|
+
{ },
|
|
1427
|
+
null,
|
|
1428
|
+
['PureCloud OAuth'],
|
|
1429
|
+
['application/json'],
|
|
1430
|
+
['application/json']
|
|
1431
|
+
);
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
* Get a list of key configurations data
|
|
1436
|
+
*
|
|
1437
|
+
*/
|
|
1438
|
+
getConversationsKeyconfigurations() {
|
|
1439
|
+
|
|
1440
|
+
return this.apiClient.callApi(
|
|
1441
|
+
'/api/v2/conversations/keyconfigurations',
|
|
1442
|
+
'GET',
|
|
1443
|
+
{ },
|
|
1444
|
+
{ },
|
|
1445
|
+
{ },
|
|
1446
|
+
{ },
|
|
1447
|
+
null,
|
|
1448
|
+
['PureCloud OAuth'],
|
|
1449
|
+
['application/json'],
|
|
1450
|
+
['application/json']
|
|
1451
|
+
);
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1384
1454
|
/**
|
|
1385
1455
|
* Get message conversation
|
|
1386
1456
|
*
|
|
@@ -2097,6 +2167,36 @@ class ConversationsApi {
|
|
|
2097
2167
|
);
|
|
2098
2168
|
}
|
|
2099
2169
|
|
|
2170
|
+
/**
|
|
2171
|
+
* Update the secure attributes on a conversation.
|
|
2172
|
+
*
|
|
2173
|
+
* @param {String} conversationId conversation ID
|
|
2174
|
+
* @param {Object} body Conversation Secure Attributes
|
|
2175
|
+
*/
|
|
2176
|
+
patchConversationSecureattributes(conversationId, body) {
|
|
2177
|
+
// verify the required parameter 'conversationId' is set
|
|
2178
|
+
if (conversationId === undefined || conversationId === null) {
|
|
2179
|
+
throw 'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';
|
|
2180
|
+
}
|
|
2181
|
+
// verify the required parameter 'body' is set
|
|
2182
|
+
if (body === undefined || body === null) {
|
|
2183
|
+
throw 'Missing the required parameter "body" when calling patchConversationSecureattributes';
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
return this.apiClient.callApi(
|
|
2187
|
+
'/api/v2/conversations/{conversationId}/secureattributes',
|
|
2188
|
+
'PATCH',
|
|
2189
|
+
{ 'conversationId': conversationId },
|
|
2190
|
+
{ },
|
|
2191
|
+
{ },
|
|
2192
|
+
{ },
|
|
2193
|
+
body,
|
|
2194
|
+
['PureCloud OAuth'],
|
|
2195
|
+
['application/json'],
|
|
2196
|
+
['application/json']
|
|
2197
|
+
);
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2100
2200
|
/**
|
|
2101
2201
|
* Update a conversation by setting its recording state, merging in other conversations to create a conference, or disconnecting all of the participants
|
|
2102
2202
|
*
|
|
@@ -4099,6 +4199,56 @@ class ConversationsApi {
|
|
|
4099
4199
|
);
|
|
4100
4200
|
}
|
|
4101
4201
|
|
|
4202
|
+
/**
|
|
4203
|
+
* Setup configurations for encryption key creation
|
|
4204
|
+
*
|
|
4205
|
+
* @param {Object} body Encryption Configuration
|
|
4206
|
+
*/
|
|
4207
|
+
postConversationsKeyconfigurations(body) {
|
|
4208
|
+
// verify the required parameter 'body' is set
|
|
4209
|
+
if (body === undefined || body === null) {
|
|
4210
|
+
throw 'Missing the required parameter "body" when calling postConversationsKeyconfigurations';
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4213
|
+
return this.apiClient.callApi(
|
|
4214
|
+
'/api/v2/conversations/keyconfigurations',
|
|
4215
|
+
'POST',
|
|
4216
|
+
{ },
|
|
4217
|
+
{ },
|
|
4218
|
+
{ },
|
|
4219
|
+
{ },
|
|
4220
|
+
body,
|
|
4221
|
+
['PureCloud OAuth'],
|
|
4222
|
+
['application/json'],
|
|
4223
|
+
['application/json']
|
|
4224
|
+
);
|
|
4225
|
+
}
|
|
4226
|
+
|
|
4227
|
+
/**
|
|
4228
|
+
* Validate encryption key configurations without saving it
|
|
4229
|
+
*
|
|
4230
|
+
* @param {Object} body Encryption Configuration
|
|
4231
|
+
*/
|
|
4232
|
+
postConversationsKeyconfigurationsValidate(body) {
|
|
4233
|
+
// verify the required parameter 'body' is set
|
|
4234
|
+
if (body === undefined || body === null) {
|
|
4235
|
+
throw 'Missing the required parameter "body" when calling postConversationsKeyconfigurationsValidate';
|
|
4236
|
+
}
|
|
4237
|
+
|
|
4238
|
+
return this.apiClient.callApi(
|
|
4239
|
+
'/api/v2/conversations/keyconfigurations/validate',
|
|
4240
|
+
'POST',
|
|
4241
|
+
{ },
|
|
4242
|
+
{ },
|
|
4243
|
+
{ },
|
|
4244
|
+
{ },
|
|
4245
|
+
body,
|
|
4246
|
+
['PureCloud OAuth'],
|
|
4247
|
+
['application/json'],
|
|
4248
|
+
['application/json']
|
|
4249
|
+
);
|
|
4250
|
+
}
|
|
4251
|
+
|
|
4102
4252
|
/**
|
|
4103
4253
|
* Send message
|
|
4104
4254
|
* Send message on existing conversation/communication. Only one message body field can be accepted, per request. Example: 1 textBody, 1 mediaId, 1 stickerId, or 1 messageTemplate.
|
|
@@ -4483,6 +4633,36 @@ class ConversationsApi {
|
|
|
4483
4633
|
);
|
|
4484
4634
|
}
|
|
4485
4635
|
|
|
4636
|
+
/**
|
|
4637
|
+
* Set the secure attributes on a conversation.
|
|
4638
|
+
*
|
|
4639
|
+
* @param {String} conversationId conversation ID
|
|
4640
|
+
* @param {Object} body Conversation Secure Attributes
|
|
4641
|
+
*/
|
|
4642
|
+
putConversationSecureattributes(conversationId, body) {
|
|
4643
|
+
// verify the required parameter 'conversationId' is set
|
|
4644
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4645
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationSecureattributes';
|
|
4646
|
+
}
|
|
4647
|
+
// verify the required parameter 'body' is set
|
|
4648
|
+
if (body === undefined || body === null) {
|
|
4649
|
+
throw 'Missing the required parameter "body" when calling putConversationSecureattributes';
|
|
4650
|
+
}
|
|
4651
|
+
|
|
4652
|
+
return this.apiClient.callApi(
|
|
4653
|
+
'/api/v2/conversations/{conversationId}/secureattributes',
|
|
4654
|
+
'PUT',
|
|
4655
|
+
{ 'conversationId': conversationId },
|
|
4656
|
+
{ },
|
|
4657
|
+
{ },
|
|
4658
|
+
{ },
|
|
4659
|
+
body,
|
|
4660
|
+
['PureCloud OAuth'],
|
|
4661
|
+
['application/json'],
|
|
4662
|
+
['application/json']
|
|
4663
|
+
);
|
|
4664
|
+
}
|
|
4665
|
+
|
|
4486
4666
|
/**
|
|
4487
4667
|
* Update the tags on a conversation.
|
|
4488
4668
|
*
|
|
@@ -4733,6 +4913,36 @@ class ConversationsApi {
|
|
|
4733
4913
|
);
|
|
4734
4914
|
}
|
|
4735
4915
|
|
|
4916
|
+
/**
|
|
4917
|
+
* Update the encryption key configurations
|
|
4918
|
+
*
|
|
4919
|
+
* @param {String} keyconfigurationsId Key Configurations Id
|
|
4920
|
+
* @param {Object} body Encryption key configuration metadata
|
|
4921
|
+
*/
|
|
4922
|
+
putConversationsKeyconfiguration(keyconfigurationsId, body) {
|
|
4923
|
+
// verify the required parameter 'keyconfigurationsId' is set
|
|
4924
|
+
if (keyconfigurationsId === undefined || keyconfigurationsId === null) {
|
|
4925
|
+
throw 'Missing the required parameter "keyconfigurationsId" when calling putConversationsKeyconfiguration';
|
|
4926
|
+
}
|
|
4927
|
+
// verify the required parameter 'body' is set
|
|
4928
|
+
if (body === undefined || body === null) {
|
|
4929
|
+
throw 'Missing the required parameter "body" when calling putConversationsKeyconfiguration';
|
|
4930
|
+
}
|
|
4931
|
+
|
|
4932
|
+
return this.apiClient.callApi(
|
|
4933
|
+
'/api/v2/conversations/keyconfigurations/{keyconfigurationsId}',
|
|
4934
|
+
'PUT',
|
|
4935
|
+
{ 'keyconfigurationsId': keyconfigurationsId },
|
|
4936
|
+
{ },
|
|
4937
|
+
{ },
|
|
4938
|
+
{ },
|
|
4939
|
+
body,
|
|
4940
|
+
['PureCloud OAuth'],
|
|
4941
|
+
['application/json'],
|
|
4942
|
+
['application/json']
|
|
4943
|
+
);
|
|
4944
|
+
}
|
|
4945
|
+
|
|
4736
4946
|
/**
|
|
4737
4947
|
* Update a conversation by setting its recording state
|
|
4738
4948
|
*
|
|
@@ -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 145.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -20,6 +20,81 @@ class GamificationApi {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Delete an External Metric Definition
|
|
25
|
+
*
|
|
26
|
+
* @param {String} metricId Specifies the External Metric Definition ID
|
|
27
|
+
*/
|
|
28
|
+
deleteEmployeeperformanceExternalmetricsDefinition(metricId) {
|
|
29
|
+
// verify the required parameter 'metricId' is set
|
|
30
|
+
if (metricId === undefined || metricId === null) {
|
|
31
|
+
throw 'Missing the required parameter "metricId" when calling deleteEmployeeperformanceExternalmetricsDefinition';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return this.apiClient.callApi(
|
|
35
|
+
'/api/v2/employeeperformance/externalmetrics/definitions/{metricId}',
|
|
36
|
+
'DELETE',
|
|
37
|
+
{ 'metricId': metricId },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
|
+
null,
|
|
42
|
+
['PureCloud OAuth'],
|
|
43
|
+
['application/json'],
|
|
44
|
+
['application/json']
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Get an External Metric Definition
|
|
50
|
+
*
|
|
51
|
+
* @param {String} metricId Specifies the External Metric Definition ID
|
|
52
|
+
*/
|
|
53
|
+
getEmployeeperformanceExternalmetricsDefinition(metricId) {
|
|
54
|
+
// verify the required parameter 'metricId' is set
|
|
55
|
+
if (metricId === undefined || metricId === null) {
|
|
56
|
+
throw 'Missing the required parameter "metricId" when calling getEmployeeperformanceExternalmetricsDefinition';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return this.apiClient.callApi(
|
|
60
|
+
'/api/v2/employeeperformance/externalmetrics/definitions/{metricId}',
|
|
61
|
+
'GET',
|
|
62
|
+
{ 'metricId': metricId },
|
|
63
|
+
{ },
|
|
64
|
+
{ },
|
|
65
|
+
{ },
|
|
66
|
+
null,
|
|
67
|
+
['PureCloud OAuth'],
|
|
68
|
+
['application/json'],
|
|
69
|
+
['application/json']
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Get a list of External Metric Definitions of an organization, sorted by name in ascending order
|
|
75
|
+
*
|
|
76
|
+
* @param {Object} opts Optional parameters
|
|
77
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
78
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
79
|
+
*/
|
|
80
|
+
getEmployeeperformanceExternalmetricsDefinitions(opts) {
|
|
81
|
+
opts = opts || {};
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
return this.apiClient.callApi(
|
|
85
|
+
'/api/v2/employeeperformance/externalmetrics/definitions',
|
|
86
|
+
'GET',
|
|
87
|
+
{ },
|
|
88
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
89
|
+
{ },
|
|
90
|
+
{ },
|
|
91
|
+
null,
|
|
92
|
+
['PureCloud OAuth'],
|
|
93
|
+
['application/json'],
|
|
94
|
+
['application/json']
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
23
98
|
/**
|
|
24
99
|
* Leaderboard of the requesting user's division or performance profile
|
|
25
100
|
*
|
|
@@ -684,14 +759,14 @@ class GamificationApi {
|
|
|
684
759
|
* @param {String} profileId performanceProfileId
|
|
685
760
|
* @param {String} metricId metricId
|
|
686
761
|
* @param {Object} filterType Filter type for the query request.
|
|
687
|
-
* @param {String} filterId ID for the filter type. For example, division Id
|
|
688
762
|
* @param {String} startWorkday Start workday of querying workdays range. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
689
763
|
* @param {String} endWorkday End workday of querying workdays range. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
690
764
|
* @param {Object} opts Optional parameters
|
|
765
|
+
* @param {String} opts.filterId ID for the filter type. Only required when filterType is Division.
|
|
691
766
|
* @param {String} opts.referenceWorkday Reference workday for the trend. Used to determine the associated metric definition. If not set, then the value of endWorkday is used. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
692
767
|
* @param {String} opts.timeZone Timezone for the workday. Defaults to UTC (default to UTC)
|
|
693
768
|
*/
|
|
694
|
-
getGamificationScorecardsProfileMetricUsersValuesTrends(profileId, metricId, filterType,
|
|
769
|
+
getGamificationScorecardsProfileMetricUsersValuesTrends(profileId, metricId, filterType, startWorkday, endWorkday, opts) {
|
|
695
770
|
opts = opts || {};
|
|
696
771
|
|
|
697
772
|
// verify the required parameter 'profileId' is set
|
|
@@ -706,10 +781,6 @@ class GamificationApi {
|
|
|
706
781
|
if (filterType === undefined || filterType === null) {
|
|
707
782
|
throw 'Missing the required parameter "filterType" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';
|
|
708
783
|
}
|
|
709
|
-
// verify the required parameter 'filterId' is set
|
|
710
|
-
if (filterId === undefined || filterId === null) {
|
|
711
|
-
throw 'Missing the required parameter "filterId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';
|
|
712
|
-
}
|
|
713
784
|
// verify the required parameter 'startWorkday' is set
|
|
714
785
|
if (startWorkday === undefined || startWorkday === null) {
|
|
715
786
|
throw 'Missing the required parameter "startWorkday" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';
|
|
@@ -723,7 +794,7 @@ class GamificationApi {
|
|
|
723
794
|
'/api/v2/gamification/scorecards/profiles/{profileId}/metrics/{metricId}/users/values/trends',
|
|
724
795
|
'GET',
|
|
725
796
|
{ 'profileId': profileId,'metricId': metricId },
|
|
726
|
-
{ 'filterType': filterType,'filterId': filterId,'startWorkday': startWorkday,'endWorkday': endWorkday,'referenceWorkday': opts['referenceWorkday'],'timeZone': opts['timeZone'] },
|
|
797
|
+
{ 'filterType': filterType,'filterId': opts['filterId'],'startWorkday': startWorkday,'endWorkday': endWorkday,'referenceWorkday': opts['referenceWorkday'],'timeZone': opts['timeZone'] },
|
|
727
798
|
{ },
|
|
728
799
|
{ },
|
|
729
800
|
null,
|
|
@@ -1229,6 +1300,84 @@ class GamificationApi {
|
|
|
1229
1300
|
);
|
|
1230
1301
|
}
|
|
1231
1302
|
|
|
1303
|
+
/**
|
|
1304
|
+
* Update External Metric Definition
|
|
1305
|
+
*
|
|
1306
|
+
* @param {String} metricId Specifies the metric definition ID
|
|
1307
|
+
* @param {Object} body The External Metric Definition parameters to be updated
|
|
1308
|
+
*/
|
|
1309
|
+
patchEmployeeperformanceExternalmetricsDefinition(metricId, body) {
|
|
1310
|
+
// verify the required parameter 'metricId' is set
|
|
1311
|
+
if (metricId === undefined || metricId === null) {
|
|
1312
|
+
throw 'Missing the required parameter "metricId" when calling patchEmployeeperformanceExternalmetricsDefinition';
|
|
1313
|
+
}
|
|
1314
|
+
// verify the required parameter 'body' is set
|
|
1315
|
+
if (body === undefined || body === null) {
|
|
1316
|
+
throw 'Missing the required parameter "body" when calling patchEmployeeperformanceExternalmetricsDefinition';
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
return this.apiClient.callApi(
|
|
1320
|
+
'/api/v2/employeeperformance/externalmetrics/definitions/{metricId}',
|
|
1321
|
+
'PATCH',
|
|
1322
|
+
{ 'metricId': metricId },
|
|
1323
|
+
{ },
|
|
1324
|
+
{ },
|
|
1325
|
+
{ },
|
|
1326
|
+
body,
|
|
1327
|
+
['PureCloud OAuth'],
|
|
1328
|
+
['application/json'],
|
|
1329
|
+
['application/json']
|
|
1330
|
+
);
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* Write External Metric Data
|
|
1335
|
+
*
|
|
1336
|
+
* @param {Object} opts Optional parameters
|
|
1337
|
+
* @param {Object} opts.body The External Metric Data to be added
|
|
1338
|
+
*/
|
|
1339
|
+
postEmployeeperformanceExternalmetricsData(opts) {
|
|
1340
|
+
opts = opts || {};
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
return this.apiClient.callApi(
|
|
1344
|
+
'/api/v2/employeeperformance/externalmetrics/data',
|
|
1345
|
+
'POST',
|
|
1346
|
+
{ },
|
|
1347
|
+
{ },
|
|
1348
|
+
{ },
|
|
1349
|
+
{ },
|
|
1350
|
+
opts['body'],
|
|
1351
|
+
['PureCloud OAuth'],
|
|
1352
|
+
['application/json'],
|
|
1353
|
+
['application/json']
|
|
1354
|
+
);
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Create External Metric Definition
|
|
1359
|
+
*
|
|
1360
|
+
* @param {Object} opts Optional parameters
|
|
1361
|
+
* @param {Object} opts.body The External Metric Definition to be created
|
|
1362
|
+
*/
|
|
1363
|
+
postEmployeeperformanceExternalmetricsDefinitions(opts) {
|
|
1364
|
+
opts = opts || {};
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
return this.apiClient.callApi(
|
|
1368
|
+
'/api/v2/employeeperformance/externalmetrics/definitions',
|
|
1369
|
+
'POST',
|
|
1370
|
+
{ },
|
|
1371
|
+
{ },
|
|
1372
|
+
{ },
|
|
1373
|
+
{ },
|
|
1374
|
+
opts['body'],
|
|
1375
|
+
['PureCloud OAuth'],
|
|
1376
|
+
['application/json'],
|
|
1377
|
+
['application/json']
|
|
1378
|
+
);
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1232
1381
|
/**
|
|
1233
1382
|
* Creates a gamified metric with a given metric definition and metric objective
|
|
1234
1383
|
* This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
|