purecloud-platform-client-v2 190.0.0 → 192.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 +654 -173
  3. package/dist/web-amd/purecloud-platform-client-v2.js +654 -173
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +419 -288
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +467 -323
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +846 -290
  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 +162 -1
  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 +13 -5
  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 +127 -39
  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 +50 -16
  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 +1 -1
  27. package/src/purecloud-platform-client-v2/api/FaxApi.js +45 -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 +3 -2
  37. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +22 -1
  40. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -2
  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 +4 -3
  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 +3 -3
  57. package/src/purecloud-platform-client-v2/api/RecordingApi.js +3 -2
  58. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +26 -1
  59. package/src/purecloud-platform-client-v2/api/RoutingApi.js +27 -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 +2 -2
  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 +79 -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 -22
  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 +11 -6
  76. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/UsersApi.js +13 -5
  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 +5 -3
  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": "190.0.0",
3
+ "version": "192.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 190.0.0
7
+ * @version 192.0.0
8
8
  */
9
9
  class ApiClient {
10
10
  /**
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 190.0.0
8
+ * @version 192.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 190.0.0
8
+ * @version 192.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -755,6 +755,59 @@ class AnalyticsApi {
755
755
  );
756
756
  }
757
757
 
758
+ /**
759
+ * Get dashboards summary for a user
760
+ *
761
+ * @param {String} userId User ID
762
+ */
763
+ getAnalyticsReportingDashboardsUser(userId) {
764
+ // verify the required parameter 'userId' is set
765
+ if (userId === undefined || userId === null) {
766
+ throw 'Missing the required parameter "userId" when calling getAnalyticsReportingDashboardsUser';
767
+ }
768
+
769
+ return this.apiClient.callApi(
770
+ '/api/v2/analytics/reporting/dashboards/users/{userId}',
771
+ 'GET',
772
+ { 'userId': userId },
773
+ { },
774
+ { },
775
+ { },
776
+ null,
777
+ ['PureCloud OAuth'],
778
+ ['application/json'],
779
+ ['application/json']
780
+ );
781
+ }
782
+
783
+ /**
784
+ * Get dashboards summary for users in a org
785
+ *
786
+ * @param {Object} opts Optional parameters
787
+ * @param {String} opts.sortBy (default to asc)
788
+ * @param {Number} opts.pageNumber (default to 1)
789
+ * @param {Number} opts.pageSize (default to 25)
790
+ * @param {Array.<String>} opts.id A list of user IDs to fetch by bulk
791
+ * @param {Object} opts.state Only list users of this state
792
+ */
793
+ getAnalyticsReportingDashboardsUsers(opts) {
794
+ opts = opts || {};
795
+
796
+
797
+ return this.apiClient.callApi(
798
+ '/api/v2/analytics/reporting/dashboards/users',
799
+ 'GET',
800
+ { },
801
+ { 'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),'state': opts['state'] },
802
+ { },
803
+ { },
804
+ null,
805
+ ['PureCloud OAuth'],
806
+ ['application/json'],
807
+ ['application/json']
808
+ );
809
+ }
810
+
758
811
  /**
759
812
  * Get all view export requests for a user
760
813
  *
@@ -1030,6 +1083,39 @@ class AnalyticsApi {
1030
1083
  );
1031
1084
  }
1032
1085
 
1086
+ /**
1087
+ * Get list of dashboards for an user
1088
+ *
1089
+ * @param {String} userId User ID
1090
+ * @param {Object} opts Optional parameters
1091
+ * @param {String} opts.sortBy (default to asc)
1092
+ * @param {Number} opts.pageNumber (default to 1)
1093
+ * @param {Number} opts.pageSize (default to 50)
1094
+ * @param {Boolean} opts.publicOnly If true, retrieve only public dashboards
1095
+ * @param {Boolean} opts.favoriteOnly If true, retrieve only favorite dashboards
1096
+ */
1097
+ getAnalyticsReportingSettingsUserDashboards(userId, opts) {
1098
+ opts = opts || {};
1099
+
1100
+ // verify the required parameter 'userId' is set
1101
+ if (userId === undefined || userId === null) {
1102
+ throw 'Missing the required parameter "userId" when calling getAnalyticsReportingSettingsUserDashboards';
1103
+ }
1104
+
1105
+ return this.apiClient.callApi(
1106
+ '/api/v2/analytics/reporting/settings/users/{userId}/dashboards',
1107
+ 'GET',
1108
+ { 'userId': userId },
1109
+ { 'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'publicOnly': opts['publicOnly'],'favoriteOnly': opts['favoriteOnly'] },
1110
+ { },
1111
+ { },
1112
+ null,
1113
+ ['PureCloud OAuth'],
1114
+ ['application/json'],
1115
+ ['application/json']
1116
+ );
1117
+ }
1118
+
1033
1119
  /**
1034
1120
  * Get a list of report time periods.
1035
1121
  *
@@ -2080,6 +2166,31 @@ class AnalyticsApi {
2080
2166
  );
2081
2167
  }
2082
2168
 
2169
+ /**
2170
+ * Bulk delete dashboards owned by other user(s)
2171
+ *
2172
+ * @param {Array.<String>} body List of userIds
2173
+ */
2174
+ postAnalyticsReportingDashboardsUsersBulkRemove(body) {
2175
+ // verify the required parameter 'body' is set
2176
+ if (body === undefined || body === null) {
2177
+ throw 'Missing the required parameter "body" when calling postAnalyticsReportingDashboardsUsersBulkRemove';
2178
+ }
2179
+
2180
+ return this.apiClient.callApi(
2181
+ '/api/v2/analytics/reporting/dashboards/users/bulk/remove',
2182
+ 'POST',
2183
+ { },
2184
+ { },
2185
+ { },
2186
+ { },
2187
+ body,
2188
+ ['PureCloud OAuth'],
2189
+ ['application/json'],
2190
+ ['application/json']
2191
+ );
2192
+ }
2193
+
2083
2194
  /**
2084
2195
  * Generate a view export request
2085
2196
  * This API creates a reporting export but the desired way to export analytics data is to use the analytics query APIs instead
@@ -2157,6 +2268,56 @@ class AnalyticsApi {
2157
2268
  );
2158
2269
  }
2159
2270
 
2271
+ /**
2272
+ * Bulk remove dashboard configurations
2273
+ *
2274
+ * @param {Object} body
2275
+ */
2276
+ postAnalyticsReportingSettingsDashboardsBulkRemove(body) {
2277
+ // verify the required parameter 'body' is set
2278
+ if (body === undefined || body === null) {
2279
+ throw 'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsBulkRemove';
2280
+ }
2281
+
2282
+ return this.apiClient.callApi(
2283
+ '/api/v2/analytics/reporting/settings/dashboards/bulk/remove',
2284
+ 'POST',
2285
+ { },
2286
+ { },
2287
+ { },
2288
+ { },
2289
+ body,
2290
+ ['PureCloud OAuth'],
2291
+ ['application/json'],
2292
+ ['application/json']
2293
+ );
2294
+ }
2295
+
2296
+ /**
2297
+ * Query dashboard configurations
2298
+ *
2299
+ * @param {Object} body
2300
+ */
2301
+ postAnalyticsReportingSettingsDashboardsQuery(body) {
2302
+ // verify the required parameter 'body' is set
2303
+ if (body === undefined || body === null) {
2304
+ throw 'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsQuery';
2305
+ }
2306
+
2307
+ return this.apiClient.callApi(
2308
+ '/api/v2/analytics/reporting/settings/dashboards/query',
2309
+ 'POST',
2310
+ { },
2311
+ { },
2312
+ { },
2313
+ { },
2314
+ body,
2315
+ ['PureCloud OAuth'],
2316
+ ['application/json'],
2317
+ ['application/json']
2318
+ );
2319
+ }
2320
+
2160
2321
  /**
2161
2322
  * Query for resolution aggregates asynchronously
2162
2323
  *
@@ -5,7 +5,7 @@ class ArchitectApi {
5
5
  /**
6
6
  * Architect service.
7
7
  * @module purecloud-platform-client-v2/api/ArchitectApi
8
- * @version 190.0.0
8
+ * @version 192.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 190.0.0
8
+ * @version 192.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 190.0.0
8
+ * @version 192.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -565,8 +565,12 @@ class AuthorizationApi {
565
565
  * Returns a listing of roles and permissions for a user.
566
566
  *
567
567
  * @param {String} subjectId Subject ID (user or group)
568
+ * @param {Object} opts Optional parameters
569
+ * @param {Object} opts.includeDuplicates Include multiple entries with the same role and division but different subjects (default to false)
568
570
  */
569
- getAuthorizationSubject(subjectId) {
571
+ getAuthorizationSubject(subjectId, opts) {
572
+ opts = opts || {};
573
+
570
574
  // verify the required parameter 'subjectId' is set
571
575
  if (subjectId === undefined || subjectId === null) {
572
576
  throw 'Missing the required parameter "subjectId" when calling getAuthorizationSubject';
@@ -576,7 +580,7 @@ class AuthorizationApi {
576
580
  '/api/v2/authorization/subjects/{subjectId}',
577
581
  'GET',
578
582
  { 'subjectId': subjectId },
579
- { },
583
+ { 'includeDuplicates': opts['includeDuplicates'] },
580
584
  { },
581
585
  { },
582
586
  null,
@@ -589,14 +593,18 @@ class AuthorizationApi {
589
593
  /**
590
594
  * Returns a listing of roles and permissions for the currently authenticated user.
591
595
  *
596
+ * @param {Object} opts Optional parameters
597
+ * @param {Object} opts.includeDuplicates Include multiple entries with the same role and division but different subjects (default to false)
592
598
  */
593
- getAuthorizationSubjectsMe() {
599
+ getAuthorizationSubjectsMe(opts) {
600
+ opts = opts || {};
601
+
594
602
 
595
603
  return this.apiClient.callApi(
596
604
  '/api/v2/authorization/subjects/me',
597
605
  'GET',
598
606
  { },
599
- { },
607
+ { 'includeDuplicates': opts['includeDuplicates'] },
600
608
  { },
601
609
  { },
602
610
  null,
@@ -5,7 +5,7 @@ class BillingApi {
5
5
  /**
6
6
  * Billing service.
7
7
  * @module purecloud-platform-client-v2/api/BillingApi
8
- * @version 190.0.0
8
+ * @version 192.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 190.0.0
8
+ * @version 192.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 190.0.0
8
+ * @version 192.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -51,25 +51,25 @@ class ChatApi {
51
51
  }
52
52
 
53
53
  /**
54
- * Remove a user from a room.
54
+ * Remove a pinned message from a room
55
55
  *
56
56
  * @param {String} roomJid roomJid
57
- * @param {String} userId userId
57
+ * @param {String} pinnedMessageId pinnedMessageId
58
58
  */
59
- deleteChatsRoomParticipant(roomJid, userId) {
59
+ deleteChatsRoomMessagesPin(roomJid, pinnedMessageId) {
60
60
  // verify the required parameter 'roomJid' is set
61
61
  if (roomJid === undefined || roomJid === null) {
62
- throw 'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';
62
+ throw 'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';
63
63
  }
64
- // verify the required parameter 'userId' is set
65
- if (userId === undefined || userId === null) {
66
- throw 'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';
64
+ // verify the required parameter 'pinnedMessageId' is set
65
+ if (pinnedMessageId === undefined || pinnedMessageId === null) {
66
+ throw 'Missing the required parameter "pinnedMessageId" when calling deleteChatsRoomMessagesPin';
67
67
  }
68
68
 
69
69
  return this.apiClient.callApi(
70
- '/api/v2/chats/rooms/{roomJid}/participants/{userId}',
70
+ '/api/v2/chats/rooms/{roomJid}/messages/pins/{pinnedMessageId}',
71
71
  'DELETE',
72
- { 'roomJid': roomJid,'userId': userId },
72
+ { 'roomJid': roomJid,'pinnedMessageId': pinnedMessageId },
73
73
  { },
74
74
  { },
75
75
  { },
@@ -81,25 +81,25 @@ class ChatApi {
81
81
  }
82
82
 
83
83
  /**
84
- * Remove a pinned message from a room
84
+ * Remove a user from a room.
85
85
  *
86
86
  * @param {String} roomJid roomJid
87
- * @param {String} pinnedMessageId pinnedMessageId
87
+ * @param {String} userId userId
88
88
  */
89
- deleteChatsRoomPinnedmessage(roomJid, pinnedMessageId) {
89
+ deleteChatsRoomParticipant(roomJid, userId) {
90
90
  // verify the required parameter 'roomJid' is set
91
91
  if (roomJid === undefined || roomJid === null) {
92
- throw 'Missing the required parameter "roomJid" when calling deleteChatsRoomPinnedmessage';
92
+ throw 'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';
93
93
  }
94
- // verify the required parameter 'pinnedMessageId' is set
95
- if (pinnedMessageId === undefined || pinnedMessageId === null) {
96
- throw 'Missing the required parameter "pinnedMessageId" when calling deleteChatsRoomPinnedmessage';
94
+ // verify the required parameter 'userId' is set
95
+ if (userId === undefined || userId === null) {
96
+ throw 'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';
97
97
  }
98
98
 
99
99
  return this.apiClient.callApi(
100
- '/api/v2/chats/rooms/{roomJid}/pinnedmessages/{pinnedMessageId}',
100
+ '/api/v2/chats/rooms/{roomJid}/participants/{userId}',
101
101
  'DELETE',
102
- { 'roomJid': roomJid,'pinnedMessageId': pinnedMessageId },
102
+ { 'roomJid': roomJid,'userId': userId },
103
103
  { },
104
104
  { },
105
105
  { },
@@ -140,6 +140,37 @@ class ChatApi {
140
140
  );
141
141
  }
142
142
 
143
+ /**
144
+ * Remove a pinned message from a 1on1
145
+ *
146
+ * @param {String} userId userId
147
+ * @param {String} pinnedMessageId pinnedMessageId
148
+ * deleteChatsUserMessagesPin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
149
+ */
150
+ deleteChatsUserMessagesPin(userId, pinnedMessageId) {
151
+ // verify the required parameter 'userId' is set
152
+ if (userId === undefined || userId === null) {
153
+ throw 'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';
154
+ }
155
+ // verify the required parameter 'pinnedMessageId' is set
156
+ if (pinnedMessageId === undefined || pinnedMessageId === null) {
157
+ throw 'Missing the required parameter "pinnedMessageId" when calling deleteChatsUserMessagesPin';
158
+ }
159
+
160
+ return this.apiClient.callApi(
161
+ '/api/v2/chats/users/{userId}/messages/pins/{pinnedMessageId}',
162
+ 'DELETE',
163
+ { 'userId': userId,'pinnedMessageId': pinnedMessageId },
164
+ { },
165
+ { },
166
+ { },
167
+ null,
168
+ ['PureCloud OAuth'],
169
+ ['application/json'],
170
+ ['application/json']
171
+ );
172
+ }
173
+
143
174
  /**
144
175
  * Get a message
145
176
  *
@@ -357,6 +388,32 @@ class ChatApi {
357
388
  );
358
389
  }
359
390
 
391
+ /**
392
+ * Get information for a 1on1
393
+ *
394
+ * @param {String} userId userId
395
+ * getChatsUser is a preview method and is subject to both breaking and non-breaking changes at any time without notice
396
+ */
397
+ getChatsUser(userId) {
398
+ // verify the required parameter 'userId' is set
399
+ if (userId === undefined || userId === null) {
400
+ throw 'Missing the required parameter "userId" when calling getChatsUser';
401
+ }
402
+
403
+ return this.apiClient.callApi(
404
+ '/api/v2/chats/users/{userId}',
405
+ 'GET',
406
+ { 'userId': userId },
407
+ { },
408
+ { },
409
+ { },
410
+ null,
411
+ ['PureCloud OAuth'],
412
+ ['application/json'],
413
+ ['application/json']
414
+ );
415
+ }
416
+
360
417
  /**
361
418
  * Get messages by id(s) from a 1on1
362
419
  *
@@ -631,29 +688,29 @@ class ChatApi {
631
688
  }
632
689
 
633
690
  /**
634
- * Join a room
691
+ * Add pinned messages for a room, up to a maximum of 5 pinned messages
635
692
  *
636
693
  * @param {String} roomJid roomJid
637
- * @param {String} userId userId
694
+ * @param {Object} body Pinned Message Ids
638
695
  */
639
- postChatsRoomParticipant(roomJid, userId) {
696
+ postChatsRoomMessagesPins(roomJid, body) {
640
697
  // verify the required parameter 'roomJid' is set
641
698
  if (roomJid === undefined || roomJid === null) {
642
- throw 'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';
699
+ throw 'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';
643
700
  }
644
- // verify the required parameter 'userId' is set
645
- if (userId === undefined || userId === null) {
646
- throw 'Missing the required parameter "userId" when calling postChatsRoomParticipant';
701
+ // verify the required parameter 'body' is set
702
+ if (body === undefined || body === null) {
703
+ throw 'Missing the required parameter "body" when calling postChatsRoomMessagesPins';
647
704
  }
648
705
 
649
706
  return this.apiClient.callApi(
650
- '/api/v2/chats/rooms/{roomJid}/participants/{userId}',
707
+ '/api/v2/chats/rooms/{roomJid}/messages/pins',
651
708
  'POST',
652
- { 'roomJid': roomJid,'userId': userId },
709
+ { 'roomJid': roomJid },
653
710
  { },
654
711
  { },
655
712
  { },
656
- null,
713
+ body,
657
714
  ['PureCloud OAuth'],
658
715
  ['application/json'],
659
716
  ['application/json']
@@ -661,29 +718,29 @@ class ChatApi {
661
718
  }
662
719
 
663
720
  /**
664
- * Add pinned messages for a room, up to a maximum of 5 pinned messages
721
+ * Join a room
665
722
  *
666
723
  * @param {String} roomJid roomJid
667
- * @param {Object} body Pinned Message Ids
724
+ * @param {String} userId userId
668
725
  */
669
- postChatsRoomPinnedmessages(roomJid, body) {
726
+ postChatsRoomParticipant(roomJid, userId) {
670
727
  // verify the required parameter 'roomJid' is set
671
728
  if (roomJid === undefined || roomJid === null) {
672
- throw 'Missing the required parameter "roomJid" when calling postChatsRoomPinnedmessages';
729
+ throw 'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';
673
730
  }
674
- // verify the required parameter 'body' is set
675
- if (body === undefined || body === null) {
676
- throw 'Missing the required parameter "body" when calling postChatsRoomPinnedmessages';
731
+ // verify the required parameter 'userId' is set
732
+ if (userId === undefined || userId === null) {
733
+ throw 'Missing the required parameter "userId" when calling postChatsRoomParticipant';
677
734
  }
678
735
 
679
736
  return this.apiClient.callApi(
680
- '/api/v2/chats/rooms/{roomJid}/pinnedmessages',
737
+ '/api/v2/chats/rooms/{roomJid}/participants/{userId}',
681
738
  'POST',
682
- { 'roomJid': roomJid },
739
+ { 'roomJid': roomJid,'userId': userId },
683
740
  { },
684
741
  { },
685
742
  { },
686
- body,
743
+ null,
687
744
  ['PureCloud OAuth'],
688
745
  ['application/json'],
689
746
  ['application/json']
@@ -745,6 +802,37 @@ class ChatApi {
745
802
  );
746
803
  }
747
804
 
805
+ /**
806
+ * Add pinned messages for a 1on1, up to a maximum of 5 pinned messages
807
+ *
808
+ * @param {String} userId userId
809
+ * @param {Object} body Pinned Message Ids
810
+ * postChatsUserMessagesPins is a preview method and is subject to both breaking and non-breaking changes at any time without notice
811
+ */
812
+ postChatsUserMessagesPins(userId, body) {
813
+ // verify the required parameter 'userId' is set
814
+ if (userId === undefined || userId === null) {
815
+ throw 'Missing the required parameter "userId" when calling postChatsUserMessagesPins';
816
+ }
817
+ // verify the required parameter 'body' is set
818
+ if (body === undefined || body === null) {
819
+ throw 'Missing the required parameter "body" when calling postChatsUserMessagesPins';
820
+ }
821
+
822
+ return this.apiClient.callApi(
823
+ '/api/v2/chats/users/{userId}/messages/pins',
824
+ 'POST',
825
+ { 'userId': userId },
826
+ { },
827
+ { },
828
+ { },
829
+ body,
830
+ ['PureCloud OAuth'],
831
+ ['application/json'],
832
+ ['application/json']
833
+ );
834
+ }
835
+
748
836
  /**
749
837
  * Update reactions to a message
750
838
  *
@@ -5,7 +5,7 @@ class CoachingApi {
5
5
  /**
6
6
  * Coaching service.
7
7
  * @module purecloud-platform-client-v2/api/CoachingApi
8
- * @version 190.0.0
8
+ * @version 192.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 190.0.0
8
+ * @version 192.0.0
9
9
  */
10
10
 
11
11
  /**