purecloud-platform-client-v2 234.0.0 → 236.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 (93) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +314 -200
  3. package/dist/web-amd/purecloud-platform-client-v2.js +314 -200
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +193 -129
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +193 -129
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +528 -326
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +45 -1
  11. package/src/purecloud-platform-client-v2/api/AIStudioApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +2 -2
  20. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/CoachingApi.js +51 -1
  25. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +38 -8
  27. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GamificationApi.js +46 -1
  37. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LearningApi.js +51 -1
  49. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +2 -2
  57. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -107
  64. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  92. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +3 -2
  93. 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": "234.0.0",
3
+ "version": "236.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",
@@ -6,7 +6,7 @@ import { default as qs } from 'qs';
6
6
 
7
7
  /**
8
8
  * @module purecloud-platform-client-v2/ApiClient
9
- * @version 234.0.0
9
+ * @version 236.0.0
10
10
  */
11
11
  class ApiClient {
12
12
  /**
@@ -209,6 +209,50 @@ class ApiClient {
209
209
  this.config.setEnvironment(environment);
210
210
  }
211
211
 
212
+ /**
213
+ * @description Sets the optional http headers used by the client
214
+ * @param {object} newHeaders - default headers to be used
215
+ */
216
+ setDefaultHeaders(newHeaders) {
217
+ if (!newHeaders || !(typeof newHeaders === 'object')) {
218
+ throw new Error("default headers must be a map");
219
+ }
220
+ this.defaultHeaders = newHeaders;
221
+ }
222
+
223
+ /**
224
+ * @description Gets the default http headers used by the client
225
+ */
226
+ getDefaultHeaders() {
227
+ return this.defaultHeaders;
228
+ }
229
+
230
+ /**
231
+ * @description Sets the optional Genesys-App http header used by the client
232
+ * @param {string} headerValue - value for the Genesys-App header
233
+ */
234
+ setGenesysAppHeader(headerValue) {
235
+ if (!headerValue || !(typeof headerValue === 'string')) throw new Error("headerValue must be a non empty string");
236
+ if (!this.defaultHeaders) {
237
+ this.defaultHeaders = {
238
+ "Genesys-App": headerValue
239
+ };
240
+ } else {
241
+ this.defaultHeaders["Genesys-App"] = headerValue;
242
+ }
243
+ }
244
+
245
+ /**
246
+ * @description Gets the Genesys-App http header used by the client
247
+ */
248
+ getGenesysAppHeader() {
249
+ if (this.defaultHeaders && this.defaultHeaders["Genesys-App"]) {
250
+ return this.defaultHeaders["Genesys-App"];
251
+ } else {
252
+ return null;
253
+ }
254
+ }
255
+
212
256
  /**
213
257
  * @description Sets the dynamic HttpClient used by the client
214
258
  * @param {object} httpClient - HttpClient to be injected
@@ -5,7 +5,7 @@ class AIStudioApi {
5
5
  /**
6
6
  * AIStudio service.
7
7
  * @module purecloud-platform-client-v2/api/AIStudioApi
8
- * @version 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AgentAssistantsApi {
5
5
  /**
6
6
  * AgentAssistants service.
7
7
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
8
- * @version 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AgentCopilotApi {
5
5
  /**
6
6
  * AgentCopilot service.
7
7
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
8
- * @version 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AgentUIApi {
5
5
  /**
6
6
  * AgentUI service.
7
7
  * @module purecloud-platform-client-v2/api/AgentUIApi
8
- * @version 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -302,7 +302,7 @@ class AuthorizationApi {
302
302
  * @param {Object} opts Optional parameters
303
303
  * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
304
304
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
305
- * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
305
+ * @param {String} opts.pageSize Page size (max 200, default 25) (default to 25)
306
306
  * @param {Array.<String>} opts.id Optionally request specific divisions by their IDs
307
307
  * @param {String} opts.name Optionally request specific divisions by division name
308
308
  */
@@ -5,7 +5,7 @@ class BillingApi {
5
5
  /**
6
6
  * Billing service.
7
7
  * @module purecloud-platform-client-v2/api/BillingApi
8
- * @version 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class BusinessRulesApi {
5
5
  /**
6
6
  * BusinessRules service.
7
7
  * @module purecloud-platform-client-v2/api/BusinessRulesApi
8
- * @version 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -316,6 +316,31 @@ class CoachingApi {
316
316
  );
317
317
  }
318
318
 
319
+ /**
320
+ * Retrieve the status of the job for the slots where a coaching appointment can be scheduled.
321
+ *
322
+ * @param {String} jobId The ID of job
323
+ */
324
+ getCoachingScheduleslotsJob(jobId) {
325
+ // verify the required parameter 'jobId' is set
326
+ if (jobId === undefined || jobId === null || jobId === '') {
327
+ throw 'Missing the required parameter "jobId" when calling getCoachingScheduleslotsJob';
328
+ }
329
+
330
+ return this.apiClient.callApi(
331
+ '/api/v2/coaching/scheduleslots/jobs/{jobId}',
332
+ 'GET',
333
+ { 'jobId': jobId },
334
+ { },
335
+ { },
336
+ { },
337
+ null,
338
+ ['PureCloud OAuth'],
339
+ ['application/json'],
340
+ ['application/json']
341
+ );
342
+ }
343
+
319
344
  /**
320
345
  * Update an existing appointment
321
346
  * Permission not required if you are the creator or facilitator of the appointment
@@ -551,6 +576,31 @@ class CoachingApi {
551
576
  );
552
577
  }
553
578
 
579
+ /**
580
+ * Start job to retrieve the slots where a coaching appointment can be scheduled.
581
+ *
582
+ * @param {Object} body The slots search request
583
+ */
584
+ postCoachingScheduleslotsJobs(body) {
585
+ // verify the required parameter 'body' is set
586
+ if (body === undefined || body === null) {
587
+ throw 'Missing the required parameter "body" when calling postCoachingScheduleslotsJobs';
588
+ }
589
+
590
+ return this.apiClient.callApi(
591
+ '/api/v2/coaching/scheduleslots/jobs',
592
+ 'POST',
593
+ { },
594
+ { },
595
+ { },
596
+ { },
597
+ body,
598
+ ['PureCloud OAuth'],
599
+ ['application/json'],
600
+ ['application/json']
601
+ );
602
+ }
603
+
554
604
  /**
555
605
  * Get list of possible slots where a coaching appointment can be scheduled.
556
606
  *
@@ -5,7 +5,7 @@ class ContentManagementApi {
5
5
  /**
6
6
  * ContentManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8
- * @version 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -677,7 +677,6 @@ class ConversationsApi {
677
677
  * @param {String} conversationId conversationId
678
678
  * @param {String} communicationId communicationId
679
679
  * @param {String} messageId messageId
680
- * getConversationCommunicationInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
681
680
  */
682
681
  getConversationCommunicationInternalmessage(conversationId, communicationId, messageId) {
683
682
  // verify the required parameter 'conversationId' is set
@@ -715,7 +714,6 @@ class ConversationsApi {
715
714
  * @param {Object} opts Optional parameters
716
715
  * @param {Number} opts.pageSize Indicates maximum number of results in response. Default page size is 25 results. The maximum page size is 200. (default to 25)
717
716
  * @param {Number} opts.pageNumber Page number (default to 1)
718
- * getConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
719
717
  */
720
718
  getConversationCommunicationInternalmessages(conversationId, communicationId, opts) {
721
719
  opts = opts || {};
@@ -1977,7 +1975,6 @@ class ConversationsApi {
1977
1975
  * Get internal message conversation
1978
1976
  *
1979
1977
  * @param {String} conversationId conversationId
1980
- * getConversationsInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1981
1978
  */
1982
1979
  getConversationsInternalmessage(conversationId) {
1983
1980
  // verify the required parameter 'conversationId' is set
@@ -2002,7 +1999,6 @@ class ConversationsApi {
2002
1999
  /**
2003
2000
  * Get active internal message conversations for the logged in user
2004
2001
  *
2005
- * getConversationsInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2006
2002
  */
2007
2003
  getConversationsInternalmessages() {
2008
2004
 
@@ -2090,6 +2086,42 @@ class ConversationsApi {
2090
2086
  );
2091
2087
  }
2092
2088
 
2089
+ /**
2090
+ * Get message media list by status
2091
+ *
2092
+ * @param {String} conversationId conversationId
2093
+ * @param {String} communicationId communicationId
2094
+ * @param {Object} opts Optional parameters
2095
+ * @param {Object} opts.status The status on which to filter the response.
2096
+ * @param {Number} opts.pageNumber Page number (default to 1)
2097
+ * @param {Number} opts.pageSize Page size (default to 25)
2098
+ */
2099
+ getConversationsMessageCommunicationMessagesMedia(conversationId, communicationId, opts) {
2100
+ opts = opts || {};
2101
+
2102
+ // verify the required parameter 'conversationId' is set
2103
+ if (conversationId === undefined || conversationId === null || conversationId === '') {
2104
+ throw 'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMedia';
2105
+ }
2106
+ // verify the required parameter 'communicationId' is set
2107
+ if (communicationId === undefined || communicationId === null || communicationId === '') {
2108
+ throw 'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMedia';
2109
+ }
2110
+
2111
+ return this.apiClient.callApi(
2112
+ '/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media',
2113
+ 'GET',
2114
+ { 'conversationId': conversationId,'communicationId': communicationId },
2115
+ { 'status': opts['status'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
2116
+ { },
2117
+ { },
2118
+ null,
2119
+ ['PureCloud OAuth'],
2120
+ ['application/json'],
2121
+ ['application/json']
2122
+ );
2123
+ }
2124
+
2093
2125
  /**
2094
2126
  * Get media
2095
2127
  * See https://developer.genesys.cloud/api/rest/v2/conversations/messaging-media-upload for example usage.
@@ -5201,7 +5233,6 @@ class ConversationsApi {
5201
5233
  * @param {String} conversationId conversationId
5202
5234
  * @param {String} communicationId communicationId
5203
5235
  * @param {Object} body Message
5204
- * postConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
5205
5236
  */
5206
5237
  postConversationCommunicationInternalmessages(conversationId, communicationId, body) {
5207
5238
  // verify the required parameter 'conversationId' is set
@@ -5330,7 +5361,6 @@ class ConversationsApi {
5330
5361
  * @param {String} conversationId conversation ID
5331
5362
  * @param {String} participantId participant ID
5332
5363
  * @param {Object} body Confer request
5333
- * postConversationParticipantInternalmessagesUsersCommunications is a preview method and is subject to both breaking and non-breaking changes at any time without notice
5334
5364
  */
5335
5365
  postConversationParticipantInternalmessagesUsersCommunications(conversationId, participantId, body) {
5336
5366
  // verify the required parameter 'conversationId' is set
@@ -7240,7 +7270,7 @@ class ConversationsApi {
7240
7270
 
7241
7271
  /**
7242
7272
  * Get messages in batch
7243
- * The path parameter [conversationId] should contain the conversationId of the conversation being filtered. The body should contain the messageId(s) of messages being requested. For example: ["a3069a33b-bbb1-4703-9d68-061d9e9db96e", "55bc6be3-078c-4a49-a4e6-1e05776ed7e8"]
7273
+ * The path parameter [conversationId] should contain the conversationId of the conversation being filtered. The body should contain the messageId(s) of messages being requested. For example: ["a3069a33b-bbb1-4703-9d68-061d9e9db96e", "55bc6be3-078c-4a49-a4e6-1e05776ed7e8"]. The max messages you can request in the body is 1,000. Best practice is to limit to only the messages you need in each request, rather than request large batches by default.
7244
7274
  * @param {String} conversationId
7245
7275
  * @param {Object} opts Optional parameters
7246
7276
  * @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DataPrivacyApi {
5
5
  /**
6
6
  * DataPrivacy service.
7
7
  * @module purecloud-platform-client-v2/api/DataPrivacyApi
8
- * @version 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class EmployeeEngagementApi {
5
5
  /**
6
6
  * EmployeeEngagement service.
7
7
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
8
- * @version 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class EventsApi {
5
5
  /**
6
6
  * Events service.
7
7
  * @module purecloud-platform-client-v2/api/EventsApi
8
- * @version 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -560,6 +560,51 @@ class GamificationApi {
560
560
  );
561
561
  }
562
562
 
563
+ /**
564
+ * Query managers in a profile during a period of time
565
+ *
566
+ * @param {Object} filterType Filter type for the query request.
567
+ * @param {String} filterId ID for the filter type.
568
+ * @param {Object} granularity Granularity
569
+ * @param {String} startWorkday The start work day. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
570
+ * @param {Object} opts Optional parameters
571
+ * @param {Number} opts.pageSize Page size (default to 100)
572
+ * @param {Number} opts.pageNumber Page number (default to 1)
573
+ */
574
+ getGamificationInsightsManagers(filterType, filterId, granularity, startWorkday, opts) {
575
+ opts = opts || {};
576
+
577
+ // verify the required parameter 'filterType' is set
578
+ if (filterType === undefined || filterType === null) {
579
+ throw 'Missing the required parameter "filterType" when calling getGamificationInsightsManagers';
580
+ }
581
+ // verify the required parameter 'filterId' is set
582
+ if (filterId === undefined || filterId === null) {
583
+ throw 'Missing the required parameter "filterId" when calling getGamificationInsightsManagers';
584
+ }
585
+ // verify the required parameter 'granularity' is set
586
+ if (granularity === undefined || granularity === null) {
587
+ throw 'Missing the required parameter "granularity" when calling getGamificationInsightsManagers';
588
+ }
589
+ // verify the required parameter 'startWorkday' is set
590
+ if (startWorkday === undefined || startWorkday === null) {
591
+ throw 'Missing the required parameter "startWorkday" when calling getGamificationInsightsManagers';
592
+ }
593
+
594
+ return this.apiClient.callApi(
595
+ '/api/v2/gamification/insights/managers',
596
+ 'GET',
597
+ { },
598
+ { 'filterType': filterType,'filterId': filterId,'granularity': granularity,'startWorkday': startWorkday,'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
599
+ { },
600
+ { },
601
+ null,
602
+ ['PureCloud OAuth'],
603
+ ['application/json'],
604
+ ['application/json']
605
+ );
606
+ }
607
+
563
608
  /**
564
609
  * Query users in a profile during a period of time
565
610
  *
@@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi {
5
5
  /**
6
6
  * GeneralDataProtectionRegulation service.
7
7
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
8
- * @version 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class InfrastructureAsCodeApi {
5
5
  /**
6
6
  * InfrastructureAsCode service.
7
7
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
8
- * @version 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.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 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
5
5
  /**
6
6
  * LanguageUnderstanding service.
7
7
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
8
- * @version 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguagesApi {
5
5
  /**
6
6
  * Languages service.
7
7
  * @module purecloud-platform-client-v2/api/LanguagesApi
8
- * @version 234.0.0
8
+ * @version 236.0.0
9
9
  */
10
10
 
11
11
  /**