purecloud-platform-client-v2 234.0.0 → 235.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +276 -198
- package/dist/web-amd/purecloud-platform-client-v2.js +276 -198
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +180 -127
- package/dist/web-cjs/purecloud-platform-client-v2.js +180 -127
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +671 -561
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +45 -1
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +51 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +2 -8
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +46 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +51 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -107
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +3 -2
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/dist/web-cjs/bundle.js
CHANGED
|
@@ -16,7 +16,13 @@ function Item(fun,array){this.fun=fun;this.array=array;}Item.prototype.run=funct
|
|
|
16
16
|
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
|
|
17
17
|
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
|
|
18
18
|
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
19
|
-
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}
|
|
19
|
+
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};/**
|
|
20
|
+
* Create a bound version of a function with a specified `this` context
|
|
21
|
+
*
|
|
22
|
+
* @param {Function} fn - The function to bind
|
|
23
|
+
* @param {*} thisArg - The value to be passed as the `this` parameter
|
|
24
|
+
* @returns {Function} A new function that will call the original function with the specified `this` context
|
|
25
|
+
*/function bind(fn,thisArg){return function wrap(){return fn.apply(thisArg,arguments);};}// utils is a library of generic helper functions non-specific to axios
|
|
20
26
|
var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeOf;var iterator=Symbol.iterator,toStringTag=Symbol.toStringTag;var kindOf=function(cache){return function(thing){var str=toString$1.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;};};/**
|
|
21
27
|
* Determine if a value is an Array
|
|
22
28
|
*
|
|
@@ -542,7 +548,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
542
548
|
*
|
|
543
549
|
* @param {Number} id The ID that was returned by `use`
|
|
544
550
|
*
|
|
545
|
-
* @returns {
|
|
551
|
+
* @returns {void}
|
|
546
552
|
*/},{key:"eject",value:function eject(id){if(this.handlers[id]){this.handlers[id]=null;}}/**
|
|
547
553
|
* Clear all interceptors from the stack
|
|
548
554
|
*
|
|
@@ -667,7 +673,7 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
|
|
|
667
673
|
* @param {Number} freq
|
|
668
674
|
* @return {Function}
|
|
669
675
|
*/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(void 0,_toConsumableArray(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?function(origin,isMSIE){return function(url){url=new URL(url,platform.origin);return origin.protocol===url.protocol&&origin.host===url.host&&(isMSIE||origin.port===url.port);};}(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):function(){return true;};var cookies=platform.hasStandardBrowserEnv?// Standard browser envs support document.cookie
|
|
670
|
-
{write:function write(name,value,expires,path,domain,secure){var cookie=[name
|
|
676
|
+
{write:function write(name,value,expires,path,domain,secure,sameSite){if(typeof document==='undefined')return;var cookie=["".concat(name,"=").concat(encodeURIComponent(value))];if(utils$1.isNumber(expires)){cookie.push("expires=".concat(new Date(expires).toUTCString()));}if(utils$1.isString(path)){cookie.push("path=".concat(path));}if(utils$1.isString(domain)){cookie.push("domain=".concat(domain));}if(secure===true){cookie.push('secure');}if(utils$1.isString(sameSite)){cookie.push("SameSite=".concat(sameSite));}document.cookie=cookie.join('; ');},read:function read(name){if(typeof document==='undefined')return null;var match=document.cookie.match(new RegExp('(?:^|; )'+name+'=([^;]*)'));return match?decodeURIComponent(match[1]):null;},remove:function remove(name){this.write(name,'',Date.now()-86400000,'/');}}:// Non-standard browser env (web workers, react-native) lack needed support.
|
|
671
677
|
{write:function write(){},read:function read(){return null;},remove:function remove(){}};/**
|
|
672
678
|
* Determines whether the specified URL is absolute
|
|
673
679
|
*
|
|
@@ -747,8 +753,44 @@ if(onUploadProgress&&request.upload){var _progressEventReducer3=progressEventRed
|
|
|
747
753
|
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
|
|
748
754
|
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;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.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regenerator().m(function streamChunk(chunk,chunkSize){var len,pos,end;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.n=2;break;}_context.n=1;return chunk;case 1:return _context.a(2);case 2:pos=0;case 3:if(!(pos<len)){_context.n=5;break;}end=pos+chunkSize;_context.n=4;return chunk.slice(pos,end);case 4:pos=end;_context.n=3;break;case 5:return _context.a(2);}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk,_t;return _regenerator().w(function(_context2){while(1)switch(_context2.p=_context2.n){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.p=1;_iterator2=_asyncIterator(readStream(iterable));case 2:_context2.n=3;return _awaitAsyncGenerator(_iterator2.next());case 3:if(!(_iteratorAbruptCompletion=!(_step=_context2.v).done)){_context2.n=5;break;}chunk=_step.value;return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator)),4);case 4:_iteratorAbruptCompletion=false;_context2.n=2;break;case 5:_context2.n=7;break;case 6:_context2.p=6;_t=_context2.v;_didIteratorError=true;_iteratorError=_t;case 7:_context2.p=7;_context2.p=8;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.n=9;break;}_context2.n=9;return _awaitAsyncGenerator(_iterator2["return"]());case 9:_context2.p=9;if(!_didIteratorError){_context2.n=10;break;}throw _iteratorError;case 10:return _context2.f(9);case 11:return _context2.f(7);case 12:return _context2.a(2);}},_callee,null,[[8,,9,11],[1,6,7,12]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:if(!stream[Symbol.asyncIterator]){_context3.n=2;break;}return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator)),1);case 1:return _context3.a(2);case 2:reader=stream.getReader();_context3.p=3;case 4:_context3.n=5;return _awaitAsyncGenerator(reader.read());case 5:_yield$_awaitAsyncGen=_context3.v;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.n=6;break;}return _context3.a(3,8);case 6:_context3.n=7;return value;case 7:_context3.n=4;break;case 8:_context3.p=8;_context3.n=9;return _awaitAsyncGenerator(reader.cancel());case 9:return _context3.f(8);case 10:return _context3.a(2);}},_callee2,null,[[3,,8,10]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes,_t2;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:_context4.p=0;_context4.n=1;return iterator.next();case 1:_yield$iterator$next=_context4.v;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.n=2;break;}_onFinish();controller.close();return _context4.a(2);case 2:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.n=4;break;case 3:_context4.p=3;_t2=_context4.v;_onFinish(_t2);throw _t2;case 4:return _context4.a(2);}},_callee3,null,[[0,3]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var DEFAULT_CHUNK_SIZE=64*1024;var isFunction=utils$1.isFunction;var globalFetchAPI=function(_ref11){var Request=_ref11.Request,Response=_ref11.Response;return{Request:Request,Response:Response};}(utils$1.global);var _utils$1$global=utils$1.global,ReadableStream$1=_utils$1$global.ReadableStream,TextEncoder$1=_utils$1$global.TextEncoder;var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var factory=function factory(env){env=utils$1.merge.call({skipUndefined:true},globalFetchAPI,env);var _env=env,envFetch=_env.fetch,Request=_env.Request,Response=_env.Response;var isFetchSupported=envFetch?isFunction(envFetch):typeof fetch==='function';var isRequestSupported=isFunction(Request);var isResponseSupported=isFunction(Response);if(!isFetchSupported){return false;}var isReadableStreamSupported=isFetchSupported&&isFunction(ReadableStream$1);var encodeText=isFetchSupported&&(typeof TextEncoder$1==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder$1()):(/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Request(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_callee4);}));return function(_x4){return _ref12.apply(this,arguments);};}()));var supportsRequestStream=isRequestSupported&&isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream$1(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var supportsResponseStream=isResponseSupported&&isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=function(res,config){var method=res&&res[type];if(method){return method.call(res);}throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}();var getBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);case 7:return _context6.a(2);}},_callee5);}));return function getBodyLength(_x5){return _ref13.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref14.apply(this,arguments);};}();return/*#__PURE__*/function(){var _ref15=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,_fetch,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,resolvedOptions,response,isStreamResponse,options,responseContentLength,_ref16,_ref17,_onProgress,_flush,responseData,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;_fetch=envFetch||fetch;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);request=null;unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 4:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
|
|
749
755
|
// see https://github.com/cloudflare/workerd/issues/902
|
|
750
|
-
isCredentialsSupported=isRequestSupported&&"credentials"in Request.prototype;resolvedOptions=_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined});request=isRequestSupported&&new Request(url,resolvedOptions);_context8.n=5;return isRequestSupported?_fetch(request,fetchOptions):_fetch(url,resolvedOptions);case 5:response=_context8.v;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref16=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref17=_slicedToArray(_ref16,2),_onProgress=_ref17[0],_flush=_ref17[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.n=6;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 6:responseData=_context8.v;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.n=7;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 7:return _context8.a(2,_context8.v);case 8:_context8.p=8;_t7=_context8.v;unsubscribe&&unsubscribe();if(!(_t7&&_t7.name==='TypeError'&&/Load failed|fetch/i.test(_t7.message))){_context8.n=9;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_t7.cause||_t7});case 9:throw AxiosError.from(_t7,_t7&&_t7.code,config,request);case 10:return _context8.a(2);}},_callee7,null,[[1,8]]);}));return function(_x8){return _ref15.apply(this,arguments);};}();};var seedCache=new Map();var getFetch=function getFetch(config){var env=config
|
|
751
|
-
|
|
756
|
+
isCredentialsSupported=isRequestSupported&&"credentials"in Request.prototype;resolvedOptions=_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined});request=isRequestSupported&&new Request(url,resolvedOptions);_context8.n=5;return isRequestSupported?_fetch(request,fetchOptions):_fetch(url,resolvedOptions);case 5:response=_context8.v;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref16=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref17=_slicedToArray(_ref16,2),_onProgress=_ref17[0],_flush=_ref17[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.n=6;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 6:responseData=_context8.v;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.n=7;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 7:return _context8.a(2,_context8.v);case 8:_context8.p=8;_t7=_context8.v;unsubscribe&&unsubscribe();if(!(_t7&&_t7.name==='TypeError'&&/Load failed|fetch/i.test(_t7.message))){_context8.n=9;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_t7.cause||_t7});case 9:throw AxiosError.from(_t7,_t7&&_t7.code,config,request);case 10:return _context8.a(2);}},_callee7,null,[[1,8]]);}));return function(_x8){return _ref15.apply(this,arguments);};}();};var seedCache=new Map();var getFetch=function getFetch(config){var env=config&&config.env||{};var fetch=env.fetch,Request=env.Request,Response=env.Response;var seeds=[Request,Response,fetch];var len=seeds.length,i=len,seed,target,map=seedCache;while(i--){seed=seeds[i];target=map.get(seed);target===undefined&&map.set(seed,target=i?new Map():factory(env));map=target;}return target;};getFetch();/**
|
|
757
|
+
* Known adapters mapping.
|
|
758
|
+
* Provides environment-specific adapters for Axios:
|
|
759
|
+
* - `http` for Node.js
|
|
760
|
+
* - `xhr` for browsers
|
|
761
|
+
* - `fetch` for fetch API-based requests
|
|
762
|
+
*
|
|
763
|
+
* @type {Object<string, Function|Object>}
|
|
764
|
+
*/var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};// Assign adapter names for easier debugging and identification
|
|
765
|
+
utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
|
|
766
|
+
}Object.defineProperty(fn,'adapterName',{value:value});}});/**
|
|
767
|
+
* Render a rejection reason string for unknown or unsupported adapters
|
|
768
|
+
*
|
|
769
|
+
* @param {string} reason
|
|
770
|
+
* @returns {string}
|
|
771
|
+
*/var renderReason=function renderReason(reason){return"- ".concat(reason);};/**
|
|
772
|
+
* Check if the adapter is resolved (function, null, or false)
|
|
773
|
+
*
|
|
774
|
+
* @param {Function|null|false} adapter
|
|
775
|
+
* @returns {boolean}
|
|
776
|
+
*/var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};/**
|
|
777
|
+
* Get the first suitable adapter from the provided list.
|
|
778
|
+
* Tries each adapter in order until a supported one is found.
|
|
779
|
+
* Throws an AxiosError if no adapter is suitable.
|
|
780
|
+
*
|
|
781
|
+
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
782
|
+
* @param {Object} config - Axios request configuration
|
|
783
|
+
* @throws {AxiosError} If no suitable adapter is available
|
|
784
|
+
* @returns {Function} The resolved adapter function
|
|
785
|
+
*/function getAdapter(adapters,config){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&&(utils$1.isFunction(adapter)||(adapter=adapter.get(config)))){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(_ref18){var _ref19=_slicedToArray(_ref18,2),id=_ref19[0],state=_ref19[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;}/**
|
|
786
|
+
* Exports Axios adapters and utility to resolve an adapter
|
|
787
|
+
*/var adapters={/**
|
|
788
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
789
|
+
* @type {Function}
|
|
790
|
+
*/getAdapter:getAdapter,/**
|
|
791
|
+
* Exposes all known adapters
|
|
792
|
+
* @type {Object<string, Function|Object>}
|
|
793
|
+
*/adapters:knownAdapters};/**
|
|
752
794
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
753
795
|
*
|
|
754
796
|
* @param {Object} config The config that is to be used for the request
|
|
@@ -763,7 +805,7 @@ isCredentialsSupported=isRequestSupported&&"credentials"in Request.prototype;res
|
|
|
763
805
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
764
806
|
config.data=transformData.call(config,config.transformRequest);if(['post','put','patch'].indexOf(config.method)!==-1){config.headers.setContentType('application/x-www-form-urlencoded',false);}var adapter=adapters.getAdapter(config.adapter||defaults$1.adapter,config);return adapter(config).then(function onAdapterResolution(response){throwIfCancellationRequested(config);// Transform response data
|
|
765
807
|
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
|
|
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.
|
|
808
|
+
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.13.2";var validators$1={};// eslint-disable-next-line func-names
|
|
767
809
|
['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={};/**
|
|
768
810
|
* Transitional option validator
|
|
769
811
|
*
|
|
@@ -850,7 +892,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
|
|
|
850
892
|
* @param {*} payload The value to test
|
|
851
893
|
*
|
|
852
894
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
853
|
-
*/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(_ref20){var _ref21=_slicedToArray(_ref20,2),key=_ref21[0],value=_ref21[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
|
|
895
|
+
*/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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(HttpStatusCode).forEach(function(_ref20){var _ref21=_slicedToArray(_ref20,2),key=_ref21[0],value=_ref21[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
|
|
854
896
|
* Create an instance of Axios
|
|
855
897
|
*
|
|
856
898
|
* @param {Object} defaultConfig The default config for the instance
|
|
@@ -911,7 +953,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
911
953
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
912
954
|
if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(this.environment.startsWith('api.'))this.environment=this.environment.substring(4);this.basePath="https://api.".concat(this.environment);this.authUrl="https://login.".concat(this.environment);}},{key:"getConfUrl",value:function getConfUrl(pathType,regionUrl){if(!this.gateway)return regionUrl;if(!this.gateway.host)return regionUrl;var url=this.gateway.protocol+'://'+this.gateway.host;if(this.gateway.port>-1)url=url+':'+this.gateway.port.toString();if(pathType==='login'){if(this.gateway.path_params_login){if(this.gateway.path_params_login.startsWith('/'))url=url+this.gateway.path_params_login;else url=url+'/'+this.gateway.path_params_login;}}else{if(this.gateway.path_params_api){if(this.gateway.path_params_api.startsWith('/'))url=url+this.gateway.path_params_api;else url=url+'/'+this.gateway.path_params_api;}}return url;}},{key:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);}();/**
|
|
913
955
|
* @module purecloud-platform-client-v2/ApiClient
|
|
914
|
-
* @version
|
|
956
|
+
* @version 235.0.0
|
|
915
957
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
916
958
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
917
959
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -980,6 +1022,16 @@ var tempState=this.authData.state;this.authData=localStorage.getItem("".concat(t
|
|
|
980
1022
|
* @description Sets the environment used by the session
|
|
981
1023
|
* @param {string} environment - (Optional, default "mypurecloud.com") Environment the session use, e.g. mypurecloud.ie, mypurecloud.com.au, etc.
|
|
982
1024
|
*/},{key:"setEnvironment",value:function setEnvironment(environment){this.config.setEnvironment(environment);}/**
|
|
1025
|
+
* @description Sets the optional http headers used by the client
|
|
1026
|
+
* @param {object} newHeaders - default headers to be used
|
|
1027
|
+
*/},{key:"setDefaultHeaders",value:function setDefaultHeaders(newHeaders){if(!newHeaders||!(_typeof(newHeaders)==='object')){throw new Error("default headers must be a map");}this.defaultHeaders=newHeaders;}/**
|
|
1028
|
+
* @description Gets the default http headers used by the client
|
|
1029
|
+
*/},{key:"getDefaultHeaders",value:function getDefaultHeaders(){return this.defaultHeaders;}/**
|
|
1030
|
+
* @description Sets the optional Genesys-App http header used by the client
|
|
1031
|
+
* @param {string} headerValue - value for the Genesys-App header
|
|
1032
|
+
*/},{key:"setGenesysAppHeader",value:function setGenesysAppHeader(headerValue){if(!headerValue||!(typeof headerValue==='string'))throw new Error("headerValue must be a non empty string");if(!this.defaultHeaders){this.defaultHeaders={"Genesys-App":headerValue};}else{this.defaultHeaders["Genesys-App"]=headerValue;}}/**
|
|
1033
|
+
* @description Gets the Genesys-App http header used by the client
|
|
1034
|
+
*/},{key:"getGenesysAppHeader",value:function getGenesysAppHeader(){if(this.defaultHeaders&&this.defaultHeaders["Genesys-App"]){return this.defaultHeaders["Genesys-App"];}else{return null;}}/**
|
|
983
1035
|
* @description Sets the dynamic HttpClient used by the client
|
|
984
1036
|
* @param {object} httpClient - HttpClient to be injected
|
|
985
1037
|
*/},{key:"setHttpClient",value:function setHttpClient(httpClient){if(!(httpClient instanceof AbstractHttpClient)){throw new Error("httpclient must be an instance of AbstractHttpClient. See DefaultltHttpClient for a prototype");}this.httpClient=httpClient;}/**
|
|
@@ -1257,7 +1309,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
1257
1309
|
that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);}();var AIStudioApi=/*#__PURE__*/function(){/**
|
|
1258
1310
|
* AIStudio service.
|
|
1259
1311
|
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
1260
|
-
* @version
|
|
1312
|
+
* @version 235.0.0
|
|
1261
1313
|
*//**
|
|
1262
1314
|
* Constructs a new AIStudioApi.
|
|
1263
1315
|
* @alias module:purecloud-platform-client-v2/api/AIStudioApi
|
|
@@ -1408,7 +1460,7 @@ if(summarySettingId===undefined||summarySettingId===null||summarySettingId==='')
|
|
|
1408
1460
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';}return this.apiClient.callApi('/api/v2/conversations/summaries/settings/{summarySettingId}','PUT',{'summarySettingId':summarySettingId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
|
|
1409
1461
|
* AgentAssistants service.
|
|
1410
1462
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
1411
|
-
* @version
|
|
1463
|
+
* @version 235.0.0
|
|
1412
1464
|
*//**
|
|
1413
1465
|
* Constructs a new AgentAssistantsApi.
|
|
1414
1466
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -1539,7 +1591,7 @@ if(queueId===undefined||queueId===null||queueId===''){throw'Missing the required
|
|
|
1539
1591
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantQueue';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}','PUT',{'assistantId':assistantId,'queueId':queueId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentCopilotApi=/*#__PURE__*/function(){/**
|
|
1540
1592
|
* AgentCopilot service.
|
|
1541
1593
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
1542
|
-
* @version
|
|
1594
|
+
* @version 235.0.0
|
|
1543
1595
|
*//**
|
|
1544
1596
|
* Constructs a new AgentCopilotApi.
|
|
1545
1597
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -1566,7 +1618,7 @@ if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing
|
|
|
1566
1618
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantCopilot';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/copilot','PUT',{'assistantId':assistantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentUIApi=/*#__PURE__*/function(){/**
|
|
1567
1619
|
* AgentUI service.
|
|
1568
1620
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
1569
|
-
* @version
|
|
1621
|
+
* @version 235.0.0
|
|
1570
1622
|
*//**
|
|
1571
1623
|
* Constructs a new AgentUIApi.
|
|
1572
1624
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -1600,7 +1652,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
1600
1652
|
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(){/**
|
|
1601
1653
|
* Alerting service.
|
|
1602
1654
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1603
|
-
* @version
|
|
1655
|
+
* @version 235.0.0
|
|
1604
1656
|
*//**
|
|
1605
1657
|
* Constructs a new AlertingApi.
|
|
1606
1658
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -1689,7 +1741,7 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
1689
1741
|
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(){/**
|
|
1690
1742
|
* Analytics service.
|
|
1691
1743
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
1692
|
-
* @version
|
|
1744
|
+
* @version 235.0.0
|
|
1693
1745
|
*//**
|
|
1694
1746
|
* Constructs a new AnalyticsApi.
|
|
1695
1747
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -2465,7 +2517,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
2465
2517
|
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(){/**
|
|
2466
2518
|
* Architect service.
|
|
2467
2519
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
2468
|
-
* @version
|
|
2520
|
+
* @version 235.0.0
|
|
2469
2521
|
*//**
|
|
2470
2522
|
* Constructs a new ArchitectApi.
|
|
2471
2523
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -3599,7 +3651,7 @@ if(milestoneId===undefined||milestoneId===null||milestoneId===''){throw'Missing
|
|
|
3599
3651
|
if(flowOutcomeId===undefined||flowOutcomeId===null||flowOutcomeId===''){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
|
|
3600
3652
|
* Audit service.
|
|
3601
3653
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
3602
|
-
* @version
|
|
3654
|
+
* @version 235.0.0
|
|
3603
3655
|
*//**
|
|
3604
3656
|
* Constructs a new AuditApi.
|
|
3605
3657
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -3649,7 +3701,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3649
3701
|
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(){/**
|
|
3650
3702
|
* Authorization service.
|
|
3651
3703
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
3652
|
-
* @version
|
|
3704
|
+
* @version 235.0.0
|
|
3653
3705
|
*//**
|
|
3654
3706
|
* Constructs a new AuthorizationApi.
|
|
3655
3707
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -4084,7 +4136,7 @@ if(subjectId===undefined||subjectId===null||subjectId===''){throw'Missing the re
|
|
|
4084
4136
|
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(){/**
|
|
4085
4137
|
* Billing service.
|
|
4086
4138
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
4087
|
-
* @version
|
|
4139
|
+
* @version 235.0.0
|
|
4088
4140
|
*//**
|
|
4089
4141
|
* Constructs a new BillingApi.
|
|
4090
4142
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -4161,7 +4213,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
4161
4213
|
if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BusinessRulesApi=/*#__PURE__*/function(){/**
|
|
4162
4214
|
* BusinessRules service.
|
|
4163
4215
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
4164
|
-
* @version
|
|
4216
|
+
* @version 235.0.0
|
|
4165
4217
|
*//**
|
|
4166
4218
|
* Constructs a new BusinessRulesApi.
|
|
4167
4219
|
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
@@ -4382,7 +4434,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
4382
4434
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
4383
4435
|
* CarrierServices service.
|
|
4384
4436
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
4385
|
-
* @version
|
|
4437
|
+
* @version 235.0.0
|
|
4386
4438
|
*//**
|
|
4387
4439
|
* Constructs a new CarrierServicesApi.
|
|
4388
4440
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -4402,7 +4454,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
4402
4454
|
*/},{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(){/**
|
|
4403
4455
|
* Chat service.
|
|
4404
4456
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
4405
|
-
* @version
|
|
4457
|
+
* @version 235.0.0
|
|
4406
4458
|
*//**
|
|
4407
4459
|
* Constructs a new ChatApi.
|
|
4408
4460
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -4633,7 +4685,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4633
4685
|
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(){/**
|
|
4634
4686
|
* Coaching service.
|
|
4635
4687
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
4636
|
-
* @version
|
|
4688
|
+
* @version 235.0.0
|
|
4637
4689
|
*//**
|
|
4638
4690
|
* Constructs a new CoachingApi.
|
|
4639
4691
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -4725,6 +4777,11 @@ if(notificationId===undefined||notificationId===null||notificationId===''){throw
|
|
|
4725
4777
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
4726
4778
|
* @param {Array.<String>} opts.expand Indicates a field in the response which should be expanded.
|
|
4727
4779
|
*/},{key:"getCoachingNotifications",value:function getCoachingNotifications(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/coaching/notifications','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4780
|
+
* Retrieve the status of the job for the slots where a coaching appointment can be scheduled.
|
|
4781
|
+
*
|
|
4782
|
+
* @param {String} jobId The ID of job
|
|
4783
|
+
*/},{key:"getCoachingScheduleslotsJob",value:function getCoachingScheduleslotsJob(jobId){// verify the required parameter 'jobId' is set
|
|
4784
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getCoachingScheduleslotsJob';}return this.apiClient.callApi('/api/v2/coaching/scheduleslots/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4728
4785
|
* Update an existing appointment
|
|
4729
4786
|
* Permission not required if you are the creator or facilitator of the appointment
|
|
4730
4787
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
@@ -4779,6 +4836,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4779
4836
|
* @param {Object} body Aggregate Request
|
|
4780
4837
|
*/},{key:"postCoachingAppointmentsAggregatesQuery",value:function postCoachingAppointmentsAggregatesQuery(body){// verify the required parameter 'body' is set
|
|
4781
4838
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCoachingAppointmentsAggregatesQuery';}return this.apiClient.callApi('/api/v2/coaching/appointments/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4839
|
+
* Start job to retrieve the slots where a coaching appointment can be scheduled.
|
|
4840
|
+
*
|
|
4841
|
+
* @param {Object} body The slots search request
|
|
4842
|
+
*/},{key:"postCoachingScheduleslotsJobs",value:function postCoachingScheduleslotsJobs(body){// verify the required parameter 'body' is set
|
|
4843
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCoachingScheduleslotsJobs';}return this.apiClient.callApi('/api/v2/coaching/scheduleslots/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4782
4844
|
* Get list of possible slots where a coaching appointment can be scheduled.
|
|
4783
4845
|
*
|
|
4784
4846
|
* @param {Object} body The slot search request
|
|
@@ -4786,7 +4848,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4786
4848
|
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(){/**
|
|
4787
4849
|
* ContentManagement service.
|
|
4788
4850
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
4789
|
-
* @version
|
|
4851
|
+
* @version 235.0.0
|
|
4790
4852
|
*//**
|
|
4791
4853
|
* Constructs a new ContentManagementApi.
|
|
4792
4854
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -5068,7 +5130,7 @@ if(tagId===undefined||tagId===null||tagId===''){throw'Missing the required param
|
|
|
5068
5130
|
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(){/**
|
|
5069
5131
|
* Conversations service.
|
|
5070
5132
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
5071
|
-
* @version
|
|
5133
|
+
* @version 235.0.0
|
|
5072
5134
|
*//**
|
|
5073
5135
|
* Constructs a new ConversationsApi.
|
|
5074
5136
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -5220,7 +5282,6 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
5220
5282
|
* @param {String} conversationId conversationId
|
|
5221
5283
|
* @param {String} communicationId communicationId
|
|
5222
5284
|
* @param {String} messageId messageId
|
|
5223
|
-
* getConversationCommunicationInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5224
5285
|
*/},{key:"getConversationCommunicationInternalmessage",value:function getConversationCommunicationInternalmessage(conversationId,communicationId,messageId){// verify the required parameter 'conversationId' is set
|
|
5225
5286
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';}// verify the required parameter 'communicationId' is set
|
|
5226
5287
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';}// verify the required parameter 'messageId' is set
|
|
@@ -5232,7 +5293,6 @@ if(messageId===undefined||messageId===null||messageId===''){throw'Missing the re
|
|
|
5232
5293
|
* @param {Object} opts Optional parameters
|
|
5233
5294
|
* @param {Number} opts.pageSize Indicates maximum number of results in response. Default page size is 25 results. The maximum page size is 200. (default to 25)
|
|
5234
5295
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
5235
|
-
* getConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5236
5296
|
*/},{key:"getConversationCommunicationInternalmessages",value:function getConversationCommunicationInternalmessages(conversationId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5237
5297
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';}// verify the required parameter 'communicationId' is set
|
|
5238
5298
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages','GET',{'conversationId':conversationId,'communicationId':communicationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -5539,12 +5599,10 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
5539
5599
|
* Get internal message conversation
|
|
5540
5600
|
*
|
|
5541
5601
|
* @param {String} conversationId conversationId
|
|
5542
|
-
* getConversationsInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5543
5602
|
*/},{key:"getConversationsInternalmessage",value:function getConversationsInternalmessage(conversationId){// verify the required parameter 'conversationId' is set
|
|
5544
5603
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsInternalmessage';}return this.apiClient.callApi('/api/v2/conversations/internalmessages/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5545
5604
|
* Get active internal message conversations for the logged in user
|
|
5546
5605
|
*
|
|
5547
|
-
* getConversationsInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5548
5606
|
*/},{key:"getConversationsInternalmessages",value:function getConversationsInternalmessages(){return this.apiClient.callApi('/api/v2/conversations/internalmessages','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5549
5607
|
* Get the encryption key configurations
|
|
5550
5608
|
*
|
|
@@ -6332,7 +6390,6 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
6332
6390
|
* @param {String} conversationId conversationId
|
|
6333
6391
|
* @param {String} communicationId communicationId
|
|
6334
6392
|
* @param {Object} body Message
|
|
6335
|
-
* postConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6336
6393
|
*/},{key:"postConversationCommunicationInternalmessages",value:function postConversationCommunicationInternalmessages(conversationId,communicationId,body){// verify the required parameter 'conversationId' is set
|
|
6337
6394
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';}// verify the required parameter 'communicationId' is set
|
|
6338
6395
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';}// verify the required parameter 'body' is set
|
|
@@ -6365,7 +6422,6 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
6365
6422
|
* @param {String} conversationId conversation ID
|
|
6366
6423
|
* @param {String} participantId participant ID
|
|
6367
6424
|
* @param {Object} body Confer request
|
|
6368
|
-
* postConversationParticipantInternalmessagesUsersCommunications is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6369
6425
|
*/},{key:"postConversationParticipantInternalmessagesUsersCommunications",value:function postConversationParticipantInternalmessagesUsersCommunications(conversationId,participantId,body){// verify the required parameter 'conversationId' is set
|
|
6370
6426
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';}// verify the required parameter 'participantId' is set
|
|
6371
6427
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';}// verify the required parameter 'body' is set
|
|
@@ -6844,7 +6900,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6844
6900
|
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';}// verify the required parameter 'body' is set
|
|
6845
6901
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenStructuredResponse';}return this.apiClient.callApi('/api/v2/conversations/messages/{integrationId}/inbound/open/structured/response','POST',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6846
6902
|
* Get messages in batch
|
|
6847
|
-
* The path parameter [conversationId] should contain the conversationId of the conversation being filtered. The body should contain the messageId(s) of messages being requested. For example: ["a3069a33b-bbb1-4703-9d68-061d9e9db96e", "55bc6be3-078c-4a49-a4e6-1e05776ed7e8"]
|
|
6903
|
+
* The path parameter [conversationId] should contain the conversationId of the conversation being filtered. The body should contain the messageId(s) of messages being requested. For example: ["a3069a33b-bbb1-4703-9d68-061d9e9db96e", "55bc6be3-078c-4a49-a4e6-1e05776ed7e8"]. The max messages you can request in the body is 1,000. Best practice is to limit to only the messages you need in each request, rather than request large batches by default.
|
|
6848
6904
|
* @param {String} conversationId
|
|
6849
6905
|
* @param {Object} opts Optional parameters
|
|
6850
6906
|
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
|
|
@@ -7166,7 +7222,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
7166
7222
|
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(){/**
|
|
7167
7223
|
* DataExtensions service.
|
|
7168
7224
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
7169
|
-
* @version
|
|
7225
|
+
* @version 235.0.0
|
|
7170
7226
|
*//**
|
|
7171
7227
|
* Constructs a new DataExtensionsApi.
|
|
7172
7228
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -7187,7 +7243,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
|
|
|
7187
7243
|
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataPrivacyApi=/*#__PURE__*/function(){/**
|
|
7188
7244
|
* DataPrivacy service.
|
|
7189
7245
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
7190
|
-
* @version
|
|
7246
|
+
* @version 235.0.0
|
|
7191
7247
|
*//**
|
|
7192
7248
|
* Constructs a new DataPrivacyApi.
|
|
7193
7249
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -7227,7 +7283,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7227
7283
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';}return this.apiClient.callApi('/api/v2/dataprivacy/maskingrules/validate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
|
|
7228
7284
|
* Downloads service.
|
|
7229
7285
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
7230
|
-
* @version
|
|
7286
|
+
* @version 235.0.0
|
|
7231
7287
|
*//**
|
|
7232
7288
|
* Constructs a new DownloadsApi.
|
|
7233
7289
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -7246,7 +7302,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7246
7302
|
if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
|
|
7247
7303
|
* Emails service.
|
|
7248
7304
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
7249
|
-
* @version
|
|
7305
|
+
* @version 235.0.0
|
|
7250
7306
|
*//**
|
|
7251
7307
|
* Constructs a new EmailsApi.
|
|
7252
7308
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -7275,7 +7331,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
7275
7331
|
*/},{key:"patchEmailsSettingsThreading",value:function patchEmailsSettingsThreading(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings/threading','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
|
|
7276
7332
|
* EmployeeEngagement service.
|
|
7277
7333
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
7278
|
-
* @version
|
|
7334
|
+
* @version 235.0.0
|
|
7279
7335
|
*//**
|
|
7280
7336
|
* Constructs a new EmployeeEngagementApi.
|
|
7281
7337
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -7313,7 +7369,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7313
7369
|
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(){/**
|
|
7314
7370
|
* Events service.
|
|
7315
7371
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
7316
|
-
* @version
|
|
7372
|
+
* @version 235.0.0
|
|
7317
7373
|
*//**
|
|
7318
7374
|
* Constructs a new EventsApi.
|
|
7319
7375
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -7338,7 +7394,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7338
7394
|
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(){/**
|
|
7339
7395
|
* ExternalContacts service.
|
|
7340
7396
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
7341
|
-
* @version
|
|
7397
|
+
* @version 235.0.0
|
|
7342
7398
|
*//**
|
|
7343
7399
|
* Constructs a new ExternalContactsApi.
|
|
7344
7400
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -8088,7 +8144,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
|
|
|
8088
8144
|
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(){/**
|
|
8089
8145
|
* Fax service.
|
|
8090
8146
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
8091
|
-
* @version
|
|
8147
|
+
* @version 235.0.0
|
|
8092
8148
|
*//**
|
|
8093
8149
|
* Constructs a new FaxApi.
|
|
8094
8150
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -8137,7 +8193,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8137
8193
|
*/},{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(){/**
|
|
8138
8194
|
* Flows service.
|
|
8139
8195
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
8140
|
-
* @version
|
|
8196
|
+
* @version 235.0.0
|
|
8141
8197
|
*//**
|
|
8142
8198
|
* Constructs a new FlowsApi.
|
|
8143
8199
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -8191,7 +8247,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8191
8247
|
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(){/**
|
|
8192
8248
|
* Gamification service.
|
|
8193
8249
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
8194
|
-
* @version
|
|
8250
|
+
* @version 235.0.0
|
|
8195
8251
|
*//**
|
|
8196
8252
|
* Constructs a new GamificationApi.
|
|
8197
8253
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -8353,6 +8409,20 @@ if(comparativePeriodStartWorkday===undefined||comparativePeriodStartWorkday===nu
|
|
|
8353
8409
|
if(comparativePeriodEndWorkday===undefined||comparativePeriodEndWorkday===null){throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsGroupsTrendsAll';}// verify the required parameter 'primaryPeriodStartWorkday' is set
|
|
8354
8410
|
if(primaryPeriodStartWorkday===undefined||primaryPeriodStartWorkday===null){throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsGroupsTrendsAll';}// verify the required parameter 'primaryPeriodEndWorkday' is set
|
|
8355
8411
|
if(primaryPeriodEndWorkday===undefined||primaryPeriodEndWorkday===null){throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsGroupsTrendsAll';}return this.apiClient.callApi('/api/v2/gamification/insights/groups/trends/all','GET',{},{'filterType':filterType,'filterId':filterId,'granularity':granularity,'comparativePeriodStartWorkday':comparativePeriodStartWorkday,'comparativePeriodEndWorkday':comparativePeriodEndWorkday,'primaryPeriodStartWorkday':primaryPeriodStartWorkday,'primaryPeriodEndWorkday':primaryPeriodEndWorkday},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8412
|
+
* Query managers in a profile during a period of time
|
|
8413
|
+
*
|
|
8414
|
+
* @param {Object} filterType Filter type for the query request.
|
|
8415
|
+
* @param {String} filterId ID for the filter type.
|
|
8416
|
+
* @param {Object} granularity Granularity
|
|
8417
|
+
* @param {String} startWorkday The start work day. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
8418
|
+
* @param {Object} opts Optional parameters
|
|
8419
|
+
* @param {Number} opts.pageSize Page size (default to 100)
|
|
8420
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
8421
|
+
*/},{key:"getGamificationInsightsManagers",value:function getGamificationInsightsManagers(filterType,filterId,granularity,startWorkday,opts){opts=opts||{};// verify the required parameter 'filterType' is set
|
|
8422
|
+
if(filterType===undefined||filterType===null){throw'Missing the required parameter "filterType" when calling getGamificationInsightsManagers';}// verify the required parameter 'filterId' is set
|
|
8423
|
+
if(filterId===undefined||filterId===null){throw'Missing the required parameter "filterId" when calling getGamificationInsightsManagers';}// verify the required parameter 'granularity' is set
|
|
8424
|
+
if(granularity===undefined||granularity===null){throw'Missing the required parameter "granularity" when calling getGamificationInsightsManagers';}// verify the required parameter 'startWorkday' is set
|
|
8425
|
+
if(startWorkday===undefined||startWorkday===null){throw'Missing the required parameter "startWorkday" when calling getGamificationInsightsManagers';}return this.apiClient.callApi('/api/v2/gamification/insights/managers','GET',{},{'filterType':filterType,'filterId':filterId,'granularity':granularity,'startWorkday':startWorkday,'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8356
8426
|
* Query users in a profile during a period of time
|
|
8357
8427
|
*
|
|
8358
8428
|
* @param {Object} filterType Filter type for the query request.
|
|
@@ -8848,7 +8918,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8848
8918
|
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(){/**
|
|
8849
8919
|
* GeneralDataProtectionRegulation service.
|
|
8850
8920
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
8851
|
-
* @version
|
|
8921
|
+
* @version 235.0.0
|
|
8852
8922
|
*//**
|
|
8853
8923
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
8854
8924
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -8883,7 +8953,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
8883
8953
|
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(){/**
|
|
8884
8954
|
* Geolocation service.
|
|
8885
8955
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
8886
|
-
* @version
|
|
8956
|
+
* @version 235.0.0
|
|
8887
8957
|
*//**
|
|
8888
8958
|
* Constructs a new GeolocationApi.
|
|
8889
8959
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -8917,7 +8987,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
8917
8987
|
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(){/**
|
|
8918
8988
|
* Greetings service.
|
|
8919
8989
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
8920
|
-
* @version
|
|
8990
|
+
* @version 235.0.0
|
|
8921
8991
|
*//**
|
|
8922
8992
|
* Constructs a new GreetingsApi.
|
|
8923
8993
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -9045,7 +9115,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
9045
9115
|
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(){/**
|
|
9046
9116
|
* Groups service.
|
|
9047
9117
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
9048
|
-
* @version
|
|
9118
|
+
* @version 235.0.0
|
|
9049
9119
|
*//**
|
|
9050
9120
|
* Constructs a new GroupsApi.
|
|
9051
9121
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -9178,7 +9248,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
|
|
|
9178
9248
|
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(){/**
|
|
9179
9249
|
* IdentityProvider service.
|
|
9180
9250
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
9181
|
-
* @version
|
|
9251
|
+
* @version 235.0.0
|
|
9182
9252
|
*//**
|
|
9183
9253
|
* Constructs a new IdentityProviderApi.
|
|
9184
9254
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -9334,7 +9404,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9334
9404
|
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(){/**
|
|
9335
9405
|
* InfrastructureAsCode service.
|
|
9336
9406
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
9337
|
-
* @version
|
|
9407
|
+
* @version 235.0.0
|
|
9338
9408
|
*//**
|
|
9339
9409
|
* Constructs a new InfrastructureAsCodeApi.
|
|
9340
9410
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -9388,7 +9458,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
9388
9458
|
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(){/**
|
|
9389
9459
|
* Integrations service.
|
|
9390
9460
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
9391
|
-
* @version
|
|
9461
|
+
* @version 235.0.0
|
|
9392
9462
|
*//**
|
|
9393
9463
|
* Constructs a new IntegrationsApi.
|
|
9394
9464
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -10078,7 +10148,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
|
|
|
10078
10148
|
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(){/**
|
|
10079
10149
|
* Journey service.
|
|
10080
10150
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
10081
|
-
* @version
|
|
10151
|
+
* @version 235.0.0
|
|
10082
10152
|
*//**
|
|
10083
10153
|
* Constructs a new JourneyApi.
|
|
10084
10154
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -10587,7 +10657,7 @@ if(versionId===undefined||versionId===null||versionId===''){throw'Missing the re
|
|
|
10587
10657
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putJourneyViewVersion';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{versionId}','PUT',{'viewId':viewId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
|
|
10588
10658
|
* Knowledge service.
|
|
10589
10659
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
10590
|
-
* @version
|
|
10660
|
+
* @version 235.0.0
|
|
10591
10661
|
*//**
|
|
10592
10662
|
* Constructs a new KnowledgeApi.
|
|
10593
10663
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -11415,7 +11485,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
11415
11485
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}','PUT',{'knowledgeBaseId':knowledgeBaseId,'sourceId':sourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
|
|
11416
11486
|
* LanguageUnderstanding service.
|
|
11417
11487
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
11418
|
-
* @version
|
|
11488
|
+
* @version 235.0.0
|
|
11419
11489
|
*//**
|
|
11420
11490
|
* Constructs a new LanguageUnderstandingApi.
|
|
11421
11491
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -11724,7 +11794,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
|
|
|
11724
11794
|
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(){/**
|
|
11725
11795
|
* Languages service.
|
|
11726
11796
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
11727
|
-
* @version
|
|
11797
|
+
* @version 235.0.0
|
|
11728
11798
|
*//**
|
|
11729
11799
|
* Constructs a new LanguagesApi.
|
|
11730
11800
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -11779,7 +11849,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
11779
11849
|
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(){/**
|
|
11780
11850
|
* Learning service.
|
|
11781
11851
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
11782
|
-
* @version
|
|
11852
|
+
* @version 235.0.0
|
|
11783
11853
|
*//**
|
|
11784
11854
|
* Constructs a new LearningApi.
|
|
11785
11855
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -11917,6 +11987,11 @@ if(userIds===undefined||userIds===null){throw'Missing the required parameter "us
|
|
|
11917
11987
|
* @param {String} coverArtId Key identifier for the cover art
|
|
11918
11988
|
*/},{key:"getLearningModulesCoverartCoverArtId",value:function getLearningModulesCoverartCoverArtId(coverArtId){// verify the required parameter 'coverArtId' is set
|
|
11919
11989
|
if(coverArtId===undefined||coverArtId===null||coverArtId===''){throw'Missing the required parameter "coverArtId" when calling getLearningModulesCoverartCoverArtId';}return this.apiClient.callApi('/api/v2/learning/modules/coverart/{coverArtId}','GET',{'coverArtId':coverArtId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11990
|
+
* Retrieve the status of the job for the slots where a learning activity can be scheduled.
|
|
11991
|
+
*
|
|
11992
|
+
* @param {String} jobId The ID of the job
|
|
11993
|
+
*/},{key:"getLearningScheduleslotsJob",value:function getLearningScheduleslotsJob(jobId){// verify the required parameter 'jobId' is set
|
|
11994
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getLearningScheduleslotsJob';}return this.apiClient.callApi('/api/v2/learning/scheduleslots/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11920
11995
|
* Get Learning SCORM Result
|
|
11921
11996
|
*
|
|
11922
11997
|
* @param {String} scormId The ID of the SCORM package
|
|
@@ -12017,6 +12092,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12017
12092
|
if(pageSize===undefined||pageSize===null){throw'Missing the required parameter "pageSize" when calling postLearningRulesQuery';}// verify the required parameter 'pageNumber' is set
|
|
12018
12093
|
if(pageNumber===undefined||pageNumber===null){throw'Missing the required parameter "pageNumber" when calling postLearningRulesQuery';}// verify the required parameter 'body' is set
|
|
12019
12094
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLearningRulesQuery';}return this.apiClient.callApi('/api/v2/learning/rules/query','POST',{},{'pageSize':pageSize,'pageNumber':pageNumber},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12095
|
+
* Start job to retrieve slots where a learning activity can be scheduled.
|
|
12096
|
+
*
|
|
12097
|
+
* @param {Object} body The slots search request
|
|
12098
|
+
*/},{key:"postLearningScheduleslotsJobs",value:function postLearningScheduleslotsJobs(body){// verify the required parameter 'body' is set
|
|
12099
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLearningScheduleslotsJobs';}return this.apiClient.callApi('/api/v2/learning/scheduleslots/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12020
12100
|
* Get list of possible slots where a learning activity can be scheduled.
|
|
12021
12101
|
*
|
|
12022
12102
|
* @param {Object} body The slot search request
|
|
@@ -12052,7 +12132,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
|
|
|
12052
12132
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{'assign':opts['assign']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
|
|
12053
12133
|
* License service.
|
|
12054
12134
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
12055
|
-
* @version
|
|
12135
|
+
* @version 235.0.0
|
|
12056
12136
|
*//**
|
|
12057
12137
|
* Constructs a new LicenseApi.
|
|
12058
12138
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -12106,7 +12186,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
|
|
|
12106
12186
|
*/},{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(){/**
|
|
12107
12187
|
* Locations service.
|
|
12108
12188
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
12109
|
-
* @version
|
|
12189
|
+
* @version 235.0.0
|
|
12110
12190
|
*//**
|
|
12111
12191
|
* Constructs a new LocationsApi.
|
|
12112
12192
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -12165,7 +12245,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12165
12245
|
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(){/**
|
|
12166
12246
|
* LogCapture service.
|
|
12167
12247
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
12168
|
-
* @version
|
|
12248
|
+
* @version 235.0.0
|
|
12169
12249
|
*//**
|
|
12170
12250
|
* Constructs a new LogCaptureApi.
|
|
12171
12251
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -12214,7 +12294,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
12214
12294
|
if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
|
|
12215
12295
|
* Messaging service.
|
|
12216
12296
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
12217
|
-
* @version
|
|
12297
|
+
* @version 235.0.0
|
|
12218
12298
|
*//**
|
|
12219
12299
|
* Constructs a new MessagingApi.
|
|
12220
12300
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -12304,7 +12384,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12304
12384
|
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(){/**
|
|
12305
12385
|
* MobileDevices service.
|
|
12306
12386
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
12307
|
-
* @version
|
|
12387
|
+
* @version 235.0.0
|
|
12308
12388
|
*//**
|
|
12309
12389
|
* Constructs a new MobileDevicesApi.
|
|
12310
12390
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -12343,7 +12423,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12343
12423
|
if(deviceId===undefined||deviceId===null||deviceId===''){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
|
|
12344
12424
|
* Notifications service.
|
|
12345
12425
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
12346
|
-
* @version
|
|
12426
|
+
* @version 235.0.0
|
|
12347
12427
|
*//**
|
|
12348
12428
|
* Constructs a new NotificationsApi.
|
|
12349
12429
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -12400,7 +12480,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
|
|
|
12400
12480
|
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(){/**
|
|
12401
12481
|
* OAuth service.
|
|
12402
12482
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
12403
|
-
* @version
|
|
12483
|
+
* @version 235.0.0
|
|
12404
12484
|
*//**
|
|
12405
12485
|
* Constructs a new OAuthApi.
|
|
12406
12486
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -12485,7 +12565,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
12485
12565
|
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(){/**
|
|
12486
12566
|
* Objects service.
|
|
12487
12567
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
12488
|
-
* @version
|
|
12568
|
+
* @version 235.0.0
|
|
12489
12569
|
*//**
|
|
12490
12570
|
* Constructs a new ObjectsApi.
|
|
12491
12571
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -12571,7 +12651,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
|
|
|
12571
12651
|
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(){/**
|
|
12572
12652
|
* OperationalEvents service.
|
|
12573
12653
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
12574
|
-
* @version
|
|
12654
|
+
* @version 235.0.0
|
|
12575
12655
|
*//**
|
|
12576
12656
|
* Constructs a new OperationalEventsApi.
|
|
12577
12657
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -12602,7 +12682,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
12602
12682
|
*/},{key:"postUsageEventsQuery",value:function postUsageEventsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/usage/events/query','POST',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
|
|
12603
12683
|
* Organization service.
|
|
12604
12684
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
12605
|
-
* @version
|
|
12685
|
+
* @version 235.0.0
|
|
12606
12686
|
*//**
|
|
12607
12687
|
* Constructs a new OrganizationApi.
|
|
12608
12688
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -12707,7 +12787,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12707
12787
|
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(){/**
|
|
12708
12788
|
* OrganizationAuthorization service.
|
|
12709
12789
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
12710
|
-
* @version
|
|
12790
|
+
* @version 235.0.0
|
|
12711
12791
|
*//**
|
|
12712
12792
|
* Constructs a new OrganizationAuthorizationApi.
|
|
12713
12793
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -13041,7 +13121,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
13041
13121
|
if(trusteeUserId===undefined||trusteeUserId===null||trusteeUserId===''){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
|
|
13042
13122
|
* Outbound service.
|
|
13043
13123
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
13044
|
-
* @version
|
|
13124
|
+
* @version 235.0.0
|
|
13045
13125
|
*//**
|
|
13046
13126
|
* Constructs a new OutboundApi.
|
|
13047
13127
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -14197,7 +14277,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14197
14277
|
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(){/**
|
|
14198
14278
|
* Presence service.
|
|
14199
14279
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
14200
|
-
* @version
|
|
14280
|
+
* @version 235.0.0
|
|
14201
14281
|
*//**
|
|
14202
14282
|
* Constructs a new PresenceApi.
|
|
14203
14283
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -14370,7 +14450,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14370
14450
|
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(){/**
|
|
14371
14451
|
* ProcessAutomation service.
|
|
14372
14452
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
14373
|
-
* @version
|
|
14453
|
+
* @version 235.0.0
|
|
14374
14454
|
*//**
|
|
14375
14455
|
* Constructs a new ProcessAutomationApi.
|
|
14376
14456
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -14433,7 +14513,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
|
|
|
14433
14513
|
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(){/**
|
|
14434
14514
|
* Quality service.
|
|
14435
14515
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
14436
|
-
* @version
|
|
14516
|
+
* @version 235.0.0
|
|
14437
14517
|
*//**
|
|
14438
14518
|
* Constructs a new QualityApi.
|
|
14439
14519
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -14747,20 +14827,6 @@ if(formId===undefined||formId===null||formId===''){throw'Missing the required pa
|
|
|
14747
14827
|
* @param {String} opts.name Name
|
|
14748
14828
|
* @param {Boolean} opts.onlyLatestPerContext onlyLatestPerContext (default to false)
|
|
14749
14829
|
*/},{key:"getQualityPublishedformsEvaluations",value:function getQualityPublishedformsEvaluations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/publishedforms/evaluations','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'name':opts['name'],'onlyLatestPerContext':opts['onlyLatestPerContext']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14750
|
-
* Get the most recent published version of an evaluation form across any division.
|
|
14751
|
-
*
|
|
14752
|
-
* @param {String} evaluationFormId Evaluation Form ID
|
|
14753
|
-
* getQualityPublishedformsEvaluationsDivisionview is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
14754
|
-
*/},{key:"getQualityPublishedformsEvaluationsDivisionview",value:function getQualityPublishedformsEvaluationsDivisionview(evaluationFormId){// verify the required parameter 'evaluationFormId' is set
|
|
14755
|
-
if(evaluationFormId===undefined||evaluationFormId===null||evaluationFormId===''){throw'Missing the required parameter "evaluationFormId" when calling getQualityPublishedformsEvaluationsDivisionview';}return this.apiClient.callApi('/api/v2/quality/publishedforms/evaluations/divisionviews/{evaluationFormId}','GET',{'evaluationFormId':evaluationFormId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14756
|
-
* Get the published evaluation forms across any division.
|
|
14757
|
-
*
|
|
14758
|
-
* @param {Object} opts Optional parameters
|
|
14759
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
14760
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
14761
|
-
* @param {String} opts.name Name
|
|
14762
|
-
* getQualityPublishedformsEvaluationsDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
14763
|
-
*/},{key:"getQualityPublishedformsEvaluationsDivisionviews",value:function getQualityPublishedformsEvaluationsDivisionviews(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/publishedforms/evaluations/divisionviews','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14764
14830
|
* Get the most recent published version of a survey form.
|
|
14765
14831
|
*
|
|
14766
14832
|
* @param {String} formId Form ID
|
|
@@ -14774,20 +14840,6 @@ if(formId===undefined||formId===null||formId===''){throw'Missing the required pa
|
|
|
14774
14840
|
* @param {String} opts.name Name
|
|
14775
14841
|
* @param {Boolean} opts.onlyLatestEnabledPerContext onlyLatestEnabledPerContext (default to false)
|
|
14776
14842
|
*/},{key:"getQualityPublishedformsSurveys",value:function getQualityPublishedformsSurveys(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/publishedforms/surveys','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'name':opts['name'],'onlyLatestEnabledPerContext':opts['onlyLatestEnabledPerContext']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14777
|
-
* Get the most recent published version of an enabled survey form across any division.
|
|
14778
|
-
*
|
|
14779
|
-
* @param {String} surveyFormId Survey Form ID
|
|
14780
|
-
* getQualityPublishedformsSurveysDivisionview is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
14781
|
-
*/},{key:"getQualityPublishedformsSurveysDivisionview",value:function getQualityPublishedformsSurveysDivisionview(surveyFormId){// verify the required parameter 'surveyFormId' is set
|
|
14782
|
-
if(surveyFormId===undefined||surveyFormId===null||surveyFormId===''){throw'Missing the required parameter "surveyFormId" when calling getQualityPublishedformsSurveysDivisionview';}return this.apiClient.callApi('/api/v2/quality/publishedforms/surveys/divisionviews/{surveyFormId}','GET',{'surveyFormId':surveyFormId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14783
|
-
* Get the published and enabled survey forms across any division.
|
|
14784
|
-
*
|
|
14785
|
-
* @param {Object} opts Optional parameters
|
|
14786
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
14787
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
14788
|
-
* @param {String} opts.name Name
|
|
14789
|
-
* getQualityPublishedformsSurveysDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
14790
|
-
*/},{key:"getQualityPublishedformsSurveysDivisionviews",value:function getQualityPublishedformsSurveysDivisionviews(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/publishedforms/surveys/divisionviews','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14791
14843
|
* Get a survey for a conversation
|
|
14792
14844
|
*
|
|
14793
14845
|
* @param {String} surveyId surveyId
|
|
@@ -14951,7 +15003,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
14951
15003
|
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(){/**
|
|
14952
15004
|
* Recording service.
|
|
14953
15005
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
14954
|
-
* @version
|
|
15006
|
+
* @version 235.0.0
|
|
14955
15007
|
*//**
|
|
14956
15008
|
* Constructs a new RecordingApi.
|
|
14957
15009
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -15350,7 +15402,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15350
15402
|
*/},{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(){/**
|
|
15351
15403
|
* ResponseManagement service.
|
|
15352
15404
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
15353
|
-
* @version
|
|
15405
|
+
* @version 235.0.0
|
|
15354
15406
|
*//**
|
|
15355
15407
|
* Constructs a new ResponseManagementApi.
|
|
15356
15408
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -15471,7 +15523,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
|
|
|
15471
15523
|
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(){/**
|
|
15472
15524
|
* Routing service.
|
|
15473
15525
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
15474
|
-
* @version
|
|
15526
|
+
* @version 235.0.0
|
|
15475
15527
|
*//**
|
|
15476
15528
|
* Constructs a new RoutingApi.
|
|
15477
15529
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -16562,7 +16614,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
16562
16614
|
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(){/**
|
|
16563
16615
|
* SCIM service.
|
|
16564
16616
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
16565
|
-
* @version
|
|
16617
|
+
* @version 235.0.0
|
|
16566
16618
|
*//**
|
|
16567
16619
|
* Constructs a new SCIMApi.
|
|
16568
16620
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -16787,7 +16839,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
16787
16839
|
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(){/**
|
|
16788
16840
|
* ScreenRecording service.
|
|
16789
16841
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
16790
|
-
* @version
|
|
16842
|
+
* @version 235.0.0
|
|
16791
16843
|
*//**
|
|
16792
16844
|
* Constructs a new ScreenRecordingApi.
|
|
16793
16845
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -16802,7 +16854,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16802
16854
|
*/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(){/**
|
|
16803
16855
|
* Scripts service.
|
|
16804
16856
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
16805
|
-
* @version
|
|
16857
|
+
* @version 235.0.0
|
|
16806
16858
|
*//**
|
|
16807
16859
|
* Constructs a new ScriptsApi.
|
|
16808
16860
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -16948,7 +17000,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
|
|
|
16948
17000
|
*/},{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(){/**
|
|
16949
17001
|
* Search service.
|
|
16950
17002
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
16951
|
-
* @version
|
|
17003
|
+
* @version 235.0.0
|
|
16952
17004
|
*//**
|
|
16953
17005
|
* Constructs a new SearchApi.
|
|
16954
17006
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -17107,7 +17159,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17107
17159
|
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(){/**
|
|
17108
17160
|
* Settings service.
|
|
17109
17161
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
17110
|
-
* @version
|
|
17162
|
+
* @version 235.0.0
|
|
17111
17163
|
*//**
|
|
17112
17164
|
* Constructs a new SettingsApi.
|
|
17113
17165
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -17179,7 +17231,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
17179
17231
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SocialMediaApi=/*#__PURE__*/function(){/**
|
|
17180
17232
|
* SocialMedia service.
|
|
17181
17233
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
17182
|
-
* @version
|
|
17234
|
+
* @version 235.0.0
|
|
17183
17235
|
*//**
|
|
17184
17236
|
* Constructs a new SocialMediaApi.
|
|
17185
17237
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -17594,7 +17646,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
17594
17646
|
if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null||twitterIngestionRuleId===''){throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PUT',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
17595
17647
|
* SpeechTextAnalytics service.
|
|
17596
17648
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
17597
|
-
* @version
|
|
17649
|
+
* @version 235.0.0
|
|
17598
17650
|
*//**
|
|
17599
17651
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
17600
17652
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -17964,7 +18016,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
17964
18016
|
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(){/**
|
|
17965
18017
|
* Stations service.
|
|
17966
18018
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
17967
|
-
* @version
|
|
18019
|
+
* @version 235.0.0
|
|
17968
18020
|
*//**
|
|
17969
18021
|
* Constructs a new StationsApi.
|
|
17970
18022
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -17996,7 +18048,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
|
|
|
17996
18048
|
*/},{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(){/**
|
|
17997
18049
|
* Suggest service.
|
|
17998
18050
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
17999
|
-
* @version
|
|
18051
|
+
* @version 235.0.0
|
|
18000
18052
|
*//**
|
|
18001
18053
|
* Constructs a new SuggestApi.
|
|
18002
18054
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -18036,7 +18088,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18036
18088
|
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(){/**
|
|
18037
18089
|
* TaskManagement service.
|
|
18038
18090
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
18039
|
-
* @version
|
|
18091
|
+
* @version 235.0.0
|
|
18040
18092
|
*//**
|
|
18041
18093
|
* Constructs a new TaskManagementApi.
|
|
18042
18094
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -18544,7 +18596,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
18544
18596
|
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(){/**
|
|
18545
18597
|
* Teams service.
|
|
18546
18598
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
18547
|
-
* @version
|
|
18599
|
+
* @version 235.0.0
|
|
18548
18600
|
*//**
|
|
18549
18601
|
* Constructs a new TeamsApi.
|
|
18550
18602
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -18624,7 +18676,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18624
18676
|
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(){/**
|
|
18625
18677
|
* Telephony service.
|
|
18626
18678
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
18627
|
-
* @version
|
|
18679
|
+
* @version 235.0.0
|
|
18628
18680
|
*//**
|
|
18629
18681
|
* Constructs a new TelephonyApi.
|
|
18630
18682
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -18695,7 +18747,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18695
18747
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyAgentsGreetingsMe';}return this.apiClient.callApi('/api/v2/telephony/agents/greetings/me','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
|
|
18696
18748
|
* TelephonyProvidersEdge service.
|
|
18697
18749
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
18698
|
-
* @version
|
|
18750
|
+
* @version 235.0.0
|
|
18699
18751
|
*//**
|
|
18700
18752
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
18701
18753
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -19543,7 +19595,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
|
|
|
19543
19595
|
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(){/**
|
|
19544
19596
|
* Textbots service.
|
|
19545
19597
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
19546
|
-
* @version
|
|
19598
|
+
* @version 235.0.0
|
|
19547
19599
|
*//**
|
|
19548
19600
|
* Constructs a new TextbotsApi.
|
|
19549
19601
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -19579,7 +19631,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
19579
19631
|
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(){/**
|
|
19580
19632
|
* Tokens service.
|
|
19581
19633
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
19582
|
-
* @version
|
|
19634
|
+
* @version 235.0.0
|
|
19583
19635
|
*//**
|
|
19584
19636
|
* Constructs a new TokensApi.
|
|
19585
19637
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -19613,7 +19665,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
19613
19665
|
*/},{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(){/**
|
|
19614
19666
|
* Uploads service.
|
|
19615
19667
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
19616
|
-
* @version
|
|
19668
|
+
* @version 235.0.0
|
|
19617
19669
|
*//**
|
|
19618
19670
|
* Constructs a new UploadsApi.
|
|
19619
19671
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -19681,7 +19733,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19681
19733
|
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(){/**
|
|
19682
19734
|
* Usage service.
|
|
19683
19735
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
19684
|
-
* @version
|
|
19736
|
+
* @version 235.0.0
|
|
19685
19737
|
*//**
|
|
19686
19738
|
* Constructs a new UsageApi.
|
|
19687
19739
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -19765,7 +19817,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19765
19817
|
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(){/**
|
|
19766
19818
|
* UserRecordings service.
|
|
19767
19819
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
19768
|
-
* @version
|
|
19820
|
+
* @version 235.0.0
|
|
19769
19821
|
*//**
|
|
19770
19822
|
* Constructs a new UserRecordingsApi.
|
|
19771
19823
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -19813,7 +19865,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
19813
19865
|
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(){/**
|
|
19814
19866
|
* Users service.
|
|
19815
19867
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
19816
|
-
* @version
|
|
19868
|
+
* @version 235.0.0
|
|
19817
19869
|
*//**
|
|
19818
19870
|
* Constructs a new UsersApi.
|
|
19819
19871
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -20557,7 +20609,7 @@ if(verifierId===undefined||verifierId===null||verifierId===''){throw'Missing the
|
|
|
20557
20609
|
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(){/**
|
|
20558
20610
|
* Utilities service.
|
|
20559
20611
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
20560
|
-
* @version
|
|
20612
|
+
* @version 235.0.0
|
|
20561
20613
|
*//**
|
|
20562
20614
|
* Constructs a new UtilitiesApi.
|
|
20563
20615
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -20584,7 +20636,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20584
20636
|
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(){/**
|
|
20585
20637
|
* Voicemail service.
|
|
20586
20638
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
20587
|
-
* @version
|
|
20639
|
+
* @version 235.0.0
|
|
20588
20640
|
*//**
|
|
20589
20641
|
* Constructs a new VoicemailApi.
|
|
20590
20642
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -20746,7 +20798,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
20746
20798
|
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(){/**
|
|
20747
20799
|
* WebChat service.
|
|
20748
20800
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
20749
|
-
* @version
|
|
20801
|
+
* @version 235.0.0
|
|
20750
20802
|
*//**
|
|
20751
20803
|
* Constructs a new WebChatApi.
|
|
20752
20804
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -20893,7 +20945,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20893
20945
|
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(){/**
|
|
20894
20946
|
* WebDeployments service.
|
|
20895
20947
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
20896
|
-
* @version
|
|
20948
|
+
* @version 235.0.0
|
|
20897
20949
|
*//**
|
|
20898
20950
|
* Constructs a new WebDeploymentsApi.
|
|
20899
20951
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -21026,7 +21078,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
21026
21078
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}/identityresolution','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
|
|
21027
21079
|
* WebMessaging service.
|
|
21028
21080
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
21029
|
-
* @version
|
|
21081
|
+
* @version 235.0.0
|
|
21030
21082
|
*//**
|
|
21031
21083
|
* Constructs a new WebMessagingApi.
|
|
21032
21084
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -21067,7 +21119,7 @@ if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required
|
|
|
21067
21119
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWebmessagingDeploymentPushdevice';}return this.apiClient.callApi('/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}','POST',{'deploymentId':deploymentId,'tokenId':tokenId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
21068
21120
|
* Widgets service.
|
|
21069
21121
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
21070
|
-
* @version
|
|
21122
|
+
* @version 235.0.0
|
|
21071
21123
|
*//**
|
|
21072
21124
|
* Constructs a new WidgetsApi.
|
|
21073
21125
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -21107,7 +21159,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
21107
21159
|
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(){/**
|
|
21108
21160
|
* WorkforceManagement service.
|
|
21109
21161
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
21110
|
-
* @version
|
|
21162
|
+
* @version 235.0.0
|
|
21111
21163
|
*//**
|
|
21112
21164
|
* Constructs a new WorkforceManagementApi.
|
|
21113
21165
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -21690,10 +21742,11 @@ if(forecastId===undefined||forecastId===null||forecastId===''){throw'Missing the
|
|
|
21690
21742
|
* @param {String} forecastId The ID of the forecast
|
|
21691
21743
|
* @param {Object} opts Optional parameters
|
|
21692
21744
|
* @param {Array.<String>} opts.weekNumbers The week numbers to fetch (for multi-week forecasts) staffing requirements. Returns all week data if the list is not specified
|
|
21745
|
+
* @param {Array.<String>} opts.expand Expand to include minimum staffing values in (staffing requirement response or applied to base staffing requirement values)
|
|
21693
21746
|
*/},{key:"getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement",value:function getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement(businessUnitId,weekDateId,forecastId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21694
21747
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';}// verify the required parameter 'weekDateId' is set
|
|
21695
21748
|
if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';}// verify the required parameter 'forecastId' is set
|
|
21696
|
-
if(forecastId===undefined||forecastId===null||forecastId===''){throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/staffingrequirement','GET',{'businessUnitId':businessUnitId,'weekDateId':weekDateId,'forecastId':forecastId},{'weekNumbers':this.apiClient.buildCollectionParam(opts['weekNumbers'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21749
|
+
if(forecastId===undefined||forecastId===null||forecastId===''){throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/staffingrequirement','GET',{'businessUnitId':businessUnitId,'weekDateId':weekDateId,'forecastId':forecastId},{'weekNumbers':this.apiClient.buildCollectionParam(opts['weekNumbers'],'multi'),'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21697
21750
|
* Get short term forecasts
|
|
21698
21751
|
* Use "recent" (without quotes) for the `weekDateId` path parameter to fetch all forecasts for +/- 26 weeks from the current date. Response will include any forecast which spans the specified week
|
|
21699
21752
|
* @param {String} businessUnitId The ID of the business unit to which the forecast belongs
|
|
@@ -23067,7 +23120,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23067
23120
|
* </pre>
|
|
23068
23121
|
* </p>
|
|
23069
23122
|
* @module purecloud-platform-client-v2/index
|
|
23070
|
-
* @version
|
|
23123
|
+
* @version 235.0.0
|
|
23071
23124
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
23072
23125
|
* The ApiClient constructor.
|
|
23073
23126
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|