purecloud-platform-client-v2 188.0.0 → 188.1.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 +426 -83
  3. package/dist/web-amd/purecloud-platform-client-v2.js +426 -83
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +166 -84
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +224 -152
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +300 -3
  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/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -2
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -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 +1 -1
  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 +5 -5
  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 +187 -1
  38. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +161 -1
  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 +1 -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 +1 -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 -1
  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 +1 -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 -3
  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
@@ -5,7 +5,7 @@ class ContentManagementApi {
5
5
  /**
6
6
  * ContentManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8
- * @version 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -866,7 +866,7 @@ class ExternalContactsApi {
866
866
  * Scan for external contacts using paging
867
867
  *
868
868
  * @param {Object} opts Optional parameters
869
- * @param {Number} opts.limit The number of contacts per page; must be between 10 and 200, default is 100)
869
+ * @param {Number} opts.limit The number of contacts per page; must be between 10 and 200, default is 100
870
870
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
871
871
  */
872
872
  getExternalcontactsScanContacts(opts) {
@@ -891,7 +891,7 @@ class ExternalContactsApi {
891
891
  * Scan for notes using paging
892
892
  *
893
893
  * @param {Object} opts Optional parameters
894
- * @param {Number} opts.limit The number of notes per page; must be between 10 and 200, default is 100)
894
+ * @param {Number} opts.limit The number of notes per page; must be between 10 and 200, default is 100
895
895
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
896
896
  */
897
897
  getExternalcontactsScanNotes(opts) {
@@ -916,7 +916,7 @@ class ExternalContactsApi {
916
916
  * Scan for external organizations using paging
917
917
  *
918
918
  * @param {Object} opts Optional parameters
919
- * @param {Number} opts.limit The number of organizations per page; must be between 10 and 200, default is 100)
919
+ * @param {Number} opts.limit The number of organizations per page; must be between 10 and 200, default is 100
920
920
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
921
921
  */
922
922
  getExternalcontactsScanOrganizations(opts) {
@@ -941,7 +941,7 @@ class ExternalContactsApi {
941
941
  * Scan for relationships
942
942
  *
943
943
  * @param {Object} opts Optional parameters
944
- * @param {Number} opts.limit The number of relationships per page; must be between 10 and 200, default is 100)
944
+ * @param {Number} opts.limit The number of relationships per page; must be between 10 and 200, default is 100
945
945
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
946
946
  */
947
947
  getExternalcontactsScanRelationships(opts) {
@@ -5,7 +5,7 @@ class FaxApi {
5
5
  /**
6
6
  * Fax service.
7
7
  * @module purecloud-platform-client-v2/api/FaxApi
8
- * @version 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi {
5
5
  /**
6
6
  * GeneralDataProtectionRegulation service.
7
7
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
8
- * @version 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -149,6 +149,32 @@ class JourneyApi {
149
149
  );
150
150
  }
151
151
 
152
+ /**
153
+ * Delete a Journey View by ID
154
+ * deletes all versions
155
+ * @param {String} viewId viewId
156
+ * deleteJourneyView is a preview method and is subject to both breaking and non-breaking changes at any time without notice
157
+ */
158
+ deleteJourneyView(viewId) {
159
+ // verify the required parameter 'viewId' is set
160
+ if (viewId === undefined || viewId === null) {
161
+ throw 'Missing the required parameter "viewId" when calling deleteJourneyView';
162
+ }
163
+
164
+ return this.apiClient.callApi(
165
+ '/api/v2/journey/views/{viewId}',
166
+ 'DELETE',
167
+ { 'viewId': viewId },
168
+ { },
169
+ { },
170
+ { },
171
+ null,
172
+ ['PureCloud OAuth'],
173
+ ['application/json'],
174
+ ['application/json']
175
+ );
176
+ }
177
+
152
178
  /**
153
179
  * Get status for async query for journey aggregates
154
180
  *
@@ -772,6 +798,84 @@ class JourneyApi {
772
798
  );
773
799
  }
774
800
 
801
+ /**
802
+ * Get a Journey View by ID
803
+ * returns the latest version
804
+ * @param {String} viewId viewId
805
+ * getJourneyView is a preview method and is subject to both breaking and non-breaking changes at any time without notice
806
+ */
807
+ getJourneyView(viewId) {
808
+ // verify the required parameter 'viewId' is set
809
+ if (viewId === undefined || viewId === null) {
810
+ throw 'Missing the required parameter "viewId" when calling getJourneyView';
811
+ }
812
+
813
+ return this.apiClient.callApi(
814
+ '/api/v2/journey/views/{viewId}',
815
+ 'GET',
816
+ { 'viewId': viewId },
817
+ { },
818
+ { },
819
+ { },
820
+ null,
821
+ ['PureCloud OAuth'],
822
+ ['application/json'],
823
+ ['application/json']
824
+ );
825
+ }
826
+
827
+ /**
828
+ * Get a Journey View by ID and version
829
+ *
830
+ * @param {String} viewId viewId
831
+ * @param {String} versionId versionId
832
+ * getJourneyViewVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
833
+ */
834
+ getJourneyViewVersion(viewId, versionId) {
835
+ // verify the required parameter 'viewId' is set
836
+ if (viewId === undefined || viewId === null) {
837
+ throw 'Missing the required parameter "viewId" when calling getJourneyViewVersion';
838
+ }
839
+ // verify the required parameter 'versionId' is set
840
+ if (versionId === undefined || versionId === null) {
841
+ throw 'Missing the required parameter "versionId" when calling getJourneyViewVersion';
842
+ }
843
+
844
+ return this.apiClient.callApi(
845
+ '/api/v2/journey/views/{viewId}/versions/{versionId}',
846
+ 'GET',
847
+ { 'viewId': viewId,'versionId': versionId },
848
+ { },
849
+ { },
850
+ { },
851
+ null,
852
+ ['PureCloud OAuth'],
853
+ ['application/json'],
854
+ ['application/json']
855
+ );
856
+ }
857
+
858
+ /**
859
+ * Get a list of Journey Views
860
+ *
861
+ * getJourneyViews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
862
+ */
863
+ getJourneyViews() {
864
+
865
+ return this.apiClient.callApi(
866
+ '/api/v2/journey/views',
867
+ 'GET',
868
+ { },
869
+ { },
870
+ { },
871
+ { },
872
+ null,
873
+ ['PureCloud OAuth'],
874
+ ['application/json'],
875
+ ['application/json']
876
+ );
877
+ }
878
+
775
879
  /**
776
880
  * Update single action map.
777
881
  *
@@ -1100,6 +1204,31 @@ class JourneyApi {
1100
1204
  );
1101
1205
  }
1102
1206
 
1207
+ /**
1208
+ * Query for flow paths.
1209
+ *
1210
+ * @param {Object} opts Optional parameters
1211
+ * @param {Object} opts.body
1212
+ * postJourneyFlowsPathsQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1213
+ */
1214
+ postJourneyFlowsPathsQuery(opts) {
1215
+ opts = opts || {};
1216
+
1217
+
1218
+ return this.apiClient.callApi(
1219
+ '/api/v2/journey/flows/paths/query',
1220
+ 'POST',
1221
+ { },
1222
+ { },
1223
+ { },
1224
+ { },
1225
+ opts['body'],
1226
+ ['PureCloud OAuth'],
1227
+ ['application/json'],
1228
+ ['application/json']
1229
+ );
1230
+ }
1231
+
1103
1232
  /**
1104
1233
  * Create an outcome.
1105
1234
  *
@@ -1197,6 +1326,63 @@ class JourneyApi {
1197
1326
  );
1198
1327
  }
1199
1328
 
1329
+ /**
1330
+ * Update a Journey View by ID
1331
+ * creates a new version
1332
+ * @param {String} viewId viewId
1333
+ * @param {Object} body JourneyView
1334
+ * postJourneyViewVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1335
+ */
1336
+ postJourneyViewVersions(viewId, body) {
1337
+ // verify the required parameter 'viewId' is set
1338
+ if (viewId === undefined || viewId === null) {
1339
+ throw 'Missing the required parameter "viewId" when calling postJourneyViewVersions';
1340
+ }
1341
+ // verify the required parameter 'body' is set
1342
+ if (body === undefined || body === null) {
1343
+ throw 'Missing the required parameter "body" when calling postJourneyViewVersions';
1344
+ }
1345
+
1346
+ return this.apiClient.callApi(
1347
+ '/api/v2/journey/views/{viewId}/versions',
1348
+ 'POST',
1349
+ { 'viewId': viewId },
1350
+ { },
1351
+ { },
1352
+ { },
1353
+ body,
1354
+ ['PureCloud OAuth'],
1355
+ ['application/json'],
1356
+ ['application/json']
1357
+ );
1358
+ }
1359
+
1360
+ /**
1361
+ * Create a new Journey View
1362
+ *
1363
+ * @param {Object} body JourneyView
1364
+ * postJourneyViews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1365
+ */
1366
+ postJourneyViews(body) {
1367
+ // verify the required parameter 'body' is set
1368
+ if (body === undefined || body === null) {
1369
+ throw 'Missing the required parameter "body" when calling postJourneyViews';
1370
+ }
1371
+
1372
+ return this.apiClient.callApi(
1373
+ '/api/v2/journey/views',
1374
+ 'POST',
1375
+ { },
1376
+ { },
1377
+ { },
1378
+ { },
1379
+ body,
1380
+ ['PureCloud OAuth'],
1381
+ ['application/json'],
1382
+ ['application/json']
1383
+ );
1384
+ }
1385
+
1200
1386
  }
1201
1387
 
1202
1388
 
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 188.0.0
8
+ * @version 188.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -2154,6 +2154,40 @@ class KnowledgeApi {
2154
2154
  );
2155
2155
  }
2156
2156
 
2157
+ /**
2158
+ * Indicate that the document was copied by the user.
2159
+ *
2160
+ * @param {String} sessionId Knowledge guest session ID.
2161
+ * @param {String} documentId Document ID
2162
+ * @param {Object} opts Optional parameters
2163
+ * @param {Object} opts.body
2164
+ */
2165
+ postKnowledgeGuestSessionDocumentCopies(sessionId, documentId, opts) {
2166
+ opts = opts || {};
2167
+
2168
+ // verify the required parameter 'sessionId' is set
2169
+ if (sessionId === undefined || sessionId === null) {
2170
+ throw 'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentCopies';
2171
+ }
2172
+ // verify the required parameter 'documentId' is set
2173
+ if (documentId === undefined || documentId === null) {
2174
+ throw 'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentCopies';
2175
+ }
2176
+
2177
+ return this.apiClient.callApi(
2178
+ '/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/copies',
2179
+ 'POST',
2180
+ { 'sessionId': sessionId,'documentId': documentId },
2181
+ { },
2182
+ { },
2183
+ { },
2184
+ opts['body'],
2185
+ ['PureCloud OAuth'],
2186
+ ['application/json'],
2187
+ ['application/json']
2188
+ );
2189
+ }
2190
+
2157
2191
  /**
2158
2192
  * Give feedback on a document
2159
2193
  *
@@ -2188,6 +2222,69 @@ class KnowledgeApi {
2188
2222
  );
2189
2223
  }
2190
2224
 
2225
+ /**
2226
+ * Create view event for a document.
2227
+ *
2228
+ * @param {String} sessionId Knowledge guest session ID.
2229
+ * @param {String} documentId Document ID
2230
+ * @param {Object} opts Optional parameters
2231
+ * @param {Object} opts.body
2232
+ */
2233
+ postKnowledgeGuestSessionDocumentViews(sessionId, documentId, opts) {
2234
+ opts = opts || {};
2235
+
2236
+ // verify the required parameter 'sessionId' is set
2237
+ if (sessionId === undefined || sessionId === null) {
2238
+ throw 'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';
2239
+ }
2240
+ // verify the required parameter 'documentId' is set
2241
+ if (documentId === undefined || documentId === null) {
2242
+ throw 'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentViews';
2243
+ }
2244
+
2245
+ return this.apiClient.callApi(
2246
+ '/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/views',
2247
+ 'POST',
2248
+ { 'sessionId': sessionId,'documentId': documentId },
2249
+ { },
2250
+ { },
2251
+ { },
2252
+ opts['body'],
2253
+ ['PureCloud OAuth'],
2254
+ ['application/json'],
2255
+ ['application/json']
2256
+ );
2257
+ }
2258
+
2259
+ /**
2260
+ * Indicate that documents were presented to the user.
2261
+ *
2262
+ * @param {String} sessionId Knowledge guest session ID.
2263
+ * @param {Object} opts Optional parameters
2264
+ * @param {Object} opts.body
2265
+ */
2266
+ postKnowledgeGuestSessionDocumentsPresentations(sessionId, opts) {
2267
+ opts = opts || {};
2268
+
2269
+ // verify the required parameter 'sessionId' is set
2270
+ if (sessionId === undefined || sessionId === null) {
2271
+ throw 'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsPresentations';
2272
+ }
2273
+
2274
+ return this.apiClient.callApi(
2275
+ '/api/v2/knowledge/guest/sessions/{sessionId}/documents/presentations',
2276
+ 'POST',
2277
+ { 'sessionId': sessionId },
2278
+ { },
2279
+ { },
2280
+ { },
2281
+ opts['body'],
2282
+ ['PureCloud OAuth'],
2283
+ ['application/json'],
2284
+ ['application/json']
2285
+ );
2286
+ }
2287
+
2191
2288
  /**
2192
2289
  * Search the documents in a guest session.
2193
2290
  *
@@ -2302,6 +2399,40 @@ class KnowledgeApi {
2302
2399
  );
2303
2400
  }
2304
2401
 
2402
+ /**
2403
+ * Indicate that the document was copied by the user.
2404
+ *
2405
+ * @param {String} knowledgeBaseId Knowledge base ID.
2406
+ * @param {String} documentId Document ID.
2407
+ * @param {Object} opts Optional parameters
2408
+ * @param {Object} opts.body
2409
+ */
2410
+ postKnowledgeKnowledgebaseDocumentCopies(knowledgeBaseId, documentId, opts) {
2411
+ opts = opts || {};
2412
+
2413
+ // verify the required parameter 'knowledgeBaseId' is set
2414
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
2415
+ throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentCopies';
2416
+ }
2417
+ // verify the required parameter 'documentId' is set
2418
+ if (documentId === undefined || documentId === null) {
2419
+ throw 'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentCopies';
2420
+ }
2421
+
2422
+ return this.apiClient.callApi(
2423
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/copies',
2424
+ 'POST',
2425
+ { 'knowledgeBaseId': knowledgeBaseId,'documentId': documentId },
2426
+ { },
2427
+ { },
2428
+ { },
2429
+ opts['body'],
2430
+ ['PureCloud OAuth'],
2431
+ ['application/json'],
2432
+ ['application/json']
2433
+ );
2434
+ }
2435
+
2305
2436
  /**
2306
2437
  * Give feedback on a document
2307
2438
  *
@@ -2532,6 +2663,35 @@ class KnowledgeApi {
2532
2663
  );
2533
2664
  }
2534
2665
 
2666
+ /**
2667
+ * Indicate that documents were presented to the user.
2668
+ *
2669
+ * @param {String} knowledgeBaseId Knowledge base ID.
2670
+ * @param {Object} opts Optional parameters
2671
+ * @param {Object} opts.body
2672
+ */
2673
+ postKnowledgeKnowledgebaseDocumentsPresentations(knowledgeBaseId, opts) {
2674
+ opts = opts || {};
2675
+
2676
+ // verify the required parameter 'knowledgeBaseId' is set
2677
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
2678
+ throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsPresentations';
2679
+ }
2680
+
2681
+ return this.apiClient.callApi(
2682
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/presentations',
2683
+ 'POST',
2684
+ { 'knowledgeBaseId': knowledgeBaseId },
2685
+ { },
2686
+ { },
2687
+ { },
2688
+ opts['body'],
2689
+ ['PureCloud OAuth'],
2690
+ ['application/json'],
2691
+ ['application/json']
2692
+ );
2693
+ }
2694
+
2535
2695
  /**
2536
2696
  * Search the documents in a knowledge base.
2537
2697
  *
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
5
5
  /**
6
6
  * LanguageUnderstanding service.
7
7
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
8
- * @version 188.0.0
8
+ * @version 188.1.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 188.0.0
8
+ * @version 188.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LearningApi {
5
5
  /**
6
6
  * Learning service.
7
7
  * @module purecloud-platform-client-v2/api/LearningApi
8
- * @version 188.0.0
8
+ * @version 188.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LicenseApi {
5
5
  /**
6
6
  * License service.
7
7
  * @module purecloud-platform-client-v2/api/LicenseApi
8
- * @version 188.0.0
8
+ * @version 188.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LocationsApi {
5
5
  /**
6
6
  * Locations service.
7
7
  * @module purecloud-platform-client-v2/api/LocationsApi
8
- * @version 188.0.0
8
+ * @version 188.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LogCaptureApi {
5
5
  /**
6
6
  * LogCapture service.
7
7
  * @module purecloud-platform-client-v2/api/LogCaptureApi
8
- * @version 188.0.0
8
+ * @version 188.1.0
9
9
  */
10
10
 
11
11
  /**