purecloud-platform-client-v2 200.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.
Files changed (87) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +1262 -116
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1262 -116
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +410 -124
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +526 -156
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +584 -21
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +3 -3
  14. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +21 -1
  39. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/LearningApi.js +4 -4
  44. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +68 -1
  54. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +36 -31
  71. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/UsersApi.js +4 -4
  80. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1080 -26
  87. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -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));}function bind(fn,thisArg){return function wrap(){return fn.apply(thisArg,arguments);};}// utils is a library of generic helper functions non-specific to axios
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 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"]);};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
390
- 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};/**
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(_ref6){var _ref7=_slicedToArray(_ref6,2),header=_ref7[0],value=_ref7[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
601
- utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref8,key){var value=_ref8.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
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=null;return function throttled(){var _arguments=arguments;var force=this===true;var now=Date.now();if(force||now-timestamp>threshold){if(timer){clearTimeout(timer);timer=null;}timestamp=now;return fn.apply(null,arguments);}if(!timer){timer=setTimeout(function(){timer=null;timestamp=Date.now();return fn.apply(null,_arguments);},threshold-(now-timestamp));}};}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={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};data[isDownloadStream?'download':'upload']=true;listener(data);},freq);};var isURLSameOrigin=platform.hasStandardBrowserEnv?// Standard browser envs have full support of the APIs needed to test
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 _ref9=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref10=_toArray(_ref9),type=_ref10[0],tokens=_ref10.slice(1);headers.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}// Add xsrf header
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;function done(){if(_config.cancelToken){_config.cancelToken.unsubscribe(onCanceled);}if(_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
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,_config,request));// Clean up request
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,_config,request));// Clean up request
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,_config,request));// Clean up request
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(typeof _config.onDownloadProgress==='function'){request.addEventListener('progress',progressEventReducer(_config.onDownloadProgress,true));}// Not all browsers support upload events
723
- if(typeof _config.onUploadProgress==='function'&&request.upload){request.upload.addEventListener('progress',progressEventReducer(_config.onUploadProgress));}if(_config.cancelToken||_config.signal){// Handle cancellation
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({type:'bytes',pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _yield$iterator$next,done,value,len;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return iterator.next();case 2:_yield$iterator$next=_context3.sent;done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!done){_context3.next=9;break;}controller.close();onFinish();return _context3.abrupt("return");case 9:len=value.byteLength;onProgress&&onProgress(bytes+=len);controller.enqueue(new Uint8Array(value));case 12:case"end":return _context3.stop();}},_callee2);}))();},cancel:function cancel(reason){onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var fetchProgressDecorator=function fetchProgressDecorator(total,fn){var lengthComputable=total!=null;return function(loaded){return setTimeout(function(){return fn({lengthComputable:lengthComputable,total:total,loaded:loaded});});};};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
727
- var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref11=_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 _ref11.apply(this,arguments);};}()));var supportsRequestStream=isReadableStreamSupported&&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&&!!function(){try{return utils$1.isReadableStream(new Response('').body);}catch(err){// return undefined
728
- }}();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 _ref12=_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)){_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 _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_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 _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,_ref15,_ref16,composedSignal,stopTimeout,finished,request,onFinish,requestContentLength,_request,contentTypeHeader,response,isStreamResponse,options,responseContentLength,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';_ref15=signal||cancelToken||timeout?composeSignals$1([signal,cancelToken],timeout):[],_ref16=_slicedToArray(_ref15,2),composedSignal=_ref16[0],stopTimeout=_ref16[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){data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,fetchProgressDecorator(requestContentLength,progressEventReducer(onUploadProgress)),null,encodeText);}case 15:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'cors':'omit';}request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",withCredentials: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'));response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,onDownloadProgress&&fetchProgressDecorator(responseContentLength,progressEventReducer(onDownloadProgress,true)),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 _ref14.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
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.2";var validators$1={};// eslint-disable-next-line func-names
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(_ref19){var _ref20=_slicedToArray(_ref19,2),key=_ref20[0],value=_ref20[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
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 200.0.0
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 _len3=arguments.length,newHeaders=new Array(_len3>1?_len3-1:0),_key4=1;_key4<_len3;_key4++){newHeaders[_key4-1]=arguments[_key4];}if(existingHeaders){existingHeaders=Object.assign.apply(Object,[existingHeaders].concat(newHeaders));}else{existingHeaders=Object.assign.apply(Object,newHeaders);}return existingHeaders;}/**
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 200.0.0
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 200.0.0
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 200.0.0
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 are exceeded or are close to being exceeded. Not a source of truth for limits hit but a best effort estimate.
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 200.0.0
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 200.0.0
3120
+ * @version 201.0.0
3099
3121
  */ /**
3100
3122
  * Constructs a new AuditApi.
3101
3123
  * @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -3145,7 +3167,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3145
3167
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';}return this.apiClient.callApi('/api/v2/audits/query/realtime/related','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
3146
3168
  * Authorization service.
3147
3169
  * @module purecloud-platform-client-v2/api/AuthorizationApi
3148
- * @version 200.0.0
3170
+ * @version 201.0.0
3149
3171
  */ /**
3150
3172
  * Constructs a new AuthorizationApi.
3151
3173
  * @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -3460,7 +3482,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
3460
3482
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoles';}return this.apiClient.callApi('/api/v2/users/{subjectId}/roles','PUT',{'subjectId':subjectId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BillingApi=/*#__PURE__*/function(){/**
3461
3483
  * Billing service.
3462
3484
  * @module purecloud-platform-client-v2/api/BillingApi
3463
- * @version 200.0.0
3485
+ * @version 201.0.0
3464
3486
  */ /**
3465
3487
  * Constructs a new BillingApi.
3466
3488
  * @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -3484,7 +3506,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
3484
3506
  if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
3485
3507
  * CarrierServices service.
3486
3508
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
3487
- * @version 200.0.0
3509
+ * @version 201.0.0
3488
3510
  */ /**
3489
3511
  * Constructs a new CarrierServicesApi.
3490
3512
  * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -3504,7 +3526,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
3504
3526
  */},{key:"postCarrierservicesIntegrationsEmergencylocationsMe",value:function postCarrierservicesIntegrationsEmergencylocationsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/carrierservices/integrations/emergencylocations/me','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ChatApi=/*#__PURE__*/function(){/**
3505
3527
  * Chat service.
3506
3528
  * @module purecloud-platform-client-v2/api/ChatApi
3507
- * @version 200.0.0
3529
+ * @version 201.0.0
3508
3530
  */ /**
3509
3531
  * Constructs a new ChatApi.
3510
3532
  * @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -3729,7 +3751,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3729
3751
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putChatsSettings';}return this.apiClient.callApi('/api/v2/chats/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CoachingApi=/*#__PURE__*/function(){/**
3730
3752
  * Coaching service.
3731
3753
  * @module purecloud-platform-client-v2/api/CoachingApi
3732
- * @version 200.0.0
3754
+ * @version 201.0.0
3733
3755
  */ /**
3734
3756
  * Constructs a new CoachingApi.
3735
3757
  * @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -3882,7 +3904,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3882
3904
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';}return this.apiClient.callApi('/api/v2/coaching/scheduleslots/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ContentManagementApi=/*#__PURE__*/function(){/**
3883
3905
  * ContentManagement service.
3884
3906
  * @module purecloud-platform-client-v2/api/ContentManagementApi
3885
- * @version 200.0.0
3907
+ * @version 201.0.0
3886
3908
  */ /**
3887
3909
  * Constructs a new ContentManagementApi.
3888
3910
  * @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -4165,7 +4187,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
4165
4187
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceTagvalue';}return this.apiClient.callApi('/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}','PUT',{'workspaceId':workspaceId,'tagId':tagId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ConversationsApi=/*#__PURE__*/function(){/**
4166
4188
  * Conversations service.
4167
4189
  * @module purecloud-platform-client-v2/api/ConversationsApi
4168
- * @version 200.0.0
4190
+ * @version 201.0.0
4169
4191
  */ /**
4170
4192
  * Constructs a new ConversationsApi.
4171
4193
  * @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -5887,7 +5909,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
5887
5909
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/videos/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataExtensionsApi=/*#__PURE__*/function(){/**
5888
5910
  * DataExtensions service.
5889
5911
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
5890
- * @version 200.0.0
5912
+ * @version 201.0.0
5891
5913
  */ /**
5892
5914
  * Constructs a new DataExtensionsApi.
5893
5915
  * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -5908,7 +5930,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
5908
5930
  */},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
5909
5931
  * Downloads service.
5910
5932
  * @module purecloud-platform-client-v2/api/DownloadsApi
5911
- * @version 200.0.0
5933
+ * @version 201.0.0
5912
5934
  */ /**
5913
5935
  * Constructs a new DownloadsApi.
5914
5936
  * @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -5927,7 +5949,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
5927
5949
  if(downloadId===undefined||downloadId===null){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
5928
5950
  * Emails service.
5929
5951
  * @module purecloud-platform-client-v2/api/EmailsApi
5930
- * @version 200.0.0
5952
+ * @version 201.0.0
5931
5953
  */ /**
5932
5954
  * Constructs a new EmailsApi.
5933
5955
  * @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -5945,7 +5967,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
5945
5967
  */},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
5946
5968
  * EmployeeEngagement service.
5947
5969
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
5948
- * @version 200.0.0
5970
+ * @version 201.0.0
5949
5971
  */ /**
5950
5972
  * Constructs a new EmployeeEngagementApi.
5951
5973
  * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
@@ -5983,7 +6005,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
5983
6005
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEmployeeengagementRecognitions';}return this.apiClient.callApi('/api/v2/employeeengagement/recognitions','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
5984
6006
  * Events service.
5985
6007
  * @module purecloud-platform-client-v2/api/EventsApi
5986
- * @version 200.0.0
6008
+ * @version 201.0.0
5987
6009
  */ /**
5988
6010
  * Constructs a new EventsApi.
5989
6011
  * @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -6008,7 +6030,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6008
6030
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';}return this.apiClient.callApi('/api/v2/events/users/routingstatus','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ExternalContactsApi=/*#__PURE__*/function(){/**
6009
6031
  * ExternalContacts service.
6010
6032
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
6011
- * @version 200.0.0
6033
+ * @version 201.0.0
6012
6034
  */ /**
6013
6035
  * Constructs a new ExternalContactsApi.
6014
6036
  * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -6465,7 +6487,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
6465
6487
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','PUT',{'relationshipId':relationshipId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FaxApi=/*#__PURE__*/function(){/**
6466
6488
  * Fax service.
6467
6489
  * @module purecloud-platform-client-v2/api/FaxApi
6468
- * @version 200.0.0
6490
+ * @version 201.0.0
6469
6491
  */ /**
6470
6492
  * Constructs a new FaxApi.
6471
6493
  * @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -6514,7 +6536,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6514
6536
  */},{key:"putFaxSettings",value:function putFaxSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/fax/settings','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FlowsApi=/*#__PURE__*/function(){/**
6515
6537
  * Flows service.
6516
6538
  * @module purecloud-platform-client-v2/api/FlowsApi
6517
- * @version 200.0.0
6539
+ * @version 201.0.0
6518
6540
  */ /**
6519
6541
  * Constructs a new FlowsApi.
6520
6542
  * @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -6562,7 +6584,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6562
6584
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/observations/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GamificationApi=/*#__PURE__*/function(){/**
6563
6585
  * Gamification service.
6564
6586
  * @module purecloud-platform-client-v2/api/GamificationApi
6565
- * @version 200.0.0
6587
+ * @version 201.0.0
6566
6588
  */ /**
6567
6589
  * Constructs a new GamificationApi.
6568
6590
  * @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -7102,7 +7124,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7102
7124
  if(status===undefined||status===null){throw'Missing the required parameter "status" when calling putGamificationStatus';}return this.apiClient.callApi('/api/v2/gamification/status','PUT',{},{},{},{},status,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeneralDataProtectionRegulationApi=/*#__PURE__*/function(){/**
7103
7125
  * GeneralDataProtectionRegulation service.
7104
7126
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
7105
- * @version 200.0.0
7127
+ * @version 201.0.0
7106
7128
  */ /**
7107
7129
  * Constructs a new GeneralDataProtectionRegulationApi.
7108
7130
  * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -7137,7 +7159,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
7137
7159
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGdprRequests';}return this.apiClient.callApi('/api/v2/gdpr/requests','POST',{},{'deleteConfirmed':opts['deleteConfirmed']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeolocationApi=/*#__PURE__*/function(){/**
7138
7160
  * Geolocation service.
7139
7161
  * @module purecloud-platform-client-v2/api/GeolocationApi
7140
- * @version 200.0.0
7162
+ * @version 201.0.0
7141
7163
  */ /**
7142
7164
  * Constructs a new GeolocationApi.
7143
7165
  * @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -7171,7 +7193,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
7171
7193
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserGeolocation';}return this.apiClient.callApi('/api/v2/users/{userId}/geolocations/{clientId}','PATCH',{'userId':userId,'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GreetingsApi=/*#__PURE__*/function(){/**
7172
7194
  * Greetings service.
7173
7195
  * @module purecloud-platform-client-v2/api/GreetingsApi
7174
- * @version 200.0.0
7196
+ * @version 201.0.0
7175
7197
  */ /**
7176
7198
  * Constructs a new GreetingsApi.
7177
7199
  * @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -7278,7 +7300,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
7278
7300
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';}return this.apiClient.callApi('/api/v2/users/{userId}/greetings/defaults','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GroupsApi=/*#__PURE__*/function(){/**
7279
7301
  * Groups service.
7280
7302
  * @module purecloud-platform-client-v2/api/GroupsApi
7281
- * @version 200.0.0
7303
+ * @version 201.0.0
7282
7304
  */ /**
7283
7305
  * Constructs a new GroupsApi.
7284
7306
  * @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -7411,7 +7433,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
7411
7433
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putGroupDynamicsettings';}return this.apiClient.callApi('/api/v2/groups/{groupId}/dynamicsettings','PUT',{'groupId':groupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IdentityProviderApi=/*#__PURE__*/function(){/**
7412
7434
  * IdentityProvider service.
7413
7435
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
7414
- * @version 200.0.0
7436
+ * @version 201.0.0
7415
7437
  */ /**
7416
7438
  * Constructs a new IdentityProviderApi.
7417
7439
  * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -7567,7 +7589,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7567
7589
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIdentityprovidersSalesforce';}return this.apiClient.callApi('/api/v2/identityproviders/salesforce','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var InfrastructureAsCodeApi=/*#__PURE__*/function(){/**
7568
7590
  * InfrastructureAsCode service.
7569
7591
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
7570
- * @version 200.0.0
7592
+ * @version 201.0.0
7571
7593
  */ /**
7572
7594
  * Constructs a new InfrastructureAsCodeApi.
7573
7595
  * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -7621,7 +7643,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
7621
7643
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postInfrastructureascodeJobs';}return this.apiClient.callApi('/api/v2/infrastructureascode/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IntegrationsApi=/*#__PURE__*/function(){/**
7622
7644
  * Integrations service.
7623
7645
  * @module purecloud-platform-client-v2/api/IntegrationsApi
7624
- * @version 200.0.0
7646
+ * @version 201.0.0
7625
7647
  */ /**
7626
7648
  * Constructs a new IntegrationsApi.
7627
7649
  * @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -7769,6 +7791,9 @@ if(fileName===undefined||fileName===null){throw'Missing the required parameter "
7769
7791
  * @param {Object} opts.status Indicates the validity of the certificate in question.
7770
7792
  * @param {Object} opts.type Indicates the type of the certificate.
7771
7793
  */},{key:"getIntegrationsActionsCertificates",value:function getIntegrationsActionsCertificates(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/integrations/actions/certificates','GET',{},{'status':opts['status'],'type':opts['type']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7794
+ * Retrieves basic info about trusted root CA certificates
7795
+ *
7796
+ */},{key:"getIntegrationsActionsCertificatesTruststore",value:function getIntegrationsActionsCertificatesTruststore(){return this.apiClient.callApi('/api/v2/integrations/actions/certificates/truststore','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7772
7797
  * Retrieves all action drafts associated with the filters passed in via query param.
7773
7798
  *
7774
7799
  * @param {Object} opts Optional parameters
@@ -8232,7 +8257,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
8232
8257
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';}return this.apiClient.callApi('/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences','PUT',{'ucIntegrationId':ucIntegrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var JourneyApi=/*#__PURE__*/function(){/**
8233
8258
  * Journey service.
8234
8259
  * @module purecloud-platform-client-v2/api/JourneyApi
8235
- * @version 200.0.0
8260
+ * @version 201.0.0
8236
8261
  */ /**
8237
8262
  * Constructs a new JourneyApi.
8238
8263
  * @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -8641,7 +8666,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8641
8666
  */},{key:"postJourneyViewsEncodingsValidate",value:function postJourneyViewsEncodingsValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/encodings/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
8642
8667
  * Knowledge service.
8643
8668
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8644
- * @version 200.0.0
8669
+ * @version 201.0.0
8645
8670
  */ /**
8646
8671
  * Constructs a new KnowledgeApi.
8647
8672
  * @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -9554,7 +9579,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9554
9579
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
9555
9580
  * LanguageUnderstanding service.
9556
9581
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
9557
- * @version 200.0.0
9582
+ * @version 201.0.0
9558
9583
  */ /**
9559
9584
  * Constructs a new LanguageUnderstandingApi.
9560
9585
  * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -9814,7 +9839,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
9814
9839
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLanguageunderstandingDomainVersion';}return this.apiClient.callApi('/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}','PUT',{'domainId':domainId,'domainVersionId':domainVersionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguagesApi=/*#__PURE__*/function(){/**
9815
9840
  * Languages service.
9816
9841
  * @module purecloud-platform-client-v2/api/LanguagesApi
9817
- * @version 200.0.0
9842
+ * @version 201.0.0
9818
9843
  */ /**
9819
9844
  * Constructs a new LanguagesApi.
9820
9845
  * @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -9869,7 +9894,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
9869
9894
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguages';}return this.apiClient.callApi('/api/v2/languages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LearningApi=/*#__PURE__*/function(){/**
9870
9895
  * Learning service.
9871
9896
  * @module purecloud-platform-client-v2/api/LearningApi
9872
- * @version 200.0.0
9897
+ * @version 201.0.0
9873
9898
  */ /**
9874
9899
  * Constructs a new LearningApi.
9875
9900
  * @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -9920,7 +9945,7 @@ if(stepId===undefined||stepId===null){throw'Missing the required parameter "step
9920
9945
  * @param {Object} opts.sortOrder Specifies result set sort order; if not specified, default sort order is descending (Desc) (default to Desc)
9921
9946
  * @param {Object} opts.sortBy Specifies which field to sort the results by, default sort is by recommendedCompletionDate
9922
9947
  * @param {Array.<String>} opts.userId Specifies the list of user IDs to be queried, up to 100 user IDs.
9923
- * @param {Array.<String>} opts.types Specifies the module types to filter by
9948
+ * @param {Array.<String>} opts.types Specifies the module types to filter by. Informational, AssessedContent and Assessment are deprecated
9924
9949
  * @param {Array.<String>} opts.states Specifies the assignment states to filter by
9925
9950
  * @param {Array.<String>} opts.expand Specifies the expand option for returning additional information
9926
9951
  */},{key:"getLearningAssignments",value:function getLearningAssignments(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/learning/assignments','GET',{},{'moduleId':opts['moduleId'],'interval':opts['interval'],'completionInterval':opts['completionInterval'],'overdue':opts['overdue'],'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'pass':opts['pass'],'minPercentageScore':opts['minPercentageScore'],'maxPercentageScore':opts['maxPercentageScore'],'sortOrder':opts['sortOrder'],'sortBy':opts['sortBy'],'userId':this.apiClient.buildCollectionParam(opts['userId'],'multi'),'types':this.apiClient.buildCollectionParam(opts['types'],'multi'),'states':this.apiClient.buildCollectionParam(opts['states'],'multi'),'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -9938,7 +9963,7 @@ if(stepId===undefined||stepId===null){throw'Missing the required parameter "step
9938
9963
  * @param {Number} opts.maxPercentageScore The maximum assessment score for an assignment (completed with assessment) to be included in the results (inclusive)
9939
9964
  * @param {Object} opts.sortOrder Specifies result set sort order; if not specified, default sort order is descending (Desc) (default to Desc)
9940
9965
  * @param {Object} opts.sortBy Specifies which field to sort the results by, default sort is by recommendedCompletionDate
9941
- * @param {Array.<String>} opts.types Specifies the module types to filter by
9966
+ * @param {Array.<String>} opts.types Specifies the module types to filter by. Informational, AssessedContent and Assessment are deprecated
9942
9967
  * @param {Array.<String>} opts.states Specifies the assignment states to filter by
9943
9968
  * @param {Array.<String>} opts.expand Specifies the expand option for returning additional information
9944
9969
  */},{key:"getLearningAssignmentsMe",value:function getLearningAssignmentsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/learning/assignments/me','GET',{},{'moduleId':opts['moduleId'],'interval':opts['interval'],'completionInterval':opts['completionInterval'],'overdue':opts['overdue'],'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'pass':opts['pass'],'minPercentageScore':opts['minPercentageScore'],'maxPercentageScore':opts['maxPercentageScore'],'sortOrder':opts['sortOrder'],'sortBy':opts['sortBy'],'types':this.apiClient.buildCollectionParam(opts['types'],'multi'),'states':this.apiClient.buildCollectionParam(opts['states'],'multi'),'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -9979,7 +10004,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
9979
10004
  *
9980
10005
  * @param {Object} opts Optional parameters
9981
10006
  * @param {Boolean} opts.isArchived Archive status (default to false)
9982
- * @param {Array.<String>} opts.types Specifies the module types.
10007
+ * @param {Array.<String>} opts.types Specifies the module types. Informational, AssessedContent and Assessment are deprecated
9983
10008
  * @param {Number} opts.pageSize Page size (default to 25)
9984
10009
  * @param {Number} opts.pageNumber Page number (default to 1)
9985
10010
  * @param {Object} opts.sortOrder Sort order (default to ascending)
@@ -10140,7 +10165,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
10140
10165
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
10141
10166
  * License service.
10142
10167
  * @module purecloud-platform-client-v2/api/LicenseApi
10143
- * @version 200.0.0
10168
+ * @version 201.0.0
10144
10169
  */ /**
10145
10170
  * Constructs a new LicenseApi.
10146
10171
  * @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -10194,7 +10219,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
10194
10219
  */},{key:"postLicenseUsers",value:function postLicenseUsers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/license/users','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LocationsApi=/*#__PURE__*/function(){/**
10195
10220
  * Locations service.
10196
10221
  * @module purecloud-platform-client-v2/api/LocationsApi
10197
- * @version 200.0.0
10222
+ * @version 201.0.0
10198
10223
  */ /**
10199
10224
  * Constructs a new LocationsApi.
10200
10225
  * @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -10253,7 +10278,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10253
10278
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLocationsSearch';}return this.apiClient.callApi('/api/v2/locations/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LogCaptureApi=/*#__PURE__*/function(){/**
10254
10279
  * LogCapture service.
10255
10280
  * @module purecloud-platform-client-v2/api/LogCaptureApi
10256
- * @version 200.0.0
10281
+ * @version 201.0.0
10257
10282
  */ /**
10258
10283
  * Constructs a new LogCaptureApi.
10259
10284
  * @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -10303,7 +10328,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
10303
10328
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
10304
10329
  * Messaging service.
10305
10330
  * @module purecloud-platform-client-v2/api/MessagingApi
10306
- * @version 200.0.0
10331
+ * @version 201.0.0
10307
10332
  */ /**
10308
10333
  * Constructs a new MessagingApi.
10309
10334
  * @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -10393,7 +10418,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10393
10418
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putMessagingSettingsDefault';}return this.apiClient.callApi('/api/v2/messaging/settings/default','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MobileDevicesApi=/*#__PURE__*/function(){/**
10394
10419
  * MobileDevices service.
10395
10420
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
10396
- * @version 200.0.0
10421
+ * @version 201.0.0
10397
10422
  */ /**
10398
10423
  * Constructs a new MobileDevicesApi.
10399
10424
  * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -10432,7 +10457,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10432
10457
  if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
10433
10458
  * Notifications service.
10434
10459
  * @module purecloud-platform-client-v2/api/NotificationsApi
10435
- * @version 200.0.0
10460
+ * @version 201.0.0
10436
10461
  */ /**
10437
10462
  * Constructs a new NotificationsApi.
10438
10463
  * @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -10489,7 +10514,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
10489
10514
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';}return this.apiClient.callApi('/api/v2/notifications/channels/{channelId}/subscriptions','PUT',{'channelId':channelId},{'ignoreErrors':opts['ignoreErrors']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OAuthApi=/*#__PURE__*/function(){/**
10490
10515
  * OAuth service.
10491
10516
  * @module purecloud-platform-client-v2/api/OAuthApi
10492
- * @version 200.0.0
10517
+ * @version 201.0.0
10493
10518
  */ /**
10494
10519
  * Constructs a new OAuthApi.
10495
10520
  * @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -10574,7 +10599,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
10574
10599
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOauthClient';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}','PUT',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ObjectsApi=/*#__PURE__*/function(){/**
10575
10600
  * Objects service.
10576
10601
  * @module purecloud-platform-client-v2/api/ObjectsApi
10577
- * @version 200.0.0
10602
+ * @version 201.0.0
10578
10603
  */ /**
10579
10604
  * Constructs a new ObjectsApi.
10580
10605
  * @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -10645,7 +10670,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
10645
10670
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','PUT',{'divisionId':divisionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OperationalEventsApi=/*#__PURE__*/function(){/**
10646
10671
  * OperationalEvents service.
10647
10672
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
10648
- * @version 200.0.0
10673
+ * @version 201.0.0
10649
10674
  */ /**
10650
10675
  * Constructs a new OperationalEventsApi.
10651
10676
  * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -10663,7 +10688,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
10663
10688
  */},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
10664
10689
  * Organization service.
10665
10690
  * @module purecloud-platform-client-v2/api/OrganizationApi
10666
- * @version 200.0.0
10691
+ * @version 201.0.0
10667
10692
  */ /**
10668
10693
  * Constructs a new OrganizationApi.
10669
10694
  * @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -10713,11 +10738,31 @@ if(requestId===undefined||requestId===null){throw'Missing the required parameter
10713
10738
  * @param {String} namespaceName The namespace to fetch limits for
10714
10739
  */},{key:"getOrganizationsLimitsNamespace",value:function getOrganizationsLimitsNamespace(namespaceName){// verify the required parameter 'namespaceName' is set
10715
10740
  if(namespaceName===undefined||namespaceName===null){throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespace';}return this.apiClient.callApi('/api/v2/organizations/limits/namespaces/{namespaceName}','GET',{'namespaceName':namespaceName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10741
+ * Get estimated limit counts for a namespace. This is not a source of truth for limit values but a record of estimates to facilitate limit threshold tracking.
10742
+ * See https://developer.genesys.cloud/organization/organization/limits#available-limits for limits that are trackable (Operational Events Enabled).
10743
+ * @param {String} namespaceName The namespace to get
10744
+ * @param {Object} opts Optional parameters
10745
+ * @param {String} opts.cursor Cursor provided when retrieving the last page
10746
+ * @param {String} opts.entityId entity id of the count
10747
+ * @param {String} opts.userId userid of the count
10748
+ */},{key:"getOrganizationsLimitsNamespaceCounts",value:function getOrganizationsLimitsNamespaceCounts(namespaceName,opts){opts=opts||{};// verify the required parameter 'namespaceName' is set
10749
+ if(namespaceName===undefined||namespaceName===null){throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceCounts';}return this.apiClient.callApi('/api/v2/organizations/limits/namespaces/{namespaceName}/counts','GET',{'namespaceName':namespaceName},{'cursor':opts['cursor'],'entityId':opts['entityId'],'userId':opts['userId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10716
10750
  * Get the default limits in a namespace for an organization
10717
10751
  *
10718
10752
  * @param {String} namespaceName The namespace to fetch defaults limits for
10719
10753
  */},{key:"getOrganizationsLimitsNamespaceDefaults",value:function getOrganizationsLimitsNamespaceDefaults(namespaceName){// verify the required parameter 'namespaceName' is set
10720
10754
  if(namespaceName===undefined||namespaceName===null){throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceDefaults';}return this.apiClient.callApi('/api/v2/organizations/limits/namespaces/{namespaceName}/defaults','GET',{'namespaceName':namespaceName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10755
+ * Get estimated limit counts for a namespace and limit name. This is not a source of truth for limit values but a record of estimates to facilitate limit threshold tracking.
10756
+ * See https://developer.genesys.cloud/organization/organization/limits#available-limits for limits that are trackable (Operational Events Enabled).
10757
+ * @param {String} namespaceName The namespace to get
10758
+ * @param {String} limitName The limit to get
10759
+ * @param {Object} opts Optional parameters
10760
+ * @param {String} opts.entityId entity id of the count
10761
+ * @param {String} opts.userId userid of the count
10762
+ * @param {String} opts.cursor Cursor provided when retrieving the last page
10763
+ */},{key:"getOrganizationsLimitsNamespaceLimitCounts",value:function getOrganizationsLimitsNamespaceLimitCounts(namespaceName,limitName,opts){opts=opts||{};// verify the required parameter 'namespaceName' is set
10764
+ if(namespaceName===undefined||namespaceName===null){throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceLimitCounts';}// verify the required parameter 'limitName' is set
10765
+ if(limitName===undefined||limitName===null){throw'Missing the required parameter "limitName" when calling getOrganizationsLimitsNamespaceLimitCounts';}return this.apiClient.callApi('/api/v2/organizations/limits/namespaces/{namespaceName}/limits/{limitName}/counts','GET',{'namespaceName':namespaceName,'limitName':limitName},{'entityId':opts['entityId'],'userId':opts['userId'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10721
10766
  * Get the available limit namespaces
10722
10767
  *
10723
10768
  * @param {Object} opts Optional parameters
@@ -10768,7 +10813,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10768
10813
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOrganizationsWhitelist';}return this.apiClient.callApi('/api/v2/organizations/whitelist','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationAuthorizationApi=/*#__PURE__*/function(){/**
10769
10814
  * OrganizationAuthorization service.
10770
10815
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
10771
- * @version 200.0.0
10816
+ * @version 201.0.0
10772
10817
  */ /**
10773
10818
  * Constructs a new OrganizationAuthorizationApi.
10774
10819
  * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -11091,7 +11136,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
11091
11136
  if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
11092
11137
  * Outbound service.
11093
11138
  * @module purecloud-platform-client-v2/api/OutboundApi
11094
- * @version 200.0.0
11139
+ * @version 201.0.0
11095
11140
  */ /**
11096
11141
  * Constructs a new OutboundApi.
11097
11142
  * @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -12158,7 +12203,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12158
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(){/**
12159
12204
  * Presence service.
12160
12205
  * @module purecloud-platform-client-v2/api/PresenceApi
12161
- * @version 200.0.0
12206
+ * @version 201.0.0
12162
12207
  */ /**
12163
12208
  * Constructs a new PresenceApi.
12164
12209
  * @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -12331,7 +12376,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12331
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(){/**
12332
12377
  * ProcessAutomation service.
12333
12378
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
12334
- * @version 200.0.0
12379
+ * @version 201.0.0
12335
12380
  */ /**
12336
12381
  * Constructs a new ProcessAutomationApi.
12337
12382
  * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -12394,7 +12439,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
12394
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(){/**
12395
12440
  * Quality service.
12396
12441
  * @module purecloud-platform-client-v2/api/QualityApi
12397
- * @version 200.0.0
12442
+ * @version 201.0.0
12398
12443
  */ /**
12399
12444
  * Constructs a new QualityApi.
12400
12445
  * @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -12871,7 +12916,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
12871
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(){/**
12872
12917
  * Recording service.
12873
12918
  * @module purecloud-platform-client-v2/api/RecordingApi
12874
- * @version 200.0.0
12919
+ * @version 201.0.0
12875
12920
  */ /**
12876
12921
  * Constructs a new RecordingApi.
12877
12922
  * @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -13283,7 +13328,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13283
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(){/**
13284
13329
  * ResponseManagement service.
13285
13330
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
13286
- * @version 200.0.0
13331
+ * @version 201.0.0
13287
13332
  */ /**
13288
13333
  * Constructs a new ResponseManagementApi.
13289
13334
  * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -13404,7 +13449,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
13404
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(){/**
13405
13450
  * Routing service.
13406
13451
  * @module purecloud-platform-client-v2/api/RoutingApi
13407
- * @version 200.0.0
13452
+ * @version 201.0.0
13408
13453
  */ /**
13409
13454
  * Constructs a new RoutingApi.
13410
13455
  * @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -14401,7 +14446,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
14401
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(){/**
14402
14447
  * SCIM service.
14403
14448
  * @module purecloud-platform-client-v2/api/SCIMApi
14404
- * @version 200.0.0
14449
+ * @version 201.0.0
14405
14450
  */ /**
14406
14451
  * Constructs a new SCIMApi.
14407
14452
  * @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -14626,7 +14671,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
14626
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(){/**
14627
14672
  * ScreenRecording service.
14628
14673
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
14629
- * @version 200.0.0
14674
+ * @version 201.0.0
14630
14675
  */ /**
14631
14676
  * Constructs a new ScreenRecordingApi.
14632
14677
  * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -14641,7 +14686,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14641
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(){/**
14642
14687
  * Scripts service.
14643
14688
  * @module purecloud-platform-client-v2/api/ScriptsApi
14644
- * @version 200.0.0
14689
+ * @version 201.0.0
14645
14690
  */ /**
14646
14691
  * Constructs a new ScriptsApi.
14647
14692
  * @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -14777,7 +14822,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
14777
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(){/**
14778
14823
  * Search service.
14779
14824
  * @module purecloud-platform-client-v2/api/SearchApi
14780
- * @version 200.0.0
14825
+ * @version 201.0.0
14781
14826
  */ /**
14782
14827
  * Constructs a new SearchApi.
14783
14828
  * @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -14937,7 +14982,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14937
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(){/**
14938
14983
  * Settings service.
14939
14984
  * @module purecloud-platform-client-v2/api/SettingsApi
14940
- * @version 200.0.0
14985
+ * @version 201.0.0
14941
14986
  */ /**
14942
14987
  * Constructs a new SettingsApi.
14943
14988
  * @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -14989,7 +15034,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
14989
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(){/**
14990
15035
  * SpeechTextAnalytics service.
14991
15036
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
14992
- * @version 200.0.0
15037
+ * @version 201.0.0
14993
15038
  */ /**
14994
15039
  * Constructs a new SpeechTextAnalyticsApi.
14995
15040
  * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -15273,7 +15318,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
15273
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(){/**
15274
15319
  * Stations service.
15275
15320
  * @module purecloud-platform-client-v2/api/StationsApi
15276
- * @version 200.0.0
15321
+ * @version 201.0.0
15277
15322
  */ /**
15278
15323
  * Constructs a new StationsApi.
15279
15324
  * @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -15305,7 +15350,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
15305
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(){/**
15306
15351
  * Suggest service.
15307
15352
  * @module purecloud-platform-client-v2/api/SuggestApi
15308
- * @version 200.0.0
15353
+ * @version 201.0.0
15309
15354
  */ /**
15310
15355
  * Constructs a new SuggestApi.
15311
15356
  * @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -15345,7 +15390,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15345
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(){/**
15346
15391
  * TaskManagement service.
15347
15392
  * @module purecloud-platform-client-v2/api/TaskManagementApi
15348
- * @version 200.0.0
15393
+ * @version 201.0.0
15349
15394
  */ /**
15350
15395
  * Constructs a new TaskManagementApi.
15351
15396
  * @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -15588,24 +15633,24 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15588
15633
  * Update the attributes of a worktype
15589
15634
  *
15590
15635
  * @param {String} worktypeId Worktype id
15591
- * @param {Object} opts Optional parameters
15592
- * @param {Object} opts.body body
15593
- */},{key:"patchTaskmanagementWorktype",value:function patchTaskmanagementWorktype(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
15594
- if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}','PATCH',{'worktypeId':worktypeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
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']);}/**
15595
15640
  * Update the attributes of a status
15596
15641
  *
15597
15642
  * @param {String} worktypeId Worktype id
15598
15643
  * @param {String} statusId Status id
15599
- * @param {Object} opts Optional parameters
15600
- * @param {Object} opts.body body
15601
- */},{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
15602
15646
  if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
15603
- if(statusId===undefined||statusId===null){throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}','PATCH',{'worktypeId':worktypeId,'statusId':statusId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
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']);}/**
15604
15649
  * Create a workbin
15605
15650
  *
15606
- * @param {Object} opts Optional parameters
15607
- * @param {Object} opts.body body
15608
- */},{key:"postTaskmanagementWorkbins",value:function postTaskmanagementWorkbins(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/taskmanagement/workbins','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
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']);}/**
15609
15654
  * Query for workbins
15610
15655
  *
15611
15656
  * @param {Object} body QueryPostRequest
@@ -15652,15 +15697,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15652
15697
  * Add a status to a worktype
15653
15698
  *
15654
15699
  * @param {String} worktypeId Worktype id
15655
- * @param {Object} opts Optional parameters
15656
- * @param {Object} opts.body body
15657
- */},{key:"postTaskmanagementWorktypeStatuses",value:function postTaskmanagementWorktypeStatuses(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
15658
- if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses','POST',{'worktypeId':worktypeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
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']);}/**
15659
15704
  * Create a worktype
15660
15705
  *
15661
- * @param {Object} opts Optional parameters
15662
- * @param {Object} opts.body body
15663
- */},{key:"postTaskmanagementWorktypes",value:function postTaskmanagementWorktypes(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/taskmanagement/worktypes','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
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']);}/**
15664
15709
  * Query for worktypes
15665
15710
  *
15666
15711
  * @param {Object} body QueryPostRequest
@@ -15675,7 +15720,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
15675
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(){/**
15676
15721
  * Teams service.
15677
15722
  * @module purecloud-platform-client-v2/api/TeamsApi
15678
- * @version 200.0.0
15723
+ * @version 201.0.0
15679
15724
  */ /**
15680
15725
  * Constructs a new TeamsApi.
15681
15726
  * @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -15753,7 +15798,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15753
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(){/**
15754
15799
  * Telephony service.
15755
15800
  * @module purecloud-platform-client-v2/api/TelephonyApi
15756
- * @version 200.0.0
15801
+ * @version 201.0.0
15757
15802
  */ /**
15758
15803
  * Constructs a new TelephonyApi.
15759
15804
  * @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -15800,7 +15845,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
15800
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(){/**
15801
15846
  * TelephonyProvidersEdge service.
15802
15847
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
15803
- * @version 200.0.0
15848
+ * @version 201.0.0
15804
15849
  */ /**
15805
15850
  * Constructs a new TelephonyProvidersEdgeApi.
15806
15851
  * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -16610,7 +16655,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
16610
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(){/**
16611
16656
  * Textbots service.
16612
16657
  * @module purecloud-platform-client-v2/api/TextbotsApi
16613
- * @version 200.0.0
16658
+ * @version 201.0.0
16614
16659
  */ /**
16615
16660
  * Constructs a new TextbotsApi.
16616
16661
  * @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -16645,7 +16690,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
16645
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(){/**
16646
16691
  * Tokens service.
16647
16692
  * @module purecloud-platform-client-v2/api/TokensApi
16648
- * @version 200.0.0
16693
+ * @version 201.0.0
16649
16694
  */ /**
16650
16695
  * Constructs a new TokensApi.
16651
16696
  * @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -16679,7 +16724,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16679
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(){/**
16680
16725
  * Uploads service.
16681
16726
  * @module purecloud-platform-client-v2/api/UploadsApi
16682
- * @version 200.0.0
16727
+ * @version 201.0.0
16683
16728
  */ /**
16684
16729
  * Constructs a new UploadsApi.
16685
16730
  * @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -16745,7 +16790,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16745
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(){/**
16746
16791
  * Usage service.
16747
16792
  * @module purecloud-platform-client-v2/api/UsageApi
16748
- * @version 200.0.0
16793
+ * @version 201.0.0
16749
16794
  */ /**
16750
16795
  * Constructs a new UsageApi.
16751
16796
  * @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -16799,7 +16844,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16799
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(){/**
16800
16845
  * UserRecordings service.
16801
16846
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
16802
- * @version 200.0.0
16847
+ * @version 201.0.0
16803
16848
  */ /**
16804
16849
  * Constructs a new UserRecordingsApi.
16805
16850
  * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -16848,7 +16893,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
16848
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(){/**
16849
16894
  * Users service.
16850
16895
  * @module purecloud-platform-client-v2/api/UsersApi
16851
- * @version 200.0.0
16896
+ * @version 201.0.0
16852
16897
  */ /**
16853
16898
  * Constructs a new UsersApi.
16854
16899
  * @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -17185,7 +17230,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
17185
17230
  * @param {Number} opts.pageSize Page size (default to 25)
17186
17231
  * @param {Number} opts.pageNumber Page number (default to 1)
17187
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)
17188
- * @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
17189
17234
  * @param {Array.<String>} opts.statuses Specifies the activity statuses to filter by
17190
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.
17191
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']);}/**
@@ -17200,14 +17245,14 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
17200
17245
  * @param {Number} opts.pageSize Page size (default to 25)
17201
17246
  * @param {Number} opts.pageNumber Page number (default to 1)
17202
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)
17203
- * @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
17204
17249
  * @param {Array.<String>} opts.statuses Specifies the activity statuses to filter by
17205
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.
17206
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']);}/**
17207
17252
  * Get a Development Activity
17208
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.
17209
17254
  * @param {String} activityId Specifies the activity ID, maps to either assignment or appointment ID
17210
- * @param {Object} type Specifies the activity type.
17255
+ * @param {Object} type Specifies the activity type. Informational, AssessedContent and Assessment are deprecated
17211
17256
  */},{key:"getUsersDevelopmentActivity",value:function getUsersDevelopmentActivity(activityId,type){// verify the required parameter 'activityId' is set
17212
17257
  if(activityId===undefined||activityId===null){throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';}// verify the required parameter 'type' is set
17213
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']);}/**
@@ -17538,7 +17583,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
17538
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(){/**
17539
17584
  * Utilities service.
17540
17585
  * @module purecloud-platform-client-v2/api/UtilitiesApi
17541
- * @version 200.0.0
17586
+ * @version 201.0.0
17542
17587
  */ /**
17543
17588
  * Constructs a new UtilitiesApi.
17544
17589
  * @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -17565,7 +17610,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17565
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(){/**
17566
17611
  * Voicemail service.
17567
17612
  * @module purecloud-platform-client-v2/api/VoicemailApi
17568
- * @version 200.0.0
17613
+ * @version 201.0.0
17569
17614
  */ /**
17570
17615
  * Constructs a new VoicemailApi.
17571
17616
  * @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -17714,7 +17759,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
17714
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(){/**
17715
17760
  * WebChat service.
17716
17761
  * @module purecloud-platform-client-v2/api/WebChatApi
17717
- * @version 200.0.0
17762
+ * @version 201.0.0
17718
17763
  */ /**
17719
17764
  * Constructs a new WebChatApi.
17720
17765
  * @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -17849,7 +17894,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17849
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(){/**
17850
17895
  * WebDeployments service.
17851
17896
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
17852
- * @version 200.0.0
17897
+ * @version 201.0.0
17853
17898
  */ /**
17854
17899
  * Constructs a new WebDeploymentsApi.
17855
17900
  * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -17970,7 +18015,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
17970
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(){/**
17971
18016
  * WebMessaging service.
17972
18017
  * @module purecloud-platform-client-v2/api/WebMessagingApi
17973
- * @version 200.0.0
18018
+ * @version 201.0.0
17974
18019
  */ /**
17975
18020
  * Constructs a new WebMessagingApi.
17976
18021
  * @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -17986,7 +18031,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
17986
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(){/**
17987
18032
  * Widgets service.
17988
18033
  * @module purecloud-platform-client-v2/api/WidgetsApi
17989
- * @version 200.0.0
18034
+ * @version 201.0.0
17990
18035
  */ /**
17991
18036
  * Constructs a new WidgetsApi.
17992
18037
  * @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -18021,7 +18066,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
18021
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(){/**
18022
18067
  * WorkforceManagement service.
18023
18068
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
18024
- * @version 200.0.0
18069
+ * @version 201.0.0
18025
18070
  */ /**
18026
18071
  * Constructs a new WorkforceManagementApi.
18027
18072
  * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -18101,6 +18146,22 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet
18101
18146
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';}// verify the required parameter 'weekDateId' is set
18102
18147
  if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';}// verify the required parameter 'forecastId' is set
18103
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']);}/**
18104
18165
  * Disable generated calendar link for the current user
18105
18166
  *
18106
18167
  */},{key:"deleteWorkforcemanagementCalendarUrlIcs",value:function deleteWorkforcemanagementCalendarUrlIcs(){return this.apiClient.callApi('/api/v2/workforcemanagement/calendar/url/ics','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -18177,6 +18238,39 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
18177
18238
  * Get the management unit to which the currently logged in agent belongs
18178
18239
  *
18179
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']);}/**
18180
18274
  * Get business unit
18181
18275
  * Expanding "settings" will retrieve all settings. All other expands will retrieve only the requested settings field(s).
18182
18276
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
@@ -18230,6 +18324,25 @@ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required
18230
18324
  * getWorkforcemanagementBusinessunitActivityplansJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
18231
18325
  */},{key:"getWorkforcemanagementBusinessunitActivityplansJobs",value:function getWorkforcemanagementBusinessunitActivityplansJobs(businessUnitId){// verify the required parameter 'businessUnitId' is set
18232
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']);}/**
18233
18346
  * Get intraday planning groups for the given date
18234
18347
  *
18235
18348
  * @param {String} businessUnitId The ID of the business unit
@@ -18481,6 +18594,43 @@ if(forecastId===undefined||forecastId===null){throw'Missing the required paramet
18481
18594
  */},{key:"getWorkforcemanagementBusinessunitWeekShorttermforecasts",value:function getWorkforcemanagementBusinessunitWeekShorttermforecasts(businessUnitId,weekDateId){// verify the required parameter 'businessUnitId' is set
18482
18595
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';}// verify the required parameter 'weekDateId' is set
18483
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']);}/**
18484
18634
  * Get business units
18485
18635
  *
18486
18636
  * @param {Object} opts Optional parameters
@@ -18733,6 +18883,24 @@ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the requ
18733
18883
  * @param {Object} opts Optional parameters
18734
18884
  * @param {Boolean} opts.recentlyReviewed Limit results to requests that have been reviewed within the preceding 30 days (default to false)
18735
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']);}/**
18736
18904
  * Update an adherence explanation
18737
18905
  *
18738
18906
  * @param {String} agentId The ID of the agent to query
@@ -18742,6 +18910,18 @@ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the requ
18742
18910
  if(agentId===undefined||agentId===null){throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';}// verify the required parameter 'explanationId' is set
18743
18911
  if(explanationId===undefined||explanationId===null){throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';}// verify the required parameter 'body' is set
18744
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']);}/**
18745
18925
  * Update business unit
18746
18926
  *
18747
18927
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
@@ -18768,6 +18948,13 @@ if(activityCodeId===undefined||activityCodeId===null){throw'Missing the required
18768
18948
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';}// verify the required parameter 'activityPlanId' is set
18769
18949
  if(activityPlanId===undefined||activityPlanId===null){throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';}// verify the required parameter 'body' is set
18770
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']);}/**
18771
18958
  * Updates the planning group
18772
18959
  *
18773
18960
  * @param {String} businessUnitId The ID of the business unit.
@@ -18813,6 +19000,37 @@ if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the requir
18813
19000
  */},{key:"patchWorkforcemanagementBusinessunitTimeoffplan",value:function patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId,timeOffPlanId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
18814
19001
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}// verify the required parameter 'timeOffPlanId' is set
18815
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']);}/**
18816
19034
  * Update the requested management unit
18817
19035
  *
18818
19036
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
@@ -18904,6 +19122,25 @@ if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the
18904
19122
  * @param {Object} opts.body body
18905
19123
  */},{key:"patchWorkforcemanagementTimeoffrequest",value:function patchWorkforcemanagementTimeoffrequest(timeOffRequestId,opts){opts=opts||{};// verify the required parameter 'timeOffRequestId' is set
18906
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']);}/**
18907
19144
  * Submit an adherence explanation for the current user
18908
19145
  *
18909
19146
  * @param {Object} body The request body
@@ -18965,6 +19202,21 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18965
19202
  * @param {Object} opts Optional parameters
18966
19203
  * @param {Object} opts.body body
18967
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']);}/**
18968
19220
  * Create a new activity code
18969
19221
  *
18970
19222
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
@@ -19007,6 +19259,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19007
19259
  * @param {Object} opts.body body
19008
19260
  */},{key:"postWorkforcemanagementBusinessunitAgentschedulesSearch",value:function postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
19009
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']);}/**
19010
19271
  * Get intraday data for the given date for the requested planningGroupIds
19011
19272
  *
19012
19273
  * @param {String} businessUnitId The ID of the business unit
@@ -19222,6 +19483,31 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19222
19483
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';}// verify the required parameter 'weekDateId' is set
19223
19484
  if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';}// verify the required parameter 'body' is set
19224
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']);}/**
19225
19511
  * Add a new business unit
19226
19512
  * It may take a minute or two for a new business unit to be available for api operations
19227
19513
  * @param {Object} opts Optional parameters
@@ -19553,7 +19839,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
19553
19839
  * </pre>
19554
19840
  * </p>
19555
19841
  * @module purecloud-platform-client-v2/index
19556
- * @version 200.0.0
19842
+ * @version 201.0.0
19557
19843
  */var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
19558
19844
  * The ApiClient constructor.
19559
19845
  * @property {module:purecloud-platform-client-v2/ApiClient}