purecloud-platform-client-v2 219.0.0 → 221.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 (92) hide show
  1. package/README.md +4 -4
  2. package/dist/node/purecloud-platform-client-v2.js +1378 -144
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1378 -144
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +495 -184
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +495 -184
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +1596 -766
  9. package/package.json +2 -2
  10. package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
  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 +1 -1
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +4 -5
  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 +177 -1
  20. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +919 -0
  21. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ChatApi.js +7 -3
  23. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +71 -8
  26. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +4 -19
  33. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/RecordingApi.js +3 -3
  64. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/RoutingApi.js +19 -14
  66. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +33 -1
  69. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SettingsApi.js +65 -1
  71. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -3
  73. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -10
  76. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +3 -3
  80. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -3
  89. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  92. package/src/purecloud-platform-client-v2/index.js +7 -1
@@ -0,0 +1,919 @@
1
+ import ApiClient from '../ApiClient.js';
2
+
3
+
4
+ class BusinessRulesApi {
5
+ /**
6
+ * BusinessRules service.
7
+ * @module purecloud-platform-client-v2/api/BusinessRulesApi
8
+ * @version 221.0.0
9
+ */
10
+
11
+ /**
12
+ * Constructs a new BusinessRulesApi.
13
+ * @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
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 decision table
25
+ *
26
+ * @param {String} tableId Table ID
27
+ * @param {Object} opts Optional parameters
28
+ * @param {Boolean} opts.forceDelete Force delete decision table (under certain conditions) (default to false)
29
+ * deleteBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
30
+ */
31
+ deleteBusinessrulesDecisiontable(tableId, opts) {
32
+ opts = opts || {};
33
+
34
+ // verify the required parameter 'tableId' is set
35
+ if (tableId === undefined || tableId === null) {
36
+ throw 'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontable';
37
+ }
38
+
39
+ return this.apiClient.callApi(
40
+ '/api/v2/businessrules/decisiontables/{tableId}',
41
+ 'DELETE',
42
+ { 'tableId': tableId },
43
+ { 'forceDelete': opts['forceDelete'] },
44
+ { },
45
+ { },
46
+ null,
47
+ ['PureCloud OAuth'],
48
+ ['application/json'],
49
+ ['application/json']
50
+ );
51
+ }
52
+
53
+ /**
54
+ * Delete a decision table version
55
+ *
56
+ * @param {String} tableId Table ID
57
+ * @param {Number} tableVersion Table Version
58
+ * deleteBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
59
+ */
60
+ deleteBusinessrulesDecisiontableVersion(tableId, tableVersion) {
61
+ // verify the required parameter 'tableId' is set
62
+ if (tableId === undefined || tableId === null) {
63
+ throw 'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';
64
+ }
65
+ // verify the required parameter 'tableVersion' is set
66
+ if (tableVersion === undefined || tableVersion === null) {
67
+ throw 'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersion';
68
+ }
69
+
70
+ return this.apiClient.callApi(
71
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}',
72
+ 'DELETE',
73
+ { 'tableId': tableId,'tableVersion': tableVersion },
74
+ { },
75
+ { },
76
+ { },
77
+ null,
78
+ ['PureCloud OAuth'],
79
+ ['application/json'],
80
+ ['application/json']
81
+ );
82
+ }
83
+
84
+ /**
85
+ * Delete a decision table row
86
+ *
87
+ * @param {String} tableId Table ID
88
+ * @param {Number} tableVersion Table Version
89
+ * @param {String} rowId Row ID
90
+ * deleteBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
91
+ */
92
+ deleteBusinessrulesDecisiontableVersionRow(tableId, tableVersion, rowId) {
93
+ // verify the required parameter 'tableId' is set
94
+ if (tableId === undefined || tableId === null) {
95
+ throw 'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';
96
+ }
97
+ // verify the required parameter 'tableVersion' is set
98
+ if (tableVersion === undefined || tableVersion === null) {
99
+ throw 'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';
100
+ }
101
+ // verify the required parameter 'rowId' is set
102
+ if (rowId === undefined || rowId === null) {
103
+ throw 'Missing the required parameter "rowId" when calling deleteBusinessrulesDecisiontableVersionRow';
104
+ }
105
+
106
+ return this.apiClient.callApi(
107
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}',
108
+ 'DELETE',
109
+ { 'tableId': tableId,'tableVersion': tableVersion,'rowId': rowId },
110
+ { },
111
+ { },
112
+ { },
113
+ null,
114
+ ['PureCloud OAuth'],
115
+ ['application/json'],
116
+ ['application/json']
117
+ );
118
+ }
119
+
120
+ /**
121
+ * Delete a schema
122
+ *
123
+ * @param {String} schemaId Schema ID
124
+ * deleteBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
125
+ */
126
+ deleteBusinessrulesSchema(schemaId) {
127
+ // verify the required parameter 'schemaId' is set
128
+ if (schemaId === undefined || schemaId === null) {
129
+ throw 'Missing the required parameter "schemaId" when calling deleteBusinessrulesSchema';
130
+ }
131
+
132
+ return this.apiClient.callApi(
133
+ '/api/v2/businessrules/schemas/{schemaId}',
134
+ 'DELETE',
135
+ { 'schemaId': schemaId },
136
+ { },
137
+ { },
138
+ { },
139
+ null,
140
+ ['PureCloud OAuth'],
141
+ ['application/json'],
142
+ ['application/json']
143
+ );
144
+ }
145
+
146
+ /**
147
+ * Get a decision table
148
+ *
149
+ * @param {String} tableId Table ID
150
+ * getBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
151
+ */
152
+ getBusinessrulesDecisiontable(tableId) {
153
+ // verify the required parameter 'tableId' is set
154
+ if (tableId === undefined || tableId === null) {
155
+ throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontable';
156
+ }
157
+
158
+ return this.apiClient.callApi(
159
+ '/api/v2/businessrules/decisiontables/{tableId}',
160
+ 'GET',
161
+ { 'tableId': tableId },
162
+ { },
163
+ { },
164
+ { },
165
+ null,
166
+ ['PureCloud OAuth'],
167
+ ['application/json'],
168
+ ['application/json']
169
+ );
170
+ }
171
+
172
+ /**
173
+ * Get a decision table version
174
+ *
175
+ * @param {String} tableId Table ID
176
+ * @param {Number} tableVersion Table Version
177
+ * getBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
178
+ */
179
+ getBusinessrulesDecisiontableVersion(tableId, tableVersion) {
180
+ // verify the required parameter 'tableId' is set
181
+ if (tableId === undefined || tableId === null) {
182
+ throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';
183
+ }
184
+ // verify the required parameter 'tableVersion' is set
185
+ if (tableVersion === undefined || tableVersion === null) {
186
+ throw 'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersion';
187
+ }
188
+
189
+ return this.apiClient.callApi(
190
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}',
191
+ 'GET',
192
+ { 'tableId': tableId,'tableVersion': tableVersion },
193
+ { },
194
+ { },
195
+ { },
196
+ null,
197
+ ['PureCloud OAuth'],
198
+ ['application/json'],
199
+ ['application/json']
200
+ );
201
+ }
202
+
203
+ /**
204
+ * Get a decision table row
205
+ *
206
+ * @param {String} tableId Table ID
207
+ * @param {Number} tableVersion Table Version
208
+ * @param {String} rowId Row ID
209
+ * getBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
210
+ */
211
+ getBusinessrulesDecisiontableVersionRow(tableId, tableVersion, rowId) {
212
+ // verify the required parameter 'tableId' is set
213
+ if (tableId === undefined || tableId === null) {
214
+ throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';
215
+ }
216
+ // verify the required parameter 'tableVersion' is set
217
+ if (tableVersion === undefined || tableVersion === null) {
218
+ throw 'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';
219
+ }
220
+ // verify the required parameter 'rowId' is set
221
+ if (rowId === undefined || rowId === null) {
222
+ throw 'Missing the required parameter "rowId" when calling getBusinessrulesDecisiontableVersionRow';
223
+ }
224
+
225
+ return this.apiClient.callApi(
226
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}',
227
+ 'GET',
228
+ { 'tableId': tableId,'tableVersion': tableVersion,'rowId': rowId },
229
+ { },
230
+ { },
231
+ { },
232
+ null,
233
+ ['PureCloud OAuth'],
234
+ ['application/json'],
235
+ ['application/json']
236
+ );
237
+ }
238
+
239
+ /**
240
+ * Get a list of decision table rows.
241
+ *
242
+ * @param {String} tableId Table ID
243
+ * @param {Number} tableVersion Table Version
244
+ * @param {Object} opts Optional parameters
245
+ * @param {String} opts.pageNumber Page number of the entities to return. Defaults to 1.
246
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100. Defaults to 25.
247
+ * getBusinessrulesDecisiontableVersionRows is a preview method and is subject to both breaking and non-breaking changes at any time without notice
248
+ */
249
+ getBusinessrulesDecisiontableVersionRows(tableId, tableVersion, opts) {
250
+ opts = opts || {};
251
+
252
+ // verify the required parameter 'tableId' is set
253
+ if (tableId === undefined || tableId === null) {
254
+ throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';
255
+ }
256
+ // verify the required parameter 'tableVersion' is set
257
+ if (tableVersion === undefined || tableVersion === null) {
258
+ throw 'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRows';
259
+ }
260
+
261
+ return this.apiClient.callApi(
262
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows',
263
+ 'GET',
264
+ { 'tableId': tableId,'tableVersion': tableVersion },
265
+ { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
266
+ { },
267
+ { },
268
+ null,
269
+ ['PureCloud OAuth'],
270
+ ['application/json'],
271
+ ['application/json']
272
+ );
273
+ }
274
+
275
+ /**
276
+ * Get a list of decision table versions
277
+ *
278
+ * @param {String} tableId Table ID
279
+ * @param {Object} opts Optional parameters
280
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
281
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
282
+ * @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
283
+ * getBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
284
+ */
285
+ getBusinessrulesDecisiontableVersions(tableId, opts) {
286
+ opts = opts || {};
287
+
288
+ // verify the required parameter 'tableId' is set
289
+ if (tableId === undefined || tableId === null) {
290
+ throw 'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersions';
291
+ }
292
+
293
+ return this.apiClient.callApi(
294
+ '/api/v2/businessrules/decisiontables/{tableId}/versions',
295
+ 'GET',
296
+ { 'tableId': tableId },
297
+ { 'after': opts['after'],'pageSize': opts['pageSize'],'divisionIds': this.apiClient.buildCollectionParam(opts['divisionIds'], 'multi') },
298
+ { },
299
+ { },
300
+ null,
301
+ ['PureCloud OAuth'],
302
+ ['application/json'],
303
+ ['application/json']
304
+ );
305
+ }
306
+
307
+ /**
308
+ * Get a list of decision tables.
309
+ *
310
+ * @param {Object} opts Optional parameters
311
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
312
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
313
+ * @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
314
+ * getBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
315
+ */
316
+ getBusinessrulesDecisiontables(opts) {
317
+ opts = opts || {};
318
+
319
+
320
+ return this.apiClient.callApi(
321
+ '/api/v2/businessrules/decisiontables',
322
+ 'GET',
323
+ { },
324
+ { 'after': opts['after'],'pageSize': opts['pageSize'],'divisionIds': this.apiClient.buildCollectionParam(opts['divisionIds'], 'multi') },
325
+ { },
326
+ { },
327
+ null,
328
+ ['PureCloud OAuth'],
329
+ ['application/json'],
330
+ ['application/json']
331
+ );
332
+ }
333
+
334
+ /**
335
+ * Search for decision tables.
336
+ *
337
+ * @param {Object} opts Optional parameters
338
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
339
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
340
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
341
+ * @param {String} opts.schemaId Search for decision tables that use the schema with this ID. Cannot be combined with name search. Search results will not be paginated if used.
342
+ * @param {String} opts.name Search for decision tables with a name that contains the given search string. Search is case insensitive and will match any table that contains this string in any part of the name. Cannot be combined with schema search. Search results will not be paginated if used.
343
+ * getBusinessrulesDecisiontablesSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
344
+ */
345
+ getBusinessrulesDecisiontablesSearch(opts) {
346
+ opts = opts || {};
347
+
348
+
349
+ return this.apiClient.callApi(
350
+ '/api/v2/businessrules/decisiontables/search',
351
+ 'GET',
352
+ { },
353
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'schemaId': opts['schemaId'],'name': opts['name'] },
354
+ { },
355
+ { },
356
+ null,
357
+ ['PureCloud OAuth'],
358
+ ['application/json'],
359
+ ['application/json']
360
+ );
361
+ }
362
+
363
+ /**
364
+ * Get a schema
365
+ *
366
+ * @param {String} schemaId Schema ID
367
+ * getBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
368
+ */
369
+ getBusinessrulesSchema(schemaId) {
370
+ // verify the required parameter 'schemaId' is set
371
+ if (schemaId === undefined || schemaId === null) {
372
+ throw 'Missing the required parameter "schemaId" when calling getBusinessrulesSchema';
373
+ }
374
+
375
+ return this.apiClient.callApi(
376
+ '/api/v2/businessrules/schemas/{schemaId}',
377
+ 'GET',
378
+ { 'schemaId': schemaId },
379
+ { },
380
+ { },
381
+ { },
382
+ null,
383
+ ['PureCloud OAuth'],
384
+ ['application/json'],
385
+ ['application/json']
386
+ );
387
+ }
388
+
389
+ /**
390
+ * Get a list of schemas.
391
+ *
392
+ * getBusinessrulesSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
393
+ */
394
+ getBusinessrulesSchemas() {
395
+
396
+ return this.apiClient.callApi(
397
+ '/api/v2/businessrules/schemas',
398
+ 'GET',
399
+ { },
400
+ { },
401
+ { },
402
+ { },
403
+ null,
404
+ ['PureCloud OAuth'],
405
+ ['application/json'],
406
+ ['application/json']
407
+ );
408
+ }
409
+
410
+ /**
411
+ * Get a specific named core type.
412
+ *
413
+ * @param {String} coreTypeName The core type's name
414
+ * getBusinessrulesSchemasCoretype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
415
+ */
416
+ getBusinessrulesSchemasCoretype(coreTypeName) {
417
+ // verify the required parameter 'coreTypeName' is set
418
+ if (coreTypeName === undefined || coreTypeName === null) {
419
+ throw 'Missing the required parameter "coreTypeName" when calling getBusinessrulesSchemasCoretype';
420
+ }
421
+
422
+ return this.apiClient.callApi(
423
+ '/api/v2/businessrules/schemas/coretypes/{coreTypeName}',
424
+ 'GET',
425
+ { 'coreTypeName': coreTypeName },
426
+ { },
427
+ { },
428
+ { },
429
+ null,
430
+ ['PureCloud OAuth'],
431
+ ['application/json'],
432
+ ['application/json']
433
+ );
434
+ }
435
+
436
+ /**
437
+ * Get the core types from which all schemas are built.
438
+ *
439
+ * getBusinessrulesSchemasCoretypes is a preview method and is subject to both breaking and non-breaking changes at any time without notice
440
+ */
441
+ getBusinessrulesSchemasCoretypes() {
442
+
443
+ return this.apiClient.callApi(
444
+ '/api/v2/businessrules/schemas/coretypes',
445
+ 'GET',
446
+ { },
447
+ { },
448
+ { },
449
+ { },
450
+ null,
451
+ ['PureCloud OAuth'],
452
+ ['application/json'],
453
+ ['application/json']
454
+ );
455
+ }
456
+
457
+ /**
458
+ * Update a decision table
459
+ *
460
+ * @param {String} tableId Table ID
461
+ * @param {Object} body Decision Table
462
+ * patchBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
463
+ */
464
+ patchBusinessrulesDecisiontable(tableId, body) {
465
+ // verify the required parameter 'tableId' is set
466
+ if (tableId === undefined || tableId === null) {
467
+ throw 'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';
468
+ }
469
+ // verify the required parameter 'body' is set
470
+ if (body === undefined || body === null) {
471
+ throw 'Missing the required parameter "body" when calling patchBusinessrulesDecisiontable';
472
+ }
473
+
474
+ return this.apiClient.callApi(
475
+ '/api/v2/businessrules/decisiontables/{tableId}',
476
+ 'PATCH',
477
+ { 'tableId': tableId },
478
+ { },
479
+ { },
480
+ { },
481
+ body,
482
+ ['PureCloud OAuth'],
483
+ ['application/json'],
484
+ ['application/json']
485
+ );
486
+ }
487
+
488
+ /**
489
+ * Update a decision table version
490
+ *
491
+ * @param {String} tableId Table ID
492
+ * @param {Number} tableVersion Table Version
493
+ * @param {Object} body Decision Table
494
+ * patchBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
495
+ */
496
+ patchBusinessrulesDecisiontableVersion(tableId, tableVersion, body) {
497
+ // verify the required parameter 'tableId' is set
498
+ if (tableId === undefined || tableId === null) {
499
+ throw 'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';
500
+ }
501
+ // verify the required parameter 'tableVersion' is set
502
+ if (tableVersion === undefined || tableVersion === null) {
503
+ throw 'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';
504
+ }
505
+ // verify the required parameter 'body' is set
506
+ if (body === undefined || body === null) {
507
+ throw 'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersion';
508
+ }
509
+
510
+ return this.apiClient.callApi(
511
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}',
512
+ 'PATCH',
513
+ { 'tableId': tableId,'tableVersion': tableVersion },
514
+ { },
515
+ { },
516
+ { },
517
+ body,
518
+ ['PureCloud OAuth'],
519
+ ['application/json'],
520
+ ['application/json']
521
+ );
522
+ }
523
+
524
+ /**
525
+ * Update a decision table row
526
+ *
527
+ * @param {String} tableId Table ID
528
+ * @param {Number} tableVersion Table Version
529
+ * @param {String} rowId Row ID
530
+ * @param {Object} body Update decision table row request
531
+ * patchBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
532
+ */
533
+ patchBusinessrulesDecisiontableVersionRow(tableId, tableVersion, rowId, body) {
534
+ // verify the required parameter 'tableId' is set
535
+ if (tableId === undefined || tableId === null) {
536
+ throw 'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersionRow';
537
+ }
538
+ // verify the required parameter 'tableVersion' is set
539
+ if (tableVersion === undefined || tableVersion === null) {
540
+ throw 'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersionRow';
541
+ }
542
+ // verify the required parameter 'rowId' is set
543
+ if (rowId === undefined || rowId === null) {
544
+ throw 'Missing the required parameter "rowId" when calling patchBusinessrulesDecisiontableVersionRow';
545
+ }
546
+ // verify the required parameter 'body' is set
547
+ if (body === undefined || body === null) {
548
+ throw 'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersionRow';
549
+ }
550
+
551
+ return this.apiClient.callApi(
552
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}',
553
+ 'PATCH',
554
+ { 'tableId': tableId,'tableVersion': tableVersion,'rowId': rowId },
555
+ { },
556
+ { },
557
+ { },
558
+ body,
559
+ ['PureCloud OAuth'],
560
+ ['application/json'],
561
+ ['application/json']
562
+ );
563
+ }
564
+
565
+ /**
566
+ * Execute a published decision table
567
+ *
568
+ * @param {String} tableId Table ID
569
+ * @param {Object} body Decision Table
570
+ * postBusinessrulesDecisiontableExecute is a preview method and is subject to both breaking and non-breaking changes at any time without notice
571
+ */
572
+ postBusinessrulesDecisiontableExecute(tableId, body) {
573
+ // verify the required parameter 'tableId' is set
574
+ if (tableId === undefined || tableId === null) {
575
+ throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';
576
+ }
577
+ // verify the required parameter 'body' is set
578
+ if (body === undefined || body === null) {
579
+ throw 'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExecute';
580
+ }
581
+
582
+ return this.apiClient.callApi(
583
+ '/api/v2/businessrules/decisiontables/{tableId}/execute',
584
+ 'POST',
585
+ { 'tableId': tableId },
586
+ { },
587
+ { },
588
+ { },
589
+ body,
590
+ ['PureCloud OAuth'],
591
+ ['application/json'],
592
+ ['application/json']
593
+ );
594
+ }
595
+
596
+ /**
597
+ * Copy a decision table version
598
+ *
599
+ * @param {String} tableId Table ID
600
+ * @param {Number} tableVersion Table Version
601
+ * @param {Object} body Decision Table
602
+ * postBusinessrulesDecisiontableVersionCopy is a preview method and is subject to both breaking and non-breaking changes at any time without notice
603
+ */
604
+ postBusinessrulesDecisiontableVersionCopy(tableId, tableVersion, body) {
605
+ // verify the required parameter 'tableId' is set
606
+ if (tableId === undefined || tableId === null) {
607
+ throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';
608
+ }
609
+ // verify the required parameter 'tableVersion' is set
610
+ if (tableVersion === undefined || tableVersion === null) {
611
+ throw 'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionCopy';
612
+ }
613
+ // verify the required parameter 'body' is set
614
+ if (body === undefined || body === null) {
615
+ throw 'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionCopy';
616
+ }
617
+
618
+ return this.apiClient.callApi(
619
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/copy',
620
+ 'POST',
621
+ { 'tableId': tableId,'tableVersion': tableVersion },
622
+ { },
623
+ { },
624
+ { },
625
+ body,
626
+ ['PureCloud OAuth'],
627
+ ['application/json'],
628
+ ['application/json']
629
+ );
630
+ }
631
+
632
+ /**
633
+ * Execute a decision table version
634
+ *
635
+ * @param {String} tableId Table ID
636
+ * @param {Number} tableVersion Table Version
637
+ * @param {Object} body Decision Table
638
+ * postBusinessrulesDecisiontableVersionExecute is a preview method and is subject to both breaking and non-breaking changes at any time without notice
639
+ */
640
+ postBusinessrulesDecisiontableVersionExecute(tableId, tableVersion, body) {
641
+ // verify the required parameter 'tableId' is set
642
+ if (tableId === undefined || tableId === null) {
643
+ throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';
644
+ }
645
+ // verify the required parameter 'tableVersion' is set
646
+ if (tableVersion === undefined || tableVersion === null) {
647
+ throw 'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionExecute';
648
+ }
649
+ // verify the required parameter 'body' is set
650
+ if (body === undefined || body === null) {
651
+ throw 'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionExecute';
652
+ }
653
+
654
+ return this.apiClient.callApi(
655
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/execute',
656
+ 'POST',
657
+ { 'tableId': tableId,'tableVersion': tableVersion },
658
+ { },
659
+ { },
660
+ { },
661
+ body,
662
+ ['PureCloud OAuth'],
663
+ ['application/json'],
664
+ ['application/json']
665
+ );
666
+ }
667
+
668
+ /**
669
+ * Create a decision table row
670
+ *
671
+ * @param {String} tableId Table ID
672
+ * @param {Number} tableVersion Table Version
673
+ * @param {Object} body Create decision table row request
674
+ * postBusinessrulesDecisiontableVersionRows is a preview method and is subject to both breaking and non-breaking changes at any time without notice
675
+ */
676
+ postBusinessrulesDecisiontableVersionRows(tableId, tableVersion, body) {
677
+ // verify the required parameter 'tableId' is set
678
+ if (tableId === undefined || tableId === null) {
679
+ throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';
680
+ }
681
+ // verify the required parameter 'tableVersion' is set
682
+ if (tableVersion === undefined || tableVersion === null) {
683
+ throw 'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRows';
684
+ }
685
+ // verify the required parameter 'body' is set
686
+ if (body === undefined || body === null) {
687
+ throw 'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRows';
688
+ }
689
+
690
+ return this.apiClient.callApi(
691
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows',
692
+ 'POST',
693
+ { 'tableId': tableId,'tableVersion': tableVersion },
694
+ { },
695
+ { },
696
+ { },
697
+ body,
698
+ ['PureCloud OAuth'],
699
+ ['application/json'],
700
+ ['application/json']
701
+ );
702
+ }
703
+
704
+ /**
705
+ * Search for decision table rows
706
+ *
707
+ * @param {String} tableId Table ID
708
+ * @param {Number} tableVersion Table Version
709
+ * @param {Object} body Search decision table rows request
710
+ * @param {Object} opts Optional parameters
711
+ * @param {String} opts.pageNumber Page number of the entities to return. Defaults to 1.
712
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100. Defaults to 25.
713
+ * postBusinessrulesDecisiontableVersionRowsSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
714
+ */
715
+ postBusinessrulesDecisiontableVersionRowsSearch(tableId, tableVersion, body, opts) {
716
+ opts = opts || {};
717
+
718
+ // verify the required parameter 'tableId' is set
719
+ if (tableId === undefined || tableId === null) {
720
+ throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';
721
+ }
722
+ // verify the required parameter 'tableVersion' is set
723
+ if (tableVersion === undefined || tableVersion === null) {
724
+ throw 'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsSearch';
725
+ }
726
+ // verify the required parameter 'body' is set
727
+ if (body === undefined || body === null) {
728
+ throw 'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsSearch';
729
+ }
730
+
731
+ return this.apiClient.callApi(
732
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/search',
733
+ 'POST',
734
+ { 'tableId': tableId,'tableVersion': tableVersion },
735
+ { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
736
+ { },
737
+ { },
738
+ body,
739
+ ['PureCloud OAuth'],
740
+ ['application/json'],
741
+ ['application/json']
742
+ );
743
+ }
744
+
745
+ /**
746
+ * Update the Business Rules Schema to the latest version for a given decision table version
747
+ *
748
+ * @param {String} tableId Table ID
749
+ * @param {Number} tableVersion Table Version
750
+ * postBusinessrulesDecisiontableVersionSync is a preview method and is subject to both breaking and non-breaking changes at any time without notice
751
+ */
752
+ postBusinessrulesDecisiontableVersionSync(tableId, tableVersion) {
753
+ // verify the required parameter 'tableId' is set
754
+ if (tableId === undefined || tableId === null) {
755
+ throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';
756
+ }
757
+ // verify the required parameter 'tableVersion' is set
758
+ if (tableVersion === undefined || tableVersion === null) {
759
+ throw 'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionSync';
760
+ }
761
+
762
+ return this.apiClient.callApi(
763
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/sync',
764
+ 'POST',
765
+ { 'tableId': tableId,'tableVersion': tableVersion },
766
+ { },
767
+ { },
768
+ { },
769
+ null,
770
+ ['PureCloud OAuth'],
771
+ ['application/json'],
772
+ ['application/json']
773
+ );
774
+ }
775
+
776
+ /**
777
+ * Create a new decision table version
778
+ *
779
+ * @param {String} tableId Table ID
780
+ * postBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
781
+ */
782
+ postBusinessrulesDecisiontableVersions(tableId) {
783
+ // verify the required parameter 'tableId' is set
784
+ if (tableId === undefined || tableId === null) {
785
+ throw 'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';
786
+ }
787
+
788
+ return this.apiClient.callApi(
789
+ '/api/v2/businessrules/decisiontables/{tableId}/versions',
790
+ 'POST',
791
+ { 'tableId': tableId },
792
+ { },
793
+ { },
794
+ { },
795
+ null,
796
+ ['PureCloud OAuth'],
797
+ ['application/json'],
798
+ ['application/json']
799
+ );
800
+ }
801
+
802
+ /**
803
+ * Create a decision table
804
+ *
805
+ * @param {Object} body Decision Table
806
+ * postBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
807
+ */
808
+ postBusinessrulesDecisiontables(body) {
809
+ // verify the required parameter 'body' is set
810
+ if (body === undefined || body === null) {
811
+ throw 'Missing the required parameter "body" when calling postBusinessrulesDecisiontables';
812
+ }
813
+
814
+ return this.apiClient.callApi(
815
+ '/api/v2/businessrules/decisiontables',
816
+ 'POST',
817
+ { },
818
+ { },
819
+ { },
820
+ { },
821
+ body,
822
+ ['PureCloud OAuth'],
823
+ ['application/json'],
824
+ ['application/json']
825
+ );
826
+ }
827
+
828
+ /**
829
+ * Create a schema
830
+ *
831
+ * @param {Object} body Schema
832
+ * postBusinessrulesSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
833
+ */
834
+ postBusinessrulesSchemas(body) {
835
+ // verify the required parameter 'body' is set
836
+ if (body === undefined || body === null) {
837
+ throw 'Missing the required parameter "body" when calling postBusinessrulesSchemas';
838
+ }
839
+
840
+ return this.apiClient.callApi(
841
+ '/api/v2/businessrules/schemas',
842
+ 'POST',
843
+ { },
844
+ { },
845
+ { },
846
+ { },
847
+ body,
848
+ ['PureCloud OAuth'],
849
+ ['application/json'],
850
+ ['application/json']
851
+ );
852
+ }
853
+
854
+ /**
855
+ * Publish a decision table version
856
+ *
857
+ * @param {String} tableId Table ID
858
+ * @param {Number} tableVersion Table Version
859
+ * putBusinessrulesDecisiontableVersionPublish is a preview method and is subject to both breaking and non-breaking changes at any time without notice
860
+ */
861
+ putBusinessrulesDecisiontableVersionPublish(tableId, tableVersion) {
862
+ // verify the required parameter 'tableId' is set
863
+ if (tableId === undefined || tableId === null) {
864
+ throw 'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';
865
+ }
866
+ // verify the required parameter 'tableVersion' is set
867
+ if (tableVersion === undefined || tableVersion === null) {
868
+ throw 'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionPublish';
869
+ }
870
+
871
+ return this.apiClient.callApi(
872
+ '/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/publish',
873
+ 'PUT',
874
+ { 'tableId': tableId,'tableVersion': tableVersion },
875
+ { },
876
+ { },
877
+ { },
878
+ null,
879
+ ['PureCloud OAuth'],
880
+ ['application/json'],
881
+ ['application/json']
882
+ );
883
+ }
884
+
885
+ /**
886
+ * Update a schema
887
+ *
888
+ * @param {String} schemaId Schema ID
889
+ * @param {Object} body Data Schema
890
+ * putBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
891
+ */
892
+ putBusinessrulesSchema(schemaId, body) {
893
+ // verify the required parameter 'schemaId' is set
894
+ if (schemaId === undefined || schemaId === null) {
895
+ throw 'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';
896
+ }
897
+ // verify the required parameter 'body' is set
898
+ if (body === undefined || body === null) {
899
+ throw 'Missing the required parameter "body" when calling putBusinessrulesSchema';
900
+ }
901
+
902
+ return this.apiClient.callApi(
903
+ '/api/v2/businessrules/schemas/{schemaId}',
904
+ 'PUT',
905
+ { 'schemaId': schemaId },
906
+ { },
907
+ { },
908
+ { },
909
+ body,
910
+ ['PureCloud OAuth'],
911
+ ['application/json'],
912
+ ['application/json']
913
+ );
914
+ }
915
+
916
+ }
917
+
918
+
919
+ export default BusinessRulesApi;