purecloud-platform-client-v2 190.0.0 → 191.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/node/purecloud-platform-client-v2.js +313 -81
- package/dist/web-amd/purecloud-platform-client-v2.js +313 -81
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +293 -239
- package/dist/web-cjs/purecloud-platform-client-v2.js +293 -239
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +410 -45
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +162 -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/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +21 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -2
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +3 -2
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +26 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +27 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +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 +4 -4
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5184,7 +5184,7 @@ module.exports = function getSideChannel() {
|
|
|
5184
5184
|
|
|
5185
5185
|
},{"call-bind/callBound":8,"es-errors/type":17,"get-intrinsic":21,"object-inspect":28}],"platformClient":[function(require,module,exports){
|
|
5186
5186
|
(function (global,Buffer){(function (){
|
|
5187
|
-
'use strict';function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:String(i);}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
|
|
5187
|
+
'use strict';function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
|
|
5188
5188
|
// if there are two placeholders, than the two characters before it
|
|
5189
5189
|
// represent one byte
|
|
5190
5190
|
// if there is only one, then the three characters before it represent 2 bytes
|
|
@@ -5690,7 +5690,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
5690
5690
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
5691
5691
|
*
|
|
5692
5692
|
* @return {Number} An ID used to remove interceptor later
|
|
5693
|
-
*/_createClass(InterceptorManager,[{key:"use",value:function use(fulfilled,rejected,options){this.handlers.push({fulfilled:fulfilled,rejected:rejected,synchronous:options?options.synchronous:false,runWhen:options?options.runWhen:null});return this.handlers.length-1;}/**
|
|
5693
|
+
*/return _createClass(InterceptorManager,[{key:"use",value:function use(fulfilled,rejected,options){this.handlers.push({fulfilled:fulfilled,rejected:rejected,synchronous:options?options.synchronous:false,runWhen:options?options.runWhen:null});return this.handlers.length-1;}/**
|
|
5694
5694
|
* Remove an interceptor from the stack
|
|
5695
5695
|
*
|
|
5696
5696
|
* @param {Number} id The ID that was returned by `use`
|
|
@@ -5709,7 +5709,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
5709
5709
|
* @param {Function} fn The function to call for each interceptor
|
|
5710
5710
|
*
|
|
5711
5711
|
* @returns {void}
|
|
5712
|
-
*/},{key:"forEach",value:function forEach(fn){utils$1.forEach(this.handlers,function forEachHandler(h){if(h!==null){fn(h);}});}}]);
|
|
5712
|
+
*/},{key:"forEach",value:function forEach(fn){utils$1.forEach(this.handlers,function forEachHandler(h){if(h!==null){fn(h);}});}}]);}();var InterceptorManager$1=InterceptorManager;var transitionalDefaults={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var URLSearchParams$1=typeof URLSearchParams!=='undefined'?URLSearchParams:AxiosURLSearchParams;var FormData$1=typeof FormData!=='undefined'?FormData:null;var Blob$1=typeof Blob!=='undefined'?Blob:null;var platform$1={isBrowser:true,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:['http','https','file','blob','url','data']};var hasBrowserEnv=typeof window!=='undefined'&&typeof document!=='undefined';/**
|
|
5713
5713
|
* Determine if we're running in a standard browser environment
|
|
5714
5714
|
*
|
|
5715
5715
|
* This allows axios to run in a web worker, and react-native.
|
|
@@ -5783,7 +5783,7 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
|
|
|
5783
5783
|
* @param {String} rawHeaders Headers needing to be parsed
|
|
5784
5784
|
*
|
|
5785
5785
|
* @returns {Object} Headers parsed into an object
|
|
5786
|
-
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(
|
|
5786
|
+
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref5){var _ref6=_slicedToArray(_ref5,2),header=_ref6[0],value=_ref6[1];return header+': '+value;}).join('\n');}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
|
|
5787
5787
|
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref7,key){var value=_ref7.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
|
|
5788
5788
|
return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
|
|
5789
5789
|
* Transform the data for a request or a response
|
|
@@ -5952,13 +5952,13 @@ console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will
|
|
|
5952
5952
|
* @param {?Object} config
|
|
5953
5953
|
*
|
|
5954
5954
|
* @returns {Promise} The Promise to be fulfilled
|
|
5955
|
-
*/_createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return this._request(configOrUrl,config);case 3:return _context.abrupt("return",_context.sent);case 6:_context.prev=6;_context.t0=_context["catch"](0);if(_context.t0 instanceof Error){Error.captureStackTrace?Error.captureStackTrace(dummy={}):dummy=new Error();// slice off the Error: ... line
|
|
5955
|
+
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return this._request(configOrUrl,config);case 3:return _context.abrupt("return",_context.sent);case 6:_context.prev=6;_context.t0=_context["catch"](0);if(_context.t0 instanceof Error){Error.captureStackTrace?Error.captureStackTrace(dummy={}):dummy=new Error();// slice off the Error: ... line
|
|
5956
5956
|
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';if(!_context.t0.stack){_context.t0.stack=stack;// match without the 2 top stack lines
|
|
5957
5957
|
}else if(stack&&!String(_context.t0.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_context.t0.stack+='\n'+stack;}}throw _context.t0;case 10:case"end":return _context.stop();}},_callee,this,[[0,6]]);}));function request(_x,_x2){return _request2.apply(this,arguments);}return request;}())},{key:"_request",value:function _request(configOrUrl,config){/*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API
|
|
5958
5958
|
if(typeof configOrUrl==='string'){config=config||{};config.url=configOrUrl;}else{config=configOrUrl||{};}config=mergeConfig(this.defaults,config);var _config=config,transitional=_config.transitional,paramsSerializer=_config.paramsSerializer,headers=_config.headers;if(transitional!==undefined){validator.assertOptions(transitional,{silentJSONParsing:validators.transitional(validators["boolean"]),forcedJSONParsing:validators.transitional(validators["boolean"]),clarifyTimeoutError:validators.transitional(validators["boolean"])},false);}if(paramsSerializer!=null){if(utils$1.isFunction(paramsSerializer)){config.paramsSerializer={serialize:paramsSerializer};}else{validator.assertOptions(paramsSerializer,{encode:validators["function"],serialize:validators["function"]},true);}}// Set config.method
|
|
5959
5959
|
config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
|
|
5960
5960
|
var contextHeaders=headers&&utils$1.merge(headers.common,headers[config.method]);headers&&utils$1.forEach(['delete','get','head','post','put','patch','common'],function(method){delete headers[method];});config.headers=AxiosHeaders$1.concat(contextHeaders,headers);// filter out skipped interceptors
|
|
5961
|
-
var requestInterceptorChain=[];var synchronousRequestInterceptors=true;this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor){if(typeof interceptor.runWhen==='function'&&interceptor.runWhen(config)===false){return;}synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous;requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected);});var responseInterceptorChain=[];this.interceptors.response.forEach(function pushResponseInterceptors(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected);});var promise;var i=0;var len;if(!synchronousRequestInterceptors){var chain=[dispatchRequest.bind(this),undefined];chain.unshift.apply(chain,requestInterceptorChain);chain.push.apply(chain,responseInterceptorChain);len=chain.length;promise=Promise.resolve(config);while(i<len){promise=promise.then(chain[i++],chain[i++]);}return promise;}len=requestInterceptorChain.length;var newConfig=config;i=0;while(i<len){var onFulfilled=requestInterceptorChain[i++];var onRejected=requestInterceptorChain[i++];try{newConfig=onFulfilled(newConfig);}catch(error){onRejected.call(this,error);break;}}try{promise=dispatchRequest.call(this,newConfig);}catch(error){return Promise.reject(error);}i=0;len=responseInterceptorChain.length;while(i<len){promise=promise.then(responseInterceptorChain[i++],responseInterceptorChain[i++]);}return promise;}},{key:"getUri",value:function getUri(config){config=mergeConfig(this.defaults,config);var fullPath=buildFullPath(config.baseURL,config.url);return buildURL(fullPath,config.params,config.paramsSerializer);}}]);
|
|
5961
|
+
var requestInterceptorChain=[];var synchronousRequestInterceptors=true;this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor){if(typeof interceptor.runWhen==='function'&&interceptor.runWhen(config)===false){return;}synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous;requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected);});var responseInterceptorChain=[];this.interceptors.response.forEach(function pushResponseInterceptors(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected);});var promise;var i=0;var len;if(!synchronousRequestInterceptors){var chain=[dispatchRequest.bind(this),undefined];chain.unshift.apply(chain,requestInterceptorChain);chain.push.apply(chain,responseInterceptorChain);len=chain.length;promise=Promise.resolve(config);while(i<len){promise=promise.then(chain[i++],chain[i++]);}return promise;}len=requestInterceptorChain.length;var newConfig=config;i=0;while(i<len){var onFulfilled=requestInterceptorChain[i++];var onRejected=requestInterceptorChain[i++];try{newConfig=onFulfilled(newConfig);}catch(error){onRejected.call(this,error);break;}}try{promise=dispatchRequest.call(this,newConfig);}catch(error){return Promise.reject(error);}i=0;len=responseInterceptorChain.length;while(i<len){promise=promise.then(responseInterceptorChain[i++],responseInterceptorChain[i++]);}return promise;}},{key:"getUri",value:function getUri(config){config=mergeConfig(this.defaults,config);var fullPath=buildFullPath(config.baseURL,config.url);return buildURL(fullPath,config.params,config.paramsSerializer);}}]);}();// Provide aliases for supported request methods
|
|
5962
5962
|
utils$1.forEach(['delete','get','head','options'],function forEachMethodNoData(method){/*eslint func-names:0*/Axios.prototype[method]=function(url,config){return this.request(mergeConfig(config||{},{method:method,url:url,data:(config||{}).data}));};});utils$1.forEach(['post','put','patch'],function forEachMethodWithData(method){/*eslint func-names:0*/function generateHTTPMethod(isForm){return function httpMethod(url,data,config){return this.request(mergeConfig(config||{},{method:method,headers:isForm?{'Content-Type':'multipart/form-data'}:{},url:url,data:data}));};}Axios.prototype[method]=generateHTTPMethod();Axios.prototype[method+'Form']=generateHTTPMethod(true);});var Axios$1=Axios;/**
|
|
5963
5963
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
5964
5964
|
*
|
|
@@ -5971,14 +5971,14 @@ this.promise.then=function(onfulfilled){var _resolve;// eslint-disable-next-line
|
|
|
5971
5971
|
var promise=new Promise(function(resolve){token.subscribe(resolve);_resolve=resolve;}).then(onfulfilled);promise.cancel=function reject(){token.unsubscribe(_resolve);};return promise;};executor(function cancel(message,config,request){if(token.reason){// Cancellation has already been requested
|
|
5972
5972
|
return;}token.reason=new CanceledError(message,config,request);resolvePromise(token.reason);});}/**
|
|
5973
5973
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
5974
|
-
*/_createClass(CancelToken,[{key:"throwIfRequested",value:function throwIfRequested(){if(this.reason){throw this.reason;}}/**
|
|
5974
|
+
*/return _createClass(CancelToken,[{key:"throwIfRequested",value:function throwIfRequested(){if(this.reason){throw this.reason;}}/**
|
|
5975
5975
|
* Subscribe to the cancel signal
|
|
5976
5976
|
*/},{key:"subscribe",value:function subscribe(listener){if(this.reason){listener(this.reason);return;}if(this._listeners){this._listeners.push(listener);}else{this._listeners=[listener];}}/**
|
|
5977
5977
|
* Unsubscribe from the cancel signal
|
|
5978
5978
|
*/},{key:"unsubscribe",value:function unsubscribe(listener){if(!this._listeners){return;}var index=this._listeners.indexOf(listener);if(index!==-1){this._listeners.splice(index,1);}}/**
|
|
5979
5979
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
5980
5980
|
* cancels the `CancelToken`.
|
|
5981
|
-
*/}],[{key:"source",value:function source(){var cancel;var token=new CancelToken(function executor(c){cancel=c;});return{token:token,cancel:cancel};}}]);
|
|
5981
|
+
*/}],[{key:"source",value:function source(){var cancel;var token=new CancelToken(function executor(c){cancel=c;});return{token:token,cancel:cancel};}}]);}();var CancelToken$1=CancelToken;/**
|
|
5982
5982
|
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
5983
5983
|
*
|
|
5984
5984
|
* Common use case would be to use `Function.prototype.apply`.
|
|
@@ -6022,7 +6022,7 @@ axios.Cancel=axios.CanceledError;// Expose all/spread
|
|
|
6022
6022
|
axios.all=function all(promises){return Promise.all(promises);};axios.spread=spread;// Expose isAxiosError
|
|
6023
6023
|
axios.isAxiosError=isAxiosError;// Expose mergeConfig
|
|
6024
6024
|
axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=function(thing){return formDataToJSON(utils$1.isHTMLForm(thing)?new FormData(thing):thing);};axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios["default"]=axios;// this module should only have a default export
|
|
6025
|
-
var axios$1=axios;var logLevelEnum={level:{LNone:'none',LError:'error',LDebug:'debug',LTrace:'trace'}};var logFormatEnum={formats:{JSON:'json',TEXT:'text'}};var Logger=/*#__PURE__*/function(){function Logger(){_classCallCheck(this,Logger);this.log_level=logLevelEnum.level.LNone;this.log_format=logFormatEnum.formats.TEXT;this.log_to_console=true;this.log_file_path;this.log_response_body=false;this.log_request_body=false;this.setLogger();}_createClass(Logger,[{key:"logLevelEnum",get:function get(){return logLevelEnum;}},{key:"logFormatEnum",get:function get(){return logFormatEnum;}},{key:"setLogger",value:function setLogger(){}},{key:"log",value:function log(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var content=this.formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody);if(typeof window!=='undefined'){var shouldLog=this.calculateLogLevel(level);if(shouldLog>0&&this.log_to_console===true){if(this.log_format===this.logFormatEnum.formats.JSON){console.log(content);}else{console.log("".concat(level.toUpperCase(),": ").concat(content));}}}else{if(this.logger.transports.length>0)this.logger.log(level,content);}}},{key:"calculateLogLevel",value:function calculateLogLevel(level){switch(this.log_level){case this.logLevelEnum.level.LError:if(level!==this.logLevelEnum.level.LError){return-1;}return 1;case this.logLevelEnum.level.LDebug:if(level===this.logLevelEnum.level.LTrace){return-1;}return 1;case this.logLevelEnum.level.LTrace:return 1;default:return-1;}}},{key:"formatLog",value:function formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var result;var localRequestHeaders=requestHeaders?JSON.parse(JSON.stringify(requestHeaders)):null;var localResponseHeaders=responseHeaders?JSON.parse(JSON.stringify(responseHeaders)):null;var localRequestBody=requestBody?JSON.parse(JSON.stringify(requestBody)):null;var localResponseBody=responseBody?JSON.parse(JSON.stringify(responseBody)):null;if(requestHeaders)localRequestHeaders['Authorization']='[REDACTED]';if(!this.log_request_body)localRequestBody=undefined;if(!this.log_response_body)localResponseBody=undefined;if(this.log_format&&this.log_format===logFormatEnum.formats.JSON){result={level:level,date:new Date().toISOString(),method:method,url:decodeURIComponent(url),correlationId:localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'',statusCode:statusCode};if(localRequestHeaders)result.requestHeaders=localRequestHeaders;if(localResponseHeaders)result.responseHeaders=localResponseHeaders;if(localRequestBody)result.requestBody=localRequestBody;if(localResponseBody)result.responseBody=localResponseBody;}else{result="".concat(new Date().toISOString(),"\n=== REQUEST === \n").concat(this.formatValue('URL',decodeURIComponent(url))).concat(this.formatValue('Method',method)).concat(this.formatValue('Headers',this.formatHeaderString(localRequestHeaders))).concat(this.formatValue('Body',localRequestBody?JSON.stringify(localRequestBody,null,2):''),"\n=== RESPONSE ===\n").concat(this.formatValue('Status',statusCode)).concat(this.formatValue('Headers',this.formatHeaderString(localResponseHeaders))).concat(this.formatValue('CorrelationId',localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'')).concat(this.formatValue('Body',localResponseBody?JSON.stringify(localResponseBody,null,2):''));}return result;}},{key:"formatHeaderString",value:function formatHeaderString(headers){var headerString='';if(!headers)return headerString;for(var _i=0,_Object$entries=Object.entries(headers);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];headerString+="\n\t".concat(key,": ").concat(value);}return headerString;}},{key:"formatValue",value:function formatValue(key,value){if(!value||value===''||value==='{}')return'';return"".concat(key,": ").concat(value,"\n");}},{key:"getLogLevel",value:function getLogLevel(level){switch(level){case'error':return logLevelEnum.level.LError;case'debug':return logLevelEnum.level.LDebug;case'trace':return logLevelEnum.level.LTrace;default:return logLevelEnum.level.LNone;}}},{key:"getLogFormat",value:function getLogFormat(format){switch(format){case'json':return logFormatEnum.formats.JSON;default:return logFormatEnum.formats.TEXT;}}}]);
|
|
6025
|
+
var axios$1=axios;var logLevelEnum={level:{LNone:'none',LError:'error',LDebug:'debug',LTrace:'trace'}};var logFormatEnum={formats:{JSON:'json',TEXT:'text'}};var Logger=/*#__PURE__*/function(){function Logger(){_classCallCheck(this,Logger);this.log_level=logLevelEnum.level.LNone;this.log_format=logFormatEnum.formats.TEXT;this.log_to_console=true;this.log_file_path;this.log_response_body=false;this.log_request_body=false;this.setLogger();}return _createClass(Logger,[{key:"logLevelEnum",get:function get(){return logLevelEnum;}},{key:"logFormatEnum",get:function get(){return logFormatEnum;}},{key:"setLogger",value:function setLogger(){}},{key:"log",value:function log(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var content=this.formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody);if(typeof window!=='undefined'){var shouldLog=this.calculateLogLevel(level);if(shouldLog>0&&this.log_to_console===true){if(this.log_format===this.logFormatEnum.formats.JSON){console.log(content);}else{console.log("".concat(level.toUpperCase(),": ").concat(content));}}}else{if(this.logger.transports.length>0)this.logger.log(level,content);}}},{key:"calculateLogLevel",value:function calculateLogLevel(level){switch(this.log_level){case this.logLevelEnum.level.LError:if(level!==this.logLevelEnum.level.LError){return-1;}return 1;case this.logLevelEnum.level.LDebug:if(level===this.logLevelEnum.level.LTrace){return-1;}return 1;case this.logLevelEnum.level.LTrace:return 1;default:return-1;}}},{key:"formatLog",value:function formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var result;var localRequestHeaders=requestHeaders?JSON.parse(JSON.stringify(requestHeaders)):null;var localResponseHeaders=responseHeaders?JSON.parse(JSON.stringify(responseHeaders)):null;var localRequestBody=requestBody?JSON.parse(JSON.stringify(requestBody)):null;var localResponseBody=responseBody?JSON.parse(JSON.stringify(responseBody)):null;if(requestHeaders)localRequestHeaders['Authorization']='[REDACTED]';if(!this.log_request_body)localRequestBody=undefined;if(!this.log_response_body)localResponseBody=undefined;if(this.log_format&&this.log_format===logFormatEnum.formats.JSON){result={level:level,date:new Date().toISOString(),method:method,url:decodeURIComponent(url),correlationId:localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'',statusCode:statusCode};if(localRequestHeaders)result.requestHeaders=localRequestHeaders;if(localResponseHeaders)result.responseHeaders=localResponseHeaders;if(localRequestBody)result.requestBody=localRequestBody;if(localResponseBody)result.responseBody=localResponseBody;}else{result="".concat(new Date().toISOString(),"\n=== REQUEST === \n").concat(this.formatValue('URL',decodeURIComponent(url))).concat(this.formatValue('Method',method)).concat(this.formatValue('Headers',this.formatHeaderString(localRequestHeaders))).concat(this.formatValue('Body',localRequestBody?JSON.stringify(localRequestBody,null,2):''),"\n=== RESPONSE ===\n").concat(this.formatValue('Status',statusCode)).concat(this.formatValue('Headers',this.formatHeaderString(localResponseHeaders))).concat(this.formatValue('CorrelationId',localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'')).concat(this.formatValue('Body',localResponseBody?JSON.stringify(localResponseBody,null,2):''));}return result;}},{key:"formatHeaderString",value:function formatHeaderString(headers){var headerString='';if(!headers)return headerString;for(var _i=0,_Object$entries=Object.entries(headers);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];headerString+="\n\t".concat(key,": ").concat(value);}return headerString;}},{key:"formatValue",value:function formatValue(key,value){if(!value||value===''||value==='{}')return'';return"".concat(key,": ").concat(value,"\n");}},{key:"getLogLevel",value:function getLogLevel(level){switch(level){case'error':return logLevelEnum.level.LError;case'debug':return logLevelEnum.level.LDebug;case'trace':return logLevelEnum.level.LTrace;default:return logLevelEnum.level.LNone;}}},{key:"getLogFormat",value:function getLogFormat(format){switch(format){case'json':return logFormatEnum.formats.JSON;default:return logFormatEnum.formats.TEXT;}}}]);}();var Configuration=/*#__PURE__*/function(){function Configuration(){_classCallCheck(this,Configuration);if(!Configuration.instance){Configuration.instance=this;}if(typeof window!=='undefined'){this.configPath='';}else{var os=require('os');var path=require('path');this.configPath=path.join(os.homedir(),'.genesyscloudjavascript','config');}this.refresh_access_token=true;this.refresh_token_wait_max=10;this.live_reload_config=true;this.host;this.environment;this.basePath;this.authUrl;this.config;this.logger=new Logger();this.setEnvironment();this.liveLoadConfig();}return _createClass(Configuration,[{key:"instance",get:/**
|
|
6026
6026
|
* Singleton getter
|
|
6027
6027
|
*/function get(){return Configuration.instance;}/**
|
|
6028
6028
|
* Singleton setter
|
|
@@ -6031,9 +6031,9 @@ this.configPath='';}},{key:"setConfigPath",value:function setConfigPath(path){if
|
|
|
6031
6031
|
this.logger.setLogger();}},{key:"setEnvironment",value:function setEnvironment(env){// Default value
|
|
6032
6032
|
if(env)this.environment=env;else this.environment=this.host?this.host:'mypurecloud.com';// Strip trailing slash
|
|
6033
6033
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
6034
|
-
if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(this.environment.startsWith('api.'))this.environment=this.environment.substring(4);this.basePath="https://api.".concat(this.environment);this.authUrl="https://login.".concat(this.environment);}},{key:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);
|
|
6034
|
+
if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(this.environment.startsWith('api.'))this.environment=this.environment.substring(4);this.basePath="https://api.".concat(this.environment);this.authUrl="https://login.".concat(this.environment);}},{key:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);}();/**
|
|
6035
6035
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6036
|
-
* @version
|
|
6036
|
+
* @version 191.0.0
|
|
6037
6037
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
6038
6038
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
6039
6039
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -6079,7 +6079,7 @@ if(this.environment.startsWith('https://'))this.environment=this.environment.sub
|
|
|
6079
6079
|
this.refreshInProgress=false;this.config=new Configuration();if(typeof window!=='undefined')window.ApiClient=this;}/**
|
|
6080
6080
|
* @description If set to `true`, the response object will contain additional information about the HTTP response. When `false` (default) only the body object will be returned.
|
|
6081
6081
|
* @param {boolean} returnExtended - `true` to return extended responses
|
|
6082
|
-
*/_createClass(ApiClient,[{key:"instance",get:/**
|
|
6082
|
+
*/return _createClass(ApiClient,[{key:"instance",get:/**
|
|
6083
6083
|
* Singleton getter
|
|
6084
6084
|
*/function get(){return ApiClient.instance;}/**
|
|
6085
6085
|
* Singleton setter
|
|
@@ -6342,10 +6342,10 @@ var formData=new FormData();formData.set(key,_formParams[key]);request.data=form
|
|
|
6342
6342
|
var data=that.returnExtended===true?{status:response.status,statusText:response.statusText,headers:response.headers,body:response.data,text:response.text,error:null}:response.data?response.data:response.text;// Debug logging
|
|
6343
6343
|
that.config.logger.log('trace',response.status,httpMethod,url,request.headers,response.headers,bodyParam,undefined);that.config.logger.log('debug',response.status,httpMethod,url,request.headers,undefined,bodyParam,undefined);// Resolve promise
|
|
6344
6344
|
resolve(data);})["catch"](function(error){var data=error;if(error.response&&error.response.status==401&&that.config.refresh_access_token&&that.authData.refreshToken!==""){that._handleExpiredAccessToken().then(function(){sendRequest(that);})["catch"](function(err){reject(err);});}else if(error.response){// Log error
|
|
6345
|
-
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);});}});}}]);
|
|
6345
|
+
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 AlertingApi=/*#__PURE__*/function(){/**
|
|
6346
6346
|
* Alerting service.
|
|
6347
6347
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
6348
|
-
* @version
|
|
6348
|
+
* @version 191.0.0
|
|
6349
6349
|
*/ /**
|
|
6350
6350
|
* Constructs a new AlertingApi.
|
|
6351
6351
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -6356,7 +6356,7 @@ that.config.logger.log('error',error.response.status,httpMethod,url,request.head
|
|
|
6356
6356
|
* Delete an alert
|
|
6357
6357
|
*
|
|
6358
6358
|
* @param {String} alertId Alert ID
|
|
6359
|
-
*/_createClass(AlertingApi,[{key:"deleteAlertingAlert",value:function deleteAlertingAlert(alertId){// verify the required parameter 'alertId' is set
|
|
6359
|
+
*/return _createClass(AlertingApi,[{key:"deleteAlertingAlert",value:function deleteAlertingAlert(alertId){// verify the required parameter 'alertId' is set
|
|
6360
6360
|
if(alertId===undefined||alertId===null){throw'Missing the required parameter "alertId" when calling deleteAlertingAlert';}return this.apiClient.callApi('/api/v2/alerting/alerts/{alertId}','DELETE',{'alertId':alertId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6361
6361
|
* Delete an interaction stats alert
|
|
6362
6362
|
* Apps should migrate to use DELETE /api/v2/alerting/alerts/{alertId}.
|
|
@@ -6499,10 +6499,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6499
6499
|
* @param {Object} body rule to be updated
|
|
6500
6500
|
*/},{key:"putAlertingRule",value:function putAlertingRule(ruleId,body){// verify the required parameter 'ruleId' is set
|
|
6501
6501
|
if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "ruleId" when calling putAlertingRule';}// verify the required parameter 'body' is set
|
|
6502
|
-
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']);}}]);
|
|
6502
|
+
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(){/**
|
|
6503
6503
|
* Analytics service.
|
|
6504
6504
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
6505
|
-
* @version
|
|
6505
|
+
* @version 191.0.0
|
|
6506
6506
|
*/ /**
|
|
6507
6507
|
* Constructs a new AnalyticsApi.
|
|
6508
6508
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -6513,7 +6513,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6513
6513
|
* Delete/cancel an async details job
|
|
6514
6514
|
*
|
|
6515
6515
|
* @param {String} jobId jobId
|
|
6516
|
-
*/_createClass(AnalyticsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
6516
|
+
*/return _createClass(AnalyticsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
6517
6517
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6518
6518
|
* Delete a scheduled report job.
|
|
6519
6519
|
*
|
|
@@ -6690,6 +6690,20 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
6690
6690
|
* getAnalyticsKnowledgeAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6691
6691
|
*/},{key:"getAnalyticsKnowledgeAggregatesJobResults",value:function getAnalyticsKnowledgeAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
|
|
6692
6692
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsKnowledgeAggregatesJobResults';}return this.apiClient.callApi('/api/v2/analytics/knowledge/aggregates/jobs/{jobId}/results','GET',{'jobId':jobId},{'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6693
|
+
* Get dashboards summary for a user
|
|
6694
|
+
*
|
|
6695
|
+
* @param {String} userId User ID
|
|
6696
|
+
*/},{key:"getAnalyticsReportingDashboardsUser",value:function getAnalyticsReportingDashboardsUser(userId){// verify the required parameter 'userId' is set
|
|
6697
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getAnalyticsReportingDashboardsUser';}return this.apiClient.callApi('/api/v2/analytics/reporting/dashboards/users/{userId}','GET',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6698
|
+
* Get dashboards summary for users in a org
|
|
6699
|
+
*
|
|
6700
|
+
* @param {Object} opts Optional parameters
|
|
6701
|
+
* @param {String} opts.sortBy (default to asc)
|
|
6702
|
+
* @param {Number} opts.pageNumber (default to 1)
|
|
6703
|
+
* @param {Number} opts.pageSize (default to 25)
|
|
6704
|
+
* @param {Array.<String>} opts.id A list of user IDs to fetch by bulk
|
|
6705
|
+
* @param {Object} opts.state Only list users of this state
|
|
6706
|
+
*/},{key:"getAnalyticsReportingDashboardsUsers",value:function getAnalyticsReportingDashboardsUsers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/analytics/reporting/dashboards/users','GET',{},{'sortBy':opts['sortBy'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'state':opts['state']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6693
6707
|
* Get all view export requests for a user
|
|
6694
6708
|
*
|
|
6695
6709
|
* @param {Object} opts Optional parameters
|
|
@@ -6750,6 +6764,17 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet
|
|
|
6750
6764
|
* Get AnalyticsReportingSettings for an organization
|
|
6751
6765
|
*
|
|
6752
6766
|
*/},{key:"getAnalyticsReportingSettings",value:function getAnalyticsReportingSettings(){return this.apiClient.callApi('/api/v2/analytics/reporting/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6767
|
+
* Get list of dashboards for an user
|
|
6768
|
+
*
|
|
6769
|
+
* @param {String} userId User ID
|
|
6770
|
+
* @param {Object} opts Optional parameters
|
|
6771
|
+
* @param {String} opts.sortBy (default to asc)
|
|
6772
|
+
* @param {Number} opts.pageNumber (default to 1)
|
|
6773
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
6774
|
+
* @param {Boolean} opts.publicOnly If true, retrieve only public dashboards
|
|
6775
|
+
* @param {Boolean} opts.favoriteOnly If true, retrieve only favorite dashboards
|
|
6776
|
+
*/},{key:"getAnalyticsReportingSettingsUserDashboards",value:function getAnalyticsReportingSettingsUserDashboards(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
6777
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getAnalyticsReportingSettingsUserDashboards';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/users/{userId}/dashboards','GET',{'userId':userId},{'sortBy':opts['sortBy'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'publicOnly':opts['publicOnly'],'favoriteOnly':opts['favoriteOnly']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6753
6778
|
* Get a list of report time periods.
|
|
6754
6779
|
*
|
|
6755
6780
|
*/},{key:"getAnalyticsReportingTimeperiods",value:function getAnalyticsReportingTimeperiods(){return this.apiClient.callApi('/api/v2/analytics/reporting/timeperiods','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -6987,6 +7012,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6987
7012
|
* @param {Object} body query
|
|
6988
7013
|
*/},{key:"postAnalyticsRatelimitsAggregatesQuery",value:function postAnalyticsRatelimitsAggregatesQuery(body){// verify the required parameter 'body' is set
|
|
6989
7014
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsRatelimitsAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/ratelimits/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7015
|
+
* Bulk delete dashboards owned by other user(s)
|
|
7016
|
+
*
|
|
7017
|
+
* @param {Array.<String>} body List of userIds
|
|
7018
|
+
*/},{key:"postAnalyticsReportingDashboardsUsersBulkRemove",value:function postAnalyticsReportingDashboardsUsersBulkRemove(body){// verify the required parameter 'body' is set
|
|
7019
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsReportingDashboardsUsersBulkRemove';}return this.apiClient.callApi('/api/v2/analytics/reporting/dashboards/users/bulk/remove','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6990
7020
|
* Generate a view export request
|
|
6991
7021
|
* This API creates a reporting export but the desired way to export analytics data is to use the analytics query APIs instead
|
|
6992
7022
|
* @param {Object} body ReportingExportJobRequest
|
|
@@ -7004,6 +7034,16 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet
|
|
|
7004
7034
|
* @deprecated
|
|
7005
7035
|
*/},{key:"postAnalyticsReportingSchedules",value:function postAnalyticsReportingSchedules(body){// verify the required parameter 'body' is set
|
|
7006
7036
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsReportingSchedules';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7037
|
+
* Bulk remove dashboard configurations
|
|
7038
|
+
*
|
|
7039
|
+
* @param {Object} body
|
|
7040
|
+
*/},{key:"postAnalyticsReportingSettingsDashboardsBulkRemove",value:function postAnalyticsReportingSettingsDashboardsBulkRemove(body){// verify the required parameter 'body' is set
|
|
7041
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsBulkRemove';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/dashboards/bulk/remove','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7042
|
+
* Query dashboard configurations
|
|
7043
|
+
*
|
|
7044
|
+
* @param {Object} body
|
|
7045
|
+
*/},{key:"postAnalyticsReportingSettingsDashboardsQuery",value:function postAnalyticsReportingSettingsDashboardsQuery(body){// verify the required parameter 'body' is set
|
|
7046
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsQuery';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/dashboards/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7007
7047
|
* Query for resolution aggregates asynchronously
|
|
7008
7048
|
*
|
|
7009
7049
|
* @param {Object} body query
|
|
@@ -7109,10 +7149,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7109
7149
|
* @deprecated
|
|
7110
7150
|
*/},{key:"putAnalyticsReportingSchedule",value:function putAnalyticsReportingSchedule(scheduleId,body){// verify the required parameter 'scheduleId' is set
|
|
7111
7151
|
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling putAnalyticsReportingSchedule';}// verify the required parameter 'body' is set
|
|
7112
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','PUT',{'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
7152
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','PUT',{'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
|
|
7113
7153
|
* Architect service.
|
|
7114
7154
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
7115
|
-
* @version
|
|
7155
|
+
* @version 191.0.0
|
|
7116
7156
|
*/ /**
|
|
7117
7157
|
* Constructs a new ArchitectApi.
|
|
7118
7158
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -7123,7 +7163,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7123
7163
|
* Deletes a emergency group by ID
|
|
7124
7164
|
*
|
|
7125
7165
|
* @param {String} emergencyGroupId Emergency group ID
|
|
7126
|
-
*/_createClass(ArchitectApi,[{key:"deleteArchitectEmergencygroup",value:function deleteArchitectEmergencygroup(emergencyGroupId){// verify the required parameter 'emergencyGroupId' is set
|
|
7166
|
+
*/return _createClass(ArchitectApi,[{key:"deleteArchitectEmergencygroup",value:function deleteArchitectEmergencygroup(emergencyGroupId){// verify the required parameter 'emergencyGroupId' is set
|
|
7127
7167
|
if(emergencyGroupId===undefined||emergencyGroupId===null){throw'Missing the required parameter "emergencyGroupId" when calling deleteArchitectEmergencygroup';}return this.apiClient.callApi('/api/v2/architect/emergencygroups/{emergencyGroupId}','DELETE',{'emergencyGroupId':emergencyGroupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7128
7168
|
* Delete a grammar.
|
|
7129
7169
|
*
|
|
@@ -8225,10 +8265,10 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
|
|
|
8225
8265
|
* @param {Object} opts Optional parameters
|
|
8226
8266
|
* @param {Object} opts.body
|
|
8227
8267
|
*/},{key:"putFlowsOutcome",value:function putFlowsOutcome(flowOutcomeId,opts){opts=opts||{};// verify the required parameter 'flowOutcomeId' is set
|
|
8228
|
-
if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
8268
|
+
if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
|
|
8229
8269
|
* Audit service.
|
|
8230
8270
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
8231
|
-
* @version
|
|
8271
|
+
* @version 191.0.0
|
|
8232
8272
|
*/ /**
|
|
8233
8273
|
* Constructs a new AuditApi.
|
|
8234
8274
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -8238,7 +8278,7 @@ if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required p
|
|
|
8238
8278
|
*/function AuditApi(apiClient){_classCallCheck(this,AuditApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
8239
8279
|
* Get service mapping information used in realtime audits.
|
|
8240
8280
|
*
|
|
8241
|
-
*/_createClass(AuditApi,[{key:"getAuditsQueryRealtimeServicemapping",value:function getAuditsQueryRealtimeServicemapping(){return this.apiClient.callApi('/api/v2/audits/query/realtime/servicemapping','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8281
|
+
*/return _createClass(AuditApi,[{key:"getAuditsQueryRealtimeServicemapping",value:function getAuditsQueryRealtimeServicemapping(){return this.apiClient.callApi('/api/v2/audits/query/realtime/servicemapping','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8242
8282
|
* Get service mapping information used in audits.
|
|
8243
8283
|
*
|
|
8244
8284
|
*/},{key:"getAuditsQueryServicemapping",value:function getAuditsQueryServicemapping(){return this.apiClient.callApi('/api/v2/audits/query/servicemapping','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -8267,10 +8307,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8267
8307
|
* @param {Object} opts Optional parameters
|
|
8268
8308
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
8269
8309
|
*/},{key:"postAuditsQueryRealtime",value:function postAuditsQueryRealtime(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
8270
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtime';}return this.apiClient.callApi('/api/v2/audits/query/realtime','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
8310
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtime';}return this.apiClient.callApi('/api/v2/audits/query/realtime','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
|
|
8271
8311
|
* Authorization service.
|
|
8272
8312
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
8273
|
-
* @version
|
|
8313
|
+
* @version 191.0.0
|
|
8274
8314
|
*/ /**
|
|
8275
8315
|
* Constructs a new AuthorizationApi.
|
|
8276
8316
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -8283,7 +8323,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8283
8323
|
* @param {String} divisionId Division ID
|
|
8284
8324
|
* @param {Object} opts Optional parameters
|
|
8285
8325
|
* @param {Boolean} opts.force Force delete this division as well as the grants and objects associated with it (default to false)
|
|
8286
|
-
*/_createClass(AuthorizationApi,[{key:"deleteAuthorizationDivision",value:function deleteAuthorizationDivision(divisionId,opts){opts=opts||{};// verify the required parameter 'divisionId' is set
|
|
8326
|
+
*/return _createClass(AuthorizationApi,[{key:"deleteAuthorizationDivision",value:function deleteAuthorizationDivision(divisionId,opts){opts=opts||{};// verify the required parameter 'divisionId' is set
|
|
8287
8327
|
if(divisionId===undefined||divisionId===null){throw'Missing the required parameter "divisionId" when calling deleteAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','DELETE',{'divisionId':divisionId},{'force':opts['force']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8288
8328
|
* Delete an organization role.
|
|
8289
8329
|
*
|
|
@@ -8578,10 +8618,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8578
8618
|
* @param {Array.<String>} body List of roles
|
|
8579
8619
|
*/},{key:"putUserRoles",value:function putUserRoles(subjectId,body){// verify the required parameter 'subjectId' is set
|
|
8580
8620
|
if(subjectId===undefined||subjectId===null){throw'Missing the required parameter "subjectId" when calling putUserRoles';}// verify the required parameter 'body' is set
|
|
8581
|
-
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']);}}]);
|
|
8621
|
+
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(){/**
|
|
8582
8622
|
* Billing service.
|
|
8583
8623
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
8584
|
-
* @version
|
|
8624
|
+
* @version 191.0.0
|
|
8585
8625
|
*/ /**
|
|
8586
8626
|
* Constructs a new BillingApi.
|
|
8587
8627
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -8593,7 +8633,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8593
8633
|
* Report is of the billable usages (e.g. licenses and devices utilized) for a given period. If responses status is InProgress, wait a few seconds, then try the same request again.
|
|
8594
8634
|
* @param {Date} startDate The period start date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
|
|
8595
8635
|
* @param {Date} endDate The period end date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
|
|
8596
|
-
*/_createClass(BillingApi,[{key:"getBillingReportsBillableusage",value:function getBillingReportsBillableusage(startDate,endDate){// verify the required parameter 'startDate' is set
|
|
8636
|
+
*/return _createClass(BillingApi,[{key:"getBillingReportsBillableusage",value:function getBillingReportsBillableusage(startDate,endDate){// verify the required parameter 'startDate' is set
|
|
8597
8637
|
if(startDate===undefined||startDate===null){throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';}// verify the required parameter 'endDate' is set
|
|
8598
8638
|
if(endDate===undefined||endDate===null){throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';}return this.apiClient.callApi('/api/v2/billing/reports/billableusage','GET',{},{'startDate':startDate,'endDate':endDate},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8599
8639
|
* Get the billing overview for an organization that is managed by a partner.
|
|
@@ -8602,10 +8642,10 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
8602
8642
|
* @param {Object} opts Optional parameters
|
|
8603
8643
|
* @param {Number} opts.billingPeriodIndex 0 for active period (overview data may change until period closes). 1 for prior completed billing period. 2 for two billing cycles prior, and so on. (default to 0)
|
|
8604
8644
|
*/},{key:"getBillingTrusteebillingoverviewTrustorOrgId",value:function getBillingTrusteebillingoverviewTrustorOrgId(trustorOrgId,opts){opts=opts||{};// verify the required parameter 'trustorOrgId' is set
|
|
8605
|
-
if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
8645
|
+
if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
8606
8646
|
* CarrierServices service.
|
|
8607
8647
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
8608
|
-
* @version
|
|
8648
|
+
* @version 191.0.0
|
|
8609
8649
|
*/ /**
|
|
8610
8650
|
* Constructs a new CarrierServicesApi.
|
|
8611
8651
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -8616,16 +8656,16 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
8616
8656
|
* Get location for the logged in user
|
|
8617
8657
|
*
|
|
8618
8658
|
* @param {String} phoneNumber Phone number in E164 format
|
|
8619
|
-
*/_createClass(CarrierServicesApi,[{key:"getCarrierservicesIntegrationsEmergencylocationsMe",value:function getCarrierservicesIntegrationsEmergencylocationsMe(phoneNumber){// verify the required parameter 'phoneNumber' is set
|
|
8659
|
+
*/return _createClass(CarrierServicesApi,[{key:"getCarrierservicesIntegrationsEmergencylocationsMe",value:function getCarrierservicesIntegrationsEmergencylocationsMe(phoneNumber){// verify the required parameter 'phoneNumber' is set
|
|
8620
8660
|
if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required parameter "phoneNumber" when calling getCarrierservicesIntegrationsEmergencylocationsMe';}return this.apiClient.callApi('/api/v2/carrierservices/integrations/emergencylocations/me','GET',{},{'phoneNumber':phoneNumber},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8621
8661
|
* Set current location for the logged in user
|
|
8622
8662
|
*
|
|
8623
8663
|
* @param {Object} opts Optional parameters
|
|
8624
8664
|
* @param {Object} opts.body
|
|
8625
|
-
*/},{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']);}}]);
|
|
8665
|
+
*/},{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(){/**
|
|
8626
8666
|
* Chat service.
|
|
8627
8667
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
8628
|
-
* @version
|
|
8668
|
+
* @version 191.0.0
|
|
8629
8669
|
*/ /**
|
|
8630
8670
|
* Constructs a new ChatApi.
|
|
8631
8671
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -8637,7 +8677,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
8637
8677
|
*
|
|
8638
8678
|
* @param {String} roomJid roomId
|
|
8639
8679
|
* @param {String} messageId messageId
|
|
8640
|
-
*/_createClass(ChatApi,[{key:"deleteChatsRoomMessage",value:function deleteChatsRoomMessage(roomJid,messageId){// verify the required parameter 'roomJid' is set
|
|
8680
|
+
*/return _createClass(ChatApi,[{key:"deleteChatsRoomMessage",value:function deleteChatsRoomMessage(roomJid,messageId){// verify the required parameter 'roomJid' is set
|
|
8641
8681
|
if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';}// verify the required parameter 'messageId' is set
|
|
8642
8682
|
if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/messages/{messageId}','DELETE',{'roomJid':roomJid,'messageId':messageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8643
8683
|
* Remove a user from a room.
|
|
@@ -8815,10 +8855,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8815
8855
|
*
|
|
8816
8856
|
* @param {Object} body Chat
|
|
8817
8857
|
*/},{key:"putChatsSettings",value:function putChatsSettings(body){// verify the required parameter 'body' is set
|
|
8818
|
-
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']);}}]);
|
|
8858
|
+
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(){/**
|
|
8819
8859
|
* Coaching service.
|
|
8820
8860
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
8821
|
-
* @version
|
|
8861
|
+
* @version 191.0.0
|
|
8822
8862
|
*/ /**
|
|
8823
8863
|
* Constructs a new CoachingApi.
|
|
8824
8864
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -8829,7 +8869,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8829
8869
|
* Delete an existing appointment
|
|
8830
8870
|
* Permission not required if you are the creator of the appointment
|
|
8831
8871
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
8832
|
-
*/_createClass(CoachingApi,[{key:"deleteCoachingAppointment",value:function deleteCoachingAppointment(appointmentId){// verify the required parameter 'appointmentId' is set
|
|
8872
|
+
*/return _createClass(CoachingApi,[{key:"deleteCoachingAppointment",value:function deleteCoachingAppointment(appointmentId){// verify the required parameter 'appointmentId' is set
|
|
8833
8873
|
if(appointmentId===undefined||appointmentId===null){throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointment';}return this.apiClient.callApi('/api/v2/coaching/appointments/{appointmentId}','DELETE',{'appointmentId':appointmentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8834
8874
|
* Delete an existing annotation
|
|
8835
8875
|
* You must have the appropriate permission for the type of annotation you are updating. Permission not required if you are the creator or facilitator of the appointment
|
|
@@ -8968,10 +9008,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8968
9008
|
*
|
|
8969
9009
|
* @param {Object} body The slot search request
|
|
8970
9010
|
*/},{key:"postCoachingScheduleslotsQuery",value:function postCoachingScheduleslotsQuery(body){// verify the required parameter 'body' is set
|
|
8971
|
-
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']);}}]);
|
|
9011
|
+
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(){/**
|
|
8972
9012
|
* ContentManagement service.
|
|
8973
9013
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
8974
|
-
* @version
|
|
9014
|
+
* @version 191.0.0
|
|
8975
9015
|
*/ /**
|
|
8976
9016
|
* Constructs a new ContentManagementApi.
|
|
8977
9017
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -8984,7 +9024,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8984
9024
|
* @param {String} documentId Document ID
|
|
8985
9025
|
* @param {Object} opts Optional parameters
|
|
8986
9026
|
* @param {Boolean} opts.override Override any lock on the document
|
|
8987
|
-
*/_createClass(ContentManagementApi,[{key:"deleteContentmanagementDocument",value:function deleteContentmanagementDocument(documentId,opts){opts=opts||{};// verify the required parameter 'documentId' is set
|
|
9027
|
+
*/return _createClass(ContentManagementApi,[{key:"deleteContentmanagementDocument",value:function deleteContentmanagementDocument(documentId,opts){opts=opts||{};// verify the required parameter 'documentId' is set
|
|
8988
9028
|
if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling deleteContentmanagementDocument';}return this.apiClient.callApi('/api/v2/contentmanagement/documents/{documentId}','DELETE',{'documentId':documentId},{'override':opts['override']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8989
9029
|
* Deletes an existing share.
|
|
8990
9030
|
* This revokes sharing rights specified in the share record
|
|
@@ -9251,10 +9291,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9251
9291
|
*/},{key:"putContentmanagementWorkspaceTagvalue",value:function putContentmanagementWorkspaceTagvalue(workspaceId,tagId,body){// verify the required parameter 'workspaceId' is set
|
|
9252
9292
|
if(workspaceId===undefined||workspaceId===null){throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceTagvalue';}// verify the required parameter 'tagId' is set
|
|
9253
9293
|
if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId" when calling putContentmanagementWorkspaceTagvalue';}// verify the required parameter 'body' is set
|
|
9254
|
-
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']);}}]);
|
|
9294
|
+
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(){/**
|
|
9255
9295
|
* Conversations service.
|
|
9256
9296
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
9257
|
-
* @version
|
|
9297
|
+
* @version 191.0.0
|
|
9258
9298
|
*/ /**
|
|
9259
9299
|
* Constructs a new ConversationsApi.
|
|
9260
9300
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -9265,7 +9305,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9265
9305
|
* Delete/cancel an async details job
|
|
9266
9306
|
*
|
|
9267
9307
|
* @param {String} jobId jobId
|
|
9268
|
-
*/_createClass(ConversationsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
9308
|
+
*/return _createClass(ConversationsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
9269
9309
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9270
9310
|
* Delete a code used to add a communication to this participant
|
|
9271
9311
|
*
|
|
@@ -9742,6 +9782,9 @@ if(cachedMediaItemId===undefined||cachedMediaItemId===null){throw'Missing the re
|
|
|
9742
9782
|
* Get Genesys Facebook App Id
|
|
9743
9783
|
*
|
|
9744
9784
|
*/},{key:"getConversationsMessagingFacebookApp",value:function getConversationsMessagingFacebookApp(){return this.apiClient.callApi('/api/v2/conversations/messaging/facebook/app','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9785
|
+
* Get a list of Facebook Permissions
|
|
9786
|
+
*
|
|
9787
|
+
*/},{key:"getConversationsMessagingFacebookPermissions",value:function getConversationsMessagingFacebookPermissions(){return this.apiClient.callApi('/api/v2/conversations/messaging/facebook/permissions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9745
9788
|
* Get a list of Integrations
|
|
9746
9789
|
*
|
|
9747
9790
|
* @param {Object} opts Optional parameters
|
|
@@ -10987,10 +11030,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10987
11030
|
* @param {Object} body SetRecordingState
|
|
10988
11031
|
*/},{key:"putConversationsVideoRecordingstate",value:function putConversationsVideoRecordingstate(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
10989
11032
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';}// verify the required parameter 'body' is set
|
|
10990
|
-
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']);}}]);
|
|
11033
|
+
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(){/**
|
|
10991
11034
|
* DataExtensions service.
|
|
10992
11035
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
10993
|
-
* @version
|
|
11036
|
+
* @version 191.0.0
|
|
10994
11037
|
*/ /**
|
|
10995
11038
|
* Constructs a new DataExtensionsApi.
|
|
10996
11039
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -11001,17 +11044,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11001
11044
|
* Get a specific named core type.
|
|
11002
11045
|
*
|
|
11003
11046
|
* @param {Object} coretypeName The core type's name
|
|
11004
|
-
*/_createClass(DataExtensionsApi,[{key:"getDataextensionsCoretype",value:function getDataextensionsCoretype(coretypeName){// verify the required parameter 'coretypeName' is set
|
|
11047
|
+
*/return _createClass(DataExtensionsApi,[{key:"getDataextensionsCoretype",value:function getDataextensionsCoretype(coretypeName){// verify the required parameter 'coretypeName' is set
|
|
11005
11048
|
if(coretypeName===undefined||coretypeName===null){throw'Missing the required parameter "coretypeName" when calling getDataextensionsCoretype';}return this.apiClient.callApi('/api/v2/dataextensions/coretypes/{coretypeName}','GET',{'coretypeName':coretypeName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11006
11049
|
* Get the core types from which all schemas are built.
|
|
11007
11050
|
*
|
|
11008
11051
|
*/},{key:"getDataextensionsCoretypes",value:function getDataextensionsCoretypes(){return this.apiClient.callApi('/api/v2/dataextensions/coretypes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11009
11052
|
* Get quantitative limits on schemas
|
|
11010
11053
|
*
|
|
11011
|
-
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
11054
|
+
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
|
|
11012
11055
|
* Downloads service.
|
|
11013
11056
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
11014
|
-
* @version
|
|
11057
|
+
* @version 191.0.0
|
|
11015
11058
|
*/ /**
|
|
11016
11059
|
* Constructs a new DownloadsApi.
|
|
11017
11060
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -11026,11 +11069,11 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
11026
11069
|
* @param {String} opts.contentDisposition
|
|
11027
11070
|
* @param {Boolean} opts.issueRedirect (default to true)
|
|
11028
11071
|
* @param {Boolean} opts.redirectToAuth (default to true)
|
|
11029
|
-
*/_createClass(DownloadsApi,[{key:"getDownload",value:function getDownload(downloadId,opts){opts=opts||{};// verify the required parameter 'downloadId' is set
|
|
11030
|
-
if(downloadId===undefined||downloadId===null){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
11072
|
+
*/return _createClass(DownloadsApi,[{key:"getDownload",value:function getDownload(downloadId,opts){opts=opts||{};// verify the required parameter 'downloadId' is set
|
|
11073
|
+
if(downloadId===undefined||downloadId===null){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
|
|
11031
11074
|
* Emails service.
|
|
11032
11075
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
11033
|
-
* @version
|
|
11076
|
+
* @version 191.0.0
|
|
11034
11077
|
*/ /**
|
|
11035
11078
|
* Constructs a new EmailsApi.
|
|
11036
11079
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -11040,15 +11083,15 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
11040
11083
|
*/function EmailsApi(apiClient){_classCallCheck(this,EmailsApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
11041
11084
|
* Get email Contact Center settings
|
|
11042
11085
|
*
|
|
11043
|
-
*/_createClass(EmailsApi,[{key:"getEmailsSettings",value:function getEmailsSettings(){return this.apiClient.callApi('/api/v2/emails/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11086
|
+
*/return _createClass(EmailsApi,[{key:"getEmailsSettings",value:function getEmailsSettings(){return this.apiClient.callApi('/api/v2/emails/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11044
11087
|
* Patch email Contact Center settings
|
|
11045
11088
|
*
|
|
11046
11089
|
* @param {Object} opts Optional parameters
|
|
11047
11090
|
* @param {Object} opts.body
|
|
11048
|
-
*/},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
11091
|
+
*/},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
|
|
11049
11092
|
* Events service.
|
|
11050
11093
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
11051
|
-
* @version
|
|
11094
|
+
* @version 191.0.0
|
|
11052
11095
|
*/ /**
|
|
11053
11096
|
* Constructs a new EventsApi.
|
|
11054
11097
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -11059,7 +11102,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
11059
11102
|
* Publish Conversation Batch Events
|
|
11060
11103
|
*
|
|
11061
11104
|
* @param {Object} body batchRequest
|
|
11062
|
-
*/_createClass(EventsApi,[{key:"postEventsConversations",value:function postEventsConversations(body){// verify the required parameter 'body' is set
|
|
11105
|
+
*/return _createClass(EventsApi,[{key:"postEventsConversations",value:function postEventsConversations(body){// verify the required parameter 'body' is set
|
|
11063
11106
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEventsConversations';}return this.apiClient.callApi('/api/v2/events/conversations','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11064
11107
|
* Publish User Presence Status Batch Events
|
|
11065
11108
|
*
|
|
@@ -11070,10 +11113,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11070
11113
|
*
|
|
11071
11114
|
* @param {Object} body batchRequest
|
|
11072
11115
|
*/},{key:"postEventsUsersRoutingstatus",value:function postEventsUsersRoutingstatus(body){// verify the required parameter 'body' is set
|
|
11073
|
-
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']);}}]);
|
|
11116
|
+
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(){/**
|
|
11074
11117
|
* ExternalContacts service.
|
|
11075
11118
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
11076
|
-
* @version
|
|
11119
|
+
* @version 191.0.0
|
|
11077
11120
|
*/ /**
|
|
11078
11121
|
* Constructs a new ExternalContactsApi.
|
|
11079
11122
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -11084,7 +11127,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11084
11127
|
* Delete an external contact
|
|
11085
11128
|
*
|
|
11086
11129
|
* @param {String} contactId ExternalContact ID
|
|
11087
|
-
*/_createClass(ExternalContactsApi,[{key:"deleteExternalcontactsContact",value:function deleteExternalcontactsContact(contactId){// verify the required parameter 'contactId' is set
|
|
11130
|
+
*/return _createClass(ExternalContactsApi,[{key:"deleteExternalcontactsContact",value:function deleteExternalcontactsContact(contactId){// verify the required parameter 'contactId' is set
|
|
11088
11131
|
if(contactId===undefined||contactId===null){throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContact';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}','DELETE',{'contactId':contactId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11089
11132
|
* Delete a note for an external contact
|
|
11090
11133
|
*
|
|
@@ -11525,10 +11568,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11525
11568
|
* @param {Object} body Relationship
|
|
11526
11569
|
*/},{key:"putExternalcontactsRelationship",value:function putExternalcontactsRelationship(relationshipId,body){// verify the required parameter 'relationshipId' is set
|
|
11527
11570
|
if(relationshipId===undefined||relationshipId===null){throw'Missing the required parameter "relationshipId" when calling putExternalcontactsRelationship';}// verify the required parameter 'body' is set
|
|
11528
|
-
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']);}}]);
|
|
11571
|
+
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(){/**
|
|
11529
11572
|
* Fax service.
|
|
11530
11573
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
11531
|
-
* @version
|
|
11574
|
+
* @version 191.0.0
|
|
11532
11575
|
*/ /**
|
|
11533
11576
|
* Constructs a new FaxApi.
|
|
11534
11577
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -11539,7 +11582,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11539
11582
|
* Delete a fax document.
|
|
11540
11583
|
*
|
|
11541
11584
|
* @param {String} documentId Document ID
|
|
11542
|
-
*/_createClass(FaxApi,[{key:"deleteFaxDocument",value:function deleteFaxDocument(documentId){// verify the required parameter 'documentId' is set
|
|
11585
|
+
*/return _createClass(FaxApi,[{key:"deleteFaxDocument",value:function deleteFaxDocument(documentId){// verify the required parameter 'documentId' is set
|
|
11543
11586
|
if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling deleteFaxDocument';}return this.apiClient.callApi('/api/v2/fax/documents/{documentId}','DELETE',{'documentId':documentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11544
11587
|
* Get a document.
|
|
11545
11588
|
*
|
|
@@ -11566,10 +11609,10 @@ if(documentId===undefined||documentId===null){throw'Missing the required paramet
|
|
|
11566
11609
|
* @param {Object} body Document
|
|
11567
11610
|
*/},{key:"putFaxDocument",value:function putFaxDocument(documentId,body){// verify the required parameter 'documentId' is set
|
|
11568
11611
|
if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling putFaxDocument';}// verify the required parameter 'body' is set
|
|
11569
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putFaxDocument';}return this.apiClient.callApi('/api/v2/fax/documents/{documentId}','PUT',{'documentId':documentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
11612
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putFaxDocument';}return this.apiClient.callApi('/api/v2/fax/documents/{documentId}','PUT',{'documentId':documentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FlowsApi=/*#__PURE__*/function(){/**
|
|
11570
11613
|
* Flows service.
|
|
11571
11614
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
11572
|
-
* @version
|
|
11615
|
+
* @version 191.0.0
|
|
11573
11616
|
*/ /**
|
|
11574
11617
|
* Constructs a new FlowsApi.
|
|
11575
11618
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -11581,7 +11624,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11581
11624
|
*
|
|
11582
11625
|
* @param {String} jobId jobId
|
|
11583
11626
|
* getAnalyticsFlowsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11584
|
-
*/_createClass(FlowsApi,[{key:"getAnalyticsFlowsAggregatesJob",value:function getAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
11627
|
+
*/return _createClass(FlowsApi,[{key:"getAnalyticsFlowsAggregatesJob",value:function getAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
11585
11628
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/flows/aggregates/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11586
11629
|
* Fetch a page of results for an async aggregates query
|
|
11587
11630
|
*
|
|
@@ -11615,10 +11658,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11615
11658
|
*
|
|
11616
11659
|
* @param {Object} body query
|
|
11617
11660
|
*/},{key:"postAnalyticsFlowsObservationsQuery",value:function postAnalyticsFlowsObservationsQuery(body){// verify the required parameter 'body' is set
|
|
11618
|
-
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']);}}]);
|
|
11661
|
+
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(){/**
|
|
11619
11662
|
* Gamification service.
|
|
11620
11663
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
11621
|
-
* @version
|
|
11664
|
+
* @version 191.0.0
|
|
11622
11665
|
*/ /**
|
|
11623
11666
|
* Constructs a new GamificationApi.
|
|
11624
11667
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -11629,7 +11672,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11629
11672
|
* Delete an External Metric Definition
|
|
11630
11673
|
*
|
|
11631
11674
|
* @param {String} metricId Specifies the External Metric Definition ID
|
|
11632
|
-
*/_createClass(GamificationApi,[{key:"deleteEmployeeperformanceExternalmetricsDefinition",value:function deleteEmployeeperformanceExternalmetricsDefinition(metricId){// verify the required parameter 'metricId' is set
|
|
11675
|
+
*/return _createClass(GamificationApi,[{key:"deleteEmployeeperformanceExternalmetricsDefinition",value:function deleteEmployeeperformanceExternalmetricsDefinition(metricId){// verify the required parameter 'metricId' is set
|
|
11633
11676
|
if(metricId===undefined||metricId===null){throw'Missing the required parameter "metricId" when calling deleteEmployeeperformanceExternalmetricsDefinition';}return this.apiClient.callApi('/api/v2/employeeperformance/externalmetrics/definitions/{metricId}','DELETE',{'metricId':metricId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11634
11677
|
* Get an External Metric Definition
|
|
11635
11678
|
*
|
|
@@ -12155,10 +12198,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12155
12198
|
*
|
|
12156
12199
|
* @param {Object} status Gamification status
|
|
12157
12200
|
*/},{key:"putGamificationStatus",value:function putGamificationStatus(status){// verify the required parameter 'status' is set
|
|
12158
|
-
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']);}}]);
|
|
12201
|
+
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(){/**
|
|
12159
12202
|
* GeneralDataProtectionRegulation service.
|
|
12160
12203
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
12161
|
-
* @version
|
|
12204
|
+
* @version 191.0.0
|
|
12162
12205
|
*/ /**
|
|
12163
12206
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
12164
12207
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -12169,7 +12212,7 @@ if(status===undefined||status===null){throw'Missing the required parameter "stat
|
|
|
12169
12212
|
* Get an existing GDPR request
|
|
12170
12213
|
*
|
|
12171
12214
|
* @param {String} requestId Request id
|
|
12172
|
-
*/_createClass(GeneralDataProtectionRegulationApi,[{key:"getGdprRequest",value:function getGdprRequest(requestId){// verify the required parameter 'requestId' is set
|
|
12215
|
+
*/return _createClass(GeneralDataProtectionRegulationApi,[{key:"getGdprRequest",value:function getGdprRequest(requestId){// verify the required parameter 'requestId' is set
|
|
12173
12216
|
if(requestId===undefined||requestId===null){throw'Missing the required parameter "requestId" when calling getGdprRequest';}return this.apiClient.callApi('/api/v2/gdpr/requests/{requestId}','GET',{'requestId':requestId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12174
12217
|
* Get all GDPR requests
|
|
12175
12218
|
*
|
|
@@ -12190,10 +12233,10 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
12190
12233
|
* @param {Object} opts Optional parameters
|
|
12191
12234
|
* @param {Boolean} opts.deleteConfirmed Confirm delete (default to false)
|
|
12192
12235
|
*/},{key:"postGdprRequests",value:function postGdprRequests(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
12193
|
-
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']);}}]);
|
|
12236
|
+
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(){/**
|
|
12194
12237
|
* Geolocation service.
|
|
12195
12238
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
12196
|
-
* @version
|
|
12239
|
+
* @version 191.0.0
|
|
12197
12240
|
*/ /**
|
|
12198
12241
|
* Constructs a new GeolocationApi.
|
|
12199
12242
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -12203,7 +12246,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12203
12246
|
*/function GeolocationApi(apiClient){_classCallCheck(this,GeolocationApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
12204
12247
|
* Get a organization's GeolocationSettings
|
|
12205
12248
|
*
|
|
12206
|
-
*/_createClass(GeolocationApi,[{key:"getGeolocationsSettings",value:function getGeolocationsSettings(){return this.apiClient.callApi('/api/v2/geolocations/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12249
|
+
*/return _createClass(GeolocationApi,[{key:"getGeolocationsSettings",value:function getGeolocationsSettings(){return this.apiClient.callApi('/api/v2/geolocations/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12207
12250
|
* Get a user's Geolocation
|
|
12208
12251
|
*
|
|
12209
12252
|
* @param {String} userId user Id
|
|
@@ -12224,10 +12267,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12224
12267
|
*/},{key:"patchUserGeolocation",value:function patchUserGeolocation(userId,clientId,body){// verify the required parameter 'userId' is set
|
|
12225
12268
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchUserGeolocation';}// verify the required parameter 'clientId' is set
|
|
12226
12269
|
if(clientId===undefined||clientId===null){throw'Missing the required parameter "clientId" when calling patchUserGeolocation';}// verify the required parameter 'body' is set
|
|
12227
|
-
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']);}}]);
|
|
12270
|
+
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(){/**
|
|
12228
12271
|
* Greetings service.
|
|
12229
12272
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
12230
|
-
* @version
|
|
12273
|
+
* @version 191.0.0
|
|
12231
12274
|
*/ /**
|
|
12232
12275
|
* Constructs a new GreetingsApi.
|
|
12233
12276
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -12238,7 +12281,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12238
12281
|
* Deletes a Greeting with the given GreetingId
|
|
12239
12282
|
*
|
|
12240
12283
|
* @param {String} greetingId Greeting ID
|
|
12241
|
-
*/_createClass(GreetingsApi,[{key:"deleteGreeting",value:function deleteGreeting(greetingId){// verify the required parameter 'greetingId' is set
|
|
12284
|
+
*/return _createClass(GreetingsApi,[{key:"deleteGreeting",value:function deleteGreeting(greetingId){// verify the required parameter 'greetingId' is set
|
|
12242
12285
|
if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling deleteGreeting';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}','DELETE',{'greetingId':greetingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12243
12286
|
* Get a Greeting with the given GreetingId
|
|
12244
12287
|
*
|
|
@@ -12331,10 +12374,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12331
12374
|
* @param {Object} body The updated defaultGreetingList
|
|
12332
12375
|
*/},{key:"putUserGreetingsDefaults",value:function putUserGreetingsDefaults(userId,body){// verify the required parameter 'userId' is set
|
|
12333
12376
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putUserGreetingsDefaults';}// verify the required parameter 'body' is set
|
|
12334
|
-
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']);}}]);
|
|
12377
|
+
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(){/**
|
|
12335
12378
|
* Groups service.
|
|
12336
12379
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
12337
|
-
* @version
|
|
12380
|
+
* @version 191.0.0
|
|
12338
12381
|
*/ /**
|
|
12339
12382
|
* Constructs a new GroupsApi.
|
|
12340
12383
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -12345,7 +12388,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12345
12388
|
* Delete group
|
|
12346
12389
|
*
|
|
12347
12390
|
* @param {String} groupId Group ID
|
|
12348
|
-
*/_createClass(GroupsApi,[{key:"deleteGroup",value:function deleteGroup(groupId){// verify the required parameter 'groupId' is set
|
|
12391
|
+
*/return _createClass(GroupsApi,[{key:"deleteGroup",value:function deleteGroup(groupId){// verify the required parameter 'groupId' is set
|
|
12349
12392
|
if(groupId===undefined||groupId===null){throw'Missing the required parameter "groupId" when calling deleteGroup';}return this.apiClient.callApi('/api/v2/groups/{groupId}','DELETE',{'groupId':groupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12350
12393
|
* Remove dynamic group definition
|
|
12351
12394
|
*
|
|
@@ -12464,10 +12507,10 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
12464
12507
|
* putGroupDynamicsettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
12465
12508
|
*/},{key:"putGroupDynamicsettings",value:function putGroupDynamicsettings(groupId,body){// verify the required parameter 'groupId' is set
|
|
12466
12509
|
if(groupId===undefined||groupId===null){throw'Missing the required parameter "groupId" when calling putGroupDynamicsettings';}// verify the required parameter 'body' is set
|
|
12467
|
-
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']);}}]);
|
|
12510
|
+
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(){/**
|
|
12468
12511
|
* IdentityProvider service.
|
|
12469
12512
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
12470
|
-
* @version
|
|
12513
|
+
* @version 191.0.0
|
|
12471
12514
|
*/ /**
|
|
12472
12515
|
* Constructs a new IdentityProviderApi.
|
|
12473
12516
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -12478,7 +12521,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12478
12521
|
* Delete Identity Provider
|
|
12479
12522
|
*
|
|
12480
12523
|
* @param {String} providerId Provider ID
|
|
12481
|
-
*/_createClass(IdentityProviderApi,[{key:"deleteIdentityprovider",value:function deleteIdentityprovider(providerId){// verify the required parameter 'providerId' is set
|
|
12524
|
+
*/return _createClass(IdentityProviderApi,[{key:"deleteIdentityprovider",value:function deleteIdentityprovider(providerId){// verify the required parameter 'providerId' is set
|
|
12482
12525
|
if(providerId===undefined||providerId===null){throw'Missing the required parameter "providerId" when calling deleteIdentityprovider';}return this.apiClient.callApi('/api/v2/identityproviders/{providerId}','DELETE',{'providerId':providerId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12483
12526
|
* Delete ADFS Identity Provider
|
|
12484
12527
|
*
|
|
@@ -12620,10 +12663,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12620
12663
|
*
|
|
12621
12664
|
* @param {Object} body Provider
|
|
12622
12665
|
*/},{key:"putIdentityprovidersSalesforce",value:function putIdentityprovidersSalesforce(body){// verify the required parameter 'body' is set
|
|
12623
|
-
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']);}}]);
|
|
12666
|
+
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(){/**
|
|
12624
12667
|
* InfrastructureAsCode service.
|
|
12625
12668
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
12626
|
-
* @version
|
|
12669
|
+
* @version 191.0.0
|
|
12627
12670
|
*/ /**
|
|
12628
12671
|
* Constructs a new InfrastructureAsCodeApi.
|
|
12629
12672
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -12636,7 +12679,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12636
12679
|
* @param {String} acceleratorId Accelerator ID
|
|
12637
12680
|
* @param {Object} opts Optional parameters
|
|
12638
12681
|
* @param {Object} opts.preferredLanguage Preferred Language (default to en-US)
|
|
12639
|
-
*/_createClass(InfrastructureAsCodeApi,[{key:"getInfrastructureascodeAccelerator",value:function getInfrastructureascodeAccelerator(acceleratorId,opts){opts=opts||{};// verify the required parameter 'acceleratorId' is set
|
|
12682
|
+
*/return _createClass(InfrastructureAsCodeApi,[{key:"getInfrastructureascodeAccelerator",value:function getInfrastructureascodeAccelerator(acceleratorId,opts){opts=opts||{};// verify the required parameter 'acceleratorId' is set
|
|
12640
12683
|
if(acceleratorId===undefined||acceleratorId===null){throw'Missing the required parameter "acceleratorId" when calling getInfrastructureascodeAccelerator';}return this.apiClient.callApi('/api/v2/infrastructureascode/accelerators/{acceleratorId}','GET',{'acceleratorId':acceleratorId},{'preferredLanguage':opts['preferredLanguage']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12641
12684
|
* Get a list of available accelerators
|
|
12642
12685
|
* Search for accelerators that can be run.
|
|
@@ -12674,10 +12717,10 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
12674
12717
|
* Create and submit a job for remote execution or see job planning results.
|
|
12675
12718
|
* @param {Object} body
|
|
12676
12719
|
*/},{key:"postInfrastructureascodeJobs",value:function postInfrastructureascodeJobs(body){// verify the required parameter 'body' is set
|
|
12677
|
-
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']);}}]);
|
|
12720
|
+
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(){/**
|
|
12678
12721
|
* Integrations service.
|
|
12679
12722
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
12680
|
-
* @version
|
|
12723
|
+
* @version 191.0.0
|
|
12681
12724
|
*/ /**
|
|
12682
12725
|
* Constructs a new IntegrationsApi.
|
|
12683
12726
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -12688,7 +12731,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12688
12731
|
* Delete integration.
|
|
12689
12732
|
*
|
|
12690
12733
|
* @param {String} integrationId Integration Id
|
|
12691
|
-
*/_createClass(IntegrationsApi,[{key:"deleteIntegration",value:function deleteIntegration(integrationId){// verify the required parameter 'integrationId' is set
|
|
12734
|
+
*/return _createClass(IntegrationsApi,[{key:"deleteIntegration",value:function deleteIntegration(integrationId){// verify the required parameter 'integrationId' is set
|
|
12692
12735
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling deleteIntegration';}return this.apiClient.callApi('/api/v2/integrations/{integrationId}','DELETE',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12693
12736
|
* Delete an Action
|
|
12694
12737
|
*
|
|
@@ -13284,10 +13327,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13284
13327
|
* @param {Array.<Object>} body List of User presences
|
|
13285
13328
|
*/},{key:"putIntegrationsUnifiedcommunicationThirdpartypresences",value:function putIntegrationsUnifiedcommunicationThirdpartypresences(ucIntegrationId,body){// verify the required parameter 'ucIntegrationId' is set
|
|
13286
13329
|
if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the required parameter "ucIntegrationId" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';}// verify the required parameter 'body' is set
|
|
13287
|
-
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']);}}]);
|
|
13330
|
+
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(){/**
|
|
13288
13331
|
* Journey service.
|
|
13289
13332
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
13290
|
-
* @version
|
|
13333
|
+
* @version 191.0.0
|
|
13291
13334
|
*/ /**
|
|
13292
13335
|
* Constructs a new JourneyApi.
|
|
13293
13336
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -13298,7 +13341,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13298
13341
|
* Delete single action map.
|
|
13299
13342
|
*
|
|
13300
13343
|
* @param {String} actionMapId ID of the action map.
|
|
13301
|
-
*/_createClass(JourneyApi,[{key:"deleteJourneyActionmap",value:function deleteJourneyActionmap(actionMapId){// verify the required parameter 'actionMapId' is set
|
|
13344
|
+
*/return _createClass(JourneyApi,[{key:"deleteJourneyActionmap",value:function deleteJourneyActionmap(actionMapId){// verify the required parameter 'actionMapId' is set
|
|
13302
13345
|
if(actionMapId===undefined||actionMapId===null){throw'Missing the required parameter "actionMapId" when calling deleteJourneyActionmap';}return this.apiClient.callApi('/api/v2/journey/actionmaps/{actionMapId}','DELETE',{'actionMapId':actionMapId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13303
13346
|
* Delete a single action template.
|
|
13304
13347
|
*
|
|
@@ -13673,10 +13716,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13673
13716
|
* @param {Object} opts Optional parameters
|
|
13674
13717
|
* @param {Array.<Object>} opts.body
|
|
13675
13718
|
* postJourneyViewsEncodingsValidate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
13676
|
-
*/},{key:"postJourneyViewsEncodingsValidate",value:function postJourneyViewsEncodingsValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/encodings/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
13719
|
+
*/},{key:"postJourneyViewsEncodingsValidate",value:function postJourneyViewsEncodingsValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/encodings/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
|
|
13677
13720
|
* Knowledge service.
|
|
13678
13721
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
13679
|
-
* @version
|
|
13722
|
+
* @version 191.0.0
|
|
13680
13723
|
*/ /**
|
|
13681
13724
|
* Constructs a new KnowledgeApi.
|
|
13682
13725
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -13687,7 +13730,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13687
13730
|
* Delete knowledge base
|
|
13688
13731
|
*
|
|
13689
13732
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
13690
|
-
*/_createClass(KnowledgeApi,[{key:"deleteKnowledgeKnowledgebase",value:function deleteKnowledgeKnowledgebase(knowledgeBaseId){// verify the required parameter 'knowledgeBaseId' is set
|
|
13733
|
+
*/return _createClass(KnowledgeApi,[{key:"deleteKnowledgeKnowledgebase",value:function deleteKnowledgeKnowledgebase(knowledgeBaseId){// verify the required parameter 'knowledgeBaseId' is set
|
|
13691
13734
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebase';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}','DELETE',{'knowledgeBaseId':knowledgeBaseId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13692
13735
|
* Delete category
|
|
13693
13736
|
*
|
|
@@ -14585,10 +14628,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14585
14628
|
*
|
|
14586
14629
|
* @param {Object} body
|
|
14587
14630
|
*/},{key:"postKnowledgeKnowledgebases",value:function postKnowledgeKnowledgebases(body){// verify the required parameter 'body' is set
|
|
14588
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
14631
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
|
|
14589
14632
|
* LanguageUnderstanding service.
|
|
14590
14633
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
14591
|
-
* @version
|
|
14634
|
+
* @version 191.0.0
|
|
14592
14635
|
*/ /**
|
|
14593
14636
|
* Constructs a new LanguageUnderstandingApi.
|
|
14594
14637
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -14599,7 +14642,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14599
14642
|
* Delete an NLU Domain.
|
|
14600
14643
|
*
|
|
14601
14644
|
* @param {String} domainId ID of the NLU domain.
|
|
14602
|
-
*/_createClass(LanguageUnderstandingApi,[{key:"deleteLanguageunderstandingDomain",value:function deleteLanguageunderstandingDomain(domainId){// verify the required parameter 'domainId' is set
|
|
14645
|
+
*/return _createClass(LanguageUnderstandingApi,[{key:"deleteLanguageunderstandingDomain",value:function deleteLanguageunderstandingDomain(domainId){// verify the required parameter 'domainId' is set
|
|
14603
14646
|
if(domainId===undefined||domainId===null){throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomain';}return this.apiClient.callApi('/api/v2/languageunderstanding/domains/{domainId}','DELETE',{'domainId':domainId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14604
14647
|
* Delete the feedback on the NLU Domain Version.
|
|
14605
14648
|
*
|
|
@@ -14841,10 +14884,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14841
14884
|
*/},{key:"putLanguageunderstandingDomainVersion",value:function putLanguageunderstandingDomainVersion(domainId,domainVersionId,body){// verify the required parameter 'domainId' is set
|
|
14842
14885
|
if(domainId===undefined||domainId===null){throw'Missing the required parameter "domainId" when calling putLanguageunderstandingDomainVersion';}// verify the required parameter 'domainVersionId' is set
|
|
14843
14886
|
if(domainVersionId===undefined||domainVersionId===null){throw'Missing the required parameter "domainVersionId" when calling putLanguageunderstandingDomainVersion';}// verify the required parameter 'body' is set
|
|
14844
|
-
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']);}}]);
|
|
14887
|
+
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(){/**
|
|
14845
14888
|
* Languages service.
|
|
14846
14889
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
14847
|
-
* @version
|
|
14890
|
+
* @version 191.0.0
|
|
14848
14891
|
*/ /**
|
|
14849
14892
|
* Constructs a new LanguagesApi.
|
|
14850
14893
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -14856,7 +14899,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14856
14899
|
* This endpoint is deprecated. Please see the Routing API (DELETE /api/v2/routing/languages/{languageId})
|
|
14857
14900
|
* @param {String} languageId Language ID
|
|
14858
14901
|
* @deprecated
|
|
14859
|
-
*/_createClass(LanguagesApi,[{key:"deleteLanguage",value:function deleteLanguage(languageId){// verify the required parameter 'languageId' is set
|
|
14902
|
+
*/return _createClass(LanguagesApi,[{key:"deleteLanguage",value:function deleteLanguage(languageId){// verify the required parameter 'languageId' is set
|
|
14860
14903
|
if(languageId===undefined||languageId===null){throw'Missing the required parameter "languageId" when calling deleteLanguage';}return this.apiClient.callApi('/api/v2/languages/{languageId}','DELETE',{'languageId':languageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14861
14904
|
* Get Language (Deprecated)
|
|
14862
14905
|
* This endpoint is deprecated. Please see the Routing API (GET /api/v2/routing/languages/{languageId})
|
|
@@ -14896,10 +14939,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14896
14939
|
* @param {Object} body Language
|
|
14897
14940
|
* @deprecated
|
|
14898
14941
|
*/},{key:"postLanguages",value:function postLanguages(body){// verify the required parameter 'body' is set
|
|
14899
|
-
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']);}}]);
|
|
14942
|
+
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(){/**
|
|
14900
14943
|
* Learning service.
|
|
14901
14944
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
14902
|
-
* @version
|
|
14945
|
+
* @version 191.0.0
|
|
14903
14946
|
*/ /**
|
|
14904
14947
|
* Constructs a new LearningApi.
|
|
14905
14948
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -14910,7 +14953,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14910
14953
|
* Delete a learning assignment
|
|
14911
14954
|
*
|
|
14912
14955
|
* @param {String} assignmentId The Learning Assignment ID
|
|
14913
|
-
*/_createClass(LearningApi,[{key:"deleteLearningAssignment",value:function deleteLearningAssignment(assignmentId){// verify the required parameter 'assignmentId' is set
|
|
14956
|
+
*/return _createClass(LearningApi,[{key:"deleteLearningAssignment",value:function deleteLearningAssignment(assignmentId){// verify the required parameter 'assignmentId' is set
|
|
14914
14957
|
if(assignmentId===undefined||assignmentId===null){throw'Missing the required parameter "assignmentId" when calling deleteLearningAssignment';}return this.apiClient.callApi('/api/v2/learning/assignments/{assignmentId}','DELETE',{'assignmentId':assignmentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14915
14958
|
* Delete a learning module
|
|
14916
14959
|
* This will delete a learning module if it is unpublished or it will delete a published and archived learning module
|
|
@@ -15040,7 +15083,6 @@ if(assignmentId===undefined||assignmentId===null){throw'Missing the required par
|
|
|
15040
15083
|
* @param {String} moduleId Key identifier for the module
|
|
15041
15084
|
* @param {String} userId Key identifier for the user
|
|
15042
15085
|
* @param {Object} body The learning request for updating the assignment
|
|
15043
|
-
* patchLearningModuleUserAssignments is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15044
15086
|
*/},{key:"patchLearningModuleUserAssignments",value:function patchLearningModuleUserAssignments(moduleId,userId,body){// verify the required parameter 'moduleId' is set
|
|
15045
15087
|
if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling patchLearningModuleUserAssignments';}// verify the required parameter 'userId' is set
|
|
15046
15088
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchLearningModuleUserAssignments';}// verify the required parameter 'body' is set
|
|
@@ -15126,10 +15168,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15126
15168
|
* @param {Object} body The learning module rule to be updated
|
|
15127
15169
|
*/},{key:"putLearningModuleRule",value:function putLearningModuleRule(moduleId,body){// verify the required parameter 'moduleId' is set
|
|
15128
15170
|
if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling putLearningModuleRule';}// verify the required parameter 'body' is set
|
|
15129
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
15171
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
|
|
15130
15172
|
* License service.
|
|
15131
15173
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
15132
|
-
* @version
|
|
15174
|
+
* @version 191.0.0
|
|
15133
15175
|
*/ /**
|
|
15134
15176
|
* Constructs a new LicenseApi.
|
|
15135
15177
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -15140,7 +15182,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15140
15182
|
* Get PureCloud license definition.
|
|
15141
15183
|
*
|
|
15142
15184
|
* @param {String} licenseId ID
|
|
15143
|
-
*/_createClass(LicenseApi,[{key:"getLicenseDefinition",value:function getLicenseDefinition(licenseId){// verify the required parameter 'licenseId' is set
|
|
15185
|
+
*/return _createClass(LicenseApi,[{key:"getLicenseDefinition",value:function getLicenseDefinition(licenseId){// verify the required parameter 'licenseId' is set
|
|
15144
15186
|
if(licenseId===undefined||licenseId===null){throw'Missing the required parameter "licenseId" when calling getLicenseDefinition';}return this.apiClient.callApi('/api/v2/license/definitions/{licenseId}','GET',{'licenseId':licenseId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15145
15187
|
* Get all PureCloud license definitions available for the organization.
|
|
15146
15188
|
*
|
|
@@ -15180,10 +15222,10 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
15180
15222
|
*
|
|
15181
15223
|
* @param {Object} opts Optional parameters
|
|
15182
15224
|
* @param {Array.<String>} opts.body The user IDs to fetch.
|
|
15183
|
-
*/},{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']);}}]);
|
|
15225
|
+
*/},{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(){/**
|
|
15184
15226
|
* Locations service.
|
|
15185
15227
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
15186
|
-
* @version
|
|
15228
|
+
* @version 191.0.0
|
|
15187
15229
|
*/ /**
|
|
15188
15230
|
* Constructs a new LocationsApi.
|
|
15189
15231
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -15194,7 +15236,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
15194
15236
|
* Delete a location
|
|
15195
15237
|
*
|
|
15196
15238
|
* @param {String} locationId Location ID
|
|
15197
|
-
*/_createClass(LocationsApi,[{key:"deleteLocation",value:function deleteLocation(locationId){// verify the required parameter 'locationId' is set
|
|
15239
|
+
*/return _createClass(LocationsApi,[{key:"deleteLocation",value:function deleteLocation(locationId){// verify the required parameter 'locationId' is set
|
|
15198
15240
|
if(locationId===undefined||locationId===null){throw'Missing the required parameter "locationId" when calling deleteLocation';}return this.apiClient.callApi('/api/v2/locations/{locationId}','DELETE',{'locationId':locationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15199
15241
|
* Get Location by ID.
|
|
15200
15242
|
*
|
|
@@ -15239,10 +15281,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15239
15281
|
*
|
|
15240
15282
|
* @param {Object} body Search request options
|
|
15241
15283
|
*/},{key:"postLocationsSearch",value:function postLocationsSearch(body){// verify the required parameter 'body' is set
|
|
15242
|
-
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']);}}]);
|
|
15284
|
+
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(){/**
|
|
15243
15285
|
* LogCapture service.
|
|
15244
15286
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
15245
|
-
* @version
|
|
15287
|
+
* @version 191.0.0
|
|
15246
15288
|
*/ /**
|
|
15247
15289
|
* Constructs a new LogCaptureApi.
|
|
15248
15290
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -15253,7 +15295,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15253
15295
|
* Disable browser log capture for the user
|
|
15254
15296
|
*
|
|
15255
15297
|
* @param {String} userId The id of the user to disable browser log capture
|
|
15256
|
-
*/_createClass(LogCaptureApi,[{key:"deleteDiagnosticsLogcaptureBrowserUser",value:function deleteDiagnosticsLogcaptureBrowserUser(userId){// verify the required parameter 'userId' is set
|
|
15298
|
+
*/return _createClass(LogCaptureApi,[{key:"deleteDiagnosticsLogcaptureBrowserUser",value:function deleteDiagnosticsLogcaptureBrowserUser(userId){// verify the required parameter 'userId' is set
|
|
15257
15299
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','DELETE',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15258
15300
|
* Gets status of async download execution
|
|
15259
15301
|
*
|
|
@@ -15289,10 +15331,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
15289
15331
|
* @param {Object} opts Optional parameters
|
|
15290
15332
|
* @param {Object} opts.body
|
|
15291
15333
|
*/},{key:"postDiagnosticsLogcaptureBrowserUser",value:function postDiagnosticsLogcaptureBrowserUser(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
15292
|
-
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
15334
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
|
|
15293
15335
|
* Messaging service.
|
|
15294
15336
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
15295
|
-
* @version
|
|
15337
|
+
* @version 191.0.0
|
|
15296
15338
|
*/ /**
|
|
15297
15339
|
* Constructs a new MessagingApi.
|
|
15298
15340
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -15304,7 +15346,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
15304
15346
|
*
|
|
15305
15347
|
* @param {String} messageSettingId Message Settings ID
|
|
15306
15348
|
* @deprecated
|
|
15307
|
-
*/_createClass(MessagingApi,[{key:"deleteMessagingSetting",value:function deleteMessagingSetting(messageSettingId){// verify the required parameter 'messageSettingId' is set
|
|
15349
|
+
*/return _createClass(MessagingApi,[{key:"deleteMessagingSetting",value:function deleteMessagingSetting(messageSettingId){// verify the required parameter 'messageSettingId' is set
|
|
15308
15350
|
if(messageSettingId===undefined||messageSettingId===null){throw'Missing the required parameter "messageSettingId" when calling deleteMessagingSetting';}return this.apiClient.callApi('/api/v2/messaging/settings/{messageSettingId}','DELETE',{'messageSettingId':messageSettingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15309
15351
|
* Delete the organization's default setting, a global default will be applied to integrations without settings
|
|
15310
15352
|
* When an integration is created a settings ID may be assigned to it. If the settings ID is not supplied, the default settings will be applied to it.
|
|
@@ -15379,10 +15421,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15379
15421
|
* @param {Object} body Messaging Setting ID
|
|
15380
15422
|
* @deprecated
|
|
15381
15423
|
*/},{key:"putMessagingSettingsDefault",value:function putMessagingSettingsDefault(body){// verify the required parameter 'body' is set
|
|
15382
|
-
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']);}}]);
|
|
15424
|
+
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(){/**
|
|
15383
15425
|
* MobileDevices service.
|
|
15384
15426
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
15385
|
-
* @version
|
|
15427
|
+
* @version 191.0.0
|
|
15386
15428
|
*/ /**
|
|
15387
15429
|
* Constructs a new MobileDevicesApi.
|
|
15388
15430
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -15393,7 +15435,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15393
15435
|
* Delete device
|
|
15394
15436
|
*
|
|
15395
15437
|
* @param {String} deviceId Device ID
|
|
15396
|
-
*/_createClass(MobileDevicesApi,[{key:"deleteMobiledevice",value:function deleteMobiledevice(deviceId){// verify the required parameter 'deviceId' is set
|
|
15438
|
+
*/return _createClass(MobileDevicesApi,[{key:"deleteMobiledevice",value:function deleteMobiledevice(deviceId){// verify the required parameter 'deviceId' is set
|
|
15397
15439
|
if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling deleteMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','DELETE',{'deviceId':deviceId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15398
15440
|
* Get device
|
|
15399
15441
|
*
|
|
@@ -15418,10 +15460,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15418
15460
|
* @param {Object} opts Optional parameters
|
|
15419
15461
|
* @param {Object} opts.body Device
|
|
15420
15462
|
*/},{key:"putMobiledevice",value:function putMobiledevice(deviceId,opts){opts=opts||{};// verify the required parameter 'deviceId' is set
|
|
15421
|
-
if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
15463
|
+
if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
|
|
15422
15464
|
* Notifications service.
|
|
15423
15465
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
15424
|
-
* @version
|
|
15466
|
+
* @version 191.0.0
|
|
15425
15467
|
*/ /**
|
|
15426
15468
|
* Constructs a new NotificationsApi.
|
|
15427
15469
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -15432,7 +15474,7 @@ if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "
|
|
|
15432
15474
|
* Remove all subscriptions
|
|
15433
15475
|
*
|
|
15434
15476
|
* @param {String} channelId Channel ID
|
|
15435
|
-
*/_createClass(NotificationsApi,[{key:"deleteNotificationsChannelSubscriptions",value:function deleteNotificationsChannelSubscriptions(channelId){// verify the required parameter 'channelId' is set
|
|
15477
|
+
*/return _createClass(NotificationsApi,[{key:"deleteNotificationsChannelSubscriptions",value:function deleteNotificationsChannelSubscriptions(channelId){// verify the required parameter 'channelId' is set
|
|
15436
15478
|
if(channelId===undefined||channelId===null){throw'Missing the required parameter "channelId" when calling deleteNotificationsChannelSubscriptions';}return this.apiClient.callApi('/api/v2/notifications/channels/{channelId}/subscriptions','DELETE',{'channelId':channelId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15437
15479
|
* Get available notification topics.
|
|
15438
15480
|
*
|
|
@@ -15475,10 +15517,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15475
15517
|
* @param {Boolean} opts.ignoreErrors Optionally prevent throwing of errors for failed permissions checks. (default to false)
|
|
15476
15518
|
*/},{key:"putNotificationsChannelSubscriptions",value:function putNotificationsChannelSubscriptions(channelId,body,opts){opts=opts||{};// verify the required parameter 'channelId' is set
|
|
15477
15519
|
if(channelId===undefined||channelId===null){throw'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';}// verify the required parameter 'body' is set
|
|
15478
|
-
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']);}}]);
|
|
15520
|
+
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(){/**
|
|
15479
15521
|
* OAuth service.
|
|
15480
15522
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
15481
|
-
* @version
|
|
15523
|
+
* @version 191.0.0
|
|
15482
15524
|
*/ /**
|
|
15483
15525
|
* Constructs a new OAuthApi.
|
|
15484
15526
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -15489,7 +15531,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15489
15531
|
* Delete OAuth Client
|
|
15490
15532
|
*
|
|
15491
15533
|
* @param {String} clientId Client ID
|
|
15492
|
-
*/_createClass(OAuthApi,[{key:"deleteOauthClient",value:function deleteOauthClient(clientId){// verify the required parameter 'clientId' is set
|
|
15534
|
+
*/return _createClass(OAuthApi,[{key:"deleteOauthClient",value:function deleteOauthClient(clientId){// verify the required parameter 'clientId' is set
|
|
15493
15535
|
if(clientId===undefined||clientId===null){throw'Missing the required parameter "clientId" when calling deleteOauthClient';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}','DELETE',{'clientId':clientId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15494
15536
|
* Get a client that is authorized by the resource owner
|
|
15495
15537
|
*
|
|
@@ -15560,10 +15602,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15560
15602
|
* @param {Object} body Client
|
|
15561
15603
|
*/},{key:"putOauthClient",value:function putOauthClient(clientId,body){// verify the required parameter 'clientId' is set
|
|
15562
15604
|
if(clientId===undefined||clientId===null){throw'Missing the required parameter "clientId" when calling putOauthClient';}// verify the required parameter 'body' is set
|
|
15563
|
-
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']);}}]);
|
|
15605
|
+
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(){/**
|
|
15564
15606
|
* Objects service.
|
|
15565
15607
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
15566
|
-
* @version
|
|
15608
|
+
* @version 191.0.0
|
|
15567
15609
|
*/ /**
|
|
15568
15610
|
* Constructs a new ObjectsApi.
|
|
15569
15611
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -15576,7 +15618,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15576
15618
|
* @param {String} divisionId Division ID
|
|
15577
15619
|
* @param {Object} opts Optional parameters
|
|
15578
15620
|
* @param {Boolean} opts.force Force delete this division as well as the grants and objects associated with it (default to false)
|
|
15579
|
-
*/_createClass(ObjectsApi,[{key:"deleteAuthorizationDivision",value:function deleteAuthorizationDivision(divisionId,opts){opts=opts||{};// verify the required parameter 'divisionId' is set
|
|
15621
|
+
*/return _createClass(ObjectsApi,[{key:"deleteAuthorizationDivision",value:function deleteAuthorizationDivision(divisionId,opts){opts=opts||{};// verify the required parameter 'divisionId' is set
|
|
15580
15622
|
if(divisionId===undefined||divisionId===null){throw'Missing the required parameter "divisionId" when calling deleteAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','DELETE',{'divisionId':divisionId},{'force':opts['force']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15581
15623
|
* Returns an authorization division.
|
|
15582
15624
|
*
|
|
@@ -15631,10 +15673,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15631
15673
|
* @param {Object} body Updated division data
|
|
15632
15674
|
*/},{key:"putAuthorizationDivision",value:function putAuthorizationDivision(divisionId,body){// verify the required parameter 'divisionId' is set
|
|
15633
15675
|
if(divisionId===undefined||divisionId===null){throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';}// verify the required parameter 'body' is set
|
|
15634
|
-
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']);}}]);
|
|
15676
|
+
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(){/**
|
|
15635
15677
|
* OperationalEvents service.
|
|
15636
15678
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
15637
|
-
* @version
|
|
15679
|
+
* @version 191.0.0
|
|
15638
15680
|
*/ /**
|
|
15639
15681
|
* Constructs a new OperationalEventsApi.
|
|
15640
15682
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -15645,14 +15687,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15645
15687
|
* Get an operational event definition by its id
|
|
15646
15688
|
*
|
|
15647
15689
|
* @param {String} eventDefinitionId EventDefinition id
|
|
15648
|
-
*/_createClass(OperationalEventsApi,[{key:"getUsageEventsDefinition",value:function getUsageEventsDefinition(eventDefinitionId){// verify the required parameter 'eventDefinitionId' is set
|
|
15690
|
+
*/return _createClass(OperationalEventsApi,[{key:"getUsageEventsDefinition",value:function getUsageEventsDefinition(eventDefinitionId){// verify the required parameter 'eventDefinitionId' is set
|
|
15649
15691
|
if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the required parameter "eventDefinitionId" when calling getUsageEventsDefinition';}return this.apiClient.callApi('/api/v2/usage/events/definitions/{eventDefinitionId}','GET',{'eventDefinitionId':eventDefinitionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15650
15692
|
* Get all operational event definitions
|
|
15651
15693
|
*
|
|
15652
|
-
*/},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
15694
|
+
*/},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
|
|
15653
15695
|
* Organization service.
|
|
15654
15696
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
15655
|
-
* @version
|
|
15697
|
+
* @version 191.0.0
|
|
15656
15698
|
*/ /**
|
|
15657
15699
|
* Constructs a new OrganizationApi.
|
|
15658
15700
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -15664,7 +15706,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
15664
15706
|
*
|
|
15665
15707
|
* @param {Object} type Field type
|
|
15666
15708
|
* @deprecated
|
|
15667
|
-
*/_createClass(OrganizationApi,[{key:"getFieldconfig",value:function getFieldconfig(type){// verify the required parameter 'type' is set
|
|
15709
|
+
*/return _createClass(OrganizationApi,[{key:"getFieldconfig",value:function getFieldconfig(type){// verify the required parameter 'type' is set
|
|
15668
15710
|
if(type===undefined||type===null){throw'Missing the required parameter "type" when calling getFieldconfig';}return this.apiClient.callApi('/api/v2/fieldconfig','GET',{},{'type':type},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15669
15711
|
* Gets the organization's settings
|
|
15670
15712
|
*
|
|
@@ -15751,10 +15793,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15751
15793
|
* @param {Object} body Whitelist settings
|
|
15752
15794
|
* @deprecated
|
|
15753
15795
|
*/},{key:"putOrganizationsWhitelist",value:function putOrganizationsWhitelist(body){// verify the required parameter 'body' is set
|
|
15754
|
-
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']);}}]);
|
|
15796
|
+
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(){/**
|
|
15755
15797
|
* OrganizationAuthorization service.
|
|
15756
15798
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
15757
|
-
* @version
|
|
15799
|
+
* @version 191.0.0
|
|
15758
15800
|
*/ /**
|
|
15759
15801
|
* Constructs a new OrganizationAuthorizationApi.
|
|
15760
15802
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -15765,7 +15807,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15765
15807
|
* Delete Org Trust
|
|
15766
15808
|
*
|
|
15767
15809
|
* @param {String} trusteeOrgId Trustee Organization Id
|
|
15768
|
-
*/_createClass(OrganizationAuthorizationApi,[{key:"deleteOrgauthorizationTrustee",value:function deleteOrgauthorizationTrustee(trusteeOrgId){// verify the required parameter 'trusteeOrgId' is set
|
|
15810
|
+
*/return _createClass(OrganizationAuthorizationApi,[{key:"deleteOrgauthorizationTrustee",value:function deleteOrgauthorizationTrustee(trusteeOrgId){// verify the required parameter 'trusteeOrgId' is set
|
|
15769
15811
|
if(trusteeOrgId===undefined||trusteeOrgId===null){throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrustee';}return this.apiClient.callApi('/api/v2/orgauthorization/trustees/{trusteeOrgId}','DELETE',{'trusteeOrgId':trusteeOrgId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15770
15812
|
* Deletes cloned user
|
|
15771
15813
|
*
|
|
@@ -16074,10 +16116,10 @@ if(trustorGroupId===undefined||trustorGroupId===null){throw'Missing the required
|
|
|
16074
16116
|
* @param {String} trusteeUserId Trustee User Id
|
|
16075
16117
|
*/},{key:"putOrgauthorizationTrustorUser",value:function putOrgauthorizationTrustorUser(trustorOrgId,trusteeUserId){// verify the required parameter 'trustorOrgId' is set
|
|
16076
16118
|
if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorUser';}// verify the required parameter 'trusteeUserId' is set
|
|
16077
|
-
if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
16119
|
+
if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
|
|
16078
16120
|
* Outbound service.
|
|
16079
16121
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
16080
|
-
* @version
|
|
16122
|
+
* @version 191.0.0
|
|
16081
16123
|
*/ /**
|
|
16082
16124
|
* Constructs a new OutboundApi.
|
|
16083
16125
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -16088,7 +16130,7 @@ if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required p
|
|
|
16088
16130
|
* Delete attempt limits
|
|
16089
16131
|
*
|
|
16090
16132
|
* @param {String} attemptLimitsId Attempt limits ID
|
|
16091
|
-
*/_createClass(OutboundApi,[{key:"deleteOutboundAttemptlimit",value:function deleteOutboundAttemptlimit(attemptLimitsId){// verify the required parameter 'attemptLimitsId' is set
|
|
16133
|
+
*/return _createClass(OutboundApi,[{key:"deleteOutboundAttemptlimit",value:function deleteOutboundAttemptlimit(attemptLimitsId){// verify the required parameter 'attemptLimitsId' is set
|
|
16092
16134
|
if(attemptLimitsId===undefined||attemptLimitsId===null){throw'Missing the required parameter "attemptLimitsId" when calling deleteOutboundAttemptlimit';}return this.apiClient.callApi('/api/v2/outbound/attemptlimits/{attemptLimitsId}','DELETE',{'attemptLimitsId':attemptLimitsId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16093
16135
|
* Delete callable time set
|
|
16094
16136
|
*
|
|
@@ -17112,10 +17154,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17112
17154
|
*
|
|
17113
17155
|
* @param {Object} body wrapUpCodeMapping
|
|
17114
17156
|
*/},{key:"putOutboundWrapupcodemappings",value:function putOutboundWrapupcodemappings(body){// verify the required parameter 'body' is set
|
|
17115
|
-
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']);}}]);
|
|
17157
|
+
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(){/**
|
|
17116
17158
|
* Presence service.
|
|
17117
17159
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
17118
|
-
* @version
|
|
17160
|
+
* @version 191.0.0
|
|
17119
17161
|
*/ /**
|
|
17120
17162
|
* Constructs a new PresenceApi.
|
|
17121
17163
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -17126,7 +17168,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17126
17168
|
* Delete a Presence Definition
|
|
17127
17169
|
*
|
|
17128
17170
|
* @param {String} definitionId Presence Definition ID
|
|
17129
|
-
*/_createClass(PresenceApi,[{key:"deletePresenceDefinition0",value:function deletePresenceDefinition0(definitionId){// verify the required parameter 'definitionId' is set
|
|
17171
|
+
*/return _createClass(PresenceApi,[{key:"deletePresenceDefinition0",value:function deletePresenceDefinition0(definitionId){// verify the required parameter 'definitionId' is set
|
|
17130
17172
|
if(definitionId===undefined||definitionId===null){throw'Missing the required parameter "definitionId" when calling deletePresenceDefinition0';}return this.apiClient.callApi('/api/v2/presence/definitions/{definitionId}','DELETE',{'definitionId':definitionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17131
17173
|
* Delete a Presence Source
|
|
17132
17174
|
*
|
|
@@ -17285,10 +17327,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17285
17327
|
*
|
|
17286
17328
|
* @param {Array.<Object>} body List of User presences
|
|
17287
17329
|
*/},{key:"putUsersPresencesBulk",value:function putUsersPresencesBulk(body){// verify the required parameter 'body' is set
|
|
17288
|
-
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']);}}]);
|
|
17330
|
+
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(){/**
|
|
17289
17331
|
* ProcessAutomation service.
|
|
17290
17332
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
17291
|
-
* @version
|
|
17333
|
+
* @version 191.0.0
|
|
17292
17334
|
*/ /**
|
|
17293
17335
|
* Constructs a new ProcessAutomationApi.
|
|
17294
17336
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -17299,7 +17341,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17299
17341
|
* Delete a Trigger
|
|
17300
17342
|
*
|
|
17301
17343
|
* @param {String} triggerId triggerId
|
|
17302
|
-
*/_createClass(ProcessAutomationApi,[{key:"deleteProcessautomationTrigger",value:function deleteProcessautomationTrigger(triggerId){// verify the required parameter 'triggerId' is set
|
|
17344
|
+
*/return _createClass(ProcessAutomationApi,[{key:"deleteProcessautomationTrigger",value:function deleteProcessautomationTrigger(triggerId){// verify the required parameter 'triggerId' is set
|
|
17303
17345
|
if(triggerId===undefined||triggerId===null){throw'Missing the required parameter "triggerId" when calling deleteProcessautomationTrigger';}return this.apiClient.callApi('/api/v2/processautomation/triggers/{triggerId}','DELETE',{'triggerId':triggerId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17304
17346
|
* Retrieve a single Trigger matching id
|
|
17305
17347
|
*
|
|
@@ -17348,10 +17390,10 @@ if(topicName===undefined||topicName===null){throw'Missing the required parameter
|
|
|
17348
17390
|
* @param {Object} body Input to update Trigger. (topicName cannot be updated, a new trigger must be created to use a new topicName)
|
|
17349
17391
|
*/},{key:"putProcessautomationTrigger",value:function putProcessautomationTrigger(triggerId,body){// verify the required parameter 'triggerId' is set
|
|
17350
17392
|
if(triggerId===undefined||triggerId===null){throw'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';}// verify the required parameter 'body' is set
|
|
17351
|
-
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']);}}]);
|
|
17393
|
+
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(){/**
|
|
17352
17394
|
* Quality service.
|
|
17353
17395
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
17354
|
-
* @version
|
|
17396
|
+
* @version 191.0.0
|
|
17355
17397
|
*/ /**
|
|
17356
17398
|
* Constructs a new QualityApi.
|
|
17357
17399
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -17363,7 +17405,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17363
17405
|
*
|
|
17364
17406
|
* @param {String} calibrationId Calibration ID
|
|
17365
17407
|
* @param {String} calibratorId calibratorId
|
|
17366
|
-
*/_createClass(QualityApi,[{key:"deleteQualityCalibration",value:function deleteQualityCalibration(calibrationId,calibratorId){// verify the required parameter 'calibrationId' is set
|
|
17408
|
+
*/return _createClass(QualityApi,[{key:"deleteQualityCalibration",value:function deleteQualityCalibration(calibrationId,calibratorId){// verify the required parameter 'calibrationId' is set
|
|
17367
17409
|
if(calibrationId===undefined||calibrationId===null){throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';}// verify the required parameter 'calibratorId' is set
|
|
17368
17410
|
if(calibratorId===undefined||calibratorId===null){throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';}return this.apiClient.callApi('/api/v2/quality/calibrations/{calibrationId}','DELETE',{'calibrationId':calibrationId},{'calibratorId':calibratorId},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17369
17411
|
* Delete an evaluation
|
|
@@ -17819,10 +17861,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17819
17861
|
* @param {Object} body survey
|
|
17820
17862
|
*/},{key:"putQualitySurveysScorable",value:function putQualitySurveysScorable(customerSurveyUrl,body){// verify the required parameter 'customerSurveyUrl' is set
|
|
17821
17863
|
if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the required parameter "customerSurveyUrl" when calling putQualitySurveysScorable';}// verify the required parameter 'body' is set
|
|
17822
|
-
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']);}}]);
|
|
17864
|
+
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(){/**
|
|
17823
17865
|
* Recording service.
|
|
17824
17866
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
17825
|
-
* @version
|
|
17867
|
+
* @version 191.0.0
|
|
17826
17868
|
*/ /**
|
|
17827
17869
|
* Constructs a new RecordingApi.
|
|
17828
17870
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -17835,7 +17877,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17835
17877
|
* @param {String} conversationId Conversation ID
|
|
17836
17878
|
* @param {String} recordingId Recording ID
|
|
17837
17879
|
* @param {String} annotationId Annotation ID
|
|
17838
|
-
*/_createClass(RecordingApi,[{key:"deleteConversationRecordingAnnotation",value:function deleteConversationRecordingAnnotation(conversationId,recordingId,annotationId){// verify the required parameter 'conversationId' is set
|
|
17880
|
+
*/return _createClass(RecordingApi,[{key:"deleteConversationRecordingAnnotation",value:function deleteConversationRecordingAnnotation(conversationId,recordingId,annotationId){// verify the required parameter 'conversationId' is set
|
|
17839
17881
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling deleteConversationRecordingAnnotation';}// verify the required parameter 'recordingId' is set
|
|
17840
17882
|
if(recordingId===undefined||recordingId===null){throw'Missing the required parameter "recordingId" when calling deleteConversationRecordingAnnotation';}// verify the required parameter 'annotationId' is set
|
|
17841
17883
|
if(annotationId===undefined||annotationId===null){throw'Missing the required parameter "annotationId" when calling deleteConversationRecordingAnnotation';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}','DELETE',{'conversationId':conversationId,'recordingId':recordingId,'annotationId':annotationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -18061,10 +18103,11 @@ if(reportId===undefined||reportId===null){throw'Missing the required parameter "
|
|
|
18061
18103
|
*/},{key:"getRecordingsRetentionQuery",value:function getRecordingsRetentionQuery(retentionThresholdDays,opts){opts=opts||{};// verify the required parameter 'retentionThresholdDays' is set
|
|
18062
18104
|
if(retentionThresholdDays===undefined||retentionThresholdDays===null){throw'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';}return this.apiClient.callApi('/api/v2/recordings/retention/query','GET',{},{'retentionThresholdDays':retentionThresholdDays,'cursor':opts['cursor'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18063
18105
|
* Retrieves a paged listing of screen recording sessions
|
|
18064
|
-
*
|
|
18106
|
+
* Coming soon: This API is deprecated and will be replaced by /api/v2/recordings/screensessions/details
|
|
18065
18107
|
* @param {Object} opts Optional parameters
|
|
18066
18108
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
18067
18109
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
18110
|
+
* @deprecated
|
|
18068
18111
|
*/},{key:"getRecordingsScreensessions",value:function getRecordingsScreensessions(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/recordings/screensessions','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18069
18112
|
* Retrieves an object containing the total number of concurrent active screen recordings
|
|
18070
18113
|
*
|
|
@@ -18230,10 +18273,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18230
18273
|
* @param {Object} opts Optional parameters
|
|
18231
18274
|
* @param {Boolean} opts.protect Check for apply, uncheck for revoke (each action requires the respective permission) (default to true)
|
|
18232
18275
|
* @param {Object} opts.body
|
|
18233
|
-
*/},{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']);}}]);
|
|
18276
|
+
*/},{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(){/**
|
|
18234
18277
|
* ResponseManagement service.
|
|
18235
18278
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
18236
|
-
* @version
|
|
18279
|
+
* @version 191.0.0
|
|
18237
18280
|
*/ /**
|
|
18238
18281
|
* Constructs a new ResponseManagementApi.
|
|
18239
18282
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -18244,7 +18287,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18244
18287
|
* Delete an existing response library.
|
|
18245
18288
|
* This will remove any responses associated with the library.
|
|
18246
18289
|
* @param {String} libraryId Library ID
|
|
18247
|
-
*/_createClass(ResponseManagementApi,[{key:"deleteResponsemanagementLibrary",value:function deleteResponsemanagementLibrary(libraryId){// verify the required parameter 'libraryId' is set
|
|
18290
|
+
*/return _createClass(ResponseManagementApi,[{key:"deleteResponsemanagementLibrary",value:function deleteResponsemanagementLibrary(libraryId){// verify the required parameter 'libraryId' is set
|
|
18248
18291
|
if(libraryId===undefined||libraryId===null){throw'Missing the required parameter "libraryId" when calling deleteResponsemanagementLibrary';}return this.apiClient.callApi('/api/v2/responsemanagement/libraries/{libraryId}','DELETE',{'libraryId':libraryId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18249
18292
|
* Delete an existing response.
|
|
18250
18293
|
* This will remove the response from any libraries associated with it.
|
|
@@ -18300,6 +18343,11 @@ if(libraryId===undefined||libraryId===null){throw'Missing the required parameter
|
|
|
18300
18343
|
* @param {Object} body Library
|
|
18301
18344
|
*/},{key:"postResponsemanagementLibraries",value:function postResponsemanagementLibraries(body){// verify the required parameter 'body' is set
|
|
18302
18345
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postResponsemanagementLibraries';}return this.apiClient.callApi('/api/v2/responsemanagement/libraries','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18346
|
+
* Get response libraries.
|
|
18347
|
+
*
|
|
18348
|
+
* @param {Object} body LibraryIDs (max allowed 50)
|
|
18349
|
+
*/},{key:"postResponsemanagementLibrariesBulk",value:function postResponsemanagementLibrariesBulk(body){// verify the required parameter 'body' is set
|
|
18350
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesBulk';}return this.apiClient.callApi('/api/v2/responsemanagement/libraries/bulk','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18303
18351
|
* Search response assets
|
|
18304
18352
|
*
|
|
18305
18353
|
* @param {Object} body request
|
|
@@ -18346,10 +18394,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18346
18394
|
* @param {Object} body request
|
|
18347
18395
|
*/},{key:"putResponsemanagementResponseasset",value:function putResponsemanagementResponseasset(responseAssetId,body){// verify the required parameter 'responseAssetId' is set
|
|
18348
18396
|
if(responseAssetId===undefined||responseAssetId===null){throw'Missing the required parameter "responseAssetId" when calling putResponsemanagementResponseasset';}// verify the required parameter 'body' is set
|
|
18349
|
-
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']);}}]);
|
|
18397
|
+
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(){/**
|
|
18350
18398
|
* Routing service.
|
|
18351
18399
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
18352
|
-
* @version
|
|
18400
|
+
* @version 191.0.0
|
|
18353
18401
|
*/ /**
|
|
18354
18402
|
* Constructs a new RoutingApi.
|
|
18355
18403
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -18360,7 +18408,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18360
18408
|
* Delete single benefit assessment.
|
|
18361
18409
|
*
|
|
18362
18410
|
* @param {String} assessmentId Benefit Assessment ID
|
|
18363
|
-
*/_createClass(RoutingApi,[{key:"deleteRoutingAssessment",value:function deleteRoutingAssessment(assessmentId){// verify the required parameter 'assessmentId' is set
|
|
18411
|
+
*/return _createClass(RoutingApi,[{key:"deleteRoutingAssessment",value:function deleteRoutingAssessment(assessmentId){// verify the required parameter 'assessmentId' is set
|
|
18364
18412
|
if(assessmentId===undefined||assessmentId===null){throw'Missing the required parameter "assessmentId" when calling deleteRoutingAssessment';}return this.apiClient.callApi('/api/v2/routing/assessments/{assessmentId}','DELETE',{'assessmentId':assessmentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18365
18413
|
* Delete a domain
|
|
18366
18414
|
*
|
|
@@ -19192,6 +19240,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19192
19240
|
* @param {Object} body SmsPhoneNumber
|
|
19193
19241
|
*/},{key:"postRoutingSmsPhonenumbers",value:function postRoutingSmsPhonenumbers(body){// verify the required parameter 'body' is set
|
|
19194
19242
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19243
|
+
* Provision an alphanumeric number for SMS
|
|
19244
|
+
*
|
|
19245
|
+
* @param {Object} body SmsPhoneNumber
|
|
19246
|
+
* postRoutingSmsPhonenumbersAlphanumeric is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
19247
|
+
*/},{key:"postRoutingSmsPhonenumbersAlphanumeric",value:function postRoutingSmsPhonenumbersAlphanumeric(body){// verify the required parameter 'body' is set
|
|
19248
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbersAlphanumeric';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/alphanumeric','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19195
19249
|
* Imports a phone number for SMS
|
|
19196
19250
|
*
|
|
19197
19251
|
* @param {Object} body SmsPhoneNumber
|
|
@@ -19315,10 +19369,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19315
19369
|
* @param {Array.<Object>} body Skill
|
|
19316
19370
|
*/},{key:"putUserRoutingskillsBulk",value:function putUserRoutingskillsBulk(userId,body){// verify the required parameter 'userId' is set
|
|
19317
19371
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';}// verify the required parameter 'body' is set
|
|
19318
|
-
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']);}}]);
|
|
19372
|
+
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(){/**
|
|
19319
19373
|
* SCIM service.
|
|
19320
19374
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
19321
|
-
* @version
|
|
19375
|
+
* @version 191.0.0
|
|
19322
19376
|
*/ /**
|
|
19323
19377
|
* Constructs a new SCIMApi.
|
|
19324
19378
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -19331,7 +19385,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19331
19385
|
* @param {String} userId The ID of a user. Returned with GET /api/v2/scim/users.
|
|
19332
19386
|
* @param {Object} opts Optional parameters
|
|
19333
19387
|
* @param {String} opts.ifMatch The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/users/{userId}. Example: 42. If the ETag is different from the version on the server, returns 400 with a scimType of invalidVers.
|
|
19334
|
-
*/_createClass(SCIMApi,[{key:"deleteScimUser",value:function deleteScimUser(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
19388
|
+
*/return _createClass(SCIMApi,[{key:"deleteScimUser",value:function deleteScimUser(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
19335
19389
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteScimUser';}return this.apiClient.callApi('/api/v2/scim/users/{userId}','DELETE',{'userId':userId},{},{'If-Match':opts['ifMatch']},{},null,['PureCloud OAuth'],['application/json'],['application/scim+json','application/json']);}/**
|
|
19336
19390
|
* Delete a user
|
|
19337
19391
|
*
|
|
@@ -19540,10 +19594,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19540
19594
|
* @param {String} opts.ifMatch The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/users/{userId}. Example: 42. If the ETag is different from the version on the server, returns 400 with a scimType of invalidVers.
|
|
19541
19595
|
*/},{key:"putScimV2User",value:function putScimV2User(userId,body,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
19542
19596
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putScimV2User';}// verify the required parameter 'body' is set
|
|
19543
|
-
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']);}}]);
|
|
19597
|
+
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(){/**
|
|
19544
19598
|
* ScreenRecording service.
|
|
19545
19599
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
19546
|
-
* @version
|
|
19600
|
+
* @version 191.0.0
|
|
19547
19601
|
*/ /**
|
|
19548
19602
|
* Constructs a new ScreenRecordingApi.
|
|
19549
19603
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -19555,10 +19609,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19555
19609
|
*
|
|
19556
19610
|
* @param {Object} opts Optional parameters
|
|
19557
19611
|
* @param {Object} opts.body
|
|
19558
|
-
*/_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']);}}]);
|
|
19612
|
+
*/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(){/**
|
|
19559
19613
|
* Scripts service.
|
|
19560
19614
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
19561
|
-
* @version
|
|
19615
|
+
* @version 191.0.0
|
|
19562
19616
|
*/ /**
|
|
19563
19617
|
* Constructs a new ScriptsApi.
|
|
19564
19618
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -19569,7 +19623,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19569
19623
|
* Get a script
|
|
19570
19624
|
*
|
|
19571
19625
|
* @param {String} scriptId Script ID
|
|
19572
|
-
*/_createClass(ScriptsApi,[{key:"getScript",value:function getScript(scriptId){// verify the required parameter 'scriptId' is set
|
|
19626
|
+
*/return _createClass(ScriptsApi,[{key:"getScript",value:function getScript(scriptId){// verify the required parameter 'scriptId' is set
|
|
19573
19627
|
if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "scriptId" when calling getScript';}return this.apiClient.callApi('/api/v2/scripts/{scriptId}','GET',{'scriptId':scriptId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19574
19628
|
* Get a page
|
|
19575
19629
|
*
|
|
@@ -19691,10 +19745,10 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
19691
19745
|
* @param {Object} opts Optional parameters
|
|
19692
19746
|
* @param {String} opts.scriptDataVersion Advanced usage - controls the data version of the script
|
|
19693
19747
|
* @param {Object} opts.body body
|
|
19694
|
-
*/},{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']);}}]);
|
|
19748
|
+
*/},{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(){/**
|
|
19695
19749
|
* Search service.
|
|
19696
19750
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
19697
|
-
* @version
|
|
19751
|
+
* @version 191.0.0
|
|
19698
19752
|
*/ /**
|
|
19699
19753
|
* Constructs a new SearchApi.
|
|
19700
19754
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -19705,7 +19759,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
19705
19759
|
* Search gkn documentation using the q64 value returned from a previous search
|
|
19706
19760
|
*
|
|
19707
19761
|
* @param {String} q64 q64
|
|
19708
|
-
*/_createClass(SearchApi,[{key:"getDocumentationGknSearch",value:function getDocumentationGknSearch(q64){// verify the required parameter 'q64' is set
|
|
19762
|
+
*/return _createClass(SearchApi,[{key:"getDocumentationGknSearch",value:function getDocumentationGknSearch(q64){// verify the required parameter 'q64' is set
|
|
19709
19763
|
if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when calling getDocumentationGknSearch';}return this.apiClient.callApi('/api/v2/documentation/gkn/search','GET',{},{'q64':q64},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19710
19764
|
* Search documentation using the q64 value returned from a previous search
|
|
19711
19765
|
*
|
|
@@ -19851,10 +19905,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19851
19905
|
*
|
|
19852
19906
|
* @param {Object} body Search request options
|
|
19853
19907
|
*/},{key:"postVoicemailSearch",value:function postVoicemailSearch(body){// verify the required parameter 'body' is set
|
|
19854
|
-
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']);}}]);
|
|
19908
|
+
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(){/**
|
|
19855
19909
|
* Settings service.
|
|
19856
19910
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
19857
|
-
* @version
|
|
19911
|
+
* @version 191.0.0
|
|
19858
19912
|
*/ /**
|
|
19859
19913
|
* Constructs a new SettingsApi.
|
|
19860
19914
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -19864,7 +19918,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19864
19918
|
*/function SettingsApi(apiClient){_classCallCheck(this,SettingsApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
19865
19919
|
* Get email Contact Center settings
|
|
19866
19920
|
*
|
|
19867
|
-
*/_createClass(SettingsApi,[{key:"getEmailsSettings",value:function getEmailsSettings(){return this.apiClient.callApi('/api/v2/emails/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19921
|
+
*/return _createClass(SettingsApi,[{key:"getEmailsSettings",value:function getEmailsSettings(){return this.apiClient.callApi('/api/v2/emails/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19868
19922
|
* Get the execution history enabled setting.
|
|
19869
19923
|
* Get the execution history enabled setting.
|
|
19870
19924
|
* getSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
@@ -19879,10 +19933,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19879
19933
|
* @param {Object} body New Execution Data Setting
|
|
19880
19934
|
* patchSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
19881
19935
|
*/},{key:"patchSettingsExecutiondata",value:function patchSettingsExecutiondata(body){// verify the required parameter 'body' is set
|
|
19882
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchSettingsExecutiondata';}return this.apiClient.callApi('/api/v2/settings/executiondata','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
19936
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchSettingsExecutiondata';}return this.apiClient.callApi('/api/v2/settings/executiondata','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
19883
19937
|
* SpeechTextAnalytics service.
|
|
19884
19938
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
19885
|
-
* @version
|
|
19939
|
+
* @version 191.0.0
|
|
19886
19940
|
*/ /**
|
|
19887
19941
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
19888
19942
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -19893,7 +19947,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19893
19947
|
* Delete a Speech and Text Analytics DictionaryFeedback by Id
|
|
19894
19948
|
*
|
|
19895
19949
|
* @param {String} dictionaryFeedbackId The Id of the Dictionary Feedback
|
|
19896
|
-
*/_createClass(SpeechTextAnalyticsApi,[{key:"deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId",value:function deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(dictionaryFeedbackId){// verify the required parameter 'dictionaryFeedbackId' is set
|
|
19950
|
+
*/return _createClass(SpeechTextAnalyticsApi,[{key:"deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId",value:function deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(dictionaryFeedbackId){// verify the required parameter 'dictionaryFeedbackId' is set
|
|
19897
19951
|
if(dictionaryFeedbackId===undefined||dictionaryFeedbackId===null){throw'Missing the required parameter "dictionaryFeedbackId" when calling deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}','DELETE',{'dictionaryFeedbackId':dictionaryFeedbackId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19898
19952
|
* Delete a Speech and Text Analytics program by id
|
|
19899
19953
|
*
|
|
@@ -20123,10 +20177,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20123
20177
|
* @param {Object} body The topic to update
|
|
20124
20178
|
*/},{key:"putSpeechandtextanalyticsTopic",value:function putSpeechandtextanalyticsTopic(topicId,body){// verify the required parameter 'topicId' is set
|
|
20125
20179
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling putSpeechandtextanalyticsTopic';}// verify the required parameter 'body' is set
|
|
20126
|
-
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']);}}]);
|
|
20180
|
+
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(){/**
|
|
20127
20181
|
* Stations service.
|
|
20128
20182
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
20129
|
-
* @version
|
|
20183
|
+
* @version 191.0.0
|
|
20130
20184
|
*/ /**
|
|
20131
20185
|
* Constructs a new StationsApi.
|
|
20132
20186
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -20137,7 +20191,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20137
20191
|
* Unassigns the user assigned to this station
|
|
20138
20192
|
*
|
|
20139
20193
|
* @param {String} stationId Station ID
|
|
20140
|
-
*/_createClass(StationsApi,[{key:"deleteStationAssociateduser",value:function deleteStationAssociateduser(stationId){// verify the required parameter 'stationId' is set
|
|
20194
|
+
*/return _createClass(StationsApi,[{key:"deleteStationAssociateduser",value:function deleteStationAssociateduser(stationId){// verify the required parameter 'stationId' is set
|
|
20141
20195
|
if(stationId===undefined||stationId===null){throw'Missing the required parameter "stationId" when calling deleteStationAssociateduser';}return this.apiClient.callApi('/api/v2/stations/{stationId}/associateduser','DELETE',{'stationId':stationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20142
20196
|
* Get station.
|
|
20143
20197
|
*
|
|
@@ -20155,10 +20209,10 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
20155
20209
|
* @param {String} opts.webRtcUserId Filter for the webRtc station of the webRtcUserId
|
|
20156
20210
|
* @param {String} opts.id Comma separated list of stationIds
|
|
20157
20211
|
* @param {String} opts.lineAppearanceId lineAppearanceId
|
|
20158
|
-
*/},{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']);}}]);
|
|
20212
|
+
*/},{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(){/**
|
|
20159
20213
|
* Suggest service.
|
|
20160
20214
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
20161
|
-
* @version
|
|
20215
|
+
* @version 191.0.0
|
|
20162
20216
|
*/ /**
|
|
20163
20217
|
* Constructs a new SuggestApi.
|
|
20164
20218
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -20172,7 +20226,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
20172
20226
|
* @param {Object} opts Optional parameters
|
|
20173
20227
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
20174
20228
|
* @param {Boolean} opts.profile profile (default to true)
|
|
20175
|
-
*/_createClass(SuggestApi,[{key:"getSearch",value:function getSearch(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
|
|
20229
|
+
*/return _createClass(SuggestApi,[{key:"getSearch",value:function getSearch(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
|
|
20176
20230
|
if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when calling getSearch';}return this.apiClient.callApi('/api/v2/search','GET',{},{'q64':q64,'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'profile':opts['profile']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20177
20231
|
* Suggest resources using the q64 value returned from a previous suggest query.
|
|
20178
20232
|
*
|
|
@@ -20195,10 +20249,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20195
20249
|
* @param {Object} opts Optional parameters
|
|
20196
20250
|
* @param {Boolean} opts.profile profile (default to true)
|
|
20197
20251
|
*/},{key:"postSearchSuggest",value:function postSearchSuggest(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
20198
|
-
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']);}}]);
|
|
20252
|
+
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(){/**
|
|
20199
20253
|
* TaskManagement service.
|
|
20200
20254
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
20201
|
-
* @version
|
|
20255
|
+
* @version 191.0.0
|
|
20202
20256
|
*/ /**
|
|
20203
20257
|
* Constructs a new TaskManagementApi.
|
|
20204
20258
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -20210,7 +20264,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20210
20264
|
*
|
|
20211
20265
|
* @param {String} workbinId Workbin ID
|
|
20212
20266
|
* deleteTaskmanagementWorkbin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20213
|
-
*/_createClass(TaskManagementApi,[{key:"deleteTaskmanagementWorkbin",value:function deleteTaskmanagementWorkbin(workbinId){// verify the required parameter 'workbinId' is set
|
|
20267
|
+
*/return _createClass(TaskManagementApi,[{key:"deleteTaskmanagementWorkbin",value:function deleteTaskmanagementWorkbin(workbinId){// verify the required parameter 'workbinId' is set
|
|
20214
20268
|
if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling deleteTaskmanagementWorkbin';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}','DELETE',{'workbinId':workbinId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20215
20269
|
* Delete a workitem
|
|
20216
20270
|
*
|
|
@@ -20543,10 +20597,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20543
20597
|
* putTaskmanagementWorkitemsSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20544
20598
|
*/},{key:"putTaskmanagementWorkitemsSchema",value:function putTaskmanagementWorkitemsSchema(schemaId,body){// verify the required parameter 'schemaId' is set
|
|
20545
20599
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';}// verify the required parameter 'body' is set
|
|
20546
|
-
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']);}}]);
|
|
20600
|
+
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(){/**
|
|
20547
20601
|
* Teams service.
|
|
20548
20602
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
20549
|
-
* @version
|
|
20603
|
+
* @version 191.0.0
|
|
20550
20604
|
*/ /**
|
|
20551
20605
|
* Constructs a new TeamsApi.
|
|
20552
20606
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -20557,7 +20611,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20557
20611
|
* Delete team
|
|
20558
20612
|
*
|
|
20559
20613
|
* @param {String} teamId Team ID
|
|
20560
|
-
*/_createClass(TeamsApi,[{key:"deleteTeam",value:function deleteTeam(teamId){// verify the required parameter 'teamId' is set
|
|
20614
|
+
*/return _createClass(TeamsApi,[{key:"deleteTeam",value:function deleteTeam(teamId){// verify the required parameter 'teamId' is set
|
|
20561
20615
|
if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling deleteTeam';}return this.apiClient.callApi('/api/v2/teams/{teamId}','DELETE',{'teamId':teamId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20562
20616
|
* Delete team members
|
|
20563
20617
|
*
|
|
@@ -20622,10 +20676,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20622
20676
|
*
|
|
20623
20677
|
* @param {Object} body Search request options
|
|
20624
20678
|
*/},{key:"postTeamsSearch",value:function postTeamsSearch(body){// verify the required parameter 'body' is set
|
|
20625
|
-
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']);}}]);
|
|
20679
|
+
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(){/**
|
|
20626
20680
|
* Telephony service.
|
|
20627
20681
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
20628
|
-
* @version
|
|
20682
|
+
* @version 191.0.0
|
|
20629
20683
|
*/ /**
|
|
20630
20684
|
* Constructs a new TelephonyApi.
|
|
20631
20685
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -20635,7 +20689,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20635
20689
|
*/function TelephonyApi(apiClient){_classCallCheck(this,TelephonyApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
20636
20690
|
* Retrieve the list of AWS regions media can stream through.
|
|
20637
20691
|
*
|
|
20638
|
-
*/_createClass(TelephonyApi,[{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20692
|
+
*/return _createClass(TelephonyApi,[{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20639
20693
|
* Get a SIP message.
|
|
20640
20694
|
* Get the raw form of the SIP message
|
|
20641
20695
|
* @param {String} conversationId Conversation id
|
|
@@ -20669,10 +20723,10 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
20669
20723
|
*
|
|
20670
20724
|
* @param {Object} sIPSearchPublicRequest
|
|
20671
20725
|
*/},{key:"postTelephonySiptracesDownload",value:function postTelephonySiptracesDownload(sIPSearchPublicRequest){// verify the required parameter 'sIPSearchPublicRequest' is set
|
|
20672
|
-
if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
20726
|
+
if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
|
|
20673
20727
|
* TelephonyProvidersEdge service.
|
|
20674
20728
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
20675
|
-
* @version
|
|
20729
|
+
* @version 191.0.0
|
|
20676
20730
|
*/ /**
|
|
20677
20731
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
20678
20732
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -20683,7 +20737,7 @@ if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Miss
|
|
|
20683
20737
|
* Delete a edge.
|
|
20684
20738
|
*
|
|
20685
20739
|
* @param {String} edgeId Edge ID
|
|
20686
|
-
*/_createClass(TelephonyProvidersEdgeApi,[{key:"deleteTelephonyProvidersEdge",value:function deleteTelephonyProvidersEdge(edgeId){// verify the required parameter 'edgeId' is set
|
|
20740
|
+
*/return _createClass(TelephonyProvidersEdgeApi,[{key:"deleteTelephonyProvidersEdge",value:function deleteTelephonyProvidersEdge(edgeId){// verify the required parameter 'edgeId' is set
|
|
20687
20741
|
if(edgeId===undefined||edgeId===null){throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdge';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/{edgeId}','DELETE',{'edgeId':edgeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20688
20742
|
* Delete an edge logical interface
|
|
20689
20743
|
*
|
|
@@ -21483,10 +21537,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21483
21537
|
* @param {Object} body Trunk base settings
|
|
21484
21538
|
*/},{key:"putTelephonyProvidersEdgesTrunkbasesetting",value:function putTelephonyProvidersEdgesTrunkbasesetting(trunkBaseSettingsId,body){// verify the required parameter 'trunkBaseSettingsId' is set
|
|
21485
21539
|
if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing the required parameter "trunkBaseSettingsId" when calling putTelephonyProvidersEdgesTrunkbasesetting';}// verify the required parameter 'body' is set
|
|
21486
|
-
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']);}}]);
|
|
21540
|
+
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(){/**
|
|
21487
21541
|
* Textbots service.
|
|
21488
21542
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
21489
|
-
* @version
|
|
21543
|
+
* @version 191.0.0
|
|
21490
21544
|
*/ /**
|
|
21491
21545
|
* Constructs a new TextbotsApi.
|
|
21492
21546
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -21501,7 +21555,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21501
21555
|
* @param {String} opts.botName Bot name
|
|
21502
21556
|
* @param {Array.<String>} opts.botId Bot IDs
|
|
21503
21557
|
* @param {Number} opts.pageSize The maximum results to return (default to 25)
|
|
21504
|
-
*/_createClass(TextbotsApi,[{key:"getTextbotsBotsSearch",value:function getTextbotsBotsSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/textbots/bots/search','GET',{},{'botType':this.apiClient.buildCollectionParam(opts['botType'],'multi'),'botName':opts['botName'],'botId':this.apiClient.buildCollectionParam(opts['botId'],'multi'),'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21558
|
+
*/return _createClass(TextbotsApi,[{key:"getTextbotsBotsSearch",value:function getTextbotsBotsSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/textbots/bots/search','GET',{},{'botType':this.apiClient.buildCollectionParam(opts['botType'],'multi'),'botName':opts['botName'],'botId':this.apiClient.buildCollectionParam(opts['botId'],'multi'),'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21505
21559
|
* Issue a bot flow turn event
|
|
21506
21560
|
* Send a turn event to an executing bot flow and produce the next action to take.
|
|
21507
21561
|
* @param {String} sessionId The bot flow session ID, typically obtained from 'POST /api/v2/textbots/botflows/sessions'
|
|
@@ -21518,10 +21572,10 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
21518
21572
|
* This will either start a bot with the given id or relay a communication to an existing bot session.
|
|
21519
21573
|
* @param {Object} postTextRequest
|
|
21520
21574
|
*/},{key:"postTextbotsBotsExecute",value:function postTextbotsBotsExecute(postTextRequest){// verify the required parameter 'postTextRequest' is set
|
|
21521
|
-
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']);}}]);
|
|
21575
|
+
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(){/**
|
|
21522
21576
|
* Tokens service.
|
|
21523
21577
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
21524
|
-
* @version
|
|
21578
|
+
* @version 191.0.0
|
|
21525
21579
|
*/ /**
|
|
21526
21580
|
* Constructs a new TokensApi.
|
|
21527
21581
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -21532,7 +21586,7 @@ if(postTextRequest===undefined||postTextRequest===null){throw'Missing the requir
|
|
|
21532
21586
|
* Delete all auth tokens for the specified user.
|
|
21533
21587
|
*
|
|
21534
21588
|
* @param {String} userId User ID
|
|
21535
|
-
*/_createClass(TokensApi,[{key:"deleteToken",value:function deleteToken(userId){// verify the required parameter 'userId' is set
|
|
21589
|
+
*/return _createClass(TokensApi,[{key:"deleteToken",value:function deleteToken(userId){// verify the required parameter 'userId' is set
|
|
21536
21590
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteToken';}return this.apiClient.callApi('/api/v2/tokens/{userId}','DELETE',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21537
21591
|
* Delete auth token used to make the request.
|
|
21538
21592
|
*
|
|
@@ -21552,10 +21606,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
21552
21606
|
*
|
|
21553
21607
|
* @param {Object} opts Optional parameters
|
|
21554
21608
|
* @param {Object} opts.body
|
|
21555
|
-
*/},{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']);}}]);
|
|
21609
|
+
*/},{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(){/**
|
|
21556
21610
|
* Uploads service.
|
|
21557
21611
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
21558
|
-
* @version
|
|
21612
|
+
* @version 191.0.0
|
|
21559
21613
|
*/ /**
|
|
21560
21614
|
* Constructs a new UploadsApi.
|
|
21561
21615
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -21568,7 +21622,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
21568
21622
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
21569
21623
|
* @param {String} jobId Upload job ID
|
|
21570
21624
|
* getKnowledgeKnowledgebaseUploadsUrlsJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
21571
|
-
*/_createClass(UploadsApi,[{key:"getKnowledgeKnowledgebaseUploadsUrlsJob",value:function getKnowledgeKnowledgebaseUploadsUrlsJob(knowledgeBaseId,jobId){// verify the required parameter 'knowledgeBaseId' is set
|
|
21625
|
+
*/return _createClass(UploadsApi,[{key:"getKnowledgeKnowledgebaseUploadsUrlsJob",value:function getKnowledgeKnowledgebaseUploadsUrlsJob(knowledgeBaseId,jobId){// verify the required parameter 'knowledgeBaseId' is set
|
|
21572
21626
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';}// verify the required parameter 'jobId' is set
|
|
21573
21627
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs/{jobId}','GET',{'knowledgeBaseId':knowledgeBaseId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21574
21628
|
* Create upload presigned URL for draft function package file.
|
|
@@ -21618,10 +21672,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21618
21672
|
*
|
|
21619
21673
|
* @param {Object} body query
|
|
21620
21674
|
*/},{key:"postUploadsWorkforcemanagementHistoricaldataCsv",value:function postUploadsWorkforcemanagementHistoricaldataCsv(body){// verify the required parameter 'body' is set
|
|
21621
|
-
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']);}}]);
|
|
21675
|
+
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(){/**
|
|
21622
21676
|
* Usage service.
|
|
21623
21677
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
21624
|
-
* @version
|
|
21678
|
+
* @version 191.0.0
|
|
21625
21679
|
*/ /**
|
|
21626
21680
|
* Constructs a new UsageApi.
|
|
21627
21681
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -21633,7 +21687,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21633
21687
|
*
|
|
21634
21688
|
* @param {String} executionId ID of the query execution
|
|
21635
21689
|
* @param {String} clientId Client ID
|
|
21636
|
-
*/_createClass(UsageApi,[{key:"getOauthClientUsageQueryResult",value:function getOauthClientUsageQueryResult(executionId,clientId){// verify the required parameter 'executionId' is set
|
|
21690
|
+
*/return _createClass(UsageApi,[{key:"getOauthClientUsageQueryResult",value:function getOauthClientUsageQueryResult(executionId,clientId){// verify the required parameter 'executionId' is set
|
|
21637
21691
|
if(executionId===undefined||executionId===null){throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';}// verify the required parameter 'clientId' is set
|
|
21638
21692
|
if(clientId===undefined||clientId===null){throw'Missing the required parameter "clientId" when calling getOauthClientUsageQueryResult';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}','GET',{'executionId':executionId,'clientId':clientId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21639
21693
|
* Get a summary of OAuth client API usage
|
|
@@ -21648,7 +21702,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
21648
21702
|
* @param {String} executionId ID of the query execution
|
|
21649
21703
|
*/},{key:"getUsageQueryExecutionIdResults",value:function getUsageQueryExecutionIdResults(executionId){// verify the required parameter 'executionId' is set
|
|
21650
21704
|
if(executionId===undefined||executionId===null){throw'Missing the required parameter "executionId" when calling getUsageQueryExecutionIdResults';}return this.apiClient.callApi('/api/v2/usage/query/{executionId}/results','GET',{'executionId':executionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21651
|
-
* Get the results of a usage search
|
|
21705
|
+
* Get the results of a usage search. Number of records to be returned is limited to 20,000 results.
|
|
21652
21706
|
*
|
|
21653
21707
|
* @param {String} executionId ID of the search execution
|
|
21654
21708
|
*/},{key:"getUsageSimplesearchExecutionIdResults",value:function getUsageSimplesearchExecutionIdResults(executionId){// verify the required parameter 'executionId' is set
|
|
@@ -21665,14 +21719,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21665
21719
|
* @param {Object} body Query
|
|
21666
21720
|
*/},{key:"postUsageQuery",value:function postUsageQuery(body){// verify the required parameter 'body' is set
|
|
21667
21721
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageQuery';}return this.apiClient.callApi('/api/v2/usage/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21668
|
-
* Search organization API Usage
|
|
21669
|
-
* After calling this method, you will then need to poll for the query results based on the returned execution Id
|
|
21722
|
+
* Search organization API Usage
|
|
21723
|
+
* After calling this method, you will then need to poll for the query results based on the returned execution Id. The number of records is limited to 20,000 results
|
|
21670
21724
|
* @param {Object} body SimpleSearch
|
|
21671
21725
|
*/},{key:"postUsageSimplesearch",value:function postUsageSimplesearch(body){// verify the required parameter 'body' is set
|
|
21672
|
-
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']);}}]);
|
|
21726
|
+
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(){/**
|
|
21673
21727
|
* UserRecordings service.
|
|
21674
21728
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
21675
|
-
* @version
|
|
21729
|
+
* @version 191.0.0
|
|
21676
21730
|
*/ /**
|
|
21677
21731
|
* Constructs a new UserRecordingsApi.
|
|
21678
21732
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -21683,7 +21737,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21683
21737
|
* Delete a user recording.
|
|
21684
21738
|
*
|
|
21685
21739
|
* @param {String} recordingId User Recording ID
|
|
21686
|
-
*/_createClass(UserRecordingsApi,[{key:"deleteUserrecording",value:function deleteUserrecording(recordingId){// verify the required parameter 'recordingId' is set
|
|
21740
|
+
*/return _createClass(UserRecordingsApi,[{key:"deleteUserrecording",value:function deleteUserrecording(recordingId){// verify the required parameter 'recordingId' is set
|
|
21687
21741
|
if(recordingId===undefined||recordingId===null){throw'Missing the required parameter "recordingId" when calling deleteUserrecording';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}','DELETE',{'recordingId':recordingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21688
21742
|
* Get a user recording.
|
|
21689
21743
|
*
|
|
@@ -21718,10 +21772,10 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
21718
21772
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand.
|
|
21719
21773
|
*/},{key:"putUserrecording",value:function putUserrecording(recordingId,body,opts){opts=opts||{};// verify the required parameter 'recordingId' is set
|
|
21720
21774
|
if(recordingId===undefined||recordingId===null){throw'Missing the required parameter "recordingId" when calling putUserrecording';}// verify the required parameter 'body' is set
|
|
21721
|
-
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']);}}]);
|
|
21775
|
+
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(){/**
|
|
21722
21776
|
* Users service.
|
|
21723
21777
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
21724
|
-
* @version
|
|
21778
|
+
* @version 191.0.0
|
|
21725
21779
|
*/ /**
|
|
21726
21780
|
* Constructs a new UsersApi.
|
|
21727
21781
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -21732,7 +21786,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21732
21786
|
* Delete/cancel an async request
|
|
21733
21787
|
*
|
|
21734
21788
|
* @param {String} jobId jobId
|
|
21735
|
-
*/_createClass(UsersApi,[{key:"deleteAnalyticsUsersDetailsJob",value:function deleteAnalyticsUsersDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
21789
|
+
*/return _createClass(UsersApi,[{key:"deleteAnalyticsUsersDetailsJob",value:function deleteAnalyticsUsersDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
21736
21790
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/users/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21737
21791
|
* Delete a grant of a role in a division
|
|
21738
21792
|
*
|
|
@@ -22377,10 +22431,10 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
22377
22431
|
*/},{key:"putUserVerifier",value:function putUserVerifier(userId,verifierId,body){// verify the required parameter 'userId' is set
|
|
22378
22432
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putUserVerifier';}// verify the required parameter 'verifierId' is set
|
|
22379
22433
|
if(verifierId===undefined||verifierId===null){throw'Missing the required parameter "verifierId" when calling putUserVerifier';}// verify the required parameter 'body' is set
|
|
22380
|
-
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']);}}]);
|
|
22434
|
+
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(){/**
|
|
22381
22435
|
* Utilities service.
|
|
22382
22436
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
22383
|
-
* @version
|
|
22437
|
+
* @version 191.0.0
|
|
22384
22438
|
*/ /**
|
|
22385
22439
|
* Constructs a new UtilitiesApi.
|
|
22386
22440
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -22390,7 +22444,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22390
22444
|
*/function UtilitiesApi(apiClient){_classCallCheck(this,UtilitiesApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
22391
22445
|
* Get the current system date/time
|
|
22392
22446
|
*
|
|
22393
|
-
*/_createClass(UtilitiesApi,[{key:"getDate",value:function getDate(){return this.apiClient.callApi('/api/v2/date','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22447
|
+
*/return _createClass(UtilitiesApi,[{key:"getDate",value:function getDate(){return this.apiClient.callApi('/api/v2/date','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22394
22448
|
* Get public ip address ranges for Genesys Cloud
|
|
22395
22449
|
*
|
|
22396
22450
|
*/},{key:"getIpranges",value:function getIpranges(){return this.apiClient.callApi('/api/v2/ipranges','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -22404,10 +22458,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22404
22458
|
*
|
|
22405
22459
|
* @param {Object} body Certificate
|
|
22406
22460
|
*/},{key:"postCertificateDetails",value:function postCertificateDetails(body){// verify the required parameter 'body' is set
|
|
22407
|
-
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']);}}]);
|
|
22461
|
+
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(){/**
|
|
22408
22462
|
* Voicemail service.
|
|
22409
22463
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
22410
|
-
* @version
|
|
22464
|
+
* @version 191.0.0
|
|
22411
22465
|
*/ /**
|
|
22412
22466
|
* Constructs a new VoicemailApi.
|
|
22413
22467
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -22418,7 +22472,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22418
22472
|
* Delete a voicemail message.
|
|
22419
22473
|
* A user voicemail can only be deleted by its associated user. A group voicemail can only be deleted by a user that is a member of the group. A queue voicemail can only be deleted by a user with the acd voicemail delete permission.
|
|
22420
22474
|
* @param {String} messageId Message ID
|
|
22421
|
-
*/_createClass(VoicemailApi,[{key:"deleteVoicemailMessage",value:function deleteVoicemailMessage(messageId){// verify the required parameter 'messageId' is set
|
|
22475
|
+
*/return _createClass(VoicemailApi,[{key:"deleteVoicemailMessage",value:function deleteVoicemailMessage(messageId){// verify the required parameter 'messageId' is set
|
|
22422
22476
|
if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling deleteVoicemailMessage';}return this.apiClient.callApi('/api/v2/voicemail/messages/{messageId}','DELETE',{'messageId':messageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22423
22477
|
* Delete all voicemail messages
|
|
22424
22478
|
*
|
|
@@ -22553,10 +22607,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22553
22607
|
* @param {Object} body The user's voicemail policy
|
|
22554
22608
|
*/},{key:"putVoicemailUserpolicy",value:function putVoicemailUserpolicy(userId,body){// verify the required parameter 'userId' is set
|
|
22555
22609
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putVoicemailUserpolicy';}// verify the required parameter 'body' is set
|
|
22556
|
-
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']);}}]);
|
|
22610
|
+
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(){/**
|
|
22557
22611
|
* WebChat service.
|
|
22558
22612
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
22559
|
-
* @version
|
|
22613
|
+
* @version 191.0.0
|
|
22560
22614
|
*/ /**
|
|
22561
22615
|
* Constructs a new WebChatApi.
|
|
22562
22616
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -22568,7 +22622,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22568
22622
|
*
|
|
22569
22623
|
* @param {String} deploymentId Deployment Id
|
|
22570
22624
|
* @deprecated
|
|
22571
|
-
*/_createClass(WebChatApi,[{key:"deleteWebchatDeployment",value:function deleteWebchatDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
22625
|
+
*/return _createClass(WebChatApi,[{key:"deleteWebchatDeployment",value:function deleteWebchatDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
22572
22626
|
if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';}return this.apiClient.callApi('/api/v2/webchat/deployments/{deploymentId}','DELETE',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22573
22627
|
* Remove a member from a chat conversation
|
|
22574
22628
|
*
|
|
@@ -22686,10 +22740,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22686
22740
|
*
|
|
22687
22741
|
* @param {Object} body webChatSettings
|
|
22688
22742
|
*/},{key:"putWebchatSettings",value:function putWebchatSettings(body){// verify the required parameter 'body' is set
|
|
22689
|
-
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']);}}]);
|
|
22743
|
+
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(){/**
|
|
22690
22744
|
* WebDeployments service.
|
|
22691
22745
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
22692
|
-
* @version
|
|
22746
|
+
* @version 191.0.0
|
|
22693
22747
|
*/ /**
|
|
22694
22748
|
* Constructs a new WebDeploymentsApi.
|
|
22695
22749
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -22700,7 +22754,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22700
22754
|
* Delete all versions of a configuration
|
|
22701
22755
|
*
|
|
22702
22756
|
* @param {String} configurationId The configuration version ID
|
|
22703
|
-
*/_createClass(WebDeploymentsApi,[{key:"deleteWebdeploymentsConfiguration",value:function deleteWebdeploymentsConfiguration(configurationId){// verify the required parameter 'configurationId' is set
|
|
22757
|
+
*/return _createClass(WebDeploymentsApi,[{key:"deleteWebdeploymentsConfiguration",value:function deleteWebdeploymentsConfiguration(configurationId){// verify the required parameter 'configurationId' is set
|
|
22704
22758
|
if(configurationId===undefined||configurationId===null){throw'Missing the required parameter "configurationId" when calling deleteWebdeploymentsConfiguration';}return this.apiClient.callApi('/api/v2/webdeployments/configurations/{configurationId}','DELETE',{'configurationId':configurationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22705
22759
|
* Delete a deployment
|
|
22706
22760
|
*
|
|
@@ -22807,10 +22861,10 @@ if(configurationVersion===undefined||configurationVersion===null){throw'Missing
|
|
|
22807
22861
|
* @param {Object} deployment
|
|
22808
22862
|
*/},{key:"putWebdeploymentsDeployment",value:function putWebdeploymentsDeployment(deploymentId,deployment){// verify the required parameter 'deploymentId' is set
|
|
22809
22863
|
if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeployment';}// verify the required parameter 'deployment' is set
|
|
22810
|
-
if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
22864
|
+
if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
|
|
22811
22865
|
* WebMessaging service.
|
|
22812
22866
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
22813
|
-
* @version
|
|
22867
|
+
* @version 191.0.0
|
|
22814
22868
|
*/ /**
|
|
22815
22869
|
* Constructs a new WebMessagingApi.
|
|
22816
22870
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -22823,10 +22877,10 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
22823
22877
|
* @param {Object} opts Optional parameters
|
|
22824
22878
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
22825
22879
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
22826
|
-
*/_createClass(WebMessagingApi,[{key:"getWebmessagingMessages",value:function getWebmessagingMessages(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webmessaging/messages','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
22880
|
+
*/return _createClass(WebMessagingApi,[{key:"getWebmessagingMessages",value:function getWebmessagingMessages(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webmessaging/messages','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
22827
22881
|
* Widgets service.
|
|
22828
22882
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
22829
|
-
* @version
|
|
22883
|
+
* @version 191.0.0
|
|
22830
22884
|
*/ /**
|
|
22831
22885
|
* Constructs a new WidgetsApi.
|
|
22832
22886
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -22837,7 +22891,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
22837
22891
|
* Delete a Widget deployment
|
|
22838
22892
|
*
|
|
22839
22893
|
* @param {String} deploymentId Widget Config Id
|
|
22840
|
-
*/_createClass(WidgetsApi,[{key:"deleteWidgetsDeployment",value:function deleteWidgetsDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
22894
|
+
*/return _createClass(WidgetsApi,[{key:"deleteWidgetsDeployment",value:function deleteWidgetsDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
22841
22895
|
if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','DELETE',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22842
22896
|
* Get a Widget deployment
|
|
22843
22897
|
*
|
|
@@ -22858,10 +22912,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22858
22912
|
* @param {Object} body Deployment
|
|
22859
22913
|
*/},{key:"putWidgetsDeployment",value:function putWidgetsDeployment(deploymentId,body){// verify the required parameter 'deploymentId' is set
|
|
22860
22914
|
if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling putWidgetsDeployment';}// verify the required parameter 'body' is set
|
|
22861
|
-
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']);}}]);
|
|
22915
|
+
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(){/**
|
|
22862
22916
|
* WorkforceManagement service.
|
|
22863
22917
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
22864
|
-
* @version
|
|
22918
|
+
* @version 191.0.0
|
|
22865
22919
|
*/ /**
|
|
22866
22920
|
* Constructs a new WorkforceManagementApi.
|
|
22867
22921
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -22872,7 +22926,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22872
22926
|
* Delete business unit
|
|
22873
22927
|
* A business unit cannot be deleted if it contains one or more management units
|
|
22874
22928
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
22875
|
-
*/_createClass(WorkforceManagementApi,[{key:"deleteWorkforcemanagementBusinessunit",value:function deleteWorkforcemanagementBusinessunit(businessUnitId){// verify the required parameter 'businessUnitId' is set
|
|
22929
|
+
*/return _createClass(WorkforceManagementApi,[{key:"deleteWorkforcemanagementBusinessunit",value:function deleteWorkforcemanagementBusinessunit(businessUnitId){// verify the required parameter 'businessUnitId' is set
|
|
22876
22930
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','DELETE',{'businessUnitId':businessUnitId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22877
22931
|
* Deletes an activity code
|
|
22878
22932
|
*
|
|
@@ -24310,7 +24364,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
24310
24364
|
* @param {Object} opts.body body
|
|
24311
24365
|
*/},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
24312
24366
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
|
|
24313
|
-
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
24367
|
+
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();/**
|
|
24314
24368
|
* A JavaScript library to interface with the PureCloud Platform API.<br>
|
|
24315
24369
|
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
|
|
24316
24370
|
* <p>
|
|
@@ -24339,7 +24393,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
24339
24393
|
* </pre>
|
|
24340
24394
|
* </p>
|
|
24341
24395
|
* @module purecloud-platform-client-v2/index
|
|
24342
|
-
* @version
|
|
24396
|
+
* @version 191.0.0
|
|
24343
24397
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
24344
24398
|
* The ApiClient constructor.
|
|
24345
24399
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|