purecloud-platform-client-v2 137.1.0 → 139.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.
Files changed (73) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +382 -120
  3. package/dist/web-amd/purecloud-platform-client-v2.js +382 -120
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +382 -120
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +382 -120
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +653 -238
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +5 -2
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +271 -1
  21. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/GamificationApi.js +24 -23
  26. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +5 -5
  34. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/RoutingApi.js +9 -21
  52. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +4 -4
  54. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +7 -7
  73. package/src/purecloud-platform-client-v2/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "137.1.0",
3
+ "version": "139.0.0",
4
4
  "description": "A JavaScript library to interface with the PureCloud Platform API",
5
5
  "license": "MIT",
6
6
  "main": "dist/node/purecloud-platform-client-v2.js",
@@ -3,7 +3,7 @@ import Configuration from './configuration.js';
3
3
 
4
4
  /**
5
5
  * @module purecloud-platform-client-v2/ApiClient
6
- * @version 137.1.0
6
+ * @version 139.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 AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AnalyticsApi {
5
5
  /**
6
6
  * Analytics service.
7
7
  * @module purecloud-platform-client-v2/api/AnalyticsApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ArchitectApi {
5
5
  /**
6
6
  * Architect service.
7
7
  * @module purecloud-platform-client-v2/api/ArchitectApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuditApi {
5
5
  /**
6
6
  * Audit service.
7
7
  * @module purecloud-platform-client-v2/api/AuditApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuthorizationApi {
5
5
  /**
6
6
  * Authorization service.
7
7
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class BillingApi {
5
5
  /**
6
6
  * Billing service.
7
7
  * @module purecloud-platform-client-v2/api/BillingApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ChatApi {
5
5
  /**
6
6
  * Chat service.
7
7
  * @module purecloud-platform-client-v2/api/ChatApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class CoachingApi {
5
5
  /**
6
6
  * Coaching service.
7
7
  * @module purecloud-platform-client-v2/api/CoachingApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ContentManagementApi {
5
5
  /**
6
6
  * ContentManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ConversationsApi {
5
5
  /**
6
6
  * Conversations service.
7
7
  * @module purecloud-platform-client-v2/api/ConversationsApi
8
- * @version 137.1.0
8
+ * @version 139.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 DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ExternalContactsApi {
5
5
  /**
6
6
  * ExternalContacts service.
7
7
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FaxApi {
5
5
  /**
6
6
  * Fax service.
7
7
  * @module purecloud-platform-client-v2/api/FaxApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FlowsApi {
5
5
  /**
6
6
  * Flows service.
7
7
  * @module purecloud-platform-client-v2/api/FlowsApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GamificationApi {
5
5
  /**
6
6
  * Gamification service.
7
7
  * @module purecloud-platform-client-v2/api/GamificationApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -276,18 +276,18 @@ class GamificationApi {
276
276
  /**
277
277
  * Members of a given performance profile
278
278
  *
279
- * @param {String} performanceProfileId Performance Profile Id
279
+ * @param {String} profileId Profile Id
280
280
  */
281
- getGamificationProfileMembers(performanceProfileId) {
282
- // verify the required parameter 'performanceProfileId' is set
283
- if (performanceProfileId === undefined || performanceProfileId === null) {
284
- throw 'Missing the required parameter "performanceProfileId" when calling getGamificationProfileMembers';
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/{performanceProfileId}/members',
288
+ '/api/v2/gamification/profiles/{profileId}/members',
289
289
  'GET',
290
- { 'performanceProfileId': performanceProfileId },
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,
@@ -1155,13 +1156,13 @@ class GamificationApi {
1155
1156
  /**
1156
1157
  * Assign members to a given performance profile
1157
1158
  *
1158
- * @param {String} performanceProfileId Performance Profile Id
1159
+ * @param {String} profileId Profile Id
1159
1160
  * @param {Object} body assignUsers
1160
1161
  */
1161
- postGamificationProfileMembers(performanceProfileId, body) {
1162
- // verify the required parameter 'performanceProfileId' is set
1163
- if (performanceProfileId === undefined || performanceProfileId === null) {
1164
- throw 'Missing the required parameter "performanceProfileId" when calling postGamificationProfileMembers';
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/{performanceProfileId}/members',
1173
+ '/api/v2/gamification/profiles/{profileId}/members',
1173
1174
  'POST',
1174
- { 'performanceProfileId': performanceProfileId },
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} performanceProfileId Performance Profile Id
1189
+ * @param {String} profileId Profile Id
1189
1190
  * @param {Object} body memberAssignments
1190
1191
  */
1191
- postGamificationProfileMembersValidate(performanceProfileId, body) {
1192
- // verify the required parameter 'performanceProfileId' is set
1193
- if (performanceProfileId === undefined || performanceProfileId === null) {
1194
- throw 'Missing the required parameter "performanceProfileId" when calling postGamificationProfileMembersValidate';
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/{performanceProfileId}/members/validate',
1203
+ '/api/v2/gamification/profiles/{profileId}/members/validate',
1203
1204
  'POST',
1204
- { 'performanceProfileId': performanceProfileId },
1205
+ { 'profileId': profileId },
1205
1206
  { },
1206
1207
  { },
1207
1208
  { },
@@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi {
5
5
  /**
6
6
  * GeneralDataProtectionRegulation service.
7
7
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeolocationApi {
5
5
  /**
6
6
  * Geolocation service.
7
7
  * @module purecloud-platform-client-v2/api/GeolocationApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GreetingsApi {
5
5
  /**
6
6
  * Greetings service.
7
7
  * @module purecloud-platform-client-v2/api/GreetingsApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GroupsApi {
5
5
  /**
6
6
  * Groups service.
7
7
  * @module purecloud-platform-client-v2/api/GroupsApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IdentityProviderApi {
5
5
  /**
6
6
  * IdentityProvider service.
7
7
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IntegrationsApi {
5
5
  /**
6
6
  * Integrations service.
7
7
  * @module purecloud-platform-client-v2/api/IntegrationsApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class JourneyApi {
5
5
  /**
6
6
  * Journey service.
7
7
  * @module purecloud-platform-client-v2/api/JourneyApi
8
- * @version 137.1.0
8
+ * @version 139.0.0
9
9
  */
10
10
 
11
11
  /**