purecloud-platform-client-v2 193.0.0 → 195.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 (85) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +748 -406
  3. package/dist/web-amd/purecloud-platform-client-v2.js +748 -406
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +253 -180
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +253 -180
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +537 -453
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +4 -1
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +147 -3
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +30 -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/CarrierServicesApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +26 -316
  22. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +7 -7
  27. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +3 -2
  39. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/LearningApi.js +174 -1
  42. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/OutboundApi.js +125 -1
  54. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -7
  60. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +165 -1
  66. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  85. 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": "193.0.0",
3
+ "version": "195.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 193.0.0
7
+ * @version 195.0.0
8
8
  */
9
9
  class ApiClient {
10
10
  /**
@@ -1079,6 +1079,9 @@ class ApiClient {
1079
1079
  if (param instanceof Date) {
1080
1080
  return param.toJSON();
1081
1081
  }
1082
+ if (param instanceof Boolean) {
1083
+ return param.toString().toLowerCase();
1084
+ }
1082
1085
  return param.toString();
1083
1086
  }
1084
1087
 
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 193.0.0
8
+ * @version 195.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 193.0.0
8
+ * @version 195.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -126,6 +126,62 @@ class AnalyticsApi {
126
126
  );
127
127
  }
128
128
 
129
+ /**
130
+ * Get status for async query for agent copilot aggregates
131
+ *
132
+ * @param {String} jobId jobId
133
+ * getAnalyticsAgentcopilotsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
134
+ */
135
+ getAnalyticsAgentcopilotsAggregatesJob(jobId) {
136
+ // verify the required parameter 'jobId' is set
137
+ if (jobId === undefined || jobId === null) {
138
+ throw 'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJob';
139
+ }
140
+
141
+ return this.apiClient.callApi(
142
+ '/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}',
143
+ 'GET',
144
+ { 'jobId': jobId },
145
+ { },
146
+ { },
147
+ { },
148
+ null,
149
+ ['PureCloud OAuth'],
150
+ ['application/json'],
151
+ ['application/json']
152
+ );
153
+ }
154
+
155
+ /**
156
+ * Fetch a page of results for an async aggregates query
157
+ *
158
+ * @param {String} jobId jobId
159
+ * @param {Object} opts Optional parameters
160
+ * @param {String} opts.cursor Cursor token to retrieve next page
161
+ * getAnalyticsAgentcopilotsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
162
+ */
163
+ getAnalyticsAgentcopilotsAggregatesJobResults(jobId, opts) {
164
+ opts = opts || {};
165
+
166
+ // verify the required parameter 'jobId' is set
167
+ if (jobId === undefined || jobId === null) {
168
+ throw 'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJobResults';
169
+ }
170
+
171
+ return this.apiClient.callApi(
172
+ '/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results',
173
+ 'GET',
174
+ { 'jobId': jobId },
175
+ { 'cursor': opts['cursor'] },
176
+ { },
177
+ { },
178
+ null,
179
+ ['PureCloud OAuth'],
180
+ ['application/json'],
181
+ ['application/json']
182
+ );
183
+ }
184
+
129
185
  /**
130
186
  * Get Reporting Turns (division aware).
131
187
  * Returns the reporting turns for the specified flow, filtered by the clients divisions and grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
@@ -884,6 +940,42 @@ class AnalyticsApi {
884
940
  );
885
941
  }
886
942
 
943
+ /**
944
+ * Get list of dashboard configurations
945
+ *
946
+ * @param {Object} dashboardType List dashboard of given type
947
+ * @param {Object} dashboardAccessFilter Filter dashboard based on the owner of dashboard
948
+ * @param {Object} opts Optional parameters
949
+ * @param {String} opts.sortBy (default to desc)
950
+ * @param {Number} opts.pageNumber (default to 1)
951
+ * @param {Number} opts.pageSize (default to 9)
952
+ */
953
+ getAnalyticsReportingSettingsDashboardsQuery(dashboardType, dashboardAccessFilter, opts) {
954
+ opts = opts || {};
955
+
956
+ // verify the required parameter 'dashboardType' is set
957
+ if (dashboardType === undefined || dashboardType === null) {
958
+ throw 'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';
959
+ }
960
+ // verify the required parameter 'dashboardAccessFilter' is set
961
+ if (dashboardAccessFilter === undefined || dashboardAccessFilter === null) {
962
+ throw 'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';
963
+ }
964
+
965
+ return this.apiClient.callApi(
966
+ '/api/v2/analytics/reporting/settings/dashboards/query',
967
+ 'GET',
968
+ { },
969
+ { 'dashboardType': dashboardType,'dashboardAccessFilter': dashboardAccessFilter,'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
970
+ { },
971
+ { },
972
+ null,
973
+ ['PureCloud OAuth'],
974
+ ['application/json'],
975
+ ['application/json']
976
+ );
977
+ }
978
+
887
979
  /**
888
980
  * Get list of dashboards for an user
889
981
  *
@@ -1349,6 +1441,58 @@ class AnalyticsApi {
1349
1441
  );
1350
1442
  }
1351
1443
 
1444
+ /**
1445
+ * Query for agent copilot aggregates asynchronously
1446
+ *
1447
+ * @param {Object} body query
1448
+ * postAnalyticsAgentcopilotsAggregatesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1449
+ */
1450
+ postAnalyticsAgentcopilotsAggregatesJobs(body) {
1451
+ // verify the required parameter 'body' is set
1452
+ if (body === undefined || body === null) {
1453
+ throw 'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesJobs';
1454
+ }
1455
+
1456
+ return this.apiClient.callApi(
1457
+ '/api/v2/analytics/agentcopilots/aggregates/jobs',
1458
+ 'POST',
1459
+ { },
1460
+ { },
1461
+ { },
1462
+ { },
1463
+ body,
1464
+ ['PureCloud OAuth'],
1465
+ ['application/json'],
1466
+ ['application/json']
1467
+ );
1468
+ }
1469
+
1470
+ /**
1471
+ * Query for agent copilot aggregates
1472
+ *
1473
+ * @param {Object} body query
1474
+ * postAnalyticsAgentcopilotsAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1475
+ */
1476
+ postAnalyticsAgentcopilotsAggregatesQuery(body) {
1477
+ // verify the required parameter 'body' is set
1478
+ if (body === undefined || body === null) {
1479
+ throw 'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesQuery';
1480
+ }
1481
+
1482
+ return this.apiClient.callApi(
1483
+ '/api/v2/analytics/agentcopilots/aggregates/query',
1484
+ 'POST',
1485
+ { },
1486
+ { },
1487
+ { },
1488
+ { },
1489
+ body,
1490
+ ['PureCloud OAuth'],
1491
+ ['application/json'],
1492
+ ['application/json']
1493
+ );
1494
+ }
1495
+
1352
1496
  /**
1353
1497
  * Query for bot aggregates asynchronously
1354
1498
  *
@@ -1922,8 +2066,8 @@ class AnalyticsApi {
1922
2066
  }
1923
2067
 
1924
2068
  /**
1925
- * Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded
1926
- *
2069
+ * Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded. Not a source of truth for limits hit but a best effort estimate.
2070
+ * The max property can be used to determine estimated rate limit value hit.
1927
2071
  * @param {Object} body query
1928
2072
  */
1929
2073
  postAnalyticsRatelimitsAggregatesQuery(body) {
@@ -5,7 +5,7 @@ class ArchitectApi {
5
5
  /**
6
6
  * Architect service.
7
7
  * @module purecloud-platform-client-v2/api/ArchitectApi
8
- * @version 193.0.0
8
+ * @version 195.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 193.0.0
8
+ * @version 195.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -170,6 +170,35 @@ class AuditApi {
170
170
  );
171
171
  }
172
172
 
173
+ /**
174
+ * Often a single action results in multiple audits. The endpoint retrieves all audits created by the same action as the given audit id.
175
+ *
176
+ * @param {Object} body query
177
+ * @param {Object} opts Optional parameters
178
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand
179
+ */
180
+ postAuditsQueryRealtimeRelated(body, opts) {
181
+ opts = opts || {};
182
+
183
+ // verify the required parameter 'body' is set
184
+ if (body === undefined || body === null) {
185
+ throw 'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';
186
+ }
187
+
188
+ return this.apiClient.callApi(
189
+ '/api/v2/audits/query/realtime/related',
190
+ 'POST',
191
+ { },
192
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
193
+ { },
194
+ { },
195
+ body,
196
+ ['PureCloud OAuth'],
197
+ ['application/json'],
198
+ ['application/json']
199
+ );
200
+ }
201
+
173
202
  }
174
203
 
175
204
 
@@ -5,7 +5,7 @@ class AuthorizationApi {
5
5
  /**
6
6
  * Authorization service.
7
7
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8
- * @version 193.0.0
8
+ * @version 195.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 193.0.0
8
+ * @version 195.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 193.0.0
8
+ * @version 195.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 193.0.0
8
+ * @version 195.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 193.0.0
8
+ * @version 195.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 193.0.0
8
+ * @version 195.0.0
9
9
  */
10
10
 
11
11
  /**