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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "219.0.0",
3
+ "version": "221.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",
@@ -27,7 +27,7 @@
27
27
  "author": {
28
28
  "name": "Genesys Developer Evangelists",
29
29
  "email": "DeveloperEvangelists@genesys.com",
30
- "url": "https://developer.mypurecloud.com"
30
+ "url": "https://developer.genesys.cloud/"
31
31
  },
32
32
  "dependencies": {
33
33
  "axios": "^1.7.4",
@@ -6,7 +6,7 @@ import { default as qs } from 'qs';
6
6
 
7
7
  /**
8
8
  * @module purecloud-platform-client-v2/ApiClient
9
- * @version 219.0.0
9
+ * @version 221.0.0
10
10
  */
11
11
  class ApiClient {
12
12
  /**
@@ -101,7 +101,7 @@ class ApiClient {
101
101
  /**
102
102
  * The default HTTP timeout for all API calls.
103
103
  * @type {Number}
104
- * @default 60000
104
+ * @default 16000
105
105
  */
106
106
  this.timeout = 16000;
107
107
 
@@ -5,7 +5,7 @@ class AgentAssistantsApi {
5
5
  /**
6
6
  * AgentAssistants service.
7
7
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
8
- * @version 219.0.0
8
+ * @version 221.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AgentCopilotApi {
5
5
  /**
6
6
  * AgentCopilot service.
7
7
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
8
- * @version 219.0.0
8
+ * @version 221.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AgentUIApi {
5
5
  /**
6
6
  * AgentUI service.
7
7
  * @module purecloud-platform-client-v2/api/AgentUIApi
8
- * @version 219.0.0
8
+ * @version 221.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 219.0.0
8
+ * @version 221.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 219.0.0
8
+ * @version 221.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ArchitectApi {
5
5
  /**
6
6
  * Architect service.
7
7
  * @module purecloud-platform-client-v2/api/ArchitectApi
8
- * @version 219.0.0
8
+ * @version 221.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -1039,7 +1039,6 @@ class ArchitectApi {
1039
1039
  * Get an IVR IdentityResolutionConfig.
1040
1040
  *
1041
1041
  * @param {String} ivrId IVR id
1042
- * getArchitectIvrIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1043
1042
  */
1044
1043
  getArchitectIvrIdentityresolution(ivrId) {
1045
1044
  // verify the required parameter 'ivrId' is set
@@ -1072,6 +1071,7 @@ class ArchitectApi {
1072
1071
  * @param {String} opts.name Name of the IVR to filter by.
1073
1072
  * @param {String} opts.dnis The phone number of the IVR to filter by.
1074
1073
  * @param {String} opts.scheduleGroup The Schedule Group of the IVR to filter by.
1074
+ * @param {Array.<String>} opts.expand Which fields, if any, to expand
1075
1075
  */
1076
1076
  getArchitectIvrs(opts) {
1077
1077
  opts = opts || {};
@@ -1081,7 +1081,7 @@ class ArchitectApi {
1081
1081
  '/api/v2/architect/ivrs',
1082
1082
  'GET',
1083
1083
  { },
1084
- { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'name': opts['name'],'dnis': opts['dnis'],'scheduleGroup': opts['scheduleGroup'] },
1084
+ { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'name': opts['name'],'dnis': opts['dnis'],'scheduleGroup': opts['scheduleGroup'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
1085
1085
  { },
1086
1086
  { },
1087
1087
  null,
@@ -1400,7 +1400,7 @@ class ArchitectApi {
1400
1400
  * @param {Number} opts.pageNumber Page number (default to 1)
1401
1401
  * @param {Number} opts.pageSize Page size (default to 25)
1402
1402
  * @param {String} opts.sortBy Sort by (default to name)
1403
- * @param {String} opts.sortOrder Sort order (default to ASC)
1403
+ * @param {String} opts.sortOrder Sort order (default to asc)
1404
1404
  * @param {String} opts.name Name of the Schedule to filter by.
1405
1405
  * @param {Array.<String>} opts.divisionId List of divisionIds on which to filter.
1406
1406
  */
@@ -3887,7 +3887,6 @@ class ArchitectApi {
3887
3887
  *
3888
3888
  * @param {String} ivrId IVR id
3889
3889
  * @param {Object} body
3890
- * putArchitectIvrIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3891
3890
  */
3892
3891
  putArchitectIvrIdentityresolution(ivrId, body) {
3893
3892
  // verify the required parameter 'ivrId' is set
@@ -5,7 +5,7 @@ class AuditApi {
5
5
  /**
6
6
  * Audit service.
7
7
  * @module purecloud-platform-client-v2/api/AuditApi
8
- * @version 219.0.0
8
+ * @version 221.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 219.0.0
8
+ * @version 221.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class BillingApi {
5
5
  /**
6
6
  * Billing service.
7
7
  * @module purecloud-platform-client-v2/api/BillingApi
8
- * @version 219.0.0
8
+ * @version 221.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -20,6 +20,182 @@ class BillingApi {
20
20
  }
21
21
 
22
22
 
23
+ /**
24
+ * Get billing contract
25
+ * Retrieve a single contract from the system.
26
+ * @param {String} contractId The contract number.
27
+ * getBillingContract is a preview method and is subject to both breaking and non-breaking changes at any time without notice
28
+ */
29
+ getBillingContract(contractId) {
30
+ // verify the required parameter 'contractId' is set
31
+ if (contractId === undefined || contractId === null) {
32
+ throw 'Missing the required parameter "contractId" when calling getBillingContract';
33
+ }
34
+
35
+ return this.apiClient.callApi(
36
+ '/api/v2/billing/contracts/{contractId}',
37
+ 'GET',
38
+ { 'contractId': contractId },
39
+ { },
40
+ { },
41
+ { },
42
+ null,
43
+ ['PureCloud OAuth'],
44
+ ['application/json'],
45
+ ['application/json']
46
+ );
47
+ }
48
+
49
+ /**
50
+ * Get contract billing period
51
+ * Fetch the billing information for a given Organization by billing period.
52
+ * @param {String} contractId The contract number.
53
+ * @param {String} billingPeriodId The Billing Period Id for the Org.
54
+ * getBillingContractBillingperiod is a preview method and is subject to both breaking and non-breaking changes at any time without notice
55
+ */
56
+ getBillingContractBillingperiod(contractId, billingPeriodId) {
57
+ // verify the required parameter 'contractId' is set
58
+ if (contractId === undefined || contractId === null) {
59
+ throw 'Missing the required parameter "contractId" when calling getBillingContractBillingperiod';
60
+ }
61
+ // verify the required parameter 'billingPeriodId' is set
62
+ if (billingPeriodId === undefined || billingPeriodId === null) {
63
+ throw 'Missing the required parameter "billingPeriodId" when calling getBillingContractBillingperiod';
64
+ }
65
+
66
+ return this.apiClient.callApi(
67
+ '/api/v2/billing/contracts/{contractId}/billingperiods/{billingPeriodId}',
68
+ 'GET',
69
+ { 'contractId': contractId,'billingPeriodId': billingPeriodId },
70
+ { },
71
+ { },
72
+ { },
73
+ null,
74
+ ['PureCloud OAuth'],
75
+ ['application/json'],
76
+ ['application/json']
77
+ );
78
+ }
79
+
80
+ /**
81
+ * Get billing contracts
82
+ * Retrieve a list of contracts stored in the system.
83
+ * @param {Object} opts Optional parameters
84
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
85
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
86
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
87
+ * @param {String} opts.dateStart Start date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
88
+ * @param {String} opts.dateEnd End date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
89
+ * @param {Object} opts.status Filter by the status of contracts
90
+ * @param {String} opts.externalNumber Filter by the unique external number.
91
+ * getBillingContracts is a preview method and is subject to both breaking and non-breaking changes at any time without notice
92
+ */
93
+ getBillingContracts(opts) {
94
+ opts = opts || {};
95
+
96
+
97
+ return this.apiClient.callApi(
98
+ '/api/v2/billing/contracts',
99
+ 'GET',
100
+ { },
101
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'dateStart': opts['dateStart'],'dateEnd': opts['dateEnd'],'status': opts['status'],'externalNumber': opts['externalNumber'] },
102
+ { },
103
+ { },
104
+ null,
105
+ ['PureCloud OAuth'],
106
+ ['application/json'],
107
+ ['application/json']
108
+ );
109
+ }
110
+
111
+ /**
112
+ * Get invoice document
113
+ * Fetch the document for a specific invoice.
114
+ * @param {String} invoiceId invoiceId
115
+ * getBillingContractsInvoiceDocument is a preview method and is subject to both breaking and non-breaking changes at any time without notice
116
+ */
117
+ getBillingContractsInvoiceDocument(invoiceId) {
118
+ // verify the required parameter 'invoiceId' is set
119
+ if (invoiceId === undefined || invoiceId === null) {
120
+ throw 'Missing the required parameter "invoiceId" when calling getBillingContractsInvoiceDocument';
121
+ }
122
+
123
+ return this.apiClient.callApi(
124
+ '/api/v2/billing/contracts/invoices/{invoiceId}/document',
125
+ 'GET',
126
+ { 'invoiceId': invoiceId },
127
+ { },
128
+ { },
129
+ { },
130
+ null,
131
+ ['PureCloud OAuth'],
132
+ ['application/json'],
133
+ ['application/json']
134
+ );
135
+ }
136
+
137
+ /**
138
+ * Get invoice lines
139
+ * Fetch a list of all bills for the specified account.
140
+ * @param {String} invoiceId invoiceId
141
+ * @param {Object} opts Optional parameters
142
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
143
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
144
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
145
+ * getBillingContractsInvoiceLines is a preview method and is subject to both breaking and non-breaking changes at any time without notice
146
+ */
147
+ getBillingContractsInvoiceLines(invoiceId, opts) {
148
+ opts = opts || {};
149
+
150
+ // verify the required parameter 'invoiceId' is set
151
+ if (invoiceId === undefined || invoiceId === null) {
152
+ throw 'Missing the required parameter "invoiceId" when calling getBillingContractsInvoiceLines';
153
+ }
154
+
155
+ return this.apiClient.callApi(
156
+ '/api/v2/billing/contracts/invoices/{invoiceId}/lines',
157
+ 'GET',
158
+ { 'invoiceId': invoiceId },
159
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'] },
160
+ { },
161
+ { },
162
+ null,
163
+ ['PureCloud OAuth'],
164
+ ['application/json'],
165
+ ['application/json']
166
+ );
167
+ }
168
+
169
+ /**
170
+ * Get invoices
171
+ * Retrieve a list of invoices stored in the system.
172
+ * @param {Object} opts Optional parameters
173
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
174
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
175
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
176
+ * @param {String} opts.dateStart Start date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
177
+ * @param {String} opts.dateEnd End date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
178
+ * @param {Object} opts.paymentStatus Payment Status
179
+ * getBillingContractsInvoices is a preview method and is subject to both breaking and non-breaking changes at any time without notice
180
+ */
181
+ getBillingContractsInvoices(opts) {
182
+ opts = opts || {};
183
+
184
+
185
+ return this.apiClient.callApi(
186
+ '/api/v2/billing/contracts/invoices',
187
+ 'GET',
188
+ { },
189
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'dateStart': opts['dateStart'],'dateEnd': opts['dateEnd'],'paymentStatus': opts['paymentStatus'] },
190
+ { },
191
+ { },
192
+ null,
193
+ ['PureCloud OAuth'],
194
+ ['application/json'],
195
+ ['application/json']
196
+ );
197
+ }
198
+
23
199
  /**
24
200
  * Get a report of the billable license usages
25
201
  * Report is of the billable usages (e.g. licenses and devices utilized) for a given period. If responses status is InProgress, wait a few seconds, then try the same request again.