purecloud-platform-client-v2 196.0.0 → 197.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 (87) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +649 -116
  3. package/dist/web-amd/purecloud-platform-client-v2.js +649 -116
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +234 -98
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +235 -98
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +271 -92
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +136 -0
  12. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +129 -1
  23. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +156 -0
  27. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +8 -4
  29. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/JourneyApi.js +3 -2
  40. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/LearningApi.js +3 -2
  44. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OutboundApi.js +31 -35
  56. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/RoutingApi.js +3 -2
  62. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/SettingsApi.js +111 -1
  67. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/index.js +13 -1
@@ -0,0 +1,136 @@
1
+ import ApiClient from '../ApiClient.js';
2
+
3
+
4
+ class AgentUIApi {
5
+ /**
6
+ * AgentUI service.
7
+ * @module purecloud-platform-client-v2/api/AgentUIApi
8
+ * @version 197.0.0
9
+ */
10
+
11
+ /**
12
+ * Constructs a new AgentUIApi.
13
+ * @alias module:purecloud-platform-client-v2/api/AgentUIApi
14
+ * @class
15
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
16
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
17
+ */
18
+ constructor(apiClient) {
19
+ this.apiClient = apiClient || ApiClient.instance;
20
+ }
21
+
22
+
23
+ /**
24
+ * Delete agent auto answer settings
25
+ *
26
+ * @param {String} agentId The agent to apply the auto answer settings to
27
+ */
28
+ deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(agentId) {
29
+ // verify the required parameter 'agentId' is set
30
+ if (agentId === undefined || agentId === null) {
31
+ throw 'Missing the required parameter "agentId" when calling deleteUsersAgentuiAgentsAutoanswerAgentIdSettings';
32
+ }
33
+
34
+ return this.apiClient.callApi(
35
+ '/api/v2/users/agentui/agents/autoanswer/{agentId}/settings',
36
+ 'DELETE',
37
+ { 'agentId': agentId },
38
+ { },
39
+ { },
40
+ { },
41
+ null,
42
+ ['PureCloud OAuth'],
43
+ ['application/json'],
44
+ ['application/json']
45
+ );
46
+ }
47
+
48
+ /**
49
+ * Get agent auto answer settings
50
+ *
51
+ * @param {String} agentId The agent to apply the auto answer settings to
52
+ */
53
+ getUsersAgentuiAgentsAutoanswerAgentIdSettings(agentId) {
54
+ // verify the required parameter 'agentId' is set
55
+ if (agentId === undefined || agentId === null) {
56
+ throw 'Missing the required parameter "agentId" when calling getUsersAgentuiAgentsAutoanswerAgentIdSettings';
57
+ }
58
+
59
+ return this.apiClient.callApi(
60
+ '/api/v2/users/agentui/agents/autoanswer/{agentId}/settings',
61
+ 'GET',
62
+ { 'agentId': agentId },
63
+ { },
64
+ { },
65
+ { },
66
+ null,
67
+ ['PureCloud OAuth'],
68
+ ['application/json'],
69
+ ['application/json']
70
+ );
71
+ }
72
+
73
+ /**
74
+ * Update agent auto answer settings
75
+ *
76
+ * @param {String} agentId The agent to apply the auto answer settings to
77
+ * @param {Object} body AutoAnswerSettings
78
+ */
79
+ patchUsersAgentuiAgentsAutoanswerAgentIdSettings(agentId, body) {
80
+ // verify the required parameter 'agentId' is set
81
+ if (agentId === undefined || agentId === null) {
82
+ throw 'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';
83
+ }
84
+ // verify the required parameter 'body' is set
85
+ if (body === undefined || body === null) {
86
+ throw 'Missing the required parameter "body" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';
87
+ }
88
+
89
+ return this.apiClient.callApi(
90
+ '/api/v2/users/agentui/agents/autoanswer/{agentId}/settings',
91
+ 'PATCH',
92
+ { 'agentId': agentId },
93
+ { },
94
+ { },
95
+ { },
96
+ body,
97
+ ['PureCloud OAuth'],
98
+ ['application/json'],
99
+ ['application/json']
100
+ );
101
+ }
102
+
103
+ /**
104
+ * Set agent auto answer settings
105
+ *
106
+ * @param {String} agentId The agent to apply the auto answer settings to
107
+ * @param {Object} body AutoAnswerSettings
108
+ */
109
+ putUsersAgentuiAgentsAutoanswerAgentIdSettings(agentId, body) {
110
+ // verify the required parameter 'agentId' is set
111
+ if (agentId === undefined || agentId === null) {
112
+ throw 'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';
113
+ }
114
+ // verify the required parameter 'body' is set
115
+ if (body === undefined || body === null) {
116
+ throw 'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';
117
+ }
118
+
119
+ return this.apiClient.callApi(
120
+ '/api/v2/users/agentui/agents/autoanswer/{agentId}/settings',
121
+ 'PUT',
122
+ { 'agentId': agentId },
123
+ { },
124
+ { },
125
+ { },
126
+ body,
127
+ ['PureCloud OAuth'],
128
+ ['application/json'],
129
+ ['application/json']
130
+ );
131
+ }
132
+
133
+ }
134
+
135
+
136
+ export default AgentUIApi;
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class CarrierServicesApi {
5
5
  /**
6
6
  * CarrierServices service.
7
7
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
8
- * @version 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -724,6 +724,69 @@ class ConversationsApi {
724
724
  );
725
725
  }
726
726
 
727
+ /**
728
+ * Get Suggestion.
729
+ *
730
+ * @param {String} conversationId Conversation ID
731
+ * @param {String} suggestionId Suggestion ID
732
+ */
733
+ getConversationSuggestion(conversationId, suggestionId) {
734
+ // verify the required parameter 'conversationId' is set
735
+ if (conversationId === undefined || conversationId === null) {
736
+ throw 'Missing the required parameter "conversationId" when calling getConversationSuggestion';
737
+ }
738
+ // verify the required parameter 'suggestionId' is set
739
+ if (suggestionId === undefined || suggestionId === null) {
740
+ throw 'Missing the required parameter "suggestionId" when calling getConversationSuggestion';
741
+ }
742
+
743
+ return this.apiClient.callApi(
744
+ '/api/v2/conversations/{conversationId}/suggestions/{suggestionId}',
745
+ 'GET',
746
+ { 'conversationId': conversationId,'suggestionId': suggestionId },
747
+ { },
748
+ { },
749
+ { },
750
+ null,
751
+ ['PureCloud OAuth'],
752
+ ['application/json'],
753
+ ['application/json']
754
+ );
755
+ }
756
+
757
+ /**
758
+ * Get all suggestions for a conversation.
759
+ *
760
+ * @param {String} conversationId Conversation ID
761
+ * @param {Object} opts Optional parameters
762
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
763
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
764
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
765
+ * @param {Object} opts.type Suggestion type to filter by.
766
+ * @param {Object} opts.state Suggestion state to filter Copilot suggestions.
767
+ */
768
+ getConversationSuggestions(conversationId, opts) {
769
+ opts = opts || {};
770
+
771
+ // verify the required parameter 'conversationId' is set
772
+ if (conversationId === undefined || conversationId === null) {
773
+ throw 'Missing the required parameter "conversationId" when calling getConversationSuggestions';
774
+ }
775
+
776
+ return this.apiClient.callApi(
777
+ '/api/v2/conversations/{conversationId}/suggestions',
778
+ 'GET',
779
+ { 'conversationId': conversationId },
780
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'type': opts['type'],'state': opts['state'] },
781
+ { },
782
+ { },
783
+ null,
784
+ ['PureCloud OAuth'],
785
+ ['application/json'],
786
+ ['application/json']
787
+ );
788
+ }
789
+
727
790
  /**
728
791
  * Get active conversations for the logged in user
729
792
  *
@@ -4539,6 +4602,71 @@ class ConversationsApi {
4539
4602
  );
4540
4603
  }
4541
4604
 
4605
+ /**
4606
+ * Save an engagement on the suggestion.
4607
+ *
4608
+ * @param {String} conversationId Conversation ID
4609
+ * @param {String} suggestionId Suggestion ID
4610
+ * @param {Object} body
4611
+ */
4612
+ postConversationSuggestionEngagement(conversationId, suggestionId, body) {
4613
+ // verify the required parameter 'conversationId' is set
4614
+ if (conversationId === undefined || conversationId === null) {
4615
+ throw 'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';
4616
+ }
4617
+ // verify the required parameter 'suggestionId' is set
4618
+ if (suggestionId === undefined || suggestionId === null) {
4619
+ throw 'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';
4620
+ }
4621
+ // verify the required parameter 'body' is set
4622
+ if (body === undefined || body === null) {
4623
+ throw 'Missing the required parameter "body" when calling postConversationSuggestionEngagement';
4624
+ }
4625
+
4626
+ return this.apiClient.callApi(
4627
+ '/api/v2/conversations/{conversationId}/suggestions/{suggestionId}/engagement',
4628
+ 'POST',
4629
+ { 'conversationId': conversationId,'suggestionId': suggestionId },
4630
+ { },
4631
+ { },
4632
+ { },
4633
+ body,
4634
+ ['PureCloud OAuth'],
4635
+ ['application/json'],
4636
+ ['application/json']
4637
+ );
4638
+ }
4639
+
4640
+ /**
4641
+ * Suggestion feedback.
4642
+ *
4643
+ * @param {String} conversationId Conversation ID
4644
+ * @param {Object} body SuggestionFeedback
4645
+ */
4646
+ postConversationSuggestionsFeedback(conversationId, body) {
4647
+ // verify the required parameter 'conversationId' is set
4648
+ if (conversationId === undefined || conversationId === null) {
4649
+ throw 'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';
4650
+ }
4651
+ // verify the required parameter 'body' is set
4652
+ if (body === undefined || body === null) {
4653
+ throw 'Missing the required parameter "body" when calling postConversationSuggestionsFeedback';
4654
+ }
4655
+
4656
+ return this.apiClient.callApi(
4657
+ '/api/v2/conversations/{conversationId}/suggestions/feedback',
4658
+ 'POST',
4659
+ { 'conversationId': conversationId },
4660
+ { },
4661
+ { },
4662
+ { },
4663
+ body,
4664
+ ['PureCloud OAuth'],
4665
+ ['application/json'],
4666
+ ['application/json']
4667
+ );
4668
+ }
4669
+
4542
4670
  /**
4543
4671
  * Submit feedback for the summary.
4544
4672
  *
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 196.0.0
8
+ * @version 197.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DownloadsApi {
5
5
  /**
6
6
  * Downloads service.
7
7
  * @module purecloud-platform-client-v2/api/DownloadsApi
8
- * @version 196.0.0
8
+ * @version 197.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class EmailsApi {
5
5
  /**
6
6
  * Emails service.
7
7
  * @module purecloud-platform-client-v2/api/EmailsApi
8
- * @version 196.0.0
8
+ * @version 197.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -0,0 +1,156 @@
1
+ import ApiClient from '../ApiClient.js';
2
+
3
+
4
+ class EmployeeEngagementApi {
5
+ /**
6
+ * EmployeeEngagement service.
7
+ * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
8
+ * @version 197.0.0
9
+ */
10
+
11
+ /**
12
+ * Constructs a new EmployeeEngagementApi.
13
+ * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
14
+ * @class
15
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
16
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
17
+ */
18
+ constructor(apiClient) {
19
+ this.apiClient = apiClient || ApiClient.instance;
20
+ }
21
+
22
+
23
+ /**
24
+ * Deletes a celebration
25
+ *
26
+ * @param {String} celebrationId The ID of the celebration
27
+ */
28
+ deleteEmployeeengagementCelebration(celebrationId) {
29
+ // verify the required parameter 'celebrationId' is set
30
+ if (celebrationId === undefined || celebrationId === null) {
31
+ throw 'Missing the required parameter "celebrationId" when calling deleteEmployeeengagementCelebration';
32
+ }
33
+
34
+ return this.apiClient.callApi(
35
+ '/api/v2/employeeengagement/celebrations/{celebrationId}',
36
+ 'DELETE',
37
+ { 'celebrationId': celebrationId },
38
+ { },
39
+ { },
40
+ { },
41
+ null,
42
+ ['PureCloud OAuth'],
43
+ ['application/json'],
44
+ ['application/json']
45
+ );
46
+ }
47
+
48
+ /**
49
+ * Get all celebrations
50
+ *
51
+ * @param {Object} opts Optional parameters
52
+ * @param {Number} opts.pageNumber (default to 1)
53
+ * @param {Number} opts.pageSize (default to 25)
54
+ */
55
+ getEmployeeengagementCelebrations(opts) {
56
+ opts = opts || {};
57
+
58
+
59
+ return this.apiClient.callApi(
60
+ '/api/v2/employeeengagement/celebrations',
61
+ 'GET',
62
+ { },
63
+ { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
64
+ { },
65
+ { },
66
+ null,
67
+ ['PureCloud OAuth'],
68
+ ['application/json'],
69
+ ['application/json']
70
+ );
71
+ }
72
+
73
+ /**
74
+ * Gets a single recognition
75
+ *
76
+ * @param {String} recognitionId The Recognition ID
77
+ */
78
+ getEmployeeengagementRecognition(recognitionId) {
79
+ // verify the required parameter 'recognitionId' is set
80
+ if (recognitionId === undefined || recognitionId === null) {
81
+ throw 'Missing the required parameter "recognitionId" when calling getEmployeeengagementRecognition';
82
+ }
83
+
84
+ return this.apiClient.callApi(
85
+ '/api/v2/employeeengagement/recognitions/{recognitionId}',
86
+ 'GET',
87
+ { 'recognitionId': recognitionId },
88
+ { },
89
+ { },
90
+ { },
91
+ null,
92
+ ['PureCloud OAuth'],
93
+ ['application/json'],
94
+ ['application/json']
95
+ );
96
+ }
97
+
98
+ /**
99
+ * Set a state for a celebration
100
+ *
101
+ * @param {String} celebrationId The ID of the celebration
102
+ * @param {Object} body Patch Celebration state
103
+ */
104
+ patchEmployeeengagementCelebration(celebrationId, body) {
105
+ // verify the required parameter 'celebrationId' is set
106
+ if (celebrationId === undefined || celebrationId === null) {
107
+ throw 'Missing the required parameter "celebrationId" when calling patchEmployeeengagementCelebration';
108
+ }
109
+ // verify the required parameter 'body' is set
110
+ if (body === undefined || body === null) {
111
+ throw 'Missing the required parameter "body" when calling patchEmployeeengagementCelebration';
112
+ }
113
+
114
+ return this.apiClient.callApi(
115
+ '/api/v2/employeeengagement/celebrations/{celebrationId}',
116
+ 'PATCH',
117
+ { 'celebrationId': celebrationId },
118
+ { },
119
+ { },
120
+ { },
121
+ body,
122
+ ['PureCloud OAuth'],
123
+ ['application/json'],
124
+ ['application/json']
125
+ );
126
+ }
127
+
128
+ /**
129
+ * Creates a recognition
130
+ *
131
+ * @param {Object} body Create Recognition
132
+ */
133
+ postEmployeeengagementRecognitions(body) {
134
+ // verify the required parameter 'body' is set
135
+ if (body === undefined || body === null) {
136
+ throw 'Missing the required parameter "body" when calling postEmployeeengagementRecognitions';
137
+ }
138
+
139
+ return this.apiClient.callApi(
140
+ '/api/v2/employeeengagement/recognitions',
141
+ 'POST',
142
+ { },
143
+ { },
144
+ { },
145
+ { },
146
+ body,
147
+ ['PureCloud OAuth'],
148
+ ['application/json'],
149
+ ['application/json']
150
+ );
151
+ }
152
+
153
+ }
154
+
155
+
156
+ export default EmployeeEngagementApi;
@@ -5,7 +5,7 @@ class EventsApi {
5
5
  /**
6
6
  * Events service.
7
7
  * @module purecloud-platform-client-v2/api/EventsApi
8
- * @version 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -210,7 +210,7 @@ class ExternalContactsApi {
210
210
  *
211
211
  * @param {String} contactId ExternalContact ID
212
212
  * @param {Object} opts Optional parameters
213
- * @param {Array.<String>} opts.expand which fields, if any, to expand (externalOrganization,externalDataSources)
213
+ * @param {Array.<String>} opts.expand which fields, if any, to expand (externalOrganization,externalDataSources,identifiers)
214
214
  */
215
215
  getExternalcontactsContact(contactId, opts) {
216
216
  opts = opts || {};
@@ -1526,8 +1526,12 @@ class ExternalContactsApi {
1526
1526
  * Fetch a contact using an identifier type and value.
1527
1527
  * Phone number identifier values must be provided with the country code and a leading + symbol. Example: "+1 704 298 4733"
1528
1528
  * @param {Object} identifier
1529
+ * @param {Object} opts Optional parameters
1530
+ * @param {Array.<String>} opts.expand which field, if any, to expand
1529
1531
  */
1530
- postExternalcontactsIdentifierlookup(identifier) {
1532
+ postExternalcontactsIdentifierlookup(identifier, opts) {
1533
+ opts = opts || {};
1534
+
1531
1535
  // verify the required parameter 'identifier' is set
1532
1536
  if (identifier === undefined || identifier === null) {
1533
1537
  throw 'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';
@@ -1537,7 +1541,7 @@ class ExternalContactsApi {
1537
1541
  '/api/v2/externalcontacts/identifierlookup',
1538
1542
  'POST',
1539
1543
  { },
1540
- { },
1544
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
1541
1545
  { },
1542
1546
  { },
1543
1547
  identifier,
@@ -5,7 +5,7 @@ class FaxApi {
5
5
  /**
6
6
  * Fax service.
7
7
  * @module purecloud-platform-client-v2/api/FaxApi
8
- * @version 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi {
5
5
  /**
6
6
  * GeneralDataProtectionRegulation service.
7
7
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
8
- * @version 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.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 196.0.0
8
+ * @version 197.0.0
9
9
  */
10
10
 
11
11
  /**