purecloud-platform-client-v2 200.0.0 → 202.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/node/purecloud-platform-client-v2.js +1349 -125
- package/dist/web-amd/purecloud-platform-client-v2.js +1349 -125
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +432 -133
- package/dist/web-cjs/purecloud-platform-client-v2.js +548 -165
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1121 -241
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.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 +3 -3
- package/src/purecloud-platform-client-v2/api/ArchitectApi.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/BillingApi.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 +1 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.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 +21 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -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 +4 -4
- 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 +68 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +56 -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 +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -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 +36 -31
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -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 +32 -2
- package/src/purecloud-platform-client-v2/api/UsersApi.js +4 -4
- 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 +1 -1
- 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 +1080 -33
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/dist/web-cjs/bundle.js
CHANGED
|
@@ -152,7 +152,25 @@ byteArray.push(str.charCodeAt(i)&0xFF);}return byteArray;}function utf16leToByte
|
|
|
152
152
|
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
153
153
|
// Object.prototype.constructor. Remove this eventually
|
|
154
154
|
function isBuffer$1(obj){return obj!=null&&(!!obj._isBuffer||isFastBuffer(obj)||isSlowBuffer(obj));}function isFastBuffer(obj){return!!obj.constructor&&typeof obj.constructor.isBuffer==='function'&&obj.constructor.isBuffer(obj);}// For Node v0.10 support. Remove this eventually.
|
|
155
|
-
function isSlowBuffer(obj){return typeof obj.readFloatLE==='function'&&typeof obj.slice==='function'&&isFastBuffer(obj.slice(0,0));}
|
|
155
|
+
function isSlowBuffer(obj){return typeof obj.readFloatLE==='function'&&typeof obj.slice==='function'&&isFastBuffer(obj.slice(0,0));}// shim for using process in browser
|
|
156
|
+
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
157
|
+
function defaultSetTimout(){throw new Error('setTimeout has not been defined');}function defaultClearTimeout(){throw new Error('clearTimeout has not been defined');}var cachedSetTimeout=defaultSetTimout;var cachedClearTimeout=defaultClearTimeout;if(typeof global$1.setTimeout==='function'){cachedSetTimeout=setTimeout;}if(typeof global$1.clearTimeout==='function'){cachedClearTimeout=clearTimeout;}function runTimeout(fun){if(cachedSetTimeout===setTimeout){//normal enviroments in sane situations
|
|
158
|
+
return setTimeout(fun,0);}// if setTimeout wasn't available but was latter defined
|
|
159
|
+
if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0);}try{// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
160
|
+
return cachedSetTimeout(fun,0);}catch(e){try{// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
161
|
+
return cachedSetTimeout.call(null,fun,0);}catch(e){// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
162
|
+
return cachedSetTimeout.call(this,fun,0);}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){//normal enviroments in sane situations
|
|
163
|
+
return clearTimeout(marker);}// if clearTimeout wasn't available but was latter defined
|
|
164
|
+
if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker);}try{// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
165
|
+
return cachedClearTimeout(marker);}catch(e){try{// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
166
|
+
return cachedClearTimeout.call(null,marker);}catch(e){// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
167
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
168
|
+
return cachedClearTimeout.call(this,marker);}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return;}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue);}else{queueIndex=-1;}if(queue.length){drainQueue();}}function drainQueue(){if(draining){return;}var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex<len){if(currentQueue){currentQueue[queueIndex].run();}}queueIndex=-1;len=queue.length;}currentQueue=null;draining=false;runClearTimeout(timeout);}function nextTick(fun){var args=new Array(arguments.length-1);if(arguments.length>1){for(var i=1;i<arguments.length;i++){args[i-1]=arguments[i];}}queue.push(new Item(fun,args));if(queue.length===1&&!draining){runTimeout(drainQueue);}}// v8 likes predictible objects
|
|
169
|
+
function Item(fun,array){this.fun=fun;this.array=array;}Item.prototype.run=function(){this.fun.apply(null,this.array);};var title='browser';var platform$2='browser';var browser=true;var env={};var argv=[];var version='';// empty string to avoid regexp issues
|
|
170
|
+
var versions={};var release={};var config={};function noop$1(){}var on=noop$1;var addListener=noop$1;var once=noop$1;var off=noop$1;var removeListener=noop$1;var removeAllListeners=noop$1;var emit=noop$1;function binding(name){throw new Error('process.binding is not supported');}function cwd(){return'/';}function chdir(dir){throw new Error('process.chdir is not supported');}function umask(){return 0;}// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
171
|
+
var performance=global$1.performance||{};var performanceNow=performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow||function(){return new Date().getTime();};// generate timestamp or delta
|
|
172
|
+
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
173
|
+
function hrtime(previousTimestamp){var clocktime=performanceNow.call(performance)*1e-3;var seconds=Math.floor(clocktime);var nanoseconds=Math.floor(clocktime%1*1e9);if(previousTimestamp){seconds=seconds-previousTimestamp[0];nanoseconds=nanoseconds-previousTimestamp[1];if(nanoseconds<0){seconds--;nanoseconds+=1e9;}}return[seconds,nanoseconds];}var startTime=new Date();function uptime(){var currentTime=new Date();var dif=currentTime-startTime;return dif/1000;}var process={nextTick:nextTick,title:title,browser:browser,env:env,argv:argv,version:version,versions:versions,on:on,addListener:addListener,once:once,off:off,removeListener:removeListener,removeAllListeners:removeAllListeners,emit:emit,binding:binding,cwd:cwd,chdir:chdir,umask:umask,hrtime:hrtime,platform:platform$2,release:release,config:config,uptime:uptime};function bind(fn,thisArg){return function wrap(){return fn.apply(thisArg,arguments);};}// utils is a library of generic helper functions non-specific to axios
|
|
156
174
|
var toString=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeOf;var kindOf=function(cache){return function(thing){var str=toString.call(thing);return cache[str]||(cache[str]=str.slice(8,-1).toLowerCase());};}(Object.create(null));var kindOfTest=function kindOfTest(type){type=type.toLowerCase();return function(thing){return kindOf(thing)===type;};};var typeOfTest=function typeOfTest(type){return function(thing){return _typeof(thing)===type;};};/**
|
|
157
175
|
* Determine if a value is an Array
|
|
158
176
|
*
|
|
@@ -386,8 +404,11 @@ if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return f
|
|
|
386
404
|
* @param {unknown} thing - The thing to check.
|
|
387
405
|
*
|
|
388
406
|
* @returns {boolean}
|
|
389
|
-
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[Symbol.toStringTag]==='FormData'&&thing[Symbol.iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var
|
|
390
|
-
|
|
407
|
+
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[Symbol.toStringTag]==='FormData'&&thing[Symbol.iterator]);}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;}if(!('toJSON'in source)){stack[i]=source;var target=isArray(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);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};// original code
|
|
408
|
+
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
409
|
+
var _setImmediate=function(setImmediateSupported,postMessageSupported){if(setImmediateSupported){return setImmediate;}return postMessageSupported?function(token,callbacks){_global.addEventListener("message",function(_ref6){var source=_ref6.source,data=_ref6.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(_global.postMessage));var asap=typeof queueMicrotask!=='undefined'?queueMicrotask.bind(_global):typeof process!=='undefined'&&nextTick||_setImmediate;// *********************
|
|
410
|
+
var utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,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
|
|
411
|
+
reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,ALPHABET:ALPHABET,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap};/**
|
|
391
412
|
* Create an Error with the specified message, config, error code, request and response.
|
|
392
413
|
*
|
|
393
414
|
* @param {string} message The error message.
|
|
@@ -597,8 +618,8 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
|
|
|
597
618
|
* @param {String} rawHeaders Headers needing to be parsed
|
|
598
619
|
*
|
|
599
620
|
* @returns {Object} Headers parsed into an object
|
|
600
|
-
*/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.isHeaders(header)){var _iterator2=_createForOfIteratorHelper(header.entries()),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),key=_step2$value[0],value=_step2$value[1];setHeader(value,key,rewrite);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}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(
|
|
601
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(
|
|
621
|
+
*/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.isHeaders(header)){var _iterator2=_createForOfIteratorHelper(header.entries()),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),key=_step2$value[0],value=_step2$value[1];setHeader(value,key,rewrite);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}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(_ref7){var _ref8=_slicedToArray(_ref7,2),header=_ref8[0],value=_ref8[1];return header+': '+value;}).join('\n');}},{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
|
|
622
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref9,key){var value=_ref9.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
|
|
602
623
|
return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
|
|
603
624
|
* Transform the data for a request or a response
|
|
604
625
|
*
|
|
@@ -633,7 +654,7 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
|
|
|
633
654
|
* @param {Function} fn
|
|
634
655
|
* @param {Number} freq
|
|
635
656
|
* @return {Function}
|
|
636
|
-
*/function throttle(fn,freq){var timestamp=0;var threshold=1000/freq;var timer
|
|
657
|
+
*/function throttle(fn,freq){var timestamp=0;var threshold=1000/freq;var lastArgs;var timer;var invoke=function invoke(args){var now=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Date.now();timestamp=now;lastArgs=null;if(timer){clearTimeout(timer);timer=null;}fn.apply(null,args);};var throttled=function throttled(){var now=Date.now();var passed=now-timestamp;for(var _len3=arguments.length,args=new Array(_len3),_key4=0;_key4<_len3;_key4++){args[_key4]=arguments[_key4];}if(passed>=threshold){invoke(args,now);}else{lastArgs=args;if(!timer){timer=setTimeout(function(){timer=null;invoke(lastArgs);},threshold-passed);}}};var flush=function flush(){return lastArgs&&invoke(lastArgs);};return[throttled,flush];}var progressEventReducer=function progressEventReducer(listener,isDownloadStream){var freq=arguments.length>2&&arguments[2]!==undefined?arguments[2]:3;var bytesNotified=0;var _speedometer=speedometer(50,250);return throttle(function(e){var loaded=e.loaded;var total=e.lengthComputable?e.total:undefined;var progressBytes=loaded-bytesNotified;var rate=_speedometer(progressBytes);var inRange=loaded<=total;bytesNotified=loaded;var data=_defineProperty({loaded:loaded,total:total,progress:total?loaded/total:undefined,bytes:progressBytes,rate:rate?rate:undefined,estimated:rate&&total&&inRange?(total-loaded)/rate:undefined,event:e,lengthComputable:total!=null},isDownloadStream?'download':'upload',true);listener(data);},freq);};var progressEventDecorator=function progressEventDecorator(total,throttled){var lengthComputable=total!=null;return[function(loaded){return throttled[0]({lengthComputable:lengthComputable,total:total,loaded:loaded});},throttled[1]];};var asyncDecorator=function asyncDecorator(fn){return function(){for(var _len4=arguments.length,args=new Array(_len4),_key5=0;_key5<_len4;_key5++){args[_key5]=arguments[_key5];}return utils$1.asap(function(){return fn.apply(void 0,args);});};};var isURLSameOrigin=platform.hasStandardBrowserEnv?// Standard browser envs have full support of the APIs needed to test
|
|
637
658
|
// whether the request URL is of the same origin as current location.
|
|
638
659
|
function standardBrowserEnv(){var msie=/(msie|trident)/i.test(navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;/**
|
|
639
660
|
* Parse a URL to discover its components
|
|
@@ -691,11 +712,13 @@ function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue
|
|
|
691
712
|
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){return mergeDeepProperties(headersToObject(a),headersToObject(b),true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=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),config.params,config.paramsSerializer);// HTTP basic authentication
|
|
692
713
|
if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}var contentType;if(utils$1.isFormData(data)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){headers.setContentType(undefined);// Let the browser set it
|
|
693
714
|
}else if((contentType=headers.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
|
|
694
|
-
var
|
|
715
|
+
var _ref10=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref11=_toArray(_ref10),type=_ref11[0],tokens=_ref11.slice(1);headers.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}// Add xsrf header
|
|
695
716
|
// This is only done if running in a standard browser environment.
|
|
696
717
|
// Specifically not if we're in a web worker, or react-native.
|
|
697
718
|
if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(newConfig));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(newConfig.url)){// Add xsrf header
|
|
698
|
-
var xsrfValue=xsrfHeaderName&&xsrfCookieName&&cookies.read(xsrfCookieName);if(xsrfValue){headers.set(xsrfHeaderName,xsrfValue);}}}return newConfig;};var isXHRAdapterSupported=typeof XMLHttpRequest!=='undefined';var xhrAdapter=isXHRAdapterSupported&&function(config){return new Promise(function dispatchXhrRequest(resolve,reject){var _config=resolveConfig(config);var requestData=_config.data;var requestHeaders=AxiosHeaders$1.from(_config.headers).normalize();var responseType=_config.responseType;var onCanceled;
|
|
719
|
+
var xsrfValue=xsrfHeaderName&&xsrfCookieName&&cookies.read(xsrfCookieName);if(xsrfValue){headers.set(xsrfHeaderName,xsrfValue);}}}return newConfig;};var isXHRAdapterSupported=typeof XMLHttpRequest!=='undefined';var xhrAdapter=isXHRAdapterSupported&&function(config){return new Promise(function dispatchXhrRequest(resolve,reject){var _config=resolveConfig(config);var requestData=_config.data;var requestHeaders=AxiosHeaders$1.from(_config.headers).normalize();var responseType=_config.responseType,onUploadProgress=_config.onUploadProgress,onDownloadProgress=_config.onDownloadProgress;var onCanceled;var uploadThrottled,downloadThrottled;var flushUpload,flushDownload;function done(){flushUpload&&flushUpload();// flush events
|
|
720
|
+
flushDownload&&flushDownload();// flush events
|
|
721
|
+
_config.cancelToken&&_config.cancelToken.unsubscribe(onCanceled);_config.signal&&_config.signal.removeEventListener('abort',onCanceled);}var request=new XMLHttpRequest();request.open(_config.method.toUpperCase(),_config.url,true);// Set the request timeout in MS
|
|
699
722
|
request.timeout=_config.timeout;function onloadend(){if(!request){return;}// Prepare the response
|
|
700
723
|
var responseHeaders=AxiosHeaders$1.from('getAllResponseHeaders'in request&&request.getAllResponseHeaders());var responseData=!responseType||responseType==='text'||responseType==='json'?request.responseText:request.response;var response={data:responseData,status:request.status,statusText:request.statusText,headers:responseHeaders,config:config,request:request};settle(function _resolve(value){resolve(value);done();},function _reject(err){reject(err);done();},response);// Clean up request
|
|
701
724
|
request=null;}if('onloadend'in request){// Use onloadend if available
|
|
@@ -707,26 +730,25 @@ request.onreadystatechange=function handleLoad(){if(!request||request.readyState
|
|
|
707
730
|
if(request.status===0&&!(request.responseURL&&request.responseURL.indexOf('file:')===0)){return;}// readystate handler is calling before onerror or ontimeout handlers,
|
|
708
731
|
// so we should call onloadend on the next 'tick'
|
|
709
732
|
setTimeout(onloadend);};}// Handle browser request cancellation (as opposed to a manual cancellation)
|
|
710
|
-
request.onabort=function handleAbort(){if(!request){return;}reject(new AxiosError('Request aborted',AxiosError.ECONNABORTED,
|
|
733
|
+
request.onabort=function handleAbort(){if(!request){return;}reject(new AxiosError('Request aborted',AxiosError.ECONNABORTED,config,request));// Clean up request
|
|
711
734
|
request=null;};// Handle low level network errors
|
|
712
735
|
request.onerror=function handleError(){// Real errors are hidden from us by the browser
|
|
713
736
|
// onerror should only fire if it's a network error
|
|
714
|
-
reject(new AxiosError('Network Error',AxiosError.ERR_NETWORK,
|
|
737
|
+
reject(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request));// Clean up request
|
|
715
738
|
request=null;};// Handle timeout
|
|
716
|
-
request.ontimeout=function handleTimeout(){var timeoutErrorMessage=_config.timeout?'timeout of '+_config.timeout+'ms exceeded':'timeout exceeded';var transitional=_config.transitional||transitionalDefaults;if(_config.timeoutErrorMessage){timeoutErrorMessage=_config.timeoutErrorMessage;}reject(new AxiosError(timeoutErrorMessage,transitional.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,
|
|
739
|
+
request.ontimeout=function handleTimeout(){var timeoutErrorMessage=_config.timeout?'timeout of '+_config.timeout+'ms exceeded':'timeout exceeded';var transitional=_config.transitional||transitionalDefaults;if(_config.timeoutErrorMessage){timeoutErrorMessage=_config.timeoutErrorMessage;}reject(new AxiosError(timeoutErrorMessage,transitional.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,config,request));// Clean up request
|
|
717
740
|
request=null;};// Remove Content-Type if data is undefined
|
|
718
741
|
requestData===undefined&&requestHeaders.setContentType(null);// Add headers to the request
|
|
719
742
|
if('setRequestHeader'in request){utils$1.forEach(requestHeaders.toJSON(),function setRequestHeader(val,key){request.setRequestHeader(key,val);});}// Add withCredentials to request if needed
|
|
720
743
|
if(!utils$1.isUndefined(_config.withCredentials)){request.withCredentials=!!_config.withCredentials;}// Add responseType to request if needed
|
|
721
744
|
if(responseType&&responseType!=='json'){request.responseType=_config.responseType;}// Handle progress if needed
|
|
722
|
-
if(
|
|
723
|
-
if(
|
|
745
|
+
if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownloadProgress,true);var _progressEventReducer2=_slicedToArray(_progressEventReducer,2);downloadThrottled=_progressEventReducer2[0];flushDownload=_progressEventReducer2[1];request.addEventListener('progress',downloadThrottled);}// Not all browsers support upload events
|
|
746
|
+
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
|
|
724
747
|
// eslint-disable-next-line func-names
|
|
725
748
|
onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(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('Unsupported protocol '+protocol+':',AxiosError.ERR_BAD_REQUEST,config));return;}// Send the request
|
|
726
|
-
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var controller=new AbortController();var aborted;var onabort=function onabort(cancel){if(!aborted){aborted=true;unsubscribe();var err=cancel instanceof Error?cancel:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal&&(signal.removeEventListener?signal.removeEventListener('abort',onabort):signal.unsubscribe(onabort));});signals=null;}};signals.forEach(function(signal){return signal&&signal.addEventListener&&signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=unsubscribe;return[signal,function(){timer&&clearTimeout(timer);timer=null;}];};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regeneratorRuntime().mark(function streamChunk(chunk,chunkSize){var len,pos,end;return _regeneratorRuntime().wrap(function streamChunk$(_context){while(1)switch(_context.prev=_context.next){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.next=5;break;}_context.next=4;return chunk;case 4:return _context.abrupt("return");case 5:pos=0;case 6:if(!(pos<len)){_context.next=13;break;}end=pos+chunkSize;_context.next=10;return chunk.slice(pos,end);case 10:pos=end;_context.next=6;break;case 13:case"end":return _context.stop();}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(iterable,chunkSize,encode){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator=_asyncIterator(iterable);case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=27;break;}chunk=_step.value;_context2.t0=_asyncGeneratorDelegate;_context2.t1=_asyncIterator;_context2.t2=streamChunk;if(!ArrayBuffer.isView(chunk)){_context2.next=15;break;}_context2.t3=chunk;_context2.next=18;break;case 15:_context2.next=17;return _awaitAsyncGenerator(encode(String(chunk)));case 17:_context2.t3=_context2.sent;case 18:_context2.t4=_context2.t3;_context2.t5=chunkSize;_context2.t6=(0,_context2.t2)(_context2.t4,_context2.t5);_context2.t7=(0,_context2.t1)(_context2.t6);_context2.t8=_awaitAsyncGenerator;return _context2.delegateYield((0,_context2.t0)(_context2.t7,_context2.t8),"t9",24);case 24:_iteratorAbruptCompletion=false;_context2.next=4;break;case 27:_context2.next=33;break;case 29:_context2.prev=29;_context2.t10=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t10;case 33:_context2.prev=33;_context2.prev=34;if(!(_iteratorAbruptCompletion&&_iterator["return"]!=null)){_context2.next=38;break;}_context2.next=38;return _awaitAsyncGenerator(_iterator["return"]());case 38:_context2.prev=38;if(!_didIteratorError){_context2.next=41;break;}throw _iteratorError;case 41:return _context2.finish(38);case 42:return _context2.finish(33);case 43:case"end":return _context2.stop();}},_callee,null,[[2,29,33,43],[34,,38,42]]);}));return function readBytes(_x,_x2,_x3){return _ref.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish,encode){var iterator=readBytes(stream,chunkSize,encode);var bytes=0;return new ReadableStream({
|
|
727
|
-
var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var
|
|
728
|
-
}
|
|
729
|
-
}Object.defineProperty(fn,'adapterName',{value:value});}});var renderReason=function renderReason(reason){return"- ".concat(reason);};var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};var adapters={getAdapter:function getAdapter(adapters){adapters=utils$1.isArray(adapters)?adapters:[adapters];var _adapters=adapters,length=_adapters.length;var nameOrAdapter;var adapter;var rejectedReasons={};for(var i=0;i<length;i++){nameOrAdapter=adapters[i];var id=void 0;adapter=nameOrAdapter;if(!isResolvedHandle(nameOrAdapter)){adapter=knownAdapters[(id=String(nameOrAdapter)).toLowerCase()];if(adapter===undefined){throw new AxiosError("Unknown adapter '".concat(id,"'"));}}if(adapter){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(_ref17){var _ref18=_slicedToArray(_ref17,2),id=_ref18[0],state=_ref18[1];return"adapter ".concat(id," ")+(state===false?'is not supported by the environment':'is not available in the build');});var s=length?reasons.length>1?'since :\n'+reasons.map(renderReason).join('\n'):' '+renderReason(reasons[0]):'as no adapter specified';throw new AxiosError("There is no suitable adapter to dispatch the request "+s,'ERR_NOT_SUPPORT');}return adapter;},adapters:knownAdapters};/**
|
|
749
|
+
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var controller=new AbortController();var aborted;var onabort=function onabort(cancel){if(!aborted){aborted=true;unsubscribe();var err=cancel instanceof Error?cancel:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal&&(signal.removeEventListener?signal.removeEventListener('abort',onabort):signal.unsubscribe(onabort));});signals=null;}};signals.forEach(function(signal){return signal&&signal.addEventListener&&signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=unsubscribe;return[signal,function(){timer&&clearTimeout(timer);timer=null;}];};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regeneratorRuntime().mark(function streamChunk(chunk,chunkSize){var len,pos,end;return _regeneratorRuntime().wrap(function streamChunk$(_context){while(1)switch(_context.prev=_context.next){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.next=5;break;}_context.next=4;return chunk;case 4:return _context.abrupt("return");case 5:pos=0;case 6:if(!(pos<len)){_context.next=13;break;}end=pos+chunkSize;_context.next=10;return chunk.slice(pos,end);case 10:pos=end;_context.next=6;break;case 13:case"end":return _context.stop();}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(iterable,chunkSize,encode){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator=_asyncIterator(iterable);case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=27;break;}chunk=_step.value;_context2.t0=_asyncGeneratorDelegate;_context2.t1=_asyncIterator;_context2.t2=streamChunk;if(!ArrayBuffer.isView(chunk)){_context2.next=15;break;}_context2.t3=chunk;_context2.next=18;break;case 15:_context2.next=17;return _awaitAsyncGenerator(encode(String(chunk)));case 17:_context2.t3=_context2.sent;case 18:_context2.t4=_context2.t3;_context2.t5=chunkSize;_context2.t6=(0,_context2.t2)(_context2.t4,_context2.t5);_context2.t7=(0,_context2.t1)(_context2.t6);_context2.t8=_awaitAsyncGenerator;return _context2.delegateYield((0,_context2.t0)(_context2.t7,_context2.t8),"t9",24);case 24:_iteratorAbruptCompletion=false;_context2.next=4;break;case 27:_context2.next=33;break;case 29:_context2.prev=29;_context2.t10=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t10;case 33:_context2.prev=33;_context2.prev=34;if(!(_iteratorAbruptCompletion&&_iterator["return"]!=null)){_context2.next=38;break;}_context2.next=38;return _awaitAsyncGenerator(_iterator["return"]());case 38:_context2.prev=38;if(!_didIteratorError){_context2.next=41;break;}throw _iteratorError;case 41:return _context2.finish(38);case 42:return _context2.finish(33);case 43:case"end":return _context2.stop();}},_callee,null,[[2,29,33,43],[34,,38,42]]);}));return function readBytes(_x,_x2,_x3){return _ref.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish,encode){var iterator=readBytes(stream,chunkSize,encode);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__*/_regeneratorRuntime().mark(function _callee2(){var _yield$iterator$next,_done,value,len,loadedBytes;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;_context3.next=3;return iterator.next();case 3:_yield$iterator$next=_context3.sent;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context3.next=10;break;}_onFinish();controller.close();return _context3.abrupt("return");case 10:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context3.next=19;break;case 15:_context3.prev=15;_context3.t0=_context3["catch"](0);_onFinish(_context3.t0);throw _context3.t0;case 19:case"end":return _context3.stop();}},_callee2,null,[[0,15]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
|
|
750
|
+
var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(str){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.t0=Uint8Array;_context4.next=3;return new Response(str).arrayBuffer();case 3:_context4.t1=_context4.sent;return _context4.abrupt("return",new _context4.t0(_context4.t1));case 5:case"end":return _context4.stop();}},_callee3);}));return function(_x4){return _ref12.apply(this,arguments);};}()));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 supportsRequestStream=isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(body){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:if(!(body==null)){_context5.next=2;break;}return _context5.abrupt("return",0);case 2:if(!utils$1.isBlob(body)){_context5.next=4;break;}return _context5.abrupt("return",body.size);case 4:if(!utils$1.isSpecCompliantForm(body)){_context5.next=8;break;}_context5.next=7;return new Request(body).arrayBuffer();case 7:return _context5.abrupt("return",_context5.sent.byteLength);case 8:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context5.next=10;break;}return _context5.abrupt("return",body.byteLength);case 10:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context5.next=15;break;}_context5.next=14;return encodeText(body);case 14:return _context5.abrupt("return",_context5.sent.byteLength);case 15:case"end":return _context5.stop();}},_callee4);}));return function getBodyLength(_x5){return _ref13.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(headers,body){var length;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context6.abrupt("return",length==null?getBodyLength(body):length);case 2:case"end":return _context6.stop();}},_callee5);}));return function resolveBodyLength(_x6,_x7){return _ref14.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref15=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,_ref16,_ref17,composedSignal,stopTimeout,finished,request,onFinish,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,response,isStreamResponse,options,responseContentLength,_ref18,_ref19,_onProgress,_flush,responseData;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){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;responseType=responseType?(responseType+'').toLowerCase():'text';_ref16=signal||cancelToken||timeout?composeSignals$1([signal,cancelToken],timeout):[],_ref17=_slicedToArray(_ref16,2),composedSignal=_ref17[0],stopTimeout=_ref17[1];onFinish=function onFinish(){!finished&&setTimeout(function(){composedSignal&&composedSignal.unsubscribe();});finished=true;};_context7.prev=4;_context7.t0=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_context7.t0){_context7.next=11;break;}_context7.next=9;return resolveBodyLength(headers,data);case 9:_context7.t1=requestContentLength=_context7.sent;_context7.t0=_context7.t1!==0;case 11:if(!_context7.t0){_context7.next=15;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,encodeText);}case 15:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:withCredentials}));_context7.next=19;return fetch(request);case 19:response=_context7.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref18=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref19=_slicedToArray(_ref18,2),_onProgress=_ref19[0],_flush=_ref19[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();isStreamResponse&&onFinish();},encodeText),options);}responseType=responseType||'text';_context7.next=25;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 25:responseData=_context7.sent;!isStreamResponse&&onFinish();stopTimeout&&stopTimeout();_context7.next=30;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 30:return _context7.abrupt("return",_context7.sent);case 33:_context7.prev=33;_context7.t2=_context7["catch"](4);onFinish();if(!(_context7.t2&&_context7.t2.name==='TypeError'&&/fetch/i.test(_context7.t2.message))){_context7.next=38;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_context7.t2.cause||_context7.t2});case 38:throw AxiosError.from(_context7.t2,_context7.t2&&_context7.t2.code,config,request);case 39:case"end":return _context7.stop();}},_callee6,null,[[4,33]]);}));return function(_x8){return _ref15.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
|
|
751
|
+
}Object.defineProperty(fn,'adapterName',{value:value});}});var renderReason=function renderReason(reason){return"- ".concat(reason);};var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};var adapters={getAdapter:function getAdapter(adapters){adapters=utils$1.isArray(adapters)?adapters:[adapters];var _adapters=adapters,length=_adapters.length;var nameOrAdapter;var adapter;var rejectedReasons={};for(var i=0;i<length;i++){nameOrAdapter=adapters[i];var id=void 0;adapter=nameOrAdapter;if(!isResolvedHandle(nameOrAdapter)){adapter=knownAdapters[(id=String(nameOrAdapter)).toLowerCase()];if(adapter===undefined){throw new AxiosError("Unknown adapter '".concat(id,"'"));}}if(adapter){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(_ref20){var _ref21=_slicedToArray(_ref20,2),id=_ref21[0],state=_ref21[1];return"adapter ".concat(id," ")+(state===false?'is not supported by the environment':'is not available in the build');});var s=length?reasons.length>1?'since :\n'+reasons.map(renderReason).join('\n'):' '+renderReason(reasons[0]):'as no adapter specified';throw new AxiosError("There is no suitable adapter to dispatch the request "+s,'ERR_NOT_SUPPORT');}return adapter;},adapters:knownAdapters};/**
|
|
730
752
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
731
753
|
*
|
|
732
754
|
* @param {Object} config The config that is to be used for the request
|
|
@@ -741,7 +763,7 @@ var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encod
|
|
|
741
763
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
742
764
|
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);return adapter(config).then(function onAdapterResolution(response){throwIfCancellationRequested(config);// Transform response data
|
|
743
765
|
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
|
|
744
|
-
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.7.
|
|
766
|
+
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.7.4";var validators$1={};// eslint-disable-next-line func-names
|
|
745
767
|
['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={};/**
|
|
746
768
|
* Transitional option validator
|
|
747
769
|
*
|
|
@@ -826,7 +848,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
|
|
|
826
848
|
* @param {*} payload The value to test
|
|
827
849
|
*
|
|
828
850
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
829
|
-
*/function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(
|
|
851
|
+
*/function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(_ref22){var _ref23=_slicedToArray(_ref22,2),key=_ref23[0],value=_ref23[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
|
|
830
852
|
* Create an instance of Axios
|
|
831
853
|
*
|
|
832
854
|
* @param {Object} defaultConfig The default config for the instance
|
|
@@ -855,7 +877,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
855
877
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
856
878
|
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:"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];}}}]);}();/**
|
|
857
879
|
* @module purecloud-platform-client-v2/ApiClient
|
|
858
|
-
* @version
|
|
880
|
+
* @version 202.0.0
|
|
859
881
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
860
882
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
861
883
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -1093,7 +1115,7 @@ this.setAccessToken(this.authentications['PureCloud OAuth'].accessToken);}/**
|
|
|
1093
1115
|
* @param existingHeaders The existing header object.
|
|
1094
1116
|
* @param newHeaders New headers.
|
|
1095
1117
|
* @returns {Object} The combination of all headers.
|
|
1096
|
-
*/},{key:"addHeaders",value:function addHeaders(existingHeaders){for(var
|
|
1118
|
+
*/},{key:"addHeaders",value:function addHeaders(existingHeaders){for(var _len6=arguments.length,newHeaders=new Array(_len6>1?_len6-1:0),_key7=1;_key7<_len6;_key7++){newHeaders[_key7-1]=arguments[_key7];}if(existingHeaders){existingHeaders=Object.assign.apply(Object,[existingHeaders].concat(newHeaders));}else{existingHeaders=Object.assign.apply(Object,newHeaders);}return existingHeaders;}/**
|
|
1097
1119
|
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
|
|
1098
1120
|
* NOTE: query parameters are not handled here.
|
|
1099
1121
|
* @param {String} path The path to append to the base URL.
|
|
@@ -1167,7 +1189,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
1167
1189
|
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 AgentUIApi=/*#__PURE__*/function(){/**
|
|
1168
1190
|
* AgentUI service.
|
|
1169
1191
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
1170
|
-
* @version
|
|
1192
|
+
* @version 202.0.0
|
|
1171
1193
|
*/ /**
|
|
1172
1194
|
* Constructs a new AgentUIApi.
|
|
1173
1195
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -1201,7 +1223,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
1201
1223
|
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(){/**
|
|
1202
1224
|
* Alerting service.
|
|
1203
1225
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1204
|
-
* @version
|
|
1226
|
+
* @version 202.0.0
|
|
1205
1227
|
*/ /**
|
|
1206
1228
|
* Constructs a new AlertingApi.
|
|
1207
1229
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -1358,7 +1380,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
|
|
|
1358
1380
|
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(){/**
|
|
1359
1381
|
* Analytics service.
|
|
1360
1382
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
1361
|
-
* @version
|
|
1383
|
+
* @version 202.0.0
|
|
1362
1384
|
*/ /**
|
|
1363
1385
|
* Constructs a new AnalyticsApi.
|
|
1364
1386
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -1857,8 +1879,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1857
1879
|
* @param {Object} body query
|
|
1858
1880
|
*/},{key:"postAnalyticsQueuesObservationsQuery",value:function postAnalyticsQueuesObservationsQuery(body){// verify the required parameter 'body' is set
|
|
1859
1881
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsQueuesObservationsQuery';}return this.apiClient.callApi('/api/v2/analytics/queues/observations/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1860
|
-
* Query for limits rate limit aggregates. Data populated when limits
|
|
1861
|
-
* The max property can be used to determine estimated rate limit value hit.
|
|
1882
|
+
* Query for limits rate limit aggregates. Data populated when limits reach 90% of the maximum. Not a source of truth for limits hit but a best effort estimate.
|
|
1883
|
+
* The max property can be used to determine estimated rate limit value hit. See https://developer.genesys.cloud/organization/organization/limits#available-limits for limits that are trackable (Operational Events Enabled).
|
|
1862
1884
|
* @param {Object} body query
|
|
1863
1885
|
*/},{key:"postAnalyticsRatelimitsAggregatesQuery",value:function postAnalyticsRatelimitsAggregatesQuery(body){// verify the required parameter 'body' is set
|
|
1864
1886
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsRatelimitsAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/ratelimits/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -1979,7 +2001,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1979
2001
|
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(){/**
|
|
1980
2002
|
* Architect service.
|
|
1981
2003
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
1982
|
-
* @version
|
|
2004
|
+
* @version 202.0.0
|
|
1983
2005
|
*/ /**
|
|
1984
2006
|
* Constructs a new ArchitectApi.
|
|
1985
2007
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -3095,7 +3117,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
|
|
|
3095
3117
|
if(flowOutcomeId===undefined||flowOutcomeId===null){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 AuditApi=/*#__PURE__*/function(){/**
|
|
3096
3118
|
* Audit service.
|
|
3097
3119
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
3098
|
-
* @version
|
|
3120
|
+
* @version 202.0.0
|
|
3099
3121
|
*/ /**
|
|
3100
3122
|
* Constructs a new AuditApi.
|
|
3101
3123
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -3145,7 +3167,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3145
3167
|
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(){/**
|
|
3146
3168
|
* Authorization service.
|
|
3147
3169
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
3148
|
-
* @version
|
|
3170
|
+
* @version 202.0.0
|
|
3149
3171
|
*/ /**
|
|
3150
3172
|
* Constructs a new AuthorizationApi.
|
|
3151
3173
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -3460,7 +3482,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
|
|
|
3460
3482
|
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 BillingApi=/*#__PURE__*/function(){/**
|
|
3461
3483
|
* Billing service.
|
|
3462
3484
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
3463
|
-
* @version
|
|
3485
|
+
* @version 202.0.0
|
|
3464
3486
|
*/ /**
|
|
3465
3487
|
* Constructs a new BillingApi.
|
|
3466
3488
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -3484,7 +3506,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
3484
3506
|
if(trustorOrgId===undefined||trustorOrgId===null){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 CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
3485
3507
|
* CarrierServices service.
|
|
3486
3508
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
3487
|
-
* @version
|
|
3509
|
+
* @version 202.0.0
|
|
3488
3510
|
*/ /**
|
|
3489
3511
|
* Constructs a new CarrierServicesApi.
|
|
3490
3512
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -3504,7 +3526,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
3504
3526
|
*/},{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(){/**
|
|
3505
3527
|
* Chat service.
|
|
3506
3528
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
3507
|
-
* @version
|
|
3529
|
+
* @version 202.0.0
|
|
3508
3530
|
*/ /**
|
|
3509
3531
|
* Constructs a new ChatApi.
|
|
3510
3532
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -3729,7 +3751,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3729
3751
|
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(){/**
|
|
3730
3752
|
* Coaching service.
|
|
3731
3753
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
3732
|
-
* @version
|
|
3754
|
+
* @version 202.0.0
|
|
3733
3755
|
*/ /**
|
|
3734
3756
|
* Constructs a new CoachingApi.
|
|
3735
3757
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -3882,7 +3904,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3882
3904
|
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(){/**
|
|
3883
3905
|
* ContentManagement service.
|
|
3884
3906
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
3885
|
-
* @version
|
|
3907
|
+
* @version 202.0.0
|
|
3886
3908
|
*/ /**
|
|
3887
3909
|
* Constructs a new ContentManagementApi.
|
|
3888
3910
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -4165,7 +4187,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
|
|
|
4165
4187
|
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(){/**
|
|
4166
4188
|
* Conversations service.
|
|
4167
4189
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
4168
|
-
* @version
|
|
4190
|
+
* @version 202.0.0
|
|
4169
4191
|
*/ /**
|
|
4170
4192
|
* Constructs a new ConversationsApi.
|
|
4171
4193
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -5887,7 +5909,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
5887
5909
|
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(){/**
|
|
5888
5910
|
* DataExtensions service.
|
|
5889
5911
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
5890
|
-
* @version
|
|
5912
|
+
* @version 202.0.0
|
|
5891
5913
|
*/ /**
|
|
5892
5914
|
* Constructs a new DataExtensionsApi.
|
|
5893
5915
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -5908,7 +5930,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
5908
5930
|
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
|
|
5909
5931
|
* Downloads service.
|
|
5910
5932
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
5911
|
-
* @version
|
|
5933
|
+
* @version 202.0.0
|
|
5912
5934
|
*/ /**
|
|
5913
5935
|
* Constructs a new DownloadsApi.
|
|
5914
5936
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -5927,7 +5949,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
5927
5949
|
if(downloadId===undefined||downloadId===null){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(){/**
|
|
5928
5950
|
* Emails service.
|
|
5929
5951
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
5930
|
-
* @version
|
|
5952
|
+
* @version 202.0.0
|
|
5931
5953
|
*/ /**
|
|
5932
5954
|
* Constructs a new EmailsApi.
|
|
5933
5955
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -5945,7 +5967,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
5945
5967
|
*/},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
|
|
5946
5968
|
* EmployeeEngagement service.
|
|
5947
5969
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
5948
|
-
* @version
|
|
5970
|
+
* @version 202.0.0
|
|
5949
5971
|
*/ /**
|
|
5950
5972
|
* Constructs a new EmployeeEngagementApi.
|
|
5951
5973
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -5983,7 +6005,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5983
6005
|
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(){/**
|
|
5984
6006
|
* Events service.
|
|
5985
6007
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
5986
|
-
* @version
|
|
6008
|
+
* @version 202.0.0
|
|
5987
6009
|
*/ /**
|
|
5988
6010
|
* Constructs a new EventsApi.
|
|
5989
6011
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -6008,7 +6030,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6008
6030
|
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(){/**
|
|
6009
6031
|
* ExternalContacts service.
|
|
6010
6032
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
6011
|
-
* @version
|
|
6033
|
+
* @version 202.0.0
|
|
6012
6034
|
*/ /**
|
|
6013
6035
|
* Constructs a new ExternalContactsApi.
|
|
6014
6036
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -6465,7 +6487,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
|
|
|
6465
6487
|
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(){/**
|
|
6466
6488
|
* Fax service.
|
|
6467
6489
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
6468
|
-
* @version
|
|
6490
|
+
* @version 202.0.0
|
|
6469
6491
|
*/ /**
|
|
6470
6492
|
* Constructs a new FaxApi.
|
|
6471
6493
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -6514,7 +6536,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6514
6536
|
*/},{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(){/**
|
|
6515
6537
|
* Flows service.
|
|
6516
6538
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
6517
|
-
* @version
|
|
6539
|
+
* @version 202.0.0
|
|
6518
6540
|
*/ /**
|
|
6519
6541
|
* Constructs a new FlowsApi.
|
|
6520
6542
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -6562,7 +6584,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6562
6584
|
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(){/**
|
|
6563
6585
|
* Gamification service.
|
|
6564
6586
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
6565
|
-
* @version
|
|
6587
|
+
* @version 202.0.0
|
|
6566
6588
|
*/ /**
|
|
6567
6589
|
* Constructs a new GamificationApi.
|
|
6568
6590
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -7102,7 +7124,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7102
7124
|
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(){/**
|
|
7103
7125
|
* GeneralDataProtectionRegulation service.
|
|
7104
7126
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
7105
|
-
* @version
|
|
7127
|
+
* @version 202.0.0
|
|
7106
7128
|
*/ /**
|
|
7107
7129
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
7108
7130
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -7137,7 +7159,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
7137
7159
|
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(){/**
|
|
7138
7160
|
* Geolocation service.
|
|
7139
7161
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
7140
|
-
* @version
|
|
7162
|
+
* @version 202.0.0
|
|
7141
7163
|
*/ /**
|
|
7142
7164
|
* Constructs a new GeolocationApi.
|
|
7143
7165
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -7171,7 +7193,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
7171
7193
|
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(){/**
|
|
7172
7194
|
* Greetings service.
|
|
7173
7195
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
7174
|
-
* @version
|
|
7196
|
+
* @version 202.0.0
|
|
7175
7197
|
*/ /**
|
|
7176
7198
|
* Constructs a new GreetingsApi.
|
|
7177
7199
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -7278,7 +7300,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
7278
7300
|
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(){/**
|
|
7279
7301
|
* Groups service.
|
|
7280
7302
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
7281
|
-
* @version
|
|
7303
|
+
* @version 202.0.0
|
|
7282
7304
|
*/ /**
|
|
7283
7305
|
* Constructs a new GroupsApi.
|
|
7284
7306
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -7411,7 +7433,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
7411
7433
|
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(){/**
|
|
7412
7434
|
* IdentityProvider service.
|
|
7413
7435
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
7414
|
-
* @version
|
|
7436
|
+
* @version 202.0.0
|
|
7415
7437
|
*/ /**
|
|
7416
7438
|
* Constructs a new IdentityProviderApi.
|
|
7417
7439
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -7567,7 +7589,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7567
7589
|
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(){/**
|
|
7568
7590
|
* InfrastructureAsCode service.
|
|
7569
7591
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
7570
|
-
* @version
|
|
7592
|
+
* @version 202.0.0
|
|
7571
7593
|
*/ /**
|
|
7572
7594
|
* Constructs a new InfrastructureAsCodeApi.
|
|
7573
7595
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -7621,7 +7643,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
7621
7643
|
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(){/**
|
|
7622
7644
|
* Integrations service.
|
|
7623
7645
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
7624
|
-
* @version
|
|
7646
|
+
* @version 202.0.0
|
|
7625
7647
|
*/ /**
|
|
7626
7648
|
* Constructs a new IntegrationsApi.
|
|
7627
7649
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -7769,6 +7791,9 @@ if(fileName===undefined||fileName===null){throw'Missing the required parameter "
|
|
|
7769
7791
|
* @param {Object} opts.status Indicates the validity of the certificate in question.
|
|
7770
7792
|
* @param {Object} opts.type Indicates the type of the certificate.
|
|
7771
7793
|
*/},{key:"getIntegrationsActionsCertificates",value:function getIntegrationsActionsCertificates(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/integrations/actions/certificates','GET',{},{'status':opts['status'],'type':opts['type']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7794
|
+
* Retrieves basic info about trusted root CA certificates
|
|
7795
|
+
*
|
|
7796
|
+
*/},{key:"getIntegrationsActionsCertificatesTruststore",value:function getIntegrationsActionsCertificatesTruststore(){return this.apiClient.callApi('/api/v2/integrations/actions/certificates/truststore','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7772
7797
|
* Retrieves all action drafts associated with the filters passed in via query param.
|
|
7773
7798
|
*
|
|
7774
7799
|
* @param {Object} opts Optional parameters
|
|
@@ -8232,7 +8257,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
|
|
|
8232
8257
|
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 JourneyApi=/*#__PURE__*/function(){/**
|
|
8233
8258
|
* Journey service.
|
|
8234
8259
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
8235
|
-
* @version
|
|
8260
|
+
* @version 202.0.0
|
|
8236
8261
|
*/ /**
|
|
8237
8262
|
* Constructs a new JourneyApi.
|
|
8238
8263
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -8641,7 +8666,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8641
8666
|
*/},{key:"postJourneyViewsEncodingsValidate",value:function postJourneyViewsEncodingsValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/encodings/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
|
|
8642
8667
|
* Knowledge service.
|
|
8643
8668
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
8644
|
-
* @version
|
|
8669
|
+
* @version 202.0.0
|
|
8645
8670
|
*/ /**
|
|
8646
8671
|
* Constructs a new KnowledgeApi.
|
|
8647
8672
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -9554,7 +9579,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9554
9579
|
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']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
|
|
9555
9580
|
* LanguageUnderstanding service.
|
|
9556
9581
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
9557
|
-
* @version
|
|
9582
|
+
* @version 202.0.0
|
|
9558
9583
|
*/ /**
|
|
9559
9584
|
* Constructs a new LanguageUnderstandingApi.
|
|
9560
9585
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -9814,7 +9839,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
|
|
|
9814
9839
|
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(){/**
|
|
9815
9840
|
* Languages service.
|
|
9816
9841
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
9817
|
-
* @version
|
|
9842
|
+
* @version 202.0.0
|
|
9818
9843
|
*/ /**
|
|
9819
9844
|
* Constructs a new LanguagesApi.
|
|
9820
9845
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -9869,7 +9894,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
9869
9894
|
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(){/**
|
|
9870
9895
|
* Learning service.
|
|
9871
9896
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
9872
|
-
* @version
|
|
9897
|
+
* @version 202.0.0
|
|
9873
9898
|
*/ /**
|
|
9874
9899
|
* Constructs a new LearningApi.
|
|
9875
9900
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -9920,7 +9945,7 @@ if(stepId===undefined||stepId===null){throw'Missing the required parameter "step
|
|
|
9920
9945
|
* @param {Object} opts.sortOrder Specifies result set sort order; if not specified, default sort order is descending (Desc) (default to Desc)
|
|
9921
9946
|
* @param {Object} opts.sortBy Specifies which field to sort the results by, default sort is by recommendedCompletionDate
|
|
9922
9947
|
* @param {Array.<String>} opts.userId Specifies the list of user IDs to be queried, up to 100 user IDs.
|
|
9923
|
-
* @param {Array.<String>} opts.types Specifies the module types to filter by
|
|
9948
|
+
* @param {Array.<String>} opts.types Specifies the module types to filter by. Informational, AssessedContent and Assessment are deprecated
|
|
9924
9949
|
* @param {Array.<String>} opts.states Specifies the assignment states to filter by
|
|
9925
9950
|
* @param {Array.<String>} opts.expand Specifies the expand option for returning additional information
|
|
9926
9951
|
*/},{key:"getLearningAssignments",value:function getLearningAssignments(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/learning/assignments','GET',{},{'moduleId':opts['moduleId'],'interval':opts['interval'],'completionInterval':opts['completionInterval'],'overdue':opts['overdue'],'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'pass':opts['pass'],'minPercentageScore':opts['minPercentageScore'],'maxPercentageScore':opts['maxPercentageScore'],'sortOrder':opts['sortOrder'],'sortBy':opts['sortBy'],'userId':this.apiClient.buildCollectionParam(opts['userId'],'multi'),'types':this.apiClient.buildCollectionParam(opts['types'],'multi'),'states':this.apiClient.buildCollectionParam(opts['states'],'multi'),'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -9938,7 +9963,7 @@ if(stepId===undefined||stepId===null){throw'Missing the required parameter "step
|
|
|
9938
9963
|
* @param {Number} opts.maxPercentageScore The maximum assessment score for an assignment (completed with assessment) to be included in the results (inclusive)
|
|
9939
9964
|
* @param {Object} opts.sortOrder Specifies result set sort order; if not specified, default sort order is descending (Desc) (default to Desc)
|
|
9940
9965
|
* @param {Object} opts.sortBy Specifies which field to sort the results by, default sort is by recommendedCompletionDate
|
|
9941
|
-
* @param {Array.<String>} opts.types Specifies the module types to filter by
|
|
9966
|
+
* @param {Array.<String>} opts.types Specifies the module types to filter by. Informational, AssessedContent and Assessment are deprecated
|
|
9942
9967
|
* @param {Array.<String>} opts.states Specifies the assignment states to filter by
|
|
9943
9968
|
* @param {Array.<String>} opts.expand Specifies the expand option for returning additional information
|
|
9944
9969
|
*/},{key:"getLearningAssignmentsMe",value:function getLearningAssignmentsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/learning/assignments/me','GET',{},{'moduleId':opts['moduleId'],'interval':opts['interval'],'completionInterval':opts['completionInterval'],'overdue':opts['overdue'],'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'pass':opts['pass'],'minPercentageScore':opts['minPercentageScore'],'maxPercentageScore':opts['maxPercentageScore'],'sortOrder':opts['sortOrder'],'sortBy':opts['sortBy'],'types':this.apiClient.buildCollectionParam(opts['types'],'multi'),'states':this.apiClient.buildCollectionParam(opts['states'],'multi'),'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -9979,7 +10004,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
|
|
|
9979
10004
|
*
|
|
9980
10005
|
* @param {Object} opts Optional parameters
|
|
9981
10006
|
* @param {Boolean} opts.isArchived Archive status (default to false)
|
|
9982
|
-
* @param {Array.<String>} opts.types Specifies the module types.
|
|
10007
|
+
* @param {Array.<String>} opts.types Specifies the module types. Informational, AssessedContent and Assessment are deprecated
|
|
9983
10008
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
9984
10009
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
9985
10010
|
* @param {Object} opts.sortOrder Sort order (default to ascending)
|
|
@@ -10140,7 +10165,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
|
|
|
10140
10165
|
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},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
|
|
10141
10166
|
* License service.
|
|
10142
10167
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
10143
|
-
* @version
|
|
10168
|
+
* @version 202.0.0
|
|
10144
10169
|
*/ /**
|
|
10145
10170
|
* Constructs a new LicenseApi.
|
|
10146
10171
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -10194,7 +10219,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
10194
10219
|
*/},{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(){/**
|
|
10195
10220
|
* Locations service.
|
|
10196
10221
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
10197
|
-
* @version
|
|
10222
|
+
* @version 202.0.0
|
|
10198
10223
|
*/ /**
|
|
10199
10224
|
* Constructs a new LocationsApi.
|
|
10200
10225
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -10253,7 +10278,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10253
10278
|
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(){/**
|
|
10254
10279
|
* LogCapture service.
|
|
10255
10280
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
10256
|
-
* @version
|
|
10281
|
+
* @version 202.0.0
|
|
10257
10282
|
*/ /**
|
|
10258
10283
|
* Constructs a new LogCaptureApi.
|
|
10259
10284
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -10303,7 +10328,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
10303
10328
|
if(userId===undefined||userId===null){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(){/**
|
|
10304
10329
|
* Messaging service.
|
|
10305
10330
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
10306
|
-
* @version
|
|
10331
|
+
* @version 202.0.0
|
|
10307
10332
|
*/ /**
|
|
10308
10333
|
* Constructs a new MessagingApi.
|
|
10309
10334
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -10393,7 +10418,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10393
10418
|
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(){/**
|
|
10394
10419
|
* MobileDevices service.
|
|
10395
10420
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
10396
|
-
* @version
|
|
10421
|
+
* @version 202.0.0
|
|
10397
10422
|
*/ /**
|
|
10398
10423
|
* Constructs a new MobileDevicesApi.
|
|
10399
10424
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -10432,7 +10457,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10432
10457
|
if(deviceId===undefined||deviceId===null){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(){/**
|
|
10433
10458
|
* Notifications service.
|
|
10434
10459
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
10435
|
-
* @version
|
|
10460
|
+
* @version 202.0.0
|
|
10436
10461
|
*/ /**
|
|
10437
10462
|
* Constructs a new NotificationsApi.
|
|
10438
10463
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -10489,7 +10514,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
|
|
|
10489
10514
|
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(){/**
|
|
10490
10515
|
* OAuth service.
|
|
10491
10516
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
10492
|
-
* @version
|
|
10517
|
+
* @version 202.0.0
|
|
10493
10518
|
*/ /**
|
|
10494
10519
|
* Constructs a new OAuthApi.
|
|
10495
10520
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -10574,7 +10599,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
10574
10599
|
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(){/**
|
|
10575
10600
|
* Objects service.
|
|
10576
10601
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
10577
|
-
* @version
|
|
10602
|
+
* @version 202.0.0
|
|
10578
10603
|
*/ /**
|
|
10579
10604
|
* Constructs a new ObjectsApi.
|
|
10580
10605
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -10645,7 +10670,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
10645
10670
|
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(){/**
|
|
10646
10671
|
* OperationalEvents service.
|
|
10647
10672
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
10648
|
-
* @version
|
|
10673
|
+
* @version 202.0.0
|
|
10649
10674
|
*/ /**
|
|
10650
10675
|
* Constructs a new OperationalEventsApi.
|
|
10651
10676
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -10663,7 +10688,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
10663
10688
|
*/},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
|
|
10664
10689
|
* Organization service.
|
|
10665
10690
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
10666
|
-
* @version
|
|
10691
|
+
* @version 202.0.0
|
|
10667
10692
|
*/ /**
|
|
10668
10693
|
* Constructs a new OrganizationApi.
|
|
10669
10694
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -10713,11 +10738,31 @@ if(requestId===undefined||requestId===null){throw'Missing the required parameter
|
|
|
10713
10738
|
* @param {String} namespaceName The namespace to fetch limits for
|
|
10714
10739
|
*/},{key:"getOrganizationsLimitsNamespace",value:function getOrganizationsLimitsNamespace(namespaceName){// verify the required parameter 'namespaceName' is set
|
|
10715
10740
|
if(namespaceName===undefined||namespaceName===null){throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespace';}return this.apiClient.callApi('/api/v2/organizations/limits/namespaces/{namespaceName}','GET',{'namespaceName':namespaceName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10741
|
+
* Get estimated limit counts for a namespace. This is not a source of truth for limit values but a record of estimates to facilitate limit threshold tracking.
|
|
10742
|
+
* See https://developer.genesys.cloud/organization/organization/limits#available-limits for limits that are trackable (Operational Events Enabled).
|
|
10743
|
+
* @param {String} namespaceName The namespace to get
|
|
10744
|
+
* @param {Object} opts Optional parameters
|
|
10745
|
+
* @param {String} opts.cursor Cursor provided when retrieving the last page
|
|
10746
|
+
* @param {String} opts.entityId entity id of the count
|
|
10747
|
+
* @param {String} opts.userId userid of the count
|
|
10748
|
+
*/},{key:"getOrganizationsLimitsNamespaceCounts",value:function getOrganizationsLimitsNamespaceCounts(namespaceName,opts){opts=opts||{};// verify the required parameter 'namespaceName' is set
|
|
10749
|
+
if(namespaceName===undefined||namespaceName===null){throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceCounts';}return this.apiClient.callApi('/api/v2/organizations/limits/namespaces/{namespaceName}/counts','GET',{'namespaceName':namespaceName},{'cursor':opts['cursor'],'entityId':opts['entityId'],'userId':opts['userId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10716
10750
|
* Get the default limits in a namespace for an organization
|
|
10717
10751
|
*
|
|
10718
10752
|
* @param {String} namespaceName The namespace to fetch defaults limits for
|
|
10719
10753
|
*/},{key:"getOrganizationsLimitsNamespaceDefaults",value:function getOrganizationsLimitsNamespaceDefaults(namespaceName){// verify the required parameter 'namespaceName' is set
|
|
10720
10754
|
if(namespaceName===undefined||namespaceName===null){throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceDefaults';}return this.apiClient.callApi('/api/v2/organizations/limits/namespaces/{namespaceName}/defaults','GET',{'namespaceName':namespaceName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10755
|
+
* Get estimated limit counts for a namespace and limit name. This is not a source of truth for limit values but a record of estimates to facilitate limit threshold tracking.
|
|
10756
|
+
* See https://developer.genesys.cloud/organization/organization/limits#available-limits for limits that are trackable (Operational Events Enabled).
|
|
10757
|
+
* @param {String} namespaceName The namespace to get
|
|
10758
|
+
* @param {String} limitName The limit to get
|
|
10759
|
+
* @param {Object} opts Optional parameters
|
|
10760
|
+
* @param {String} opts.entityId entity id of the count
|
|
10761
|
+
* @param {String} opts.userId userid of the count
|
|
10762
|
+
* @param {String} opts.cursor Cursor provided when retrieving the last page
|
|
10763
|
+
*/},{key:"getOrganizationsLimitsNamespaceLimitCounts",value:function getOrganizationsLimitsNamespaceLimitCounts(namespaceName,limitName,opts){opts=opts||{};// verify the required parameter 'namespaceName' is set
|
|
10764
|
+
if(namespaceName===undefined||namespaceName===null){throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceLimitCounts';}// verify the required parameter 'limitName' is set
|
|
10765
|
+
if(limitName===undefined||limitName===null){throw'Missing the required parameter "limitName" when calling getOrganizationsLimitsNamespaceLimitCounts';}return this.apiClient.callApi('/api/v2/organizations/limits/namespaces/{namespaceName}/limits/{limitName}/counts','GET',{'namespaceName':namespaceName,'limitName':limitName},{'entityId':opts['entityId'],'userId':opts['userId'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10721
10766
|
* Get the available limit namespaces
|
|
10722
10767
|
*
|
|
10723
10768
|
* @param {Object} opts Optional parameters
|
|
@@ -10768,7 +10813,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10768
10813
|
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(){/**
|
|
10769
10814
|
* OrganizationAuthorization service.
|
|
10770
10815
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
10771
|
-
* @version
|
|
10816
|
+
* @version 202.0.0
|
|
10772
10817
|
*/ /**
|
|
10773
10818
|
* Constructs a new OrganizationAuthorizationApi.
|
|
10774
10819
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -11091,7 +11136,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
11091
11136
|
if(trusteeUserId===undefined||trusteeUserId===null){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(){/**
|
|
11092
11137
|
* Outbound service.
|
|
11093
11138
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
11094
|
-
* @version
|
|
11139
|
+
* @version 202.0.0
|
|
11095
11140
|
*/ /**
|
|
11096
11141
|
* Constructs a new OutboundApi.
|
|
11097
11142
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -11435,6 +11480,18 @@ if(contactListId===undefined||contactListId===null){throw'Missing the required p
|
|
|
11435
11480
|
*/},{key:"getOutboundContactlistContact",value:function getOutboundContactlistContact(contactListId,contactId){// verify the required parameter 'contactListId' is set
|
|
11436
11481
|
if(contactListId===undefined||contactListId===null){throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContact';}// verify the required parameter 'contactId' is set
|
|
11437
11482
|
if(contactId===undefined||contactId===null){throw'Missing the required parameter "contactId" when calling getOutboundContactlistContact';}return this.apiClient.callApi('/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}','GET',{'contactListId':contactListId,'contactId':contactId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11483
|
+
* Get bulk operation job.
|
|
11484
|
+
*
|
|
11485
|
+
* @param {String} contactListId Contact List ID
|
|
11486
|
+
* @param {String} jobId Job ID
|
|
11487
|
+
*/},{key:"getOutboundContactlistContactsBulkJob",value:function getOutboundContactlistContactsBulkJob(contactListId,jobId){// verify the required parameter 'contactListId' is set
|
|
11488
|
+
if(contactListId===undefined||contactListId===null){throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJob';}// verify the required parameter 'jobId' is set
|
|
11489
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getOutboundContactlistContactsBulkJob';}return this.apiClient.callApi('/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/jobs/{jobId}','GET',{'contactListId':contactListId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11490
|
+
* Get 10 most recent bulk operation jobs associated with contact list.
|
|
11491
|
+
*
|
|
11492
|
+
* @param {String} contactListId Contact List ID
|
|
11493
|
+
*/},{key:"getOutboundContactlistContactsBulkJobs",value:function getOutboundContactlistContactsBulkJobs(contactListId){// verify the required parameter 'contactListId' is set
|
|
11494
|
+
if(contactListId===undefined||contactListId===null){throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJobs';}return this.apiClient.callApi('/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/jobs','GET',{'contactListId':contactListId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11438
11495
|
* Get the URI of a contact list export.
|
|
11439
11496
|
*
|
|
11440
11497
|
* @param {String} contactListId ContactList ID
|
|
@@ -12158,7 +12215,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12158
12215
|
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(){/**
|
|
12159
12216
|
* Presence service.
|
|
12160
12217
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
12161
|
-
* @version
|
|
12218
|
+
* @version 202.0.0
|
|
12162
12219
|
*/ /**
|
|
12163
12220
|
* Constructs a new PresenceApi.
|
|
12164
12221
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -12331,7 +12388,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12331
12388
|
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(){/**
|
|
12332
12389
|
* ProcessAutomation service.
|
|
12333
12390
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
12334
|
-
* @version
|
|
12391
|
+
* @version 202.0.0
|
|
12335
12392
|
*/ /**
|
|
12336
12393
|
* Constructs a new ProcessAutomationApi.
|
|
12337
12394
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -12394,7 +12451,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
|
|
|
12394
12451
|
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(){/**
|
|
12395
12452
|
* Quality service.
|
|
12396
12453
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
12397
|
-
* @version
|
|
12454
|
+
* @version 202.0.0
|
|
12398
12455
|
*/ /**
|
|
12399
12456
|
* Constructs a new QualityApi.
|
|
12400
12457
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -12871,7 +12928,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
12871
12928
|
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(){/**
|
|
12872
12929
|
* Recording service.
|
|
12873
12930
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
12874
|
-
* @version
|
|
12931
|
+
* @version 202.0.0
|
|
12875
12932
|
*/ /**
|
|
12876
12933
|
* Constructs a new RecordingApi.
|
|
12877
12934
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -13002,7 +13059,7 @@ if(orphanId===undefined||orphanId===null){throw'Missing the required parameter "
|
|
|
13002
13059
|
* @param {Boolean} opts.hasConversation Filter resulting orphans by whether the conversation is known. False returns all orphans for the organization. (default to false)
|
|
13003
13060
|
* @param {Object} opts.media Filter resulting orphans based on their media type
|
|
13004
13061
|
*/},{key:"getOrphanrecordings",value:function getOrphanrecordings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/orphanrecordings','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'nextPage':opts['nextPage'],'previousPage':opts['previousPage'],'hasConversation':opts['hasConversation'],'media':opts['media']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13005
|
-
* Get the status and results for a batch request job, only the user that submitted the job may retrieve results
|
|
13062
|
+
* Get the status and results for a batch request job, only the user that submitted the job may retrieve results. Each result may contain either a URL to a recording or an error; additionally, a recording could be associated with multiple results.
|
|
13006
13063
|
*
|
|
13007
13064
|
* @param {String} jobId jobId
|
|
13008
13065
|
*/},{key:"getRecordingBatchrequest",value:function getRecordingBatchrequest(jobId){// verify the required parameter 'jobId' is set
|
|
@@ -13283,7 +13340,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13283
13340
|
*/},{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(){/**
|
|
13284
13341
|
* ResponseManagement service.
|
|
13285
13342
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
13286
|
-
* @version
|
|
13343
|
+
* @version 202.0.0
|
|
13287
13344
|
*/ /**
|
|
13288
13345
|
* Constructs a new ResponseManagementApi.
|
|
13289
13346
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -13404,7 +13461,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
|
|
|
13404
13461
|
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(){/**
|
|
13405
13462
|
* Routing service.
|
|
13406
13463
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
13407
|
-
* @version
|
|
13464
|
+
* @version 202.0.0
|
|
13408
13465
|
*/ /**
|
|
13409
13466
|
* Constructs a new RoutingApi.
|
|
13410
13467
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -14401,7 +14458,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14401
14458
|
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(){/**
|
|
14402
14459
|
* SCIM service.
|
|
14403
14460
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
14404
|
-
* @version
|
|
14461
|
+
* @version 202.0.0
|
|
14405
14462
|
*/ /**
|
|
14406
14463
|
* Constructs a new SCIMApi.
|
|
14407
14464
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -14626,7 +14683,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14626
14683
|
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 ScreenRecordingApi=/*#__PURE__*/function(){/**
|
|
14627
14684
|
* ScreenRecording service.
|
|
14628
14685
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
14629
|
-
* @version
|
|
14686
|
+
* @version 202.0.0
|
|
14630
14687
|
*/ /**
|
|
14631
14688
|
* Constructs a new ScreenRecordingApi.
|
|
14632
14689
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -14641,7 +14698,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14641
14698
|
*/return _createClass(ScreenRecordingApi,[{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 ScriptsApi=/*#__PURE__*/function(){/**
|
|
14642
14699
|
* Scripts service.
|
|
14643
14700
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
14644
|
-
* @version
|
|
14701
|
+
* @version 202.0.0
|
|
14645
14702
|
*/ /**
|
|
14646
14703
|
* Constructs a new ScriptsApi.
|
|
14647
14704
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -14777,7 +14834,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
14777
14834
|
*/},{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(){/**
|
|
14778
14835
|
* Search service.
|
|
14779
14836
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
14780
|
-
* @version
|
|
14837
|
+
* @version 202.0.0
|
|
14781
14838
|
*/ /**
|
|
14782
14839
|
* Constructs a new SearchApi.
|
|
14783
14840
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -14937,7 +14994,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14937
14994
|
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(){/**
|
|
14938
14995
|
* Settings service.
|
|
14939
14996
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
14940
|
-
* @version
|
|
14997
|
+
* @version 202.0.0
|
|
14941
14998
|
*/ /**
|
|
14942
14999
|
* Constructs a new SettingsApi.
|
|
14943
15000
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -14989,7 +15046,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
14989
15046
|
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 SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
14990
15047
|
* SpeechTextAnalytics service.
|
|
14991
15048
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
14992
|
-
* @version
|
|
15049
|
+
* @version 202.0.0
|
|
14993
15050
|
*/ /**
|
|
14994
15051
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
14995
15052
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -15273,7 +15330,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
15273
15330
|
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(){/**
|
|
15274
15331
|
* Stations service.
|
|
15275
15332
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
15276
|
-
* @version
|
|
15333
|
+
* @version 202.0.0
|
|
15277
15334
|
*/ /**
|
|
15278
15335
|
* Constructs a new StationsApi.
|
|
15279
15336
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -15305,7 +15362,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
15305
15362
|
*/},{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(){/**
|
|
15306
15363
|
* Suggest service.
|
|
15307
15364
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
15308
|
-
* @version
|
|
15365
|
+
* @version 202.0.0
|
|
15309
15366
|
*/ /**
|
|
15310
15367
|
* Constructs a new SuggestApi.
|
|
15311
15368
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -15345,7 +15402,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15345
15402
|
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(){/**
|
|
15346
15403
|
* TaskManagement service.
|
|
15347
15404
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
15348
|
-
* @version
|
|
15405
|
+
* @version 202.0.0
|
|
15349
15406
|
*/ /**
|
|
15350
15407
|
* Constructs a new TaskManagementApi.
|
|
15351
15408
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -15588,24 +15645,24 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15588
15645
|
* Update the attributes of a worktype
|
|
15589
15646
|
*
|
|
15590
15647
|
* @param {String} worktypeId Worktype id
|
|
15591
|
-
* @param {Object}
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
if(
|
|
15648
|
+
* @param {Object} body Worktype
|
|
15649
|
+
*/},{key:"patchTaskmanagementWorktype",value:function patchTaskmanagementWorktype(worktypeId,body){// verify the required parameter 'worktypeId' is set
|
|
15650
|
+
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';}// verify the required parameter 'body' is set
|
|
15651
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchTaskmanagementWorktype';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}','PATCH',{'worktypeId':worktypeId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15595
15652
|
* Update the attributes of a status
|
|
15596
15653
|
*
|
|
15597
15654
|
* @param {String} worktypeId Worktype id
|
|
15598
15655
|
* @param {String} statusId Status id
|
|
15599
|
-
* @param {Object}
|
|
15600
|
-
|
|
15601
|
-
*/},{key:"patchTaskmanagementWorktypeStatus",value:function patchTaskmanagementWorktypeStatus(worktypeId,statusId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
15656
|
+
* @param {Object} body Status
|
|
15657
|
+
*/},{key:"patchTaskmanagementWorktypeStatus",value:function patchTaskmanagementWorktypeStatus(worktypeId,statusId,body){// verify the required parameter 'worktypeId' is set
|
|
15602
15658
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
|
|
15603
|
-
if(statusId===undefined||statusId===null){throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';}
|
|
15659
|
+
if(statusId===undefined||statusId===null){throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';}// verify the required parameter 'body' is set
|
|
15660
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchTaskmanagementWorktypeStatus';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}','PATCH',{'worktypeId':worktypeId,'statusId':statusId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15604
15661
|
* Create a workbin
|
|
15605
15662
|
*
|
|
15606
|
-
* @param {Object}
|
|
15607
|
-
|
|
15608
|
-
|
|
15663
|
+
* @param {Object} body Workbin
|
|
15664
|
+
*/},{key:"postTaskmanagementWorkbins",value:function postTaskmanagementWorkbins(body){// verify the required parameter 'body' is set
|
|
15665
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorkbins';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15609
15666
|
* Query for workbins
|
|
15610
15667
|
*
|
|
15611
15668
|
* @param {Object} body QueryPostRequest
|
|
@@ -15652,15 +15709,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15652
15709
|
* Add a status to a worktype
|
|
15653
15710
|
*
|
|
15654
15711
|
* @param {String} worktypeId Worktype id
|
|
15655
|
-
* @param {Object}
|
|
15656
|
-
|
|
15657
|
-
|
|
15658
|
-
if(
|
|
15712
|
+
* @param {Object} body Status
|
|
15713
|
+
*/},{key:"postTaskmanagementWorktypeStatuses",value:function postTaskmanagementWorktypeStatuses(worktypeId,body){// verify the required parameter 'worktypeId' is set
|
|
15714
|
+
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';}// verify the required parameter 'body' is set
|
|
15715
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeStatuses';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses','POST',{'worktypeId':worktypeId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15659
15716
|
* Create a worktype
|
|
15660
15717
|
*
|
|
15661
|
-
* @param {Object}
|
|
15662
|
-
|
|
15663
|
-
|
|
15718
|
+
* @param {Object} body Worktype
|
|
15719
|
+
*/},{key:"postTaskmanagementWorktypes",value:function postTaskmanagementWorktypes(body){// verify the required parameter 'body' is set
|
|
15720
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorktypes';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15664
15721
|
* Query for worktypes
|
|
15665
15722
|
*
|
|
15666
15723
|
* @param {Object} body QueryPostRequest
|
|
@@ -15675,7 +15732,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
15675
15732
|
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(){/**
|
|
15676
15733
|
* Teams service.
|
|
15677
15734
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
15678
|
-
* @version
|
|
15735
|
+
* @version 202.0.0
|
|
15679
15736
|
*/ /**
|
|
15680
15737
|
* Constructs a new TeamsApi.
|
|
15681
15738
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -15753,7 +15810,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15753
15810
|
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(){/**
|
|
15754
15811
|
* Telephony service.
|
|
15755
15812
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
15756
|
-
* @version
|
|
15813
|
+
* @version 202.0.0
|
|
15757
15814
|
*/ /**
|
|
15758
15815
|
* Constructs a new TelephonyApi.
|
|
15759
15816
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -15800,7 +15857,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
15800
15857
|
if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
|
|
15801
15858
|
* TelephonyProvidersEdge service.
|
|
15802
15859
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
15803
|
-
* @version
|
|
15860
|
+
* @version 202.0.0
|
|
15804
15861
|
*/ /**
|
|
15805
15862
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
15806
15863
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -16610,7 +16667,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
|
|
|
16610
16667
|
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(){/**
|
|
16611
16668
|
* Textbots service.
|
|
16612
16669
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
16613
|
-
* @version
|
|
16670
|
+
* @version 202.0.0
|
|
16614
16671
|
*/ /**
|
|
16615
16672
|
* Constructs a new TextbotsApi.
|
|
16616
16673
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -16645,7 +16702,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
16645
16702
|
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(){/**
|
|
16646
16703
|
* Tokens service.
|
|
16647
16704
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
16648
|
-
* @version
|
|
16705
|
+
* @version 202.0.0
|
|
16649
16706
|
*/ /**
|
|
16650
16707
|
* Constructs a new TokensApi.
|
|
16651
16708
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -16679,7 +16736,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
16679
16736
|
*/},{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(){/**
|
|
16680
16737
|
* Uploads service.
|
|
16681
16738
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
16682
|
-
* @version
|
|
16739
|
+
* @version 202.0.0
|
|
16683
16740
|
*/ /**
|
|
16684
16741
|
* Constructs a new UploadsApi.
|
|
16685
16742
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -16745,7 +16802,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16745
16802
|
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(){/**
|
|
16746
16803
|
* Usage service.
|
|
16747
16804
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
16748
|
-
* @version
|
|
16805
|
+
* @version 202.0.0
|
|
16749
16806
|
*/ /**
|
|
16750
16807
|
* Constructs a new UsageApi.
|
|
16751
16808
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -16799,7 +16856,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16799
16856
|
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(){/**
|
|
16800
16857
|
* UserRecordings service.
|
|
16801
16858
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
16802
|
-
* @version
|
|
16859
|
+
* @version 202.0.0
|
|
16803
16860
|
*/ /**
|
|
16804
16861
|
* Constructs a new UserRecordingsApi.
|
|
16805
16862
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -16820,13 +16877,21 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
16820
16877
|
*/},{key:"getUserrecording",value:function getUserrecording(recordingId,opts){opts=opts||{};// verify the required parameter 'recordingId' is set
|
|
16821
16878
|
if(recordingId===undefined||recordingId===null){throw'Missing the required parameter "recordingId" when calling getUserrecording';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}','GET',{'recordingId':recordingId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16822
16879
|
* Download a user recording.
|
|
16823
|
-
*
|
|
16880
|
+
* API should migrate to use GET api/v2/userrecordings/{recordingId}/transcoding
|
|
16824
16881
|
* @param {String} recordingId User Recording ID
|
|
16825
16882
|
* @param {Object} opts Optional parameters
|
|
16826
16883
|
* @param {Object} opts.formatId The desired media format. (default to WEBM)
|
|
16827
16884
|
* @param {Boolean} opts.async When set to true, api will return 202 response until the recording is ready for download
|
|
16885
|
+
* @deprecated
|
|
16828
16886
|
*/},{key:"getUserrecordingMedia",value:function getUserrecordingMedia(recordingId,opts){opts=opts||{};// verify the required parameter 'recordingId' is set
|
|
16829
16887
|
if(recordingId===undefined||recordingId===null){throw'Missing the required parameter "recordingId" when calling getUserrecordingMedia';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}/media','GET',{'recordingId':recordingId},{'formatId':opts['formatId'],'async':opts['async']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16888
|
+
* Download a user recording.
|
|
16889
|
+
*
|
|
16890
|
+
* @param {String} recordingId User Recording ID
|
|
16891
|
+
* @param {Object} opts Optional parameters
|
|
16892
|
+
* @param {Object} opts.formatId The desired media format. (default to WEBM)
|
|
16893
|
+
*/},{key:"getUserrecordingTranscoding",value:function getUserrecordingTranscoding(recordingId,opts){opts=opts||{};// verify the required parameter 'recordingId' is set
|
|
16894
|
+
if(recordingId===undefined||recordingId===null){throw'Missing the required parameter "recordingId" when calling getUserrecordingTranscoding';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}/transcoding','GET',{'recordingId':recordingId},{'formatId':opts['formatId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16830
16895
|
* Get a list of user recordings.
|
|
16831
16896
|
*
|
|
16832
16897
|
* @param {Object} opts Optional parameters
|
|
@@ -16848,7 +16913,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
16848
16913
|
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(){/**
|
|
16849
16914
|
* Users service.
|
|
16850
16915
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
16851
|
-
* @version
|
|
16916
|
+
* @version 202.0.0
|
|
16852
16917
|
*/ /**
|
|
16853
16918
|
* Constructs a new UsersApi.
|
|
16854
16919
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -17185,7 +17250,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
17185
17250
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
17186
17251
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
17187
17252
|
* @param {Object} opts.sortOrder Specifies result set sort order sorted by the date due; if not specified, default sort order is descending (Desc) (default to Desc)
|
|
17188
|
-
* @param {Array.<String>} opts.types Specifies the activity types.
|
|
17253
|
+
* @param {Array.<String>} opts.types Specifies the activity types. Informational, AssessedContent and Assessment are deprecated
|
|
17189
17254
|
* @param {Array.<String>} opts.statuses Specifies the activity statuses to filter by
|
|
17190
17255
|
* @param {Array.<String>} opts.relationship Specifies how the current user relation should be interpreted, and filters the activities returned to only the activities that have the specified relationship. If a value besides Attendee is specified, it will only return Coaching Appointments. If not specified, no filtering is applied.
|
|
17191
17256
|
*/},{key:"getUsersDevelopmentActivities",value:function getUsersDevelopmentActivities(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/users/development/activities','GET',{},{'userId':this.apiClient.buildCollectionParam(opts['userId'],'multi'),'moduleId':opts['moduleId'],'interval':opts['interval'],'completionInterval':opts['completionInterval'],'overdue':opts['overdue'],'pass':opts['pass'],'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortOrder':opts['sortOrder'],'types':this.apiClient.buildCollectionParam(opts['types'],'multi'),'statuses':this.apiClient.buildCollectionParam(opts['statuses'],'multi'),'relationship':this.apiClient.buildCollectionParam(opts['relationship'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -17200,14 +17265,14 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
17200
17265
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
17201
17266
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
17202
17267
|
* @param {Object} opts.sortOrder Specifies result set sort order sorted by the date due; if not specified, default sort order is descending (Desc) (default to Desc)
|
|
17203
|
-
* @param {Array.<String>} opts.types Specifies the activity types.
|
|
17268
|
+
* @param {Array.<String>} opts.types Specifies the activity types. Informational, AssessedContent and Assessment are deprecated
|
|
17204
17269
|
* @param {Array.<String>} opts.statuses Specifies the activity statuses to filter by
|
|
17205
17270
|
* @param {Array.<String>} opts.relationship Specifies how the current user relation should be interpreted, and filters the activities returned to only the activities that have the specified relationship. If a value besides Attendee is specified, it will only return Coaching Appointments. If not specified, no filtering is applied.
|
|
17206
17271
|
*/},{key:"getUsersDevelopmentActivitiesMe",value:function getUsersDevelopmentActivitiesMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/users/development/activities/me','GET',{},{'moduleId':opts['moduleId'],'interval':opts['interval'],'completionInterval':opts['completionInterval'],'overdue':opts['overdue'],'pass':opts['pass'],'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortOrder':opts['sortOrder'],'types':this.apiClient.buildCollectionParam(opts['types'],'multi'),'statuses':this.apiClient.buildCollectionParam(opts['statuses'],'multi'),'relationship':this.apiClient.buildCollectionParam(opts['relationship'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17207
17272
|
* Get a Development Activity
|
|
17208
17273
|
* Permission not required if you are the attendee, creator or facilitator of the coaching appointment or you are the assigned user of the learning assignment.
|
|
17209
17274
|
* @param {String} activityId Specifies the activity ID, maps to either assignment or appointment ID
|
|
17210
|
-
* @param {Object} type Specifies the activity type.
|
|
17275
|
+
* @param {Object} type Specifies the activity type. Informational, AssessedContent and Assessment are deprecated
|
|
17211
17276
|
*/},{key:"getUsersDevelopmentActivity",value:function getUsersDevelopmentActivity(activityId,type){// verify the required parameter 'activityId' is set
|
|
17212
17277
|
if(activityId===undefined||activityId===null){throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';}// verify the required parameter 'type' is set
|
|
17213
17278
|
if(type===undefined||type===null){throw'Missing the required parameter "type" when calling getUsersDevelopmentActivity';}return this.apiClient.callApi('/api/v2/users/development/activities/{activityId}','GET',{'activityId':activityId},{'type':type},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -17538,7 +17603,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
|
|
|
17538
17603
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserVerifier';}return this.apiClient.callApi('/api/v2/users/{userId}/verifiers/{verifierId}','PUT',{'userId':userId,'verifierId':verifierId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UtilitiesApi=/*#__PURE__*/function(){/**
|
|
17539
17604
|
* Utilities service.
|
|
17540
17605
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
17541
|
-
* @version
|
|
17606
|
+
* @version 202.0.0
|
|
17542
17607
|
*/ /**
|
|
17543
17608
|
* Constructs a new UtilitiesApi.
|
|
17544
17609
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -17565,7 +17630,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17565
17630
|
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(){/**
|
|
17566
17631
|
* Voicemail service.
|
|
17567
17632
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
17568
|
-
* @version
|
|
17633
|
+
* @version 202.0.0
|
|
17569
17634
|
*/ /**
|
|
17570
17635
|
* Constructs a new VoicemailApi.
|
|
17571
17636
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -17714,7 +17779,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
17714
17779
|
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(){/**
|
|
17715
17780
|
* WebChat service.
|
|
17716
17781
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
17717
|
-
* @version
|
|
17782
|
+
* @version 202.0.0
|
|
17718
17783
|
*/ /**
|
|
17719
17784
|
* Constructs a new WebChatApi.
|
|
17720
17785
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -17849,7 +17914,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17849
17914
|
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(){/**
|
|
17850
17915
|
* WebDeployments service.
|
|
17851
17916
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
17852
|
-
* @version
|
|
17917
|
+
* @version 202.0.0
|
|
17853
17918
|
*/ /**
|
|
17854
17919
|
* Constructs a new WebDeploymentsApi.
|
|
17855
17920
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -17970,7 +18035,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
17970
18035
|
if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
|
|
17971
18036
|
* WebMessaging service.
|
|
17972
18037
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
17973
|
-
* @version
|
|
18038
|
+
* @version 202.0.0
|
|
17974
18039
|
*/ /**
|
|
17975
18040
|
* Constructs a new WebMessagingApi.
|
|
17976
18041
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -17986,7 +18051,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
17986
18051
|
*/return _createClass(WebMessagingApi,[{key:"getWebmessagingMessages",value:function getWebmessagingMessages(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webmessaging/messages','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
17987
18052
|
* Widgets service.
|
|
17988
18053
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
17989
|
-
* @version
|
|
18054
|
+
* @version 202.0.0
|
|
17990
18055
|
*/ /**
|
|
17991
18056
|
* Constructs a new WidgetsApi.
|
|
17992
18057
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -18021,7 +18086,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
18021
18086
|
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(){/**
|
|
18022
18087
|
* WorkforceManagement service.
|
|
18023
18088
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
18024
|
-
* @version
|
|
18089
|
+
* @version 202.0.0
|
|
18025
18090
|
*/ /**
|
|
18026
18091
|
* Constructs a new WorkforceManagementApi.
|
|
18027
18092
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -18101,6 +18166,22 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet
|
|
|
18101
18166
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';}// verify the required parameter 'weekDateId' is set
|
|
18102
18167
|
if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';}// verify the required parameter 'forecastId' is set
|
|
18103
18168
|
if(forecastId===undefined||forecastId===null){throw'Missing the required parameter "forecastId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}','DELETE',{'businessUnitId':businessUnitId,'weekDateId':weekDateId,'forecastId':forecastId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18169
|
+
* Delete a work plan bid
|
|
18170
|
+
*
|
|
18171
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18172
|
+
* @param {String} bidId The ID of the work plan bid
|
|
18173
|
+
*/},{key:"deleteWorkforcemanagementBusinessunitWorkplanbid",value:function deleteWorkforcemanagementBusinessunitWorkplanbid(businessUnitId,bidId){// verify the required parameter 'businessUnitId' is set
|
|
18174
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';}// verify the required parameter 'bidId' is set
|
|
18175
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}','DELETE',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18176
|
+
* Delete a bid group by bid group Id
|
|
18177
|
+
*
|
|
18178
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18179
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
18180
|
+
* @param {String} bidGroupId Work Plan Bid Group id
|
|
18181
|
+
*/},{key:"deleteWorkforcemanagementBusinessunitWorkplanbidGroup",value:function deleteWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId){// verify the required parameter 'businessUnitId' is set
|
|
18182
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidId' is set
|
|
18183
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
18184
|
+
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}','DELETE',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18104
18185
|
* Disable generated calendar link for the current user
|
|
18105
18186
|
*
|
|
18106
18187
|
*/},{key:"deleteWorkforcemanagementCalendarUrlIcs",value:function deleteWorkforcemanagementCalendarUrlIcs(){return this.apiClient.callApi('/api/v2/workforcemanagement/calendar/url/ics','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -18177,6 +18258,39 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
18177
18258
|
* Get the management unit to which the currently logged in agent belongs
|
|
18178
18259
|
*
|
|
18179
18260
|
*/},{key:"getWorkforcemanagementAgentsMeManagementunit",value:function getWorkforcemanagementAgentsMeManagementunit(){return this.apiClient.callApi('/api/v2/workforcemanagement/agents/me/managementunit','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18261
|
+
* Query the status of an alternative shift offers operation. Only the user who started the operation can query the status
|
|
18262
|
+
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
18263
|
+
* @param {String} jobId The ID of the job
|
|
18264
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsOffersJob",value:function getWorkforcemanagementAlternativeshiftsOffersJob(jobId){// verify the required parameter 'jobId' is set
|
|
18265
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsOffersJob';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/offers/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18266
|
+
* Query the status of an alternative shift search offers operation. Only the user who started the operation can query the status
|
|
18267
|
+
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
18268
|
+
* @param {String} jobId The ID of the job
|
|
18269
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsOffersSearchJob",value:function getWorkforcemanagementAlternativeshiftsOffersSearchJob(jobId){// verify the required parameter 'jobId' is set
|
|
18270
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsOffersSearchJob';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/offers/search/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18271
|
+
* Get alternative shifts settings from the current logged in agent’s business unit
|
|
18272
|
+
*
|
|
18273
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsSettings",value:function getWorkforcemanagementAlternativeshiftsSettings(){return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18274
|
+
* Get my alternative shift trade by trade ID
|
|
18275
|
+
*
|
|
18276
|
+
* @param {String} tradeId The ID of the alternative shift trade
|
|
18277
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsTrade",value:function getWorkforcemanagementAlternativeshiftsTrade(tradeId){// verify the required parameter 'tradeId' is set
|
|
18278
|
+
if(tradeId===undefined||tradeId===null){throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementAlternativeshiftsTrade';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}','GET',{'tradeId':tradeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18279
|
+
* Get a list of my alternative shifts trades
|
|
18280
|
+
*
|
|
18281
|
+
* @param {Object} opts Optional parameters
|
|
18282
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
18283
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsTrades",value:function getWorkforcemanagementAlternativeshiftsTrades(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/trades','GET',{},{'forceAsync':opts['forceAsync']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18284
|
+
* Query the status of an alternative shift trades operation. Only the user who started the operation can query the status
|
|
18285
|
+
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
18286
|
+
* @param {String} jobId The ID of the job
|
|
18287
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsTradesJob",value:function getWorkforcemanagementAlternativeshiftsTradesJob(jobId){// verify the required parameter 'jobId' is set
|
|
18288
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsTradesJob';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/trades/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18289
|
+
* Query the status of an alternative shift trade state operation. Only the user who started the operation can query the status
|
|
18290
|
+
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
18291
|
+
* @param {String} jobId The ID of the job
|
|
18292
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsTradesStateJob",value:function getWorkforcemanagementAlternativeshiftsTradesStateJob(jobId){// verify the required parameter 'jobId' is set
|
|
18293
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsTradesStateJob';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/trades/state/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18180
18294
|
* Get business unit
|
|
18181
18295
|
* Expanding "settings" will retrieve all settings. All other expands will retrieve only the requested settings field(s).
|
|
18182
18296
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
@@ -18202,7 +18316,6 @@ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required
|
|
|
18202
18316
|
*
|
|
18203
18317
|
* @param {String} businessUnitId The ID of the business unit
|
|
18204
18318
|
* @param {String} activityPlanId The ID of the activity plan to fetch
|
|
18205
|
-
* getWorkforcemanagementBusinessunitActivityplan is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18206
18319
|
*/},{key:"getWorkforcemanagementBusinessunitActivityplan",value:function getWorkforcemanagementBusinessunitActivityplan(businessUnitId,activityPlanId){// verify the required parameter 'businessUnitId' is set
|
|
18207
18320
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';}// verify the required parameter 'activityPlanId' is set
|
|
18208
18321
|
if(activityPlanId===undefined||activityPlanId===null){throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}','GET',{'businessUnitId':businessUnitId,'activityPlanId':activityPlanId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -18211,7 +18324,6 @@ if(activityPlanId===undefined||activityPlanId===null){throw'Missing the required
|
|
|
18211
18324
|
* @param {String} businessUnitId The ID of the business unit
|
|
18212
18325
|
* @param {String} activityPlanId The ID of the activity plan associated with the run job
|
|
18213
18326
|
* @param {String} jobId The ID of the activity plan run job
|
|
18214
|
-
* getWorkforcemanagementBusinessunitActivityplanRunsJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18215
18327
|
*/},{key:"getWorkforcemanagementBusinessunitActivityplanRunsJob",value:function getWorkforcemanagementBusinessunitActivityplanRunsJob(businessUnitId,activityPlanId,jobId){// verify the required parameter 'businessUnitId' is set
|
|
18216
18328
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';}// verify the required parameter 'activityPlanId' is set
|
|
18217
18329
|
if(activityPlanId===undefined||activityPlanId===null){throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';}// verify the required parameter 'jobId' is set
|
|
@@ -18221,15 +18333,32 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
18221
18333
|
* @param {String} businessUnitId The ID of the business unit
|
|
18222
18334
|
* @param {Object} opts Optional parameters
|
|
18223
18335
|
* @param {Object} opts.state Optionally filter by activity plan state
|
|
18224
|
-
* getWorkforcemanagementBusinessunitActivityplans is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18225
18336
|
*/},{key:"getWorkforcemanagementBusinessunitActivityplans",value:function getWorkforcemanagementBusinessunitActivityplans(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
18226
18337
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans','GET',{'businessUnitId':businessUnitId},{'state':opts['state']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18227
18338
|
* Gets the latest job for all activity plans in the business unit
|
|
18228
18339
|
*
|
|
18229
18340
|
* @param {String} businessUnitId The ID of the business unit
|
|
18230
|
-
* getWorkforcemanagementBusinessunitActivityplansJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18231
18341
|
*/},{key:"getWorkforcemanagementBusinessunitActivityplansJobs",value:function getWorkforcemanagementBusinessunitActivityplansJobs(businessUnitId){// verify the required parameter 'businessUnitId' is set
|
|
18232
18342
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplansJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/jobs','GET',{'businessUnitId':businessUnitId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18343
|
+
* Get alternative shifts settings for a business unit
|
|
18344
|
+
*
|
|
18345
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18346
|
+
*/},{key:"getWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function getWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId){// verify the required parameter 'businessUnitId' is set
|
|
18347
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsSettings';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings','GET',{'businessUnitId':businessUnitId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18348
|
+
* Get an alternative shifts trade in a business unit for a given trade ID
|
|
18349
|
+
*
|
|
18350
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18351
|
+
* @param {String} tradeId The ID of the alternative shift trade
|
|
18352
|
+
*/},{key:"getWorkforcemanagementBusinessunitAlternativeshiftsTrade",value:function getWorkforcemanagementBusinessunitAlternativeshiftsTrade(businessUnitId,tradeId){// verify the required parameter 'businessUnitId' is set
|
|
18353
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';}// verify the required parameter 'tradeId' is set
|
|
18354
|
+
if(tradeId===undefined||tradeId===null){throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/{tradeId}','GET',{'businessUnitId':businessUnitId,'tradeId':tradeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18355
|
+
* Query the status of an alternative shift search trade operation. Only the user who started the operation can query the status
|
|
18356
|
+
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
18357
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18358
|
+
* @param {String} jobId The ID of the job
|
|
18359
|
+
*/},{key:"getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob",value:function getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(businessUnitId,jobId){// verify the required parameter 'businessUnitId' is set
|
|
18360
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';}// verify the required parameter 'jobId' is set
|
|
18361
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search/jobs/{jobId}','GET',{'businessUnitId':businessUnitId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18233
18362
|
* Get intraday planning groups for the given date
|
|
18234
18363
|
*
|
|
18235
18364
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -18481,6 +18610,43 @@ if(forecastId===undefined||forecastId===null){throw'Missing the required paramet
|
|
|
18481
18610
|
*/},{key:"getWorkforcemanagementBusinessunitWeekShorttermforecasts",value:function getWorkforcemanagementBusinessunitWeekShorttermforecasts(businessUnitId,weekDateId){// verify the required parameter 'businessUnitId' is set
|
|
18482
18611
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';}// verify the required parameter 'weekDateId' is set
|
|
18483
18612
|
if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts','GET',{'businessUnitId':businessUnitId,'weekDateId':weekDateId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18613
|
+
* Get a work plan bid
|
|
18614
|
+
*
|
|
18615
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18616
|
+
* @param {String} bidId The id of the workplanbid
|
|
18617
|
+
*/},{key:"getWorkforcemanagementBusinessunitWorkplanbid",value:function getWorkforcemanagementBusinessunitWorkplanbid(businessUnitId,bidId){// verify the required parameter 'businessUnitId' is set
|
|
18618
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';}// verify the required parameter 'bidId' is set
|
|
18619
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbid';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}','GET',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18620
|
+
* Get a bid group by bid group Id
|
|
18621
|
+
*
|
|
18622
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18623
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
18624
|
+
* @param {String} bidGroupId Work Plan Bid Group id
|
|
18625
|
+
*/},{key:"getWorkforcemanagementBusinessunitWorkplanbidGroup",value:function getWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId){// verify the required parameter 'businessUnitId' is set
|
|
18626
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidId' is set
|
|
18627
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
18628
|
+
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}','GET',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18629
|
+
* Gets the work plan preferences of all the agents in the work plan bid group
|
|
18630
|
+
*
|
|
18631
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18632
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
18633
|
+
* @param {String} bidGroupId The ID of the work plan bid group
|
|
18634
|
+
*/},{key:"getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId){// verify the required parameter 'businessUnitId' is set
|
|
18635
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidId' is set
|
|
18636
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
|
|
18637
|
+
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences','GET',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18638
|
+
* Get summary of bid groups that belong to a work plan bid
|
|
18639
|
+
*
|
|
18640
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18641
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
18642
|
+
*/},{key:"getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary",value:function getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(businessUnitId,bidId){// verify the required parameter 'businessUnitId' is set
|
|
18643
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';}// verify the required parameter 'bidId' is set
|
|
18644
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/summary','GET',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18645
|
+
* Get list of work plan bids
|
|
18646
|
+
*
|
|
18647
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18648
|
+
*/},{key:"getWorkforcemanagementBusinessunitWorkplanbids",value:function getWorkforcemanagementBusinessunitWorkplanbids(businessUnitId){// verify the required parameter 'businessUnitId' is set
|
|
18649
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbids';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids','GET',{'businessUnitId':businessUnitId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18484
18650
|
* Get business units
|
|
18485
18651
|
*
|
|
18486
18652
|
* @param {Object} opts Optional parameters
|
|
@@ -18733,6 +18899,24 @@ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the requ
|
|
|
18733
18899
|
* @param {Object} opts Optional parameters
|
|
18734
18900
|
* @param {Boolean} opts.recentlyReviewed Limit results to requests that have been reviewed within the preceding 30 days (default to false)
|
|
18735
18901
|
*/},{key:"getWorkforcemanagementTimeoffrequests",value:function getWorkforcemanagementTimeoffrequests(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests','GET',{},{'recentlyReviewed':opts['recentlyReviewed']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18902
|
+
* Get work plan bid ranks for a user
|
|
18903
|
+
*
|
|
18904
|
+
* @param {String} userId The userId to whom the work plan bid ranks apply.
|
|
18905
|
+
*/},{key:"getWorkforcemanagementUserWorkplanbidranks",value:function getWorkforcemanagementUserWorkplanbidranks(userId){// verify the required parameter 'userId' is set
|
|
18906
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getWorkforcemanagementUserWorkplanbidranks';}return this.apiClient.callApi('/api/v2/workforcemanagement/users/{userId}/workplanbidranks','GET',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18907
|
+
* Gets an agent's work plan bidding preference
|
|
18908
|
+
*
|
|
18909
|
+
* @param {String} bidId The ID of the work plan bid
|
|
18910
|
+
*/},{key:"getWorkforcemanagementWorkplanbidPreferences",value:function getWorkforcemanagementWorkplanbidPreferences(bidId){// verify the required parameter 'bidId' is set
|
|
18911
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementWorkplanbidPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/workplanbids/{bidId}/preferences','GET',{'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18912
|
+
* Gets an agent's work plans for a bid
|
|
18913
|
+
*
|
|
18914
|
+
* @param {String} bidId The ID of the work plan bid
|
|
18915
|
+
*/},{key:"getWorkforcemanagementWorkplanbidWorkplans",value:function getWorkforcemanagementWorkplanbidWorkplans(bidId){// verify the required parameter 'bidId' is set
|
|
18916
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementWorkplanbidWorkplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/workplanbids/{bidId}/workplans','GET',{'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18917
|
+
* Gets the list of work plan bids that belong to an agent
|
|
18918
|
+
*
|
|
18919
|
+
*/},{key:"getWorkforcemanagementWorkplanbids",value:function getWorkforcemanagementWorkplanbids(){return this.apiClient.callApi('/api/v2/workforcemanagement/workplanbids','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18736
18920
|
* Update an adherence explanation
|
|
18737
18921
|
*
|
|
18738
18922
|
* @param {String} agentId The ID of the agent to query
|
|
@@ -18742,6 +18926,18 @@ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the requ
|
|
|
18742
18926
|
if(agentId===undefined||agentId===null){throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';}// verify the required parameter 'explanationId' is set
|
|
18743
18927
|
if(explanationId===undefined||explanationId===null){throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';}// verify the required parameter 'body' is set
|
|
18744
18928
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementAgentAdherenceExplanation';}return this.apiClient.callApi('/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/{explanationId}','PATCH',{'agentId':agentId,'explanationId':explanationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18929
|
+
* Update my alternative shifts trade by trade ID
|
|
18930
|
+
*
|
|
18931
|
+
* @param {String} tradeId The ID of the alternative shift trade
|
|
18932
|
+
* @param {Object} opts Optional parameters
|
|
18933
|
+
* @param {Object} opts.body body
|
|
18934
|
+
*/},{key:"patchWorkforcemanagementAlternativeshiftsTrade",value:function patchWorkforcemanagementAlternativeshiftsTrade(tradeId,opts){opts=opts||{};// verify the required parameter 'tradeId' is set
|
|
18935
|
+
if(tradeId===undefined||tradeId===null){throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}','PATCH',{'tradeId':tradeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18936
|
+
* Bulk update alternative shift trade states
|
|
18937
|
+
*
|
|
18938
|
+
* @param {Object} body The request body
|
|
18939
|
+
*/},{key:"patchWorkforcemanagementAlternativeshiftsTradesStateJobs",value:function patchWorkforcemanagementAlternativeshiftsTradesStateJobs(body){// verify the required parameter 'body' is set
|
|
18940
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTradesStateJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/trades/state/jobs','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18745
18941
|
* Update business unit
|
|
18746
18942
|
*
|
|
18747
18943
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
@@ -18763,11 +18959,17 @@ if(activityCodeId===undefined||activityCodeId===null){throw'Missing the required
|
|
|
18763
18959
|
* @param {String} businessUnitId The ID of the business unit
|
|
18764
18960
|
* @param {String} activityPlanId The ID of the activity plan to update
|
|
18765
18961
|
* @param {Object} body body
|
|
18766
|
-
* patchWorkforcemanagementBusinessunitActivityplan is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18767
18962
|
*/},{key:"patchWorkforcemanagementBusinessunitActivityplan",value:function patchWorkforcemanagementBusinessunitActivityplan(businessUnitId,activityPlanId,body){// verify the required parameter 'businessUnitId' is set
|
|
18768
18963
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';}// verify the required parameter 'activityPlanId' is set
|
|
18769
18964
|
if(activityPlanId===undefined||activityPlanId===null){throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';}// verify the required parameter 'body' is set
|
|
18770
18965
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitActivityplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}','PATCH',{'businessUnitId':businessUnitId,'activityPlanId':activityPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18966
|
+
* Update alternative shifts settings for a business unit
|
|
18967
|
+
*
|
|
18968
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18969
|
+
* @param {Object} opts Optional parameters
|
|
18970
|
+
* @param {Object} opts.body body
|
|
18971
|
+
*/},{key:"patchWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
18972
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings','PATCH',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18771
18973
|
* Updates the planning group
|
|
18772
18974
|
*
|
|
18773
18975
|
* @param {String} businessUnitId The ID of the business unit.
|
|
@@ -18813,6 +19015,37 @@ if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the requir
|
|
|
18813
19015
|
*/},{key:"patchWorkforcemanagementBusinessunitTimeoffplan",value:function patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId,timeOffPlanId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
18814
19016
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}// verify the required parameter 'timeOffPlanId' is set
|
|
18815
19017
|
if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}','PATCH',{'businessUnitId':businessUnitId,'timeOffPlanId':timeOffPlanId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19018
|
+
* Update work plan bid
|
|
19019
|
+
*
|
|
19020
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19021
|
+
* @param {String} bidId The id of the workplanbid
|
|
19022
|
+
* @param {Object} body The work plan bid to be updated
|
|
19023
|
+
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbid",value:function patchWorkforcemanagementBusinessunitWorkplanbid(businessUnitId,bidId,body){// verify the required parameter 'businessUnitId' is set
|
|
19024
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';}// verify the required parameter 'bidId' is set
|
|
19025
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';}// verify the required parameter 'body' is set
|
|
19026
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbid';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19027
|
+
* Update a bid group by bid group Id
|
|
19028
|
+
*
|
|
19029
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19030
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
19031
|
+
* @param {String} bidGroupId Work Plan Bid Group id
|
|
19032
|
+
* @param {Object} opts Optional parameters
|
|
19033
|
+
* @param {Object} opts.body body
|
|
19034
|
+
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroup",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19035
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidId' is set
|
|
19036
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
19037
|
+
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19038
|
+
* Overrides the assigned work plan for the specified agents
|
|
19039
|
+
*
|
|
19040
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19041
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
19042
|
+
* @param {String} bidGroupId The ID of the work plan bid group
|
|
19043
|
+
* @param {Object} opts Optional parameters
|
|
19044
|
+
* @param {Object} opts.body body
|
|
19045
|
+
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19046
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidId' is set
|
|
19047
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
|
|
19048
|
+
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18816
19049
|
* Update the requested management unit
|
|
18817
19050
|
*
|
|
18818
19051
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
@@ -18904,6 +19137,25 @@ if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the
|
|
|
18904
19137
|
* @param {Object} opts.body body
|
|
18905
19138
|
*/},{key:"patchWorkforcemanagementTimeoffrequest",value:function patchWorkforcemanagementTimeoffrequest(timeOffRequestId,opts){opts=opts||{};// verify the required parameter 'timeOffRequestId' is set
|
|
18906
19139
|
if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}','PATCH',{'timeOffRequestId':timeOffRequestId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19140
|
+
* Update work plan bid ranks for a user
|
|
19141
|
+
*
|
|
19142
|
+
* @param {String} userId The userId to whom the work plan bid ranks apply.
|
|
19143
|
+
* @param {Object} opts Optional parameters
|
|
19144
|
+
* @param {Object} opts.body body
|
|
19145
|
+
*/},{key:"patchWorkforcemanagementUserWorkplanbidranks",value:function patchWorkforcemanagementUserWorkplanbidranks(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
19146
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';}return this.apiClient.callApi('/api/v2/workforcemanagement/users/{userId}/workplanbidranks','PATCH',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19147
|
+
* Update bulk work plan bid ranks on users. Max 50 users can be updated at a time.
|
|
19148
|
+
*
|
|
19149
|
+
* @param {Array.<Object>} body Users
|
|
19150
|
+
*/},{key:"patchWorkforcemanagementUsersWorkplanbidranksBulk",value:function patchWorkforcemanagementUsersWorkplanbidranksBulk(body){// verify the required parameter 'body' is set
|
|
19151
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementUsersWorkplanbidranksBulk';}return this.apiClient.callApi('/api/v2/workforcemanagement/users/workplanbidranks/bulk','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19152
|
+
* Update an agent's work plan bidding preference
|
|
19153
|
+
*
|
|
19154
|
+
* @param {String} bidId The ID of the work plan bid
|
|
19155
|
+
* @param {Object} opts Optional parameters
|
|
19156
|
+
* @param {Object} opts.body body
|
|
19157
|
+
*/},{key:"patchWorkforcemanagementWorkplanbidPreferences",value:function patchWorkforcemanagementWorkplanbidPreferences(bidId,opts){opts=opts||{};// verify the required parameter 'bidId' is set
|
|
19158
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/workplanbids/{bidId}/preferences','PATCH',{'bidId':bidId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18907
19159
|
* Submit an adherence explanation for the current user
|
|
18908
19160
|
*
|
|
18909
19161
|
* @param {Object} body The request body
|
|
@@ -18965,6 +19217,21 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18965
19217
|
* @param {Object} opts Optional parameters
|
|
18966
19218
|
* @param {Object} opts.body body
|
|
18967
19219
|
*/},{key:"postWorkforcemanagementAgentschedulesMine",value:function postWorkforcemanagementAgentschedulesMine(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/agentschedules/mine','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19220
|
+
* Request a list of alternative shift offers for a given schedule
|
|
19221
|
+
*
|
|
19222
|
+
* @param {Object} body The request body
|
|
19223
|
+
*/},{key:"postWorkforcemanagementAlternativeshiftsOffersJobs",value:function postWorkforcemanagementAlternativeshiftsOffersJobs(body){// verify the required parameter 'body' is set
|
|
19224
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsOffersJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/offers/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19225
|
+
* Request a search of alternative shift offers for a given shift
|
|
19226
|
+
*
|
|
19227
|
+
* @param {Object} body The request body
|
|
19228
|
+
*/},{key:"postWorkforcemanagementAlternativeshiftsOffersSearchJobs",value:function postWorkforcemanagementAlternativeshiftsOffersSearchJobs(body){// verify the required parameter 'body' is set
|
|
19229
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsOffersSearchJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/offers/search/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19230
|
+
* Create my alternative shift trade using an existing offer's jobId
|
|
19231
|
+
*
|
|
19232
|
+
* @param {Object} body The request body
|
|
19233
|
+
*/},{key:"postWorkforcemanagementAlternativeshiftsTrades",value:function postWorkforcemanagementAlternativeshiftsTrades(body){// verify the required parameter 'body' is set
|
|
19234
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsTrades';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/trades','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18968
19235
|
* Create a new activity code
|
|
18969
19236
|
*
|
|
18970
19237
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
@@ -18976,7 +19243,6 @@ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required
|
|
|
18976
19243
|
* Triggers a job running the activity plan. The activity plan cannot be updated until the job completes
|
|
18977
19244
|
* @param {String} businessUnitId The ID of the business unit
|
|
18978
19245
|
* @param {String} activityPlanId The ID of the activity plan to run
|
|
18979
|
-
* postWorkforcemanagementBusinessunitActivityplanRunsJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18980
19246
|
*/},{key:"postWorkforcemanagementBusinessunitActivityplanRunsJobs",value:function postWorkforcemanagementBusinessunitActivityplanRunsJobs(businessUnitId,activityPlanId){// verify the required parameter 'businessUnitId' is set
|
|
18981
19247
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';}// verify the required parameter 'activityPlanId' is set
|
|
18982
19248
|
if(activityPlanId===undefined||activityPlanId===null){throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/runs/jobs','POST',{'businessUnitId':businessUnitId,'activityPlanId':activityPlanId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -18984,7 +19250,6 @@ if(activityPlanId===undefined||activityPlanId===null){throw'Missing the required
|
|
|
18984
19250
|
*
|
|
18985
19251
|
* @param {String} businessUnitId The ID of the business unit
|
|
18986
19252
|
* @param {Object} body body
|
|
18987
|
-
* postWorkforcemanagementBusinessunitActivityplans is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18988
19253
|
*/},{key:"postWorkforcemanagementBusinessunitActivityplans",value:function postWorkforcemanagementBusinessunitActivityplans(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
18989
19254
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';}// verify the required parameter 'body' is set
|
|
18990
19255
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -19007,6 +19272,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19007
19272
|
* @param {Object} opts.body body
|
|
19008
19273
|
*/},{key:"postWorkforcemanagementBusinessunitAgentschedulesSearch",value:function postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19009
19274
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync'],'forceDownloadService':opts['forceDownloadService']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19275
|
+
* List alternative shifts trades for a given management unit or agent
|
|
19276
|
+
*
|
|
19277
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19278
|
+
* @param {Object} body The request body
|
|
19279
|
+
* @param {Object} opts Optional parameters
|
|
19280
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
19281
|
+
*/},{key:"postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch",value:function postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19282
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';}// verify the required parameter 'body' is set
|
|
19283
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19010
19284
|
* Get intraday data for the given date for the requested planningGroupIds
|
|
19011
19285
|
*
|
|
19012
19286
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -19222,6 +19496,31 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19222
19496
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';}// verify the required parameter 'weekDateId' is set
|
|
19223
19497
|
if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';}// verify the required parameter 'body' is set
|
|
19224
19498
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/import/uploadurl','POST',{'businessUnitId':businessUnitId,'weekDateId':weekDateId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19499
|
+
* Copy a work plan bid
|
|
19500
|
+
*
|
|
19501
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19502
|
+
* @param {String} bidId The ID of the work plan bid to copy
|
|
19503
|
+
* @param {Object} opts Optional parameters
|
|
19504
|
+
* @param {Object} opts.body body
|
|
19505
|
+
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbidCopy",value:function postWorkforcemanagementBusinessunitWorkplanbidCopy(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19506
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';}// verify the required parameter 'bidId' is set
|
|
19507
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/copy','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19508
|
+
* Add a bid group in a given work plan bid
|
|
19509
|
+
*
|
|
19510
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19511
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
19512
|
+
* @param {Object} opts Optional parameters
|
|
19513
|
+
* @param {Object} opts.body body
|
|
19514
|
+
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbidGroups",value:function postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19515
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}// verify the required parameter 'bidId' is set
|
|
19516
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19517
|
+
* Create a new work plan bid
|
|
19518
|
+
*
|
|
19519
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19520
|
+
* @param {Object} opts Optional parameters
|
|
19521
|
+
* @param {Object} opts.body The work plan bid to be created
|
|
19522
|
+
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbids",value:function postWorkforcemanagementBusinessunitWorkplanbids(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19523
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19225
19524
|
* Add a new business unit
|
|
19226
19525
|
* It may take a minute or two for a new business unit to be available for api operations
|
|
19227
19526
|
* @param {Object} opts Optional parameters
|
|
@@ -19553,7 +19852,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
19553
19852
|
* </pre>
|
|
19554
19853
|
* </p>
|
|
19555
19854
|
* @module purecloud-platform-client-v2/index
|
|
19556
|
-
* @version
|
|
19855
|
+
* @version 202.0.0
|
|
19557
19856
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
19558
19857
|
* The ApiClient constructor.
|
|
19559
19858
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|