purecloud-platform-client-v2 138.0.0 → 140.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 +523 -147
- package/dist/web-amd/purecloud-platform-client-v2.js +523 -147
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +523 -147
- package/dist/web-cjs/purecloud-platform-client-v2.js +523 -147
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +783 -224
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +5 -2
- 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 +15 -15
- 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 +271 -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 +28 -27
- 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 +5 -5
- 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 +111 -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 +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 +16 -24
- 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/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 +15 -15
- 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
|
@@ -3,7 +3,7 @@ import Configuration from './configuration.js';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6
|
-
* @version
|
|
6
|
+
* @version 140.0.0
|
|
7
7
|
*/
|
|
8
8
|
class ApiClient {
|
|
9
9
|
/**
|
|
@@ -756,7 +756,7 @@ class ApiClient {
|
|
|
756
756
|
serialize(obj) {
|
|
757
757
|
var result = {};
|
|
758
758
|
for (var p in obj) {
|
|
759
|
-
if (obj.hasOwnProperty(p)) {
|
|
759
|
+
if (obj.hasOwnProperty(p) && obj[p] !== undefined) {
|
|
760
760
|
result[encodeURIComponent(p)] = Array.isArray(obj[p]) ? obj[p].join(",") : this.paramToString(obj[p]);
|
|
761
761
|
}
|
|
762
762
|
}
|
|
@@ -893,6 +893,9 @@ class ApiClient {
|
|
|
893
893
|
*/
|
|
894
894
|
buildCollectionParam(param, collectionFormat) {
|
|
895
895
|
if (!param) return;
|
|
896
|
+
if (!Array.isArray(param)) {
|
|
897
|
+
param = [param]
|
|
898
|
+
}
|
|
896
899
|
|
|
897
900
|
switch (collectionFormat) {
|
|
898
901
|
case 'csv':
|
|
@@ -5,7 +5,7 @@ class AuthorizationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Authorization service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 140.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -610,18 +610,18 @@ class AuthorizationApi {
|
|
|
610
610
|
/**
|
|
611
611
|
* Returns a listing of roles and permissions for a user.
|
|
612
612
|
*
|
|
613
|
-
* @param {String}
|
|
613
|
+
* @param {String} subjectId User ID
|
|
614
614
|
*/
|
|
615
|
-
getUserRoles(
|
|
616
|
-
// verify the required parameter '
|
|
617
|
-
if (
|
|
618
|
-
throw 'Missing the required parameter "
|
|
615
|
+
getUserRoles(subjectId) {
|
|
616
|
+
// verify the required parameter 'subjectId' is set
|
|
617
|
+
if (subjectId === undefined || subjectId === null) {
|
|
618
|
+
throw 'Missing the required parameter "subjectId" when calling getUserRoles';
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
return this.apiClient.callApi(
|
|
622
|
-
'/api/v2/users/{
|
|
622
|
+
'/api/v2/users/{subjectId}/roles',
|
|
623
623
|
'GET',
|
|
624
|
-
{ '
|
|
624
|
+
{ 'subjectId': subjectId },
|
|
625
625
|
{ },
|
|
626
626
|
{ },
|
|
627
627
|
{ },
|
|
@@ -1155,13 +1155,13 @@ class AuthorizationApi {
|
|
|
1155
1155
|
/**
|
|
1156
1156
|
* Sets the user's roles
|
|
1157
1157
|
*
|
|
1158
|
-
* @param {String}
|
|
1158
|
+
* @param {String} subjectId User ID
|
|
1159
1159
|
* @param {Array.<String>} body List of roles
|
|
1160
1160
|
*/
|
|
1161
|
-
putUserRoles(
|
|
1162
|
-
// verify the required parameter '
|
|
1163
|
-
if (
|
|
1164
|
-
throw 'Missing the required parameter "
|
|
1161
|
+
putUserRoles(subjectId, body) {
|
|
1162
|
+
// verify the required parameter 'subjectId' is set
|
|
1163
|
+
if (subjectId === undefined || subjectId === null) {
|
|
1164
|
+
throw 'Missing the required parameter "subjectId" when calling putUserRoles';
|
|
1165
1165
|
}
|
|
1166
1166
|
// verify the required parameter 'body' is set
|
|
1167
1167
|
if (body === undefined || body === null) {
|
|
@@ -1169,9 +1169,9 @@ class AuthorizationApi {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
1171
1171
|
return this.apiClient.callApi(
|
|
1172
|
-
'/api/v2/users/{
|
|
1172
|
+
'/api/v2/users/{subjectId}/roles',
|
|
1173
1173
|
'PUT',
|
|
1174
|
-
{ '
|
|
1174
|
+
{ 'subjectId': subjectId },
|
|
1175
1175
|
{ },
|
|
1176
1176
|
{ },
|
|
1177
1177
|
{ },
|
|
@@ -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 140.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -4553,6 +4553,126 @@ class ConversationsApi {
|
|
|
4553
4553
|
);
|
|
4554
4554
|
}
|
|
4555
4555
|
|
|
4556
|
+
/**
|
|
4557
|
+
* Update a conversation by setting its recording state
|
|
4558
|
+
*
|
|
4559
|
+
* @param {String} conversationId conversationId
|
|
4560
|
+
* @param {Object} body SetRecordingState
|
|
4561
|
+
*/
|
|
4562
|
+
putConversationsCallRecordingstate(conversationId, body) {
|
|
4563
|
+
// verify the required parameter 'conversationId' is set
|
|
4564
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4565
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';
|
|
4566
|
+
}
|
|
4567
|
+
// verify the required parameter 'body' is set
|
|
4568
|
+
if (body === undefined || body === null) {
|
|
4569
|
+
throw 'Missing the required parameter "body" when calling putConversationsCallRecordingstate';
|
|
4570
|
+
}
|
|
4571
|
+
|
|
4572
|
+
return this.apiClient.callApi(
|
|
4573
|
+
'/api/v2/conversations/calls/{conversationId}/recordingstate',
|
|
4574
|
+
'PUT',
|
|
4575
|
+
{ 'conversationId': conversationId },
|
|
4576
|
+
{ },
|
|
4577
|
+
{ },
|
|
4578
|
+
{ },
|
|
4579
|
+
body,
|
|
4580
|
+
['PureCloud OAuth'],
|
|
4581
|
+
['application/json'],
|
|
4582
|
+
['application/json']
|
|
4583
|
+
);
|
|
4584
|
+
}
|
|
4585
|
+
|
|
4586
|
+
/**
|
|
4587
|
+
* Update a conversation by setting its recording state
|
|
4588
|
+
*
|
|
4589
|
+
* @param {String} conversationId conversationId
|
|
4590
|
+
* @param {Object} body SetRecordingState
|
|
4591
|
+
*/
|
|
4592
|
+
putConversationsCallbackRecordingstate(conversationId, body) {
|
|
4593
|
+
// verify the required parameter 'conversationId' is set
|
|
4594
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4595
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';
|
|
4596
|
+
}
|
|
4597
|
+
// verify the required parameter 'body' is set
|
|
4598
|
+
if (body === undefined || body === null) {
|
|
4599
|
+
throw 'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';
|
|
4600
|
+
}
|
|
4601
|
+
|
|
4602
|
+
return this.apiClient.callApi(
|
|
4603
|
+
'/api/v2/conversations/callbacks/{conversationId}/recordingstate',
|
|
4604
|
+
'PUT',
|
|
4605
|
+
{ 'conversationId': conversationId },
|
|
4606
|
+
{ },
|
|
4607
|
+
{ },
|
|
4608
|
+
{ },
|
|
4609
|
+
body,
|
|
4610
|
+
['PureCloud OAuth'],
|
|
4611
|
+
['application/json'],
|
|
4612
|
+
['application/json']
|
|
4613
|
+
);
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4616
|
+
/**
|
|
4617
|
+
* Update a conversation by setting its recording state
|
|
4618
|
+
*
|
|
4619
|
+
* @param {String} conversationId conversationId
|
|
4620
|
+
* @param {Object} body SetRecordingState
|
|
4621
|
+
*/
|
|
4622
|
+
putConversationsChatRecordingstate(conversationId, body) {
|
|
4623
|
+
// verify the required parameter 'conversationId' is set
|
|
4624
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4625
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';
|
|
4626
|
+
}
|
|
4627
|
+
// verify the required parameter 'body' is set
|
|
4628
|
+
if (body === undefined || body === null) {
|
|
4629
|
+
throw 'Missing the required parameter "body" when calling putConversationsChatRecordingstate';
|
|
4630
|
+
}
|
|
4631
|
+
|
|
4632
|
+
return this.apiClient.callApi(
|
|
4633
|
+
'/api/v2/conversations/chats/{conversationId}/recordingstate',
|
|
4634
|
+
'PUT',
|
|
4635
|
+
{ 'conversationId': conversationId },
|
|
4636
|
+
{ },
|
|
4637
|
+
{ },
|
|
4638
|
+
{ },
|
|
4639
|
+
body,
|
|
4640
|
+
['PureCloud OAuth'],
|
|
4641
|
+
['application/json'],
|
|
4642
|
+
['application/json']
|
|
4643
|
+
);
|
|
4644
|
+
}
|
|
4645
|
+
|
|
4646
|
+
/**
|
|
4647
|
+
* Update a conversation by setting its recording state
|
|
4648
|
+
*
|
|
4649
|
+
* @param {String} conversationId conversationId
|
|
4650
|
+
* @param {Object} body SetRecordingState
|
|
4651
|
+
*/
|
|
4652
|
+
putConversationsCobrowsesessionRecordingstate(conversationId, body) {
|
|
4653
|
+
// verify the required parameter 'conversationId' is set
|
|
4654
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4655
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';
|
|
4656
|
+
}
|
|
4657
|
+
// verify the required parameter 'body' is set
|
|
4658
|
+
if (body === undefined || body === null) {
|
|
4659
|
+
throw 'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';
|
|
4660
|
+
}
|
|
4661
|
+
|
|
4662
|
+
return this.apiClient.callApi(
|
|
4663
|
+
'/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate',
|
|
4664
|
+
'PUT',
|
|
4665
|
+
{ 'conversationId': conversationId },
|
|
4666
|
+
{ },
|
|
4667
|
+
{ },
|
|
4668
|
+
{ },
|
|
4669
|
+
body,
|
|
4670
|
+
['PureCloud OAuth'],
|
|
4671
|
+
['application/json'],
|
|
4672
|
+
['application/json']
|
|
4673
|
+
);
|
|
4674
|
+
}
|
|
4675
|
+
|
|
4556
4676
|
/**
|
|
4557
4677
|
* Update conversation draft reply
|
|
4558
4678
|
*
|
|
@@ -4583,6 +4703,66 @@ class ConversationsApi {
|
|
|
4583
4703
|
);
|
|
4584
4704
|
}
|
|
4585
4705
|
|
|
4706
|
+
/**
|
|
4707
|
+
* Update a conversation by setting its recording state
|
|
4708
|
+
*
|
|
4709
|
+
* @param {String} conversationId conversationId
|
|
4710
|
+
* @param {Object} body SetRecordingState
|
|
4711
|
+
*/
|
|
4712
|
+
putConversationsEmailRecordingstate(conversationId, body) {
|
|
4713
|
+
// verify the required parameter 'conversationId' is set
|
|
4714
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4715
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';
|
|
4716
|
+
}
|
|
4717
|
+
// verify the required parameter 'body' is set
|
|
4718
|
+
if (body === undefined || body === null) {
|
|
4719
|
+
throw 'Missing the required parameter "body" when calling putConversationsEmailRecordingstate';
|
|
4720
|
+
}
|
|
4721
|
+
|
|
4722
|
+
return this.apiClient.callApi(
|
|
4723
|
+
'/api/v2/conversations/emails/{conversationId}/recordingstate',
|
|
4724
|
+
'PUT',
|
|
4725
|
+
{ 'conversationId': conversationId },
|
|
4726
|
+
{ },
|
|
4727
|
+
{ },
|
|
4728
|
+
{ },
|
|
4729
|
+
body,
|
|
4730
|
+
['PureCloud OAuth'],
|
|
4731
|
+
['application/json'],
|
|
4732
|
+
['application/json']
|
|
4733
|
+
);
|
|
4734
|
+
}
|
|
4735
|
+
|
|
4736
|
+
/**
|
|
4737
|
+
* Update a conversation by setting its recording state
|
|
4738
|
+
*
|
|
4739
|
+
* @param {String} conversationId conversationId
|
|
4740
|
+
* @param {Object} body SetRecordingState
|
|
4741
|
+
*/
|
|
4742
|
+
putConversationsMessageRecordingstate(conversationId, body) {
|
|
4743
|
+
// verify the required parameter 'conversationId' is set
|
|
4744
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4745
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';
|
|
4746
|
+
}
|
|
4747
|
+
// verify the required parameter 'body' is set
|
|
4748
|
+
if (body === undefined || body === null) {
|
|
4749
|
+
throw 'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4752
|
+
return this.apiClient.callApi(
|
|
4753
|
+
'/api/v2/conversations/messages/{conversationId}/recordingstate',
|
|
4754
|
+
'PUT',
|
|
4755
|
+
{ 'conversationId': conversationId },
|
|
4756
|
+
{ },
|
|
4757
|
+
{ },
|
|
4758
|
+
{ },
|
|
4759
|
+
body,
|
|
4760
|
+
['PureCloud OAuth'],
|
|
4761
|
+
['application/json'],
|
|
4762
|
+
['application/json']
|
|
4763
|
+
);
|
|
4764
|
+
}
|
|
4765
|
+
|
|
4586
4766
|
/**
|
|
4587
4767
|
* Update a LINE messenger integration
|
|
4588
4768
|
*
|
|
@@ -4663,6 +4843,96 @@ class ConversationsApi {
|
|
|
4663
4843
|
);
|
|
4664
4844
|
}
|
|
4665
4845
|
|
|
4846
|
+
/**
|
|
4847
|
+
* Update a conversation by setting its recording state
|
|
4848
|
+
*
|
|
4849
|
+
* @param {String} conversationId conversationId
|
|
4850
|
+
* @param {Object} body SetRecordingState
|
|
4851
|
+
*/
|
|
4852
|
+
putConversationsScreenshareRecordingstate(conversationId, body) {
|
|
4853
|
+
// verify the required parameter 'conversationId' is set
|
|
4854
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4855
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';
|
|
4856
|
+
}
|
|
4857
|
+
// verify the required parameter 'body' is set
|
|
4858
|
+
if (body === undefined || body === null) {
|
|
4859
|
+
throw 'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';
|
|
4860
|
+
}
|
|
4861
|
+
|
|
4862
|
+
return this.apiClient.callApi(
|
|
4863
|
+
'/api/v2/conversations/screenshares/{conversationId}/recordingstate',
|
|
4864
|
+
'PUT',
|
|
4865
|
+
{ 'conversationId': conversationId },
|
|
4866
|
+
{ },
|
|
4867
|
+
{ },
|
|
4868
|
+
{ },
|
|
4869
|
+
body,
|
|
4870
|
+
['PureCloud OAuth'],
|
|
4871
|
+
['application/json'],
|
|
4872
|
+
['application/json']
|
|
4873
|
+
);
|
|
4874
|
+
}
|
|
4875
|
+
|
|
4876
|
+
/**
|
|
4877
|
+
* Update a conversation by setting its recording state
|
|
4878
|
+
*
|
|
4879
|
+
* @param {String} conversationId conversationId
|
|
4880
|
+
* @param {Object} body SetRecordingState
|
|
4881
|
+
*/
|
|
4882
|
+
putConversationsSocialRecordingstate(conversationId, body) {
|
|
4883
|
+
// verify the required parameter 'conversationId' is set
|
|
4884
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4885
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';
|
|
4886
|
+
}
|
|
4887
|
+
// verify the required parameter 'body' is set
|
|
4888
|
+
if (body === undefined || body === null) {
|
|
4889
|
+
throw 'Missing the required parameter "body" when calling putConversationsSocialRecordingstate';
|
|
4890
|
+
}
|
|
4891
|
+
|
|
4892
|
+
return this.apiClient.callApi(
|
|
4893
|
+
'/api/v2/conversations/socials/{conversationId}/recordingstate',
|
|
4894
|
+
'PUT',
|
|
4895
|
+
{ 'conversationId': conversationId },
|
|
4896
|
+
{ },
|
|
4897
|
+
{ },
|
|
4898
|
+
{ },
|
|
4899
|
+
body,
|
|
4900
|
+
['PureCloud OAuth'],
|
|
4901
|
+
['application/json'],
|
|
4902
|
+
['application/json']
|
|
4903
|
+
);
|
|
4904
|
+
}
|
|
4905
|
+
|
|
4906
|
+
/**
|
|
4907
|
+
* Update a conversation by setting its recording state
|
|
4908
|
+
*
|
|
4909
|
+
* @param {String} conversationId conversationId
|
|
4910
|
+
* @param {Object} body SetRecordingState
|
|
4911
|
+
*/
|
|
4912
|
+
putConversationsVideoRecordingstate(conversationId, body) {
|
|
4913
|
+
// verify the required parameter 'conversationId' is set
|
|
4914
|
+
if (conversationId === undefined || conversationId === null) {
|
|
4915
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';
|
|
4916
|
+
}
|
|
4917
|
+
// verify the required parameter 'body' is set
|
|
4918
|
+
if (body === undefined || body === null) {
|
|
4919
|
+
throw 'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';
|
|
4920
|
+
}
|
|
4921
|
+
|
|
4922
|
+
return this.apiClient.callApi(
|
|
4923
|
+
'/api/v2/conversations/videos/{conversationId}/recordingstate',
|
|
4924
|
+
'PUT',
|
|
4925
|
+
{ 'conversationId': conversationId },
|
|
4926
|
+
{ },
|
|
4927
|
+
{ },
|
|
4928
|
+
{ },
|
|
4929
|
+
body,
|
|
4930
|
+
['PureCloud OAuth'],
|
|
4931
|
+
['application/json'],
|
|
4932
|
+
['application/json']
|
|
4933
|
+
);
|
|
4934
|
+
}
|
|
4935
|
+
|
|
4666
4936
|
}
|
|
4667
4937
|
|
|
4668
4938
|
|
|
@@ -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 140.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -150,7 +150,7 @@ class GamificationApi {
|
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* Gamified metric by id
|
|
153
|
-
*
|
|
153
|
+
* This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics/{metricId} instead.
|
|
154
154
|
* @param {String} metricId metric Id
|
|
155
155
|
* @param {Object} opts Optional parameters
|
|
156
156
|
* @param {String} opts.workday The objective query workday. If not specified, then it retrieves the current objective. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
@@ -225,7 +225,7 @@ class GamificationApi {
|
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* All gamified metrics for a given profile
|
|
228
|
-
*
|
|
228
|
+
* This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
|
|
229
229
|
* @param {Object} opts Optional parameters
|
|
230
230
|
* @param {String} opts.performanceProfileId The profile id of the metrics you are trying to retrieve. The DEFAULT profile is used if nothing is given.
|
|
231
231
|
* @param {String} opts.workday The objective query workday. If not specified, then it retrieves the current objective. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
@@ -276,18 +276,18 @@ class GamificationApi {
|
|
|
276
276
|
/**
|
|
277
277
|
* Members of a given performance profile
|
|
278
278
|
*
|
|
279
|
-
* @param {String}
|
|
279
|
+
* @param {String} profileId Profile Id
|
|
280
280
|
*/
|
|
281
|
-
getGamificationProfileMembers(
|
|
282
|
-
// verify the required parameter '
|
|
283
|
-
if (
|
|
284
|
-
throw 'Missing the required parameter "
|
|
281
|
+
getGamificationProfileMembers(profileId) {
|
|
282
|
+
// verify the required parameter 'profileId' is set
|
|
283
|
+
if (profileId === undefined || profileId === null) {
|
|
284
|
+
throw 'Missing the required parameter "profileId" when calling getGamificationProfileMembers';
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
return this.apiClient.callApi(
|
|
288
|
-
'/api/v2/gamification/profiles/{
|
|
288
|
+
'/api/v2/gamification/profiles/{profileId}/members',
|
|
289
289
|
'GET',
|
|
290
|
-
{ '
|
|
290
|
+
{ 'profileId': profileId },
|
|
291
291
|
{ },
|
|
292
292
|
{ },
|
|
293
293
|
{ },
|
|
@@ -339,6 +339,7 @@ class GamificationApi {
|
|
|
339
339
|
* @param {Object} opts Optional parameters
|
|
340
340
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand.
|
|
341
341
|
* @param {String} opts.workday The objective query workday. If not specified, then it retrieves the current objective. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
342
|
+
* @param {String} opts.metricIds List of metric ids to filter the response (Optional, comma-separated).
|
|
342
343
|
*/
|
|
343
344
|
getGamificationProfileMetrics(profileId, opts) {
|
|
344
345
|
opts = opts || {};
|
|
@@ -352,7 +353,7 @@ class GamificationApi {
|
|
|
352
353
|
'/api/v2/gamification/profiles/{profileId}/metrics',
|
|
353
354
|
'GET',
|
|
354
355
|
{ 'profileId': profileId },
|
|
355
|
-
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'workday': opts['workday'] },
|
|
356
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'workday': opts['workday'],'metricIds': opts['metricIds'] },
|
|
356
357
|
{ },
|
|
357
358
|
{ },
|
|
358
359
|
null,
|
|
@@ -1079,7 +1080,7 @@ class GamificationApi {
|
|
|
1079
1080
|
|
|
1080
1081
|
/**
|
|
1081
1082
|
* Creates a gamified metric with a given metric definition and metric objective
|
|
1082
|
-
*
|
|
1083
|
+
* This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
|
|
1083
1084
|
* @param {Object} body Metric
|
|
1084
1085
|
*/
|
|
1085
1086
|
postGamificationMetrics(body) {
|
|
@@ -1155,13 +1156,13 @@ class GamificationApi {
|
|
|
1155
1156
|
/**
|
|
1156
1157
|
* Assign members to a given performance profile
|
|
1157
1158
|
*
|
|
1158
|
-
* @param {String}
|
|
1159
|
+
* @param {String} profileId Profile Id
|
|
1159
1160
|
* @param {Object} body assignUsers
|
|
1160
1161
|
*/
|
|
1161
|
-
postGamificationProfileMembers(
|
|
1162
|
-
// verify the required parameter '
|
|
1163
|
-
if (
|
|
1164
|
-
throw 'Missing the required parameter "
|
|
1162
|
+
postGamificationProfileMembers(profileId, body) {
|
|
1163
|
+
// verify the required parameter 'profileId' is set
|
|
1164
|
+
if (profileId === undefined || profileId === null) {
|
|
1165
|
+
throw 'Missing the required parameter "profileId" when calling postGamificationProfileMembers';
|
|
1165
1166
|
}
|
|
1166
1167
|
// verify the required parameter 'body' is set
|
|
1167
1168
|
if (body === undefined || body === null) {
|
|
@@ -1169,9 +1170,9 @@ class GamificationApi {
|
|
|
1169
1170
|
}
|
|
1170
1171
|
|
|
1171
1172
|
return this.apiClient.callApi(
|
|
1172
|
-
'/api/v2/gamification/profiles/{
|
|
1173
|
+
'/api/v2/gamification/profiles/{profileId}/members',
|
|
1173
1174
|
'POST',
|
|
1174
|
-
{ '
|
|
1175
|
+
{ 'profileId': profileId },
|
|
1175
1176
|
{ },
|
|
1176
1177
|
{ },
|
|
1177
1178
|
{ },
|
|
@@ -1185,13 +1186,13 @@ class GamificationApi {
|
|
|
1185
1186
|
/**
|
|
1186
1187
|
* Validate member assignment
|
|
1187
1188
|
*
|
|
1188
|
-
* @param {String}
|
|
1189
|
+
* @param {String} profileId Profile Id
|
|
1189
1190
|
* @param {Object} body memberAssignments
|
|
1190
1191
|
*/
|
|
1191
|
-
postGamificationProfileMembersValidate(
|
|
1192
|
-
// verify the required parameter '
|
|
1193
|
-
if (
|
|
1194
|
-
throw 'Missing the required parameter "
|
|
1192
|
+
postGamificationProfileMembersValidate(profileId, body) {
|
|
1193
|
+
// verify the required parameter 'profileId' is set
|
|
1194
|
+
if (profileId === undefined || profileId === null) {
|
|
1195
|
+
throw 'Missing the required parameter "profileId" when calling postGamificationProfileMembersValidate';
|
|
1195
1196
|
}
|
|
1196
1197
|
// verify the required parameter 'body' is set
|
|
1197
1198
|
if (body === undefined || body === null) {
|
|
@@ -1199,9 +1200,9 @@ class GamificationApi {
|
|
|
1199
1200
|
}
|
|
1200
1201
|
|
|
1201
1202
|
return this.apiClient.callApi(
|
|
1202
|
-
'/api/v2/gamification/profiles/{
|
|
1203
|
+
'/api/v2/gamification/profiles/{profileId}/members/validate',
|
|
1203
1204
|
'POST',
|
|
1204
|
-
{ '
|
|
1205
|
+
{ 'profileId': profileId },
|
|
1205
1206
|
{ },
|
|
1206
1207
|
{ },
|
|
1207
1208
|
{ },
|
|
@@ -1308,7 +1309,7 @@ class GamificationApi {
|
|
|
1308
1309
|
|
|
1309
1310
|
/**
|
|
1310
1311
|
* Updates a metric
|
|
1311
|
-
*
|
|
1312
|
+
* This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics/{metricId} instead.
|
|
1312
1313
|
* @param {String} metricId metric Id
|
|
1313
1314
|
* @param {Object} body Metric
|
|
1314
1315
|
* @param {Object} opts Optional parameters
|