purecloud-platform-client-v2 233.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 +503 -1079
- package/dist/web-amd/purecloud-platform-client-v2.js +503 -1079
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +233 -409
- package/dist/web-cjs/purecloud-platform-client-v2.js +233 -409
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +475 -382
- 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 -30
- 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 +42 -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 +61 -880
- 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 +26 -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 +156 -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 -31
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +7 -3
- 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 +2 -2
- 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
|
@@ -5582,7 +5582,13 @@ function Item(fun,array){this.fun=fun;this.array=array;}Item.prototype.run=funct
|
|
|
5582
5582
|
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
|
|
5583
5583
|
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
|
|
5584
5584
|
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
5585
|
-
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}
|
|
5585
|
+
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};/**
|
|
5586
|
+
* Create a bound version of a function with a specified `this` context
|
|
5587
|
+
*
|
|
5588
|
+
* @param {Function} fn - The function to bind
|
|
5589
|
+
* @param {*} thisArg - The value to be passed as the `this` parameter
|
|
5590
|
+
* @returns {Function} A new function that will call the original function with the specified `this` context
|
|
5591
|
+
*/function bind(fn,thisArg){return function wrap(){return fn.apply(thisArg,arguments);};}// utils is a library of generic helper functions non-specific to axios
|
|
5586
5592
|
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;};};/**
|
|
5587
5593
|
* Determine if a value is an Array
|
|
5588
5594
|
*
|
|
@@ -6108,7 +6114,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
6108
6114
|
*
|
|
6109
6115
|
* @param {Number} id The ID that was returned by `use`
|
|
6110
6116
|
*
|
|
6111
|
-
* @returns {
|
|
6117
|
+
* @returns {void}
|
|
6112
6118
|
*/},{key:"eject",value:function eject(id){if(this.handlers[id]){this.handlers[id]=null;}}/**
|
|
6113
6119
|
* Clear all interceptors from the stack
|
|
6114
6120
|
*
|
|
@@ -6233,7 +6239,7 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
|
|
|
6233
6239
|
* @param {Number} freq
|
|
6234
6240
|
* @return {Function}
|
|
6235
6241
|
*/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
|
|
6236
|
-
{write:function write(name,value,expires,path,domain,secure){var cookie=[name
|
|
6242
|
+
{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.
|
|
6237
6243
|
{write:function write(){},read:function read(){return null;},remove:function remove(){}};/**
|
|
6238
6244
|
* Determines whether the specified URL is absolute
|
|
6239
6245
|
*
|
|
@@ -6313,8 +6319,44 @@ if(onUploadProgress&&request.upload){var _progressEventReducer3=progressEventRed
|
|
|
6313
6319
|
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
|
|
6314
6320
|
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
|
|
6315
6321
|
// see https://github.com/cloudflare/workerd/issues/902
|
|
6316
|
-
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
|
|
6317
|
-
|
|
6322
|
+
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();/**
|
|
6323
|
+
* Known adapters mapping.
|
|
6324
|
+
* Provides environment-specific adapters for Axios:
|
|
6325
|
+
* - `http` for Node.js
|
|
6326
|
+
* - `xhr` for browsers
|
|
6327
|
+
* - `fetch` for fetch API-based requests
|
|
6328
|
+
*
|
|
6329
|
+
* @type {Object<string, Function|Object>}
|
|
6330
|
+
*/var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};// Assign adapter names for easier debugging and identification
|
|
6331
|
+
utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
|
|
6332
|
+
}Object.defineProperty(fn,'adapterName',{value:value});}});/**
|
|
6333
|
+
* Render a rejection reason string for unknown or unsupported adapters
|
|
6334
|
+
*
|
|
6335
|
+
* @param {string} reason
|
|
6336
|
+
* @returns {string}
|
|
6337
|
+
*/var renderReason=function renderReason(reason){return"- ".concat(reason);};/**
|
|
6338
|
+
* Check if the adapter is resolved (function, null, or false)
|
|
6339
|
+
*
|
|
6340
|
+
* @param {Function|null|false} adapter
|
|
6341
|
+
* @returns {boolean}
|
|
6342
|
+
*/var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};/**
|
|
6343
|
+
* Get the first suitable adapter from the provided list.
|
|
6344
|
+
* Tries each adapter in order until a supported one is found.
|
|
6345
|
+
* Throws an AxiosError if no adapter is suitable.
|
|
6346
|
+
*
|
|
6347
|
+
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
6348
|
+
* @param {Object} config - Axios request configuration
|
|
6349
|
+
* @throws {AxiosError} If no suitable adapter is available
|
|
6350
|
+
* @returns {Function} The resolved adapter function
|
|
6351
|
+
*/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;}/**
|
|
6352
|
+
* Exports Axios adapters and utility to resolve an adapter
|
|
6353
|
+
*/var adapters={/**
|
|
6354
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
6355
|
+
* @type {Function}
|
|
6356
|
+
*/getAdapter:getAdapter,/**
|
|
6357
|
+
* Exposes all known adapters
|
|
6358
|
+
* @type {Object<string, Function|Object>}
|
|
6359
|
+
*/adapters:knownAdapters};/**
|
|
6318
6360
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
6319
6361
|
*
|
|
6320
6362
|
* @param {Object} config The config that is to be used for the request
|
|
@@ -6329,7 +6371,7 @@ isCredentialsSupported=isRequestSupported&&"credentials"in Request.prototype;res
|
|
|
6329
6371
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
6330
6372
|
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
|
|
6331
6373
|
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
|
|
6332
|
-
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.
|
|
6374
|
+
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
|
|
6333
6375
|
['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={};/**
|
|
6334
6376
|
* Transitional option validator
|
|
6335
6377
|
*
|
|
@@ -6416,7 +6458,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
|
|
|
6416
6458
|
* @param {*} payload The value to test
|
|
6417
6459
|
*
|
|
6418
6460
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
6419
|
-
*/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;/**
|
|
6461
|
+
*/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;/**
|
|
6420
6462
|
* Create an instance of Axios
|
|
6421
6463
|
*
|
|
6422
6464
|
* @param {Object} defaultConfig The default config for the instance
|
|
@@ -6477,7 +6519,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
6477
6519
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
6478
6520
|
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];}}}]);}();/**
|
|
6479
6521
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6480
|
-
* @version
|
|
6522
|
+
* @version 235.0.0
|
|
6481
6523
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
6482
6524
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
6483
6525
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -6546,6 +6588,16 @@ var tempState=this.authData.state;this.authData=localStorage.getItem("".concat(t
|
|
|
6546
6588
|
* @description Sets the environment used by the session
|
|
6547
6589
|
* @param {string} environment - (Optional, default "mypurecloud.com") Environment the session use, e.g. mypurecloud.ie, mypurecloud.com.au, etc.
|
|
6548
6590
|
*/},{key:"setEnvironment",value:function setEnvironment(environment){this.config.setEnvironment(environment);}/**
|
|
6591
|
+
* @description Sets the optional http headers used by the client
|
|
6592
|
+
* @param {object} newHeaders - default headers to be used
|
|
6593
|
+
*/},{key:"setDefaultHeaders",value:function setDefaultHeaders(newHeaders){if(!newHeaders||!(_typeof(newHeaders)==='object')){throw new Error("default headers must be a map");}this.defaultHeaders=newHeaders;}/**
|
|
6594
|
+
* @description Gets the default http headers used by the client
|
|
6595
|
+
*/},{key:"getDefaultHeaders",value:function getDefaultHeaders(){return this.defaultHeaders;}/**
|
|
6596
|
+
* @description Sets the optional Genesys-App http header used by the client
|
|
6597
|
+
* @param {string} headerValue - value for the Genesys-App header
|
|
6598
|
+
*/},{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;}}/**
|
|
6599
|
+
* @description Gets the Genesys-App http header used by the client
|
|
6600
|
+
*/},{key:"getGenesysAppHeader",value:function getGenesysAppHeader(){if(this.defaultHeaders&&this.defaultHeaders["Genesys-App"]){return this.defaultHeaders["Genesys-App"];}else{return null;}}/**
|
|
6549
6601
|
* @description Sets the dynamic HttpClient used by the client
|
|
6550
6602
|
* @param {object} httpClient - HttpClient to be injected
|
|
6551
6603
|
*/},{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;}/**
|
|
@@ -6823,7 +6875,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
6823
6875
|
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(){/**
|
|
6824
6876
|
* AIStudio service.
|
|
6825
6877
|
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
6826
|
-
* @version
|
|
6878
|
+
* @version 235.0.0
|
|
6827
6879
|
*//**
|
|
6828
6880
|
* Constructs a new AIStudioApi.
|
|
6829
6881
|
* @alias module:purecloud-platform-client-v2/api/AIStudioApi
|
|
@@ -6974,7 +7026,7 @@ if(summarySettingId===undefined||summarySettingId===null||summarySettingId==='')
|
|
|
6974
7026
|
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(){/**
|
|
6975
7027
|
* AgentAssistants service.
|
|
6976
7028
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
6977
|
-
* @version
|
|
7029
|
+
* @version 235.0.0
|
|
6978
7030
|
*//**
|
|
6979
7031
|
* Constructs a new AgentAssistantsApi.
|
|
6980
7032
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -7105,7 +7157,7 @@ if(queueId===undefined||queueId===null||queueId===''){throw'Missing the required
|
|
|
7105
7157
|
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(){/**
|
|
7106
7158
|
* AgentCopilot service.
|
|
7107
7159
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
7108
|
-
* @version
|
|
7160
|
+
* @version 235.0.0
|
|
7109
7161
|
*//**
|
|
7110
7162
|
* Constructs a new AgentCopilotApi.
|
|
7111
7163
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -7132,7 +7184,7 @@ if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing
|
|
|
7132
7184
|
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(){/**
|
|
7133
7185
|
* AgentUI service.
|
|
7134
7186
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
7135
|
-
* @version
|
|
7187
|
+
* @version 235.0.0
|
|
7136
7188
|
*//**
|
|
7137
7189
|
* Constructs a new AgentUIApi.
|
|
7138
7190
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -7166,7 +7218,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
7166
7218
|
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(){/**
|
|
7167
7219
|
* Alerting service.
|
|
7168
7220
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
7169
|
-
* @version
|
|
7221
|
+
* @version 235.0.0
|
|
7170
7222
|
*//**
|
|
7171
7223
|
* Constructs a new AlertingApi.
|
|
7172
7224
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -7255,7 +7307,7 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
7255
7307
|
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(){/**
|
|
7256
7308
|
* Analytics service.
|
|
7257
7309
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
7258
|
-
* @version
|
|
7310
|
+
* @version 235.0.0
|
|
7259
7311
|
*//**
|
|
7260
7312
|
* Constructs a new AnalyticsApi.
|
|
7261
7313
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -8031,7 +8083,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8031
8083
|
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(){/**
|
|
8032
8084
|
* Architect service.
|
|
8033
8085
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
8034
|
-
* @version
|
|
8086
|
+
* @version 235.0.0
|
|
8035
8087
|
*//**
|
|
8036
8088
|
* Constructs a new ArchitectApi.
|
|
8037
8089
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -9165,7 +9217,7 @@ if(milestoneId===undefined||milestoneId===null||milestoneId===''){throw'Missing
|
|
|
9165
9217
|
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(){/**
|
|
9166
9218
|
* Audit service.
|
|
9167
9219
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
9168
|
-
* @version
|
|
9220
|
+
* @version 235.0.0
|
|
9169
9221
|
*//**
|
|
9170
9222
|
* Constructs a new AuditApi.
|
|
9171
9223
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -9215,7 +9267,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9215
9267
|
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(){/**
|
|
9216
9268
|
* Authorization service.
|
|
9217
9269
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
9218
|
-
* @version
|
|
9270
|
+
* @version 235.0.0
|
|
9219
9271
|
*//**
|
|
9220
9272
|
* Constructs a new AuthorizationApi.
|
|
9221
9273
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -9650,7 +9702,7 @@ if(subjectId===undefined||subjectId===null||subjectId===''){throw'Missing the re
|
|
|
9650
9702
|
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(){/**
|
|
9651
9703
|
* Billing service.
|
|
9652
9704
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
9653
|
-
* @version
|
|
9705
|
+
* @version 235.0.0
|
|
9654
9706
|
*//**
|
|
9655
9707
|
* Constructs a new BillingApi.
|
|
9656
9708
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -9727,7 +9779,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
9727
9779
|
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(){/**
|
|
9728
9780
|
* BusinessRules service.
|
|
9729
9781
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
9730
|
-
* @version
|
|
9782
|
+
* @version 235.0.0
|
|
9731
9783
|
*//**
|
|
9732
9784
|
* Constructs a new BusinessRulesApi.
|
|
9733
9785
|
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
@@ -9740,14 +9792,12 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
9740
9792
|
* @param {String} tableId Table ID
|
|
9741
9793
|
* @param {Object} opts Optional parameters
|
|
9742
9794
|
* @param {Boolean} opts.forceDelete Force delete decision table (under certain conditions) (default to false)
|
|
9743
|
-
* deleteBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9744
9795
|
*/return _createClass(BusinessRulesApi,[{key:"deleteBusinessrulesDecisiontable",value:function deleteBusinessrulesDecisiontable(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
|
|
9745
9796
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontable';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}','DELETE',{'tableId':tableId},{'forceDelete':opts['forceDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9746
9797
|
* Delete a decision table version
|
|
9747
9798
|
*
|
|
9748
9799
|
* @param {String} tableId Table ID
|
|
9749
9800
|
* @param {Number} tableVersion Table Version
|
|
9750
|
-
* deleteBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9751
9801
|
*/},{key:"deleteBusinessrulesDecisiontableVersion",value:function deleteBusinessrulesDecisiontableVersion(tableId,tableVersion){// verify the required parameter 'tableId' is set
|
|
9752
9802
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
|
|
9753
9803
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersion';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}','DELETE',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -9756,7 +9806,6 @@ if(tableVersion===undefined||tableVersion===null){throw'Missing the required par
|
|
|
9756
9806
|
* @param {String} tableId Table ID
|
|
9757
9807
|
* @param {Number} tableVersion Table Version
|
|
9758
9808
|
* @param {String} rowId Row ID
|
|
9759
|
-
* deleteBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9760
9809
|
*/},{key:"deleteBusinessrulesDecisiontableVersionRow",value:function deleteBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId){// verify the required parameter 'tableId' is set
|
|
9761
9810
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
|
|
9762
9811
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
|
|
@@ -9764,20 +9813,17 @@ if(rowId===undefined||rowId===null||rowId===''){throw'Missing the required param
|
|
|
9764
9813
|
* Delete a schema
|
|
9765
9814
|
*
|
|
9766
9815
|
* @param {String} schemaId Schema ID
|
|
9767
|
-
* deleteBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9768
9816
|
*/},{key:"deleteBusinessrulesSchema",value:function deleteBusinessrulesSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
9769
9817
|
if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the required parameter "schemaId" when calling deleteBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','DELETE',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9770
9818
|
* Get a decision table
|
|
9771
9819
|
*
|
|
9772
9820
|
* @param {String} tableId Table ID
|
|
9773
|
-
* getBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9774
9821
|
*/},{key:"getBusinessrulesDecisiontable",value:function getBusinessrulesDecisiontable(tableId){// verify the required parameter 'tableId' is set
|
|
9775
9822
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontable';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}','GET',{'tableId':tableId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9776
9823
|
* Get a decision table version
|
|
9777
9824
|
*
|
|
9778
9825
|
* @param {String} tableId Table ID
|
|
9779
9826
|
* @param {Number} tableVersion Table Version
|
|
9780
|
-
* getBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9781
9827
|
*/},{key:"getBusinessrulesDecisiontableVersion",value:function getBusinessrulesDecisiontableVersion(tableId,tableVersion){// verify the required parameter 'tableId' is set
|
|
9782
9828
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
|
|
9783
9829
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersion';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}','GET',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -9786,7 +9832,6 @@ if(tableVersion===undefined||tableVersion===null){throw'Missing the required par
|
|
|
9786
9832
|
* @param {String} tableId Table ID
|
|
9787
9833
|
* @param {Number} tableVersion Table Version
|
|
9788
9834
|
* @param {String} rowId Row ID
|
|
9789
|
-
* getBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9790
9835
|
*/},{key:"getBusinessrulesDecisiontableVersionRow",value:function getBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId){// verify the required parameter 'tableId' is set
|
|
9791
9836
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
|
|
9792
9837
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
|
|
@@ -9798,7 +9843,6 @@ if(rowId===undefined||rowId===null||rowId===''){throw'Missing the required param
|
|
|
9798
9843
|
* @param {Object} opts Optional parameters
|
|
9799
9844
|
* @param {String} opts.pageNumber Page number of the entities to return. Defaults to 1.
|
|
9800
9845
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 100. Defaults to 25.
|
|
9801
|
-
* getBusinessrulesDecisiontableVersionRows is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9802
9846
|
*/},{key:"getBusinessrulesDecisiontableVersionRows",value:function getBusinessrulesDecisiontableVersionRows(tableId,tableVersion,opts){opts=opts||{};// verify the required parameter 'tableId' is set
|
|
9803
9847
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';}// verify the required parameter 'tableVersion' is set
|
|
9804
9848
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRows';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows','GET',{'tableId':tableId,'tableVersion':tableVersion},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -9808,7 +9852,6 @@ if(tableVersion===undefined||tableVersion===null){throw'Missing the required par
|
|
|
9808
9852
|
* @param {Object} opts Optional parameters
|
|
9809
9853
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
9810
9854
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
9811
|
-
* getBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9812
9855
|
*/},{key:"getBusinessrulesDecisiontableVersions",value:function getBusinessrulesDecisiontableVersions(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
|
|
9813
9856
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersions';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions','GET',{'tableId':tableId},{'after':opts['after'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9814
9857
|
* Get a list of decision tables.
|
|
@@ -9818,7 +9861,6 @@ if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required
|
|
|
9818
9861
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
9819
9862
|
* @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
|
|
9820
9863
|
* @param {String} opts.name Search for decision tables with a name that contains the given search string. Search is case insensitive and will match any table that contains this string in any part of the name.
|
|
9821
|
-
* getBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9822
9864
|
*/},{key:"getBusinessrulesDecisiontables",value:function getBusinessrulesDecisiontables(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables','GET',{},{'after':opts['after'],'pageSize':opts['pageSize'],'divisionIds':this.apiClient.buildCollectionParam(opts['divisionIds'],'multi'),'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9823
9865
|
* Search for decision tables.
|
|
9824
9866
|
*
|
|
@@ -9830,33 +9872,27 @@ if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required
|
|
|
9830
9872
|
* @param {Boolean} opts.withPublishedVersion Filters results to only decision tables that have at least one version in Published status
|
|
9831
9873
|
* @param {Array.<String>} opts.expand Fields to expand in response
|
|
9832
9874
|
* @param {Array.<String>} opts.ids Decision table IDs to search for
|
|
9833
|
-
* getBusinessrulesDecisiontablesSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9834
9875
|
*/},{key:"getBusinessrulesDecisiontablesSearch",value:function getBusinessrulesDecisiontablesSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables/search','GET',{},{'after':opts['after'],'pageSize':opts['pageSize'],'schemaId':opts['schemaId'],'name':opts['name'],'withPublishedVersion':opts['withPublishedVersion'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'ids':this.apiClient.buildCollectionParam(opts['ids'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9835
9876
|
* Get a schema
|
|
9836
9877
|
*
|
|
9837
9878
|
* @param {String} schemaId Schema ID
|
|
9838
|
-
* getBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9839
9879
|
*/},{key:"getBusinessrulesSchema",value:function getBusinessrulesSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
9840
9880
|
if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the required parameter "schemaId" when calling getBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','GET',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9841
9881
|
* Get a list of schemas.
|
|
9842
9882
|
*
|
|
9843
|
-
* getBusinessrulesSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9844
9883
|
*/},{key:"getBusinessrulesSchemas",value:function getBusinessrulesSchemas(){return this.apiClient.callApi('/api/v2/businessrules/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9845
9884
|
* Get a specific named core type.
|
|
9846
9885
|
*
|
|
9847
9886
|
* @param {String} coreTypeName The core type's name
|
|
9848
|
-
* getBusinessrulesSchemasCoretype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9849
9887
|
*/},{key:"getBusinessrulesSchemasCoretype",value:function getBusinessrulesSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
|
|
9850
9888
|
if(coreTypeName===undefined||coreTypeName===null||coreTypeName===''){throw'Missing the required parameter "coreTypeName" when calling getBusinessrulesSchemasCoretype';}return this.apiClient.callApi('/api/v2/businessrules/schemas/coretypes/{coreTypeName}','GET',{'coreTypeName':coreTypeName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9851
9889
|
* Get the core types from which all schemas are built.
|
|
9852
9890
|
*
|
|
9853
|
-
* getBusinessrulesSchemasCoretypes is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9854
9891
|
*/},{key:"getBusinessrulesSchemasCoretypes",value:function getBusinessrulesSchemasCoretypes(){return this.apiClient.callApi('/api/v2/businessrules/schemas/coretypes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9855
9892
|
* Update a decision table
|
|
9856
9893
|
*
|
|
9857
9894
|
* @param {String} tableId Table ID
|
|
9858
9895
|
* @param {Object} body Decision Table
|
|
9859
|
-
* patchBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9860
9896
|
*/},{key:"patchBusinessrulesDecisiontable",value:function patchBusinessrulesDecisiontable(tableId,body){// verify the required parameter 'tableId' is set
|
|
9861
9897
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';}// verify the required parameter 'body' is set
|
|
9862
9898
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontable';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}','PATCH',{'tableId':tableId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -9865,7 +9901,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9865
9901
|
* @param {String} tableId Table ID
|
|
9866
9902
|
* @param {Number} tableVersion Table Version
|
|
9867
9903
|
* @param {Object} body Decision Table
|
|
9868
|
-
* patchBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9869
9904
|
*/},{key:"patchBusinessrulesDecisiontableVersion",value:function patchBusinessrulesDecisiontableVersion(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
|
|
9870
9905
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
|
|
9871
9906
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'body' is set
|
|
@@ -9874,7 +9909,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9874
9909
|
*
|
|
9875
9910
|
* @param {String} tableId Table ID
|
|
9876
9911
|
* @param {Object} body Decision Table
|
|
9877
|
-
* postBusinessrulesDecisiontableExecute is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9878
9912
|
*/},{key:"postBusinessrulesDecisiontableExecute",value:function postBusinessrulesDecisiontableExecute(tableId,body){// verify the required parameter 'tableId' is set
|
|
9879
9913
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';}// verify the required parameter 'body' is set
|
|
9880
9914
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExecute';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/execute','POST',{'tableId':tableId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -9883,7 +9917,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9883
9917
|
* @param {String} tableId Table ID
|
|
9884
9918
|
* @param {Number} tableVersion Table Version
|
|
9885
9919
|
* @param {Object} body Decision Table
|
|
9886
|
-
* postBusinessrulesDecisiontableVersionCopy is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9887
9920
|
*/},{key:"postBusinessrulesDecisiontableVersionCopy",value:function postBusinessrulesDecisiontableVersionCopy(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
|
|
9888
9921
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';}// verify the required parameter 'tableVersion' is set
|
|
9889
9922
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionCopy';}// verify the required parameter 'body' is set
|
|
@@ -9893,7 +9926,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9893
9926
|
* @param {String} tableId Table ID
|
|
9894
9927
|
* @param {Number} tableVersion Table Version
|
|
9895
9928
|
* @param {Object} body Decision Table
|
|
9896
|
-
* postBusinessrulesDecisiontableVersionExecute is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9897
9929
|
*/},{key:"postBusinessrulesDecisiontableVersionExecute",value:function postBusinessrulesDecisiontableVersionExecute(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
|
|
9898
9930
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';}// verify the required parameter 'tableVersion' is set
|
|
9899
9931
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionExecute';}// verify the required parameter 'body' is set
|
|
@@ -9903,7 +9935,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9903
9935
|
* @param {String} tableId Table ID
|
|
9904
9936
|
* @param {Number} tableVersion Table Version
|
|
9905
9937
|
* @param {Object} body Create decision table row request
|
|
9906
|
-
* postBusinessrulesDecisiontableVersionRows is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9907
9938
|
*/},{key:"postBusinessrulesDecisiontableVersionRows",value:function postBusinessrulesDecisiontableVersionRows(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
|
|
9908
9939
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';}// verify the required parameter 'tableVersion' is set
|
|
9909
9940
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRows';}// verify the required parameter 'body' is set
|
|
@@ -9916,7 +9947,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9916
9947
|
* @param {Object} opts Optional parameters
|
|
9917
9948
|
* @param {String} opts.pageNumber Page number of the entities to return. Defaults to 1.
|
|
9918
9949
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 100. Defaults to 25.
|
|
9919
|
-
* postBusinessrulesDecisiontableVersionRowsSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9920
9950
|
*/},{key:"postBusinessrulesDecisiontableVersionRowsSearch",value:function postBusinessrulesDecisiontableVersionRowsSearch(tableId,tableVersion,body,opts){opts=opts||{};// verify the required parameter 'tableId' is set
|
|
9921
9951
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';}// verify the required parameter 'tableVersion' is set
|
|
9922
9952
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsSearch';}// verify the required parameter 'body' is set
|
|
@@ -9925,33 +9955,28 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9925
9955
|
*
|
|
9926
9956
|
* @param {String} tableId Table ID
|
|
9927
9957
|
* @param {Number} tableVersion Table Version
|
|
9928
|
-
* postBusinessrulesDecisiontableVersionSync is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9929
9958
|
*/},{key:"postBusinessrulesDecisiontableVersionSync",value:function postBusinessrulesDecisiontableVersionSync(tableId,tableVersion){// verify the required parameter 'tableId' is set
|
|
9930
9959
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';}// verify the required parameter 'tableVersion' is set
|
|
9931
9960
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionSync';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/sync','POST',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9932
9961
|
* Create a new decision table version
|
|
9933
9962
|
*
|
|
9934
9963
|
* @param {String} tableId Table ID
|
|
9935
|
-
* postBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9936
9964
|
*/},{key:"postBusinessrulesDecisiontableVersions",value:function postBusinessrulesDecisiontableVersions(tableId){// verify the required parameter 'tableId' is set
|
|
9937
9965
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions','POST',{'tableId':tableId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9938
9966
|
* Create a decision table
|
|
9939
9967
|
*
|
|
9940
9968
|
* @param {Object} body Decision Table
|
|
9941
|
-
* postBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9942
9969
|
*/},{key:"postBusinessrulesDecisiontables",value:function postBusinessrulesDecisiontables(body){// verify the required parameter 'body' is set
|
|
9943
9970
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontables';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9944
9971
|
* Create a schema
|
|
9945
9972
|
*
|
|
9946
9973
|
* @param {Object} body Business Rules Schema Create Request
|
|
9947
|
-
* postBusinessrulesSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9948
9974
|
*/},{key:"postBusinessrulesSchemas",value:function postBusinessrulesSchemas(body){// verify the required parameter 'body' is set
|
|
9949
9975
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesSchemas';}return this.apiClient.callApi('/api/v2/businessrules/schemas','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9950
9976
|
* Publish a decision table version
|
|
9951
9977
|
*
|
|
9952
9978
|
* @param {String} tableId Table ID
|
|
9953
9979
|
* @param {Number} tableVersion Table Version
|
|
9954
|
-
* putBusinessrulesDecisiontableVersionPublish is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9955
9980
|
*/},{key:"putBusinessrulesDecisiontableVersionPublish",value:function putBusinessrulesDecisiontableVersionPublish(tableId,tableVersion){// verify the required parameter 'tableId' is set
|
|
9956
9981
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';}// verify the required parameter 'tableVersion' is set
|
|
9957
9982
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionPublish';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/publish','PUT',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -9961,7 +9986,6 @@ if(tableVersion===undefined||tableVersion===null){throw'Missing the required par
|
|
|
9961
9986
|
* @param {Number} tableVersion Table Version
|
|
9962
9987
|
* @param {String} rowId Row ID
|
|
9963
9988
|
* @param {Object} body Full update decision table row request
|
|
9964
|
-
* putBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9965
9989
|
*/},{key:"putBusinessrulesDecisiontableVersionRow",value:function putBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId,body){// verify the required parameter 'tableId' is set
|
|
9966
9990
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
|
|
9967
9991
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
|
|
@@ -9971,13 +9995,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9971
9995
|
*
|
|
9972
9996
|
* @param {String} schemaId Schema ID
|
|
9973
9997
|
* @param {Object} body Business Rules Schema Update Request
|
|
9974
|
-
* putBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9975
9998
|
*/},{key:"putBusinessrulesSchema",value:function putBusinessrulesSchema(schemaId,body){// verify the required parameter 'schemaId' is set
|
|
9976
9999
|
if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';}// verify the required parameter 'body' is set
|
|
9977
10000
|
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(){/**
|
|
9978
10001
|
* CarrierServices service.
|
|
9979
10002
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
9980
|
-
* @version
|
|
10003
|
+
* @version 235.0.0
|
|
9981
10004
|
*//**
|
|
9982
10005
|
* Constructs a new CarrierServicesApi.
|
|
9983
10006
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -9997,7 +10020,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
9997
10020
|
*/},{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(){/**
|
|
9998
10021
|
* Chat service.
|
|
9999
10022
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
10000
|
-
* @version
|
|
10023
|
+
* @version 235.0.0
|
|
10001
10024
|
*//**
|
|
10002
10025
|
* Constructs a new ChatApi.
|
|
10003
10026
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -10228,7 +10251,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10228
10251
|
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(){/**
|
|
10229
10252
|
* Coaching service.
|
|
10230
10253
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
10231
|
-
* @version
|
|
10254
|
+
* @version 235.0.0
|
|
10232
10255
|
*//**
|
|
10233
10256
|
* Constructs a new CoachingApi.
|
|
10234
10257
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -10320,6 +10343,11 @@ if(notificationId===undefined||notificationId===null||notificationId===''){throw
|
|
|
10320
10343
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
10321
10344
|
* @param {Array.<String>} opts.expand Indicates a field in the response which should be expanded.
|
|
10322
10345
|
*/},{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']);}/**
|
|
10346
|
+
* Retrieve the status of the job for the slots where a coaching appointment can be scheduled.
|
|
10347
|
+
*
|
|
10348
|
+
* @param {String} jobId The ID of job
|
|
10349
|
+
*/},{key:"getCoachingScheduleslotsJob",value:function getCoachingScheduleslotsJob(jobId){// verify the required parameter 'jobId' is set
|
|
10350
|
+
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']);}/**
|
|
10323
10351
|
* Update an existing appointment
|
|
10324
10352
|
* Permission not required if you are the creator or facilitator of the appointment
|
|
10325
10353
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
@@ -10374,6 +10402,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10374
10402
|
* @param {Object} body Aggregate Request
|
|
10375
10403
|
*/},{key:"postCoachingAppointmentsAggregatesQuery",value:function postCoachingAppointmentsAggregatesQuery(body){// verify the required parameter 'body' is set
|
|
10376
10404
|
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']);}/**
|
|
10405
|
+
* Start job to retrieve the slots where a coaching appointment can be scheduled.
|
|
10406
|
+
*
|
|
10407
|
+
* @param {Object} body The slots search request
|
|
10408
|
+
*/},{key:"postCoachingScheduleslotsJobs",value:function postCoachingScheduleslotsJobs(body){// verify the required parameter 'body' is set
|
|
10409
|
+
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']);}/**
|
|
10377
10410
|
* Get list of possible slots where a coaching appointment can be scheduled.
|
|
10378
10411
|
*
|
|
10379
10412
|
* @param {Object} body The slot search request
|
|
@@ -10381,7 +10414,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10381
10414
|
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(){/**
|
|
10382
10415
|
* ContentManagement service.
|
|
10383
10416
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
10384
|
-
* @version
|
|
10417
|
+
* @version 235.0.0
|
|
10385
10418
|
*//**
|
|
10386
10419
|
* Constructs a new ContentManagementApi.
|
|
10387
10420
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -10663,7 +10696,7 @@ if(tagId===undefined||tagId===null||tagId===''){throw'Missing the required param
|
|
|
10663
10696
|
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(){/**
|
|
10664
10697
|
* Conversations service.
|
|
10665
10698
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
10666
|
-
* @version
|
|
10699
|
+
* @version 235.0.0
|
|
10667
10700
|
*//**
|
|
10668
10701
|
* Constructs a new ConversationsApi.
|
|
10669
10702
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -10815,7 +10848,6 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
10815
10848
|
* @param {String} conversationId conversationId
|
|
10816
10849
|
* @param {String} communicationId communicationId
|
|
10817
10850
|
* @param {String} messageId messageId
|
|
10818
|
-
* getConversationCommunicationInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
10819
10851
|
*/},{key:"getConversationCommunicationInternalmessage",value:function getConversationCommunicationInternalmessage(conversationId,communicationId,messageId){// verify the required parameter 'conversationId' is set
|
|
10820
10852
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';}// verify the required parameter 'communicationId' is set
|
|
10821
10853
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';}// verify the required parameter 'messageId' is set
|
|
@@ -10827,7 +10859,6 @@ if(messageId===undefined||messageId===null||messageId===''){throw'Missing the re
|
|
|
10827
10859
|
* @param {Object} opts Optional parameters
|
|
10828
10860
|
* @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)
|
|
10829
10861
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
10830
|
-
* getConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
10831
10862
|
*/},{key:"getConversationCommunicationInternalmessages",value:function getConversationCommunicationInternalmessages(conversationId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
10832
10863
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';}// verify the required parameter 'communicationId' is set
|
|
10833
10864
|
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']);}/**
|
|
@@ -11134,12 +11165,10 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11134
11165
|
* Get internal message conversation
|
|
11135
11166
|
*
|
|
11136
11167
|
* @param {String} conversationId conversationId
|
|
11137
|
-
* getConversationsInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11138
11168
|
*/},{key:"getConversationsInternalmessage",value:function getConversationsInternalmessage(conversationId){// verify the required parameter 'conversationId' is set
|
|
11139
11169
|
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']);}/**
|
|
11140
11170
|
* Get active internal message conversations for the logged in user
|
|
11141
11171
|
*
|
|
11142
|
-
* getConversationsInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11143
11172
|
*/},{key:"getConversationsInternalmessages",value:function getConversationsInternalmessages(){return this.apiClient.callApi('/api/v2/conversations/internalmessages','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11144
11173
|
* Get the encryption key configurations
|
|
11145
11174
|
*
|
|
@@ -11579,6 +11608,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11579
11608
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantConsult';}// verify the required parameter 'participantId' is set
|
|
11580
11609
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantConsult';}// verify the required parameter 'body' is set
|
|
11581
11610
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsCallParticipantConsult';}return this.apiClient.callApi('/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11611
|
+
* Update conversation participant on behalf of a user
|
|
11612
|
+
*
|
|
11613
|
+
* @param {String} conversationId conversationId
|
|
11614
|
+
* @param {String} participantId participantId
|
|
11615
|
+
* @param {String} userId userId
|
|
11616
|
+
* @param {Object} body Participant request
|
|
11617
|
+
*/},{key:"patchConversationsCallParticipantUserUserId",value:function patchConversationsCallParticipantUserUserId(conversationId,participantId,userId,body){// verify the required parameter 'conversationId' is set
|
|
11618
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantUserUserId';}// verify the required parameter 'participantId' is set
|
|
11619
|
+
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantUserUserId';}// verify the required parameter 'userId' is set
|
|
11620
|
+
if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling patchConversationsCallParticipantUserUserId';}// verify the required parameter 'body' is set
|
|
11621
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsCallParticipantUserUserId';}return this.apiClient.callApi('/api/v2/conversations/calls/{conversationId}/participants/{participantId}/user/{userId}','PATCH',{'conversationId':conversationId,'participantId':participantId,'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11582
11622
|
* Update a conversation by disconnecting all of the participants
|
|
11583
11623
|
*
|
|
11584
11624
|
* @param {String} conversationId conversationId
|
|
@@ -11916,7 +11956,6 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11916
11956
|
* @param {String} conversationId conversationId
|
|
11917
11957
|
* @param {String} communicationId communicationId
|
|
11918
11958
|
* @param {Object} body Message
|
|
11919
|
-
* postConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11920
11959
|
*/},{key:"postConversationCommunicationInternalmessages",value:function postConversationCommunicationInternalmessages(conversationId,communicationId,body){// verify the required parameter 'conversationId' is set
|
|
11921
11960
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';}// verify the required parameter 'communicationId' is set
|
|
11922
11961
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';}// verify the required parameter 'body' is set
|
|
@@ -11949,7 +11988,6 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
11949
11988
|
* @param {String} conversationId conversation ID
|
|
11950
11989
|
* @param {String} participantId participant ID
|
|
11951
11990
|
* @param {Object} body Confer request
|
|
11952
|
-
* postConversationParticipantInternalmessagesUsersCommunications is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11953
11991
|
*/},{key:"postConversationParticipantInternalmessagesUsersCommunications",value:function postConversationParticipantInternalmessagesUsersCommunications(conversationId,participantId,body){// verify the required parameter 'conversationId' is set
|
|
11954
11992
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';}// verify the required parameter 'participantId' is set
|
|
11955
11993
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';}// verify the required parameter 'body' is set
|
|
@@ -12428,7 +12466,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12428
12466
|
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';}// verify the required parameter 'body' is set
|
|
12429
12467
|
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']);}/**
|
|
12430
12468
|
* Get messages in batch
|
|
12431
|
-
* 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"]
|
|
12469
|
+
* 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.
|
|
12432
12470
|
* @param {String} conversationId
|
|
12433
12471
|
* @param {Object} opts Optional parameters
|
|
12434
12472
|
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
|
|
@@ -12750,7 +12788,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
12750
12788
|
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(){/**
|
|
12751
12789
|
* DataExtensions service.
|
|
12752
12790
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
12753
|
-
* @version
|
|
12791
|
+
* @version 235.0.0
|
|
12754
12792
|
*//**
|
|
12755
12793
|
* Constructs a new DataExtensionsApi.
|
|
12756
12794
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -12771,7 +12809,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
|
|
|
12771
12809
|
*/},{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(){/**
|
|
12772
12810
|
* DataPrivacy service.
|
|
12773
12811
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
12774
|
-
* @version
|
|
12812
|
+
* @version 235.0.0
|
|
12775
12813
|
*//**
|
|
12776
12814
|
* Constructs a new DataPrivacyApi.
|
|
12777
12815
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -12811,7 +12849,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12811
12849
|
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(){/**
|
|
12812
12850
|
* Downloads service.
|
|
12813
12851
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
12814
|
-
* @version
|
|
12852
|
+
* @version 235.0.0
|
|
12815
12853
|
*//**
|
|
12816
12854
|
* Constructs a new DownloadsApi.
|
|
12817
12855
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -12830,7 +12868,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12830
12868
|
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(){/**
|
|
12831
12869
|
* Emails service.
|
|
12832
12870
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
12833
|
-
* @version
|
|
12871
|
+
* @version 235.0.0
|
|
12834
12872
|
*//**
|
|
12835
12873
|
* Constructs a new EmailsApi.
|
|
12836
12874
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -12859,7 +12897,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
12859
12897
|
*/},{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(){/**
|
|
12860
12898
|
* EmployeeEngagement service.
|
|
12861
12899
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
12862
|
-
* @version
|
|
12900
|
+
* @version 235.0.0
|
|
12863
12901
|
*//**
|
|
12864
12902
|
* Constructs a new EmployeeEngagementApi.
|
|
12865
12903
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -12897,7 +12935,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12897
12935
|
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(){/**
|
|
12898
12936
|
* Events service.
|
|
12899
12937
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
12900
|
-
* @version
|
|
12938
|
+
* @version 235.0.0
|
|
12901
12939
|
*//**
|
|
12902
12940
|
* Constructs a new EventsApi.
|
|
12903
12941
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -12922,7 +12960,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12922
12960
|
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(){/**
|
|
12923
12961
|
* ExternalContacts service.
|
|
12924
12962
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
12925
|
-
* @version
|
|
12963
|
+
* @version 235.0.0
|
|
12926
12964
|
*//**
|
|
12927
12965
|
* Constructs a new ExternalContactsApi.
|
|
12928
12966
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -13672,7 +13710,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
|
|
|
13672
13710
|
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(){/**
|
|
13673
13711
|
* Fax service.
|
|
13674
13712
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
13675
|
-
* @version
|
|
13713
|
+
* @version 235.0.0
|
|
13676
13714
|
*//**
|
|
13677
13715
|
* Constructs a new FaxApi.
|
|
13678
13716
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -13721,7 +13759,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13721
13759
|
*/},{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(){/**
|
|
13722
13760
|
* Flows service.
|
|
13723
13761
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
13724
|
-
* @version
|
|
13762
|
+
* @version 235.0.0
|
|
13725
13763
|
*//**
|
|
13726
13764
|
* Constructs a new FlowsApi.
|
|
13727
13765
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -13775,7 +13813,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13775
13813
|
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(){/**
|
|
13776
13814
|
* Gamification service.
|
|
13777
13815
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
13778
|
-
* @version
|
|
13816
|
+
* @version 235.0.0
|
|
13779
13817
|
*//**
|
|
13780
13818
|
* Constructs a new GamificationApi.
|
|
13781
13819
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -13937,6 +13975,20 @@ if(comparativePeriodStartWorkday===undefined||comparativePeriodStartWorkday===nu
|
|
|
13937
13975
|
if(comparativePeriodEndWorkday===undefined||comparativePeriodEndWorkday===null){throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsGroupsTrendsAll';}// verify the required parameter 'primaryPeriodStartWorkday' is set
|
|
13938
13976
|
if(primaryPeriodStartWorkday===undefined||primaryPeriodStartWorkday===null){throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsGroupsTrendsAll';}// verify the required parameter 'primaryPeriodEndWorkday' is set
|
|
13939
13977
|
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']);}/**
|
|
13978
|
+
* Query managers in a profile during a period of time
|
|
13979
|
+
*
|
|
13980
|
+
* @param {Object} filterType Filter type for the query request.
|
|
13981
|
+
* @param {String} filterId ID for the filter type.
|
|
13982
|
+
* @param {Object} granularity Granularity
|
|
13983
|
+
* @param {String} startWorkday The start work day. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
13984
|
+
* @param {Object} opts Optional parameters
|
|
13985
|
+
* @param {Number} opts.pageSize Page size (default to 100)
|
|
13986
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
13987
|
+
*/},{key:"getGamificationInsightsManagers",value:function getGamificationInsightsManagers(filterType,filterId,granularity,startWorkday,opts){opts=opts||{};// verify the required parameter 'filterType' is set
|
|
13988
|
+
if(filterType===undefined||filterType===null){throw'Missing the required parameter "filterType" when calling getGamificationInsightsManagers';}// verify the required parameter 'filterId' is set
|
|
13989
|
+
if(filterId===undefined||filterId===null){throw'Missing the required parameter "filterId" when calling getGamificationInsightsManagers';}// verify the required parameter 'granularity' is set
|
|
13990
|
+
if(granularity===undefined||granularity===null){throw'Missing the required parameter "granularity" when calling getGamificationInsightsManagers';}// verify the required parameter 'startWorkday' is set
|
|
13991
|
+
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']);}/**
|
|
13940
13992
|
* Query users in a profile during a period of time
|
|
13941
13993
|
*
|
|
13942
13994
|
* @param {Object} filterType Filter type for the query request.
|
|
@@ -14432,7 +14484,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14432
14484
|
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(){/**
|
|
14433
14485
|
* GeneralDataProtectionRegulation service.
|
|
14434
14486
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
14435
|
-
* @version
|
|
14487
|
+
* @version 235.0.0
|
|
14436
14488
|
*//**
|
|
14437
14489
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
14438
14490
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -14467,7 +14519,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
14467
14519
|
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(){/**
|
|
14468
14520
|
* Geolocation service.
|
|
14469
14521
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
14470
|
-
* @version
|
|
14522
|
+
* @version 235.0.0
|
|
14471
14523
|
*//**
|
|
14472
14524
|
* Constructs a new GeolocationApi.
|
|
14473
14525
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -14501,7 +14553,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
14501
14553
|
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(){/**
|
|
14502
14554
|
* Greetings service.
|
|
14503
14555
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
14504
|
-
* @version
|
|
14556
|
+
* @version 235.0.0
|
|
14505
14557
|
*//**
|
|
14506
14558
|
* Constructs a new GreetingsApi.
|
|
14507
14559
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -14629,7 +14681,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
14629
14681
|
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(){/**
|
|
14630
14682
|
* Groups service.
|
|
14631
14683
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
14632
|
-
* @version
|
|
14684
|
+
* @version 235.0.0
|
|
14633
14685
|
*//**
|
|
14634
14686
|
* Constructs a new GroupsApi.
|
|
14635
14687
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -14762,7 +14814,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
|
|
|
14762
14814
|
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(){/**
|
|
14763
14815
|
* IdentityProvider service.
|
|
14764
14816
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
14765
|
-
* @version
|
|
14817
|
+
* @version 235.0.0
|
|
14766
14818
|
*//**
|
|
14767
14819
|
* Constructs a new IdentityProviderApi.
|
|
14768
14820
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -14918,7 +14970,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14918
14970
|
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(){/**
|
|
14919
14971
|
* InfrastructureAsCode service.
|
|
14920
14972
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
14921
|
-
* @version
|
|
14973
|
+
* @version 235.0.0
|
|
14922
14974
|
*//**
|
|
14923
14975
|
* Constructs a new InfrastructureAsCodeApi.
|
|
14924
14976
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -14972,7 +15024,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
14972
15024
|
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(){/**
|
|
14973
15025
|
* Integrations service.
|
|
14974
15026
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
14975
|
-
* @version
|
|
15027
|
+
* @version 235.0.0
|
|
14976
15028
|
*//**
|
|
14977
15029
|
* Constructs a new IntegrationsApi.
|
|
14978
15030
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -15662,7 +15714,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
|
|
|
15662
15714
|
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(){/**
|
|
15663
15715
|
* Journey service.
|
|
15664
15716
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
15665
|
-
* @version
|
|
15717
|
+
* @version 235.0.0
|
|
15666
15718
|
*//**
|
|
15667
15719
|
* Constructs a new JourneyApi.
|
|
15668
15720
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -16171,7 +16223,7 @@ if(versionId===undefined||versionId===null||versionId===''){throw'Missing the re
|
|
|
16171
16223
|
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(){/**
|
|
16172
16224
|
* Knowledge service.
|
|
16173
16225
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
16174
|
-
* @version
|
|
16226
|
+
* @version 235.0.0
|
|
16175
16227
|
*//**
|
|
16176
16228
|
* Constructs a new KnowledgeApi.
|
|
16177
16229
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -16228,36 +16280,6 @@ if(importJobId===undefined||importJobId===null||importJobId===''){throw'Missing
|
|
|
16228
16280
|
*/},{key:"deleteKnowledgeKnowledgebaseLabel",value:function deleteKnowledgeKnowledgebaseLabel(knowledgeBaseId,labelId){// verify the required parameter 'knowledgeBaseId' is set
|
|
16229
16281
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLabel';}// verify the required parameter 'labelId' is set
|
|
16230
16282
|
if(labelId===undefined||labelId===null||labelId===''){throw'Missing the required parameter "labelId" when calling deleteKnowledgeKnowledgebaseLabel';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}','DELETE',{'knowledgeBaseId':knowledgeBaseId,'labelId':labelId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16231
|
-
* Delete category
|
|
16232
|
-
*
|
|
16233
|
-
* @param {String} categoryId Category ID
|
|
16234
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16235
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16236
|
-
* @deprecated
|
|
16237
|
-
*/},{key:"deleteKnowledgeKnowledgebaseLanguageCategory",value:function deleteKnowledgeKnowledgebaseLanguageCategory(categoryId,knowledgeBaseId,languageCode){// verify the required parameter 'categoryId' is set
|
|
16238
|
-
if(categoryId===undefined||categoryId===null||categoryId===''){throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseLanguageCategory';}// verify the required parameter 'knowledgeBaseId' is set
|
|
16239
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLanguageCategory';}// verify the required parameter 'languageCode' is set
|
|
16240
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling deleteKnowledgeKnowledgebaseLanguageCategory';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories/{categoryId}','DELETE',{'categoryId':categoryId,'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16241
|
-
* Delete document
|
|
16242
|
-
*
|
|
16243
|
-
* @param {String} documentId Document ID
|
|
16244
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16245
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16246
|
-
* @deprecated
|
|
16247
|
-
*/},{key:"deleteKnowledgeKnowledgebaseLanguageDocument",value:function deleteKnowledgeKnowledgebaseLanguageDocument(documentId,knowledgeBaseId,languageCode){// verify the required parameter 'documentId' is set
|
|
16248
|
-
if(documentId===undefined||documentId===null||documentId===''){throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseLanguageDocument';}// verify the required parameter 'knowledgeBaseId' is set
|
|
16249
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLanguageDocument';}// verify the required parameter 'languageCode' is set
|
|
16250
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling deleteKnowledgeKnowledgebaseLanguageDocument';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}','DELETE',{'documentId':documentId,'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16251
|
-
* Delete import operation
|
|
16252
|
-
*
|
|
16253
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16254
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16255
|
-
* @param {String} importId Import ID
|
|
16256
|
-
* @deprecated
|
|
16257
|
-
*/},{key:"deleteKnowledgeKnowledgebaseLanguageDocumentsImport",value:function deleteKnowledgeKnowledgebaseLanguageDocumentsImport(knowledgeBaseId,languageCode,importId){// verify the required parameter 'knowledgeBaseId' is set
|
|
16258
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLanguageDocumentsImport';}// verify the required parameter 'languageCode' is set
|
|
16259
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling deleteKnowledgeKnowledgebaseLanguageDocumentsImport';}// verify the required parameter 'importId' is set
|
|
16260
|
-
if(importId===undefined||importId===null||importId===''){throw'Missing the required parameter "importId" when calling deleteKnowledgeKnowledgebaseLanguageDocumentsImport';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports/{importId}','DELETE',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode,'importId':importId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16261
16283
|
* Delete Salesforce Knowledge integration source
|
|
16262
16284
|
*
|
|
16263
16285
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
@@ -16504,104 +16526,6 @@ if(labelId===undefined||labelId===null||labelId===''){throw'Missing the required
|
|
|
16504
16526
|
* @param {Boolean} opts.includeDocumentCount If specified, retrieves the number of documents related to label.
|
|
16505
16527
|
*/},{key:"getKnowledgeKnowledgebaseLabels",value:function getKnowledgeKnowledgebaseLabels(knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
|
|
16506
16528
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabels';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels','GET',{'knowledgeBaseId':knowledgeBaseId},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'name':opts['name'],'includeDocumentCount':opts['includeDocumentCount']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16507
|
-
* Get categories
|
|
16508
|
-
*
|
|
16509
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16510
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16511
|
-
* @param {Object} opts Optional parameters
|
|
16512
|
-
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
16513
|
-
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
16514
|
-
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
16515
|
-
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
16516
|
-
* @param {String} opts.name Filter to return the categories that starts with the given category name.
|
|
16517
|
-
* @deprecated
|
|
16518
|
-
*/},{key:"getKnowledgeKnowledgebaseLanguageCategories",value:function getKnowledgeKnowledgebaseLanguageCategories(knowledgeBaseId,languageCode,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
|
|
16519
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageCategories';}// verify the required parameter 'languageCode' is set
|
|
16520
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageCategories';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories','GET',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{'before':opts['before'],'after':opts['after'],'limit':opts['limit'],'pageSize':opts['pageSize'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16521
|
-
* Get category
|
|
16522
|
-
*
|
|
16523
|
-
* @param {String} categoryId Category ID
|
|
16524
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16525
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16526
|
-
* @deprecated
|
|
16527
|
-
*/},{key:"getKnowledgeKnowledgebaseLanguageCategory",value:function getKnowledgeKnowledgebaseLanguageCategory(categoryId,knowledgeBaseId,languageCode){// verify the required parameter 'categoryId' is set
|
|
16528
|
-
if(categoryId===undefined||categoryId===null||categoryId===''){throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseLanguageCategory';}// verify the required parameter 'knowledgeBaseId' is set
|
|
16529
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageCategory';}// verify the required parameter 'languageCode' is set
|
|
16530
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageCategory';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories/{categoryId}','GET',{'categoryId':categoryId,'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16531
|
-
* Get document
|
|
16532
|
-
*
|
|
16533
|
-
* @param {String} documentId Document ID
|
|
16534
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16535
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16536
|
-
* @deprecated
|
|
16537
|
-
*/},{key:"getKnowledgeKnowledgebaseLanguageDocument",value:function getKnowledgeKnowledgebaseLanguageDocument(documentId,knowledgeBaseId,languageCode){// verify the required parameter 'documentId' is set
|
|
16538
|
-
if(documentId===undefined||documentId===null||documentId===''){throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseLanguageDocument';}// verify the required parameter 'knowledgeBaseId' is set
|
|
16539
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocument';}// verify the required parameter 'languageCode' is set
|
|
16540
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocument';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}','GET',{'documentId':documentId,'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16541
|
-
* Get document content upload status
|
|
16542
|
-
*
|
|
16543
|
-
* @param {String} documentId Document ID
|
|
16544
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16545
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16546
|
-
* @param {String} uploadId UploadId
|
|
16547
|
-
* @deprecated
|
|
16548
|
-
*/},{key:"getKnowledgeKnowledgebaseLanguageDocumentUpload",value:function getKnowledgeKnowledgebaseLanguageDocumentUpload(documentId,knowledgeBaseId,languageCode,uploadId){// verify the required parameter 'documentId' is set
|
|
16549
|
-
if(documentId===undefined||documentId===null||documentId===''){throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';}// verify the required parameter 'knowledgeBaseId' is set
|
|
16550
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';}// verify the required parameter 'languageCode' is set
|
|
16551
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';}// verify the required parameter 'uploadId' is set
|
|
16552
|
-
if(uploadId===undefined||uploadId===null||uploadId===''){throw'Missing the required parameter "uploadId" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}/uploads/{uploadId}','GET',{'documentId':documentId,'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode,'uploadId':uploadId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16553
|
-
* Get documents
|
|
16554
|
-
*
|
|
16555
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16556
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16557
|
-
* @param {Object} opts Optional parameters
|
|
16558
|
-
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
16559
|
-
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
16560
|
-
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
16561
|
-
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
16562
|
-
* @param {String} opts.categories Filter by categories ids, comma separated values expected.
|
|
16563
|
-
* @param {String} opts.title Filter by document title.
|
|
16564
|
-
* @param {Object} opts.sortBy Sort by.
|
|
16565
|
-
* @param {Object} opts.sortOrder Sort Order.
|
|
16566
|
-
* @param {Array.<String>} opts.documentIds Comma-separated list of document identifiers to fetch by.
|
|
16567
|
-
* @deprecated
|
|
16568
|
-
*/},{key:"getKnowledgeKnowledgebaseLanguageDocuments",value:function getKnowledgeKnowledgebaseLanguageDocuments(knowledgeBaseId,languageCode,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
|
|
16569
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocuments';}// verify the required parameter 'languageCode' is set
|
|
16570
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocuments';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents','GET',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{'before':opts['before'],'after':opts['after'],'limit':opts['limit'],'pageSize':opts['pageSize'],'categories':opts['categories'],'title':opts['title'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'documentIds':this.apiClient.buildCollectionParam(opts['documentIds'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16571
|
-
* Get import operation report
|
|
16572
|
-
*
|
|
16573
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16574
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16575
|
-
* @param {String} importId Import ID
|
|
16576
|
-
* @deprecated
|
|
16577
|
-
*/},{key:"getKnowledgeKnowledgebaseLanguageDocumentsImport",value:function getKnowledgeKnowledgebaseLanguageDocumentsImport(knowledgeBaseId,languageCode,importId){// verify the required parameter 'knowledgeBaseId' is set
|
|
16578
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocumentsImport';}// verify the required parameter 'languageCode' is set
|
|
16579
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocumentsImport';}// verify the required parameter 'importId' is set
|
|
16580
|
-
if(importId===undefined||importId===null||importId===''){throw'Missing the required parameter "importId" when calling getKnowledgeKnowledgebaseLanguageDocumentsImport';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports/{importId}','GET',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode,'importId':importId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16581
|
-
* Get training detail
|
|
16582
|
-
*
|
|
16583
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16584
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16585
|
-
* @param {String} trainingId Training ID
|
|
16586
|
-
* @deprecated
|
|
16587
|
-
*/},{key:"getKnowledgeKnowledgebaseLanguageTraining",value:function getKnowledgeKnowledgebaseLanguageTraining(knowledgeBaseId,languageCode,trainingId){// verify the required parameter 'knowledgeBaseId' is set
|
|
16588
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageTraining';}// verify the required parameter 'languageCode' is set
|
|
16589
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageTraining';}// verify the required parameter 'trainingId' is set
|
|
16590
|
-
if(trainingId===undefined||trainingId===null||trainingId===''){throw'Missing the required parameter "trainingId" when calling getKnowledgeKnowledgebaseLanguageTraining';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings/{trainingId}','GET',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode,'trainingId':trainingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16591
|
-
* Get all trainings information for a knowledgebase
|
|
16592
|
-
*
|
|
16593
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16594
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16595
|
-
* @param {Object} opts Optional parameters
|
|
16596
|
-
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
16597
|
-
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
16598
|
-
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
16599
|
-
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
16600
|
-
* @param {Object} opts.knowledgeDocumentsState Return the training with the specified state of the trained documents.
|
|
16601
|
-
* @deprecated
|
|
16602
|
-
*/},{key:"getKnowledgeKnowledgebaseLanguageTrainings",value:function getKnowledgeKnowledgebaseLanguageTrainings(knowledgeBaseId,languageCode,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
|
|
16603
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageTrainings';}// verify the required parameter 'languageCode' is set
|
|
16604
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageTrainings';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings','GET',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{'before':opts['before'],'after':opts['after'],'limit':opts['limit'],'pageSize':opts['pageSize'],'knowledgeDocumentsState':opts['knowledgeDocumentsState']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16605
16529
|
* Get operations
|
|
16606
16530
|
*
|
|
16607
16531
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
@@ -16800,52 +16724,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16800
16724
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLabel';}// verify the required parameter 'labelId' is set
|
|
16801
16725
|
if(labelId===undefined||labelId===null||labelId===''){throw'Missing the required parameter "labelId" when calling patchKnowledgeKnowledgebaseLabel';}// verify the required parameter 'body' is set
|
|
16802
16726
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLabel';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}','PATCH',{'knowledgeBaseId':knowledgeBaseId,'labelId':labelId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16803
|
-
* Update category
|
|
16804
|
-
*
|
|
16805
|
-
* @param {String} categoryId Category ID
|
|
16806
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16807
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16808
|
-
* @param {Object} body
|
|
16809
|
-
* @deprecated
|
|
16810
|
-
*/},{key:"patchKnowledgeKnowledgebaseLanguageCategory",value:function patchKnowledgeKnowledgebaseLanguageCategory(categoryId,knowledgeBaseId,languageCode,body){// verify the required parameter 'categoryId' is set
|
|
16811
|
-
if(categoryId===undefined||categoryId===null||categoryId===''){throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseLanguageCategory';}// verify the required parameter 'knowledgeBaseId' is set
|
|
16812
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageCategory';}// verify the required parameter 'languageCode' is set
|
|
16813
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageCategory';}// verify the required parameter 'body' is set
|
|
16814
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageCategory';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories/{categoryId}','PATCH',{'categoryId':categoryId,'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16815
|
-
* Update document
|
|
16816
|
-
*
|
|
16817
|
-
* @param {String} documentId Document ID
|
|
16818
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16819
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16820
|
-
* @param {Object} body
|
|
16821
|
-
* @deprecated
|
|
16822
|
-
*/},{key:"patchKnowledgeKnowledgebaseLanguageDocument",value:function patchKnowledgeKnowledgebaseLanguageDocument(documentId,knowledgeBaseId,languageCode,body){// verify the required parameter 'documentId' is set
|
|
16823
|
-
if(documentId===undefined||documentId===null||documentId===''){throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseLanguageDocument';}// verify the required parameter 'knowledgeBaseId' is set
|
|
16824
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageDocument';}// verify the required parameter 'languageCode' is set
|
|
16825
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageDocument';}// verify the required parameter 'body' is set
|
|
16826
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageDocument';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}','PATCH',{'documentId':documentId,'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16827
|
-
* Update documents collection
|
|
16828
|
-
*
|
|
16829
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16830
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16831
|
-
* @param {Array.<Object>} body
|
|
16832
|
-
* @deprecated
|
|
16833
|
-
*/},{key:"patchKnowledgeKnowledgebaseLanguageDocuments",value:function patchKnowledgeKnowledgebaseLanguageDocuments(knowledgeBaseId,languageCode,body){// verify the required parameter 'knowledgeBaseId' is set
|
|
16834
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageDocuments';}// verify the required parameter 'languageCode' is set
|
|
16835
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageDocuments';}// verify the required parameter 'body' is set
|
|
16836
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageDocuments';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents','PATCH',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16837
|
-
* Start import operation
|
|
16838
|
-
*
|
|
16839
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
16840
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
16841
|
-
* @param {String} importId Import ID
|
|
16842
|
-
* @param {Object} body
|
|
16843
|
-
* @deprecated
|
|
16844
|
-
*/},{key:"patchKnowledgeKnowledgebaseLanguageDocumentsImport",value:function patchKnowledgeKnowledgebaseLanguageDocumentsImport(knowledgeBaseId,languageCode,importId,body){// verify the required parameter 'knowledgeBaseId' is set
|
|
16845
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';}// verify the required parameter 'languageCode' is set
|
|
16846
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';}// verify the required parameter 'importId' is set
|
|
16847
|
-
if(importId===undefined||importId===null||importId===''){throw'Missing the required parameter "importId" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';}// verify the required parameter 'body' is set
|
|
16848
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports/{importId}','PATCH',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode,'importId':importId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16849
16727
|
* Send update to the parse operation
|
|
16850
16728
|
*
|
|
16851
16729
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
@@ -17086,66 +16964,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17086
16964
|
*/},{key:"postKnowledgeKnowledgebaseLabels",value:function postKnowledgeKnowledgebaseLabels(knowledgeBaseId,body){// verify the required parameter 'knowledgeBaseId' is set
|
|
17087
16965
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLabels';}// verify the required parameter 'body' is set
|
|
17088
16966
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLabels';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17089
|
-
* Create new category
|
|
17090
|
-
*
|
|
17091
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
17092
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
17093
|
-
* @param {Object} body
|
|
17094
|
-
* @deprecated
|
|
17095
|
-
*/},{key:"postKnowledgeKnowledgebaseLanguageCategories",value:function postKnowledgeKnowledgebaseLanguageCategories(knowledgeBaseId,languageCode,body){// verify the required parameter 'knowledgeBaseId' is set
|
|
17096
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageCategories';}// verify the required parameter 'languageCode' is set
|
|
17097
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageCategories';}// verify the required parameter 'body' is set
|
|
17098
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageCategories';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories','POST',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17099
|
-
* Upload Article Content
|
|
17100
|
-
*
|
|
17101
|
-
* @param {String} documentId Document ID
|
|
17102
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
17103
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
17104
|
-
* @param {Object} body
|
|
17105
|
-
* @deprecated
|
|
17106
|
-
*/},{key:"postKnowledgeKnowledgebaseLanguageDocumentUploads",value:function postKnowledgeKnowledgebaseLanguageDocumentUploads(documentId,knowledgeBaseId,languageCode,body){// verify the required parameter 'documentId' is set
|
|
17107
|
-
if(documentId===undefined||documentId===null||documentId===''){throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';}// verify the required parameter 'knowledgeBaseId' is set
|
|
17108
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';}// verify the required parameter 'languageCode' is set
|
|
17109
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';}// verify the required parameter 'body' is set
|
|
17110
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}/uploads','POST',{'documentId':documentId,'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17111
|
-
* Create document
|
|
17112
|
-
*
|
|
17113
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
17114
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
17115
|
-
* @param {Object} body
|
|
17116
|
-
* @deprecated
|
|
17117
|
-
*/},{key:"postKnowledgeKnowledgebaseLanguageDocuments",value:function postKnowledgeKnowledgebaseLanguageDocuments(knowledgeBaseId,languageCode,body){// verify the required parameter 'knowledgeBaseId' is set
|
|
17118
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageDocuments';}// verify the required parameter 'languageCode' is set
|
|
17119
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageDocuments';}// verify the required parameter 'body' is set
|
|
17120
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageDocuments';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents','POST',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17121
|
-
* Create import operation
|
|
17122
|
-
*
|
|
17123
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
17124
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
17125
|
-
* @param {Object} body
|
|
17126
|
-
* @deprecated
|
|
17127
|
-
*/},{key:"postKnowledgeKnowledgebaseLanguageDocumentsImports",value:function postKnowledgeKnowledgebaseLanguageDocumentsImports(knowledgeBaseId,languageCode,body){// verify the required parameter 'knowledgeBaseId' is set
|
|
17128
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageDocumentsImports';}// verify the required parameter 'languageCode' is set
|
|
17129
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageDocumentsImports';}// verify the required parameter 'body' is set
|
|
17130
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageDocumentsImports';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports','POST',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17131
|
-
* Promote trained documents from draft state to active.
|
|
17132
|
-
*
|
|
17133
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
17134
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
17135
|
-
* @param {String} trainingId Training ID
|
|
17136
|
-
* @deprecated
|
|
17137
|
-
*/},{key:"postKnowledgeKnowledgebaseLanguageTrainingPromote",value:function postKnowledgeKnowledgebaseLanguageTrainingPromote(knowledgeBaseId,languageCode,trainingId){// verify the required parameter 'knowledgeBaseId' is set
|
|
17138
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageTrainingPromote';}// verify the required parameter 'languageCode' is set
|
|
17139
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageTrainingPromote';}// verify the required parameter 'trainingId' is set
|
|
17140
|
-
if(trainingId===undefined||trainingId===null||trainingId===''){throw'Missing the required parameter "trainingId" when calling postKnowledgeKnowledgebaseLanguageTrainingPromote';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings/{trainingId}/promote','POST',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode,'trainingId':trainingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17141
|
-
* Trigger training
|
|
17142
|
-
*
|
|
17143
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
17144
|
-
* @param {Object} languageCode Language code, format: iso2-LOCALE
|
|
17145
|
-
* @deprecated
|
|
17146
|
-
*/},{key:"postKnowledgeKnowledgebaseLanguageTrainings",value:function postKnowledgeKnowledgebaseLanguageTrainings(knowledgeBaseId,languageCode){// verify the required parameter 'knowledgeBaseId' is set
|
|
17147
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageTrainings';}// verify the required parameter 'languageCode' is set
|
|
17148
|
-
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageTrainings';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings','POST',{'knowledgeBaseId':knowledgeBaseId,'languageCode':languageCode},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17149
16967
|
* Import the parsed articles
|
|
17150
16968
|
*
|
|
17151
16969
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
@@ -17162,14 +16980,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17162
16980
|
*/},{key:"postKnowledgeKnowledgebaseParseJobs",value:function postKnowledgeKnowledgebaseParseJobs(knowledgeBaseId,body){// verify the required parameter 'knowledgeBaseId' is set
|
|
17163
16981
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobs';}// verify the required parameter 'body' is set
|
|
17164
16982
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobs';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17165
|
-
* Search Documents
|
|
17166
|
-
*
|
|
17167
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
17168
|
-
* @param {Object} opts Optional parameters
|
|
17169
|
-
* @param {Object} opts.body
|
|
17170
|
-
* @deprecated
|
|
17171
|
-
*/},{key:"postKnowledgeKnowledgebaseSearch",value:function postKnowledgeKnowledgebaseSearch(knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
|
|
17172
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSearch';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/search','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17173
16983
|
* Create Salesforce Knowledge integration source
|
|
17174
16984
|
*
|
|
17175
16985
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
@@ -17241,7 +17051,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
17241
17051
|
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(){/**
|
|
17242
17052
|
* LanguageUnderstanding service.
|
|
17243
17053
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
17244
|
-
* @version
|
|
17054
|
+
* @version 235.0.0
|
|
17245
17055
|
*//**
|
|
17246
17056
|
* Constructs a new LanguageUnderstandingApi.
|
|
17247
17057
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -17550,7 +17360,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
|
|
|
17550
17360
|
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(){/**
|
|
17551
17361
|
* Languages service.
|
|
17552
17362
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
17553
|
-
* @version
|
|
17363
|
+
* @version 235.0.0
|
|
17554
17364
|
*//**
|
|
17555
17365
|
* Constructs a new LanguagesApi.
|
|
17556
17366
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -17605,7 +17415,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17605
17415
|
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(){/**
|
|
17606
17416
|
* Learning service.
|
|
17607
17417
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
17608
|
-
* @version
|
|
17418
|
+
* @version 235.0.0
|
|
17609
17419
|
*//**
|
|
17610
17420
|
* Constructs a new LearningApi.
|
|
17611
17421
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -17743,6 +17553,11 @@ if(userIds===undefined||userIds===null){throw'Missing the required parameter "us
|
|
|
17743
17553
|
* @param {String} coverArtId Key identifier for the cover art
|
|
17744
17554
|
*/},{key:"getLearningModulesCoverartCoverArtId",value:function getLearningModulesCoverartCoverArtId(coverArtId){// verify the required parameter 'coverArtId' is set
|
|
17745
17555
|
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']);}/**
|
|
17556
|
+
* Retrieve the status of the job for the slots where a learning activity can be scheduled.
|
|
17557
|
+
*
|
|
17558
|
+
* @param {String} jobId The ID of the job
|
|
17559
|
+
*/},{key:"getLearningScheduleslotsJob",value:function getLearningScheduleslotsJob(jobId){// verify the required parameter 'jobId' is set
|
|
17560
|
+
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']);}/**
|
|
17746
17561
|
* Get Learning SCORM Result
|
|
17747
17562
|
*
|
|
17748
17563
|
* @param {String} scormId The ID of the SCORM package
|
|
@@ -17843,6 +17658,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17843
17658
|
if(pageSize===undefined||pageSize===null){throw'Missing the required parameter "pageSize" when calling postLearningRulesQuery';}// verify the required parameter 'pageNumber' is set
|
|
17844
17659
|
if(pageNumber===undefined||pageNumber===null){throw'Missing the required parameter "pageNumber" when calling postLearningRulesQuery';}// verify the required parameter 'body' is set
|
|
17845
17660
|
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']);}/**
|
|
17661
|
+
* Start job to retrieve slots where a learning activity can be scheduled.
|
|
17662
|
+
*
|
|
17663
|
+
* @param {Object} body The slots search request
|
|
17664
|
+
*/},{key:"postLearningScheduleslotsJobs",value:function postLearningScheduleslotsJobs(body){// verify the required parameter 'body' is set
|
|
17665
|
+
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']);}/**
|
|
17846
17666
|
* Get list of possible slots where a learning activity can be scheduled.
|
|
17847
17667
|
*
|
|
17848
17668
|
* @param {Object} body The slot search request
|
|
@@ -17878,7 +17698,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
|
|
|
17878
17698
|
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(){/**
|
|
17879
17699
|
* License service.
|
|
17880
17700
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
17881
|
-
* @version
|
|
17701
|
+
* @version 235.0.0
|
|
17882
17702
|
*//**
|
|
17883
17703
|
* Constructs a new LicenseApi.
|
|
17884
17704
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -17932,7 +17752,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
|
|
|
17932
17752
|
*/},{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(){/**
|
|
17933
17753
|
* Locations service.
|
|
17934
17754
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
17935
|
-
* @version
|
|
17755
|
+
* @version 235.0.0
|
|
17936
17756
|
*//**
|
|
17937
17757
|
* Constructs a new LocationsApi.
|
|
17938
17758
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -17991,7 +17811,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17991
17811
|
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(){/**
|
|
17992
17812
|
* LogCapture service.
|
|
17993
17813
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
17994
|
-
* @version
|
|
17814
|
+
* @version 235.0.0
|
|
17995
17815
|
*//**
|
|
17996
17816
|
* Constructs a new LogCaptureApi.
|
|
17997
17817
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -18040,7 +17860,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
18040
17860
|
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(){/**
|
|
18041
17861
|
* Messaging service.
|
|
18042
17862
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
18043
|
-
* @version
|
|
17863
|
+
* @version 235.0.0
|
|
18044
17864
|
*//**
|
|
18045
17865
|
* Constructs a new MessagingApi.
|
|
18046
17866
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -18130,7 +17950,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18130
17950
|
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(){/**
|
|
18131
17951
|
* MobileDevices service.
|
|
18132
17952
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
18133
|
-
* @version
|
|
17953
|
+
* @version 235.0.0
|
|
18134
17954
|
*//**
|
|
18135
17955
|
* Constructs a new MobileDevicesApi.
|
|
18136
17956
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -18169,7 +17989,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18169
17989
|
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(){/**
|
|
18170
17990
|
* Notifications service.
|
|
18171
17991
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
18172
|
-
* @version
|
|
17992
|
+
* @version 235.0.0
|
|
18173
17993
|
*//**
|
|
18174
17994
|
* Constructs a new NotificationsApi.
|
|
18175
17995
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -18226,7 +18046,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
|
|
|
18226
18046
|
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(){/**
|
|
18227
18047
|
* OAuth service.
|
|
18228
18048
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
18229
|
-
* @version
|
|
18049
|
+
* @version 235.0.0
|
|
18230
18050
|
*//**
|
|
18231
18051
|
* Constructs a new OAuthApi.
|
|
18232
18052
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -18311,7 +18131,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
18311
18131
|
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(){/**
|
|
18312
18132
|
* Objects service.
|
|
18313
18133
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
18314
|
-
* @version
|
|
18134
|
+
* @version 235.0.0
|
|
18315
18135
|
*//**
|
|
18316
18136
|
* Constructs a new ObjectsApi.
|
|
18317
18137
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -18397,7 +18217,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
|
|
|
18397
18217
|
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(){/**
|
|
18398
18218
|
* OperationalEvents service.
|
|
18399
18219
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
18400
|
-
* @version
|
|
18220
|
+
* @version 235.0.0
|
|
18401
18221
|
*//**
|
|
18402
18222
|
* Constructs a new OperationalEventsApi.
|
|
18403
18223
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -18428,7 +18248,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
18428
18248
|
*/},{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(){/**
|
|
18429
18249
|
* Organization service.
|
|
18430
18250
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
18431
|
-
* @version
|
|
18251
|
+
* @version 235.0.0
|
|
18432
18252
|
*//**
|
|
18433
18253
|
* Constructs a new OrganizationApi.
|
|
18434
18254
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -18533,7 +18353,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18533
18353
|
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(){/**
|
|
18534
18354
|
* OrganizationAuthorization service.
|
|
18535
18355
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
18536
|
-
* @version
|
|
18356
|
+
* @version 235.0.0
|
|
18537
18357
|
*//**
|
|
18538
18358
|
* Constructs a new OrganizationAuthorizationApi.
|
|
18539
18359
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -18867,7 +18687,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
18867
18687
|
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(){/**
|
|
18868
18688
|
* Outbound service.
|
|
18869
18689
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
18870
|
-
* @version
|
|
18690
|
+
* @version 235.0.0
|
|
18871
18691
|
*//**
|
|
18872
18692
|
* Constructs a new OutboundApi.
|
|
18873
18693
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -19679,6 +19499,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19679
19499
|
* @param {Object} opts.useMaxCallsPerAgentDecimal Use maxCallsPerAgent with decimal precision
|
|
19680
19500
|
*/},{key:"postOutboundCampaigns",value:function postOutboundCampaigns(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
19681
19501
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postOutboundCampaigns';}return this.apiClient.callApi('/api/v2/outbound/campaigns','POST',{},{'useMaxCallsPerAgentDecimal':opts['useMaxCallsPerAgentDecimal']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19502
|
+
* Get performance data for a list of campaigns
|
|
19503
|
+
*
|
|
19504
|
+
* @param {Array.<String>} body Campaign IDs. Maximum of 50 IDs allowed.
|
|
19505
|
+
*/},{key:"postOutboundCampaignsPerformanceQuery",value:function postOutboundCampaignsPerformanceQuery(body){// verify the required parameter 'body' is set
|
|
19506
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postOutboundCampaignsPerformanceQuery';}return this.apiClient.callApi('/api/v2/outbound/campaigns/performance/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19682
19507
|
* Get progress for a list of campaigns
|
|
19683
19508
|
*
|
|
19684
19509
|
* @param {Array.<String>} body Campaign IDs
|
|
@@ -20018,7 +19843,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20018
19843
|
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(){/**
|
|
20019
19844
|
* Presence service.
|
|
20020
19845
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
20021
|
-
* @version
|
|
19846
|
+
* @version 235.0.0
|
|
20022
19847
|
*//**
|
|
20023
19848
|
* Constructs a new PresenceApi.
|
|
20024
19849
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -20191,7 +20016,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20191
20016
|
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(){/**
|
|
20192
20017
|
* ProcessAutomation service.
|
|
20193
20018
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
20194
|
-
* @version
|
|
20019
|
+
* @version 235.0.0
|
|
20195
20020
|
*//**
|
|
20196
20021
|
* Constructs a new ProcessAutomationApi.
|
|
20197
20022
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -20254,7 +20079,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
|
|
|
20254
20079
|
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(){/**
|
|
20255
20080
|
* Quality service.
|
|
20256
20081
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
20257
|
-
* @version
|
|
20082
|
+
* @version 235.0.0
|
|
20258
20083
|
*//**
|
|
20259
20084
|
* Constructs a new QualityApi.
|
|
20260
20085
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -20568,20 +20393,6 @@ if(formId===undefined||formId===null||formId===''){throw'Missing the required pa
|
|
|
20568
20393
|
* @param {String} opts.name Name
|
|
20569
20394
|
* @param {Boolean} opts.onlyLatestPerContext onlyLatestPerContext (default to false)
|
|
20570
20395
|
*/},{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']);}/**
|
|
20571
|
-
* Get the most recent published version of an evaluation form across any division.
|
|
20572
|
-
*
|
|
20573
|
-
* @param {String} evaluationFormId Evaluation Form ID
|
|
20574
|
-
* getQualityPublishedformsEvaluationsDivisionview is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20575
|
-
*/},{key:"getQualityPublishedformsEvaluationsDivisionview",value:function getQualityPublishedformsEvaluationsDivisionview(evaluationFormId){// verify the required parameter 'evaluationFormId' is set
|
|
20576
|
-
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']);}/**
|
|
20577
|
-
* Get the published evaluation forms across any division.
|
|
20578
|
-
*
|
|
20579
|
-
* @param {Object} opts Optional parameters
|
|
20580
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
20581
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
20582
|
-
* @param {String} opts.name Name
|
|
20583
|
-
* getQualityPublishedformsEvaluationsDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20584
|
-
*/},{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']);}/**
|
|
20585
20396
|
* Get the most recent published version of a survey form.
|
|
20586
20397
|
*
|
|
20587
20398
|
* @param {String} formId Form ID
|
|
@@ -20595,20 +20406,6 @@ if(formId===undefined||formId===null||formId===''){throw'Missing the required pa
|
|
|
20595
20406
|
* @param {String} opts.name Name
|
|
20596
20407
|
* @param {Boolean} opts.onlyLatestEnabledPerContext onlyLatestEnabledPerContext (default to false)
|
|
20597
20408
|
*/},{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']);}/**
|
|
20598
|
-
* Get the most recent published version of an enabled survey form across any division.
|
|
20599
|
-
*
|
|
20600
|
-
* @param {String} surveyFormId Survey Form ID
|
|
20601
|
-
* getQualityPublishedformsSurveysDivisionview is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20602
|
-
*/},{key:"getQualityPublishedformsSurveysDivisionview",value:function getQualityPublishedformsSurveysDivisionview(surveyFormId){// verify the required parameter 'surveyFormId' is set
|
|
20603
|
-
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']);}/**
|
|
20604
|
-
* Get the published and enabled survey forms across any division.
|
|
20605
|
-
*
|
|
20606
|
-
* @param {Object} opts Optional parameters
|
|
20607
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
20608
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
20609
|
-
* @param {String} opts.name Name
|
|
20610
|
-
* getQualityPublishedformsSurveysDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20611
|
-
*/},{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']);}/**
|
|
20612
20409
|
* Get a survey for a conversation
|
|
20613
20410
|
*
|
|
20614
20411
|
* @param {String} surveyId surveyId
|
|
@@ -20772,7 +20569,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
20772
20569
|
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(){/**
|
|
20773
20570
|
* Recording service.
|
|
20774
20571
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
20775
|
-
* @version
|
|
20572
|
+
* @version 235.0.0
|
|
20776
20573
|
*//**
|
|
20777
20574
|
* Constructs a new RecordingApi.
|
|
20778
20575
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -21171,7 +20968,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21171
20968
|
*/},{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(){/**
|
|
21172
20969
|
* ResponseManagement service.
|
|
21173
20970
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
21174
|
-
* @version
|
|
20971
|
+
* @version 235.0.0
|
|
21175
20972
|
*//**
|
|
21176
20973
|
* Constructs a new ResponseManagementApi.
|
|
21177
20974
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -21292,7 +21089,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
|
|
|
21292
21089
|
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(){/**
|
|
21293
21090
|
* Routing service.
|
|
21294
21091
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
21295
|
-
* @version
|
|
21092
|
+
* @version 235.0.0
|
|
21296
21093
|
*//**
|
|
21297
21094
|
* Constructs a new RoutingApi.
|
|
21298
21095
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -21471,6 +21268,16 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
21471
21268
|
* @param {Object} opts.expand Expand options. Valid values: settings
|
|
21472
21269
|
*/},{key:"getRoutingEmailDomain",value:function getRoutingEmailDomain(domainId,opts){opts=opts||{};// verify the required parameter 'domainId' is set
|
|
21473
21270
|
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling getRoutingEmailDomain';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainId}','GET',{'domainId':domainId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21271
|
+
* Get domain dkim settings
|
|
21272
|
+
*
|
|
21273
|
+
* @param {String} domainId domain ID
|
|
21274
|
+
*/},{key:"getRoutingEmailDomainDkim",value:function getRoutingEmailDomainDkim(domainId){// verify the required parameter 'domainId' is set
|
|
21275
|
+
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling getRoutingEmailDomainDkim';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainId}/dkim','GET',{'domainId':domainId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21276
|
+
* Get domain mail from settings
|
|
21277
|
+
*
|
|
21278
|
+
* @param {String} domainId domain ID
|
|
21279
|
+
*/},{key:"getRoutingEmailDomainMailfrom",value:function getRoutingEmailDomainMailfrom(domainId){// verify the required parameter 'domainId' is set
|
|
21280
|
+
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling getRoutingEmailDomainMailfrom';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainId}/mailfrom','GET',{'domainId':domainId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21474
21281
|
* Get a route
|
|
21475
21282
|
*
|
|
21476
21283
|
* @param {String} domainName email domain
|
|
@@ -21497,6 +21304,11 @@ if(routeId===undefined||routeId===null||routeId===''){throw'Missing the required
|
|
|
21497
21304
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
21498
21305
|
*/},{key:"getRoutingEmailDomainRoutes",value:function getRoutingEmailDomainRoutes(domainName,opts){opts=opts||{};// verify the required parameter 'domainName' is set
|
|
21499
21306
|
if(domainName===undefined||domainName===null||domainName===''){throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoutes';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes','GET',{'domainName':domainName},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'pattern':opts['pattern'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21307
|
+
* Get domain verification settings
|
|
21308
|
+
*
|
|
21309
|
+
* @param {String} domainId domain ID
|
|
21310
|
+
*/},{key:"getRoutingEmailDomainVerification",value:function getRoutingEmailDomainVerification(domainId){// verify the required parameter 'domainId' is set
|
|
21311
|
+
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling getRoutingEmailDomainVerification';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainId}/verification','GET',{'domainId':domainId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21500
21312
|
* Get domains
|
|
21501
21313
|
*
|
|
21502
21314
|
* @param {Object} opts Optional parameters
|
|
@@ -22096,6 +21908,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22096
21908
|
* @param {Object} opts Optional parameters
|
|
22097
21909
|
* @param {Object} opts.body
|
|
22098
21910
|
*/},{key:"postRoutingAssessmentsJobs",value:function postRoutingAssessmentsJobs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/assessments/jobs','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21911
|
+
* Restart domain dkim
|
|
21912
|
+
*
|
|
21913
|
+
* @param {String} domainId domain ID
|
|
21914
|
+
*/},{key:"postRoutingEmailDomainDkim",value:function postRoutingEmailDomainDkim(domainId){// verify the required parameter 'domainId' is set
|
|
21915
|
+
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainDkim';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainId}/dkim','POST',{'domainId':domainId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21916
|
+
* Set domain mail from settings
|
|
21917
|
+
*
|
|
21918
|
+
* @param {String} domainId domain ID
|
|
21919
|
+
* @param {Object} body Mail From Settings
|
|
21920
|
+
*/},{key:"postRoutingEmailDomainMailfrom",value:function postRoutingEmailDomainMailfrom(domainId,body){// verify the required parameter 'domainId' is set
|
|
21921
|
+
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainMailfrom';}// verify the required parameter 'body' is set
|
|
21922
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postRoutingEmailDomainMailfrom';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainId}/mailfrom','POST',{'domainId':domainId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22099
21923
|
* Create a route
|
|
22100
21924
|
*
|
|
22101
21925
|
* @param {String} domainName email domain
|
|
@@ -22110,6 +21934,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22110
21934
|
* @param {Object} opts.body TestMessage
|
|
22111
21935
|
*/},{key:"postRoutingEmailDomainTestconnection",value:function postRoutingEmailDomainTestconnection(domainId,opts){opts=opts||{};// verify the required parameter 'domainId' is set
|
|
22112
21936
|
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainTestconnection';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainId}/testconnection','POST',{'domainId':domainId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21937
|
+
* Restart domain verification
|
|
21938
|
+
*
|
|
21939
|
+
* @param {String} domainId domain ID
|
|
21940
|
+
*/},{key:"postRoutingEmailDomainVerification",value:function postRoutingEmailDomainVerification(domainId){// verify the required parameter 'domainId' is set
|
|
21941
|
+
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainVerification';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainId}/verification','POST',{'domainId':domainId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22113
21942
|
* Create a domain
|
|
22114
21943
|
*
|
|
22115
21944
|
* @param {Object} body Domain
|
|
@@ -22351,7 +22180,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
22351
22180
|
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(){/**
|
|
22352
22181
|
* SCIM service.
|
|
22353
22182
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
22354
|
-
* @version
|
|
22183
|
+
* @version 235.0.0
|
|
22355
22184
|
*//**
|
|
22356
22185
|
* Constructs a new SCIMApi.
|
|
22357
22186
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -22576,7 +22405,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
22576
22405
|
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(){/**
|
|
22577
22406
|
* ScreenRecording service.
|
|
22578
22407
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
22579
|
-
* @version
|
|
22408
|
+
* @version 235.0.0
|
|
22580
22409
|
*//**
|
|
22581
22410
|
* Constructs a new ScreenRecordingApi.
|
|
22582
22411
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -22591,7 +22420,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22591
22420
|
*/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(){/**
|
|
22592
22421
|
* Scripts service.
|
|
22593
22422
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
22594
|
-
* @version
|
|
22423
|
+
* @version 235.0.0
|
|
22595
22424
|
*//**
|
|
22596
22425
|
* Constructs a new ScriptsApi.
|
|
22597
22426
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -22737,7 +22566,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
|
|
|
22737
22566
|
*/},{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(){/**
|
|
22738
22567
|
* Search service.
|
|
22739
22568
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
22740
|
-
* @version
|
|
22569
|
+
* @version 235.0.0
|
|
22741
22570
|
*//**
|
|
22742
22571
|
* Constructs a new SearchApi.
|
|
22743
22572
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -22833,14 +22662,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22833
22662
|
* @param {Object} body Search request options
|
|
22834
22663
|
*/},{key:"postGroupsSearch",value:function postGroupsSearch(body){// verify the required parameter 'body' is set
|
|
22835
22664
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGroupsSearch';}return this.apiClient.callApi('/api/v2/groups/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22836
|
-
* Search Documents
|
|
22837
|
-
*
|
|
22838
|
-
* @param {String} knowledgeBaseId Knowledge base ID
|
|
22839
|
-
* @param {Object} opts Optional parameters
|
|
22840
|
-
* @param {Object} opts.body
|
|
22841
|
-
* @deprecated
|
|
22842
|
-
*/},{key:"postKnowledgeKnowledgebaseSearch",value:function postKnowledgeKnowledgebaseSearch(knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
|
|
22843
|
-
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSearch';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/search','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22844
22665
|
* Search locations
|
|
22845
22666
|
*
|
|
22846
22667
|
* @param {Object} body Search request options
|
|
@@ -22904,7 +22725,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22904
22725
|
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(){/**
|
|
22905
22726
|
* Settings service.
|
|
22906
22727
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
22907
|
-
* @version
|
|
22728
|
+
* @version 235.0.0
|
|
22908
22729
|
*//**
|
|
22909
22730
|
* Constructs a new SettingsApi.
|
|
22910
22731
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -22976,7 +22797,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
22976
22797
|
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(){/**
|
|
22977
22798
|
* SocialMedia service.
|
|
22978
22799
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
22979
|
-
* @version
|
|
22800
|
+
* @version 235.0.0
|
|
22980
22801
|
*//**
|
|
22981
22802
|
* Constructs a new SocialMediaApi.
|
|
22982
22803
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -23065,8 +22886,10 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
23065
22886
|
* Get a single escalation rule.
|
|
23066
22887
|
*
|
|
23067
22888
|
* @param {String} escalationRuleId escalationRuleId
|
|
23068
|
-
|
|
23069
|
-
|
|
22889
|
+
* @param {Object} opts Optional parameters
|
|
22890
|
+
* @param {Object} opts.expand which fields, if any, to expand
|
|
22891
|
+
*/},{key:"getSocialmediaEscalationrule",value:function getSocialmediaEscalationrule(escalationRuleId,opts){opts=opts||{};// verify the required parameter 'escalationRuleId' is set
|
|
22892
|
+
if(escalationRuleId===undefined||escalationRuleId===null||escalationRuleId===''){throw'Missing the required parameter "escalationRuleId" when calling getSocialmediaEscalationrule';}return this.apiClient.callApi('/api/v2/socialmedia/escalationrules/{escalationRuleId}','GET',{'escalationRuleId':escalationRuleId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23070
22893
|
* Retrieve all escalation rules for a division.
|
|
23071
22894
|
*
|
|
23072
22895
|
* @param {String} divisionId One division ID
|
|
@@ -23389,7 +23212,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
23389
23212
|
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(){/**
|
|
23390
23213
|
* SpeechTextAnalytics service.
|
|
23391
23214
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
23392
|
-
* @version
|
|
23215
|
+
* @version 235.0.0
|
|
23393
23216
|
*//**
|
|
23394
23217
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
23395
23218
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -23759,7 +23582,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
23759
23582
|
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(){/**
|
|
23760
23583
|
* Stations service.
|
|
23761
23584
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
23762
|
-
* @version
|
|
23585
|
+
* @version 235.0.0
|
|
23763
23586
|
*//**
|
|
23764
23587
|
* Constructs a new StationsApi.
|
|
23765
23588
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -23791,7 +23614,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
|
|
|
23791
23614
|
*/},{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(){/**
|
|
23792
23615
|
* Suggest service.
|
|
23793
23616
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
23794
|
-
* @version
|
|
23617
|
+
* @version 235.0.0
|
|
23795
23618
|
*//**
|
|
23796
23619
|
* Constructs a new SuggestApi.
|
|
23797
23620
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -23831,7 +23654,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23831
23654
|
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(){/**
|
|
23832
23655
|
* TaskManagement service.
|
|
23833
23656
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
23834
|
-
* @version
|
|
23657
|
+
* @version 235.0.0
|
|
23835
23658
|
*//**
|
|
23836
23659
|
* Constructs a new TaskManagementApi.
|
|
23837
23660
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -24339,7 +24162,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
24339
24162
|
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(){/**
|
|
24340
24163
|
* Teams service.
|
|
24341
24164
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
24342
|
-
* @version
|
|
24165
|
+
* @version 235.0.0
|
|
24343
24166
|
*//**
|
|
24344
24167
|
* Constructs a new TeamsApi.
|
|
24345
24168
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -24419,7 +24242,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24419
24242
|
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(){/**
|
|
24420
24243
|
* Telephony service.
|
|
24421
24244
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
24422
|
-
* @version
|
|
24245
|
+
* @version 235.0.0
|
|
24423
24246
|
*//**
|
|
24424
24247
|
* Constructs a new TelephonyApi.
|
|
24425
24248
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -24490,7 +24313,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24490
24313
|
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(){/**
|
|
24491
24314
|
* TelephonyProvidersEdge service.
|
|
24492
24315
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
24493
|
-
* @version
|
|
24316
|
+
* @version 235.0.0
|
|
24494
24317
|
*//**
|
|
24495
24318
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
24496
24319
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -25338,7 +25161,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
|
|
|
25338
25161
|
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(){/**
|
|
25339
25162
|
* Textbots service.
|
|
25340
25163
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
25341
|
-
* @version
|
|
25164
|
+
* @version 235.0.0
|
|
25342
25165
|
*//**
|
|
25343
25166
|
* Constructs a new TextbotsApi.
|
|
25344
25167
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -25374,7 +25197,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
25374
25197
|
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(){/**
|
|
25375
25198
|
* Tokens service.
|
|
25376
25199
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
25377
|
-
* @version
|
|
25200
|
+
* @version 235.0.0
|
|
25378
25201
|
*//**
|
|
25379
25202
|
* Constructs a new TokensApi.
|
|
25380
25203
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -25408,7 +25231,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
25408
25231
|
*/},{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(){/**
|
|
25409
25232
|
* Uploads service.
|
|
25410
25233
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
25411
|
-
* @version
|
|
25234
|
+
* @version 235.0.0
|
|
25412
25235
|
*//**
|
|
25413
25236
|
* Constructs a new UploadsApi.
|
|
25414
25237
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -25476,7 +25299,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25476
25299
|
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(){/**
|
|
25477
25300
|
* Usage service.
|
|
25478
25301
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
25479
|
-
* @version
|
|
25302
|
+
* @version 235.0.0
|
|
25480
25303
|
*//**
|
|
25481
25304
|
* Constructs a new UsageApi.
|
|
25482
25305
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -25560,7 +25383,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25560
25383
|
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(){/**
|
|
25561
25384
|
* UserRecordings service.
|
|
25562
25385
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
25563
|
-
* @version
|
|
25386
|
+
* @version 235.0.0
|
|
25564
25387
|
*//**
|
|
25565
25388
|
* Constructs a new UserRecordingsApi.
|
|
25566
25389
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -25608,7 +25431,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
25608
25431
|
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(){/**
|
|
25609
25432
|
* Users service.
|
|
25610
25433
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
25611
|
-
* @version
|
|
25434
|
+
* @version 235.0.0
|
|
25612
25435
|
*//**
|
|
25613
25436
|
* Constructs a new UsersApi.
|
|
25614
25437
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -26352,7 +26175,7 @@ if(verifierId===undefined||verifierId===null||verifierId===''){throw'Missing the
|
|
|
26352
26175
|
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(){/**
|
|
26353
26176
|
* Utilities service.
|
|
26354
26177
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
26355
|
-
* @version
|
|
26178
|
+
* @version 235.0.0
|
|
26356
26179
|
*//**
|
|
26357
26180
|
* Constructs a new UtilitiesApi.
|
|
26358
26181
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -26379,7 +26202,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26379
26202
|
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(){/**
|
|
26380
26203
|
* Voicemail service.
|
|
26381
26204
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
26382
|
-
* @version
|
|
26205
|
+
* @version 235.0.0
|
|
26383
26206
|
*//**
|
|
26384
26207
|
* Constructs a new VoicemailApi.
|
|
26385
26208
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -26541,7 +26364,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
26541
26364
|
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(){/**
|
|
26542
26365
|
* WebChat service.
|
|
26543
26366
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
26544
|
-
* @version
|
|
26367
|
+
* @version 235.0.0
|
|
26545
26368
|
*//**
|
|
26546
26369
|
* Constructs a new WebChatApi.
|
|
26547
26370
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -26688,7 +26511,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26688
26511
|
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(){/**
|
|
26689
26512
|
* WebDeployments service.
|
|
26690
26513
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
26691
|
-
* @version
|
|
26514
|
+
* @version 235.0.0
|
|
26692
26515
|
*//**
|
|
26693
26516
|
* Constructs a new WebDeploymentsApi.
|
|
26694
26517
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -26788,7 +26611,7 @@ if(configurationVersion===undefined||configurationVersion===null){throw'Missing
|
|
|
26788
26611
|
* @param {Object} deployment
|
|
26789
26612
|
*/},{key:"postWebdeploymentsDeployments",value:function postWebdeploymentsDeployments(deployment){// verify the required parameter 'deployment' is set
|
|
26790
26613
|
if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling postWebdeploymentsDeployments';}return this.apiClient.callApi('/api/v2/webdeployments/deployments','POST',{},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26791
|
-
* Exchange an oAuth code (obtained using the Authorization Code Flow) for a JWT that can be used by webdeployments.
|
|
26614
|
+
* Exchange an oAuth code (obtained using the Authorization Code Flow or Implicit flow) for a JWT that can be used by webdeployments.
|
|
26792
26615
|
*
|
|
26793
26616
|
* @param {Object} body webDeploymentsOAuthExchangeRequest
|
|
26794
26617
|
*/},{key:"postWebdeploymentsTokenOauthcodegrantjwtexchange",value:function postWebdeploymentsTokenOauthcodegrantjwtexchange(body){// verify the required parameter 'body' is set
|
|
@@ -26821,7 +26644,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
26821
26644
|
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(){/**
|
|
26822
26645
|
* WebMessaging service.
|
|
26823
26646
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
26824
|
-
* @version
|
|
26647
|
+
* @version 235.0.0
|
|
26825
26648
|
*//**
|
|
26826
26649
|
* Constructs a new WebMessagingApi.
|
|
26827
26650
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -26862,7 +26685,7 @@ if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required
|
|
|
26862
26685
|
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(){/**
|
|
26863
26686
|
* Widgets service.
|
|
26864
26687
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
26865
|
-
* @version
|
|
26688
|
+
* @version 235.0.0
|
|
26866
26689
|
*//**
|
|
26867
26690
|
* Constructs a new WidgetsApi.
|
|
26868
26691
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -26902,7 +26725,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
26902
26725
|
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(){/**
|
|
26903
26726
|
* WorkforceManagement service.
|
|
26904
26727
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
26905
|
-
* @version
|
|
26728
|
+
* @version 235.0.0
|
|
26906
26729
|
*//**
|
|
26907
26730
|
* Constructs a new WorkforceManagementApi.
|
|
26908
26731
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -27485,10 +27308,11 @@ if(forecastId===undefined||forecastId===null||forecastId===''){throw'Missing the
|
|
|
27485
27308
|
* @param {String} forecastId The ID of the forecast
|
|
27486
27309
|
* @param {Object} opts Optional parameters
|
|
27487
27310
|
* @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
|
|
27311
|
+
* @param {Array.<String>} opts.expand Expand to include minimum staffing values in (staffing requirement response or applied to base staffing requirement values)
|
|
27488
27312
|
*/},{key:"getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement",value:function getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement(businessUnitId,weekDateId,forecastId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
27489
27313
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';}// verify the required parameter 'weekDateId' is set
|
|
27490
27314
|
if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';}// verify the required parameter 'forecastId' is set
|
|
27491
|
-
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']);}/**
|
|
27315
|
+
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']);}/**
|
|
27492
27316
|
* Get short term forecasts
|
|
27493
27317
|
* 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
|
|
27494
27318
|
* @param {String} businessUnitId The ID of the business unit to which the forecast belongs
|
|
@@ -28862,7 +28686,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
28862
28686
|
* </pre>
|
|
28863
28687
|
* </p>
|
|
28864
28688
|
* @module purecloud-platform-client-v2/index
|
|
28865
|
-
* @version
|
|
28689
|
+
* @version 235.0.0
|
|
28866
28690
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
28867
28691
|
* The ApiClient constructor.
|
|
28868
28692
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|