purecloud-platform-client-v2 245.1.0 → 247.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 +3 -3
- package/dist/node/purecloud-platform-client-v2.js +1255 -104
- package/dist/web-amd/purecloud-platform-client-v2.js +1255 -104
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +485 -149
- package/dist/web-cjs/purecloud-platform-client-v2.js +539 -168
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +738 -285
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +6 -1
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AssistantCopilotVariationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BackgroundAssistantApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +661 -3
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +159 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +3 -2
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +31 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +26 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +248 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +25 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +1 -10
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +18 -6
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -4237,6 +4237,7 @@ var defaults = {
|
|
|
4237
4237
|
parseArrays: true,
|
|
4238
4238
|
plainObjects: false,
|
|
4239
4239
|
strictDepth: false,
|
|
4240
|
+
strictMerge: true,
|
|
4240
4241
|
strictNullHandling: false,
|
|
4241
4242
|
throwOnLimitExceeded: false
|
|
4242
4243
|
};
|
|
@@ -4275,7 +4276,7 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
4275
4276
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
4276
4277
|
cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
4277
4278
|
|
|
4278
|
-
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
4279
|
+
var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit;
|
|
4279
4280
|
var parts = cleanStr.split(
|
|
4280
4281
|
options.delimiter,
|
|
4281
4282
|
options.throwOnLimitExceeded ? limit + 1 : limit
|
|
@@ -4342,9 +4343,16 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
4342
4343
|
val = isArray(val) ? [val] : val;
|
|
4343
4344
|
}
|
|
4344
4345
|
|
|
4346
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
4347
|
+
if (options.throwOnLimitExceeded) {
|
|
4348
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
4349
|
+
}
|
|
4350
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
4351
|
+
}
|
|
4352
|
+
|
|
4345
4353
|
if (key !== null) {
|
|
4346
4354
|
var existing = has.call(obj, key);
|
|
4347
|
-
if (existing && options.duplicates === 'combine') {
|
|
4355
|
+
if (existing && (options.duplicates === 'combine' || part.indexOf('[]=') > -1)) {
|
|
4348
4356
|
obj[key] = utils.combine(
|
|
4349
4357
|
obj[key],
|
|
4350
4358
|
val,
|
|
@@ -4392,17 +4400,21 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
4392
4400
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
4393
4401
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
4394
4402
|
var index = parseInt(decodedRoot, 10);
|
|
4395
|
-
|
|
4396
|
-
obj = { 0: leaf };
|
|
4397
|
-
} else if (
|
|
4398
|
-
!isNaN(index)
|
|
4403
|
+
var isValidArrayIndex = !isNaN(index)
|
|
4399
4404
|
&& root !== decodedRoot
|
|
4400
4405
|
&& String(index) === decodedRoot
|
|
4401
4406
|
&& index >= 0
|
|
4402
|
-
&&
|
|
4403
|
-
) {
|
|
4407
|
+
&& options.parseArrays;
|
|
4408
|
+
if (!options.parseArrays && decodedRoot === '') {
|
|
4409
|
+
obj = { 0: leaf };
|
|
4410
|
+
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
4404
4411
|
obj = [];
|
|
4405
4412
|
obj[index] = leaf;
|
|
4413
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
4414
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
4415
|
+
} else if (isValidArrayIndex) {
|
|
4416
|
+
obj[index] = leaf;
|
|
4417
|
+
utils.markOverflow(obj, index);
|
|
4406
4418
|
} else if (decodedRoot !== '__proto__') {
|
|
4407
4419
|
obj[decodedRoot] = leaf;
|
|
4408
4420
|
}
|
|
@@ -4442,7 +4454,7 @@ var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
|
|
|
4442
4454
|
}
|
|
4443
4455
|
}
|
|
4444
4456
|
|
|
4445
|
-
keys.
|
|
4457
|
+
keys[keys.length] = parent;
|
|
4446
4458
|
}
|
|
4447
4459
|
|
|
4448
4460
|
var i = 0;
|
|
@@ -4456,7 +4468,7 @@ var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
|
|
|
4456
4468
|
}
|
|
4457
4469
|
}
|
|
4458
4470
|
|
|
4459
|
-
keys.
|
|
4471
|
+
keys[keys.length] = segment[1];
|
|
4460
4472
|
}
|
|
4461
4473
|
|
|
4462
4474
|
if (segment) {
|
|
@@ -4464,7 +4476,7 @@ var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
|
|
|
4464
4476
|
throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
|
|
4465
4477
|
}
|
|
4466
4478
|
|
|
4467
|
-
keys.
|
|
4479
|
+
keys[keys.length] = '[' + key.slice(segment.index) + ']';
|
|
4468
4480
|
}
|
|
4469
4481
|
|
|
4470
4482
|
return keys;
|
|
@@ -4540,6 +4552,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
4540
4552
|
parseArrays: opts.parseArrays !== false,
|
|
4541
4553
|
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
4542
4554
|
strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
|
|
4555
|
+
strictMerge: typeof opts.strictMerge === 'boolean' ? !!opts.strictMerge : defaults.strictMerge,
|
|
4543
4556
|
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
4544
4557
|
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
|
|
4545
4558
|
};
|
|
@@ -4962,7 +4975,7 @@ var setMaxIndex = function setMaxIndex(obj, maxIndex) {
|
|
|
4962
4975
|
var hexTable = (function () {
|
|
4963
4976
|
var array = [];
|
|
4964
4977
|
for (var i = 0; i < 256; ++i) {
|
|
4965
|
-
array.
|
|
4978
|
+
array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
|
|
4966
4979
|
}
|
|
4967
4980
|
|
|
4968
4981
|
return array;
|
|
@@ -4978,7 +4991,7 @@ var compactQueue = function compactQueue(queue) {
|
|
|
4978
4991
|
|
|
4979
4992
|
for (var j = 0; j < obj.length; ++j) {
|
|
4980
4993
|
if (typeof obj[j] !== 'undefined') {
|
|
4981
|
-
compacted.
|
|
4994
|
+
compacted[compacted.length] = obj[j];
|
|
4982
4995
|
}
|
|
4983
4996
|
}
|
|
4984
4997
|
|
|
@@ -5006,13 +5019,19 @@ var merge = function merge(target, source, options) {
|
|
|
5006
5019
|
|
|
5007
5020
|
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
5008
5021
|
if (isArray(target)) {
|
|
5009
|
-
target.
|
|
5022
|
+
var nextIndex = target.length;
|
|
5023
|
+
if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) {
|
|
5024
|
+
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
5025
|
+
}
|
|
5026
|
+
target[nextIndex] = source;
|
|
5010
5027
|
} else if (target && typeof target === 'object') {
|
|
5011
5028
|
if (isOverflow(target)) {
|
|
5012
5029
|
// Add at next numeric index for overflow objects
|
|
5013
5030
|
var newIndex = getMaxIndex(target) + 1;
|
|
5014
5031
|
target[newIndex] = source;
|
|
5015
5032
|
setMaxIndex(target, newIndex);
|
|
5033
|
+
} else if (options && options.strictMerge) {
|
|
5034
|
+
return [target, source];
|
|
5016
5035
|
} else if (
|
|
5017
5036
|
(options && (options.plainObjects || options.allowPrototypes))
|
|
5018
5037
|
|| !has.call(Object.prototype, source)
|
|
@@ -5039,7 +5058,11 @@ var merge = function merge(target, source, options) {
|
|
|
5039
5058
|
}
|
|
5040
5059
|
return markOverflow(result, getMaxIndex(source) + 1);
|
|
5041
5060
|
}
|
|
5042
|
-
|
|
5061
|
+
var combined = [target].concat(source);
|
|
5062
|
+
if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) {
|
|
5063
|
+
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
5064
|
+
}
|
|
5065
|
+
return combined;
|
|
5043
5066
|
}
|
|
5044
5067
|
|
|
5045
5068
|
var mergeTarget = target;
|
|
@@ -5054,7 +5077,7 @@ var merge = function merge(target, source, options) {
|
|
|
5054
5077
|
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
5055
5078
|
target[i] = merge(targetItem, item, options);
|
|
5056
5079
|
} else {
|
|
5057
|
-
target.
|
|
5080
|
+
target[target.length] = item;
|
|
5058
5081
|
}
|
|
5059
5082
|
} else {
|
|
5060
5083
|
target[i] = item;
|
|
@@ -5071,6 +5094,17 @@ var merge = function merge(target, source, options) {
|
|
|
5071
5094
|
} else {
|
|
5072
5095
|
acc[key] = value;
|
|
5073
5096
|
}
|
|
5097
|
+
|
|
5098
|
+
if (isOverflow(source) && !isOverflow(acc)) {
|
|
5099
|
+
markOverflow(acc, getMaxIndex(source));
|
|
5100
|
+
}
|
|
5101
|
+
if (isOverflow(acc)) {
|
|
5102
|
+
var keyNum = parseInt(key, 10);
|
|
5103
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
5104
|
+
setMaxIndex(acc, keyNum);
|
|
5105
|
+
}
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5074
5108
|
return acc;
|
|
5075
5109
|
}, mergeTarget);
|
|
5076
5110
|
};
|
|
@@ -5187,8 +5221,8 @@ var compact = function compact(value) {
|
|
|
5187
5221
|
var key = keys[j];
|
|
5188
5222
|
var val = obj[key];
|
|
5189
5223
|
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
5190
|
-
queue.
|
|
5191
|
-
refs.
|
|
5224
|
+
queue[queue.length] = { obj: obj, prop: key };
|
|
5225
|
+
refs[refs.length] = val;
|
|
5192
5226
|
}
|
|
5193
5227
|
}
|
|
5194
5228
|
}
|
|
@@ -5230,7 +5264,7 @@ var maybeMap = function maybeMap(val, fn) {
|
|
|
5230
5264
|
if (isArray(val)) {
|
|
5231
5265
|
var mapped = [];
|
|
5232
5266
|
for (var i = 0; i < val.length; i += 1) {
|
|
5233
|
-
mapped.
|
|
5267
|
+
mapped[mapped.length] = fn(val[i]);
|
|
5234
5268
|
}
|
|
5235
5269
|
return mapped;
|
|
5236
5270
|
}
|
|
@@ -5247,6 +5281,7 @@ module.exports = {
|
|
|
5247
5281
|
isBuffer: isBuffer,
|
|
5248
5282
|
isOverflow: isOverflow,
|
|
5249
5283
|
isRegExp: isRegExp,
|
|
5284
|
+
markOverflow: markOverflow,
|
|
5250
5285
|
maybeMap: maybeMap,
|
|
5251
5286
|
merge: merge
|
|
5252
5287
|
};
|
|
@@ -5685,7 +5720,7 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
5685
5720
|
* @param {*} val The value to test
|
|
5686
5721
|
*
|
|
5687
5722
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
5688
|
-
*/var isUndefined=typeOfTest(
|
|
5723
|
+
*/var isUndefined=typeOfTest('undefined');/**
|
|
5689
5724
|
* Determine if a value is a Buffer
|
|
5690
5725
|
*
|
|
5691
5726
|
* @param {*} val The value to test
|
|
@@ -5697,36 +5732,36 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
5697
5732
|
* @param {*} val The value to test
|
|
5698
5733
|
*
|
|
5699
5734
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
5700
|
-
*/var isArrayBuffer=kindOfTest(
|
|
5735
|
+
*/var isArrayBuffer=kindOfTest('ArrayBuffer');/**
|
|
5701
5736
|
* Determine if a value is a view on an ArrayBuffer
|
|
5702
5737
|
*
|
|
5703
5738
|
* @param {*} val The value to test
|
|
5704
5739
|
*
|
|
5705
5740
|
* @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
|
|
5706
|
-
*/function isArrayBufferView(val){var result;if(typeof ArrayBuffer!==
|
|
5741
|
+
*/function isArrayBufferView(val){var result;if(typeof ArrayBuffer!=='undefined'&&ArrayBuffer.isView){result=ArrayBuffer.isView(val);}else{result=val&&val.buffer&&isArrayBuffer(val.buffer);}return result;}/**
|
|
5707
5742
|
* Determine if a value is a String
|
|
5708
5743
|
*
|
|
5709
5744
|
* @param {*} val The value to test
|
|
5710
5745
|
*
|
|
5711
5746
|
* @returns {boolean} True if value is a String, otherwise false
|
|
5712
|
-
*/var isString=typeOfTest(
|
|
5747
|
+
*/var isString=typeOfTest('string');/**
|
|
5713
5748
|
* Determine if a value is a Function
|
|
5714
5749
|
*
|
|
5715
5750
|
* @param {*} val The value to test
|
|
5716
5751
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
5717
|
-
*/var isFunction$1=typeOfTest(
|
|
5752
|
+
*/var isFunction$1=typeOfTest('function');/**
|
|
5718
5753
|
* Determine if a value is a Number
|
|
5719
5754
|
*
|
|
5720
5755
|
* @param {*} val The value to test
|
|
5721
5756
|
*
|
|
5722
5757
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
5723
|
-
*/var isNumber=typeOfTest(
|
|
5758
|
+
*/var isNumber=typeOfTest('number');/**
|
|
5724
5759
|
* Determine if a value is an Object
|
|
5725
5760
|
*
|
|
5726
5761
|
* @param {*} thing The value to test
|
|
5727
5762
|
*
|
|
5728
5763
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
5729
|
-
*/var isObject=function isObject(thing){return thing!==null&&_typeof(thing)===
|
|
5764
|
+
*/var isObject=function isObject(thing){return thing!==null&&_typeof(thing)==='object';};/**
|
|
5730
5765
|
* Determine if a value is a Boolean
|
|
5731
5766
|
*
|
|
5732
5767
|
* @param {*} thing The value to test
|
|
@@ -5737,7 +5772,7 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
5737
5772
|
* @param {*} val The value to test
|
|
5738
5773
|
*
|
|
5739
5774
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
5740
|
-
*/var isPlainObject=function isPlainObject(val){if(kindOf(val)!==
|
|
5775
|
+
*/var isPlainObject=function isPlainObject(val){if(kindOf(val)!=='object'){return false;}var prototype=getPrototypeOf(val);return(prototype===null||prototype===Object.prototype||Object.getPrototypeOf(prototype)===null)&&!(toStringTag in val)&&!(iterator in val);};/**
|
|
5741
5776
|
* Determine if a value is an empty object (safely handles Buffers)
|
|
5742
5777
|
*
|
|
5743
5778
|
* @param {*} val The value to test
|
|
@@ -5751,25 +5786,42 @@ return false;}};/**
|
|
|
5751
5786
|
* @param {*} val The value to test
|
|
5752
5787
|
*
|
|
5753
5788
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
5754
|
-
*/var isDate=kindOfTest(
|
|
5789
|
+
*/var isDate=kindOfTest('Date');/**
|
|
5755
5790
|
* Determine if a value is a File
|
|
5756
5791
|
*
|
|
5757
5792
|
* @param {*} val The value to test
|
|
5758
5793
|
*
|
|
5759
5794
|
* @returns {boolean} True if value is a File, otherwise false
|
|
5760
|
-
*/var isFile=kindOfTest(
|
|
5795
|
+
*/var isFile=kindOfTest('File');/**
|
|
5796
|
+
* Determine if a value is a React Native Blob
|
|
5797
|
+
* React Native "blob": an object with a `uri` attribute. Optionally, it can
|
|
5798
|
+
* also have a `name` and `type` attribute to specify filename and content type
|
|
5799
|
+
*
|
|
5800
|
+
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
5801
|
+
*
|
|
5802
|
+
* @param {*} value The value to test
|
|
5803
|
+
*
|
|
5804
|
+
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
5805
|
+
*/var isReactNativeBlob=function isReactNativeBlob(value){return!!(value&&typeof value.uri!=='undefined');};/**
|
|
5806
|
+
* Determine if environment is React Native
|
|
5807
|
+
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
5808
|
+
*
|
|
5809
|
+
* @param {*} formData The formData to test
|
|
5810
|
+
*
|
|
5811
|
+
* @returns {boolean} True if environment is React Native, otherwise false
|
|
5812
|
+
*/var isReactNative=function isReactNative(formData){return formData&&typeof formData.getParts!=='undefined';};/**
|
|
5761
5813
|
* Determine if a value is a Blob
|
|
5762
5814
|
*
|
|
5763
5815
|
* @param {*} val The value to test
|
|
5764
5816
|
*
|
|
5765
5817
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
5766
|
-
*/var isBlob=kindOfTest(
|
|
5818
|
+
*/var isBlob=kindOfTest('Blob');/**
|
|
5767
5819
|
* Determine if a value is a FileList
|
|
5768
5820
|
*
|
|
5769
5821
|
* @param {*} val The value to test
|
|
5770
5822
|
*
|
|
5771
5823
|
* @returns {boolean} True if value is a File, otherwise false
|
|
5772
|
-
*/var isFileList=kindOfTest(
|
|
5824
|
+
*/var isFileList=kindOfTest('FileList');/**
|
|
5773
5825
|
* Determine if a value is a Stream
|
|
5774
5826
|
*
|
|
5775
5827
|
* @param {*} val The value to test
|
|
@@ -5781,20 +5833,20 @@ return false;}};/**
|
|
|
5781
5833
|
* @param {*} thing The value to test
|
|
5782
5834
|
*
|
|
5783
5835
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
5784
|
-
*/var isFormData=function isFormData(thing){var kind;return thing&&(
|
|
5785
|
-
kind===
|
|
5836
|
+
*/function getGlobal(){if(typeof globalThis!=='undefined')return globalThis;if(typeof self!=='undefined')return self;if(typeof window!=='undefined')return window;if(typeof global$1!=='undefined')return global$1;return{};}var G=getGlobal();var FormDataCtor=typeof G.FormData!=='undefined'?G.FormData:undefined;var isFormData=function isFormData(thing){var kind;return thing&&(FormDataCtor&&thing instanceof FormDataCtor||isFunction$1(thing.append)&&((kind=kindOf(thing))==='formdata'||// detect form-data instance
|
|
5837
|
+
kind==='object'&&isFunction$1(thing.toString)&&thing.toString()==='[object FormData]'));};/**
|
|
5786
5838
|
* Determine if a value is a URLSearchParams object
|
|
5787
5839
|
*
|
|
5788
5840
|
* @param {*} val The value to test
|
|
5789
5841
|
*
|
|
5790
5842
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
5791
|
-
*/var isURLSearchParams=kindOfTest(
|
|
5843
|
+
*/var isURLSearchParams=kindOfTest('URLSearchParams');var _map=['ReadableStream','Request','Response','Headers'].map(kindOfTest),_map2=_slicedToArray(_map,4),isReadableStream=_map2[0],isRequest=_map2[1],isResponse=_map2[2],isHeaders=_map2[3];/**
|
|
5792
5844
|
* Trim excess whitespace off the beginning and end of a string
|
|
5793
5845
|
*
|
|
5794
5846
|
* @param {String} str The String to trim
|
|
5795
5847
|
*
|
|
5796
5848
|
* @returns {String} The String freed of excess whitespace
|
|
5797
|
-
*/var trim=function trim(str){return str.trim?str.trim():str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
5849
|
+
*/var trim=function trim(str){return str.trim?str.trim():str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');};/**
|
|
5798
5850
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
5799
5851
|
*
|
|
5800
5852
|
* If `obj` is an Array callback will be called passing
|
|
@@ -5810,11 +5862,18 @@ kind==="object"&&isFunction$1(thing.toString)&&thing.toString()==="[object FormD
|
|
|
5810
5862
|
* @param {Boolean} [options.allOwnKeys = false]
|
|
5811
5863
|
* @returns {any}
|
|
5812
5864
|
*/function forEach(obj,fn){var _ref3=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref3$allOwnKeys=_ref3.allOwnKeys,allOwnKeys=_ref3$allOwnKeys===void 0?false:_ref3$allOwnKeys;// Don't bother if no value provided
|
|
5813
|
-
if(obj===null||typeof obj===
|
|
5814
|
-
if(_typeof(obj)!==
|
|
5865
|
+
if(obj===null||typeof obj==='undefined'){return;}var i;var l;// Force an array if not already something iterable
|
|
5866
|
+
if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray$1(obj)){// Iterate over array values
|
|
5815
5867
|
for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Buffer check
|
|
5816
5868
|
if(isBuffer$1(obj)){return;}// Iterate over object keys
|
|
5817
|
-
var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=keys.length;var key;for(i=0;i<len;i++){key=keys[i];fn.call(null,obj[key],key,obj);}}}
|
|
5869
|
+
var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=keys.length;var key;for(i=0;i<len;i++){key=keys[i];fn.call(null,obj[key],key,obj);}}}/**
|
|
5870
|
+
* Finds a key in an object, case-insensitive, returning the actual key name.
|
|
5871
|
+
* Returns null if the object is a Buffer or if no match is found.
|
|
5872
|
+
*
|
|
5873
|
+
* @param {Object} obj - The object to search.
|
|
5874
|
+
* @param {string} key - The key to find (case-insensitive).
|
|
5875
|
+
* @returns {?string} The actual key name if found, otherwise null.
|
|
5876
|
+
*/function findKey(obj,key){if(isBuffer$1(obj)){return null;}key=key.toLowerCase();var keys=Object.keys(obj);var i=keys.length;var _key;while(i-->0){_key=keys[i];if(key===_key.toLowerCase()){return _key;}}return null;}var _global=function(){/*eslint no-undef:0*/if(typeof globalThis!=='undefined')return globalThis;return typeof self!=='undefined'?self:typeof window!=='undefined'?window:global$1;}();var isContextDefined=function isContextDefined(context){return!isUndefined(context)&&context!==_global;};/**
|
|
5818
5877
|
* Accepts varargs expecting each argument to be an object, then
|
|
5819
5878
|
* immutably merges the properties of each object and returns result.
|
|
5820
5879
|
*
|
|
@@ -5832,7 +5891,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
5832
5891
|
*
|
|
5833
5892
|
* @returns {Object} Result of all merge properties
|
|
5834
5893
|
*/function merge(/* obj1, obj2, obj3, ... */){var _ref4=isContextDefined(this)&&this||{},caseless=_ref4.caseless,skipUndefined=_ref4.skipUndefined;var result={};var assignValue=function assignValue(val,key){// Skip dangerous property names to prevent prototype pollution
|
|
5835
|
-
if(key===
|
|
5894
|
+
if(key==='__proto__'||key==='constructor'||key==='prototype'){return;}var targetKey=caseless&&findKey(result,key)||key;if(isPlainObject(result[targetKey])&&isPlainObject(val)){result[targetKey]=merge(result[targetKey],val);}else if(isPlainObject(val)){result[targetKey]=merge({},val);}else if(isArray$1(val)){result[targetKey]=val.slice();}else if(!skipUndefined||!isUndefined(val)){result[targetKey]=val;}};for(var i=0,l=arguments.length;i<l;i++){arguments[i]&&forEach(arguments[i],assignValue);}return result;}/**
|
|
5836
5895
|
* Extends object a by mutably adding to it the properties of object b.
|
|
5837
5896
|
*
|
|
5838
5897
|
* @param {Object} a The object to be extended
|
|
@@ -5856,7 +5915,7 @@ if(key==="__proto__"||key==="constructor"||key==="prototype"){return;}var target
|
|
|
5856
5915
|
* @param {object} [descriptors]
|
|
5857
5916
|
*
|
|
5858
5917
|
* @returns {void}
|
|
5859
|
-
*/var inherits=function inherits(constructor,superConstructor,props,descriptors){constructor.prototype=Object.create(superConstructor.prototype,descriptors);Object.defineProperty(constructor.prototype,
|
|
5918
|
+
*/var inherits=function inherits(constructor,superConstructor,props,descriptors){constructor.prototype=Object.create(superConstructor.prototype,descriptors);Object.defineProperty(constructor.prototype,'constructor',{value:constructor,writable:true,enumerable:false,configurable:true});Object.defineProperty(constructor,'super',{value:superConstructor.prototype});props&&Object.assign(constructor.prototype,props);};/**
|
|
5860
5919
|
* Resolve object with deep prototype chain to a flat object
|
|
5861
5920
|
* @param {Object} sourceObj source object
|
|
5862
5921
|
* @param {Object} [destObj]
|
|
@@ -5888,7 +5947,7 @@ if(sourceObj==null)return destObj;do{props=Object.getOwnPropertyNames(sourceObj)
|
|
|
5888
5947
|
* @returns {Array}
|
|
5889
5948
|
*/// eslint-disable-next-line func-names
|
|
5890
5949
|
var isTypedArray=function(TypedArray){// eslint-disable-next-line func-names
|
|
5891
|
-
return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof Uint8Array!==
|
|
5950
|
+
return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof Uint8Array!=='undefined'&&getPrototypeOf(Uint8Array));/**
|
|
5892
5951
|
* For each entry in the object, call the function with the key and value.
|
|
5893
5952
|
*
|
|
5894
5953
|
* @param {Object<any, any>} obj - The object to iterate over.
|
|
@@ -5902,27 +5961,61 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
5902
5961
|
* @param {string} str - The string to search.
|
|
5903
5962
|
*
|
|
5904
5963
|
* @returns {Array<boolean>}
|
|
5905
|
-
*/var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest(
|
|
5964
|
+
*/var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest('HTMLFormElement');var toCamelCase=function toCamelCase(str){return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(m,p1,p2){return p1.toUpperCase()+p2;});};/* Creating a function that will check if an object has a property. */var hasOwnProperty=function(_ref6){var hasOwnProperty=_ref6.hasOwnProperty;return function(obj,prop){return hasOwnProperty.call(obj,prop);};}(Object.prototype);/**
|
|
5906
5965
|
* Determine if a value is a RegExp object
|
|
5907
5966
|
*
|
|
5908
5967
|
* @param {*} val The value to test
|
|
5909
5968
|
*
|
|
5910
5969
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
5911
|
-
*/var isRegExp=kindOfTest(
|
|
5970
|
+
*/var isRegExp=kindOfTest('RegExp');var reduceDescriptors=function reduceDescriptors(obj,reducer){var descriptors=Object.getOwnPropertyDescriptors(obj);var reducedDescriptors={};forEach(descriptors,function(descriptor,name){var ret;if((ret=reducer(descriptor,name,obj))!==false){reducedDescriptors[name]=ret||descriptor;}});Object.defineProperties(obj,reducedDescriptors);};/**
|
|
5912
5971
|
* Makes all methods read-only
|
|
5913
5972
|
* @param {Object} obj
|
|
5914
5973
|
*/var freezeMethods=function freezeMethods(obj){reduceDescriptors(obj,function(descriptor,name){// skip restricted props in strict mode
|
|
5915
|
-
if(isFunction$1(obj)&&[
|
|
5974
|
+
if(isFunction$1(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return false;}var value=obj[name];if(!isFunction$1(value))return;descriptor.enumerable=false;if('writable'in descriptor){descriptor.writable=false;return;}if(!descriptor.set){descriptor.set=function(){throw Error("Can not rewrite read-only method '"+name+"'");};}});};/**
|
|
5975
|
+
* Converts an array or a delimited string into an object set with values as keys and true as values.
|
|
5976
|
+
* Useful for fast membership checks.
|
|
5977
|
+
*
|
|
5978
|
+
* @param {Array|string} arrayOrString - The array or string to convert.
|
|
5979
|
+
* @param {string} delimiter - The delimiter to use if input is a string.
|
|
5980
|
+
* @returns {Object} An object with keys from the array or string, values set to true.
|
|
5981
|
+
*/var toObjectSet=function toObjectSet(arrayOrString,delimiter){var obj={};var define=function define(arr){arr.forEach(function(value){obj[value]=true;});};isArray$1(arrayOrString)?define(arrayOrString):define(String(arrayOrString).split(delimiter));return obj;};var noop=function noop(){};var toFiniteNumber=function toFiniteNumber(value,defaultValue){return value!=null&&Number.isFinite(value=+value)?value:defaultValue;};/**
|
|
5916
5982
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
5917
5983
|
*
|
|
5918
5984
|
* @param {unknown} thing - The thing to check.
|
|
5919
5985
|
*
|
|
5920
5986
|
* @returns {boolean}
|
|
5921
|
-
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction$1(thing.append)&&thing[toStringTag]===
|
|
5922
|
-
|
|
5987
|
+
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction$1(thing.append)&&thing[toStringTag]==='FormData'&&thing[iterator]);}/**
|
|
5988
|
+
* Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
|
|
5989
|
+
*
|
|
5990
|
+
* @param {Object} obj - The object to convert.
|
|
5991
|
+
* @returns {Object} The JSON-compatible object.
|
|
5992
|
+
*/var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var _visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}//Buffer check
|
|
5993
|
+
if(isBuffer$1(source)){return source;}if(!('toJSON'in source)){stack[i]=source;var target=isArray$1(source)?[]:{};forEach(source,function(value,key){var reducedValue=_visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return _visit(obj,0);};/**
|
|
5994
|
+
* Determines if a value is an async function.
|
|
5995
|
+
*
|
|
5996
|
+
* @param {*} thing - The value to test.
|
|
5997
|
+
* @returns {boolean} True if value is an async function, otherwise false.
|
|
5998
|
+
*/var isAsyncFn=kindOfTest('AsyncFunction');/**
|
|
5999
|
+
* Determines if a value is thenable (has then and catch methods).
|
|
6000
|
+
*
|
|
6001
|
+
* @param {*} thing - The value to test.
|
|
6002
|
+
* @returns {boolean} True if value is thenable, otherwise false.
|
|
6003
|
+
*/var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction$1(thing))&&isFunction$1(thing.then)&&isFunction$1(thing["catch"]);};// original code
|
|
5923
6004
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
5924
|
-
|
|
5925
|
-
|
|
6005
|
+
/**
|
|
6006
|
+
* Provides a cross-platform setImmediate implementation.
|
|
6007
|
+
* Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
|
|
6008
|
+
*
|
|
6009
|
+
* @param {boolean} setImmediateSupported - Whether setImmediate is supported.
|
|
6010
|
+
* @param {boolean} postMessageSupported - Whether postMessage is supported.
|
|
6011
|
+
* @returns {Function} A function to schedule a callback asynchronously.
|
|
6012
|
+
*/var _setImmediate=function(setImmediateSupported,postMessageSupported){if(setImmediateSupported){return setImmediate;}return postMessageSupported?function(token,callbacks){_global.addEventListener('message',function(_ref7){var source=_ref7.source,data=_ref7.data;if(source===_global&&data===token){callbacks.length&&callbacks.shift()();}},false);return function(cb){callbacks.push(cb);_global.postMessage(token,'*');};}("axios@".concat(Math.random()),[]):function(cb){return setTimeout(cb);};}(typeof setImmediate==='function',isFunction$1(_global.postMessage));/**
|
|
6013
|
+
* Schedules a microtask or asynchronous callback as soon as possible.
|
|
6014
|
+
* Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
|
|
6015
|
+
*
|
|
6016
|
+
* @type {Function}
|
|
6017
|
+
*/var asap=typeof queueMicrotask!=='undefined'?queueMicrotask.bind(_global):typeof process!=='undefined'&&nextTick||_setImmediate;// *********************
|
|
6018
|
+
var isIterable=function isIterable(thing){return thing!=null&&isFunction$1(thing[iterator]);};var utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer$1,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isReactNativeBlob:isReactNativeBlob,isReactNative:isReactNative,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction$1,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
|
|
5926
6019
|
reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap,isIterable:isIterable};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
|
|
5927
6020
|
// if there are two placeholders, than the two characters before it
|
|
5928
6021
|
// represent one byte
|
|
@@ -6087,11 +6180,15 @@ function isSlowBuffer(obj){return typeof obj.readFloatLE==='function'&&typeof ob
|
|
|
6087
6180
|
* @param {Object} [response] The response.
|
|
6088
6181
|
*
|
|
6089
6182
|
* @returns {Error} The created error.
|
|
6090
|
-
*/function AxiosError(message,code,config,request,response){var _this;_classCallCheck(this,AxiosError);_this=_callSuper(this,AxiosError,[message])
|
|
6183
|
+
*/function AxiosError(message,code,config,request,response){var _this;_classCallCheck(this,AxiosError);_this=_callSuper(this,AxiosError,[message]);// Make message enumerable to maintain backward compatibility
|
|
6184
|
+
// The native Error constructor sets message as non-enumerable,
|
|
6185
|
+
// but axios < v1.13.3 had it as enumerable
|
|
6186
|
+
Object.defineProperty(_this,'message',{value:message,enumerable:true,writable:true,configurable:true});_this.name='AxiosError';_this.isAxiosError=true;code&&(_this.code=code);config&&(_this.config=config);request&&(_this.request=request);if(response){_this.response=response;_this.status=response.status;}return _this;}_inherits(AxiosError,_Error);return _createClass(AxiosError,[{key:"toJSON",value:function toJSON(){return{// Standard
|
|
6091
6187
|
message:this.message,name:this.name,// Microsoft
|
|
6092
6188
|
description:this.description,number:this.number,// Mozilla
|
|
6093
6189
|
fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,// Axios
|
|
6094
|
-
config:utils$1.toJSONObject(this.config),code:this.code,status:this.status};}}],[{key:"from",value:function from(error,code,config,request,response,customProps){var axiosError=new AxiosError(error.message,code||error.code,config,request,response);axiosError.cause=error;axiosError.name=error.name
|
|
6190
|
+
config:utils$1.toJSONObject(this.config),code:this.code,status:this.status};}}],[{key:"from",value:function from(error,code,config,request,response,customProps){var axiosError=new AxiosError(error.message,code||error.code,config,request,response);axiosError.cause=error;axiosError.name=error.name;// Preserve status from the original error if not already set from response
|
|
6191
|
+
if(error.status!=null&&axiosError.status==null){axiosError.status=error.status;}customProps&&Object.assign(axiosError,customProps);return axiosError;}}]);}(/*#__PURE__*/_wrapNativeSuper(Error));// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
6095
6192
|
AxiosError.ERR_BAD_OPTION_VALUE='ERR_BAD_OPTION_VALUE';AxiosError.ERR_BAD_OPTION='ERR_BAD_OPTION';AxiosError.ECONNABORTED='ECONNABORTED';AxiosError.ETIMEDOUT='ETIMEDOUT';AxiosError.ERR_NETWORK='ERR_NETWORK';AxiosError.ERR_FR_TOO_MANY_REDIRECTS='ERR_FR_TOO_MANY_REDIRECTS';AxiosError.ERR_DEPRECATED='ERR_DEPRECATED';AxiosError.ERR_BAD_RESPONSE='ERR_BAD_RESPONSE';AxiosError.ERR_BAD_REQUEST='ERR_BAD_REQUEST';AxiosError.ERR_CANCELED='ERR_CANCELED';AxiosError.ERR_NOT_SUPPORT='ERR_NOT_SUPPORT';AxiosError.ERR_INVALID_URL='ERR_INVALID_URL';var AxiosError$1=AxiosError;// eslint-disable-next-line strict
|
|
6096
6193
|
var httpAdapter=null;/**
|
|
6097
6194
|
* Determines if the given thing is a array or js object.
|
|
@@ -6153,7 +6250,7 @@ var visitor=options.visitor||defaultVisitor;var dots=options.dots;var indexes=op
|
|
|
6153
6250
|
* @this {FormData}
|
|
6154
6251
|
*
|
|
6155
6252
|
* @returns {boolean} return true to visit the each prop of the value recursively
|
|
6156
|
-
*/function defaultVisitor(value,key,path){var arr=value;if(value&&!path&&_typeof(value)==='object'){if(utils$1.endsWith(key,'{}')){// eslint-disable-next-line no-param-reassign
|
|
6253
|
+
*/function defaultVisitor(value,key,path){var arr=value;if(utils$1.isReactNative(formData)&&utils$1.isReactNativeBlob(value)){formData.append(renderKey(path,key,dots),convertValue(value));return false;}if(value&&!path&&_typeof(value)==='object'){if(utils$1.endsWith(key,'{}')){// eslint-disable-next-line no-param-reassign
|
|
6157
6254
|
key=metaTokens?key:key.slice(0,-2);// eslint-disable-next-line no-param-reassign
|
|
6158
6255
|
value=JSON.stringify(value);}else if(utils$1.isArray(value)&&isFlatArray(value)||(utils$1.isFileList(value)||utils$1.endsWith(key,'[]'))&&(arr=utils$1.toArray(value))){// eslint-disable-next-line no-param-reassign
|
|
6159
6256
|
key=removeBrackets(key);arr.forEach(function each(el,index){!(utils$1.isUndefined(el)||el===null)&&formData.append(// eslint-disable-next-line no-nested-ternary
|
|
@@ -6186,7 +6283,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
6186
6283
|
* @param {?(object|Function)} options
|
|
6187
6284
|
*
|
|
6188
6285
|
* @returns {string} The formatted url
|
|
6189
|
-
*/function buildURL(url,params,options){if(!params){return url;}var _encode=options&&options.encode||encode;var _options=utils$1.isFunction(options)?{serialize:options}:options;var serializeFn=_options&&_options.serialize;var serializedParams;if(serializeFn){serializedParams=serializeFn(params,_options);}else{serializedParams=utils$1.isURLSearchParams(params)?params.toString():new AxiosURLSearchParams(params,_options).toString(_encode);}if(serializedParams){var hashmarkIndex=url.indexOf(
|
|
6286
|
+
*/function buildURL(url,params,options){if(!params){return url;}var _encode=options&&options.encode||encode;var _options=utils$1.isFunction(options)?{serialize:options}:options;var serializeFn=_options&&_options.serialize;var serializedParams;if(serializeFn){serializedParams=serializeFn(params,_options);}else{serializedParams=utils$1.isURLSearchParams(params)?params.toString():new AxiosURLSearchParams(params,_options).toString(_encode);}if(serializedParams){var hashmarkIndex=url.indexOf('#');if(hashmarkIndex!==-1){url=url.slice(0,hashmarkIndex);}url+=(url.indexOf('?')===-1?'?':'&')+serializedParams;}return url;}var InterceptorManager=/*#__PURE__*/function(){function InterceptorManager(){_classCallCheck(this,InterceptorManager);this.handlers=[];}/**
|
|
6190
6287
|
* Add a new interceptor to the stack
|
|
6191
6288
|
*
|
|
6192
6289
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
@@ -6272,7 +6369,7 @@ return utils$1.matchAll(/\w+|\[(\w*)]/g,name).map(function(match){return match[0
|
|
|
6272
6369
|
*/function stringifySafely(rawValue,parser,encoder){if(utils$1.isString(rawValue)){try{(parser||JSON.parse)(rawValue);return utils$1.trim(rawValue);}catch(e){if(e.name!=='SyntaxError'){throw e;}}}return(encoder||JSON.stringify)(rawValue);}var defaults={transitional:transitionalDefaults,adapter:['xhr','http','fetch'],transformRequest:[function transformRequest(data,headers){var contentType=headers.getContentType()||'';var hasJSONContentType=contentType.indexOf('application/json')>-1;var isObjectPayload=utils$1.isObject(data);if(isObjectPayload&&utils$1.isHTMLForm(data)){data=new FormData(data);}var isFormData=utils$1.isFormData(data);if(isFormData){return hasJSONContentType?JSON.stringify(formDataToJSON(data)):data;}if(utils$1.isArrayBuffer(data)||utils$1.isBuffer(data)||utils$1.isStream(data)||utils$1.isFile(data)||utils$1.isBlob(data)||utils$1.isReadableStream(data)){return data;}if(utils$1.isArrayBufferView(data)){return data.buffer;}if(utils$1.isURLSearchParams(data)){headers.setContentType('application/x-www-form-urlencoded;charset=utf-8',false);return data.toString();}var isFileList;if(isObjectPayload){if(contentType.indexOf('application/x-www-form-urlencoded')>-1){return toURLEncodedForm(data,this.formSerializer).toString();}if((isFileList=utils$1.isFileList(data))||contentType.indexOf('multipart/form-data')>-1){var _FormData=this.env&&this.env.FormData;return toFormData(isFileList?{'files[]':data}:data,_FormData&&new _FormData(),this.formSerializer);}}if(isObjectPayload||hasJSONContentType){headers.setContentType('application/json',false);return stringifySafely(data);}return data;}],transformResponse:[function transformResponse(data){var transitional=this.transitional||defaults.transitional;var forcedJSONParsing=transitional&&transitional.forcedJSONParsing;var JSONRequested=this.responseType==='json';if(utils$1.isResponse(data)||utils$1.isReadableStream(data)){return data;}if(data&&utils$1.isString(data)&&(forcedJSONParsing&&!this.responseType||JSONRequested)){var silentJSONParsing=transitional&&transitional.silentJSONParsing;var strictJSONParsing=!silentJSONParsing&&JSONRequested;try{return JSON.parse(data,this.parseReviver);}catch(e){if(strictJSONParsing){if(e.name==='SyntaxError'){throw AxiosError$1.from(e,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);}throw e;}}}return data;}],/**
|
|
6273
6370
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
6274
6371
|
* timeout is not created.
|
|
6275
|
-
*/timeout:0,xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function validateStatus(status){return status>=200&&status<300;},headers:{common:{
|
|
6372
|
+
*/timeout:0,xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function validateStatus(status){return status>=200&&status<300;},headers:{common:{Accept:'application/json, text/plain, */*','Content-Type':undefined}}};utils$1.forEach(['delete','get','head','post','put','patch'],function(method){defaults.headers[method]={};});var defaults$1=defaults;// RawAxiosHeaders whose duplicates are ignored by node
|
|
6276
6373
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
6277
6374
|
var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length','content-type','etag','expires','from','host','if-modified-since','if-unmodified-since','last-modified','location','max-forwards','proxy-authorization','referer','retry-after','user-agent']);/**
|
|
6278
6375
|
* Parse headers into an object
|
|
@@ -6287,7 +6384,7 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
|
|
|
6287
6384
|
* @param {String} rawHeaders Headers needing to be parsed
|
|
6288
6385
|
*
|
|
6289
6386
|
* @returns {Object} Headers parsed into an object
|
|
6290
|
-
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isObject(header)&&utils$1.isIterable(header)){var obj={},dest,key;var _iterator3=_createForOfIteratorHelper(header),_step2;try{for(_iterator3.s();!(_step2=_iterator3.n()).done;){var entry=_step2.value;if(!utils$1.isArray(entry)){throw TypeError('Object iterator must return a key-value pair');}obj[key=entry[0]]=(dest=obj[key])?utils$1.isArray(dest)?[].concat(_toConsumableArray(dest),[entry[1]]):[dest,entry[1]]:entry[1];}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}setHeaders(obj,valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref8){var _ref9=_slicedToArray(_ref8,2),header=_ref9[0],value=_ref9[1];return header+': '+value;}).join('\n');}},{key:"getSetCookie",value:function getSetCookie(){return this.get(
|
|
6387
|
+
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isObject(header)&&utils$1.isIterable(header)){var obj={},dest,key;var _iterator3=_createForOfIteratorHelper(header),_step2;try{for(_iterator3.s();!(_step2=_iterator3.n()).done;){var entry=_step2.value;if(!utils$1.isArray(entry)){throw TypeError('Object iterator must return a key-value pair');}obj[key=entry[0]]=(dest=obj[key])?utils$1.isArray(dest)?[].concat(_toConsumableArray(dest),[entry[1]]):[dest,entry[1]]:entry[1];}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}setHeaders(obj,valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref8){var _ref9=_slicedToArray(_ref8,2),header=_ref9[0],value=_ref9[1];return header+': '+value;}).join('\n');}},{key:"getSetCookie",value:function getSetCookie(){return this.get('set-cookie')||[];}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
|
|
6291
6388
|
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref0,key){var value=_ref0.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
|
|
6292
6389
|
return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
|
|
6293
6390
|
* Transform the data for a request or a response
|
|
@@ -6361,7 +6458,7 @@ if(typeof url!=='string'){return false;}return /^([a-z][a-z\d+\-.]*:)?\/\//i.tes
|
|
|
6361
6458
|
config2=config2||{};var config={};function getMergedValue(target,source,prop,caseless){if(utils$1.isPlainObject(target)&&utils$1.isPlainObject(source)){return utils$1.merge.call({caseless:caseless},target,source);}else if(utils$1.isPlainObject(source)){return utils$1.merge({},source);}else if(utils$1.isArray(source)){return source.slice();}return source;}function mergeDeepProperties(a,b,prop,caseless){if(!utils$1.isUndefined(b)){return getMergedValue(a,b,prop,caseless);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a,prop,caseless);}}// eslint-disable-next-line consistent-return
|
|
6362
6459
|
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
6363
6460
|
function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a);}}// eslint-disable-next-line consistent-return
|
|
6364
|
-
function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b,prop){return mergeDeepProperties(headersToObject(a),headersToObject(b),prop,true);}};utils$1.forEach(Object.keys(_objectSpread(_objectSpread({},config1),config2)),function computeConfigValue(prop){if(prop===
|
|
6461
|
+
function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b,prop){return mergeDeepProperties(headersToObject(a),headersToObject(b),prop,true);}};utils$1.forEach(Object.keys(_objectSpread(_objectSpread({},config1),config2)),function computeConfigValue(prop){if(prop==='__proto__'||prop==='constructor'||prop==='prototype')return;var merge=utils$1.hasOwnProp(mergeMap,prop)?mergeMap[prop]:mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var resolveConfig=function resolveConfig(config){var newConfig=mergeConfig({},config);var data=newConfig.data,withXSRFToken=newConfig.withXSRFToken,xsrfHeaderName=newConfig.xsrfHeaderName,xsrfCookieName=newConfig.xsrfCookieName,headers=newConfig.headers,auth=newConfig.auth;newConfig.headers=headers=AxiosHeaders$1.from(headers);newConfig.url=buildURL(buildFullPath(newConfig.baseURL,newConfig.url,newConfig.allowAbsoluteUrls),config.params,config.paramsSerializer);// HTTP basic authentication
|
|
6365
6462
|
if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}if(utils$1.isFormData(data)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){headers.setContentType(undefined);// browser handles it
|
|
6366
6463
|
}else if(utils$1.isFunction(data.getHeaders)){// Node.js FormData (like form-data package)
|
|
6367
6464
|
var formHeaders=data.getHeaders();// Only set safe headers to avoid overwriting security headers
|
|
@@ -6400,33 +6497,33 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
|
|
|
6400
6497
|
if(onUploadProgress&&request.upload){var _progressEventReducer3=progressEventReducer(onUploadProgress);var _progressEventReducer4=_slicedToArray(_progressEventReducer3,2);uploadThrottled=_progressEventReducer4[0];flushUpload=_progressEventReducer4[1];request.upload.addEventListener('progress',uploadThrottled);request.upload.addEventListener('loadend',flushUpload);}if(_config.cancelToken||_config.signal){// Handle cancellation
|
|
6401
6498
|
// eslint-disable-next-line func-names
|
|
6402
6499
|
onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError$1(null,config,request):cancel);request.abort();request=null;};_config.cancelToken&&_config.cancelToken.subscribe(onCanceled);if(_config.signal){_config.signal.aborted?onCanceled():_config.signal.addEventListener('abort',onCanceled);}}var protocol=parseProtocol(_config.url);if(protocol&&platform.protocols.indexOf(protocol)===-1){reject(new AxiosError$1('Unsupported protocol '+protocol+':',AxiosError$1.ERR_BAD_REQUEST,config));return;}// Send the request
|
|
6403
|
-
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError$1?err:new CanceledError$1(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError$1("timeout of ".concat(timeout,"ms exceeded"),AxiosError$1.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regenerator().m(function streamChunk(chunk,chunkSize){var len,pos,end;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.n=2;break;}_context.n=1;return chunk;case 1:return _context.a(2);case 2:pos=0;case 3:if(!(pos<len)){_context.n=5;break;}end=pos+chunkSize;_context.n=4;return chunk.slice(pos,end);case 4:pos=end;_context.n=3;break;case 5:return _context.a(2);}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk,_t;return _regenerator().w(function(_context2){while(1)switch(_context2.p=_context2.n){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.p=1;_iterator2=_asyncIterator(readStream(iterable));case 2:_context2.n=3;return _awaitAsyncGenerator(_iterator2.next());case 3:if(!(_iteratorAbruptCompletion=!(_step=_context2.v).done)){_context2.n=5;break;}chunk=_step.value;return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator)),4);case 4:_iteratorAbruptCompletion=false;_context2.n=2;break;case 5:_context2.n=7;break;case 6:_context2.p=6;_t=_context2.v;_didIteratorError=true;_iteratorError=_t;case 7:_context2.p=7;_context2.p=8;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.n=9;break;}_context2.n=9;return _awaitAsyncGenerator(_iterator2["return"]());case 9:_context2.p=9;if(!_didIteratorError){_context2.n=10;break;}throw _iteratorError;case 10:return _context2.f(9);case 11:return _context2.f(7);case 12:return _context2.a(2);}},_callee,null,[[8,,9,11],[1,6,7,12]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:if(!stream[Symbol.asyncIterator]){_context3.n=2;break;}return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator)),1);case 1:return _context3.a(2);case 2:reader=stream.getReader();_context3.p=3;case 4:_context3.n=5;return _awaitAsyncGenerator(reader.read());case 5:_yield$_awaitAsyncGen=_context3.v;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.n=6;break;}return _context3.a(3,8);case 6:_context3.n=7;return value;case 7:_context3.n=4;break;case 8:_context3.p=8;_context3.n=9;return _awaitAsyncGenerator(reader.cancel());case 9:return _context3.f(8);case 10:return _context3.a(2);}},_callee2,null,[[3,,8,10]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes,_t2;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:_context4.p=0;_context4.n=1;return iterator.next();case 1:_yield$iterator$next=_context4.v;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.n=2;break;}_onFinish();controller.close();return _context4.a(2);case 2:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.n=4;break;case 3:_context4.p=3;_t2=_context4.v;_onFinish(_t2);throw _t2;case 4:return _context4.a(2);}},_callee3,null,[[0,3]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var DEFAULT_CHUNK_SIZE=64*1024;var isFunction=utils$1.isFunction;var globalFetchAPI=function(_ref11){var Request=_ref11.Request,Response=_ref11.Response;return{Request:Request,Response:Response};}(utils$1.global);var _utils$1$global=utils$1.global,ReadableStream$1=_utils$1$global.ReadableStream,TextEncoder$1=_utils$1$global.TextEncoder;var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var factory=function factory(env){env=utils$1.merge.call({skipUndefined:true},globalFetchAPI,env);var _env=env,envFetch=_env.fetch,Request=_env.Request,Response=_env.Response;var isFetchSupported=envFetch?isFunction(envFetch):typeof fetch==='function';var isRequestSupported=isFunction(Request);var isResponseSupported=isFunction(Response);if(!isFetchSupported){return false;}var isReadableStreamSupported=isFetchSupported&&isFunction(ReadableStream$1);var encodeText=isFetchSupported&&(typeof TextEncoder$1==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder$1()):(/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Request(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_callee4);}));return function(_x4){return _ref12.apply(this,arguments);};}()));var supportsRequestStream=isRequestSupported&&isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream$1(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var supportsResponseStream=isResponseSupported&&isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=function(res,config){var method=res&&res[type];if(method){return method.call(res);}throw new AxiosError$1("Response type '".concat(type,"' is not supported"),AxiosError$1.ERR_NOT_SUPPORT,config);});});}();var getBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);case 7:return _context6.a(2);}},_callee5);}));return function getBodyLength(_x5){return _ref13.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref14.apply(this,arguments);};}();return/*#__PURE__*/function(){var _ref15=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,_fetch,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,resolvedOptions,response,isStreamResponse,options,responseContentLength,_ref16,_ref17,_onProgress,_flush,responseData,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;_fetch=envFetch||fetch;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);request=null;unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 4:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
|
|
6500
|
+
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError$1?err:new CanceledError$1(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError$1("timeout of ".concat(timeout,"ms exceeded"),AxiosError$1.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regenerator().m(function streamChunk(chunk,chunkSize){var len,pos,end;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.n=2;break;}_context.n=1;return chunk;case 1:return _context.a(2);case 2:pos=0;case 3:if(!(pos<len)){_context.n=5;break;}end=pos+chunkSize;_context.n=4;return chunk.slice(pos,end);case 4:pos=end;_context.n=3;break;case 5:return _context.a(2);}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk,_t;return _regenerator().w(function(_context2){while(1)switch(_context2.p=_context2.n){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.p=1;_iterator2=_asyncIterator(readStream(iterable));case 2:_context2.n=3;return _awaitAsyncGenerator(_iterator2.next());case 3:if(!(_iteratorAbruptCompletion=!(_step=_context2.v).done)){_context2.n=5;break;}chunk=_step.value;return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator)),4);case 4:_iteratorAbruptCompletion=false;_context2.n=2;break;case 5:_context2.n=7;break;case 6:_context2.p=6;_t=_context2.v;_didIteratorError=true;_iteratorError=_t;case 7:_context2.p=7;_context2.p=8;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.n=9;break;}_context2.n=9;return _awaitAsyncGenerator(_iterator2["return"]());case 9:_context2.p=9;if(!_didIteratorError){_context2.n=10;break;}throw _iteratorError;case 10:return _context2.f(9);case 11:return _context2.f(7);case 12:return _context2.a(2);}},_callee,null,[[8,,9,11],[1,6,7,12]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:if(!stream[Symbol.asyncIterator]){_context3.n=2;break;}return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator)),1);case 1:return _context3.a(2);case 2:reader=stream.getReader();_context3.p=3;case 4:_context3.n=5;return _awaitAsyncGenerator(reader.read());case 5:_yield$_awaitAsyncGen=_context3.v;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.n=6;break;}return _context3.a(3,8);case 6:_context3.n=7;return value;case 7:_context3.n=4;break;case 8:_context3.p=8;_context3.n=9;return _awaitAsyncGenerator(reader.cancel());case 9:return _context3.f(8);case 10:return _context3.a(2);}},_callee2,null,[[3,,8,10]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes,_t2;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:_context4.p=0;_context4.n=1;return iterator.next();case 1:_yield$iterator$next=_context4.v;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.n=2;break;}_onFinish();controller.close();return _context4.a(2);case 2:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.n=4;break;case 3:_context4.p=3;_t2=_context4.v;_onFinish(_t2);throw _t2;case 4:return _context4.a(2);}},_callee3,null,[[0,3]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var DEFAULT_CHUNK_SIZE=64*1024;var isFunction=utils$1.isFunction;var globalFetchAPI=function(_ref11){var Request=_ref11.Request,Response=_ref11.Response;return{Request:Request,Response:Response};}(utils$1.global);var _utils$1$global=utils$1.global,ReadableStream$1=_utils$1$global.ReadableStream,TextEncoder$1=_utils$1$global.TextEncoder;var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var factory=function factory(env){env=utils$1.merge.call({skipUndefined:true},globalFetchAPI,env);var _env=env,envFetch=_env.fetch,Request=_env.Request,Response=_env.Response;var isFetchSupported=envFetch?isFunction(envFetch):typeof fetch==='function';var isRequestSupported=isFunction(Request);var isResponseSupported=isFunction(Response);if(!isFetchSupported){return false;}var isReadableStreamSupported=isFetchSupported&&isFunction(ReadableStream$1);var encodeText=isFetchSupported&&(typeof TextEncoder$1==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder$1()):(/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Request(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_callee4);}));return function(_x4){return _ref12.apply(this,arguments);};}()));var supportsRequestStream=isRequestSupported&&isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream$1(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var supportsResponseStream=isResponseSupported&&isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=function(res,config){var method=res&&res[type];if(method){return method.call(res);}throw new AxiosError$1("Response type '".concat(type,"' is not supported"),AxiosError$1.ERR_NOT_SUPPORT,config);});});}();var getBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);case 7:return _context6.a(2);}},_callee5);}));return function getBodyLength(_x5){return _ref13.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref14.apply(this,arguments);};}();return/*#__PURE__*/function(){var _ref15=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,_fetch,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,resolvedOptions,response,isStreamResponse,options,responseContentLength,_ref16,_ref17,_onProgress,_flush,responseData,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;_fetch=envFetch||fetch;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);request=null;unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;break;}_request=new Request(url,{method:'POST',body:data,duplex:'half'});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 4:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
|
|
6404
6501
|
// see https://github.com/cloudflare/workerd/issues/902
|
|
6405
|
-
isCredentialsSupported=isRequestSupported&&
|
|
6502
|
+
isCredentialsSupported=isRequestSupported&&'credentials'in Request.prototype;resolvedOptions=_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:'half',credentials:isCredentialsSupported?withCredentials:undefined});request=isRequestSupported&&new Request(url,resolvedOptions);_context8.n=5;return isRequestSupported?_fetch(request,fetchOptions):_fetch(url,resolvedOptions);case 5:response=_context8.v;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref16=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref17=_slicedToArray(_ref16,2),_onProgress=_ref17[0],_flush=_ref17[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.n=6;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 6:responseData=_context8.v;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.n=7;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 7:return _context8.a(2,_context8.v);case 8:_context8.p=8;_t7=_context8.v;unsubscribe&&unsubscribe();if(!(_t7&&_t7.name==='TypeError'&&/Load failed|fetch/i.test(_t7.message))){_context8.n=9;break;}throw Object.assign(new AxiosError$1('Network Error',AxiosError$1.ERR_NETWORK,config,request,_t7&&_t7.response),{cause:_t7.cause||_t7});case 9:throw AxiosError$1.from(_t7,_t7&&_t7.code,config,request,_t7&&_t7.response);case 10:return _context8.a(2);}},_callee7,null,[[1,8]]);}));return function(_x8){return _ref15.apply(this,arguments);};}();};var seedCache=new Map();var getFetch=function getFetch(config){var env=config&&config.env||{};var fetch=env.fetch,Request=env.Request,Response=env.Response;var seeds=[Request,Response,fetch];var len=seeds.length,i=len,seed,target,map=seedCache;while(i--){seed=seeds[i];target=map.get(seed);target===undefined&&map.set(seed,target=i?new Map():factory(env));map=target;}return target;};getFetch();/**
|
|
6406
6503
|
* Known adapters mapping.
|
|
6407
6504
|
* Provides environment-specific adapters for Axios:
|
|
6408
6505
|
* - `http` for Node.js
|
|
6409
6506
|
* - `xhr` for browsers
|
|
6410
6507
|
* - `fetch` for fetch API-based requests
|
|
6411
|
-
*
|
|
6508
|
+
*
|
|
6412
6509
|
* @type {Object<string, Function|Object>}
|
|
6413
6510
|
*/var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};// Assign adapter names for easier debugging and identification
|
|
6414
6511
|
utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
|
|
6415
6512
|
}Object.defineProperty(fn,'adapterName',{value:value});}});/**
|
|
6416
6513
|
* Render a rejection reason string for unknown or unsupported adapters
|
|
6417
|
-
*
|
|
6514
|
+
*
|
|
6418
6515
|
* @param {string} reason
|
|
6419
6516
|
* @returns {string}
|
|
6420
6517
|
*/var renderReason=function renderReason(reason){return"- ".concat(reason);};/**
|
|
6421
6518
|
* Check if the adapter is resolved (function, null, or false)
|
|
6422
|
-
*
|
|
6519
|
+
*
|
|
6423
6520
|
* @param {Function|null|false} adapter
|
|
6424
6521
|
* @returns {boolean}
|
|
6425
6522
|
*/var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};/**
|
|
6426
6523
|
* Get the first suitable adapter from the provided list.
|
|
6427
6524
|
* Tries each adapter in order until a supported one is found.
|
|
6428
6525
|
* Throws an AxiosError if no adapter is suitable.
|
|
6429
|
-
*
|
|
6526
|
+
*
|
|
6430
6527
|
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
6431
6528
|
* @param {Object} config - Axios request configuration
|
|
6432
6529
|
* @throws {AxiosError} If no suitable adapter is available
|
|
@@ -6454,7 +6551,7 @@ utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.definePropert
|
|
|
6454
6551
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
6455
6552
|
config.data=transformData.call(config,config.transformRequest);if(['post','put','patch'].indexOf(config.method)!==-1){config.headers.setContentType('application/x-www-form-urlencoded',false);}var adapter=adapters.getAdapter(config.adapter||defaults$1.adapter,config);return adapter(config).then(function onAdapterResolution(response){throwIfCancellationRequested(config);// Transform response data
|
|
6456
6553
|
response.data=transformData.call(config,config.transformResponse,response);response.headers=AxiosHeaders$1.from(response.headers);return response;},function onAdapterRejection(reason){if(!isCancel(reason)){throwIfCancellationRequested(config);// Transform response data
|
|
6457
|
-
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.13.
|
|
6554
|
+
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.13.6";var validators$1={};// eslint-disable-next-line func-names
|
|
6458
6555
|
['object','boolean','number','function','string','symbol'].forEach(function(type,i){validators$1[type]=function validator(thing){return _typeof(thing)===type||'a'+(i<1?'n ':' ')+type;};});var deprecatedWarnings={};/**
|
|
6459
6556
|
* Transitional option validator
|
|
6460
6557
|
*
|
|
@@ -6463,7 +6560,7 @@ if(reason&&reason.response){reason.response.data=transformData.call(config,confi
|
|
|
6463
6560
|
* @param {string?} message - some message with additional info
|
|
6464
6561
|
*
|
|
6465
6562
|
* @returns {function}
|
|
6466
|
-
*/validators$1.transitional=function transitional(validator,version,message){function formatMessage(opt,desc){return'[Axios v'+VERSION+
|
|
6563
|
+
*/validators$1.transitional=function transitional(validator,version,message){function formatMessage(opt,desc){return'[Axios v'+VERSION+"] Transitional option '"+opt+"'"+desc+(message?'. '+message:'');}// eslint-disable-next-line func-names
|
|
6467
6564
|
return function(value,opt,opts){if(validator===false){throw new AxiosError$1(formatMessage(opt,' has been removed'+(version?' in '+version:'')),AxiosError$1.ERR_DEPRECATED);}if(version&&!deprecatedWarnings[opt]){deprecatedWarnings[opt]=true;// eslint-disable-next-line no-console
|
|
6468
6565
|
console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will be removed in the near future'));}return validator?validator(value,opt,opts):true;};};validators$1.spelling=function spelling(correctSpelling){return function(value,opt){// eslint-disable-next-line no-console
|
|
6469
6566
|
console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpelling));return true;};};/**
|
|
@@ -6602,7 +6699,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
6602
6699
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
6603
6700
|
if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(this.environment.startsWith('api.'))this.environment=this.environment.substring(4);this.basePath="https://api.".concat(this.environment);this.authUrl="https://login.".concat(this.environment);}},{key:"getConfUrl",value:function getConfUrl(pathType,regionUrl){if(!this.gateway)return regionUrl;if(!this.gateway.host)return regionUrl;var url=this.gateway.protocol+'://'+this.gateway.host;if(this.gateway.port>-1)url=url+':'+this.gateway.port.toString();if(pathType==='login'){if(this.gateway.path_params_login){if(this.gateway.path_params_login.startsWith('/'))url=url+this.gateway.path_params_login;else url=url+'/'+this.gateway.path_params_login;}}else{if(this.gateway.path_params_api){if(this.gateway.path_params_api.startsWith('/'))url=url+this.gateway.path_params_api;else url=url+'/'+this.gateway.path_params_api;}}return url;}},{key:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);}();/**
|
|
6604
6701
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6605
|
-
* @version
|
|
6702
|
+
* @version 247.0.0
|
|
6606
6703
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
6607
6704
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
6608
6705
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -6941,7 +7038,7 @@ return param.map(function(x){return _this15.paramToString(x);});default:throw ne
|
|
|
6941
7038
|
* Applies authentication headers to the request.
|
|
6942
7039
|
* @param {Object} request The axios request config object.
|
|
6943
7040
|
* @param {Array.<String>} authNames An array of authentication method names.
|
|
6944
|
-
*/},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this16=this;authNames.forEach(function(authName){var auth=_this16.authentications[authName];switch(auth.type){case'basic':if(auth.username||auth.password){request.auth={username:auth.username||'',password:auth.password||''};}break;case'apiKey':if(auth.apiKey){var data={};if(auth.apiKeyPrefix){data[auth.name]="".concat(auth.apiKeyPrefix," ").concat(auth.apiKey);}else{data[auth.name]=auth.apiKey;}if(auth['in']==='header'){request.headers=_this16.addHeaders(request.headers,data);}else{request.setParams(_this16.serialize(data));}}break;case'oauth2':if(auth.accessToken){request.headers=_this16.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
|
|
7041
|
+
*/},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this16=this;authNames.forEach(function(authName){var auth=_this16.authentications[authName];switch(auth.type){case'basic':if(auth.username||auth.password){request.auth={username:auth.username||'',password:auth.password||''};}break;case'apiKey':if(auth.apiKey){var data={};if(auth.apiKeyPrefix){data[auth.name]="".concat(auth.apiKeyPrefix," ").concat(auth.apiKey);}else{data[auth.name]=auth.apiKey;}if(auth['in']==='header'){request.headers=_this16.addHeaders(request.headers,data);}else{request.setParams(_this16.serialize(data));request.headers=_this16.addHeaders(request.headers,{});}}else{request.headers=_this16.addHeaders(request.headers,{});}break;case'oauth2':if(auth.accessToken){request.headers=_this16.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}else{request.headers=_this16.addHeaders(request.headers,{});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
|
|
6945
7042
|
* @description Sets the proxy agent axios will use for requests
|
|
6946
7043
|
* @param {any} agent - The proxy agent
|
|
6947
7044
|
*/},{key:"setProxyAgent",value:function setProxyAgent(agent){this.proxyAgent=agent;var httpClient=this.getHttpClient();httpClient.setHttpsAgent(this.proxyAgent);}/**
|
|
@@ -6968,7 +7065,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
6968
7065
|
that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);}();var AIStudioApi=/*#__PURE__*/function(){/**
|
|
6969
7066
|
* AIStudio service.
|
|
6970
7067
|
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
6971
|
-
* @version
|
|
7068
|
+
* @version 247.0.0
|
|
6972
7069
|
*//**
|
|
6973
7070
|
* Constructs a new AIStudioApi.
|
|
6974
7071
|
* @alias module:purecloud-platform-client-v2/api/AIStudioApi
|
|
@@ -7120,7 +7217,7 @@ if(summarySettingId===undefined||summarySettingId===null||summarySettingId==='')
|
|
|
7120
7217
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';}return this.apiClient.callApi('/api/v2/conversations/summaries/settings/{summarySettingId}','PUT',{'summarySettingId':summarySettingId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
|
|
7121
7218
|
* AgentAssistants service.
|
|
7122
7219
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
7123
|
-
* @version
|
|
7220
|
+
* @version 247.0.0
|
|
7124
7221
|
*//**
|
|
7125
7222
|
* Constructs a new AgentAssistantsApi.
|
|
7126
7223
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -7307,7 +7404,7 @@ if(agentChecklistId===undefined||agentChecklistId===null||agentChecklistId==='')
|
|
|
7307
7404
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantsAgentchecklist';}return this.apiClient.callApi('/api/v2/assistants/agentchecklists/{agentChecklistId}','PUT',{'agentChecklistId':agentChecklistId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentCopilotApi=/*#__PURE__*/function(){/**
|
|
7308
7405
|
* AgentCopilot service.
|
|
7309
7406
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
7310
|
-
* @version
|
|
7407
|
+
* @version 247.0.0
|
|
7311
7408
|
*//**
|
|
7312
7409
|
* Constructs a new AgentCopilotApi.
|
|
7313
7410
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -7334,7 +7431,7 @@ if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing
|
|
|
7334
7431
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantCopilot';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/copilot','PUT',{'assistantId':assistantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentUIApi=/*#__PURE__*/function(){/**
|
|
7335
7432
|
* AgentUI service.
|
|
7336
7433
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
7337
|
-
* @version
|
|
7434
|
+
* @version 247.0.0
|
|
7338
7435
|
*//**
|
|
7339
7436
|
* Constructs a new AgentUIApi.
|
|
7340
7437
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -7368,7 +7465,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
7368
7465
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AlertingApi=/*#__PURE__*/function(){/**
|
|
7369
7466
|
* Alerting service.
|
|
7370
7467
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
7371
|
-
* @version
|
|
7468
|
+
* @version 247.0.0
|
|
7372
7469
|
*//**
|
|
7373
7470
|
* Constructs a new AlertingApi.
|
|
7374
7471
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -7457,7 +7554,7 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
7457
7554
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAlertingRule';}return this.apiClient.callApi('/api/v2/alerting/rules/{ruleId}','PUT',{'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AnalyticsApi=/*#__PURE__*/function(){/**
|
|
7458
7555
|
* Analytics service.
|
|
7459
7556
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
7460
|
-
* @version
|
|
7557
|
+
* @version 247.0.0
|
|
7461
7558
|
*//**
|
|
7462
7559
|
* Constructs a new AnalyticsApi.
|
|
7463
7560
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -8276,7 +8373,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8276
8373
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';}return this.apiClient.callApi('/api/v2/analytics/dataretention/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
|
|
8277
8374
|
* Architect service.
|
|
8278
8375
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
8279
|
-
* @version
|
|
8376
|
+
* @version 247.0.0
|
|
8280
8377
|
*//**
|
|
8281
8378
|
* Constructs a new ArchitectApi.
|
|
8282
8379
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -9410,7 +9507,7 @@ if(milestoneId===undefined||milestoneId===null||milestoneId===''){throw'Missing
|
|
|
9410
9507
|
if(flowOutcomeId===undefined||flowOutcomeId===null||flowOutcomeId===''){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AssistantCopilotVariationsApi=/*#__PURE__*/function(){/**
|
|
9411
9508
|
* AssistantCopilotVariations service.
|
|
9412
9509
|
* @module purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
|
|
9413
|
-
* @version
|
|
9510
|
+
* @version 247.0.0
|
|
9414
9511
|
*//**
|
|
9415
9512
|
* Constructs a new AssistantCopilotVariationsApi.
|
|
9416
9513
|
* @alias module:purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
|
|
@@ -9455,7 +9552,7 @@ if(variationId===undefined||variationId===null||variationId===''){throw'Missing
|
|
|
9455
9552
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantVariation';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/variations/{variationId}','PUT',{'assistantId':assistantId,'variationId':variationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
|
|
9456
9553
|
* Audit service.
|
|
9457
9554
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
9458
|
-
* @version
|
|
9555
|
+
* @version 247.0.0
|
|
9459
9556
|
*//**
|
|
9460
9557
|
* Constructs a new AuditApi.
|
|
9461
9558
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -9505,7 +9602,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9505
9602
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';}return this.apiClient.callApi('/api/v2/audits/query/realtime/related','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
|
|
9506
9603
|
* Authorization service.
|
|
9507
9604
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
9508
|
-
* @version
|
|
9605
|
+
* @version 247.0.0
|
|
9509
9606
|
*//**
|
|
9510
9607
|
* Constructs a new AuthorizationApi.
|
|
9511
9608
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -9933,7 +10030,7 @@ if(subjectId===undefined||subjectId===null||subjectId===''){throw'Missing the re
|
|
|
9933
10030
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoles';}return this.apiClient.callApi('/api/v2/users/{subjectId}/roles','PUT',{'subjectId':subjectId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BackgroundAssistantApi=/*#__PURE__*/function(){/**
|
|
9934
10031
|
* BackgroundAssistant service.
|
|
9935
10032
|
* @module purecloud-platform-client-v2/api/BackgroundAssistantApi
|
|
9936
|
-
* @version
|
|
10033
|
+
* @version 247.0.0
|
|
9937
10034
|
*//**
|
|
9938
10035
|
* Constructs a new BackgroundAssistantApi.
|
|
9939
10036
|
* @alias module:purecloud-platform-client-v2/api/BackgroundAssistantApi
|
|
@@ -9954,7 +10051,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9954
10051
|
*/},{key:"postScreenrecordingToken",value:function postScreenrecordingToken(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/screenrecording/token','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BillingApi=/*#__PURE__*/function(){/**
|
|
9955
10052
|
* Billing service.
|
|
9956
10053
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
9957
|
-
* @version
|
|
10054
|
+
* @version 247.0.0
|
|
9958
10055
|
*//**
|
|
9959
10056
|
* Constructs a new BillingApi.
|
|
9960
10057
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -10031,7 +10128,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
10031
10128
|
if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BusinessRulesApi=/*#__PURE__*/function(){/**
|
|
10032
10129
|
* BusinessRules service.
|
|
10033
10130
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
10034
|
-
* @version
|
|
10131
|
+
* @version 247.0.0
|
|
10035
10132
|
*//**
|
|
10036
10133
|
* Constructs a new BusinessRulesApi.
|
|
10037
10134
|
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
@@ -10252,7 +10349,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
10252
10349
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
10253
10350
|
* CarrierServices service.
|
|
10254
10351
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
10255
|
-
* @version
|
|
10352
|
+
* @version 247.0.0
|
|
10256
10353
|
*//**
|
|
10257
10354
|
* Constructs a new CarrierServicesApi.
|
|
10258
10355
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -10272,7 +10369,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
10272
10369
|
*/},{key:"postCarrierservicesIntegrationsEmergencylocationsMe",value:function postCarrierservicesIntegrationsEmergencylocationsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/carrierservices/integrations/emergencylocations/me','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ChatApi=/*#__PURE__*/function(){/**
|
|
10273
10370
|
* Chat service.
|
|
10274
10371
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
10275
|
-
* @version
|
|
10372
|
+
* @version 247.0.0
|
|
10276
10373
|
*//**
|
|
10277
10374
|
* Constructs a new ChatApi.
|
|
10278
10375
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -10503,7 +10600,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10503
10600
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putChatsSettings';}return this.apiClient.callApi('/api/v2/chats/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CoachingApi=/*#__PURE__*/function(){/**
|
|
10504
10601
|
* Coaching service.
|
|
10505
10602
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
10506
|
-
* @version
|
|
10603
|
+
* @version 247.0.0
|
|
10507
10604
|
*//**
|
|
10508
10605
|
* Constructs a new CoachingApi.
|
|
10509
10606
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -10666,7 +10763,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10666
10763
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';}return this.apiClient.callApi('/api/v2/coaching/scheduleslots/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ContentManagementApi=/*#__PURE__*/function(){/**
|
|
10667
10764
|
* ContentManagement service.
|
|
10668
10765
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
10669
|
-
* @version
|
|
10766
|
+
* @version 247.0.0
|
|
10670
10767
|
*//**
|
|
10671
10768
|
* Constructs a new ContentManagementApi.
|
|
10672
10769
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -10948,7 +11045,7 @@ if(tagId===undefined||tagId===null||tagId===''){throw'Missing the required param
|
|
|
10948
11045
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceTagvalue';}return this.apiClient.callApi('/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}','PUT',{'workspaceId':workspaceId,'tagId':tagId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ConversationsApi=/*#__PURE__*/function(){/**
|
|
10949
11046
|
* Conversations service.
|
|
10950
11047
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
10951
|
-
* @version
|
|
11048
|
+
* @version 247.0.0
|
|
10952
11049
|
*//**
|
|
10953
11050
|
* Constructs a new ConversationsApi.
|
|
10954
11051
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -10972,6 +11069,13 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
10972
11069
|
* @param {String} conversationId conversation ID
|
|
10973
11070
|
*/},{key:"deleteConversation",value:function deleteConversation(conversationId){// verify the required parameter 'conversationId' is set
|
|
10974
11071
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling deleteConversation';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}','DELETE',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11072
|
+
* Delete a custom attributes record.
|
|
11073
|
+
*
|
|
11074
|
+
* @param {String} conversationId conversation ID
|
|
11075
|
+
* @param {String} attributesId attributesId
|
|
11076
|
+
*/},{key:"deleteConversationCustomattribute",value:function deleteConversationCustomattribute(conversationId,attributesId){// verify the required parameter 'conversationId' is set
|
|
11077
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling deleteConversationCustomattribute';}// verify the required parameter 'attributesId' is set
|
|
11078
|
+
if(attributesId===undefined||attributesId===null||attributesId===''){throw'Missing the required parameter "attributesId" when calling deleteConversationCustomattribute';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes/{attributesId}','DELETE',{'conversationId':conversationId,'attributesId':attributesId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10975
11079
|
* Delete a code used to add a communication to this participant
|
|
10976
11080
|
*
|
|
10977
11081
|
* @param {String} conversationId conversation ID
|
|
@@ -11031,6 +11135,12 @@ if(integrationId===undefined||integrationId===null||integrationId===''){throw'Mi
|
|
|
11031
11135
|
* @param {String} integrationId Integration ID
|
|
11032
11136
|
*/},{key:"deleteConversationsMessagingIntegrationsInstagramIntegrationId",value:function deleteConversationsMessagingIntegrationsInstagramIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
11033
11137
|
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsInstagramIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/instagram/{integrationId}','DELETE',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11138
|
+
* Delete an Open messaging integration with the Google Business Profile extension
|
|
11139
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
11140
|
+
* @param {String} integrationId Integration ID
|
|
11141
|
+
* deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11142
|
+
*/},{key:"deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId",value:function deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
11143
|
+
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}','DELETE',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11034
11144
|
* Delete an Open messaging integration
|
|
11035
11145
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
11036
11146
|
* @param {String} integrationId Integration ID
|
|
@@ -11150,6 +11260,18 @@ if(messageId===undefined||messageId===null||messageId===''){throw'Missing the re
|
|
|
11150
11260
|
*/},{key:"getConversationCommunicationInternalmessages",value:function getConversationCommunicationInternalmessages(conversationId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
11151
11261
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';}// verify the required parameter 'communicationId' is set
|
|
11152
11262
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages','GET',{'conversationId':conversationId,'communicationId':communicationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11263
|
+
* Get custom attributes by id
|
|
11264
|
+
*
|
|
11265
|
+
* @param {String} conversationId conversation ID
|
|
11266
|
+
* @param {String} attributesId attributesId
|
|
11267
|
+
*/},{key:"getConversationCustomattribute",value:function getConversationCustomattribute(conversationId,attributesId){// verify the required parameter 'conversationId' is set
|
|
11268
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationCustomattribute';}// verify the required parameter 'attributesId' is set
|
|
11269
|
+
if(attributesId===undefined||attributesId===null||attributesId===''){throw'Missing the required parameter "attributesId" when calling getConversationCustomattribute';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes/{attributesId}','GET',{'conversationId':conversationId,'attributesId':attributesId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11270
|
+
* Get a list of custom attributes for a conversation.
|
|
11271
|
+
*
|
|
11272
|
+
* @param {String} conversationId conversation ID
|
|
11273
|
+
*/},{key:"getConversationCustomattributes",value:function getConversationCustomattributes(conversationId){// verify the required parameter 'conversationId' is set
|
|
11274
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationCustomattributes';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11153
11275
|
* Fetch info on a secure session
|
|
11154
11276
|
*
|
|
11155
11277
|
* @param {String} conversationId conversation ID
|
|
@@ -11393,6 +11515,37 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
11393
11515
|
* Get active cobrowse conversations for the logged in user
|
|
11394
11516
|
*
|
|
11395
11517
|
*/},{key:"getConversationsCobrowsesessions",value:function getConversationsCobrowsesessions(){return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11518
|
+
* Get a schema
|
|
11519
|
+
*
|
|
11520
|
+
* @param {String} schemaId Schema ID
|
|
11521
|
+
*/},{key:"getConversationsCustomattributesSchema",value:function getConversationsCustomattributesSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
11522
|
+
if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchema';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/{schemaId}','GET',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11523
|
+
* Get a specific version of a schema
|
|
11524
|
+
*
|
|
11525
|
+
* @param {String} schemaId Schema ID
|
|
11526
|
+
* @param {String} versionId Schema version
|
|
11527
|
+
*/},{key:"getConversationsCustomattributesSchemaVersion",value:function getConversationsCustomattributesSchemaVersion(schemaId,versionId){// verify the required parameter 'schemaId' is set
|
|
11528
|
+
if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersion';}// verify the required parameter 'versionId' is set
|
|
11529
|
+
if(versionId===undefined||versionId===null||versionId===''){throw'Missing the required parameter "versionId" when calling getConversationsCustomattributesSchemaVersion';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/{schemaId}/versions/{versionId}','GET',{'schemaId':schemaId,'versionId':versionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11530
|
+
* Get all versions of a CCA schema
|
|
11531
|
+
*
|
|
11532
|
+
* @param {String} schemaId Schema ID
|
|
11533
|
+
*/},{key:"getConversationsCustomattributesSchemaVersions",value:function getConversationsCustomattributesSchemaVersions(schemaId){// verify the required parameter 'schemaId' is set
|
|
11534
|
+
if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersions';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/{schemaId}/versions','GET',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11535
|
+
* Get a list of schemas.
|
|
11536
|
+
*
|
|
11537
|
+
*/},{key:"getConversationsCustomattributesSchemas",value:function getConversationsCustomattributesSchemas(){return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11538
|
+
* Get the core types from which all schemas are built.
|
|
11539
|
+
*
|
|
11540
|
+
* @param {String} coreTypeName Name of the core type
|
|
11541
|
+
*/},{key:"getConversationsCustomattributesSchemasCoretype",value:function getConversationsCustomattributesSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
|
|
11542
|
+
if(coreTypeName===undefined||coreTypeName===null||coreTypeName===''){throw'Missing the required parameter "coreTypeName" when calling getConversationsCustomattributesSchemasCoretype';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/coretypes/{coreTypeName}','GET',{'coreTypeName':coreTypeName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11543
|
+
* Get the list of core types enabled for a specific namespace.
|
|
11544
|
+
*
|
|
11545
|
+
*/},{key:"getConversationsCustomattributesSchemasCoretypes",value:function getConversationsCustomattributesSchemasCoretypes(){return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/coretypes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11546
|
+
* Get quantitative limits on schemas
|
|
11547
|
+
*
|
|
11548
|
+
*/},{key:"getConversationsCustomattributesSchemasLimits",value:function getConversationsCustomattributesSchemasLimits(){return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11396
11549
|
* Get email conversation
|
|
11397
11550
|
*
|
|
11398
11551
|
* @param {String} conversationId conversationId
|
|
@@ -11483,7 +11636,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11483
11636
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMedia';}// verify the required parameter 'communicationId' is set
|
|
11484
11637
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMedia';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media','GET',{'conversationId':conversationId,'communicationId':communicationId},{'status':opts['status'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11485
11638
|
* Get media
|
|
11486
|
-
* See https://developer.genesys.cloud/
|
|
11639
|
+
* See https://developer.genesys.cloud/commdigital/digital/messagemediaupload/ for example usage.
|
|
11487
11640
|
* @param {String} conversationId conversationId
|
|
11488
11641
|
* @param {String} communicationId communicationId
|
|
11489
11642
|
* @param {String} mediaId mediaId
|
|
@@ -11656,6 +11809,30 @@ if(integrationId===undefined||integrationId===null||integrationId===''){throw'Mi
|
|
|
11656
11809
|
* @param {String} opts.supportedContentId Filter integrations returned based on the supported content ID
|
|
11657
11810
|
* @param {String} opts.messagingSettingId Filter integrations returned based on the setting ID
|
|
11658
11811
|
*/},{key:"getConversationsMessagingIntegrationsOpen",value:function getConversationsMessagingIntegrationsOpen(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'expand':opts['expand'],'supportedContent.id':opts['supportedContentId'],'messagingSetting.id':opts['messagingSettingId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11812
|
+
* Get an Open messaging integration with the Google Business Profile extension
|
|
11813
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
11814
|
+
* @param {String} integrationId Integration ID
|
|
11815
|
+
* @param {Object} opts Optional parameters
|
|
11816
|
+
* @param {Object} opts.expand Expand instructions for the return value.
|
|
11817
|
+
* getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11818
|
+
*/},{key:"getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId",value:function getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
11819
|
+
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}','GET',{'integrationId':integrationId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11820
|
+
* Get Google Business Profile OAuth 2 settings
|
|
11821
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
11822
|
+
* getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileOauthSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11823
|
+
*/},{key:"getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileOauthSettings",value:function getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileOauthSettings(){return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/oauth/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11824
|
+
* Get a Google Auth Token
|
|
11825
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
11826
|
+
* @param {String} tokenId Token ID
|
|
11827
|
+
* getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11828
|
+
*/},{key:"getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken",value:function getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken(tokenId){// verify the required parameter 'tokenId' is set
|
|
11829
|
+
if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required parameter "tokenId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens/{tokenId}','GET',{'tokenId':tokenId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11830
|
+
* Get Google Business Profile accounts
|
|
11831
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
11832
|
+
* @param {String} tokenId Token ID
|
|
11833
|
+
* getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11834
|
+
*/},{key:"getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts",value:function getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts(tokenId){// verify the required parameter 'tokenId' is set
|
|
11835
|
+
if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required parameter "tokenId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens/{tokenId}/accounts','GET',{'tokenId':tokenId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11659
11836
|
* Get an Open messaging integration
|
|
11660
11837
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
11661
11838
|
* @param {String} integrationId Integration ID
|
|
@@ -11786,6 +11963,20 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
11786
11963
|
* @param {String} meetingId meetingId
|
|
11787
11964
|
*/},{key:"getConversationsVideosMeeting",value:function getConversationsVideosMeeting(meetingId){// verify the required parameter 'meetingId' is set
|
|
11788
11965
|
if(meetingId===undefined||meetingId===null||meetingId===''){throw'Missing the required parameter "meetingId" when calling getConversationsVideosMeeting';}return this.apiClient.callApi('/api/v2/conversations/videos/meetings/{meetingId}','GET',{'meetingId':meetingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11966
|
+
* Update a single custom attributes record by amending the data with only the provided fields.
|
|
11967
|
+
*
|
|
11968
|
+
* @param {String} conversationId conversation ID
|
|
11969
|
+
* @param {Object} opts Optional parameters
|
|
11970
|
+
* @param {Object} opts.body
|
|
11971
|
+
*/},{key:"patchConversationCustomattributes",value:function patchConversationCustomattributes(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
11972
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributes';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes','PATCH',{'conversationId':conversationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11973
|
+
* Update a list of custom attributes record by amending the data with only the provided fields.
|
|
11974
|
+
*
|
|
11975
|
+
* @param {String} conversationId conversation ID
|
|
11976
|
+
* @param {Object} opts Optional parameters
|
|
11977
|
+
* @param {Array.<Object>} opts.body
|
|
11978
|
+
*/},{key:"patchConversationCustomattributesBulk",value:function patchConversationCustomattributesBulk(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
11979
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributesBulk';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes/bulk','PATCH',{'conversationId':conversationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11789
11980
|
* Update a participant.
|
|
11790
11981
|
* Update conversation participant.
|
|
11791
11982
|
* @param {String} conversationId conversation ID
|
|
@@ -12160,6 +12351,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12160
12351
|
*/},{key:"patchConversationsMessagingIntegrationsInstagramIntegrationId",value:function patchConversationsMessagingIntegrationsInstagramIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
12161
12352
|
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';}// verify the required parameter 'body' is set
|
|
12162
12353
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/instagram/{integrationId}','PATCH',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12354
|
+
* Update an Open messaging integration with the Google Business Profile extension
|
|
12355
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
12356
|
+
* @param {String} integrationId Integration ID
|
|
12357
|
+
* @param {Object} body GoogleBusinessProfileOpenIntegrationUpdateRequest
|
|
12358
|
+
* patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
12359
|
+
*/},{key:"patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId",value:function patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
12360
|
+
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';}// verify the required parameter 'body' is set
|
|
12361
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}','PATCH',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12163
12362
|
* Update an Open messaging integration
|
|
12164
12363
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
12165
12364
|
* @param {String} integrationId Integration ID
|
|
@@ -12669,6 +12868,16 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
12669
12868
|
*/},{key:"postConversationsCobrowsesessionParticipantReplace",value:function postConversationsCobrowsesessionParticipantReplace(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
12670
12869
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';}// verify the required parameter 'participantId' is set
|
|
12671
12870
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantReplace';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/replace','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12871
|
+
* Create a schema
|
|
12872
|
+
*
|
|
12873
|
+
* @param {Object} body Schema create request body
|
|
12874
|
+
*/},{key:"postConversationsCustomattributesSchemas",value:function postConversationsCustomattributesSchemas(body){// verify the required parameter 'body' is set
|
|
12875
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsCustomattributesSchemas';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12876
|
+
* Search resources.
|
|
12877
|
+
*
|
|
12878
|
+
* @param {Object} body Search request options
|
|
12879
|
+
*/},{key:"postConversationsCustomattributesSearch",value:function postConversationsCustomattributesSearch(body){// verify the required parameter 'body' is set
|
|
12880
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsCustomattributesSearch';}return this.apiClient.callApi('/api/v2/conversations/customattributes/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12672
12881
|
* Send an email to an external conversation. An external conversation is one where the provider is not PureCloud based. This endpoint allows the sender of the external email to reply or send a new message to the existing conversation. The new message will be treated as part of the existing conversation and chained to it.
|
|
12673
12882
|
*
|
|
12674
12883
|
* @param {String} conversationId conversationId
|
|
@@ -12760,7 +12969,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12760
12969
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';}// verify the required parameter 'communicationId' is set
|
|
12761
12970
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMedia';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12762
12971
|
* Create a URL to upload a message media file
|
|
12763
|
-
* See https://developer.genesys.cloud/
|
|
12972
|
+
* See https://developer.genesys.cloud/commdigital/digital/messagemediaupload/ for example usage.
|
|
12764
12973
|
* @param {String} conversationId conversationId
|
|
12765
12974
|
* @param {String} communicationId communicationId
|
|
12766
12975
|
* @param {Object} body request
|
|
@@ -12889,6 +13098,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12889
13098
|
* @param {Object} body OpenIntegrationRequest
|
|
12890
13099
|
*/},{key:"postConversationsMessagingIntegrationsOpen",value:function postConversationsMessagingIntegrationsOpen(body){// verify the required parameter 'body' is set
|
|
12891
13100
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpen';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13101
|
+
* Create an Open messaging integration with the Google Business Profile extension
|
|
13102
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
13103
|
+
* @param {Object} body GoogleBusinessProfileOpenIntegrationRequest
|
|
13104
|
+
* postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
13105
|
+
*/},{key:"postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile",value:function postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile(body){// verify the required parameter 'body' is set
|
|
13106
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13107
|
+
* Create a Google Auth Token by exchanging the one-time auth code retrieved from Google
|
|
13108
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
13109
|
+
* @param {Object} body GoogleAuthTokenRequest
|
|
13110
|
+
* postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
13111
|
+
*/},{key:"postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens",value:function postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens(body){// verify the required parameter 'body' is set
|
|
13112
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12892
13113
|
* Create Twitter Integration
|
|
12893
13114
|
*
|
|
12894
13115
|
* @param {Object} body TwitterIntegrationRequest
|
|
@@ -12967,6 +13188,20 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
12967
13188
|
* @param {Object} body MeetingIdRequest
|
|
12968
13189
|
*/},{key:"postConversationsVideosMeetings",value:function postConversationsVideosMeetings(body){// verify the required parameter 'body' is set
|
|
12969
13190
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsVideosMeetings';}return this.apiClient.callApi('/api/v2/conversations/videos/meetings','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13191
|
+
* Create or update a single custom attributes record. Updating replaces all data with the provided fields.
|
|
13192
|
+
*
|
|
13193
|
+
* @param {String} conversationId conversation ID
|
|
13194
|
+
* @param {Object} opts Optional parameters
|
|
13195
|
+
* @param {Object} opts.body
|
|
13196
|
+
*/},{key:"putConversationCustomattributes",value:function putConversationCustomattributes(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
13197
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationCustomattributes';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes','PUT',{'conversationId':conversationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13198
|
+
* Create or update a list of custom attributes records. Updating replaces all data with the provided fields.
|
|
13199
|
+
*
|
|
13200
|
+
* @param {String} conversationId conversation ID
|
|
13201
|
+
* @param {Object} opts Optional parameters
|
|
13202
|
+
* @param {Array.<Object>} opts.body
|
|
13203
|
+
*/},{key:"putConversationCustomattributesBulk",value:function putConversationCustomattributesBulk(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
13204
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationCustomattributesBulk';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes/bulk','PUT',{'conversationId':conversationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12970
13205
|
* Set flagged reason on conversation participant to indicate bad conversation quality.
|
|
12971
13206
|
*
|
|
12972
13207
|
* @param {String} conversationId conversation ID
|
|
@@ -13029,6 +13264,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13029
13264
|
*/},{key:"putConversationsCobrowsesessionRecordingstate",value:function putConversationsCobrowsesessionRecordingstate(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
13030
13265
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';}// verify the required parameter 'body' is set
|
|
13031
13266
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13267
|
+
* Update a schema
|
|
13268
|
+
*
|
|
13269
|
+
* @param {String} schemaId Schema ID
|
|
13270
|
+
* @param {Object} body Schema update request body
|
|
13271
|
+
*/},{key:"putConversationsCustomattributesSchema",value:function putConversationsCustomattributesSchema(schemaId,body){// verify the required parameter 'schemaId' is set
|
|
13272
|
+
if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the required parameter "schemaId" when calling putConversationsCustomattributesSchema';}// verify the required parameter 'body' is set
|
|
13273
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsCustomattributesSchema';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13032
13274
|
* Update conversation draft reply
|
|
13033
13275
|
*
|
|
13034
13276
|
* @param {String} conversationId conversationId
|
|
@@ -13138,7 +13380,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
13138
13380
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/videos/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataExtensionsApi=/*#__PURE__*/function(){/**
|
|
13139
13381
|
* DataExtensions service.
|
|
13140
13382
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
13141
|
-
* @version
|
|
13383
|
+
* @version 247.0.0
|
|
13142
13384
|
*//**
|
|
13143
13385
|
* Constructs a new DataExtensionsApi.
|
|
13144
13386
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -13159,7 +13401,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
|
|
|
13159
13401
|
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataPrivacyApi=/*#__PURE__*/function(){/**
|
|
13160
13402
|
* DataPrivacy service.
|
|
13161
13403
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
13162
|
-
* @version
|
|
13404
|
+
* @version 247.0.0
|
|
13163
13405
|
*//**
|
|
13164
13406
|
* Constructs a new DataPrivacyApi.
|
|
13165
13407
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -13199,7 +13441,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13199
13441
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';}return this.apiClient.callApi('/api/v2/dataprivacy/maskingrules/validate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
|
|
13200
13442
|
* Downloads service.
|
|
13201
13443
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
13202
|
-
* @version
|
|
13444
|
+
* @version 247.0.0
|
|
13203
13445
|
*//**
|
|
13204
13446
|
* Constructs a new DownloadsApi.
|
|
13205
13447
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -13218,7 +13460,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13218
13460
|
if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
|
|
13219
13461
|
* Emails service.
|
|
13220
13462
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
13221
|
-
* @version
|
|
13463
|
+
* @version 247.0.0
|
|
13222
13464
|
*//**
|
|
13223
13465
|
* Constructs a new EmailsApi.
|
|
13224
13466
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -13247,7 +13489,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
13247
13489
|
*/},{key:"patchEmailsSettingsThreading",value:function patchEmailsSettingsThreading(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings/threading','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
|
|
13248
13490
|
* EmployeeEngagement service.
|
|
13249
13491
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
13250
|
-
* @version
|
|
13492
|
+
* @version 247.0.0
|
|
13251
13493
|
*//**
|
|
13252
13494
|
* Constructs a new EmployeeEngagementApi.
|
|
13253
13495
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -13295,7 +13537,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13295
13537
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEmployeeengagementRecognitions';}return this.apiClient.callApi('/api/v2/employeeengagement/recognitions','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
|
|
13296
13538
|
* Events service.
|
|
13297
13539
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
13298
|
-
* @version
|
|
13540
|
+
* @version 247.0.0
|
|
13299
13541
|
*//**
|
|
13300
13542
|
* Constructs a new EventsApi.
|
|
13301
13543
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -13320,7 +13562,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13320
13562
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';}return this.apiClient.callApi('/api/v2/events/users/routingstatus','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ExternalContactsApi=/*#__PURE__*/function(){/**
|
|
13321
13563
|
* ExternalContacts service.
|
|
13322
13564
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
13323
|
-
* @version
|
|
13565
|
+
* @version 247.0.0
|
|
13324
13566
|
*//**
|
|
13325
13567
|
* Constructs a new ExternalContactsApi.
|
|
13326
13568
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -14070,7 +14312,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
|
|
|
14070
14312
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','PUT',{'relationshipId':relationshipId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FaxApi=/*#__PURE__*/function(){/**
|
|
14071
14313
|
* Fax service.
|
|
14072
14314
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
14073
|
-
* @version
|
|
14315
|
+
* @version 247.0.0
|
|
14074
14316
|
*//**
|
|
14075
14317
|
* Constructs a new FaxApi.
|
|
14076
14318
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -14119,7 +14361,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14119
14361
|
*/},{key:"putFaxSettings",value:function putFaxSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/fax/settings','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FlowsApi=/*#__PURE__*/function(){/**
|
|
14120
14362
|
* Flows service.
|
|
14121
14363
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
14122
|
-
* @version
|
|
14364
|
+
* @version 247.0.0
|
|
14123
14365
|
*//**
|
|
14124
14366
|
* Constructs a new FlowsApi.
|
|
14125
14367
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -14173,7 +14415,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14173
14415
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/observations/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GamificationApi=/*#__PURE__*/function(){/**
|
|
14174
14416
|
* Gamification service.
|
|
14175
14417
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
14176
|
-
* @version
|
|
14418
|
+
* @version 247.0.0
|
|
14177
14419
|
*//**
|
|
14178
14420
|
* Constructs a new GamificationApi.
|
|
14179
14421
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -14844,7 +15086,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14844
15086
|
if(status===undefined||status===null){throw'Missing the required parameter "status" when calling putGamificationStatus';}return this.apiClient.callApi('/api/v2/gamification/status','PUT',{},{},{},{},status,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeneralDataProtectionRegulationApi=/*#__PURE__*/function(){/**
|
|
14845
15087
|
* GeneralDataProtectionRegulation service.
|
|
14846
15088
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
14847
|
-
* @version
|
|
15089
|
+
* @version 247.0.0
|
|
14848
15090
|
*//**
|
|
14849
15091
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
14850
15092
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -14879,7 +15121,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
14879
15121
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGdprRequests';}return this.apiClient.callApi('/api/v2/gdpr/requests','POST',{},{'deleteConfirmed':opts['deleteConfirmed']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeolocationApi=/*#__PURE__*/function(){/**
|
|
14880
15122
|
* Geolocation service.
|
|
14881
15123
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
14882
|
-
* @version
|
|
15124
|
+
* @version 247.0.0
|
|
14883
15125
|
*//**
|
|
14884
15126
|
* Constructs a new GeolocationApi.
|
|
14885
15127
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -14913,7 +15155,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
14913
15155
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserGeolocation';}return this.apiClient.callApi('/api/v2/users/{userId}/geolocations/{clientId}','PATCH',{'userId':userId,'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GreetingsApi=/*#__PURE__*/function(){/**
|
|
14914
15156
|
* Greetings service.
|
|
14915
15157
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
14916
|
-
* @version
|
|
15158
|
+
* @version 247.0.0
|
|
14917
15159
|
*//**
|
|
14918
15160
|
* Constructs a new GreetingsApi.
|
|
14919
15161
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -15041,7 +15283,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
15041
15283
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';}return this.apiClient.callApi('/api/v2/users/{userId}/greetings/defaults','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GroupsApi=/*#__PURE__*/function(){/**
|
|
15042
15284
|
* Groups service.
|
|
15043
15285
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
15044
|
-
* @version
|
|
15286
|
+
* @version 247.0.0
|
|
15045
15287
|
*//**
|
|
15046
15288
|
* Constructs a new GroupsApi.
|
|
15047
15289
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -15174,7 +15416,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
|
|
|
15174
15416
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putGroupDynamicsettings';}return this.apiClient.callApi('/api/v2/groups/{groupId}/dynamicsettings','PUT',{'groupId':groupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IdentityProviderApi=/*#__PURE__*/function(){/**
|
|
15175
15417
|
* IdentityProvider service.
|
|
15176
15418
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
15177
|
-
* @version
|
|
15419
|
+
* @version 247.0.0
|
|
15178
15420
|
*//**
|
|
15179
15421
|
* Constructs a new IdentityProviderApi.
|
|
15180
15422
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -15330,7 +15572,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15330
15572
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIdentityprovidersSalesforce';}return this.apiClient.callApi('/api/v2/identityproviders/salesforce','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var InfrastructureAsCodeApi=/*#__PURE__*/function(){/**
|
|
15331
15573
|
* InfrastructureAsCode service.
|
|
15332
15574
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
15333
|
-
* @version
|
|
15575
|
+
* @version 247.0.0
|
|
15334
15576
|
*//**
|
|
15335
15577
|
* Constructs a new InfrastructureAsCodeApi.
|
|
15336
15578
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -15384,7 +15626,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
15384
15626
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postInfrastructureascodeJobs';}return this.apiClient.callApi('/api/v2/infrastructureascode/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IntegrationsApi=/*#__PURE__*/function(){/**
|
|
15385
15627
|
* Integrations service.
|
|
15386
15628
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
15387
|
-
* @version
|
|
15629
|
+
* @version 247.0.0
|
|
15388
15630
|
*//**
|
|
15389
15631
|
* Constructs a new IntegrationsApi.
|
|
15390
15632
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -16076,7 +16318,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
|
|
|
16076
16318
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';}return this.apiClient.callApi('/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences','PUT',{'ucIntegrationId':ucIntegrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IntentsApi=/*#__PURE__*/function(){/**
|
|
16077
16319
|
* Intents service.
|
|
16078
16320
|
* @module purecloud-platform-client-v2/api/IntentsApi
|
|
16079
|
-
* @version
|
|
16321
|
+
* @version 247.0.0
|
|
16080
16322
|
*//**
|
|
16081
16323
|
* Constructs a new IntentsApi.
|
|
16082
16324
|
* @alias module:purecloud-platform-client-v2/api/IntentsApi
|
|
@@ -16193,7 +16435,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16193
16435
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntentsCustomerintents';}return this.apiClient.callApi('/api/v2/intents/customerintents','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var JourneyApi=/*#__PURE__*/function(){/**
|
|
16194
16436
|
* Journey service.
|
|
16195
16437
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
16196
|
-
* @version
|
|
16438
|
+
* @version 247.0.0
|
|
16197
16439
|
*//**
|
|
16198
16440
|
* Constructs a new JourneyApi.
|
|
16199
16441
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -16702,7 +16944,7 @@ if(versionId===undefined||versionId===null||versionId===''){throw'Missing the re
|
|
|
16702
16944
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putJourneyViewVersion';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{versionId}','PUT',{'viewId':viewId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
|
|
16703
16945
|
* Knowledge service.
|
|
16704
16946
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
16705
|
-
* @version
|
|
16947
|
+
* @version 247.0.0
|
|
16706
16948
|
*//**
|
|
16707
16949
|
* Constructs a new KnowledgeApi.
|
|
16708
16950
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -16780,6 +17022,11 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
16780
17022
|
*/},{key:"deleteKnowledgeKnowledgebaseSynchronizeJob",value:function deleteKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId,syncJobId){// verify the required parameter 'knowledgeBaseId' is set
|
|
16781
17023
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';}// verify the required parameter 'syncJobId' is set
|
|
16782
17024
|
if(syncJobId===undefined||syncJobId===null||syncJobId===''){throw'Missing the required parameter "syncJobId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}','DELETE',{'knowledgeBaseId':knowledgeBaseId,'syncJobId':syncJobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17025
|
+
* Delete Knowledge setting.
|
|
17026
|
+
*
|
|
17027
|
+
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
17028
|
+
*/},{key:"deleteKnowledgeSetting",value:function deleteKnowledgeSetting(knowledgeSettingId){// verify the required parameter 'knowledgeSettingId' is set
|
|
17029
|
+
if(knowledgeSettingId===undefined||knowledgeSettingId===null||knowledgeSettingId===''){throw'Missing the required parameter "knowledgeSettingId" when calling deleteKnowledgeSetting';}return this.apiClient.callApi('/api/v2/knowledge/settings/{knowledgeSettingId}','DELETE',{'knowledgeSettingId':knowledgeSettingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16783
17030
|
* Get categories
|
|
16784
17031
|
*
|
|
16785
17032
|
* @param {String} sessionId Knowledge guest session ID.
|
|
@@ -17120,6 +17367,22 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
17120
17367
|
* @param {Object} opts.sortBy Sort by.
|
|
17121
17368
|
* @param {Object} opts.sortOrder Sort Order.
|
|
17122
17369
|
*/},{key:"getKnowledgeKnowledgebases",value:function getKnowledgeKnowledgebases(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','GET',{},{'before':opts['before'],'after':opts['after'],'limit':opts['limit'],'pageSize':opts['pageSize'],'name':opts['name'],'coreLanguage':opts['coreLanguage'],'published':opts['published'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17370
|
+
* Get Knowledge setting.
|
|
17371
|
+
*
|
|
17372
|
+
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
17373
|
+
*/},{key:"getKnowledgeSetting",value:function getKnowledgeSetting(knowledgeSettingId){// verify the required parameter 'knowledgeSettingId' is set
|
|
17374
|
+
if(knowledgeSettingId===undefined||knowledgeSettingId===null||knowledgeSettingId===''){throw'Missing the required parameter "knowledgeSettingId" when calling getKnowledgeSetting';}return this.apiClient.callApi('/api/v2/knowledge/settings/{knowledgeSettingId}','GET',{'knowledgeSettingId':knowledgeSettingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17375
|
+
* Get Knowledge settings.
|
|
17376
|
+
*
|
|
17377
|
+
* @param {Object} opts Optional parameters
|
|
17378
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
17379
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
17380
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
17381
|
+
* @param {String} opts.name Knowledge setting name to search upon.
|
|
17382
|
+
* @param {String} opts.sourceId Source ID to filter knowledge settings by.
|
|
17383
|
+
* @param {Object} opts.sortBy Field to sort the knowledge settings on.
|
|
17384
|
+
* @param {Object} opts.sortOrder Sorting order for knowledge settings.
|
|
17385
|
+
*/},{key:"getKnowledgeSettings",value:function getKnowledgeSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/knowledge/settings','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'name':opts['name'],'sourceId':opts['sourceId'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17123
17386
|
* Update search result.
|
|
17124
17387
|
*
|
|
17125
17388
|
* @param {String} sessionId Knowledge guest session ID.
|
|
@@ -17241,6 +17504,13 @@ if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){th
|
|
|
17241
17504
|
if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';}// verify the required parameter 'phraseGroupId' is set
|
|
17242
17505
|
if(phraseGroupId===undefined||phraseGroupId===null||phraseGroupId===''){throw'Missing the required parameter "phraseGroupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';}// verify the required parameter 'body' is set
|
|
17243
17506
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups/{groupId}/phrasegroups/{phraseGroupId}','PATCH',{'knowledgeBaseId':knowledgeBaseId,'groupId':groupId,'phraseGroupId':phraseGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17507
|
+
* Update Knowledge setting.
|
|
17508
|
+
*
|
|
17509
|
+
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
17510
|
+
* @param {Object} body
|
|
17511
|
+
*/},{key:"patchKnowledgeSetting",value:function patchKnowledgeSetting(knowledgeSettingId,body){// verify the required parameter 'knowledgeSettingId' is set
|
|
17512
|
+
if(knowledgeSettingId===undefined||knowledgeSettingId===null||knowledgeSettingId===''){throw'Missing the required parameter "knowledgeSettingId" when calling patchKnowledgeSetting';}// verify the required parameter 'body' is set
|
|
17513
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchKnowledgeSetting';}return this.apiClient.callApi('/api/v2/knowledge/settings/{knowledgeSettingId}','PATCH',{'knowledgeSettingId':knowledgeSettingId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17244
17514
|
* Creates a presigned URL for uploading a knowledge import file with a set of documents
|
|
17245
17515
|
*
|
|
17246
17516
|
* @param {Object} body query
|
|
@@ -17519,6 +17789,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17519
17789
|
* @param {Object} body
|
|
17520
17790
|
*/},{key:"postKnowledgeKnowledgebases",value:function postKnowledgeKnowledgebases(body){// verify the required parameter 'body' is set
|
|
17521
17791
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17792
|
+
* Get Knowledge Search Preview
|
|
17793
|
+
*
|
|
17794
|
+
* @param {Object} opts Optional parameters
|
|
17795
|
+
* @param {Object} opts.body
|
|
17796
|
+
*/},{key:"postKnowledgeSearchPreview",value:function postKnowledgeSearchPreview(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/knowledge/search/preview','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17797
|
+
* Create Knowledge setting.
|
|
17798
|
+
*
|
|
17799
|
+
* @param {Object} opts Optional parameters
|
|
17800
|
+
* @param {Object} opts.body
|
|
17801
|
+
*/},{key:"postKnowledgeSettings",value:function postKnowledgeSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/knowledge/settings','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17522
17802
|
* Update Salesforce Knowledge integration source
|
|
17523
17803
|
*
|
|
17524
17804
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
@@ -17539,7 +17819,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
17539
17819
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}','PUT',{'knowledgeBaseId':knowledgeBaseId,'sourceId':sourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
|
|
17540
17820
|
* LanguageUnderstanding service.
|
|
17541
17821
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
17542
|
-
* @version
|
|
17822
|
+
* @version 247.0.0
|
|
17543
17823
|
*//**
|
|
17544
17824
|
* Constructs a new LanguageUnderstandingApi.
|
|
17545
17825
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -17848,7 +18128,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
|
|
|
17848
18128
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLanguageunderstandingDomainVersion';}return this.apiClient.callApi('/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}','PUT',{'domainId':domainId,'domainVersionId':domainVersionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguagesApi=/*#__PURE__*/function(){/**
|
|
17849
18129
|
* Languages service.
|
|
17850
18130
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
17851
|
-
* @version
|
|
18131
|
+
* @version 247.0.0
|
|
17852
18132
|
*//**
|
|
17853
18133
|
* Constructs a new LanguagesApi.
|
|
17854
18134
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -17903,7 +18183,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17903
18183
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguages';}return this.apiClient.callApi('/api/v2/languages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LearningApi=/*#__PURE__*/function(){/**
|
|
17904
18184
|
* Learning service.
|
|
17905
18185
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
17906
|
-
* @version
|
|
18186
|
+
* @version 247.0.0
|
|
17907
18187
|
*//**
|
|
17908
18188
|
* Constructs a new LearningApi.
|
|
17909
18189
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -18192,7 +18472,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
|
|
|
18192
18472
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{'assign':opts['assign']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
|
|
18193
18473
|
* License service.
|
|
18194
18474
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
18195
|
-
* @version
|
|
18475
|
+
* @version 247.0.0
|
|
18196
18476
|
*//**
|
|
18197
18477
|
* Constructs a new LicenseApi.
|
|
18198
18478
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -18246,7 +18526,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
|
|
|
18246
18526
|
*/},{key:"postLicenseUsers",value:function postLicenseUsers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/license/users','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LocationsApi=/*#__PURE__*/function(){/**
|
|
18247
18527
|
* Locations service.
|
|
18248
18528
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
18249
|
-
* @version
|
|
18529
|
+
* @version 247.0.0
|
|
18250
18530
|
*//**
|
|
18251
18531
|
* Constructs a new LocationsApi.
|
|
18252
18532
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -18305,7 +18585,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18305
18585
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLocationsSearch';}return this.apiClient.callApi('/api/v2/locations/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LogCaptureApi=/*#__PURE__*/function(){/**
|
|
18306
18586
|
* LogCapture service.
|
|
18307
18587
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
18308
|
-
* @version
|
|
18588
|
+
* @version 247.0.0
|
|
18309
18589
|
*//**
|
|
18310
18590
|
* Constructs a new LogCaptureApi.
|
|
18311
18591
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -18354,7 +18634,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
18354
18634
|
if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
|
|
18355
18635
|
* Messaging service.
|
|
18356
18636
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
18357
|
-
* @version
|
|
18637
|
+
* @version 247.0.0
|
|
18358
18638
|
*//**
|
|
18359
18639
|
* Constructs a new MessagingApi.
|
|
18360
18640
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -18444,7 +18724,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18444
18724
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putMessagingSettingsDefault';}return this.apiClient.callApi('/api/v2/messaging/settings/default','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MobileDevicesApi=/*#__PURE__*/function(){/**
|
|
18445
18725
|
* MobileDevices service.
|
|
18446
18726
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
18447
|
-
* @version
|
|
18727
|
+
* @version 247.0.0
|
|
18448
18728
|
*//**
|
|
18449
18729
|
* Constructs a new MobileDevicesApi.
|
|
18450
18730
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -18483,7 +18763,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18483
18763
|
if(deviceId===undefined||deviceId===null||deviceId===''){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
|
|
18484
18764
|
* Notifications service.
|
|
18485
18765
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
18486
|
-
* @version
|
|
18766
|
+
* @version 247.0.0
|
|
18487
18767
|
*//**
|
|
18488
18768
|
* Constructs a new NotificationsApi.
|
|
18489
18769
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -18540,7 +18820,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
|
|
|
18540
18820
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';}return this.apiClient.callApi('/api/v2/notifications/channels/{channelId}/subscriptions','PUT',{'channelId':channelId},{'ignoreErrors':opts['ignoreErrors']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OAuthApi=/*#__PURE__*/function(){/**
|
|
18541
18821
|
* OAuth service.
|
|
18542
18822
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
18543
|
-
* @version
|
|
18823
|
+
* @version 247.0.0
|
|
18544
18824
|
*//**
|
|
18545
18825
|
* Constructs a new OAuthApi.
|
|
18546
18826
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -18625,7 +18905,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
18625
18905
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOauthClient';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}','PUT',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ObjectsApi=/*#__PURE__*/function(){/**
|
|
18626
18906
|
* Objects service.
|
|
18627
18907
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
18628
|
-
* @version
|
|
18908
|
+
* @version 247.0.0
|
|
18629
18909
|
*//**
|
|
18630
18910
|
* Constructs a new ObjectsApi.
|
|
18631
18911
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -18711,7 +18991,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
|
|
|
18711
18991
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','PUT',{'divisionId':divisionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OperationalEventsApi=/*#__PURE__*/function(){/**
|
|
18712
18992
|
* OperationalEvents service.
|
|
18713
18993
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
18714
|
-
* @version
|
|
18994
|
+
* @version 247.0.0
|
|
18715
18995
|
*//**
|
|
18716
18996
|
* Constructs a new OperationalEventsApi.
|
|
18717
18997
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -18742,7 +19022,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
18742
19022
|
*/},{key:"postUsageEventsQuery",value:function postUsageEventsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/usage/events/query','POST',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
|
|
18743
19023
|
* Organization service.
|
|
18744
19024
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
18745
|
-
* @version
|
|
19025
|
+
* @version 247.0.0
|
|
18746
19026
|
*//**
|
|
18747
19027
|
* Constructs a new OrganizationApi.
|
|
18748
19028
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -18847,7 +19127,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18847
19127
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOrganizationsWhitelist';}return this.apiClient.callApi('/api/v2/organizations/whitelist','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationAuthorizationApi=/*#__PURE__*/function(){/**
|
|
18848
19128
|
* OrganizationAuthorization service.
|
|
18849
19129
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
18850
|
-
* @version
|
|
19130
|
+
* @version 247.0.0
|
|
18851
19131
|
*//**
|
|
18852
19132
|
* Constructs a new OrganizationAuthorizationApi.
|
|
18853
19133
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -19181,7 +19461,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
19181
19461
|
if(trusteeUserId===undefined||trusteeUserId===null||trusteeUserId===''){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
|
|
19182
19462
|
* Outbound service.
|
|
19183
19463
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
19184
|
-
* @version
|
|
19464
|
+
* @version 247.0.0
|
|
19185
19465
|
*//**
|
|
19186
19466
|
* Constructs a new OutboundApi.
|
|
19187
19467
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -20348,7 +20628,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20348
20628
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOutboundWrapupcodemappings';}return this.apiClient.callApi('/api/v2/outbound/wrapupcodemappings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var PresenceApi=/*#__PURE__*/function(){/**
|
|
20349
20629
|
* Presence service.
|
|
20350
20630
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
20351
|
-
* @version
|
|
20631
|
+
* @version 247.0.0
|
|
20352
20632
|
*//**
|
|
20353
20633
|
* Constructs a new PresenceApi.
|
|
20354
20634
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -20521,7 +20801,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20521
20801
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersPresencesBulk';}return this.apiClient.callApi('/api/v2/users/presences/bulk','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ProcessAutomationApi=/*#__PURE__*/function(){/**
|
|
20522
20802
|
* ProcessAutomation service.
|
|
20523
20803
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
20524
|
-
* @version
|
|
20804
|
+
* @version 247.0.0
|
|
20525
20805
|
*//**
|
|
20526
20806
|
* Constructs a new ProcessAutomationApi.
|
|
20527
20807
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -20584,7 +20864,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
|
|
|
20584
20864
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putProcessautomationTrigger';}return this.apiClient.callApi('/api/v2/processautomation/triggers/{triggerId}','PUT',{'triggerId':triggerId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var QualityApi=/*#__PURE__*/function(){/**
|
|
20585
20865
|
* Quality service.
|
|
20586
20866
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
20587
|
-
* @version
|
|
20867
|
+
* @version 247.0.0
|
|
20588
20868
|
*//**
|
|
20589
20869
|
* Constructs a new QualityApi.
|
|
20590
20870
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -20989,10 +21269,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20989
21269
|
* @param {String} conversationId conversationId
|
|
20990
21270
|
* @param {Object} body evaluation
|
|
20991
21271
|
* @param {Object} opts Optional parameters
|
|
21272
|
+
* @param {String} opts.idempotencyKey Idempotency key for request deduplication
|
|
20992
21273
|
* @param {String} opts.expand evaluatorId
|
|
20993
21274
|
*/},{key:"postQualityConversationEvaluations",value:function postQualityConversationEvaluations(conversationId,body,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
20994
21275
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';}// verify the required parameter 'body' is set
|
|
20995
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';}return this.apiClient.callApi('/api/v2/quality/conversations/{conversationId}/evaluations','POST',{'conversationId':conversationId},{'expand':opts['expand']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21276
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';}return this.apiClient.callApi('/api/v2/quality/conversations/{conversationId}/evaluations','POST',{'conversationId':conversationId},{'expand':opts['expand']},{'Idempotency-Key':opts['idempotencyKey']},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20996
21277
|
* Create audit query execution
|
|
20997
21278
|
*
|
|
20998
21279
|
* @param {Object} body query
|
|
@@ -21127,7 +21408,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
21127
21408
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putQualitySurveysScorable';}return this.apiClient.callApi('/api/v2/quality/surveys/scorable','PUT',{},{'customerSurveyUrl':customerSurveyUrl},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RecordingApi=/*#__PURE__*/function(){/**
|
|
21128
21409
|
* Recording service.
|
|
21129
21410
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
21130
|
-
* @version
|
|
21411
|
+
* @version 247.0.0
|
|
21131
21412
|
*//**
|
|
21132
21413
|
* Constructs a new RecordingApi.
|
|
21133
21414
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -21526,7 +21807,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21526
21807
|
*/},{key:"putRecordingsDeletionprotection",value:function putRecordingsDeletionprotection(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/recordings/deletionprotection','PUT',{},{'protect':opts['protect']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ResponseManagementApi=/*#__PURE__*/function(){/**
|
|
21527
21808
|
* ResponseManagement service.
|
|
21528
21809
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
21529
|
-
* @version
|
|
21810
|
+
* @version 247.0.0
|
|
21530
21811
|
*//**
|
|
21531
21812
|
* Constructs a new ResponseManagementApi.
|
|
21532
21813
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -21647,7 +21928,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
|
|
|
21647
21928
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';}return this.apiClient.callApi('/api/v2/responsemanagement/responseassets/{responseAssetId}','PUT',{'responseAssetId':responseAssetId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RoutingApi=/*#__PURE__*/function(){/**
|
|
21648
21929
|
* Routing service.
|
|
21649
21930
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
21650
|
-
* @version
|
|
21931
|
+
* @version 247.0.0
|
|
21651
21932
|
*//**
|
|
21652
21933
|
* Constructs a new RoutingApi.
|
|
21653
21934
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -22423,6 +22704,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22423
22704
|
* @param {Object} body Organization Settings
|
|
22424
22705
|
*/},{key:"patchRoutingSettingsTranscription",value:function patchRoutingSettingsTranscription(body){// verify the required parameter 'body' is set
|
|
22425
22706
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchRoutingSettingsTranscription';}return this.apiClient.callApi('/api/v2/routing/settings/transcription','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22707
|
+
* Update Routing Skill Division
|
|
22708
|
+
*
|
|
22709
|
+
* @param {String} skillId Skill ID
|
|
22710
|
+
* @param {Object} body updateSkillDivisionRequest
|
|
22711
|
+
*/},{key:"patchRoutingSkill",value:function patchRoutingSkill(skillId,body){// verify the required parameter 'skillId' is set
|
|
22712
|
+
if(skillId===undefined||skillId===null||skillId===''){throw'Missing the required parameter "skillId" when calling patchRoutingSkill';}// verify the required parameter 'body' is set
|
|
22713
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchRoutingSkill';}return this.apiClient.callApi('/api/v2/routing/skills/{skillId}','PATCH',{'skillId':skillId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22426
22714
|
* Update skill group definition
|
|
22427
22715
|
*
|
|
22428
22716
|
* @param {String} skillGroupId Skill Group ID
|
|
@@ -22786,7 +23074,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
22786
23074
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';}return this.apiClient.callApi('/api/v2/users/{userId}/routingskills/bulk','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SCIMApi=/*#__PURE__*/function(){/**
|
|
22787
23075
|
* SCIM service.
|
|
22788
23076
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
22789
|
-
* @version
|
|
23077
|
+
* @version 247.0.0
|
|
22790
23078
|
*//**
|
|
22791
23079
|
* Constructs a new SCIMApi.
|
|
22792
23080
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -23011,7 +23299,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
23011
23299
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putScimV2User';}return this.apiClient.callApi('/api/v2/scim/v2/users/{userId}','PUT',{'userId':userId},{},{'If-Match':opts['ifMatch']},{},body,['PureCloud OAuth'],['application/scim+json','application/json'],['application/scim+json','application/json']);}}]);}();var ScriptsApi=/*#__PURE__*/function(){/**
|
|
23012
23300
|
* Scripts service.
|
|
23013
23301
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
23014
|
-
* @version
|
|
23302
|
+
* @version 247.0.0
|
|
23015
23303
|
*//**
|
|
23016
23304
|
* Constructs a new ScriptsApi.
|
|
23017
23305
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -23157,7 +23445,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
|
|
|
23157
23445
|
*/},{key:"postScriptsPublished",value:function postScriptsPublished(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/scripts/published','POST',{},{'scriptDataVersion':opts['scriptDataVersion']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SearchApi=/*#__PURE__*/function(){/**
|
|
23158
23446
|
* Search service.
|
|
23159
23447
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
23160
|
-
* @version
|
|
23448
|
+
* @version 247.0.0
|
|
23161
23449
|
*//**
|
|
23162
23450
|
* Constructs a new SearchApi.
|
|
23163
23451
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -23227,6 +23515,11 @@ if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when
|
|
|
23227
23515
|
* @param {Array.<String>} opts.expand expand
|
|
23228
23516
|
*/},{key:"getVoicemailSearch",value:function getVoicemailSearch(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
|
|
23229
23517
|
if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when calling getVoicemailSearch';}return this.apiClient.callApi('/api/v2/voicemail/search','GET',{},{'q64':q64,'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23518
|
+
* Search resources.
|
|
23519
|
+
*
|
|
23520
|
+
* @param {Object} body Search request options
|
|
23521
|
+
*/},{key:"postConversationsCustomattributesSearch",value:function postConversationsCustomattributesSearch(body){// verify the required parameter 'body' is set
|
|
23522
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsCustomattributesSearch';}return this.apiClient.callApi('/api/v2/conversations/customattributes/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23230
23523
|
* Search conversations
|
|
23231
23524
|
*
|
|
23232
23525
|
* @param {Object} body Search request options
|
|
@@ -23316,7 +23609,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23316
23609
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postVoicemailSearch';}return this.apiClient.callApi('/api/v2/voicemail/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SettingsApi=/*#__PURE__*/function(){/**
|
|
23317
23610
|
* Settings service.
|
|
23318
23611
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
23319
|
-
* @version
|
|
23612
|
+
* @version 247.0.0
|
|
23320
23613
|
*//**
|
|
23321
23614
|
* Constructs a new SettingsApi.
|
|
23322
23615
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -23388,7 +23681,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
23388
23681
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SocialMediaApi=/*#__PURE__*/function(){/**
|
|
23389
23682
|
* SocialMedia service.
|
|
23390
23683
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
23391
|
-
* @version
|
|
23684
|
+
* @version 247.0.0
|
|
23392
23685
|
*//**
|
|
23393
23686
|
* Constructs a new SocialMediaApi.
|
|
23394
23687
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -23423,6 +23716,16 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
23423
23716
|
*/},{key:"deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23424
23717
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
23425
23718
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','DELETE',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23719
|
+
* Delete a Google Business Profile data ingestion rule.
|
|
23720
|
+
*
|
|
23721
|
+
* @param {String} topicId topicId
|
|
23722
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
23723
|
+
* @param {Object} opts Optional parameters
|
|
23724
|
+
* @param {Boolean} opts.hardDelete Determines whether a Google Business Profile data ingestion rule should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default. (default to false)
|
|
23725
|
+
* deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
23726
|
+
*/},{key:"deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId",value:function deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(topicId,googleBusinessProfileIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23727
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
23728
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}','DELETE',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23426
23729
|
* Delete a Instagram data ingestion rule.
|
|
23427
23730
|
*
|
|
23428
23731
|
* @param {String} topicId topicId
|
|
@@ -23536,6 +23839,40 @@ if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null||dataIn
|
|
|
23536
23839
|
*/},{key:"getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions",value:function getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23537
23840
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
23538
23841
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions','GET',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23842
|
+
* Get a single Google Business Profile data ingestion rule.
|
|
23843
|
+
*
|
|
23844
|
+
* @param {String} topicId topicId
|
|
23845
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
23846
|
+
* @param {Object} opts Optional parameters
|
|
23847
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
23848
|
+
* getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
23849
|
+
*/},{key:"getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId",value:function getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(topicId,googleBusinessProfileIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23850
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
23851
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}','GET',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23852
|
+
* Get a single Google Business Profile data ingestion rule version.
|
|
23853
|
+
*
|
|
23854
|
+
* @param {String} topicId topicId
|
|
23855
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
23856
|
+
* @param {String} dataIngestionRuleVersion version
|
|
23857
|
+
* @param {Object} opts Optional parameters
|
|
23858
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
|
|
23859
|
+
* getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
23860
|
+
*/},{key:"getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion",value:function getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion(topicId,googleBusinessProfileIngestionRuleId,dataIngestionRuleVersion,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23861
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
23862
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';}// verify the required parameter 'dataIngestionRuleVersion' is set
|
|
23863
|
+
if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null||dataIngestionRuleVersion===''){throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}/versions/{dataIngestionRuleVersion}','GET',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId,'dataIngestionRuleVersion':dataIngestionRuleVersion},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23864
|
+
* Get the Google Business Profile data ingestion rule versions.
|
|
23865
|
+
*
|
|
23866
|
+
* @param {String} topicId topicId
|
|
23867
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
23868
|
+
* @param {Object} opts Optional parameters
|
|
23869
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
23870
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
23871
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
23872
|
+
* getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
23873
|
+
*/},{key:"getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions",value:function getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions(topicId,googleBusinessProfileIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23874
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
23875
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}/versions','GET',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23539
23876
|
* Get a single Instagram data ingestion rule.
|
|
23540
23877
|
*
|
|
23541
23878
|
* @param {String} topicId topicId
|
|
@@ -23655,6 +23992,16 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
23655
23992
|
*/},{key:"patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23656
23993
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
23657
23994
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','PATCH',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23995
|
+
* Update the status of a Google Business Profile data ingestion rule.
|
|
23996
|
+
*
|
|
23997
|
+
* @param {String} topicId topicId
|
|
23998
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
23999
|
+
* @param {Object} opts Optional parameters
|
|
24000
|
+
* @param {Object} opts.body
|
|
24001
|
+
* patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
24002
|
+
*/},{key:"patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId",value:function patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(topicId,googleBusinessProfileIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
24003
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
24004
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}','PATCH',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23658
24005
|
* Update the status of a Instagram data ingestion rule.
|
|
23659
24006
|
*
|
|
23660
24007
|
* @param {String} topicId topicId
|
|
@@ -23711,6 +24058,14 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
23711
24058
|
* @param {Object} opts.body
|
|
23712
24059
|
*/},{key:"postSocialmediaTopicDataingestionrulesFacebook",value:function postSocialmediaTopicDataingestionrulesFacebook(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23713
24060
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesFacebook';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook','POST',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
24061
|
+
* Create a Google Business Profile data ingestion rule.
|
|
24062
|
+
*
|
|
24063
|
+
* @param {String} topicId topicId
|
|
24064
|
+
* @param {Object} opts Optional parameters
|
|
24065
|
+
* @param {Object} opts.body
|
|
24066
|
+
* postSocialmediaTopicDataingestionrulesGooglebusinessprofile is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
24067
|
+
*/},{key:"postSocialmediaTopicDataingestionrulesGooglebusinessprofile",value:function postSocialmediaTopicDataingestionrulesGooglebusinessprofile(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
24068
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesGooglebusinessprofile';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile','POST',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23714
24069
|
* Create an Instagram data ingestion rule.
|
|
23715
24070
|
*
|
|
23716
24071
|
* @param {String} topicId topicId
|
|
@@ -23776,6 +24131,16 @@ if(escalationRuleId===undefined||escalationRuleId===null||escalationRuleId==='')
|
|
|
23776
24131
|
*/},{key:"putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23777
24132
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
23778
24133
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','PUT',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
24134
|
+
* Update the Google Business Profile data ingestion rule.
|
|
24135
|
+
*
|
|
24136
|
+
* @param {String} topicId topicId
|
|
24137
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
24138
|
+
* @param {Object} opts Optional parameters
|
|
24139
|
+
* @param {Object} opts.body
|
|
24140
|
+
* putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
24141
|
+
*/},{key:"putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId",value:function putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(topicId,googleBusinessProfileIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
24142
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
24143
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}','PUT',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23779
24144
|
* Update the Instagram data ingestion rule.
|
|
23780
24145
|
*
|
|
23781
24146
|
* @param {String} topicId topicId
|
|
@@ -23805,7 +24170,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
23805
24170
|
if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null||twitterIngestionRuleId===''){throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PUT',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
23806
24171
|
* SpeechTextAnalytics service.
|
|
23807
24172
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
23808
|
-
* @version
|
|
24173
|
+
* @version 247.0.0
|
|
23809
24174
|
*//**
|
|
23810
24175
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
23811
24176
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -24184,7 +24549,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
24184
24549
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/{topicId}','PUT',{'topicId':topicId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var StationsApi=/*#__PURE__*/function(){/**
|
|
24185
24550
|
* Stations service.
|
|
24186
24551
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
24187
|
-
* @version
|
|
24552
|
+
* @version 247.0.0
|
|
24188
24553
|
*//**
|
|
24189
24554
|
* Constructs a new StationsApi.
|
|
24190
24555
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -24216,7 +24581,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
|
|
|
24216
24581
|
*/},{key:"getStations",value:function getStations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/stations','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'name':opts['name'],'userSelectable':opts['userSelectable'],'webRtcUserId':opts['webRtcUserId'],'id':opts['id'],'lineAppearanceId':opts['lineAppearanceId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SuggestApi=/*#__PURE__*/function(){/**
|
|
24217
24582
|
* Suggest service.
|
|
24218
24583
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
24219
|
-
* @version
|
|
24584
|
+
* @version 247.0.0
|
|
24220
24585
|
*//**
|
|
24221
24586
|
* Constructs a new SuggestApi.
|
|
24222
24587
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -24256,7 +24621,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24256
24621
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSearchSuggest';}return this.apiClient.callApi('/api/v2/search/suggest','POST',{},{'profile':opts['profile']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TaskManagementApi=/*#__PURE__*/function(){/**
|
|
24257
24622
|
* TaskManagement service.
|
|
24258
24623
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
24259
|
-
* @version
|
|
24624
|
+
* @version 247.0.0
|
|
24260
24625
|
*//**
|
|
24261
24626
|
* Constructs a new TaskManagementApi.
|
|
24262
24627
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -24764,7 +25129,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
24764
25129
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TeamsApi=/*#__PURE__*/function(){/**
|
|
24765
25130
|
* Teams service.
|
|
24766
25131
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
24767
|
-
* @version
|
|
25132
|
+
* @version 247.0.0
|
|
24768
25133
|
*//**
|
|
24769
25134
|
* Constructs a new TeamsApi.
|
|
24770
25135
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -24844,7 +25209,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24844
25209
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTeamsSearch';}return this.apiClient.callApi('/api/v2/teams/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyApi=/*#__PURE__*/function(){/**
|
|
24845
25210
|
* Telephony service.
|
|
24846
25211
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
24847
|
-
* @version
|
|
25212
|
+
* @version 247.0.0
|
|
24848
25213
|
*//**
|
|
24849
25214
|
* Constructs a new TelephonyApi.
|
|
24850
25215
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -24860,6 +25225,11 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
24860
25225
|
* Get the agent's own greetings.
|
|
24861
25226
|
*
|
|
24862
25227
|
*/},{key:"getTelephonyAgentsGreetingsMe",value:function getTelephonyAgentsGreetingsMe(){return this.apiClient.callApi('/api/v2/telephony/agents/greetings/me','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25228
|
+
* Get the concurrent call metrics for a given organization.
|
|
25229
|
+
*
|
|
25230
|
+
* @param {Object} opts Optional parameters
|
|
25231
|
+
* @param {Object} opts.metricType Flag to indicate metric type to fetch. (default to cloud)
|
|
25232
|
+
*/},{key:"getTelephonyCallsMetrics",value:function getTelephonyCallsMetrics(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/telephony/calls/metrics','GET',{},{'metricType':opts['metricType']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
24863
25233
|
* Retrieve the list of AWS regions media can stream through.
|
|
24864
25234
|
*
|
|
24865
25235
|
*/},{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -24911,7 +25281,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24911
25281
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyAgentsGreetingsMe';}return this.apiClient.callApi('/api/v2/telephony/agents/greetings/me','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
|
|
24912
25282
|
* TelephonyProvidersEdge service.
|
|
24913
25283
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
24914
|
-
* @version
|
|
25284
|
+
* @version 247.0.0
|
|
24915
25285
|
*//**
|
|
24916
25286
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
24917
25287
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -25759,7 +26129,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
|
|
|
25759
26129
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}','PUT',{'trunkBaseSettingsId':trunkBaseSettingsId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TextbotsApi=/*#__PURE__*/function(){/**
|
|
25760
26130
|
* Textbots service.
|
|
25761
26131
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
25762
|
-
* @version
|
|
26132
|
+
* @version 247.0.0
|
|
25763
26133
|
*//**
|
|
25764
26134
|
* Constructs a new TextbotsApi.
|
|
25765
26135
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -25795,7 +26165,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
25795
26165
|
if(postTextRequest===undefined||postTextRequest===null){throw'Missing the required parameter "postTextRequest" when calling postTextbotsBotsExecute';}return this.apiClient.callApi('/api/v2/textbots/bots/execute','POST',{},{},{},{},postTextRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TokensApi=/*#__PURE__*/function(){/**
|
|
25796
26166
|
* Tokens service.
|
|
25797
26167
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
25798
|
-
* @version
|
|
26168
|
+
* @version 247.0.0
|
|
25799
26169
|
*//**
|
|
25800
26170
|
* Constructs a new TokensApi.
|
|
25801
26171
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -25829,7 +26199,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
25829
26199
|
*/},{key:"putTokensTimeout",value:function putTokensTimeout(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/tokens/timeout','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UploadsApi=/*#__PURE__*/function(){/**
|
|
25830
26200
|
* Uploads service.
|
|
25831
26201
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
25832
|
-
* @version
|
|
26202
|
+
* @version 247.0.0
|
|
25833
26203
|
*//**
|
|
25834
26204
|
* Constructs a new UploadsApi.
|
|
25835
26205
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -25902,7 +26272,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25902
26272
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUploadsWorkforcemanagementHistoricaldataCsv';}return this.apiClient.callApi('/api/v2/uploads/workforcemanagement/historicaldata/csv','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsageApi=/*#__PURE__*/function(){/**
|
|
25903
26273
|
* Usage service.
|
|
25904
26274
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
25905
|
-
* @version
|
|
26275
|
+
* @version 247.0.0
|
|
25906
26276
|
*//**
|
|
25907
26277
|
* Constructs a new UsageApi.
|
|
25908
26278
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -25986,7 +26356,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25986
26356
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageSimplesearch';}return this.apiClient.callApi('/api/v2/usage/simplesearch','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UserRecordingsApi=/*#__PURE__*/function(){/**
|
|
25987
26357
|
* UserRecordings service.
|
|
25988
26358
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
25989
|
-
* @version
|
|
26359
|
+
* @version 247.0.0
|
|
25990
26360
|
*//**
|
|
25991
26361
|
* Constructs a new UserRecordingsApi.
|
|
25992
26362
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -26034,7 +26404,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
26034
26404
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserrecording';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}','PUT',{'recordingId':recordingId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsersApi=/*#__PURE__*/function(){/**
|
|
26035
26405
|
* Users service.
|
|
26036
26406
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
26037
|
-
* @version
|
|
26407
|
+
* @version 247.0.0
|
|
26038
26408
|
*//**
|
|
26039
26409
|
* Constructs a new UsersApi.
|
|
26040
26410
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -26884,7 +27254,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
26884
27254
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersCustomattributesSchema';}return this.apiClient.callApi('/api/v2/users/customattributes/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsersRulesApi=/*#__PURE__*/function(){/**
|
|
26885
27255
|
* UsersRules service.
|
|
26886
27256
|
* @module purecloud-platform-client-v2/api/UsersRulesApi
|
|
26887
|
-
* @version
|
|
27257
|
+
* @version 247.0.0
|
|
26888
27258
|
*//**
|
|
26889
27259
|
* Constructs a new UsersRulesApi.
|
|
26890
27260
|
* @alias module:purecloud-platform-client-v2/api/UsersRulesApi
|
|
@@ -26895,13 +27265,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26895
27265
|
* Delete an existing users rule
|
|
26896
27266
|
*
|
|
26897
27267
|
* @param {String} ruleId The id of the rule
|
|
26898
|
-
* deleteUsersRule is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
26899
27268
|
*/return _createClass(UsersRulesApi,[{key:"deleteUsersRule",value:function deleteUsersRule(ruleId){// verify the required parameter 'ruleId' is set
|
|
26900
27269
|
if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required parameter "ruleId" when calling deleteUsersRule';}return this.apiClient.callApi('/api/v2/users/rules/{ruleId}','DELETE',{'ruleId':ruleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26901
27270
|
* Get a users rule
|
|
26902
27271
|
*
|
|
26903
27272
|
* @param {String} ruleId The ID of the rule to retrieve
|
|
26904
|
-
* getUsersRule is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
26905
27273
|
*/},{key:"getUsersRule",value:function getUsersRule(ruleId){// verify the required parameter 'ruleId' is set
|
|
26906
27274
|
if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required parameter "ruleId" when calling getUsersRule';}return this.apiClient.callApi('/api/v2/users/rules/{ruleId}','GET',{'ruleId':ruleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26907
27275
|
* Get dependent of a users rule
|
|
@@ -26909,7 +27277,6 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
26909
27277
|
* @param {String} ruleId The ID of the rule for which to retrieve dependents
|
|
26910
27278
|
* @param {Object} ruleType The type of the dependent
|
|
26911
27279
|
* @param {String} typeId The type ID of the dependent
|
|
26912
|
-
* getUsersRuleDependentTypeId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
26913
27280
|
*/},{key:"getUsersRuleDependentTypeId",value:function getUsersRuleDependentTypeId(ruleId,ruleType,typeId){// verify the required parameter 'ruleId' is set
|
|
26914
27281
|
if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required parameter "ruleId" when calling getUsersRuleDependentTypeId';}// verify the required parameter 'ruleType' is set
|
|
26915
27282
|
if(ruleType===undefined||ruleType===null||ruleType===''){throw'Missing the required parameter "ruleType" when calling getUsersRuleDependentTypeId';}// verify the required parameter 'typeId' is set
|
|
@@ -26921,7 +27288,6 @@ if(typeId===undefined||typeId===null||typeId===''){throw'Missing the required pa
|
|
|
26921
27288
|
* @param {Number} opts.pageSize Number of results per page (default to 25)
|
|
26922
27289
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
26923
27290
|
* @param {Object} opts.sortOrder Sort order for dependents (by last run date, then created date) (default to descending)
|
|
26924
|
-
* getUsersRuleDependents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
26925
27291
|
*/},{key:"getUsersRuleDependents",value:function getUsersRuleDependents(ruleId,opts){opts=opts||{};// verify the required parameter 'ruleId' is set
|
|
26926
27292
|
if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required parameter "ruleId" when calling getUsersRuleDependents';}return this.apiClient.callApi('/api/v2/users/rules/{ruleId}/dependents','GET',{'ruleId':ruleId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26927
27293
|
* Get the list of users rules
|
|
@@ -26934,27 +27300,23 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
26934
27300
|
* @param {Boolean} opts.enabled Whether to list enabled or disabled rules
|
|
26935
27301
|
* @param {String} opts.searchTerm a search term for finding a rule by name
|
|
26936
27302
|
* @param {Object} opts.sortOrder sort rules by name, ascending, descending (default to ascending)
|
|
26937
|
-
* getUsersRules is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
26938
27303
|
*/},{key:"getUsersRules",value:function getUsersRules(types,opts){opts=opts||{};// verify the required parameter 'types' is set
|
|
26939
27304
|
if(types===undefined||types===null){throw'Missing the required parameter "types" when calling getUsersRules';}return this.apiClient.callApi('/api/v2/users/rules','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'types':this.apiClient.buildCollectionParam(types,'multi'),'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'enabled':opts['enabled'],'searchTerm':opts['searchTerm'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26940
27305
|
* Get the settings for a specific users rule type
|
|
26941
27306
|
*
|
|
26942
27307
|
* @param {Object} ruleType The type of the rule
|
|
26943
|
-
* getUsersRulesSetting is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
26944
27308
|
*/},{key:"getUsersRulesSetting",value:function getUsersRulesSetting(ruleType){// verify the required parameter 'ruleType' is set
|
|
26945
27309
|
if(ruleType===undefined||ruleType===null||ruleType===''){throw'Missing the required parameter "ruleType" when calling getUsersRulesSetting';}return this.apiClient.callApi('/api/v2/users/rules/settings/{ruleType}','GET',{'ruleType':ruleType},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26946
27310
|
* Update an existing users rule
|
|
26947
27311
|
* This will update an existing users rule with the specified fields.
|
|
26948
27312
|
* @param {String} ruleId The ID of the rule to update
|
|
26949
27313
|
* @param {Object} body updateRuleRequest
|
|
26950
|
-
* patchUsersRule is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
26951
27314
|
*/},{key:"patchUsersRule",value:function patchUsersRule(ruleId,body){// verify the required parameter 'ruleId' is set
|
|
26952
27315
|
if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required parameter "ruleId" when calling patchUsersRule';}// verify the required parameter 'body' is set
|
|
26953
27316
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUsersRule';}return this.apiClient.callApi('/api/v2/users/rules/{ruleId}','PATCH',{'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26954
27317
|
* Create a new rule
|
|
26955
27318
|
* This will create a new rule with the specified fields.
|
|
26956
27319
|
* @param {Object} body usersRulesCreateRuleRequest
|
|
26957
|
-
* postUsersRules is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
26958
27320
|
*/},{key:"postUsersRules",value:function postUsersRules(body){// verify the required parameter 'body' is set
|
|
26959
27321
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsersRules';}return this.apiClient.callApi('/api/v2/users/rules','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26960
27322
|
* Query the result of a users rule
|
|
@@ -26963,12 +27325,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26963
27325
|
* @param {Object} opts Optional parameters
|
|
26964
27326
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
26965
27327
|
* @param {Number} opts.pageSize Number of results per page (default to 25)
|
|
26966
|
-
* postUsersRulesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
26967
27328
|
*/},{key:"postUsersRulesQuery",value:function postUsersRulesQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
26968
27329
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsersRulesQuery';}return this.apiClient.callApi('/api/v2/users/rules/query','POST',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UtilitiesApi=/*#__PURE__*/function(){/**
|
|
26969
27330
|
* Utilities service.
|
|
26970
27331
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
26971
|
-
* @version
|
|
27332
|
+
* @version 247.0.0
|
|
26972
27333
|
*//**
|
|
26973
27334
|
* Constructs a new UtilitiesApi.
|
|
26974
27335
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -26995,7 +27356,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26995
27356
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCertificateDetails';}return this.apiClient.callApi('/api/v2/certificate/details','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var VoicemailApi=/*#__PURE__*/function(){/**
|
|
26996
27357
|
* Voicemail service.
|
|
26997
27358
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
26998
|
-
* @version
|
|
27359
|
+
* @version 247.0.0
|
|
26999
27360
|
*//**
|
|
27000
27361
|
* Constructs a new VoicemailApi.
|
|
27001
27362
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -27157,7 +27518,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
27157
27518
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';}return this.apiClient.callApi('/api/v2/voicemail/userpolicies/{userId}','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebChatApi=/*#__PURE__*/function(){/**
|
|
27158
27519
|
* WebChat service.
|
|
27159
27520
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
27160
|
-
* @version
|
|
27521
|
+
* @version 247.0.0
|
|
27161
27522
|
*//**
|
|
27162
27523
|
* Constructs a new WebChatApi.
|
|
27163
27524
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -27304,7 +27665,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27304
27665
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebchatSettings';}return this.apiClient.callApi('/api/v2/webchat/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebDeploymentsApi=/*#__PURE__*/function(){/**
|
|
27305
27666
|
* WebDeployments service.
|
|
27306
27667
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
27307
|
-
* @version
|
|
27668
|
+
* @version 247.0.0
|
|
27308
27669
|
*//**
|
|
27309
27670
|
* Constructs a new WebDeploymentsApi.
|
|
27310
27671
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -27343,10 +27704,14 @@ if(sessionId===undefined||sessionId===null||sessionId===''){throw'Missing the re
|
|
|
27343
27704
|
if(configurationId===undefined||configurationId===null||configurationId===''){throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersion';}// verify the required parameter 'versionId' is set
|
|
27344
27705
|
if(versionId===undefined||versionId===null||versionId===''){throw'Missing the required parameter "versionId" when calling getWebdeploymentsConfigurationVersion';}return this.apiClient.callApi('/api/v2/webdeployments/configurations/{configurationId}/versions/{versionId}','GET',{'configurationId':configurationId,'versionId':versionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27345
27706
|
* Get the versions of a configuration
|
|
27346
|
-
*
|
|
27707
|
+
*
|
|
27347
27708
|
* @param {String} configurationId The configuration version ID
|
|
27348
|
-
|
|
27349
|
-
|
|
27709
|
+
* @param {Object} opts Optional parameters
|
|
27710
|
+
* @param {String} opts.pageSize Number of entities to return. Defaults to 300.
|
|
27711
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
27712
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
27713
|
+
*/},{key:"getWebdeploymentsConfigurationVersions",value:function getWebdeploymentsConfigurationVersions(configurationId,opts){opts=opts||{};// verify the required parameter 'configurationId' is set
|
|
27714
|
+
if(configurationId===undefined||configurationId===null||configurationId===''){throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersions';}return this.apiClient.callApi('/api/v2/webdeployments/configurations/{configurationId}/versions','GET',{'configurationId':configurationId},{'pageSize':opts['pageSize'],'before':opts['before'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27350
27715
|
* Get the configuration draft
|
|
27351
27716
|
*
|
|
27352
27717
|
* @param {String} configurationId The configuration version ID
|
|
@@ -27355,8 +27720,11 @@ if(configurationId===undefined||configurationId===null||configurationId===''){th
|
|
|
27355
27720
|
* View configuration drafts
|
|
27356
27721
|
*
|
|
27357
27722
|
* @param {Object} opts Optional parameters
|
|
27723
|
+
* @param {String} opts.pageSize Number of entities to return. Defaults to 300.
|
|
27724
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
27725
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
27358
27726
|
* @param {Boolean} opts.showOnlyPublished Filter by published status.
|
|
27359
|
-
*/},{key:"getWebdeploymentsConfigurations",value:function getWebdeploymentsConfigurations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webdeployments/configurations','GET',{},{'showOnlyPublished':opts['showOnlyPublished']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27727
|
+
*/},{key:"getWebdeploymentsConfigurations",value:function getWebdeploymentsConfigurations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webdeployments/configurations','GET',{},{'pageSize':opts['pageSize'],'before':opts['before'],'after':opts['after'],'showOnlyPublished':opts['showOnlyPublished']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27360
27728
|
* Get a deployment
|
|
27361
27729
|
*
|
|
27362
27730
|
* @param {String} deploymentId The deployment ID
|
|
@@ -27387,8 +27755,11 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
27387
27755
|
* Get deployments
|
|
27388
27756
|
*
|
|
27389
27757
|
* @param {Object} opts Optional parameters
|
|
27758
|
+
* @param {String} opts.pageSize Number of entities to return. Defaults to 300.
|
|
27759
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
27760
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
27390
27761
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
27391
|
-
*/},{key:"getWebdeploymentsDeployments",value:function getWebdeploymentsDeployments(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webdeployments/deployments','GET',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27762
|
+
*/},{key:"getWebdeploymentsDeployments",value:function getWebdeploymentsDeployments(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webdeployments/deployments','GET',{},{'pageSize':opts['pageSize'],'before':opts['before'],'after':opts['after'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27392
27763
|
* Publish the configuration draft and create a new version
|
|
27393
27764
|
*
|
|
27394
27765
|
* @param {String} configurationId The configuration version ID
|
|
@@ -27437,7 +27808,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
27437
27808
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}/identityresolution','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
|
|
27438
27809
|
* WebMessaging service.
|
|
27439
27810
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
27440
|
-
* @version
|
|
27811
|
+
* @version 247.0.0
|
|
27441
27812
|
*//**
|
|
27442
27813
|
* Constructs a new WebMessagingApi.
|
|
27443
27814
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -27478,7 +27849,7 @@ if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required
|
|
|
27478
27849
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWebmessagingDeploymentPushdevice';}return this.apiClient.callApi('/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}','POST',{'deploymentId':deploymentId,'tokenId':tokenId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
27479
27850
|
* Widgets service.
|
|
27480
27851
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
27481
|
-
* @version
|
|
27852
|
+
* @version 247.0.0
|
|
27482
27853
|
*//**
|
|
27483
27854
|
* Constructs a new WidgetsApi.
|
|
27484
27855
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -27518,7 +27889,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
27518
27889
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WorkforceManagementApi=/*#__PURE__*/function(){/**
|
|
27519
27890
|
* WorkforceManagement service.
|
|
27520
27891
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
27521
|
-
* @version
|
|
27892
|
+
* @version 247.0.0
|
|
27522
27893
|
*//**
|
|
27523
27894
|
* Constructs a new WorkforceManagementApi.
|
|
27524
27895
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -29541,7 +29912,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
29541
29912
|
* </pre>
|
|
29542
29913
|
* </p>
|
|
29543
29914
|
* @module purecloud-platform-client-v2/index
|
|
29544
|
-
* @version
|
|
29915
|
+
* @version 247.0.0
|
|
29545
29916
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
29546
29917
|
* The ApiClient constructor.
|
|
29547
29918
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|