purecloud-platform-client-v2 208.0.0 → 210.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 (91) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +1514 -138
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1514 -138
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +516 -150
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +697 -259
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +3829 -3147
  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/AgentAssistantsApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +4 -4
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -2
  25. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +175 -0
  27. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +240 -1
  32. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/JourneyApi.js +9 -9
  43. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +7 -3
  44. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +52 -1
  56. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/QualityApi.js +5 -3
  62. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/RoutingApi.js +29 -25
  65. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +910 -0
  71. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +11 -19
  91. 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": "208.0.0",
3
+ "version": "210.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 208.0.0
7
+ * @version 210.0.0
8
8
  */
9
9
  class ApiClient {
10
10
  /**
@@ -5,7 +5,7 @@ class AgentAssistantsApi {
5
5
  /**
6
6
  * AgentAssistants service.
7
7
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
8
- * @version 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -184,7 +184,7 @@ class AnalyticsApi {
184
184
 
185
185
  /**
186
186
  * Get Reporting Turns (division aware).
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.
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. It is expected that the client will URL encode the request URI once only. 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. The nextUri value in the response is already URL encoded (so it doesnt need to be encoded again). Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
188
188
  * @param {String} botFlowId ID of the bot flow.
189
189
  * @param {Object} opts Optional parameters
190
190
  * @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
@@ -219,7 +219,7 @@ class AnalyticsApi {
219
219
 
220
220
  /**
221
221
  * Get Reporting Turns.
222
- * Deprecated: Please use GET /analytics/botflows/{botFlowId}/divisions/reportingturns instead. Returns the reporting turns 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.
222
+ * Deprecated: Please use GET /analytics/botflows/{botFlowId}/divisions/reportingturns instead. Returns the reporting turns 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. It is expected that the client will URL encode the request URI once only. 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. The nextUri value in the response is already URL encoded (so it doesnt need to be encoded again). Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
223
223
  * @param {String} botFlowId ID of the bot flow.
224
224
  * @param {Object} opts Optional parameters
225
225
  * @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
@@ -255,7 +255,7 @@ class AnalyticsApi {
255
255
 
256
256
  /**
257
257
  * Get Bot Flow Sessions.
258
- * Returns the bot flow sessions in reverse chronological order from the date they were created. 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.
258
+ * Returns the bot flow sessions in reverse chronological order from the date they were created. It is expected that the client will URL encode the request URI once only. 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. The nextUri value in the response is already URL encoded (so it doesnt need to be encoded again). Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
259
259
  * @param {String} botFlowId ID of the bot flow.
260
260
  * @param {Object} opts Optional parameters
261
261
  * @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
@@ -5,7 +5,7 @@ class ArchitectApi {
5
5
  /**
6
6
  * Architect service.
7
7
  * @module purecloud-platform-client-v2/api/ArchitectApi
8
- * @version 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -791,7 +791,6 @@ class ConversationsApi {
791
791
  * Get the summaries of the conversation.
792
792
  *
793
793
  * @param {String} conversationId Conversation ID
794
- * getConversationSummaries is a preview method and is subject to both breaking and non-breaking changes at any time without notice
795
794
  */
796
795
  getConversationSummaries(conversationId) {
797
796
  // verify the required parameter 'conversationId' is set
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 208.0.0
8
+ * @version 210.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -0,0 +1,175 @@
1
+ import ApiClient from '../ApiClient.js';
2
+
3
+
4
+ class DataPrivacyApi {
5
+ /**
6
+ * DataPrivacy service.
7
+ * @module purecloud-platform-client-v2/api/DataPrivacyApi
8
+ * @version 210.0.0
9
+ */
10
+
11
+ /**
12
+ * Constructs a new DataPrivacyApi.
13
+ * @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
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 a masking rule.
25
+ *
26
+ * @param {String} ruleId ruleId
27
+ */
28
+ deleteDataprivacyMaskingrule(ruleId) {
29
+ // verify the required parameter 'ruleId' is set
30
+ if (ruleId === undefined || ruleId === null) {
31
+ throw 'Missing the required parameter "ruleId" when calling deleteDataprivacyMaskingrule';
32
+ }
33
+
34
+ return this.apiClient.callApi(
35
+ '/api/v2/dataprivacy/maskingrules/{ruleId}',
36
+ 'DELETE',
37
+ { 'ruleId': ruleId },
38
+ { },
39
+ { },
40
+ { },
41
+ null,
42
+ ['PureCloud OAuth'],
43
+ ['application/json'],
44
+ ['application/json']
45
+ );
46
+ }
47
+
48
+ /**
49
+ * Fetch details about a masking rule.
50
+ *
51
+ * @param {String} ruleId ruleId
52
+ */
53
+ getDataprivacyMaskingrule(ruleId) {
54
+ // verify the required parameter 'ruleId' is set
55
+ if (ruleId === undefined || ruleId === null) {
56
+ throw 'Missing the required parameter "ruleId" when calling getDataprivacyMaskingrule';
57
+ }
58
+
59
+ return this.apiClient.callApi(
60
+ '/api/v2/dataprivacy/maskingrules/{ruleId}',
61
+ 'GET',
62
+ { 'ruleId': ruleId },
63
+ { },
64
+ { },
65
+ { },
66
+ null,
67
+ ['PureCloud OAuth'],
68
+ ['application/json'],
69
+ ['application/json']
70
+ );
71
+ }
72
+
73
+ /**
74
+ * Retrieve the list of masking rules.
75
+ *
76
+ */
77
+ getDataprivacyMaskingrules() {
78
+
79
+ return this.apiClient.callApi(
80
+ '/api/v2/dataprivacy/maskingrules',
81
+ 'GET',
82
+ { },
83
+ { },
84
+ { },
85
+ { },
86
+ null,
87
+ ['PureCloud OAuth'],
88
+ ['application/json'],
89
+ ['application/json']
90
+ );
91
+ }
92
+
93
+ /**
94
+ * Update information about a masking rule.
95
+ *
96
+ * @param {String} ruleId ruleId
97
+ * @param {Object} opts Optional parameters
98
+ * @param {Object} opts.body
99
+ */
100
+ patchDataprivacyMaskingrule(ruleId, opts) {
101
+ opts = opts || {};
102
+
103
+ // verify the required parameter 'ruleId' is set
104
+ if (ruleId === undefined || ruleId === null) {
105
+ throw 'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';
106
+ }
107
+
108
+ return this.apiClient.callApi(
109
+ '/api/v2/dataprivacy/maskingrules/{ruleId}',
110
+ 'PATCH',
111
+ { 'ruleId': ruleId },
112
+ { },
113
+ { },
114
+ { },
115
+ opts['body'],
116
+ ['PureCloud OAuth'],
117
+ ['application/json'],
118
+ ['application/json']
119
+ );
120
+ }
121
+
122
+ /**
123
+ * Create a new masking rule resource.
124
+ *
125
+ * @param {Object} body Details for creating masking rule resource
126
+ */
127
+ postDataprivacyMaskingrules(body) {
128
+ // verify the required parameter 'body' is set
129
+ if (body === undefined || body === null) {
130
+ throw 'Missing the required parameter "body" when calling postDataprivacyMaskingrules';
131
+ }
132
+
133
+ return this.apiClient.callApi(
134
+ '/api/v2/dataprivacy/maskingrules',
135
+ 'POST',
136
+ { },
137
+ { },
138
+ { },
139
+ { },
140
+ body,
141
+ ['PureCloud OAuth'],
142
+ ['application/json'],
143
+ ['application/json']
144
+ );
145
+ }
146
+
147
+ /**
148
+ * Validate masking before creating.
149
+ *
150
+ * @param {Object} body Text to be masked
151
+ */
152
+ postDataprivacyMaskingrulesValidate(body) {
153
+ // verify the required parameter 'body' is set
154
+ if (body === undefined || body === null) {
155
+ throw 'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';
156
+ }
157
+
158
+ return this.apiClient.callApi(
159
+ '/api/v2/dataprivacy/maskingrules/validate',
160
+ 'POST',
161
+ { },
162
+ { },
163
+ { },
164
+ { },
165
+ body,
166
+ ['PureCloud OAuth'],
167
+ ['application/json'],
168
+ ['application/json']
169
+ );
170
+ }
171
+
172
+ }
173
+
174
+
175
+ export default DataPrivacyApi;
@@ -5,7 +5,7 @@ class DownloadsApi {
5
5
  /**
6
6
  * Downloads service.
7
7
  * @module purecloud-platform-client-v2/api/DownloadsApi
8
- * @version 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.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 208.0.0
8
+ * @version 210.0.0
9
9
  */
10
10
 
11
11
  /**