purecloud-platform-client-v2 136.1.0 → 137.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.
- package/README.md +2 -2
- package/dist/node/purecloud-platform-client-v2.js +9544 -9538
- package/dist/web-amd/purecloud-platform-client-v2.js +9544 -9538
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +9544 -9538
- package/dist/web-cjs/purecloud-platform-client-v2.js +9544 -9538
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +5262 -74
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +14 -5
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +56 -56
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +231 -231
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +534 -534
- package/src/purecloud-platform-client-v2/api/AuditApi.js +31 -31
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +212 -212
- package/src/purecloud-platform-client-v2/api/BillingApi.js +12 -12
- package/src/purecloud-platform-client-v2/api/ChatApi.js +16 -16
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +96 -96
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +192 -192
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +808 -808
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +17 -17
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +337 -337
- package/src/purecloud-platform-client-v2/api/FaxApi.js +31 -31
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +11 -11
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +246 -246
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +21 -21
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +26 -26
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +88 -88
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +72 -72
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +171 -171
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +311 -311
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +146 -146
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +131 -131
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +151 -151
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +51 -51
- package/src/purecloud-platform-client-v2/api/LearningApi.js +107 -107
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +49 -49
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +41 -41
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +26 -26
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +26 -26
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +43 -43
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +67 -67
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +50 -50
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +81 -81
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +162 -162
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +608 -608
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +64 -64
- package/src/purecloud-platform-client-v2/api/QualityApi.js +285 -285
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +302 -302
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +86 -86
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +536 -536
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +195 -195
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +66 -66
- package/src/purecloud-platform-client-v2/api/SearchApi.js +96 -96
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +194 -194
- package/src/purecloud-platform-client-v2/api/StationsApi.js +28 -28
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +21 -21
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +16 -16
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +657 -657
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +23 -23
- package/src/purecloud-platform-client-v2/api/TokensApi.js +21 -21
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +26 -26
- package/src/purecloud-platform-client-v2/api/UsageApi.js +11 -11
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +31 -31
- package/src/purecloud-platform-client-v2/api/UsersApi.js +413 -413
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +21 -21
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +140 -140
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +97 -97
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +66 -66
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +6 -6
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +26 -26
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +765 -765
- package/src/purecloud-platform-client-v2/index.js +145 -149
|
@@ -5,7 +5,7 @@ class JourneyApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Journey service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 137.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -34,13 +34,13 @@ class JourneyApi {
|
|
|
34
34
|
return this.apiClient.callApi(
|
|
35
35
|
'/api/v2/journey/actionmaps/{actionMapId}',
|
|
36
36
|
'DELETE',
|
|
37
|
-
{ 'actionMapId': actionMapId },
|
|
38
|
-
{ },
|
|
39
|
-
{ },
|
|
40
|
-
{ },
|
|
37
|
+
{ 'actionMapId': actionMapId },
|
|
38
|
+
{ },
|
|
39
|
+
{ },
|
|
40
|
+
{ },
|
|
41
41
|
null,
|
|
42
42
|
['PureCloud OAuth'],
|
|
43
|
-
['application/json'],
|
|
43
|
+
['application/json'],
|
|
44
44
|
['application/json']
|
|
45
45
|
);
|
|
46
46
|
}
|
|
@@ -50,7 +50,7 @@ class JourneyApi {
|
|
|
50
50
|
*
|
|
51
51
|
* @param {String} actionTemplateId ID of the action template.
|
|
52
52
|
* @param {Object} opts Optional parameters
|
|
53
|
-
* @param {Boolean} opts.hardDelete Determines whether Action Template should be soft-deleted (have it
|
|
53
|
+
* @param {Boolean} opts.hardDelete Determines whether Action Template should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default.
|
|
54
54
|
*/
|
|
55
55
|
deleteJourneyActiontemplate(actionTemplateId, opts) {
|
|
56
56
|
opts = opts || {};
|
|
@@ -63,13 +63,13 @@ class JourneyApi {
|
|
|
63
63
|
return this.apiClient.callApi(
|
|
64
64
|
'/api/v2/journey/actiontemplates/{actionTemplateId}',
|
|
65
65
|
'DELETE',
|
|
66
|
-
{ 'actionTemplateId': actionTemplateId },
|
|
67
|
-
{ 'hardDelete': opts['hardDelete'] },
|
|
68
|
-
{ },
|
|
69
|
-
{ },
|
|
66
|
+
{ 'actionTemplateId': actionTemplateId },
|
|
67
|
+
{ 'hardDelete': opts['hardDelete'] },
|
|
68
|
+
{ },
|
|
69
|
+
{ },
|
|
70
70
|
null,
|
|
71
71
|
['PureCloud OAuth'],
|
|
72
|
-
['application/json'],
|
|
72
|
+
['application/json'],
|
|
73
73
|
['application/json']
|
|
74
74
|
);
|
|
75
75
|
}
|
|
@@ -88,13 +88,13 @@ class JourneyApi {
|
|
|
88
88
|
return this.apiClient.callApi(
|
|
89
89
|
'/api/v2/journey/outcomes/{outcomeId}',
|
|
90
90
|
'DELETE',
|
|
91
|
-
{ 'outcomeId': outcomeId },
|
|
92
|
-
{ },
|
|
93
|
-
{ },
|
|
94
|
-
{ },
|
|
91
|
+
{ 'outcomeId': outcomeId },
|
|
92
|
+
{ },
|
|
93
|
+
{ },
|
|
94
|
+
{ },
|
|
95
95
|
null,
|
|
96
96
|
['PureCloud OAuth'],
|
|
97
|
-
['application/json'],
|
|
97
|
+
['application/json'],
|
|
98
98
|
['application/json']
|
|
99
99
|
);
|
|
100
100
|
}
|
|
@@ -113,13 +113,13 @@ class JourneyApi {
|
|
|
113
113
|
return this.apiClient.callApi(
|
|
114
114
|
'/api/v2/journey/segments/{segmentId}',
|
|
115
115
|
'DELETE',
|
|
116
|
-
{ 'segmentId': segmentId },
|
|
117
|
-
{ },
|
|
118
|
-
{ },
|
|
119
|
-
{ },
|
|
116
|
+
{ 'segmentId': segmentId },
|
|
117
|
+
{ },
|
|
118
|
+
{ },
|
|
119
|
+
{ },
|
|
120
120
|
null,
|
|
121
121
|
['PureCloud OAuth'],
|
|
122
|
-
['application/json'],
|
|
122
|
+
['application/json'],
|
|
123
123
|
['application/json']
|
|
124
124
|
);
|
|
125
125
|
}
|
|
@@ -138,13 +138,13 @@ class JourneyApi {
|
|
|
138
138
|
return this.apiClient.callApi(
|
|
139
139
|
'/api/v2/journey/actionmaps/{actionMapId}',
|
|
140
140
|
'GET',
|
|
141
|
-
{ 'actionMapId': actionMapId },
|
|
142
|
-
{ },
|
|
143
|
-
{ },
|
|
144
|
-
{ },
|
|
141
|
+
{ 'actionMapId': actionMapId },
|
|
142
|
+
{ },
|
|
143
|
+
{ },
|
|
144
|
+
{ },
|
|
145
145
|
null,
|
|
146
146
|
['PureCloud OAuth'],
|
|
147
|
-
['application/json'],
|
|
147
|
+
['application/json'],
|
|
148
148
|
['application/json']
|
|
149
149
|
);
|
|
150
150
|
}
|
|
@@ -155,12 +155,12 @@ class JourneyApi {
|
|
|
155
155
|
* @param {Object} opts Optional parameters
|
|
156
156
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
157
157
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
158
|
-
* @param {String} opts.sortBy Field(s) to sort by. Prefix with
|
|
159
|
-
* @param {String} opts.filterField Field to filter by (e.g. filterField=weight or filterField=action.actionTemplate.id). Requires
|
|
160
|
-
* @param {String} opts.filterValue Value to filter by. Requires
|
|
158
|
+
* @param {String} opts.sortBy Field(s) to sort by. Prefix with '-' for descending (e.g. sortBy=displayName,-createdDate).
|
|
159
|
+
* @param {String} opts.filterField Field to filter by (e.g. filterField=weight or filterField=action.actionTemplate.id). Requires 'filterField' to also be set.
|
|
160
|
+
* @param {String} opts.filterValue Value to filter by. Requires 'filterValue' to also be set.
|
|
161
161
|
* @param {Array.<String>} opts.actionMapIds IDs of action maps to return. Use of this parameter is not compatible with pagination, filtering, sorting or querying. A maximum of 100 action maps are allowed per request.
|
|
162
|
-
* @param {Array.<String>} opts.queryFields Action Map field(s) to query on. Requires
|
|
163
|
-
* @param {String} opts.queryValue Value to query on. Requires
|
|
162
|
+
* @param {Array.<String>} opts.queryFields Action Map field(s) to query on. Requires 'queryValue' to also be set.
|
|
163
|
+
* @param {String} opts.queryValue Value to query on. Requires 'queryFields' to also be set.
|
|
164
164
|
*/
|
|
165
165
|
getJourneyActionmaps(opts) {
|
|
166
166
|
opts = opts || {};
|
|
@@ -169,13 +169,13 @@ class JourneyApi {
|
|
|
169
169
|
return this.apiClient.callApi(
|
|
170
170
|
'/api/v2/journey/actionmaps',
|
|
171
171
|
'GET',
|
|
172
|
-
{ },
|
|
173
|
-
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'filterField': opts['filterField'],'filterValue': opts['filterValue'],'actionMapIds': this.apiClient.buildCollectionParam(opts['actionMapIds'], 'multi'),'queryFields': this.apiClient.buildCollectionParam(opts['queryFields'], 'multi'),'queryValue': opts['queryValue'] },
|
|
174
|
-
{ },
|
|
175
|
-
{ },
|
|
172
|
+
{ },
|
|
173
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'filterField': opts['filterField'],'filterValue': opts['filterValue'],'actionMapIds': this.apiClient.buildCollectionParam(opts['actionMapIds'], 'multi'),'queryFields': this.apiClient.buildCollectionParam(opts['queryFields'], 'multi'),'queryValue': opts['queryValue'] },
|
|
174
|
+
{ },
|
|
175
|
+
{ },
|
|
176
176
|
null,
|
|
177
177
|
['PureCloud OAuth'],
|
|
178
|
-
['application/json'],
|
|
178
|
+
['application/json'],
|
|
179
179
|
['application/json']
|
|
180
180
|
);
|
|
181
181
|
}
|
|
@@ -194,13 +194,13 @@ class JourneyApi {
|
|
|
194
194
|
return this.apiClient.callApi(
|
|
195
195
|
'/api/v2/journey/actiontargets/{actionTargetId}',
|
|
196
196
|
'GET',
|
|
197
|
-
{ 'actionTargetId': actionTargetId },
|
|
198
|
-
{ },
|
|
199
|
-
{ },
|
|
200
|
-
{ },
|
|
197
|
+
{ 'actionTargetId': actionTargetId },
|
|
198
|
+
{ },
|
|
199
|
+
{ },
|
|
200
|
+
{ },
|
|
201
201
|
null,
|
|
202
202
|
['PureCloud OAuth'],
|
|
203
|
-
['application/json'],
|
|
203
|
+
['application/json'],
|
|
204
204
|
['application/json']
|
|
205
205
|
);
|
|
206
206
|
}
|
|
@@ -219,13 +219,13 @@ class JourneyApi {
|
|
|
219
219
|
return this.apiClient.callApi(
|
|
220
220
|
'/api/v2/journey/actiontargets',
|
|
221
221
|
'GET',
|
|
222
|
-
{ },
|
|
223
|
-
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
|
|
224
|
-
{ },
|
|
225
|
-
{ },
|
|
222
|
+
{ },
|
|
223
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
|
|
224
|
+
{ },
|
|
225
|
+
{ },
|
|
226
226
|
null,
|
|
227
227
|
['PureCloud OAuth'],
|
|
228
|
-
['application/json'],
|
|
228
|
+
['application/json'],
|
|
229
229
|
['application/json']
|
|
230
230
|
);
|
|
231
231
|
}
|
|
@@ -244,13 +244,13 @@ class JourneyApi {
|
|
|
244
244
|
return this.apiClient.callApi(
|
|
245
245
|
'/api/v2/journey/actiontemplates/{actionTemplateId}',
|
|
246
246
|
'GET',
|
|
247
|
-
{ 'actionTemplateId': actionTemplateId },
|
|
248
|
-
{ },
|
|
249
|
-
{ },
|
|
250
|
-
{ },
|
|
247
|
+
{ 'actionTemplateId': actionTemplateId },
|
|
248
|
+
{ },
|
|
249
|
+
{ },
|
|
250
|
+
{ },
|
|
251
251
|
null,
|
|
252
252
|
['PureCloud OAuth'],
|
|
253
|
-
['application/json'],
|
|
253
|
+
['application/json'],
|
|
254
254
|
['application/json']
|
|
255
255
|
);
|
|
256
256
|
}
|
|
@@ -261,11 +261,11 @@ class JourneyApi {
|
|
|
261
261
|
* @param {Object} opts Optional parameters
|
|
262
262
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
263
263
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
264
|
-
* @param {String} opts.sortBy Field(s) to sort by. Prefix with
|
|
264
|
+
* @param {String} opts.sortBy Field(s) to sort by. Prefix with '-' for descending (e.g. sortBy=name,-createdDate).
|
|
265
265
|
* @param {Object} opts.mediaType Media type
|
|
266
266
|
* @param {Object} opts.state Action template state.
|
|
267
|
-
* @param {Array.<String>} opts.queryFields ActionTemplate field(s) to query on. Requires
|
|
268
|
-
* @param {String} opts.queryValue Value to query on. Requires
|
|
267
|
+
* @param {Array.<String>} opts.queryFields ActionTemplate field(s) to query on. Requires 'queryValue' to also be set.
|
|
268
|
+
* @param {String} opts.queryValue Value to query on. Requires 'queryFields' to also be set.
|
|
269
269
|
*/
|
|
270
270
|
getJourneyActiontemplates(opts) {
|
|
271
271
|
opts = opts || {};
|
|
@@ -274,13 +274,13 @@ class JourneyApi {
|
|
|
274
274
|
return this.apiClient.callApi(
|
|
275
275
|
'/api/v2/journey/actiontemplates',
|
|
276
276
|
'GET',
|
|
277
|
-
{ },
|
|
278
|
-
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'mediaType': opts['mediaType'],'state': opts['state'],'queryFields': this.apiClient.buildCollectionParam(opts['queryFields'], 'multi'),'queryValue': opts['queryValue'] },
|
|
279
|
-
{ },
|
|
280
|
-
{ },
|
|
277
|
+
{ },
|
|
278
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'mediaType': opts['mediaType'],'state': opts['state'],'queryFields': this.apiClient.buildCollectionParam(opts['queryFields'], 'multi'),'queryValue': opts['queryValue'] },
|
|
279
|
+
{ },
|
|
280
|
+
{ },
|
|
281
281
|
null,
|
|
282
282
|
['PureCloud OAuth'],
|
|
283
|
-
['application/json'],
|
|
283
|
+
['application/json'],
|
|
284
284
|
['application/json']
|
|
285
285
|
);
|
|
286
286
|
}
|
|
@@ -299,13 +299,13 @@ class JourneyApi {
|
|
|
299
299
|
return this.apiClient.callApi(
|
|
300
300
|
'/api/v2/journey/outcomes/{outcomeId}',
|
|
301
301
|
'GET',
|
|
302
|
-
{ 'outcomeId': outcomeId },
|
|
303
|
-
{ },
|
|
304
|
-
{ },
|
|
305
|
-
{ },
|
|
302
|
+
{ 'outcomeId': outcomeId },
|
|
303
|
+
{ },
|
|
304
|
+
{ },
|
|
305
|
+
{ },
|
|
306
306
|
null,
|
|
307
307
|
['PureCloud OAuth'],
|
|
308
|
-
['application/json'],
|
|
308
|
+
['application/json'],
|
|
309
309
|
['application/json']
|
|
310
310
|
);
|
|
311
311
|
}
|
|
@@ -316,10 +316,10 @@ class JourneyApi {
|
|
|
316
316
|
* @param {Object} opts Optional parameters
|
|
317
317
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
318
318
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
319
|
-
* @param {String} opts.sortBy Field(s) to sort by. The response can be sorted by any first level property on the Outcome response. Prefix with
|
|
319
|
+
* @param {String} opts.sortBy Field(s) to sort by. The response can be sorted by any first level property on the Outcome response. Prefix with '-' for descending (e.g. sortBy=displayName,-createdDate).
|
|
320
320
|
* @param {Array.<String>} opts.outcomeIds IDs of outcomes to return. Use of this parameter is not compatible with pagination, sorting or querying. A maximum of 20 outcomes are allowed per request.
|
|
321
|
-
* @param {Array.<String>} opts.queryFields Outcome field(s) to query on. Requires
|
|
322
|
-
* @param {String} opts.queryValue Value to query on. Requires
|
|
321
|
+
* @param {Array.<String>} opts.queryFields Outcome field(s) to query on. Requires 'queryValue' to also be set.
|
|
322
|
+
* @param {String} opts.queryValue Value to query on. Requires 'queryFields' to also be set.
|
|
323
323
|
*/
|
|
324
324
|
getJourneyOutcomes(opts) {
|
|
325
325
|
opts = opts || {};
|
|
@@ -328,13 +328,13 @@ class JourneyApi {
|
|
|
328
328
|
return this.apiClient.callApi(
|
|
329
329
|
'/api/v2/journey/outcomes',
|
|
330
330
|
'GET',
|
|
331
|
-
{ },
|
|
332
|
-
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'outcomeIds': this.apiClient.buildCollectionParam(opts['outcomeIds'], 'multi'),'queryFields': this.apiClient.buildCollectionParam(opts['queryFields'], 'multi'),'queryValue': opts['queryValue'] },
|
|
333
|
-
{ },
|
|
334
|
-
{ },
|
|
331
|
+
{ },
|
|
332
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'outcomeIds': this.apiClient.buildCollectionParam(opts['outcomeIds'], 'multi'),'queryFields': this.apiClient.buildCollectionParam(opts['queryFields'], 'multi'),'queryValue': opts['queryValue'] },
|
|
333
|
+
{ },
|
|
334
|
+
{ },
|
|
335
335
|
null,
|
|
336
336
|
['PureCloud OAuth'],
|
|
337
|
-
['application/json'],
|
|
337
|
+
['application/json'],
|
|
338
338
|
['application/json']
|
|
339
339
|
);
|
|
340
340
|
}
|
|
@@ -353,13 +353,13 @@ class JourneyApi {
|
|
|
353
353
|
return this.apiClient.callApi(
|
|
354
354
|
'/api/v2/journey/segments/{segmentId}',
|
|
355
355
|
'GET',
|
|
356
|
-
{ 'segmentId': segmentId },
|
|
357
|
-
{ },
|
|
358
|
-
{ },
|
|
359
|
-
{ },
|
|
356
|
+
{ 'segmentId': segmentId },
|
|
357
|
+
{ },
|
|
358
|
+
{ },
|
|
359
|
+
{ },
|
|
360
360
|
null,
|
|
361
361
|
['PureCloud OAuth'],
|
|
362
|
-
['application/json'],
|
|
362
|
+
['application/json'],
|
|
363
363
|
['application/json']
|
|
364
364
|
);
|
|
365
365
|
}
|
|
@@ -368,13 +368,13 @@ class JourneyApi {
|
|
|
368
368
|
* Retrieve all segments.
|
|
369
369
|
*
|
|
370
370
|
* @param {Object} opts Optional parameters
|
|
371
|
-
* @param {String} opts.sortBy Field(s) to sort by. The response can be sorted by any first level property on the Outcome response. Prefix with
|
|
371
|
+
* @param {String} opts.sortBy Field(s) to sort by. The response can be sorted by any first level property on the Outcome response. Prefix with '-' for descending (e.g. sortBy=displayName,-createdDate).
|
|
372
372
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
373
373
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
374
374
|
* @param {Boolean} opts.isActive Determines whether or not to show only active segments.
|
|
375
375
|
* @param {Array.<String>} opts.segmentIds IDs of segments to return. Use of this parameter is not compatible with pagination, sorting or querying. A maximum of 100 segments are allowed per request.
|
|
376
|
-
* @param {Array.<String>} opts.queryFields Segment field(s) to query on. Requires
|
|
377
|
-
* @param {String} opts.queryValue Value to query on. Requires
|
|
376
|
+
* @param {Array.<String>} opts.queryFields Segment field(s) to query on. Requires 'queryValue' to also be set.
|
|
377
|
+
* @param {String} opts.queryValue Value to query on. Requires 'queryFields' to also be set.
|
|
378
378
|
*/
|
|
379
379
|
getJourneySegments(opts) {
|
|
380
380
|
opts = opts || {};
|
|
@@ -383,13 +383,13 @@ class JourneyApi {
|
|
|
383
383
|
return this.apiClient.callApi(
|
|
384
384
|
'/api/v2/journey/segments',
|
|
385
385
|
'GET',
|
|
386
|
-
{ },
|
|
387
|
-
{ 'sortBy': opts['sortBy'],'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'isActive': opts['isActive'],'segmentIds': this.apiClient.buildCollectionParam(opts['segmentIds'], 'multi'),'queryFields': this.apiClient.buildCollectionParam(opts['queryFields'], 'multi'),'queryValue': opts['queryValue'] },
|
|
388
|
-
{ },
|
|
389
|
-
{ },
|
|
386
|
+
{ },
|
|
387
|
+
{ 'sortBy': opts['sortBy'],'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'isActive': opts['isActive'],'segmentIds': this.apiClient.buildCollectionParam(opts['segmentIds'], 'multi'),'queryFields': this.apiClient.buildCollectionParam(opts['queryFields'], 'multi'),'queryValue': opts['queryValue'] },
|
|
388
|
+
{ },
|
|
389
|
+
{ },
|
|
390
390
|
null,
|
|
391
391
|
['PureCloud OAuth'],
|
|
392
|
-
['application/json'],
|
|
392
|
+
['application/json'],
|
|
393
393
|
['application/json']
|
|
394
394
|
);
|
|
395
395
|
}
|
|
@@ -408,13 +408,13 @@ class JourneyApi {
|
|
|
408
408
|
return this.apiClient.callApi(
|
|
409
409
|
'/api/v2/journey/sessions/{sessionId}',
|
|
410
410
|
'GET',
|
|
411
|
-
{ 'sessionId': sessionId },
|
|
412
|
-
{ },
|
|
413
|
-
{ },
|
|
414
|
-
{ },
|
|
411
|
+
{ 'sessionId': sessionId },
|
|
412
|
+
{ },
|
|
413
|
+
{ },
|
|
414
|
+
{ },
|
|
415
415
|
null,
|
|
416
416
|
['PureCloud OAuth'],
|
|
417
|
-
['application/json'],
|
|
417
|
+
['application/json'],
|
|
418
418
|
['application/json']
|
|
419
419
|
);
|
|
420
420
|
}
|
|
@@ -433,13 +433,13 @@ class JourneyApi {
|
|
|
433
433
|
return this.apiClient.callApi(
|
|
434
434
|
'/api/v2/journey/sessions/{sessionId}/outcomescores',
|
|
435
435
|
'GET',
|
|
436
|
-
{ 'sessionId': sessionId },
|
|
437
|
-
{ },
|
|
438
|
-
{ },
|
|
439
|
-
{ },
|
|
436
|
+
{ 'sessionId': sessionId },
|
|
437
|
+
{ },
|
|
438
|
+
{ },
|
|
439
|
+
{ },
|
|
440
440
|
null,
|
|
441
441
|
['PureCloud OAuth'],
|
|
442
|
-
['application/json'],
|
|
442
|
+
['application/json'],
|
|
443
443
|
['application/json']
|
|
444
444
|
);
|
|
445
445
|
}
|
|
@@ -462,13 +462,13 @@ class JourneyApi {
|
|
|
462
462
|
return this.apiClient.callApi(
|
|
463
463
|
'/api/v2/journey/actionmaps/{actionMapId}',
|
|
464
464
|
'PATCH',
|
|
465
|
-
{ 'actionMapId': actionMapId },
|
|
466
|
-
{ },
|
|
467
|
-
{ },
|
|
468
|
-
{ },
|
|
465
|
+
{ 'actionMapId': actionMapId },
|
|
466
|
+
{ },
|
|
467
|
+
{ },
|
|
468
|
+
{ },
|
|
469
469
|
opts['body'],
|
|
470
470
|
['PureCloud OAuth'],
|
|
471
|
-
['application/json'],
|
|
471
|
+
['application/json'],
|
|
472
472
|
['application/json']
|
|
473
473
|
);
|
|
474
474
|
}
|
|
@@ -491,13 +491,13 @@ class JourneyApi {
|
|
|
491
491
|
return this.apiClient.callApi(
|
|
492
492
|
'/api/v2/journey/actiontargets/{actionTargetId}',
|
|
493
493
|
'PATCH',
|
|
494
|
-
{ 'actionTargetId': actionTargetId },
|
|
495
|
-
{ },
|
|
496
|
-
{ },
|
|
497
|
-
{ },
|
|
494
|
+
{ 'actionTargetId': actionTargetId },
|
|
495
|
+
{ },
|
|
496
|
+
{ },
|
|
497
|
+
{ },
|
|
498
498
|
opts['body'],
|
|
499
499
|
['PureCloud OAuth'],
|
|
500
|
-
['application/json'],
|
|
500
|
+
['application/json'],
|
|
501
501
|
['application/json']
|
|
502
502
|
);
|
|
503
503
|
}
|
|
@@ -520,13 +520,13 @@ class JourneyApi {
|
|
|
520
520
|
return this.apiClient.callApi(
|
|
521
521
|
'/api/v2/journey/actiontemplates/{actionTemplateId}',
|
|
522
522
|
'PATCH',
|
|
523
|
-
{ 'actionTemplateId': actionTemplateId },
|
|
524
|
-
{ },
|
|
525
|
-
{ },
|
|
526
|
-
{ },
|
|
523
|
+
{ 'actionTemplateId': actionTemplateId },
|
|
524
|
+
{ },
|
|
525
|
+
{ },
|
|
526
|
+
{ },
|
|
527
527
|
opts['body'],
|
|
528
528
|
['PureCloud OAuth'],
|
|
529
|
-
['application/json'],
|
|
529
|
+
['application/json'],
|
|
530
530
|
['application/json']
|
|
531
531
|
);
|
|
532
532
|
}
|
|
@@ -549,13 +549,13 @@ class JourneyApi {
|
|
|
549
549
|
return this.apiClient.callApi(
|
|
550
550
|
'/api/v2/journey/outcomes/{outcomeId}',
|
|
551
551
|
'PATCH',
|
|
552
|
-
{ 'outcomeId': outcomeId },
|
|
553
|
-
{ },
|
|
554
|
-
{ },
|
|
555
|
-
{ },
|
|
552
|
+
{ 'outcomeId': outcomeId },
|
|
553
|
+
{ },
|
|
554
|
+
{ },
|
|
555
|
+
{ },
|
|
556
556
|
opts['body'],
|
|
557
557
|
['PureCloud OAuth'],
|
|
558
|
-
['application/json'],
|
|
558
|
+
['application/json'],
|
|
559
559
|
['application/json']
|
|
560
560
|
);
|
|
561
561
|
}
|
|
@@ -578,13 +578,13 @@ class JourneyApi {
|
|
|
578
578
|
return this.apiClient.callApi(
|
|
579
579
|
'/api/v2/journey/segments/{segmentId}',
|
|
580
580
|
'PATCH',
|
|
581
|
-
{ 'segmentId': segmentId },
|
|
582
|
-
{ },
|
|
583
|
-
{ },
|
|
584
|
-
{ },
|
|
581
|
+
{ 'segmentId': segmentId },
|
|
582
|
+
{ },
|
|
583
|
+
{ },
|
|
584
|
+
{ },
|
|
585
585
|
opts['body'],
|
|
586
586
|
['PureCloud OAuth'],
|
|
587
|
-
['application/json'],
|
|
587
|
+
['application/json'],
|
|
588
588
|
['application/json']
|
|
589
589
|
);
|
|
590
590
|
}
|
|
@@ -603,13 +603,13 @@ class JourneyApi {
|
|
|
603
603
|
return this.apiClient.callApi(
|
|
604
604
|
'/api/v2/analytics/journeys/aggregates/query',
|
|
605
605
|
'POST',
|
|
606
|
-
{ },
|
|
607
|
-
{ },
|
|
608
|
-
{ },
|
|
609
|
-
{ },
|
|
606
|
+
{ },
|
|
607
|
+
{ },
|
|
608
|
+
{ },
|
|
609
|
+
{ },
|
|
610
610
|
body,
|
|
611
611
|
['PureCloud OAuth'],
|
|
612
|
-
['application/json'],
|
|
612
|
+
['application/json'],
|
|
613
613
|
['application/json']
|
|
614
614
|
);
|
|
615
615
|
}
|
|
@@ -627,13 +627,13 @@ class JourneyApi {
|
|
|
627
627
|
return this.apiClient.callApi(
|
|
628
628
|
'/api/v2/journey/actionmaps',
|
|
629
629
|
'POST',
|
|
630
|
-
{ },
|
|
631
|
-
{ },
|
|
632
|
-
{ },
|
|
633
|
-
{ },
|
|
630
|
+
{ },
|
|
631
|
+
{ },
|
|
632
|
+
{ },
|
|
633
|
+
{ },
|
|
634
634
|
opts['body'],
|
|
635
635
|
['PureCloud OAuth'],
|
|
636
|
-
['application/json'],
|
|
636
|
+
['application/json'],
|
|
637
637
|
['application/json']
|
|
638
638
|
);
|
|
639
639
|
}
|
|
@@ -651,13 +651,13 @@ class JourneyApi {
|
|
|
651
651
|
return this.apiClient.callApi(
|
|
652
652
|
'/api/v2/journey/actiontemplates',
|
|
653
653
|
'POST',
|
|
654
|
-
{ },
|
|
655
|
-
{ },
|
|
656
|
-
{ },
|
|
657
|
-
{ },
|
|
654
|
+
{ },
|
|
655
|
+
{ },
|
|
656
|
+
{ },
|
|
657
|
+
{ },
|
|
658
658
|
opts['body'],
|
|
659
659
|
['PureCloud OAuth'],
|
|
660
|
-
['application/json'],
|
|
660
|
+
['application/json'],
|
|
661
661
|
['application/json']
|
|
662
662
|
);
|
|
663
663
|
}
|
|
@@ -675,13 +675,13 @@ class JourneyApi {
|
|
|
675
675
|
return this.apiClient.callApi(
|
|
676
676
|
'/api/v2/journey/outcomes',
|
|
677
677
|
'POST',
|
|
678
|
-
{ },
|
|
679
|
-
{ },
|
|
680
|
-
{ },
|
|
681
|
-
{ },
|
|
678
|
+
{ },
|
|
679
|
+
{ },
|
|
680
|
+
{ },
|
|
681
|
+
{ },
|
|
682
682
|
opts['body'],
|
|
683
683
|
['PureCloud OAuth'],
|
|
684
|
-
['application/json'],
|
|
684
|
+
['application/json'],
|
|
685
685
|
['application/json']
|
|
686
686
|
);
|
|
687
687
|
}
|
|
@@ -699,13 +699,13 @@ class JourneyApi {
|
|
|
699
699
|
return this.apiClient.callApi(
|
|
700
700
|
'/api/v2/journey/segments',
|
|
701
701
|
'POST',
|
|
702
|
-
{ },
|
|
703
|
-
{ },
|
|
704
|
-
{ },
|
|
705
|
-
{ },
|
|
702
|
+
{ },
|
|
703
|
+
{ },
|
|
704
|
+
{ },
|
|
705
|
+
{ },
|
|
706
706
|
opts['body'],
|
|
707
707
|
['PureCloud OAuth'],
|
|
708
|
-
['application/json'],
|
|
708
|
+
['application/json'],
|
|
709
709
|
['application/json']
|
|
710
710
|
);
|
|
711
711
|
}
|