purecloud-platform-client-v2 199.0.0 → 201.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 +1565 -120
- package/dist/web-amd/purecloud-platform-client-v2.js +1565 -120
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +476 -127
- package/dist/web-cjs/purecloud-platform-client-v2.js +592 -159
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +862 -244
- 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 +3 -2
- 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 +10 -3
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +3 -2
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +146 -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 +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +149 -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 -26
- 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.3";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 201.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 201.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 201.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 201.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 201.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 201.0.0
|
|
3099
3121
|
*/ /**
|
|
3100
3122
|
* Constructs a new AuditApi.
|
|
3101
3123
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -3121,8 +3143,9 @@ if(transactionId===undefined||transactionId===null){throw'Missing the required p
|
|
|
3121
3143
|
* @param {String} opts.cursor Indicates where to resume query results (not required for first page)
|
|
3122
3144
|
* @param {Number} opts.pageSize Indicates maximum number of results in response. Default page size is 25 results. The maximum page size is 500. (default to 25)
|
|
3123
3145
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
3146
|
+
* @param {Boolean} opts.allowRedirect Result sets with large amounts of data will respond with a download url
|
|
3124
3147
|
*/},{key:"getAuditsQueryTransactionIdResults",value:function getAuditsQueryTransactionIdResults(transactionId,opts){opts=opts||{};// verify the required parameter 'transactionId' is set
|
|
3125
|
-
if(transactionId===undefined||transactionId===null){throw'Missing the required parameter "transactionId" when calling getAuditsQueryTransactionIdResults';}return this.apiClient.callApi('/api/v2/audits/query/{transactionId}/results','GET',{'transactionId':transactionId},{'cursor':opts['cursor'],'pageSize':opts['pageSize'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3148
|
+
if(transactionId===undefined||transactionId===null){throw'Missing the required parameter "transactionId" when calling getAuditsQueryTransactionIdResults';}return this.apiClient.callApi('/api/v2/audits/query/{transactionId}/results','GET',{'transactionId':transactionId},{'cursor':opts['cursor'],'pageSize':opts['pageSize'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'allowRedirect':opts['allowRedirect']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3126
3149
|
* Create audit query execution
|
|
3127
3150
|
* Use /api/v2/audits/query/servicemapping endpoint for a list of valid values
|
|
3128
3151
|
* @param {Object} body query
|
|
@@ -3144,7 +3167,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3144
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(){/**
|
|
3145
3168
|
* Authorization service.
|
|
3146
3169
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
3147
|
-
* @version
|
|
3170
|
+
* @version 201.0.0
|
|
3148
3171
|
*/ /**
|
|
3149
3172
|
* Constructs a new AuthorizationApi.
|
|
3150
3173
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -3459,7 +3482,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
|
|
|
3459
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(){/**
|
|
3460
3483
|
* Billing service.
|
|
3461
3484
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
3462
|
-
* @version
|
|
3485
|
+
* @version 201.0.0
|
|
3463
3486
|
*/ /**
|
|
3464
3487
|
* Constructs a new BillingApi.
|
|
3465
3488
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -3483,7 +3506,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
3483
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(){/**
|
|
3484
3507
|
* CarrierServices service.
|
|
3485
3508
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
3486
|
-
* @version
|
|
3509
|
+
* @version 201.0.0
|
|
3487
3510
|
*/ /**
|
|
3488
3511
|
* Constructs a new CarrierServicesApi.
|
|
3489
3512
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -3503,7 +3526,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
3503
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(){/**
|
|
3504
3527
|
* Chat service.
|
|
3505
3528
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
3506
|
-
* @version
|
|
3529
|
+
* @version 201.0.0
|
|
3507
3530
|
*/ /**
|
|
3508
3531
|
* Constructs a new ChatApi.
|
|
3509
3532
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -3728,7 +3751,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3728
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(){/**
|
|
3729
3752
|
* Coaching service.
|
|
3730
3753
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
3731
|
-
* @version
|
|
3754
|
+
* @version 201.0.0
|
|
3732
3755
|
*/ /**
|
|
3733
3756
|
* Constructs a new CoachingApi.
|
|
3734
3757
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -3881,7 +3904,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3881
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(){/**
|
|
3882
3905
|
* ContentManagement service.
|
|
3883
3906
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
3884
|
-
* @version
|
|
3907
|
+
* @version 201.0.0
|
|
3885
3908
|
*/ /**
|
|
3886
3909
|
* Constructs a new ContentManagementApi.
|
|
3887
3910
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -4164,7 +4187,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
|
|
|
4164
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(){/**
|
|
4165
4188
|
* Conversations service.
|
|
4166
4189
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
4167
|
-
* @version
|
|
4190
|
+
* @version 201.0.0
|
|
4168
4191
|
*/ /**
|
|
4169
4192
|
* Constructs a new ConversationsApi.
|
|
4170
4193
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -5886,7 +5909,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
5886
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(){/**
|
|
5887
5910
|
* DataExtensions service.
|
|
5888
5911
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
5889
|
-
* @version
|
|
5912
|
+
* @version 201.0.0
|
|
5890
5913
|
*/ /**
|
|
5891
5914
|
* Constructs a new DataExtensionsApi.
|
|
5892
5915
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -5907,7 +5930,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
5907
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(){/**
|
|
5908
5931
|
* Downloads service.
|
|
5909
5932
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
5910
|
-
* @version
|
|
5933
|
+
* @version 201.0.0
|
|
5911
5934
|
*/ /**
|
|
5912
5935
|
* Constructs a new DownloadsApi.
|
|
5913
5936
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -5926,7 +5949,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
5926
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(){/**
|
|
5927
5950
|
* Emails service.
|
|
5928
5951
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
5929
|
-
* @version
|
|
5952
|
+
* @version 201.0.0
|
|
5930
5953
|
*/ /**
|
|
5931
5954
|
* Constructs a new EmailsApi.
|
|
5932
5955
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -5944,7 +5967,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
5944
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(){/**
|
|
5945
5968
|
* EmployeeEngagement service.
|
|
5946
5969
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
5947
|
-
* @version
|
|
5970
|
+
* @version 201.0.0
|
|
5948
5971
|
*/ /**
|
|
5949
5972
|
* Constructs a new EmployeeEngagementApi.
|
|
5950
5973
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -5982,7 +6005,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5982
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(){/**
|
|
5983
6006
|
* Events service.
|
|
5984
6007
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
5985
|
-
* @version
|
|
6008
|
+
* @version 201.0.0
|
|
5986
6009
|
*/ /**
|
|
5987
6010
|
* Constructs a new EventsApi.
|
|
5988
6011
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -6007,7 +6030,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6007
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(){/**
|
|
6008
6031
|
* ExternalContacts service.
|
|
6009
6032
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
6010
|
-
* @version
|
|
6033
|
+
* @version 201.0.0
|
|
6011
6034
|
*/ /**
|
|
6012
6035
|
* Constructs a new ExternalContactsApi.
|
|
6013
6036
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -6464,7 +6487,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
|
|
|
6464
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(){/**
|
|
6465
6488
|
* Fax service.
|
|
6466
6489
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
6467
|
-
* @version
|
|
6490
|
+
* @version 201.0.0
|
|
6468
6491
|
*/ /**
|
|
6469
6492
|
* Constructs a new FaxApi.
|
|
6470
6493
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -6513,7 +6536,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6513
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(){/**
|
|
6514
6537
|
* Flows service.
|
|
6515
6538
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
6516
|
-
* @version
|
|
6539
|
+
* @version 201.0.0
|
|
6517
6540
|
*/ /**
|
|
6518
6541
|
* Constructs a new FlowsApi.
|
|
6519
6542
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -6561,7 +6584,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6561
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(){/**
|
|
6562
6585
|
* Gamification service.
|
|
6563
6586
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
6564
|
-
* @version
|
|
6587
|
+
* @version 201.0.0
|
|
6565
6588
|
*/ /**
|
|
6566
6589
|
* Constructs a new GamificationApi.
|
|
6567
6590
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -7101,7 +7124,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7101
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(){/**
|
|
7102
7125
|
* GeneralDataProtectionRegulation service.
|
|
7103
7126
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
7104
|
-
* @version
|
|
7127
|
+
* @version 201.0.0
|
|
7105
7128
|
*/ /**
|
|
7106
7129
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
7107
7130
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -7136,7 +7159,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
7136
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(){/**
|
|
7137
7160
|
* Geolocation service.
|
|
7138
7161
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
7139
|
-
* @version
|
|
7162
|
+
* @version 201.0.0
|
|
7140
7163
|
*/ /**
|
|
7141
7164
|
* Constructs a new GeolocationApi.
|
|
7142
7165
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -7170,7 +7193,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
7170
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(){/**
|
|
7171
7194
|
* Greetings service.
|
|
7172
7195
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
7173
|
-
* @version
|
|
7196
|
+
* @version 201.0.0
|
|
7174
7197
|
*/ /**
|
|
7175
7198
|
* Constructs a new GreetingsApi.
|
|
7176
7199
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -7277,7 +7300,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
7277
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(){/**
|
|
7278
7301
|
* Groups service.
|
|
7279
7302
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
7280
|
-
* @version
|
|
7303
|
+
* @version 201.0.0
|
|
7281
7304
|
*/ /**
|
|
7282
7305
|
* Constructs a new GroupsApi.
|
|
7283
7306
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -7410,7 +7433,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
7410
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(){/**
|
|
7411
7434
|
* IdentityProvider service.
|
|
7412
7435
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
7413
|
-
* @version
|
|
7436
|
+
* @version 201.0.0
|
|
7414
7437
|
*/ /**
|
|
7415
7438
|
* Constructs a new IdentityProviderApi.
|
|
7416
7439
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -7566,7 +7589,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7566
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(){/**
|
|
7567
7590
|
* InfrastructureAsCode service.
|
|
7568
7591
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
7569
|
-
* @version
|
|
7592
|
+
* @version 201.0.0
|
|
7570
7593
|
*/ /**
|
|
7571
7594
|
* Constructs a new InfrastructureAsCodeApi.
|
|
7572
7595
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -7620,7 +7643,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
7620
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(){/**
|
|
7621
7644
|
* Integrations service.
|
|
7622
7645
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
7623
|
-
* @version
|
|
7646
|
+
* @version 201.0.0
|
|
7624
7647
|
*/ /**
|
|
7625
7648
|
* Constructs a new IntegrationsApi.
|
|
7626
7649
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -7768,6 +7791,9 @@ if(fileName===undefined||fileName===null){throw'Missing the required parameter "
|
|
|
7768
7791
|
* @param {Object} opts.status Indicates the validity of the certificate in question.
|
|
7769
7792
|
* @param {Object} opts.type Indicates the type of the certificate.
|
|
7770
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']);}/**
|
|
7771
7797
|
* Retrieves all action drafts associated with the filters passed in via query param.
|
|
7772
7798
|
*
|
|
7773
7799
|
* @param {Object} opts Optional parameters
|
|
@@ -8231,7 +8257,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
|
|
|
8231
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(){/**
|
|
8232
8258
|
* Journey service.
|
|
8233
8259
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
8234
|
-
* @version
|
|
8260
|
+
* @version 201.0.0
|
|
8235
8261
|
*/ /**
|
|
8236
8262
|
* Constructs a new JourneyApi.
|
|
8237
8263
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -8476,8 +8502,13 @@ if(viewId===undefined||viewId===null){throw'Missing the required parameter "view
|
|
|
8476
8502
|
if(journeyVersionId===undefined||journeyVersionId===null){throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobsLatest';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/latest','GET',{'viewId':viewId,'journeyVersionId':journeyVersionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8477
8503
|
* Get a list of Journey Views
|
|
8478
8504
|
*
|
|
8505
|
+
* @param {Object} opts Optional parameters
|
|
8506
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
8507
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
8508
|
+
* @param {String} opts.nameOrCreatedBy Journey View Name or Created By
|
|
8509
|
+
* @param {Object} opts.expand Parameter to request additional data to return in Journey payload
|
|
8479
8510
|
* getJourneyViews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
8480
|
-
*/},{key:"getJourneyViews",value:function getJourneyViews(){return this.apiClient.callApi('/api/v2/journey/views','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8511
|
+
*/},{key:"getJourneyViews",value:function getJourneyViews(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'nameOrCreatedBy':opts['nameOrCreatedBy'],'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8481
8512
|
* Get an Event Definition
|
|
8482
8513
|
*
|
|
8483
8514
|
* @param {String} eventDefinitionId Event Definition ID
|
|
@@ -8635,7 +8666,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8635
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(){/**
|
|
8636
8667
|
* Knowledge service.
|
|
8637
8668
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
8638
|
-
* @version
|
|
8669
|
+
* @version 201.0.0
|
|
8639
8670
|
*/ /**
|
|
8640
8671
|
* Constructs a new KnowledgeApi.
|
|
8641
8672
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -9548,7 +9579,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9548
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(){/**
|
|
9549
9580
|
* LanguageUnderstanding service.
|
|
9550
9581
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
9551
|
-
* @version
|
|
9582
|
+
* @version 201.0.0
|
|
9552
9583
|
*/ /**
|
|
9553
9584
|
* Constructs a new LanguageUnderstandingApi.
|
|
9554
9585
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -9808,7 +9839,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
|
|
|
9808
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(){/**
|
|
9809
9840
|
* Languages service.
|
|
9810
9841
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
9811
|
-
* @version
|
|
9842
|
+
* @version 201.0.0
|
|
9812
9843
|
*/ /**
|
|
9813
9844
|
* Constructs a new LanguagesApi.
|
|
9814
9845
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -9863,7 +9894,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
9863
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(){/**
|
|
9864
9895
|
* Learning service.
|
|
9865
9896
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
9866
|
-
* @version
|
|
9897
|
+
* @version 201.0.0
|
|
9867
9898
|
*/ /**
|
|
9868
9899
|
* Constructs a new LearningApi.
|
|
9869
9900
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -9914,7 +9945,7 @@ if(stepId===undefined||stepId===null){throw'Missing the required parameter "step
|
|
|
9914
9945
|
* @param {Object} opts.sortOrder Specifies result set sort order; if not specified, default sort order is descending (Desc) (default to Desc)
|
|
9915
9946
|
* @param {Object} opts.sortBy Specifies which field to sort the results by, default sort is by recommendedCompletionDate
|
|
9916
9947
|
* @param {Array.<String>} opts.userId Specifies the list of user IDs to be queried, up to 100 user IDs.
|
|
9917
|
-
* @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
|
|
9918
9949
|
* @param {Array.<String>} opts.states Specifies the assignment states to filter by
|
|
9919
9950
|
* @param {Array.<String>} opts.expand Specifies the expand option for returning additional information
|
|
9920
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']);}/**
|
|
@@ -9932,7 +9963,7 @@ if(stepId===undefined||stepId===null){throw'Missing the required parameter "step
|
|
|
9932
9963
|
* @param {Number} opts.maxPercentageScore The maximum assessment score for an assignment (completed with assessment) to be included in the results (inclusive)
|
|
9933
9964
|
* @param {Object} opts.sortOrder Specifies result set sort order; if not specified, default sort order is descending (Desc) (default to Desc)
|
|
9934
9965
|
* @param {Object} opts.sortBy Specifies which field to sort the results by, default sort is by recommendedCompletionDate
|
|
9935
|
-
* @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
|
|
9936
9967
|
* @param {Array.<String>} opts.states Specifies the assignment states to filter by
|
|
9937
9968
|
* @param {Array.<String>} opts.expand Specifies the expand option for returning additional information
|
|
9938
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']);}/**
|
|
@@ -9973,7 +10004,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
|
|
|
9973
10004
|
*
|
|
9974
10005
|
* @param {Object} opts Optional parameters
|
|
9975
10006
|
* @param {Boolean} opts.isArchived Archive status (default to false)
|
|
9976
|
-
* @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
|
|
9977
10008
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
9978
10009
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
9979
10010
|
* @param {Object} opts.sortOrder Sort order (default to ascending)
|
|
@@ -10134,7 +10165,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
|
|
|
10134
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(){/**
|
|
10135
10166
|
* License service.
|
|
10136
10167
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
10137
|
-
* @version
|
|
10168
|
+
* @version 201.0.0
|
|
10138
10169
|
*/ /**
|
|
10139
10170
|
* Constructs a new LicenseApi.
|
|
10140
10171
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -10188,7 +10219,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
10188
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(){/**
|
|
10189
10220
|
* Locations service.
|
|
10190
10221
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
10191
|
-
* @version
|
|
10222
|
+
* @version 201.0.0
|
|
10192
10223
|
*/ /**
|
|
10193
10224
|
* Constructs a new LocationsApi.
|
|
10194
10225
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -10247,7 +10278,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10247
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(){/**
|
|
10248
10279
|
* LogCapture service.
|
|
10249
10280
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
10250
|
-
* @version
|
|
10281
|
+
* @version 201.0.0
|
|
10251
10282
|
*/ /**
|
|
10252
10283
|
* Constructs a new LogCaptureApi.
|
|
10253
10284
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -10297,7 +10328,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
10297
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(){/**
|
|
10298
10329
|
* Messaging service.
|
|
10299
10330
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
10300
|
-
* @version
|
|
10331
|
+
* @version 201.0.0
|
|
10301
10332
|
*/ /**
|
|
10302
10333
|
* Constructs a new MessagingApi.
|
|
10303
10334
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -10387,7 +10418,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10387
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(){/**
|
|
10388
10419
|
* MobileDevices service.
|
|
10389
10420
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
10390
|
-
* @version
|
|
10421
|
+
* @version 201.0.0
|
|
10391
10422
|
*/ /**
|
|
10392
10423
|
* Constructs a new MobileDevicesApi.
|
|
10393
10424
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -10426,7 +10457,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10426
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(){/**
|
|
10427
10458
|
* Notifications service.
|
|
10428
10459
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
10429
|
-
* @version
|
|
10460
|
+
* @version 201.0.0
|
|
10430
10461
|
*/ /**
|
|
10431
10462
|
* Constructs a new NotificationsApi.
|
|
10432
10463
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -10483,7 +10514,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
|
|
|
10483
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(){/**
|
|
10484
10515
|
* OAuth service.
|
|
10485
10516
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
10486
|
-
* @version
|
|
10517
|
+
* @version 201.0.0
|
|
10487
10518
|
*/ /**
|
|
10488
10519
|
* Constructs a new OAuthApi.
|
|
10489
10520
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -10568,7 +10599,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
10568
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(){/**
|
|
10569
10600
|
* Objects service.
|
|
10570
10601
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
10571
|
-
* @version
|
|
10602
|
+
* @version 201.0.0
|
|
10572
10603
|
*/ /**
|
|
10573
10604
|
* Constructs a new ObjectsApi.
|
|
10574
10605
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -10639,7 +10670,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
10639
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(){/**
|
|
10640
10671
|
* OperationalEvents service.
|
|
10641
10672
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
10642
|
-
* @version
|
|
10673
|
+
* @version 201.0.0
|
|
10643
10674
|
*/ /**
|
|
10644
10675
|
* Constructs a new OperationalEventsApi.
|
|
10645
10676
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -10657,7 +10688,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
10657
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(){/**
|
|
10658
10689
|
* Organization service.
|
|
10659
10690
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
10660
|
-
* @version
|
|
10691
|
+
* @version 201.0.0
|
|
10661
10692
|
*/ /**
|
|
10662
10693
|
* Constructs a new OrganizationApi.
|
|
10663
10694
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -10707,11 +10738,31 @@ if(requestId===undefined||requestId===null){throw'Missing the required parameter
|
|
|
10707
10738
|
* @param {String} namespaceName The namespace to fetch limits for
|
|
10708
10739
|
*/},{key:"getOrganizationsLimitsNamespace",value:function getOrganizationsLimitsNamespace(namespaceName){// verify the required parameter 'namespaceName' is set
|
|
10709
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']);}/**
|
|
10710
10750
|
* Get the default limits in a namespace for an organization
|
|
10711
10751
|
*
|
|
10712
10752
|
* @param {String} namespaceName The namespace to fetch defaults limits for
|
|
10713
10753
|
*/},{key:"getOrganizationsLimitsNamespaceDefaults",value:function getOrganizationsLimitsNamespaceDefaults(namespaceName){// verify the required parameter 'namespaceName' is set
|
|
10714
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']);}/**
|
|
10715
10766
|
* Get the available limit namespaces
|
|
10716
10767
|
*
|
|
10717
10768
|
* @param {Object} opts Optional parameters
|
|
@@ -10762,7 +10813,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10762
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(){/**
|
|
10763
10814
|
* OrganizationAuthorization service.
|
|
10764
10815
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
10765
|
-
* @version
|
|
10816
|
+
* @version 201.0.0
|
|
10766
10817
|
*/ /**
|
|
10767
10818
|
* Constructs a new OrganizationAuthorizationApi.
|
|
10768
10819
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -11085,7 +11136,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
11085
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(){/**
|
|
11086
11137
|
* Outbound service.
|
|
11087
11138
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
11088
|
-
* @version
|
|
11139
|
+
* @version 201.0.0
|
|
11089
11140
|
*/ /**
|
|
11090
11141
|
* Constructs a new OutboundApi.
|
|
11091
11142
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -12152,7 +12203,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12152
12203
|
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(){/**
|
|
12153
12204
|
* Presence service.
|
|
12154
12205
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
12155
|
-
* @version
|
|
12206
|
+
* @version 201.0.0
|
|
12156
12207
|
*/ /**
|
|
12157
12208
|
* Constructs a new PresenceApi.
|
|
12158
12209
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -12325,7 +12376,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12325
12376
|
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(){/**
|
|
12326
12377
|
* ProcessAutomation service.
|
|
12327
12378
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
12328
|
-
* @version
|
|
12379
|
+
* @version 201.0.0
|
|
12329
12380
|
*/ /**
|
|
12330
12381
|
* Constructs a new ProcessAutomationApi.
|
|
12331
12382
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -12388,7 +12439,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
|
|
|
12388
12439
|
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(){/**
|
|
12389
12440
|
* Quality service.
|
|
12390
12441
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
12391
|
-
* @version
|
|
12442
|
+
* @version 201.0.0
|
|
12392
12443
|
*/ /**
|
|
12393
12444
|
* Constructs a new QualityApi.
|
|
12394
12445
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -12865,7 +12916,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
12865
12916
|
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(){/**
|
|
12866
12917
|
* Recording service.
|
|
12867
12918
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
12868
|
-
* @version
|
|
12919
|
+
* @version 201.0.0
|
|
12869
12920
|
*/ /**
|
|
12870
12921
|
* Constructs a new RecordingApi.
|
|
12871
12922
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -13128,10 +13179,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13128
13179
|
if(policyId===undefined||policyId===null){throw'Missing the required parameter "policyId" when calling patchRecordingMediaretentionpolicy';}// verify the required parameter 'body' is set
|
|
13129
13180
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchRecordingMediaretentionpolicy';}return this.apiClient.callApi('/api/v2/recording/mediaretentionpolicies/{policyId}','PATCH',{'policyId':policyId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13130
13181
|
* Update a screen recording session
|
|
13131
|
-
*
|
|
13182
|
+
* This API is deprecated and the functionality to stop screen recording will be no longer supported.
|
|
13132
13183
|
* @param {String} recordingSessionId Screen recording session ID
|
|
13133
13184
|
* @param {Object} opts Optional parameters
|
|
13134
13185
|
* @param {Object} opts.body
|
|
13186
|
+
* @deprecated
|
|
13135
13187
|
*/},{key:"patchRecordingsScreensession",value:function patchRecordingsScreensession(recordingSessionId,opts){opts=opts||{};// verify the required parameter 'recordingSessionId' is set
|
|
13136
13188
|
if(recordingSessionId===undefined||recordingSessionId===null){throw'Missing the required parameter "recordingSessionId" when calling patchRecordingsScreensession';}return this.apiClient.callApi('/api/v2/recordings/screensessions/{recordingSessionId}','PATCH',{'recordingSessionId':recordingSessionId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13137
13189
|
* Create annotation
|
|
@@ -13276,7 +13328,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13276
13328
|
*/},{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(){/**
|
|
13277
13329
|
* ResponseManagement service.
|
|
13278
13330
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
13279
|
-
* @version
|
|
13331
|
+
* @version 201.0.0
|
|
13280
13332
|
*/ /**
|
|
13281
13333
|
* Constructs a new ResponseManagementApi.
|
|
13282
13334
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -13397,7 +13449,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
|
|
|
13397
13449
|
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(){/**
|
|
13398
13450
|
* Routing service.
|
|
13399
13451
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
13400
|
-
* @version
|
|
13452
|
+
* @version 201.0.0
|
|
13401
13453
|
*/ /**
|
|
13402
13454
|
* Constructs a new RoutingApi.
|
|
13403
13455
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -13410,6 +13462,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13410
13462
|
* @param {String} assessmentId Benefit Assessment ID
|
|
13411
13463
|
*/return _createClass(RoutingApi,[{key:"deleteRoutingAssessment",value:function deleteRoutingAssessment(assessmentId){// verify the required parameter 'assessmentId' is set
|
|
13412
13464
|
if(assessmentId===undefined||assessmentId===null){throw'Missing the required parameter "assessmentId" when calling deleteRoutingAssessment';}return this.apiClient.callApi('/api/v2/routing/assessments/{assessmentId}','DELETE',{'assessmentId':assessmentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13465
|
+
* Delete the user's Direct Routing Backup settings and revert to the Direct Routing Queue default.
|
|
13466
|
+
*
|
|
13467
|
+
*/},{key:"deleteRoutingDirectroutingbackupSettingsMe",value:function deleteRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi('/api/v2/routing/directroutingbackup/settings/me','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13413
13468
|
* Delete a domain
|
|
13414
13469
|
*
|
|
13415
13470
|
* @param {String} domainId domain ID
|
|
@@ -13489,6 +13544,11 @@ if(addressId===undefined||addressId===null){throw'Missing the required parameter
|
|
|
13489
13544
|
* @param {String} addressId Address ID
|
|
13490
13545
|
*/},{key:"deleteRoutingSmsPhonenumber",value:function deleteRoutingSmsPhonenumber(addressId){// verify the required parameter 'addressId' is set
|
|
13491
13546
|
if(addressId===undefined||addressId===null){throw'Missing the required parameter "addressId" when calling deleteRoutingSmsPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/{addressId}','DELETE',{'addressId':addressId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13547
|
+
* Delete the user's Direct Routing Backup settings and revert to the Direct Routing Queue default.
|
|
13548
|
+
*
|
|
13549
|
+
* @param {String} userId User ID
|
|
13550
|
+
*/},{key:"deleteRoutingUserDirectroutingbackupSettings",value:function deleteRoutingUserDirectroutingbackupSettings(userId){// verify the required parameter 'userId' is set
|
|
13551
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteRoutingUserDirectroutingbackupSettings';}return this.apiClient.callApi('/api/v2/routing/users/{userId}/directroutingbackup/settings','DELETE',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13492
13552
|
* Delete the user's max utilization settings and revert to the organization-wide default.
|
|
13493
13553
|
*
|
|
13494
13554
|
* @param {String} userId User ID
|
|
@@ -13558,6 +13618,9 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
13558
13618
|
* Get available media types
|
|
13559
13619
|
*
|
|
13560
13620
|
*/},{key:"getRoutingAvailablemediatypes",value:function getRoutingAvailablemediatypes(){return this.apiClient.callApi('/api/v2/routing/availablemediatypes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13621
|
+
* Get the user's Direct Routing Backup settings.
|
|
13622
|
+
*
|
|
13623
|
+
*/},{key:"getRoutingDirectroutingbackupSettingsMe",value:function getRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi('/api/v2/routing/directroutingbackup/settings/me','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13561
13624
|
* Get domain
|
|
13562
13625
|
*
|
|
13563
13626
|
* @param {String} domainId domain ID
|
|
@@ -13881,6 +13944,11 @@ if(addressId===undefined||addressId===null){throw'Missing the required parameter
|
|
|
13881
13944
|
* @param {String} opts.integrationId Filter on the Genesys Cloud integration id to which the phone number belongs to
|
|
13882
13945
|
* @param {String} opts.supportedContentId Filter based on the supported content ID
|
|
13883
13946
|
*/},{key:"getRoutingSmsPhonenumbers",value:function getRoutingSmsPhonenumbers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers','GET',{},{'phoneNumber':opts['phoneNumber'],'phoneNumberType':this.apiClient.buildCollectionParam(opts['phoneNumberType'],'multi'),'phoneNumberStatus':this.apiClient.buildCollectionParam(opts['phoneNumberStatus'],'multi'),'countryCode':this.apiClient.buildCollectionParam(opts['countryCode'],'multi'),'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'language':opts['language'],'integration.id':opts['integrationId'],'supportedContent.id':opts['supportedContentId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13947
|
+
* Get the user's Direct Routing Backup settings.
|
|
13948
|
+
*
|
|
13949
|
+
* @param {String} userId User ID
|
|
13950
|
+
*/},{key:"getRoutingUserDirectroutingbackupSettings",value:function getRoutingUserDirectroutingbackupSettings(userId){// verify the required parameter 'userId' is set
|
|
13951
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getRoutingUserDirectroutingbackupSettings';}return this.apiClient.callApi('/api/v2/routing/users/{userId}/directroutingbackup/settings','GET',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13884
13952
|
* Get the user's max utilization settings. If not configured, the organization-wide default is returned.
|
|
13885
13953
|
*
|
|
13886
13954
|
* @param {String} userId User ID
|
|
@@ -14277,6 +14345,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14277
14345
|
*/},{key:"postUserRoutingskills",value:function postUserRoutingskills(userId,body){// verify the required parameter 'userId' is set
|
|
14278
14346
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postUserRoutingskills';}// verify the required parameter 'body' is set
|
|
14279
14347
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUserRoutingskills';}return this.apiClient.callApi('/api/v2/users/{userId}/routingskills','POST',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14348
|
+
* Update the user's Direct Routing Backup settings.
|
|
14349
|
+
*
|
|
14350
|
+
* @param {Object} body directRoutingBackup
|
|
14351
|
+
*/},{key:"putRoutingDirectroutingbackupSettingsMe",value:function putRoutingDirectroutingbackupSettingsMe(body){// verify the required parameter 'body' is set
|
|
14352
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingDirectroutingbackupSettingsMe';}return this.apiClient.callApi('/api/v2/routing/directroutingbackup/settings/me','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14280
14353
|
* Update a route
|
|
14281
14354
|
*
|
|
14282
14355
|
* @param {String} domainName email domain
|
|
@@ -14322,6 +14395,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14322
14395
|
*/},{key:"putRoutingSmsPhonenumber",value:function putRoutingSmsPhonenumber(addressId,body){// verify the required parameter 'addressId' is set
|
|
14323
14396
|
if(addressId===undefined||addressId===null){throw'Missing the required parameter "addressId" when calling putRoutingSmsPhonenumber';}// verify the required parameter 'body' is set
|
|
14324
14397
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingSmsPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/{addressId}','PUT',{'addressId':addressId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14398
|
+
* Update the user's Direct Routing Backup settings.
|
|
14399
|
+
*
|
|
14400
|
+
* @param {String} userId User ID
|
|
14401
|
+
* @param {Object} body directRoutingBackup
|
|
14402
|
+
*/},{key:"putRoutingUserDirectroutingbackupSettings",value:function putRoutingUserDirectroutingbackupSettings(userId,body){// verify the required parameter 'userId' is set
|
|
14403
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';}// verify the required parameter 'body' is set
|
|
14404
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';}return this.apiClient.callApi('/api/v2/routing/users/{userId}/directroutingbackup/settings','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14325
14405
|
* Update the user's max utilization settings. Include only those media types requiring custom configuration.
|
|
14326
14406
|
*
|
|
14327
14407
|
* @param {String} userId User ID
|
|
@@ -14366,7 +14446,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14366
14446
|
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(){/**
|
|
14367
14447
|
* SCIM service.
|
|
14368
14448
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
14369
|
-
* @version
|
|
14449
|
+
* @version 201.0.0
|
|
14370
14450
|
*/ /**
|
|
14371
14451
|
* Constructs a new SCIMApi.
|
|
14372
14452
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -14591,7 +14671,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14591
14671
|
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(){/**
|
|
14592
14672
|
* ScreenRecording service.
|
|
14593
14673
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
14594
|
-
* @version
|
|
14674
|
+
* @version 201.0.0
|
|
14595
14675
|
*/ /**
|
|
14596
14676
|
* Constructs a new ScreenRecordingApi.
|
|
14597
14677
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -14606,7 +14686,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14606
14686
|
*/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(){/**
|
|
14607
14687
|
* Scripts service.
|
|
14608
14688
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
14609
|
-
* @version
|
|
14689
|
+
* @version 201.0.0
|
|
14610
14690
|
*/ /**
|
|
14611
14691
|
* Constructs a new ScriptsApi.
|
|
14612
14692
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -14742,7 +14822,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
14742
14822
|
*/},{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(){/**
|
|
14743
14823
|
* Search service.
|
|
14744
14824
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
14745
|
-
* @version
|
|
14825
|
+
* @version 201.0.0
|
|
14746
14826
|
*/ /**
|
|
14747
14827
|
* Constructs a new SearchApi.
|
|
14748
14828
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -14902,7 +14982,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14902
14982
|
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(){/**
|
|
14903
14983
|
* Settings service.
|
|
14904
14984
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
14905
|
-
* @version
|
|
14985
|
+
* @version 201.0.0
|
|
14906
14986
|
*/ /**
|
|
14907
14987
|
* Constructs a new SettingsApi.
|
|
14908
14988
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -14954,7 +15034,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
14954
15034
|
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(){/**
|
|
14955
15035
|
* SpeechTextAnalytics service.
|
|
14956
15036
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
14957
|
-
* @version
|
|
15037
|
+
* @version 201.0.0
|
|
14958
15038
|
*/ /**
|
|
14959
15039
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
14960
15040
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -15238,7 +15318,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
15238
15318
|
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(){/**
|
|
15239
15319
|
* Stations service.
|
|
15240
15320
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
15241
|
-
* @version
|
|
15321
|
+
* @version 201.0.0
|
|
15242
15322
|
*/ /**
|
|
15243
15323
|
* Constructs a new StationsApi.
|
|
15244
15324
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -15270,7 +15350,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
15270
15350
|
*/},{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(){/**
|
|
15271
15351
|
* Suggest service.
|
|
15272
15352
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
15273
|
-
* @version
|
|
15353
|
+
* @version 201.0.0
|
|
15274
15354
|
*/ /**
|
|
15275
15355
|
* Constructs a new SuggestApi.
|
|
15276
15356
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -15310,7 +15390,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15310
15390
|
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(){/**
|
|
15311
15391
|
* TaskManagement service.
|
|
15312
15392
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
15313
|
-
* @version
|
|
15393
|
+
* @version 201.0.0
|
|
15314
15394
|
*/ /**
|
|
15315
15395
|
* Constructs a new TaskManagementApi.
|
|
15316
15396
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -15553,24 +15633,24 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15553
15633
|
* Update the attributes of a worktype
|
|
15554
15634
|
*
|
|
15555
15635
|
* @param {String} worktypeId Worktype id
|
|
15556
|
-
* @param {Object}
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
if(
|
|
15636
|
+
* @param {Object} body Worktype
|
|
15637
|
+
*/},{key:"patchTaskmanagementWorktype",value:function patchTaskmanagementWorktype(worktypeId,body){// verify the required parameter 'worktypeId' is set
|
|
15638
|
+
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';}// verify the required parameter 'body' is set
|
|
15639
|
+
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']);}/**
|
|
15560
15640
|
* Update the attributes of a status
|
|
15561
15641
|
*
|
|
15562
15642
|
* @param {String} worktypeId Worktype id
|
|
15563
15643
|
* @param {String} statusId Status id
|
|
15564
|
-
* @param {Object}
|
|
15565
|
-
|
|
15566
|
-
*/},{key:"patchTaskmanagementWorktypeStatus",value:function patchTaskmanagementWorktypeStatus(worktypeId,statusId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
15644
|
+
* @param {Object} body Status
|
|
15645
|
+
*/},{key:"patchTaskmanagementWorktypeStatus",value:function patchTaskmanagementWorktypeStatus(worktypeId,statusId,body){// verify the required parameter 'worktypeId' is set
|
|
15567
15646
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
|
|
15568
|
-
if(statusId===undefined||statusId===null){throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';}
|
|
15647
|
+
if(statusId===undefined||statusId===null){throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';}// verify the required parameter 'body' is set
|
|
15648
|
+
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']);}/**
|
|
15569
15649
|
* Create a workbin
|
|
15570
15650
|
*
|
|
15571
|
-
* @param {Object}
|
|
15572
|
-
|
|
15573
|
-
|
|
15651
|
+
* @param {Object} body Workbin
|
|
15652
|
+
*/},{key:"postTaskmanagementWorkbins",value:function postTaskmanagementWorkbins(body){// verify the required parameter 'body' is set
|
|
15653
|
+
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']);}/**
|
|
15574
15654
|
* Query for workbins
|
|
15575
15655
|
*
|
|
15576
15656
|
* @param {Object} body QueryPostRequest
|
|
@@ -15617,15 +15697,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15617
15697
|
* Add a status to a worktype
|
|
15618
15698
|
*
|
|
15619
15699
|
* @param {String} worktypeId Worktype id
|
|
15620
|
-
* @param {Object}
|
|
15621
|
-
|
|
15622
|
-
|
|
15623
|
-
if(
|
|
15700
|
+
* @param {Object} body Status
|
|
15701
|
+
*/},{key:"postTaskmanagementWorktypeStatuses",value:function postTaskmanagementWorktypeStatuses(worktypeId,body){// verify the required parameter 'worktypeId' is set
|
|
15702
|
+
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';}// verify the required parameter 'body' is set
|
|
15703
|
+
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']);}/**
|
|
15624
15704
|
* Create a worktype
|
|
15625
15705
|
*
|
|
15626
|
-
* @param {Object}
|
|
15627
|
-
|
|
15628
|
-
|
|
15706
|
+
* @param {Object} body Worktype
|
|
15707
|
+
*/},{key:"postTaskmanagementWorktypes",value:function postTaskmanagementWorktypes(body){// verify the required parameter 'body' is set
|
|
15708
|
+
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']);}/**
|
|
15629
15709
|
* Query for worktypes
|
|
15630
15710
|
*
|
|
15631
15711
|
* @param {Object} body QueryPostRequest
|
|
@@ -15640,7 +15720,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
15640
15720
|
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(){/**
|
|
15641
15721
|
* Teams service.
|
|
15642
15722
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
15643
|
-
* @version
|
|
15723
|
+
* @version 201.0.0
|
|
15644
15724
|
*/ /**
|
|
15645
15725
|
* Constructs a new TeamsApi.
|
|
15646
15726
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -15718,7 +15798,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15718
15798
|
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(){/**
|
|
15719
15799
|
* Telephony service.
|
|
15720
15800
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
15721
|
-
* @version
|
|
15801
|
+
* @version 201.0.0
|
|
15722
15802
|
*/ /**
|
|
15723
15803
|
* Constructs a new TelephonyApi.
|
|
15724
15804
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -15765,7 +15845,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
15765
15845
|
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(){/**
|
|
15766
15846
|
* TelephonyProvidersEdge service.
|
|
15767
15847
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
15768
|
-
* @version
|
|
15848
|
+
* @version 201.0.0
|
|
15769
15849
|
*/ /**
|
|
15770
15850
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
15771
15851
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -16575,7 +16655,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
|
|
|
16575
16655
|
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(){/**
|
|
16576
16656
|
* Textbots service.
|
|
16577
16657
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
16578
|
-
* @version
|
|
16658
|
+
* @version 201.0.0
|
|
16579
16659
|
*/ /**
|
|
16580
16660
|
* Constructs a new TextbotsApi.
|
|
16581
16661
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -16610,7 +16690,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
16610
16690
|
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(){/**
|
|
16611
16691
|
* Tokens service.
|
|
16612
16692
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
16613
|
-
* @version
|
|
16693
|
+
* @version 201.0.0
|
|
16614
16694
|
*/ /**
|
|
16615
16695
|
* Constructs a new TokensApi.
|
|
16616
16696
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -16644,7 +16724,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
16644
16724
|
*/},{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(){/**
|
|
16645
16725
|
* Uploads service.
|
|
16646
16726
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
16647
|
-
* @version
|
|
16727
|
+
* @version 201.0.0
|
|
16648
16728
|
*/ /**
|
|
16649
16729
|
* Constructs a new UploadsApi.
|
|
16650
16730
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -16710,7 +16790,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16710
16790
|
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(){/**
|
|
16711
16791
|
* Usage service.
|
|
16712
16792
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
16713
|
-
* @version
|
|
16793
|
+
* @version 201.0.0
|
|
16714
16794
|
*/ /**
|
|
16715
16795
|
* Constructs a new UsageApi.
|
|
16716
16796
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -16764,7 +16844,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16764
16844
|
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(){/**
|
|
16765
16845
|
* UserRecordings service.
|
|
16766
16846
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
16767
|
-
* @version
|
|
16847
|
+
* @version 201.0.0
|
|
16768
16848
|
*/ /**
|
|
16769
16849
|
* Constructs a new UserRecordingsApi.
|
|
16770
16850
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -16813,7 +16893,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
16813
16893
|
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(){/**
|
|
16814
16894
|
* Users service.
|
|
16815
16895
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
16816
|
-
* @version
|
|
16896
|
+
* @version 201.0.0
|
|
16817
16897
|
*/ /**
|
|
16818
16898
|
* Constructs a new UsersApi.
|
|
16819
16899
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -16835,6 +16915,14 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
16835
16915
|
if(subjectId===undefined||subjectId===null){throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';}// verify the required parameter 'divisionId' is set
|
|
16836
16916
|
if(divisionId===undefined||divisionId===null){throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';}// verify the required parameter 'roleId' is set
|
|
16837
16917
|
if(roleId===undefined||roleId===null){throw'Missing the required parameter "roleId" when calling deleteAuthorizationSubjectDivisionRole';}return this.apiClient.callApi('/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}','DELETE',{'subjectId':subjectId,'divisionId':divisionId,'roleId':roleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16918
|
+
* Delete the user's Direct Routing Backup settings and revert to the Direct Routing Queue default.
|
|
16919
|
+
*
|
|
16920
|
+
*/},{key:"deleteRoutingDirectroutingbackupSettingsMe",value:function deleteRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi('/api/v2/routing/directroutingbackup/settings/me','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16921
|
+
* Delete the user's Direct Routing Backup settings and revert to the Direct Routing Queue default.
|
|
16922
|
+
*
|
|
16923
|
+
* @param {String} userId User ID
|
|
16924
|
+
*/},{key:"deleteRoutingUserDirectroutingbackupSettings",value:function deleteRoutingUserDirectroutingbackupSettings(userId){// verify the required parameter 'userId' is set
|
|
16925
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteRoutingUserDirectroutingbackupSettings';}return this.apiClient.callApi('/api/v2/routing/users/{userId}/directroutingbackup/settings','DELETE',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16838
16926
|
* Delete the user's max utilization settings and revert to the organization-wide default.
|
|
16839
16927
|
*
|
|
16840
16928
|
* @param {String} userId User ID
|
|
@@ -16963,6 +17051,14 @@ if(type===undefined||type===null){throw'Missing the required parameter "type" wh
|
|
|
16963
17051
|
* @param {Object} opts.integrationPresenceSource Gets an integration presence for users instead of their defaults. This parameter will only be used when presence is provided as an expand.
|
|
16964
17052
|
* @deprecated
|
|
16965
17053
|
*/},{key:"getProfilesUsers",value:function getProfilesUsers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/profiles/users','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'jid':this.apiClient.buildCollectionParam(opts['jid'],'multi'),'sortOrder':opts['sortOrder'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'integrationPresenceSource':opts['integrationPresenceSource']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17054
|
+
* Get the user's Direct Routing Backup settings.
|
|
17055
|
+
*
|
|
17056
|
+
*/},{key:"getRoutingDirectroutingbackupSettingsMe",value:function getRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi('/api/v2/routing/directroutingbackup/settings/me','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17057
|
+
* Get the user's Direct Routing Backup settings.
|
|
17058
|
+
*
|
|
17059
|
+
* @param {String} userId User ID
|
|
17060
|
+
*/},{key:"getRoutingUserDirectroutingbackupSettings",value:function getRoutingUserDirectroutingbackupSettings(userId){// verify the required parameter 'userId' is set
|
|
17061
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getRoutingUserDirectroutingbackupSettings';}return this.apiClient.callApi('/api/v2/routing/users/{userId}/directroutingbackup/settings','GET',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16966
17062
|
* Get the user's max utilization settings. If not configured, the organization-wide default is returned.
|
|
16967
17063
|
*
|
|
16968
17064
|
* @param {String} userId User ID
|
|
@@ -17134,7 +17230,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
17134
17230
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
17135
17231
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
17136
17232
|
* @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)
|
|
17137
|
-
* @param {Array.<String>} opts.types Specifies the activity types.
|
|
17233
|
+
* @param {Array.<String>} opts.types Specifies the activity types. Informational, AssessedContent and Assessment are deprecated
|
|
17138
17234
|
* @param {Array.<String>} opts.statuses Specifies the activity statuses to filter by
|
|
17139
17235
|
* @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.
|
|
17140
17236
|
*/},{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']);}/**
|
|
@@ -17149,14 +17245,14 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
17149
17245
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
17150
17246
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
17151
17247
|
* @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)
|
|
17152
|
-
* @param {Array.<String>} opts.types Specifies the activity types.
|
|
17248
|
+
* @param {Array.<String>} opts.types Specifies the activity types. Informational, AssessedContent and Assessment are deprecated
|
|
17153
17249
|
* @param {Array.<String>} opts.statuses Specifies the activity statuses to filter by
|
|
17154
17250
|
* @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.
|
|
17155
17251
|
*/},{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']);}/**
|
|
17156
17252
|
* Get a Development Activity
|
|
17157
17253
|
* 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.
|
|
17158
17254
|
* @param {String} activityId Specifies the activity ID, maps to either assignment or appointment ID
|
|
17159
|
-
* @param {Object} type Specifies the activity type.
|
|
17255
|
+
* @param {Object} type Specifies the activity type. Informational, AssessedContent and Assessment are deprecated
|
|
17160
17256
|
*/},{key:"getUsersDevelopmentActivity",value:function getUsersDevelopmentActivity(activityId,type){// verify the required parameter 'activityId' is set
|
|
17161
17257
|
if(activityId===undefined||activityId===null){throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';}// verify the required parameter 'type' is set
|
|
17162
17258
|
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']);}/**
|
|
@@ -17385,6 +17481,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17385
17481
|
* @param {Object} body Search request options
|
|
17386
17482
|
*/},{key:"postUsersSearchTeamsAssign",value:function postUsersSearchTeamsAssign(body){// verify the required parameter 'body' is set
|
|
17387
17483
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsersSearchTeamsAssign';}return this.apiClient.callApi('/api/v2/users/search/teams/assign','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17484
|
+
* Update the user's Direct Routing Backup settings.
|
|
17485
|
+
*
|
|
17486
|
+
* @param {Object} body directRoutingBackup
|
|
17487
|
+
*/},{key:"putRoutingDirectroutingbackupSettingsMe",value:function putRoutingDirectroutingbackupSettingsMe(body){// verify the required parameter 'body' is set
|
|
17488
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingDirectroutingbackupSettingsMe';}return this.apiClient.callApi('/api/v2/routing/directroutingbackup/settings/me','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17489
|
+
* Update the user's Direct Routing Backup settings.
|
|
17490
|
+
*
|
|
17491
|
+
* @param {String} userId User ID
|
|
17492
|
+
* @param {Object} body directRoutingBackup
|
|
17493
|
+
*/},{key:"putRoutingUserDirectroutingbackupSettings",value:function putRoutingUserDirectroutingbackupSettings(userId,body){// verify the required parameter 'userId' is set
|
|
17494
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';}// verify the required parameter 'body' is set
|
|
17495
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';}return this.apiClient.callApi('/api/v2/routing/users/{userId}/directroutingbackup/settings','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17388
17496
|
* Update the user's max utilization settings. Include only those media types requiring custom configuration.
|
|
17389
17497
|
*
|
|
17390
17498
|
* @param {String} userId User ID
|
|
@@ -17475,7 +17583,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
|
|
|
17475
17583
|
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(){/**
|
|
17476
17584
|
* Utilities service.
|
|
17477
17585
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
17478
|
-
* @version
|
|
17586
|
+
* @version 201.0.0
|
|
17479
17587
|
*/ /**
|
|
17480
17588
|
* Constructs a new UtilitiesApi.
|
|
17481
17589
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -17502,7 +17610,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17502
17610
|
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(){/**
|
|
17503
17611
|
* Voicemail service.
|
|
17504
17612
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
17505
|
-
* @version
|
|
17613
|
+
* @version 201.0.0
|
|
17506
17614
|
*/ /**
|
|
17507
17615
|
* Constructs a new VoicemailApi.
|
|
17508
17616
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -17651,7 +17759,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
17651
17759
|
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(){/**
|
|
17652
17760
|
* WebChat service.
|
|
17653
17761
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
17654
|
-
* @version
|
|
17762
|
+
* @version 201.0.0
|
|
17655
17763
|
*/ /**
|
|
17656
17764
|
* Constructs a new WebChatApi.
|
|
17657
17765
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -17786,7 +17894,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17786
17894
|
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(){/**
|
|
17787
17895
|
* WebDeployments service.
|
|
17788
17896
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
17789
|
-
* @version
|
|
17897
|
+
* @version 201.0.0
|
|
17790
17898
|
*/ /**
|
|
17791
17899
|
* Constructs a new WebDeploymentsApi.
|
|
17792
17900
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -17907,7 +18015,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
17907
18015
|
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(){/**
|
|
17908
18016
|
* WebMessaging service.
|
|
17909
18017
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
17910
|
-
* @version
|
|
18018
|
+
* @version 201.0.0
|
|
17911
18019
|
*/ /**
|
|
17912
18020
|
* Constructs a new WebMessagingApi.
|
|
17913
18021
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -17923,7 +18031,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
17923
18031
|
*/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(){/**
|
|
17924
18032
|
* Widgets service.
|
|
17925
18033
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
17926
|
-
* @version
|
|
18034
|
+
* @version 201.0.0
|
|
17927
18035
|
*/ /**
|
|
17928
18036
|
* Constructs a new WidgetsApi.
|
|
17929
18037
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -17958,7 +18066,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
17958
18066
|
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(){/**
|
|
17959
18067
|
* WorkforceManagement service.
|
|
17960
18068
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
17961
|
-
* @version
|
|
18069
|
+
* @version 201.0.0
|
|
17962
18070
|
*/ /**
|
|
17963
18071
|
* Constructs a new WorkforceManagementApi.
|
|
17964
18072
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -18038,6 +18146,22 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet
|
|
|
18038
18146
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';}// verify the required parameter 'weekDateId' is set
|
|
18039
18147
|
if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';}// verify the required parameter 'forecastId' is set
|
|
18040
18148
|
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']);}/**
|
|
18149
|
+
* Delete a work plan bid
|
|
18150
|
+
*
|
|
18151
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18152
|
+
* @param {String} bidId The ID of the work plan bid
|
|
18153
|
+
*/},{key:"deleteWorkforcemanagementBusinessunitWorkplanbid",value:function deleteWorkforcemanagementBusinessunitWorkplanbid(businessUnitId,bidId){// verify the required parameter 'businessUnitId' is set
|
|
18154
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';}// verify the required parameter 'bidId' is set
|
|
18155
|
+
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']);}/**
|
|
18156
|
+
* Delete a bid group by bid group Id
|
|
18157
|
+
*
|
|
18158
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18159
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
18160
|
+
* @param {String} bidGroupId Work Plan Bid Group id
|
|
18161
|
+
*/},{key:"deleteWorkforcemanagementBusinessunitWorkplanbidGroup",value:function deleteWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId){// verify the required parameter 'businessUnitId' is set
|
|
18162
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidId' is set
|
|
18163
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
18164
|
+
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']);}/**
|
|
18041
18165
|
* Disable generated calendar link for the current user
|
|
18042
18166
|
*
|
|
18043
18167
|
*/},{key:"deleteWorkforcemanagementCalendarUrlIcs",value:function deleteWorkforcemanagementCalendarUrlIcs(){return this.apiClient.callApi('/api/v2/workforcemanagement/calendar/url/ics','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -18114,6 +18238,39 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
18114
18238
|
* Get the management unit to which the currently logged in agent belongs
|
|
18115
18239
|
*
|
|
18116
18240
|
*/},{key:"getWorkforcemanagementAgentsMeManagementunit",value:function getWorkforcemanagementAgentsMeManagementunit(){return this.apiClient.callApi('/api/v2/workforcemanagement/agents/me/managementunit','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18241
|
+
* Query the status of an alternative shift offers operation. Only the user who started the operation can query the status
|
|
18242
|
+
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
18243
|
+
* @param {String} jobId The ID of the job
|
|
18244
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsOffersJob",value:function getWorkforcemanagementAlternativeshiftsOffersJob(jobId){// verify the required parameter 'jobId' is set
|
|
18245
|
+
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']);}/**
|
|
18246
|
+
* Query the status of an alternative shift search offers operation. Only the user who started the operation can query the status
|
|
18247
|
+
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
18248
|
+
* @param {String} jobId The ID of the job
|
|
18249
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsOffersSearchJob",value:function getWorkforcemanagementAlternativeshiftsOffersSearchJob(jobId){// verify the required parameter 'jobId' is set
|
|
18250
|
+
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']);}/**
|
|
18251
|
+
* Get alternative shifts settings from the current logged in agent’s business unit
|
|
18252
|
+
*
|
|
18253
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsSettings",value:function getWorkforcemanagementAlternativeshiftsSettings(){return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18254
|
+
* Get my alternative shift trade by trade ID
|
|
18255
|
+
*
|
|
18256
|
+
* @param {String} tradeId The ID of the alternative shift trade
|
|
18257
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsTrade",value:function getWorkforcemanagementAlternativeshiftsTrade(tradeId){// verify the required parameter 'tradeId' is set
|
|
18258
|
+
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']);}/**
|
|
18259
|
+
* Get a list of my alternative shifts trades
|
|
18260
|
+
*
|
|
18261
|
+
* @param {Object} opts Optional parameters
|
|
18262
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
18263
|
+
*/},{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']);}/**
|
|
18264
|
+
* Query the status of an alternative shift trades operation. Only the user who started the operation can query the status
|
|
18265
|
+
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
18266
|
+
* @param {String} jobId The ID of the job
|
|
18267
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsTradesJob",value:function getWorkforcemanagementAlternativeshiftsTradesJob(jobId){// verify the required parameter 'jobId' is set
|
|
18268
|
+
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']);}/**
|
|
18269
|
+
* Query the status of an alternative shift trade state operation. Only the user who started the operation can query the status
|
|
18270
|
+
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
18271
|
+
* @param {String} jobId The ID of the job
|
|
18272
|
+
*/},{key:"getWorkforcemanagementAlternativeshiftsTradesStateJob",value:function getWorkforcemanagementAlternativeshiftsTradesStateJob(jobId){// verify the required parameter 'jobId' is set
|
|
18273
|
+
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']);}/**
|
|
18117
18274
|
* Get business unit
|
|
18118
18275
|
* Expanding "settings" will retrieve all settings. All other expands will retrieve only the requested settings field(s).
|
|
18119
18276
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
@@ -18167,6 +18324,25 @@ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required
|
|
|
18167
18324
|
* getWorkforcemanagementBusinessunitActivityplansJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18168
18325
|
*/},{key:"getWorkforcemanagementBusinessunitActivityplansJobs",value:function getWorkforcemanagementBusinessunitActivityplansJobs(businessUnitId){// verify the required parameter 'businessUnitId' is set
|
|
18169
18326
|
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']);}/**
|
|
18327
|
+
* Get alternative shifts settings for a business unit
|
|
18328
|
+
*
|
|
18329
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18330
|
+
*/},{key:"getWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function getWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId){// verify the required parameter 'businessUnitId' is set
|
|
18331
|
+
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']);}/**
|
|
18332
|
+
* Get an alternative shifts trade in a business unit for a given trade ID
|
|
18333
|
+
*
|
|
18334
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18335
|
+
* @param {String} tradeId The ID of the alternative shift trade
|
|
18336
|
+
*/},{key:"getWorkforcemanagementBusinessunitAlternativeshiftsTrade",value:function getWorkforcemanagementBusinessunitAlternativeshiftsTrade(businessUnitId,tradeId){// verify the required parameter 'businessUnitId' is set
|
|
18337
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';}// verify the required parameter 'tradeId' is set
|
|
18338
|
+
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']);}/**
|
|
18339
|
+
* Query the status of an alternative shift search trade operation. Only the user who started the operation can query the status
|
|
18340
|
+
* Job details are only retained if the initial request returned a 202 ACCEPTED response
|
|
18341
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18342
|
+
* @param {String} jobId The ID of the job
|
|
18343
|
+
*/},{key:"getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob",value:function getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(businessUnitId,jobId){// verify the required parameter 'businessUnitId' is set
|
|
18344
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';}// verify the required parameter 'jobId' is set
|
|
18345
|
+
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']);}/**
|
|
18170
18346
|
* Get intraday planning groups for the given date
|
|
18171
18347
|
*
|
|
18172
18348
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -18418,6 +18594,43 @@ if(forecastId===undefined||forecastId===null){throw'Missing the required paramet
|
|
|
18418
18594
|
*/},{key:"getWorkforcemanagementBusinessunitWeekShorttermforecasts",value:function getWorkforcemanagementBusinessunitWeekShorttermforecasts(businessUnitId,weekDateId){// verify the required parameter 'businessUnitId' is set
|
|
18419
18595
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';}// verify the required parameter 'weekDateId' is set
|
|
18420
18596
|
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']);}/**
|
|
18597
|
+
* Get a work plan bid
|
|
18598
|
+
*
|
|
18599
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18600
|
+
* @param {String} bidId The id of the workplanbid
|
|
18601
|
+
*/},{key:"getWorkforcemanagementBusinessunitWorkplanbid",value:function getWorkforcemanagementBusinessunitWorkplanbid(businessUnitId,bidId){// verify the required parameter 'businessUnitId' is set
|
|
18602
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';}// verify the required parameter 'bidId' is set
|
|
18603
|
+
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']);}/**
|
|
18604
|
+
* Get a bid group by bid group Id
|
|
18605
|
+
*
|
|
18606
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18607
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
18608
|
+
* @param {String} bidGroupId Work Plan Bid Group id
|
|
18609
|
+
*/},{key:"getWorkforcemanagementBusinessunitWorkplanbidGroup",value:function getWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId){// verify the required parameter 'businessUnitId' is set
|
|
18610
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidId' is set
|
|
18611
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
18612
|
+
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']);}/**
|
|
18613
|
+
* Gets the work plan preferences of all the agents in the work plan bid group
|
|
18614
|
+
*
|
|
18615
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18616
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
18617
|
+
* @param {String} bidGroupId The ID of the work plan bid group
|
|
18618
|
+
*/},{key:"getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId){// verify the required parameter 'businessUnitId' is set
|
|
18619
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidId' is set
|
|
18620
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
|
|
18621
|
+
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']);}/**
|
|
18622
|
+
* Get summary of bid groups that belong to a work plan bid
|
|
18623
|
+
*
|
|
18624
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18625
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
18626
|
+
*/},{key:"getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary",value:function getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(businessUnitId,bidId){// verify the required parameter 'businessUnitId' is set
|
|
18627
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';}// verify the required parameter 'bidId' is set
|
|
18628
|
+
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']);}/**
|
|
18629
|
+
* Get list of work plan bids
|
|
18630
|
+
*
|
|
18631
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18632
|
+
*/},{key:"getWorkforcemanagementBusinessunitWorkplanbids",value:function getWorkforcemanagementBusinessunitWorkplanbids(businessUnitId){// verify the required parameter 'businessUnitId' is set
|
|
18633
|
+
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']);}/**
|
|
18421
18634
|
* Get business units
|
|
18422
18635
|
*
|
|
18423
18636
|
* @param {Object} opts Optional parameters
|
|
@@ -18670,6 +18883,24 @@ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the requ
|
|
|
18670
18883
|
* @param {Object} opts Optional parameters
|
|
18671
18884
|
* @param {Boolean} opts.recentlyReviewed Limit results to requests that have been reviewed within the preceding 30 days (default to false)
|
|
18672
18885
|
*/},{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']);}/**
|
|
18886
|
+
* Get work plan bid ranks for a user
|
|
18887
|
+
*
|
|
18888
|
+
* @param {String} userId The userId to whom the work plan bid ranks apply.
|
|
18889
|
+
*/},{key:"getWorkforcemanagementUserWorkplanbidranks",value:function getWorkforcemanagementUserWorkplanbidranks(userId){// verify the required parameter 'userId' is set
|
|
18890
|
+
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']);}/**
|
|
18891
|
+
* Gets an agent's work plan bidding preference
|
|
18892
|
+
*
|
|
18893
|
+
* @param {String} bidId The ID of the work plan bid
|
|
18894
|
+
*/},{key:"getWorkforcemanagementWorkplanbidPreferences",value:function getWorkforcemanagementWorkplanbidPreferences(bidId){// verify the required parameter 'bidId' is set
|
|
18895
|
+
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']);}/**
|
|
18896
|
+
* Gets an agent's work plans for a bid
|
|
18897
|
+
*
|
|
18898
|
+
* @param {String} bidId The ID of the work plan bid
|
|
18899
|
+
*/},{key:"getWorkforcemanagementWorkplanbidWorkplans",value:function getWorkforcemanagementWorkplanbidWorkplans(bidId){// verify the required parameter 'bidId' is set
|
|
18900
|
+
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']);}/**
|
|
18901
|
+
* Gets the list of work plan bids that belong to an agent
|
|
18902
|
+
*
|
|
18903
|
+
*/},{key:"getWorkforcemanagementWorkplanbids",value:function getWorkforcemanagementWorkplanbids(){return this.apiClient.callApi('/api/v2/workforcemanagement/workplanbids','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18673
18904
|
* Update an adherence explanation
|
|
18674
18905
|
*
|
|
18675
18906
|
* @param {String} agentId The ID of the agent to query
|
|
@@ -18679,6 +18910,18 @@ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the requ
|
|
|
18679
18910
|
if(agentId===undefined||agentId===null){throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';}// verify the required parameter 'explanationId' is set
|
|
18680
18911
|
if(explanationId===undefined||explanationId===null){throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';}// verify the required parameter 'body' is set
|
|
18681
18912
|
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']);}/**
|
|
18913
|
+
* Update my alternative shifts trade by trade ID
|
|
18914
|
+
*
|
|
18915
|
+
* @param {String} tradeId The ID of the alternative shift trade
|
|
18916
|
+
* @param {Object} opts Optional parameters
|
|
18917
|
+
* @param {Object} opts.body body
|
|
18918
|
+
*/},{key:"patchWorkforcemanagementAlternativeshiftsTrade",value:function patchWorkforcemanagementAlternativeshiftsTrade(tradeId,opts){opts=opts||{};// verify the required parameter 'tradeId' is set
|
|
18919
|
+
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']);}/**
|
|
18920
|
+
* Bulk update alternative shift trade states
|
|
18921
|
+
*
|
|
18922
|
+
* @param {Object} body The request body
|
|
18923
|
+
*/},{key:"patchWorkforcemanagementAlternativeshiftsTradesStateJobs",value:function patchWorkforcemanagementAlternativeshiftsTradesStateJobs(body){// verify the required parameter 'body' is set
|
|
18924
|
+
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']);}/**
|
|
18682
18925
|
* Update business unit
|
|
18683
18926
|
*
|
|
18684
18927
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
@@ -18705,6 +18948,13 @@ if(activityCodeId===undefined||activityCodeId===null){throw'Missing the required
|
|
|
18705
18948
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';}// verify the required parameter 'activityPlanId' is set
|
|
18706
18949
|
if(activityPlanId===undefined||activityPlanId===null){throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';}// verify the required parameter 'body' is set
|
|
18707
18950
|
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']);}/**
|
|
18951
|
+
* Update alternative shifts settings for a business unit
|
|
18952
|
+
*
|
|
18953
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
18954
|
+
* @param {Object} opts Optional parameters
|
|
18955
|
+
* @param {Object} opts.body body
|
|
18956
|
+
*/},{key:"patchWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
18957
|
+
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']);}/**
|
|
18708
18958
|
* Updates the planning group
|
|
18709
18959
|
*
|
|
18710
18960
|
* @param {String} businessUnitId The ID of the business unit.
|
|
@@ -18750,6 +19000,37 @@ if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the requir
|
|
|
18750
19000
|
*/},{key:"patchWorkforcemanagementBusinessunitTimeoffplan",value:function patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId,timeOffPlanId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
18751
19001
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}// verify the required parameter 'timeOffPlanId' is set
|
|
18752
19002
|
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']);}/**
|
|
19003
|
+
* Update work plan bid
|
|
19004
|
+
*
|
|
19005
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19006
|
+
* @param {String} bidId The id of the workplanbid
|
|
19007
|
+
* @param {Object} body The work plan bid to be updated
|
|
19008
|
+
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbid",value:function patchWorkforcemanagementBusinessunitWorkplanbid(businessUnitId,bidId,body){// verify the required parameter 'businessUnitId' is set
|
|
19009
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';}// verify the required parameter 'bidId' is set
|
|
19010
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';}// verify the required parameter 'body' is set
|
|
19011
|
+
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']);}/**
|
|
19012
|
+
* Update a bid group by bid group Id
|
|
19013
|
+
*
|
|
19014
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19015
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
19016
|
+
* @param {String} bidGroupId Work Plan Bid Group id
|
|
19017
|
+
* @param {Object} opts Optional parameters
|
|
19018
|
+
* @param {Object} opts.body body
|
|
19019
|
+
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroup",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19020
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidId' is set
|
|
19021
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
19022
|
+
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']);}/**
|
|
19023
|
+
* Overrides the assigned work plan for the specified agents
|
|
19024
|
+
*
|
|
19025
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19026
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
19027
|
+
* @param {String} bidGroupId The ID of the work plan bid group
|
|
19028
|
+
* @param {Object} opts Optional parameters
|
|
19029
|
+
* @param {Object} opts.body body
|
|
19030
|
+
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19031
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidId' is set
|
|
19032
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
|
|
19033
|
+
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']);}/**
|
|
18753
19034
|
* Update the requested management unit
|
|
18754
19035
|
*
|
|
18755
19036
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
@@ -18841,6 +19122,25 @@ if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the
|
|
|
18841
19122
|
* @param {Object} opts.body body
|
|
18842
19123
|
*/},{key:"patchWorkforcemanagementTimeoffrequest",value:function patchWorkforcemanagementTimeoffrequest(timeOffRequestId,opts){opts=opts||{};// verify the required parameter 'timeOffRequestId' is set
|
|
18843
19124
|
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']);}/**
|
|
19125
|
+
* Update work plan bid ranks for a user
|
|
19126
|
+
*
|
|
19127
|
+
* @param {String} userId The userId to whom the work plan bid ranks apply.
|
|
19128
|
+
* @param {Object} opts Optional parameters
|
|
19129
|
+
* @param {Object} opts.body body
|
|
19130
|
+
*/},{key:"patchWorkforcemanagementUserWorkplanbidranks",value:function patchWorkforcemanagementUserWorkplanbidranks(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
19131
|
+
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']);}/**
|
|
19132
|
+
* Update bulk work plan bid ranks on users. Max 50 users can be updated at a time.
|
|
19133
|
+
*
|
|
19134
|
+
* @param {Array.<Object>} body Users
|
|
19135
|
+
*/},{key:"patchWorkforcemanagementUsersWorkplanbidranksBulk",value:function patchWorkforcemanagementUsersWorkplanbidranksBulk(body){// verify the required parameter 'body' is set
|
|
19136
|
+
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']);}/**
|
|
19137
|
+
* Update an agent's work plan bidding preference
|
|
19138
|
+
*
|
|
19139
|
+
* @param {String} bidId The ID of the work plan bid
|
|
19140
|
+
* @param {Object} opts Optional parameters
|
|
19141
|
+
* @param {Object} opts.body body
|
|
19142
|
+
*/},{key:"patchWorkforcemanagementWorkplanbidPreferences",value:function patchWorkforcemanagementWorkplanbidPreferences(bidId,opts){opts=opts||{};// verify the required parameter 'bidId' is set
|
|
19143
|
+
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']);}/**
|
|
18844
19144
|
* Submit an adherence explanation for the current user
|
|
18845
19145
|
*
|
|
18846
19146
|
* @param {Object} body The request body
|
|
@@ -18902,6 +19202,21 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18902
19202
|
* @param {Object} opts Optional parameters
|
|
18903
19203
|
* @param {Object} opts.body body
|
|
18904
19204
|
*/},{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']);}/**
|
|
19205
|
+
* Request a list of alternative shift offers for a given schedule
|
|
19206
|
+
*
|
|
19207
|
+
* @param {Object} body The request body
|
|
19208
|
+
*/},{key:"postWorkforcemanagementAlternativeshiftsOffersJobs",value:function postWorkforcemanagementAlternativeshiftsOffersJobs(body){// verify the required parameter 'body' is set
|
|
19209
|
+
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']);}/**
|
|
19210
|
+
* Request a search of alternative shift offers for a given shift
|
|
19211
|
+
*
|
|
19212
|
+
* @param {Object} body The request body
|
|
19213
|
+
*/},{key:"postWorkforcemanagementAlternativeshiftsOffersSearchJobs",value:function postWorkforcemanagementAlternativeshiftsOffersSearchJobs(body){// verify the required parameter 'body' is set
|
|
19214
|
+
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']);}/**
|
|
19215
|
+
* Create my alternative shift trade using an existing offer's jobId
|
|
19216
|
+
*
|
|
19217
|
+
* @param {Object} body The request body
|
|
19218
|
+
*/},{key:"postWorkforcemanagementAlternativeshiftsTrades",value:function postWorkforcemanagementAlternativeshiftsTrades(body){// verify the required parameter 'body' is set
|
|
19219
|
+
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']);}/**
|
|
18905
19220
|
* Create a new activity code
|
|
18906
19221
|
*
|
|
18907
19222
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
@@ -18944,6 +19259,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18944
19259
|
* @param {Object} opts.body body
|
|
18945
19260
|
*/},{key:"postWorkforcemanagementBusinessunitAgentschedulesSearch",value:function postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
18946
19261
|
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']);}/**
|
|
19262
|
+
* List alternative shifts trades for a given management unit or agent
|
|
19263
|
+
*
|
|
19264
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19265
|
+
* @param {Object} body The request body
|
|
19266
|
+
* @param {Object} opts Optional parameters
|
|
19267
|
+
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
19268
|
+
*/},{key:"postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch",value:function postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19269
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';}// verify the required parameter 'body' is set
|
|
19270
|
+
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']);}/**
|
|
18947
19271
|
* Get intraday data for the given date for the requested planningGroupIds
|
|
18948
19272
|
*
|
|
18949
19273
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -19159,6 +19483,31 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19159
19483
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';}// verify the required parameter 'weekDateId' is set
|
|
19160
19484
|
if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';}// verify the required parameter 'body' is set
|
|
19161
19485
|
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']);}/**
|
|
19486
|
+
* Copy a work plan bid
|
|
19487
|
+
*
|
|
19488
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19489
|
+
* @param {String} bidId The ID of the work plan bid to copy
|
|
19490
|
+
* @param {Object} opts Optional parameters
|
|
19491
|
+
* @param {Object} opts.body body
|
|
19492
|
+
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbidCopy",value:function postWorkforcemanagementBusinessunitWorkplanbidCopy(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19493
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';}// verify the required parameter 'bidId' is set
|
|
19494
|
+
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']);}/**
|
|
19495
|
+
* Add a bid group in a given work plan bid
|
|
19496
|
+
*
|
|
19497
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19498
|
+
* @param {String} bidId The work plan bid id of the bid groups
|
|
19499
|
+
* @param {Object} opts Optional parameters
|
|
19500
|
+
* @param {Object} opts.body body
|
|
19501
|
+
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbidGroups",value:function postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19502
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}// verify the required parameter 'bidId' is set
|
|
19503
|
+
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']);}/**
|
|
19504
|
+
* Create a new work plan bid
|
|
19505
|
+
*
|
|
19506
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
19507
|
+
* @param {Object} opts Optional parameters
|
|
19508
|
+
* @param {Object} opts.body The work plan bid to be created
|
|
19509
|
+
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbids",value:function postWorkforcemanagementBusinessunitWorkplanbids(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
19510
|
+
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']);}/**
|
|
19162
19511
|
* Add a new business unit
|
|
19163
19512
|
* It may take a minute or two for a new business unit to be available for api operations
|
|
19164
19513
|
* @param {Object} opts Optional parameters
|
|
@@ -19490,7 +19839,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
19490
19839
|
* </pre>
|
|
19491
19840
|
* </p>
|
|
19492
19841
|
* @module purecloud-platform-client-v2/index
|
|
19493
|
-
* @version
|
|
19842
|
+
* @version 201.0.0
|
|
19494
19843
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
19495
19844
|
* The ApiClient constructor.
|
|
19496
19845
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|