purecloud-platform-client-v2 196.0.0 → 198.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 +972 -148
  3. package/dist/web-amd/purecloud-platform-client-v2.js +972 -148
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +323 -110
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +327 -111
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +791 -121
  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 +165 -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 +9 -5
  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 +32 -3
  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 +32 -36
  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 +32 -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 +3 -2
  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 +3 -3
  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 +222 -27
  87. package/src/purecloud-platform-client-v2/index.js +13 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "196.0.0",
3
+ "version": "198.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",
@@ -4,7 +4,7 @@ import { default as qs } from 'qs';
4
4
 
5
5
  /**
6
6
  * @module purecloud-platform-client-v2/ApiClient
7
- * @version 196.0.0
7
+ * @version 198.0.0
8
8
  */
9
9
  class ApiClient {
10
10
  /**
@@ -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 198.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 198.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 198.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 198.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 198.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 198.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 198.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 198.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 198.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 198.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 198.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 198.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
  *
@@ -3657,6 +3720,42 @@ class ConversationsApi {
3657
3720
  );
3658
3721
  }
3659
3722
 
3723
+ /**
3724
+ * Update conversation by setting its parking state
3725
+ *
3726
+ * @param {String} conversationId conversationId
3727
+ * @param {String} participantId participantId
3728
+ * @param {Object} body Parking update request
3729
+ * patchConversationsEmailParticipantParkingstate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3730
+ */
3731
+ patchConversationsEmailParticipantParkingstate(conversationId, participantId, body) {
3732
+ // verify the required parameter 'conversationId' is set
3733
+ if (conversationId === undefined || conversationId === null) {
3734
+ throw 'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantParkingstate';
3735
+ }
3736
+ // verify the required parameter 'participantId' is set
3737
+ if (participantId === undefined || participantId === null) {
3738
+ throw 'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantParkingstate';
3739
+ }
3740
+ // verify the required parameter 'body' is set
3741
+ if (body === undefined || body === null) {
3742
+ throw 'Missing the required parameter "body" when calling patchConversationsEmailParticipantParkingstate';
3743
+ }
3744
+
3745
+ return this.apiClient.callApi(
3746
+ '/api/v2/conversations/emails/{conversationId}/participants/{participantId}/parkingstate',
3747
+ 'PATCH',
3748
+ { 'conversationId': conversationId,'participantId': participantId },
3749
+ { },
3750
+ { },
3751
+ { },
3752
+ body,
3753
+ ['PureCloud OAuth'],
3754
+ ['application/json'],
3755
+ ['application/json']
3756
+ );
3757
+ }
3758
+
3660
3759
  /**
3661
3760
  * Update a conversation by disconnecting all of the participants
3662
3761
  *
@@ -4539,6 +4638,71 @@ class ConversationsApi {
4539
4638
  );
4540
4639
  }
4541
4640
 
4641
+ /**
4642
+ * Save an engagement on the suggestion.
4643
+ *
4644
+ * @param {String} conversationId Conversation ID
4645
+ * @param {String} suggestionId Suggestion ID
4646
+ * @param {Object} body
4647
+ */
4648
+ postConversationSuggestionEngagement(conversationId, suggestionId, body) {
4649
+ // verify the required parameter 'conversationId' is set
4650
+ if (conversationId === undefined || conversationId === null) {
4651
+ throw 'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';
4652
+ }
4653
+ // verify the required parameter 'suggestionId' is set
4654
+ if (suggestionId === undefined || suggestionId === null) {
4655
+ throw 'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';
4656
+ }
4657
+ // verify the required parameter 'body' is set
4658
+ if (body === undefined || body === null) {
4659
+ throw 'Missing the required parameter "body" when calling postConversationSuggestionEngagement';
4660
+ }
4661
+
4662
+ return this.apiClient.callApi(
4663
+ '/api/v2/conversations/{conversationId}/suggestions/{suggestionId}/engagement',
4664
+ 'POST',
4665
+ { 'conversationId': conversationId,'suggestionId': suggestionId },
4666
+ { },
4667
+ { },
4668
+ { },
4669
+ body,
4670
+ ['PureCloud OAuth'],
4671
+ ['application/json'],
4672
+ ['application/json']
4673
+ );
4674
+ }
4675
+
4676
+ /**
4677
+ * Suggestion feedback.
4678
+ *
4679
+ * @param {String} conversationId Conversation ID
4680
+ * @param {Object} body SuggestionFeedback
4681
+ */
4682
+ postConversationSuggestionsFeedback(conversationId, body) {
4683
+ // verify the required parameter 'conversationId' is set
4684
+ if (conversationId === undefined || conversationId === null) {
4685
+ throw 'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';
4686
+ }
4687
+ // verify the required parameter 'body' is set
4688
+ if (body === undefined || body === null) {
4689
+ throw 'Missing the required parameter "body" when calling postConversationSuggestionsFeedback';
4690
+ }
4691
+
4692
+ return this.apiClient.callApi(
4693
+ '/api/v2/conversations/{conversationId}/suggestions/feedback',
4694
+ 'POST',
4695
+ { 'conversationId': conversationId },
4696
+ { },
4697
+ { },
4698
+ { },
4699
+ body,
4700
+ ['PureCloud OAuth'],
4701
+ ['application/json'],
4702
+ ['application/json']
4703
+ );
4704
+ }
4705
+
4542
4706
  /**
4543
4707
  * Submit feedback for the summary.
4544
4708
  *
@@ -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 198.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 198.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 198.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 198.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 198.0.0
9
9
  */
10
10
 
11
11
  /**