purecloud-platform-client-v2 236.0.0 → 237.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 (94) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +454 -86
  3. package/dist/web-amd/purecloud-platform-client-v2.js +454 -86
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +188 -87
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +188 -87
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +538 -337
  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/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 +1 -1
  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 +1 -1
  25. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -3
  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 +1 -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 +27 -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 +1 -1
  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 -1
  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/UsersRulesApi.js +294 -0
  87. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  92. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  93. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +51 -1
  94. package/src/purecloud-platform-client-v2/index.js +7 -1
@@ -5,7 +5,7 @@ class ScreenRecordingApi {
5
5
  /**
6
6
  * ScreenRecording service.
7
7
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ScriptsApi {
5
5
  /**
6
6
  * Scripts service.
7
7
  * @module purecloud-platform-client-v2/api/ScriptsApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SearchApi {
5
5
  /**
6
6
  * Search service.
7
7
  * @module purecloud-platform-client-v2/api/SearchApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SettingsApi {
5
5
  /**
6
6
  * Settings service.
7
7
  * @module purecloud-platform-client-v2/api/SettingsApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SocialMediaApi {
5
5
  /**
6
6
  * SocialMedia service.
7
7
  * @module purecloud-platform-client-v2/api/SocialMediaApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SpeechTextAnalyticsApi {
5
5
  /**
6
6
  * SpeechTextAnalytics service.
7
7
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class StationsApi {
5
5
  /**
6
6
  * Stations service.
7
7
  * @module purecloud-platform-client-v2/api/StationsApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SuggestApi {
5
5
  /**
6
6
  * Suggest service.
7
7
  * @module purecloud-platform-client-v2/api/SuggestApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TaskManagementApi {
5
5
  /**
6
6
  * TaskManagement service.
7
7
  * @module purecloud-platform-client-v2/api/TaskManagementApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TeamsApi {
5
5
  /**
6
6
  * Teams service.
7
7
  * @module purecloud-platform-client-v2/api/TeamsApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TelephonyApi {
5
5
  /**
6
6
  * Telephony service.
7
7
  * @module purecloud-platform-client-v2/api/TelephonyApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TelephonyProvidersEdgeApi {
5
5
  /**
6
6
  * TelephonyProvidersEdge service.
7
7
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TextbotsApi {
5
5
  /**
6
6
  * Textbots service.
7
7
  * @module purecloud-platform-client-v2/api/TextbotsApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class TokensApi {
5
5
  /**
6
6
  * Tokens service.
7
7
  * @module purecloud-platform-client-v2/api/TokensApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UploadsApi {
5
5
  /**
6
6
  * Uploads service.
7
7
  * @module purecloud-platform-client-v2/api/UploadsApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UsageApi {
5
5
  /**
6
6
  * Usage service.
7
7
  * @module purecloud-platform-client-v2/api/UsageApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UserRecordingsApi {
5
5
  /**
6
6
  * UserRecordings service.
7
7
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class UsersApi {
5
5
  /**
6
6
  * Users service.
7
7
  * @module purecloud-platform-client-v2/api/UsersApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -0,0 +1,294 @@
1
+ import ApiClient from '../ApiClient.js';
2
+
3
+
4
+ class UsersRulesApi {
5
+ /**
6
+ * UsersRules service.
7
+ * @module purecloud-platform-client-v2/api/UsersRulesApi
8
+ * @version 237.0.0
9
+ */
10
+
11
+ /**
12
+ * Constructs a new UsersRulesApi.
13
+ * @alias module:purecloud-platform-client-v2/api/UsersRulesApi
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 an existing users rule
25
+ *
26
+ * @param {String} ruleId The id of the rule
27
+ * deleteUsersRule is a preview method and is subject to both breaking and non-breaking changes at any time without notice
28
+ */
29
+ deleteUsersRule(ruleId) {
30
+ // verify the required parameter 'ruleId' is set
31
+ if (ruleId === undefined || ruleId === null || ruleId === '') {
32
+ throw 'Missing the required parameter "ruleId" when calling deleteUsersRule';
33
+ }
34
+
35
+ return this.apiClient.callApi(
36
+ '/api/v2/users/rules/{ruleId}',
37
+ 'DELETE',
38
+ { 'ruleId': ruleId },
39
+ { },
40
+ { },
41
+ { },
42
+ null,
43
+ ['PureCloud OAuth'],
44
+ ['application/json'],
45
+ ['application/json']
46
+ );
47
+ }
48
+
49
+ /**
50
+ * Get a users rule
51
+ *
52
+ * @param {String} ruleId The ID of the rule to retrieve
53
+ * getUsersRule is a preview method and is subject to both breaking and non-breaking changes at any time without notice
54
+ */
55
+ getUsersRule(ruleId) {
56
+ // verify the required parameter 'ruleId' is set
57
+ if (ruleId === undefined || ruleId === null || ruleId === '') {
58
+ throw 'Missing the required parameter "ruleId" when calling getUsersRule';
59
+ }
60
+
61
+ return this.apiClient.callApi(
62
+ '/api/v2/users/rules/{ruleId}',
63
+ 'GET',
64
+ { 'ruleId': ruleId },
65
+ { },
66
+ { },
67
+ { },
68
+ null,
69
+ ['PureCloud OAuth'],
70
+ ['application/json'],
71
+ ['application/json']
72
+ );
73
+ }
74
+
75
+ /**
76
+ * Get dependent of a users rule
77
+ *
78
+ * @param {String} ruleId The ID of the rule for which to retrieve dependents
79
+ * @param {Object} ruleType The type of the dependent
80
+ * @param {String} typeId The type ID of the dependent
81
+ * getUsersRuleDependentTypeId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
82
+ */
83
+ getUsersRuleDependentTypeId(ruleId, ruleType, typeId) {
84
+ // verify the required parameter 'ruleId' is set
85
+ if (ruleId === undefined || ruleId === null || ruleId === '') {
86
+ throw 'Missing the required parameter "ruleId" when calling getUsersRuleDependentTypeId';
87
+ }
88
+ // verify the required parameter 'ruleType' is set
89
+ if (ruleType === undefined || ruleType === null || ruleType === '') {
90
+ throw 'Missing the required parameter "ruleType" when calling getUsersRuleDependentTypeId';
91
+ }
92
+ // verify the required parameter 'typeId' is set
93
+ if (typeId === undefined || typeId === null || typeId === '') {
94
+ throw 'Missing the required parameter "typeId" when calling getUsersRuleDependentTypeId';
95
+ }
96
+
97
+ return this.apiClient.callApi(
98
+ '/api/v2/users/rules/{ruleId}/dependents/{ruleType}/{typeId}',
99
+ 'GET',
100
+ { 'ruleId': ruleId,'ruleType': ruleType,'typeId': typeId },
101
+ { },
102
+ { },
103
+ { },
104
+ null,
105
+ ['PureCloud OAuth'],
106
+ ['application/json'],
107
+ ['application/json']
108
+ );
109
+ }
110
+
111
+ /**
112
+ * Get dependents for a users rule
113
+ *
114
+ * @param {String} ruleId The ID of the rule for which to retrieve dependents
115
+ * @param {Object} opts Optional parameters
116
+ * @param {Number} opts.pageSize Number of results per page (default to 25)
117
+ * @param {Number} opts.pageNumber Page number (default to 1)
118
+ * @param {Object} opts.sortOrder Sort order for dependents (by last run date, then created date) (default to descending)
119
+ * getUsersRuleDependents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
120
+ */
121
+ getUsersRuleDependents(ruleId, opts) {
122
+ opts = opts || {};
123
+
124
+ // verify the required parameter 'ruleId' is set
125
+ if (ruleId === undefined || ruleId === null || ruleId === '') {
126
+ throw 'Missing the required parameter "ruleId" when calling getUsersRuleDependents';
127
+ }
128
+
129
+ return this.apiClient.callApi(
130
+ '/api/v2/users/rules/{ruleId}/dependents',
131
+ 'GET',
132
+ { 'ruleId': ruleId },
133
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'] },
134
+ { },
135
+ { },
136
+ null,
137
+ ['PureCloud OAuth'],
138
+ ['application/json'],
139
+ ['application/json']
140
+ );
141
+ }
142
+
143
+ /**
144
+ * Get the list of users rules
145
+ *
146
+ * @param {Array.<String>} types The types of the rule
147
+ * @param {Object} opts Optional parameters
148
+ * @param {Number} opts.pageNumber Page number (default to 1)
149
+ * @param {Number} opts.pageSize Number of results per page (default to 25)
150
+ * @param {Array.<String>} opts.expand Fields to expand in response
151
+ * @param {String} opts.searchTerm a search term for finding a rule by name
152
+ * @param {Object} opts.sortOrder sort rules by name, ascending, descending (default to ascending)
153
+ * getUsersRules is a preview method and is subject to both breaking and non-breaking changes at any time without notice
154
+ */
155
+ getUsersRules(types, opts) {
156
+ opts = opts || {};
157
+
158
+ // verify the required parameter 'types' is set
159
+ if (types === undefined || types === null) {
160
+ throw 'Missing the required parameter "types" when calling getUsersRules';
161
+ }
162
+
163
+ return this.apiClient.callApi(
164
+ '/api/v2/users/rules',
165
+ 'GET',
166
+ { },
167
+ { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'types': this.apiClient.buildCollectionParam(types, 'multi'),'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'searchTerm': opts['searchTerm'],'sortOrder': opts['sortOrder'] },
168
+ { },
169
+ { },
170
+ null,
171
+ ['PureCloud OAuth'],
172
+ ['application/json'],
173
+ ['application/json']
174
+ );
175
+ }
176
+
177
+ /**
178
+ * Get the settings for a specific users rule type
179
+ *
180
+ * @param {Object} ruleType The type of the rule
181
+ * getUsersRulesSetting is a preview method and is subject to both breaking and non-breaking changes at any time without notice
182
+ */
183
+ getUsersRulesSetting(ruleType) {
184
+ // verify the required parameter 'ruleType' is set
185
+ if (ruleType === undefined || ruleType === null || ruleType === '') {
186
+ throw 'Missing the required parameter "ruleType" when calling getUsersRulesSetting';
187
+ }
188
+
189
+ return this.apiClient.callApi(
190
+ '/api/v2/users/rules/settings/{ruleType}',
191
+ 'GET',
192
+ { 'ruleType': ruleType },
193
+ { },
194
+ { },
195
+ { },
196
+ null,
197
+ ['PureCloud OAuth'],
198
+ ['application/json'],
199
+ ['application/json']
200
+ );
201
+ }
202
+
203
+ /**
204
+ * Update an existing users rule
205
+ * This will update an existing users rule with the specified fields.
206
+ * @param {String} ruleId The ID of the rule to update
207
+ * @param {Object} body updateRuleRequest
208
+ * patchUsersRule is a preview method and is subject to both breaking and non-breaking changes at any time without notice
209
+ */
210
+ patchUsersRule(ruleId, body) {
211
+ // verify the required parameter 'ruleId' is set
212
+ if (ruleId === undefined || ruleId === null || ruleId === '') {
213
+ throw 'Missing the required parameter "ruleId" when calling patchUsersRule';
214
+ }
215
+ // verify the required parameter 'body' is set
216
+ if (body === undefined || body === null) {
217
+ throw 'Missing the required parameter "body" when calling patchUsersRule';
218
+ }
219
+
220
+ return this.apiClient.callApi(
221
+ '/api/v2/users/rules/{ruleId}',
222
+ 'PATCH',
223
+ { 'ruleId': ruleId },
224
+ { },
225
+ { },
226
+ { },
227
+ body,
228
+ ['PureCloud OAuth'],
229
+ ['application/json'],
230
+ ['application/json']
231
+ );
232
+ }
233
+
234
+ /**
235
+ * Create a new rule
236
+ * This will create a new rule with the specified fields.
237
+ * @param {Object} body usersRulesCreateRuleRequest
238
+ * postUsersRules is a preview method and is subject to both breaking and non-breaking changes at any time without notice
239
+ */
240
+ postUsersRules(body) {
241
+ // verify the required parameter 'body' is set
242
+ if (body === undefined || body === null) {
243
+ throw 'Missing the required parameter "body" when calling postUsersRules';
244
+ }
245
+
246
+ return this.apiClient.callApi(
247
+ '/api/v2/users/rules',
248
+ 'POST',
249
+ { },
250
+ { },
251
+ { },
252
+ { },
253
+ body,
254
+ ['PureCloud OAuth'],
255
+ ['application/json'],
256
+ ['application/json']
257
+ );
258
+ }
259
+
260
+ /**
261
+ * Query the result of a users rule
262
+ * This will query the result of a rule.
263
+ * @param {Object} body usersRulesQueryRuleRequest
264
+ * @param {Object} opts Optional parameters
265
+ * @param {Number} opts.pageNumber Page number (default to 1)
266
+ * @param {Number} opts.pageSize Number of results per page (default to 25)
267
+ * postUsersRulesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
268
+ */
269
+ postUsersRulesQuery(body, opts) {
270
+ opts = opts || {};
271
+
272
+ // verify the required parameter 'body' is set
273
+ if (body === undefined || body === null) {
274
+ throw 'Missing the required parameter "body" when calling postUsersRulesQuery';
275
+ }
276
+
277
+ return this.apiClient.callApi(
278
+ '/api/v2/users/rules/query',
279
+ 'POST',
280
+ { },
281
+ { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
282
+ { },
283
+ { },
284
+ body,
285
+ ['PureCloud OAuth'],
286
+ ['application/json'],
287
+ ['application/json']
288
+ );
289
+ }
290
+
291
+ }
292
+
293
+
294
+ export default UsersRulesApi;
@@ -5,7 +5,7 @@ class UtilitiesApi {
5
5
  /**
6
6
  * Utilities service.
7
7
  * @module purecloud-platform-client-v2/api/UtilitiesApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class VoicemailApi {
5
5
  /**
6
6
  * Voicemail service.
7
7
  * @module purecloud-platform-client-v2/api/VoicemailApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class WebChatApi {
5
5
  /**
6
6
  * WebChat service.
7
7
  * @module purecloud-platform-client-v2/api/WebChatApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class WebDeploymentsApi {
5
5
  /**
6
6
  * WebDeployments service.
7
7
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class WebMessagingApi {
5
5
  /**
6
6
  * WebMessaging service.
7
7
  * @module purecloud-platform-client-v2/api/WebMessagingApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class WidgetsApi {
5
5
  /**
6
6
  * Widgets service.
7
7
  * @module purecloud-platform-client-v2/api/WidgetsApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class WorkforceManagementApi {
5
5
  /**
6
6
  * WorkforceManagement service.
7
7
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
8
- * @version 236.0.0
8
+ * @version 237.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -769,6 +769,31 @@ class WorkforceManagementApi {
769
769
  );
770
770
  }
771
771
 
772
+ /**
773
+ * Request to fetch the status of the agent adherence job. Only the user who started the operation can query the status
774
+ * Job details are only retained if the initial request returned a 202 ACCEPTED response
775
+ * @param {String} jobId ID of the job to get
776
+ */
777
+ getWorkforcemanagementAgentsMeAdherenceHistoricalJob(jobId) {
778
+ // verify the required parameter 'jobId' is set
779
+ if (jobId === undefined || jobId === null || jobId === '') {
780
+ throw 'Missing the required parameter "jobId" when calling getWorkforcemanagementAgentsMeAdherenceHistoricalJob';
781
+ }
782
+
783
+ return this.apiClient.callApi(
784
+ '/api/v2/workforcemanagement/agents/me/adherence/historical/jobs/{jobId}',
785
+ 'GET',
786
+ { 'jobId': jobId },
787
+ { },
788
+ { },
789
+ { },
790
+ null,
791
+ ['PureCloud OAuth'],
792
+ ['application/json'],
793
+ ['application/json']
794
+ );
795
+ }
796
+
772
797
  /**
773
798
  * Get the management unit to which the currently logged in agent belongs
774
799
  *
@@ -5117,6 +5142,31 @@ class WorkforceManagementApi {
5117
5142
  );
5118
5143
  }
5119
5144
 
5145
+ /**
5146
+ * Request an agent historical adherence report
5147
+ * The maximum supported range for historical adherence queries is 31 days, or 7 days when the expand query parameter includes any of the following: exceptionInfo, actuals, scheduledActivities
5148
+ * @param {Object} opts Optional parameters
5149
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand with. wfm:AgentHistoricalAdherenceConformance:view permission is required for conformance, and wfm:agentSchedule:view permission is required for scheduledActivities.
5150
+ * @param {Object} opts.body body
5151
+ */
5152
+ postWorkforcemanagementAgentsMeAdherenceHistoricalJobs(opts) {
5153
+ opts = opts || {};
5154
+
5155
+
5156
+ return this.apiClient.callApi(
5157
+ '/api/v2/workforcemanagement/agents/me/adherence/historical/jobs',
5158
+ 'POST',
5159
+ { },
5160
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
5161
+ { },
5162
+ { },
5163
+ opts['body'],
5164
+ ['PureCloud OAuth'],
5165
+ ['application/json'],
5166
+ ['application/json']
5167
+ );
5168
+ }
5169
+
5120
5170
  /**
5121
5171
  * Get agent possible work shifts for requested time frame
5122
5172
  *
@@ -79,6 +79,7 @@ import UploadsApi from './api/UploadsApi.js';
79
79
  import UsageApi from './api/UsageApi.js';
80
80
  import UserRecordingsApi from './api/UserRecordingsApi.js';
81
81
  import UsersApi from './api/UsersApi.js';
82
+ import UsersRulesApi from './api/UsersRulesApi.js';
82
83
  import UtilitiesApi from './api/UtilitiesApi.js';
83
84
  import VoicemailApi from './api/VoicemailApi.js';
84
85
  import WebChatApi from './api/WebChatApi.js';
@@ -118,7 +119,7 @@ import WorkforceManagementApi from './api/WorkforceManagementApi.js';
118
119
  * </pre>
119
120
  * </p>
120
121
  * @module purecloud-platform-client-v2/index
121
- * @version 236.0.0
122
+ * @version 237.0.0
122
123
  */
123
124
  class platformClient {
124
125
  constructor() {
@@ -507,6 +508,11 @@ class platformClient {
507
508
  * @property {module:purecloud-platform-client-v2/api/UsersApi}
508
509
  */
509
510
  this.UsersApi = UsersApi;
511
+ /**
512
+ * The UsersRulesApi service constructor.
513
+ * @property {module:purecloud-platform-client-v2/api/UsersRulesApi}
514
+ */
515
+ this.UsersRulesApi = UsersRulesApi;
510
516
  /**
511
517
  * The UtilitiesApi service constructor.
512
518
  * @property {module:purecloud-platform-client-v2/api/UtilitiesApi}