purecloud-platform-client-v2 192.2.0 → 193.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 +188 -467
- package/dist/web-amd/purecloud-platform-client-v2.js +188 -467
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +193 -278
- package/dist/web-cjs/purecloud-platform-client-v2.js +193 -278
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +583 -602
- 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 +40 -346
- 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 +48 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -2
- 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 -2
- 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 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +21 -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 +3 -3
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -2
- 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 -38
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -2
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -2
- 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 +5 -3
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/dist/web-cjs/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'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',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.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)
|
|
1
|
+
'use strict';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 _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 _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 _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}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 _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 _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);}function _wrapAsyncGenerator(fn){return function(){return new _AsyncGenerator(fn.apply(this,arguments));};}function _AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}_AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},_AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},_AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},_AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(t,e){this.v=t,this.k=e;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}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',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.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)
|
|
2
2
|
// if there are two placeholders, than the two characters before it
|
|
3
3
|
// represent one byte
|
|
4
4
|
// if there is only one, then the three characters before it represent 2 bytes
|
|
@@ -260,7 +260,7 @@ kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormDat
|
|
|
260
260
|
* @param {*} val The value to test
|
|
261
261
|
*
|
|
262
262
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
263
|
-
*/var isURLSearchParams=kindOfTest('URLSearchParams');/**
|
|
263
|
+
*/var isURLSearchParams=kindOfTest('URLSearchParams');var _map=['ReadableStream','Request','Response','Headers'].map(kindOfTest),_map2=_slicedToArray(_map,4),isReadableStream=_map2[0],isRequest=_map2[1],isResponse=_map2[2],isHeaders=_map2[3];/**
|
|
264
264
|
* Trim excess whitespace off the beginning and end of a string
|
|
265
265
|
*
|
|
266
266
|
* @param {String} str The String to trim
|
|
@@ -280,7 +280,7 @@ kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormDat
|
|
|
280
280
|
*
|
|
281
281
|
* @param {Boolean} [allOwnKeys = false]
|
|
282
282
|
* @returns {any}
|
|
283
|
-
*/function forEach(obj,fn){var
|
|
283
|
+
*/function forEach(obj,fn){var _ref2=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref2$allOwnKeys=_ref2.allOwnKeys,allOwnKeys=_ref2$allOwnKeys===void 0?false:_ref2$allOwnKeys;// Don't bother if no value provided
|
|
284
284
|
if(obj===null||typeof obj==='undefined'){return;}var i;var l;// Force an array if not already something iterable
|
|
285
285
|
if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray(obj)){// Iterate over array values
|
|
286
286
|
for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Iterate over object keys
|
|
@@ -301,7 +301,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
301
301
|
* @param {Object} obj1 Object to merge
|
|
302
302
|
*
|
|
303
303
|
* @returns {Object} Result of all merge properties
|
|
304
|
-
*/function merge(/* obj1, obj2, obj3, ... */){var
|
|
304
|
+
*/function merge(/* obj1, obj2, obj3, ... */){var _ref3=isContextDefined(this)&&this||{},caseless=_ref3.caseless;var result={};var assignValue=function assignValue(val,key){var targetKey=caseless&&findKey(result,key)||key;if(isPlainObject(result[targetKey])&&isPlainObject(val)){result[targetKey]=merge(result[targetKey],val);}else if(isPlainObject(val)){result[targetKey]=merge({},val);}else if(isArray(val)){result[targetKey]=val.slice();}else{result[targetKey]=val;}};for(var i=0,l=arguments.length;i<l;i++){arguments[i]&&forEach(arguments[i],assignValue);}return result;}/**
|
|
305
305
|
* Extends object a by mutably adding to it the properties of object b.
|
|
306
306
|
*
|
|
307
307
|
* @param {Object} a The object to be extended
|
|
@@ -310,7 +310,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
310
310
|
*
|
|
311
311
|
* @param {Boolean} [allOwnKeys]
|
|
312
312
|
* @returns {Object} The resulting value of object a
|
|
313
|
-
*/var extend=function extend(a,b,thisArg){var
|
|
313
|
+
*/var extend=function extend(a,b,thisArg){var _ref4=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{},allOwnKeys=_ref4.allOwnKeys;forEach(b,function(val,key){if(thisArg&&isFunction(val)){a[key]=bind(val,thisArg);}else{a[key]=val;}},{allOwnKeys:allOwnKeys});return a;};/**
|
|
314
314
|
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
315
315
|
*
|
|
316
316
|
* @param {string} content with BOM
|
|
@@ -370,7 +370,7 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
370
370
|
* @param {string} str - The string to search.
|
|
371
371
|
*
|
|
372
372
|
* @returns {Array<boolean>}
|
|
373
|
-
*/var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest('HTMLFormElement');var toCamelCase=function toCamelCase(str){return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(m,p1,p2){return p1.toUpperCase()+p2;});};/* Creating a function that will check if an object has a property. */var hasOwnProperty=function(
|
|
373
|
+
*/var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest('HTMLFormElement');var toCamelCase=function toCamelCase(str){return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(m,p1,p2){return p1.toUpperCase()+p2;});};/* Creating a function that will check if an object has a property. */var hasOwnProperty=function(_ref5){var hasOwnProperty=_ref5.hasOwnProperty;return function(obj,prop){return hasOwnProperty.call(obj,prop);};}(Object.prototype);/**
|
|
374
374
|
* Determine if a value is a RegExp object
|
|
375
375
|
*
|
|
376
376
|
* @param {*} val The value to test
|
|
@@ -380,13 +380,13 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
380
380
|
* Makes all methods read-only
|
|
381
381
|
* @param {Object} obj
|
|
382
382
|
*/var freezeMethods=function freezeMethods(obj){reduceDescriptors(obj,function(descriptor,name){// skip restricted props in strict mode
|
|
383
|
-
if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return false;}var value=obj[name];if(!isFunction(value))return;descriptor.enumerable=false;if('writable'in descriptor){descriptor.writable=false;return;}if(!descriptor.set){descriptor.set=function(){throw Error('Can not rewrite read-only method \''+name+'\'');};}});};var toObjectSet=function toObjectSet(arrayOrString,delimiter){var obj={};var define=function define(arr){arr.forEach(function(value){obj[value]=true;});};isArray(arrayOrString)?define(arrayOrString):define(String(arrayOrString).split(delimiter));return obj;};var noop=function noop(){};var toFiniteNumber=function toFiniteNumber(value,defaultValue){
|
|
383
|
+
if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return false;}var value=obj[name];if(!isFunction(value))return;descriptor.enumerable=false;if('writable'in descriptor){descriptor.writable=false;return;}if(!descriptor.set){descriptor.set=function(){throw Error('Can not rewrite read-only method \''+name+'\'');};}});};var toObjectSet=function toObjectSet(arrayOrString,delimiter){var obj={};var define=function define(arr){arr.forEach(function(value){obj[value]=true;});};isArray(arrayOrString)?define(arrayOrString):define(String(arrayOrString).split(delimiter));return obj;};var noop=function noop(){};var toFiniteNumber=function toFiniteNumber(value,defaultValue){return value!=null&&Number.isFinite(value=+value)?value:defaultValue;};var ALPHA='abcdefghijklmnopqrstuvwxyz';var DIGIT='0123456789';var ALPHABET={DIGIT:DIGIT,ALPHA:ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT};var generateString=function generateString(){var size=arguments.length>0&&arguments[0]!==undefined?arguments[0]:16;var alphabet=arguments.length>1&&arguments[1]!==undefined?arguments[1]:ALPHABET.ALPHA_DIGIT;var str='';var length=alphabet.length;while(size--){str+=alphabet[Math.random()*length|0];}return str;};/**
|
|
384
384
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
385
385
|
*
|
|
386
386
|
* @param {unknown} thing - The thing to check.
|
|
387
387
|
*
|
|
388
388
|
* @returns {boolean}
|
|
389
|
-
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[Symbol.toStringTag]==='FormData'&&thing[Symbol.iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}if(!('toJSON'in source)){stack[i]=source;var target=isArray(source)?[]:{};forEach(source,function(value,key){var reducedValue=visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};var utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
|
|
389
|
+
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[Symbol.toStringTag]==='FormData'&&thing[Symbol.iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}if(!('toJSON'in source)){stack[i]=source;var target=isArray(source)?[]:{};forEach(source,function(value,key){var reducedValue=visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};var utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
|
|
390
390
|
reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,ALPHABET:ALPHABET,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable};/**
|
|
391
391
|
* Create an Error with the specified message, config, error code, request and response.
|
|
392
392
|
*
|
|
@@ -548,7 +548,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
548
548
|
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
549
549
|
* This leads to a problem when axios post `FormData` in webWorker
|
|
550
550
|
*/var hasStandardBrowserWebWorkerEnv=function(){return typeof WorkerGlobalScope!=='undefined'&&// eslint-disable-next-line no-undef
|
|
551
|
-
self instanceof WorkerGlobalScope&&typeof self.importScripts==='function';}();var utils=/*#__PURE__*/Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv:hasStandardBrowserEnv});var platform=_objectSpread(_objectSpread({},utils),platform$1);function toURLEncodedForm(data,options){return toFormData(data,new platform.classes.URLSearchParams(),Object.assign({visitor:function visitor(value,key,path,helpers){if(platform.isNode&&utils$1.isBuffer(value)){this.append(key,value.toString('base64'));return false;}return helpers.defaultVisitor.apply(this,arguments);}},options));}/**
|
|
551
|
+
self instanceof WorkerGlobalScope&&typeof self.importScripts==='function';}();var origin=hasBrowserEnv&&window.location.href||'http://localhost';var utils=/*#__PURE__*/Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,origin:origin});var platform=_objectSpread(_objectSpread({},utils),platform$1);function toURLEncodedForm(data,options){return toFormData(data,new platform.classes.URLSearchParams(),Object.assign({visitor:function visitor(value,key,path,helpers){if(platform.isNode&&utils$1.isBuffer(value)){this.append(key,value.toString('base64'));return false;}return helpers.defaultVisitor.apply(this,arguments);}},options));}/**
|
|
552
552
|
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
|
553
553
|
*
|
|
554
554
|
* @param {string} name - The name of the property to get.
|
|
@@ -579,7 +579,7 @@ return utils$1.matchAll(/\w+|\[(\w*)]/g,name).map(function(match){return match[0
|
|
|
579
579
|
* @param {Function} encoder - A function that takes a value and returns a string.
|
|
580
580
|
*
|
|
581
581
|
* @returns {string} A stringified version of the rawValue.
|
|
582
|
-
*/function stringifySafely(rawValue,parser,encoder){if(utils$1.isString(rawValue)){try{(parser||JSON.parse)(rawValue);return utils$1.trim(rawValue);}catch(e){if(e.name!=='SyntaxError'){throw e;}}}return(encoder||JSON.stringify)(rawValue);}var defaults={transitional:transitionalDefaults,adapter:['xhr','http'],transformRequest:[function transformRequest(data,headers){var contentType=headers.getContentType()||'';var hasJSONContentType=contentType.indexOf('application/json')>-1;var isObjectPayload=utils$1.isObject(data);if(isObjectPayload&&utils$1.isHTMLForm(data)){data=new FormData(data);}var isFormData=utils$1.isFormData(data);if(isFormData){return hasJSONContentType?JSON.stringify(formDataToJSON(data)):data;}if(utils$1.isArrayBuffer(data)||utils$1.isBuffer(data)||utils$1.isStream(data)||utils$1.isFile(data)||utils$1.isBlob(data)){return data;}if(utils$1.isArrayBufferView(data)){return data.buffer;}if(utils$1.isURLSearchParams(data)){headers.setContentType('application/x-www-form-urlencoded;charset=utf-8',false);return data.toString();}var isFileList;if(isObjectPayload){if(contentType.indexOf('application/x-www-form-urlencoded')>-1){return toURLEncodedForm(data,this.formSerializer).toString();}if((isFileList=utils$1.isFileList(data))||contentType.indexOf('multipart/form-data')>-1){var _FormData=this.env&&this.env.FormData;return toFormData(isFileList?{'files[]':data}:data,_FormData&&new _FormData(),this.formSerializer);}}if(isObjectPayload||hasJSONContentType){headers.setContentType('application/json',false);return stringifySafely(data);}return data;}],transformResponse:[function transformResponse(data){var transitional=this.transitional||defaults.transitional;var forcedJSONParsing=transitional&&transitional.forcedJSONParsing;var JSONRequested=this.responseType==='json';if(data&&utils$1.isString(data)&&(forcedJSONParsing&&!this.responseType||JSONRequested)){var silentJSONParsing=transitional&&transitional.silentJSONParsing;var strictJSONParsing=!silentJSONParsing&&JSONRequested;try{return JSON.parse(data);}catch(e){if(strictJSONParsing){if(e.name==='SyntaxError'){throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);}throw e;}}}return data;}],/**
|
|
582
|
+
*/function stringifySafely(rawValue,parser,encoder){if(utils$1.isString(rawValue)){try{(parser||JSON.parse)(rawValue);return utils$1.trim(rawValue);}catch(e){if(e.name!=='SyntaxError'){throw e;}}}return(encoder||JSON.stringify)(rawValue);}var defaults={transitional:transitionalDefaults,adapter:['xhr','http','fetch'],transformRequest:[function transformRequest(data,headers){var contentType=headers.getContentType()||'';var hasJSONContentType=contentType.indexOf('application/json')>-1;var isObjectPayload=utils$1.isObject(data);if(isObjectPayload&&utils$1.isHTMLForm(data)){data=new FormData(data);}var isFormData=utils$1.isFormData(data);if(isFormData){return hasJSONContentType?JSON.stringify(formDataToJSON(data)):data;}if(utils$1.isArrayBuffer(data)||utils$1.isBuffer(data)||utils$1.isStream(data)||utils$1.isFile(data)||utils$1.isBlob(data)||utils$1.isReadableStream(data)){return data;}if(utils$1.isArrayBufferView(data)){return data.buffer;}if(utils$1.isURLSearchParams(data)){headers.setContentType('application/x-www-form-urlencoded;charset=utf-8',false);return data.toString();}var isFileList;if(isObjectPayload){if(contentType.indexOf('application/x-www-form-urlencoded')>-1){return toURLEncodedForm(data,this.formSerializer).toString();}if((isFileList=utils$1.isFileList(data))||contentType.indexOf('multipart/form-data')>-1){var _FormData=this.env&&this.env.FormData;return toFormData(isFileList?{'files[]':data}:data,_FormData&&new _FormData(),this.formSerializer);}}if(isObjectPayload||hasJSONContentType){headers.setContentType('application/json',false);return stringifySafely(data);}return data;}],transformResponse:[function transformResponse(data){var transitional=this.transitional||defaults.transitional;var forcedJSONParsing=transitional&&transitional.forcedJSONParsing;var JSONRequested=this.responseType==='json';if(utils$1.isResponse(data)||utils$1.isReadableStream(data)){return data;}if(data&&utils$1.isString(data)&&(forcedJSONParsing&&!this.responseType||JSONRequested)){var silentJSONParsing=transitional&&transitional.silentJSONParsing;var strictJSONParsing=!silentJSONParsing&&JSONRequested;try{return JSON.parse(data);}catch(e){if(strictJSONParsing){if(e.name==='SyntaxError'){throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);}throw e;}}}return data;}],/**
|
|
583
583
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
584
584
|
* timeout is not created.
|
|
585
585
|
*/timeout:0,xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function validateStatus(status){return status>=200&&status<300;},headers:{common:{'Accept':'application/json, text/plain, */*','Content-Type':undefined}}};utils$1.forEach(['delete','get','head','post','put','patch'],function(method){defaults.headers[method]={};});var defaults$1=defaults;// RawAxiosHeaders whose duplicates are ignored by node
|
|
@@ -597,8 +597,8 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
|
|
|
597
597
|
* @param {String} rawHeaders Headers needing to be parsed
|
|
598
598
|
*
|
|
599
599
|
* @returns {Object} Headers parsed into an object
|
|
600
|
-
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(
|
|
601
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(
|
|
600
|
+
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isHeaders(header)){var _iterator2=_createForOfIteratorHelper(header.entries()),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),key=_step2$value[0],value=_step2$value[1];setHeader(value,key,rewrite);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref6){var _ref7=_slicedToArray(_ref6,2),header=_ref7[0],value=_ref7[1];return header+': '+value;}).join('\n');}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
|
|
601
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref8,key){var value=_ref8.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
|
|
602
602
|
return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
|
|
603
603
|
* Transform the data for a request or a response
|
|
604
604
|
*
|
|
@@ -623,7 +623,32 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
|
|
|
623
623
|
* @param {object} response The response.
|
|
624
624
|
*
|
|
625
625
|
* @returns {object} The response.
|
|
626
|
-
*/function settle(resolve,reject,response){var validateStatus=response.config.validateStatus;if(!response.status||!validateStatus||validateStatus(response.status)){resolve(response);}else{reject(new AxiosError('Request failed with status code '+response.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status/100)-4],response.config,response.request,response));}}var
|
|
626
|
+
*/function settle(resolve,reject,response){var validateStatus=response.config.validateStatus;if(!response.status||!validateStatus||validateStatus(response.status)){resolve(response);}else{reject(new AxiosError('Request failed with status code '+response.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status/100)-4],response.config,response.request,response));}}function parseProtocol(url){var match=/^([-+\w]{1,25})(:?\/\/|:)/.exec(url);return match&&match[1]||'';}/**
|
|
627
|
+
* Calculate data maxRate
|
|
628
|
+
* @param {Number} [samplesCount= 10]
|
|
629
|
+
* @param {Number} [min= 1000]
|
|
630
|
+
* @returns {Function}
|
|
631
|
+
*/function speedometer(samplesCount,min){samplesCount=samplesCount||10;var bytes=new Array(samplesCount);var timestamps=new Array(samplesCount);var head=0;var tail=0;var firstSampleTS;min=min!==undefined?min:1000;return function push(chunkLength){var now=Date.now();var startedAt=timestamps[tail];if(!firstSampleTS){firstSampleTS=now;}bytes[head]=chunkLength;timestamps[head]=now;var i=tail;var bytesCount=0;while(i!==head){bytesCount+=bytes[i++];i=i%samplesCount;}head=(head+1)%samplesCount;if(head===tail){tail=(tail+1)%samplesCount;}if(now-firstSampleTS<min){return;}var passed=startedAt&&now-startedAt;return passed?Math.round(bytesCount*1000/passed):undefined;};}/**
|
|
632
|
+
* Throttle decorator
|
|
633
|
+
* @param {Function} fn
|
|
634
|
+
* @param {Number} freq
|
|
635
|
+
* @return {Function}
|
|
636
|
+
*/function throttle(fn,freq){var timestamp=0;var threshold=1000/freq;var timer=null;return function throttled(){var _arguments=arguments;var force=this===true;var now=Date.now();if(force||now-timestamp>threshold){if(timer){clearTimeout(timer);timer=null;}timestamp=now;return fn.apply(null,arguments);}if(!timer){timer=setTimeout(function(){timer=null;timestamp=Date.now();return fn.apply(null,_arguments);},threshold-(now-timestamp));}};}var progressEventReducer=function progressEventReducer(listener,isDownloadStream){var freq=arguments.length>2&&arguments[2]!==undefined?arguments[2]:3;var bytesNotified=0;var _speedometer=speedometer(50,250);return throttle(function(e){var loaded=e.loaded;var total=e.lengthComputable?e.total:undefined;var progressBytes=loaded-bytesNotified;var rate=_speedometer(progressBytes);var inRange=loaded<=total;bytesNotified=loaded;var data={loaded:loaded,total:total,progress:total?loaded/total:undefined,bytes:progressBytes,rate:rate?rate:undefined,estimated:rate&&total&&inRange?(total-loaded)/rate:undefined,event:e,lengthComputable:total!=null};data[isDownloadStream?'download':'upload']=true;listener(data);},freq);};var isURLSameOrigin=platform.hasStandardBrowserEnv?// Standard browser envs have full support of the APIs needed to test
|
|
637
|
+
// whether the request URL is of the same origin as current location.
|
|
638
|
+
function standardBrowserEnv(){var msie=/(msie|trident)/i.test(navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;/**
|
|
639
|
+
* Parse a URL to discover its components
|
|
640
|
+
*
|
|
641
|
+
* @param {String} url The URL to be parsed
|
|
642
|
+
* @returns {Object}
|
|
643
|
+
*/function resolveURL(url){var href=url;if(msie){// IE needs attribute set twice to normalize properties
|
|
644
|
+
urlParsingNode.setAttribute('href',href);href=urlParsingNode.href;}urlParsingNode.setAttribute('href',href);// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
|
645
|
+
return{href:urlParsingNode.href,protocol:urlParsingNode.protocol?urlParsingNode.protocol.replace(/:$/,''):'',host:urlParsingNode.host,search:urlParsingNode.search?urlParsingNode.search.replace(/^\?/,''):'',hash:urlParsingNode.hash?urlParsingNode.hash.replace(/^#/,''):'',hostname:urlParsingNode.hostname,port:urlParsingNode.port,pathname:urlParsingNode.pathname.charAt(0)==='/'?urlParsingNode.pathname:'/'+urlParsingNode.pathname};}originURL=resolveURL(window.location.href);/**
|
|
646
|
+
* Determine if a URL shares the same origin as the current location
|
|
647
|
+
*
|
|
648
|
+
* @param {String} requestURL The URL to test
|
|
649
|
+
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
650
|
+
*/return function isURLSameOrigin(requestURL){var parsed=utils$1.isString(requestURL)?resolveURL(requestURL):requestURL;return parsed.protocol===originURL.protocol&&parsed.host===originURL.host;};}():// Non standard browser envs (web workers, react-native) lack needed support.
|
|
651
|
+
function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true;};}();var cookies=platform.hasStandardBrowserEnv?// Standard browser envs support document.cookie
|
|
627
652
|
{write:function write(name,value,expires,path,domain,secure){var cookie=[name+'='+encodeURIComponent(value)];utils$1.isNumber(expires)&&cookie.push('expires='+new Date(expires).toGMTString());utils$1.isString(path)&&cookie.push('path='+path);utils$1.isString(domain)&&cookie.push('domain='+domain);secure===true&&cookie.push('secure');document.cookie=cookie.join('; ');},read:function read(name){var match=document.cookie.match(new RegExp('(^|;\\s*)('+name+')=([^;]*)'));return match?decodeURIComponent(match[3]):null;},remove:function remove(name){this.write(name,'',Date.now()-86400000);}}:// Non-standard browser env (web workers, react-native) lack needed support.
|
|
628
653
|
{write:function write(){},read:function read(){return null;},remove:function remove(){}};/**
|
|
629
654
|
* Determines whether the specified URL is absolute
|
|
@@ -650,31 +675,28 @@ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);}/**
|
|
|
650
675
|
* @param {string} requestedURL Absolute or relative URL to combine
|
|
651
676
|
*
|
|
652
677
|
* @returns {string} The combined full path
|
|
653
|
-
*/function buildFullPath(baseURL,requestedURL){if(baseURL&&!isAbsoluteURL(requestedURL)){return combineURLs(baseURL,requestedURL);}return requestedURL;}var
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
var _ref8=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref9=_toArray(_ref8),type=_ref9[0],tokens=_ref9.slice(1);requestHeaders.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}var request=new XMLHttpRequest();// HTTP basic authentication
|
|
676
|
-
if(config.auth){var username=config.auth.username||'';var password=config.auth.password?unescape(encodeURIComponent(config.auth.password)):'';requestHeaders.set('Authorization','Basic '+btoa(username+':'+password));}var fullPath=buildFullPath(config.baseURL,config.url);request.open(config.method.toUpperCase(),buildURL(fullPath,config.params,config.paramsSerializer),true);// Set the request timeout in MS
|
|
677
|
-
request.timeout=config.timeout;function onloadend(){if(!request){return;}// Prepare the response
|
|
678
|
+
*/function buildFullPath(baseURL,requestedURL){if(baseURL&&!isAbsoluteURL(requestedURL)){return combineURLs(baseURL,requestedURL);}return requestedURL;}var headersToObject=function headersToObject(thing){return thing instanceof AxiosHeaders$1?_objectSpread({},thing):thing;};/**
|
|
679
|
+
* Config-specific merge-function which creates a new config-object
|
|
680
|
+
* by merging two configuration objects together.
|
|
681
|
+
*
|
|
682
|
+
* @param {Object} config1
|
|
683
|
+
* @param {Object} config2
|
|
684
|
+
*
|
|
685
|
+
* @returns {Object} New object resulting from merging config2 to config1
|
|
686
|
+
*/function mergeConfig(config1,config2){// eslint-disable-next-line no-param-reassign
|
|
687
|
+
config2=config2||{};var config={};function getMergedValue(target,source,caseless){if(utils$1.isPlainObject(target)&&utils$1.isPlainObject(source)){return utils$1.merge.call({caseless:caseless},target,source);}else if(utils$1.isPlainObject(source)){return utils$1.merge({},source);}else if(utils$1.isArray(source)){return source.slice();}return source;}// eslint-disable-next-line consistent-return
|
|
688
|
+
function mergeDeepProperties(a,b,caseless){if(!utils$1.isUndefined(b)){return getMergedValue(a,b,caseless);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a,caseless);}}// eslint-disable-next-line consistent-return
|
|
689
|
+
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
690
|
+
function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a);}}// eslint-disable-next-line consistent-return
|
|
691
|
+
function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b){return mergeDeepProperties(headersToObject(a),headersToObject(b),true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var resolveConfig=function resolveConfig(config){var newConfig=mergeConfig({},config);var data=newConfig.data,withXSRFToken=newConfig.withXSRFToken,xsrfHeaderName=newConfig.xsrfHeaderName,xsrfCookieName=newConfig.xsrfCookieName,headers=newConfig.headers,auth=newConfig.auth;newConfig.headers=headers=AxiosHeaders$1.from(headers);newConfig.url=buildURL(buildFullPath(newConfig.baseURL,newConfig.url),config.params,config.paramsSerializer);// HTTP basic authentication
|
|
692
|
+
if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}var contentType;if(utils$1.isFormData(data)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){headers.setContentType(undefined);// Let the browser set it
|
|
693
|
+
}else if((contentType=headers.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
|
|
694
|
+
var _ref9=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref10=_toArray(_ref9),type=_ref10[0],tokens=_ref10.slice(1);headers.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}// Add xsrf header
|
|
695
|
+
// This is only done if running in a standard browser environment.
|
|
696
|
+
// Specifically not if we're in a web worker, or react-native.
|
|
697
|
+
if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(newConfig));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(newConfig.url)){// Add xsrf header
|
|
698
|
+
var xsrfValue=xsrfHeaderName&&xsrfCookieName&&cookies.read(xsrfCookieName);if(xsrfValue){headers.set(xsrfHeaderName,xsrfValue);}}}return newConfig;};var isXHRAdapterSupported=typeof XMLHttpRequest!=='undefined';var xhrAdapter=isXHRAdapterSupported&&function(config){return new Promise(function dispatchXhrRequest(resolve,reject){var _config=resolveConfig(config);var requestData=_config.data;var requestHeaders=AxiosHeaders$1.from(_config.headers).normalize();var responseType=_config.responseType;var onCanceled;function done(){if(_config.cancelToken){_config.cancelToken.unsubscribe(onCanceled);}if(_config.signal){_config.signal.removeEventListener('abort',onCanceled);}}var request=new XMLHttpRequest();request.open(_config.method.toUpperCase(),_config.url,true);// Set the request timeout in MS
|
|
699
|
+
request.timeout=_config.timeout;function onloadend(){if(!request){return;}// Prepare the response
|
|
678
700
|
var responseHeaders=AxiosHeaders$1.from('getAllResponseHeaders'in request&&request.getAllResponseHeaders());var responseData=!responseType||responseType==='text'||responseType==='json'?request.responseText:request.response;var response={data:responseData,status:request.status,statusText:request.statusText,headers:responseHeaders,config:config,request:request};settle(function _resolve(value){resolve(value);done();},function _reject(err){reject(err);done();},response);// Clean up request
|
|
679
701
|
request=null;}if('onloadend'in request){// Use onloadend if available
|
|
680
702
|
request.onloadend=onloadend;}else{// Listen for ready state to emulate onloadend
|
|
@@ -685,28 +707,26 @@ request.onreadystatechange=function handleLoad(){if(!request||request.readyState
|
|
|
685
707
|
if(request.status===0&&!(request.responseURL&&request.responseURL.indexOf('file:')===0)){return;}// readystate handler is calling before onerror or ontimeout handlers,
|
|
686
708
|
// so we should call onloadend on the next 'tick'
|
|
687
709
|
setTimeout(onloadend);};}// Handle browser request cancellation (as opposed to a manual cancellation)
|
|
688
|
-
request.onabort=function handleAbort(){if(!request){return;}reject(new AxiosError('Request aborted',AxiosError.ECONNABORTED,
|
|
710
|
+
request.onabort=function handleAbort(){if(!request){return;}reject(new AxiosError('Request aborted',AxiosError.ECONNABORTED,_config,request));// Clean up request
|
|
689
711
|
request=null;};// Handle low level network errors
|
|
690
712
|
request.onerror=function handleError(){// Real errors are hidden from us by the browser
|
|
691
713
|
// onerror should only fire if it's a network error
|
|
692
|
-
reject(new AxiosError('Network Error',AxiosError.ERR_NETWORK,
|
|
714
|
+
reject(new AxiosError('Network Error',AxiosError.ERR_NETWORK,_config,request));// Clean up request
|
|
693
715
|
request=null;};// Handle timeout
|
|
694
|
-
request.ontimeout=function handleTimeout(){var timeoutErrorMessage=
|
|
695
|
-
request=null;};//
|
|
696
|
-
// This is only done if running in a standard browser environment.
|
|
697
|
-
// Specifically not if we're in a web worker, or react-native.
|
|
698
|
-
if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(config));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(fullPath)){// Add xsrf header
|
|
699
|
-
var xsrfValue=config.xsrfHeaderName&&config.xsrfCookieName&&cookies.read(config.xsrfCookieName);if(xsrfValue){requestHeaders.set(config.xsrfHeaderName,xsrfValue);}}}// Remove Content-Type if data is undefined
|
|
716
|
+
request.ontimeout=function handleTimeout(){var timeoutErrorMessage=_config.timeout?'timeout of '+_config.timeout+'ms exceeded':'timeout exceeded';var transitional=_config.transitional||transitionalDefaults;if(_config.timeoutErrorMessage){timeoutErrorMessage=_config.timeoutErrorMessage;}reject(new AxiosError(timeoutErrorMessage,transitional.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,_config,request));// Clean up request
|
|
717
|
+
request=null;};// Remove Content-Type if data is undefined
|
|
700
718
|
requestData===undefined&&requestHeaders.setContentType(null);// Add headers to the request
|
|
701
719
|
if('setRequestHeader'in request){utils$1.forEach(requestHeaders.toJSON(),function setRequestHeader(val,key){request.setRequestHeader(key,val);});}// Add withCredentials to request if needed
|
|
702
|
-
if(!utils$1.isUndefined(
|
|
703
|
-
if(responseType&&responseType!=='json'){request.responseType=
|
|
704
|
-
if(typeof
|
|
705
|
-
if(typeof
|
|
720
|
+
if(!utils$1.isUndefined(_config.withCredentials)){request.withCredentials=!!_config.withCredentials;}// Add responseType to request if needed
|
|
721
|
+
if(responseType&&responseType!=='json'){request.responseType=_config.responseType;}// Handle progress if needed
|
|
722
|
+
if(typeof _config.onDownloadProgress==='function'){request.addEventListener('progress',progressEventReducer(_config.onDownloadProgress,true));}// Not all browsers support upload events
|
|
723
|
+
if(typeof _config.onUploadProgress==='function'&&request.upload){request.upload.addEventListener('progress',progressEventReducer(_config.onUploadProgress));}if(_config.cancelToken||_config.signal){// Handle cancellation
|
|
706
724
|
// eslint-disable-next-line func-names
|
|
707
|
-
onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(null,config,request):cancel);request.abort();request=null;};
|
|
708
|
-
request.send(requestData||null);});};var
|
|
709
|
-
|
|
725
|
+
onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(null,config,request):cancel);request.abort();request=null;};_config.cancelToken&&_config.cancelToken.subscribe(onCanceled);if(_config.signal){_config.signal.aborted?onCanceled():_config.signal.addEventListener('abort',onCanceled);}}var protocol=parseProtocol(_config.url);if(protocol&&platform.protocols.indexOf(protocol)===-1){reject(new AxiosError('Unsupported protocol '+protocol+':',AxiosError.ERR_BAD_REQUEST,config));return;}// Send the request
|
|
726
|
+
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var controller=new AbortController();var aborted;var onabort=function onabort(cancel){if(!aborted){aborted=true;unsubscribe();var err=cancel instanceof Error?cancel:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal&&(signal.removeEventListener?signal.removeEventListener('abort',onabort):signal.unsubscribe(onabort));});signals=null;}};signals.forEach(function(signal){return signal&&signal.addEventListener&&signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=unsubscribe;return[signal,function(){timer&&clearTimeout(timer);timer=null;}];};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regeneratorRuntime().mark(function streamChunk(chunk,chunkSize){var len,pos,end;return _regeneratorRuntime().wrap(function streamChunk$(_context){while(1)switch(_context.prev=_context.next){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.next=5;break;}_context.next=4;return chunk;case 4:return _context.abrupt("return");case 5:pos=0;case 6:if(!(pos<len)){_context.next=13;break;}end=pos+chunkSize;_context.next=10;return chunk.slice(pos,end);case 10:pos=end;_context.next=6;break;case 13:case"end":return _context.stop();}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(iterable,chunkSize,encode){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator=_asyncIterator(iterable);case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=27;break;}chunk=_step.value;_context2.t0=_asyncGeneratorDelegate;_context2.t1=_asyncIterator;_context2.t2=streamChunk;if(!ArrayBuffer.isView(chunk)){_context2.next=15;break;}_context2.t3=chunk;_context2.next=18;break;case 15:_context2.next=17;return _awaitAsyncGenerator(encode(String(chunk)));case 17:_context2.t3=_context2.sent;case 18:_context2.t4=_context2.t3;_context2.t5=chunkSize;_context2.t6=(0,_context2.t2)(_context2.t4,_context2.t5);_context2.t7=(0,_context2.t1)(_context2.t6);_context2.t8=_awaitAsyncGenerator;return _context2.delegateYield((0,_context2.t0)(_context2.t7,_context2.t8),"t9",24);case 24:_iteratorAbruptCompletion=false;_context2.next=4;break;case 27:_context2.next=33;break;case 29:_context2.prev=29;_context2.t10=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t10;case 33:_context2.prev=33;_context2.prev=34;if(!(_iteratorAbruptCompletion&&_iterator["return"]!=null)){_context2.next=38;break;}_context2.next=38;return _awaitAsyncGenerator(_iterator["return"]());case 38:_context2.prev=38;if(!_didIteratorError){_context2.next=41;break;}throw _iteratorError;case 41:return _context2.finish(38);case 42:return _context2.finish(33);case 43:case"end":return _context2.stop();}},_callee,null,[[2,29,33,43],[34,,38,42]]);}));return function readBytes(_x,_x2,_x3){return _ref.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish,encode){var iterator=readBytes(stream,chunkSize,encode);var bytes=0;return new ReadableStream({type:'bytes',pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _yield$iterator$next,done,value,len;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return iterator.next();case 2:_yield$iterator$next=_context3.sent;done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!done){_context3.next=9;break;}controller.close();onFinish();return _context3.abrupt("return");case 9:len=value.byteLength;onProgress&&onProgress(bytes+=len);controller.enqueue(new Uint8Array(value));case 12:case"end":return _context3.stop();}},_callee2);}))();},cancel:function cancel(reason){onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var fetchProgressDecorator=function fetchProgressDecorator(total,fn){var lengthComputable=total!=null;return function(loaded){return setTimeout(function(){return fn({lengthComputable:lengthComputable,total:total,loaded:loaded});});};};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
|
|
727
|
+
var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(str){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.t0=Uint8Array;_context4.next=3;return new Response(str).arrayBuffer();case 3:_context4.t1=_context4.sent;return _context4.abrupt("return",new _context4.t0(_context4.t1));case 5:case"end":return _context4.stop();}},_callee3);}));return function(_x4){return _ref11.apply(this,arguments);};}()));var supportsRequestStream=isReadableStreamSupported&&function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;}();var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&!!function(){try{return utils$1.isReadableStream(new Response('').body);}catch(err){// return undefined
|
|
728
|
+
}}();var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(body){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:if(!(body==null)){_context5.next=2;break;}return _context5.abrupt("return",0);case 2:if(!utils$1.isBlob(body)){_context5.next=4;break;}return _context5.abrupt("return",body.size);case 4:if(!utils$1.isSpecCompliantForm(body)){_context5.next=8;break;}_context5.next=7;return new Request(body).arrayBuffer();case 7:return _context5.abrupt("return",_context5.sent.byteLength);case 8:if(!utils$1.isArrayBufferView(body)){_context5.next=10;break;}return _context5.abrupt("return",body.byteLength);case 10:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context5.next=15;break;}_context5.next=14;return encodeText(body);case 14:return _context5.abrupt("return",_context5.sent.byteLength);case 15:case"end":return _context5.stop();}},_callee4);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(headers,body){var length;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context6.abrupt("return",length==null?getBodyLength(body):length);case 2:case"end":return _context6.stop();}},_callee5);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,_ref15,_ref16,composedSignal,stopTimeout,finished,request,onFinish,requestContentLength,_request,contentTypeHeader,response,isStreamResponse,options,responseContentLength,responseData;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';_ref15=signal||cancelToken||timeout?composeSignals$1([signal,cancelToken],timeout):[],_ref16=_slicedToArray(_ref15,2),composedSignal=_ref16[0],stopTimeout=_ref16[1];onFinish=function onFinish(){!finished&&setTimeout(function(){composedSignal&&composedSignal.unsubscribe();});finished=true;};_context7.prev=4;_context7.t0=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_context7.t0){_context7.next=11;break;}_context7.next=9;return resolveBodyLength(headers,data);case 9:_context7.t1=requestContentLength=_context7.sent;_context7.t0=_context7.t1!==0;case 11:if(!_context7.t0){_context7.next=15;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,fetchProgressDecorator(requestContentLength,progressEventReducer(onUploadProgress)),null,encodeText);}case 15:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'cors':'omit';}request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",withCredentials:withCredentials}));_context7.next=19;return fetch(request);case 19:response=_context7.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,onDownloadProgress&&fetchProgressDecorator(responseContentLength,progressEventReducer(onDownloadProgress,true)),isStreamResponse&&onFinish,encodeText),options);}responseType=responseType||'text';_context7.next=25;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 25:responseData=_context7.sent;!isStreamResponse&&onFinish();stopTimeout&&stopTimeout();_context7.next=30;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 30:return _context7.abrupt("return",_context7.sent);case 33:_context7.prev=33;_context7.t2=_context7["catch"](4);onFinish();if(!(_context7.t2&&_context7.t2.name==='TypeError'&&/fetch/i.test(_context7.t2.message))){_context7.next=38;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_context7.t2.cause||_context7.t2});case 38:throw AxiosError.from(_context7.t2,_context7.t2&&_context7.t2.code,config,request);case 39:case"end":return _context7.stop();}},_callee6,null,[[4,33]]);}));return function(_x8){return _ref14.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
|
|
729
|
+
}Object.defineProperty(fn,'adapterName',{value:value});}});var renderReason=function renderReason(reason){return"- ".concat(reason);};var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};var adapters={getAdapter:function getAdapter(adapters){adapters=utils$1.isArray(adapters)?adapters:[adapters];var _adapters=adapters,length=_adapters.length;var nameOrAdapter;var adapter;var rejectedReasons={};for(var i=0;i<length;i++){nameOrAdapter=adapters[i];var id=void 0;adapter=nameOrAdapter;if(!isResolvedHandle(nameOrAdapter)){adapter=knownAdapters[(id=String(nameOrAdapter)).toLowerCase()];if(adapter===undefined){throw new AxiosError("Unknown adapter '".concat(id,"'"));}}if(adapter){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(_ref17){var _ref18=_slicedToArray(_ref17,2),id=_ref18[0],state=_ref18[1];return"adapter ".concat(id," ")+(state===false?'is not supported by the environment':'is not available in the build');});var s=length?reasons.length>1?'since :\n'+reasons.map(renderReason).join('\n'):' '+renderReason(reasons[0]):'as no adapter specified';throw new AxiosError("There is no suitable adapter to dispatch the request "+s,'ERR_NOT_SUPPORT');}return adapter;},adapters:knownAdapters};/**
|
|
710
730
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
711
731
|
*
|
|
712
732
|
* @param {Object} config The config that is to be used for the request
|
|
@@ -721,20 +741,7 @@ request.send(requestData||null);});};var knownAdapters={http:httpAdapter,xhr:xhr
|
|
|
721
741
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
722
742
|
config.data=transformData.call(config,config.transformRequest);if(['post','put','patch'].indexOf(config.method)!==-1){config.headers.setContentType('application/x-www-form-urlencoded',false);}var adapter=adapters.getAdapter(config.adapter||defaults$1.adapter);return adapter(config).then(function onAdapterResolution(response){throwIfCancellationRequested(config);// Transform response data
|
|
723
743
|
response.data=transformData.call(config,config.transformResponse,response);response.headers=AxiosHeaders$1.from(response.headers);return response;},function onAdapterRejection(reason){if(!isCancel(reason)){throwIfCancellationRequested(config);// Transform response data
|
|
724
|
-
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var
|
|
725
|
-
* Config-specific merge-function which creates a new config-object
|
|
726
|
-
* by merging two configuration objects together.
|
|
727
|
-
*
|
|
728
|
-
* @param {Object} config1
|
|
729
|
-
* @param {Object} config2
|
|
730
|
-
*
|
|
731
|
-
* @returns {Object} New object resulting from merging config2 to config1
|
|
732
|
-
*/function mergeConfig(config1,config2){// eslint-disable-next-line no-param-reassign
|
|
733
|
-
config2=config2||{};var config={};function getMergedValue(target,source,caseless){if(utils$1.isPlainObject(target)&&utils$1.isPlainObject(source)){return utils$1.merge.call({caseless:caseless},target,source);}else if(utils$1.isPlainObject(source)){return utils$1.merge({},source);}else if(utils$1.isArray(source)){return source.slice();}return source;}// eslint-disable-next-line consistent-return
|
|
734
|
-
function mergeDeepProperties(a,b,caseless){if(!utils$1.isUndefined(b)){return getMergedValue(a,b,caseless);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a,caseless);}}// eslint-disable-next-line consistent-return
|
|
735
|
-
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
736
|
-
function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a);}}// eslint-disable-next-line consistent-return
|
|
737
|
-
function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b){return mergeDeepProperties(headersToObject(a),headersToObject(b),true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var VERSION="1.6.8";var validators$1={};// eslint-disable-next-line func-names
|
|
744
|
+
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.7.2";var validators$1={};// eslint-disable-next-line func-names
|
|
738
745
|
['object','boolean','number','function','string','symbol'].forEach(function(type,i){validators$1[type]=function validator(thing){return _typeof(thing)===type||'a'+(i<1?'n ':' ')+type;};});var deprecatedWarnings={};/**
|
|
739
746
|
* Transitional option validator
|
|
740
747
|
*
|
|
@@ -766,10 +773,11 @@ console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will
|
|
|
766
773
|
* @param {?Object} config
|
|
767
774
|
*
|
|
768
775
|
* @returns {Promise} The Promise to be fulfilled
|
|
769
|
-
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
770
|
-
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';if(!
|
|
771
|
-
}else if(stack&&!String(
|
|
772
|
-
|
|
776
|
+
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.prev=0;_context8.next=3;return this._request(configOrUrl,config);case 3:return _context8.abrupt("return",_context8.sent);case 6:_context8.prev=6;_context8.t0=_context8["catch"](0);if(_context8.t0 instanceof Error){Error.captureStackTrace?Error.captureStackTrace(dummy={}):dummy=new Error();// slice off the Error: ... line
|
|
777
|
+
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context8.t0.stack){_context8.t0.stack=stack;// match without the 2 top stack lines
|
|
778
|
+
}else if(stack&&!String(_context8.t0.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_context8.t0.stack+='\n'+stack;}}catch(e){// ignore the case where "stack" is an un-writable property
|
|
779
|
+
}}throw _context8.t0;case 10:case"end":return _context8.stop();}},_callee7,this,[[0,6]]);}));function request(_x9,_x10){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
|
|
780
|
+
if(typeof configOrUrl==='string'){config=config||{};config.url=configOrUrl;}else{config=configOrUrl||{};}config=mergeConfig(this.defaults,config);var _config2=config,transitional=_config2.transitional,paramsSerializer=_config2.paramsSerializer,headers=_config2.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
|
|
773
781
|
config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
|
|
774
782
|
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
|
|
775
783
|
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
|
|
@@ -818,7 +826,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
|
|
|
818
826
|
* @param {*} payload The value to test
|
|
819
827
|
*
|
|
820
828
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
821
|
-
*/function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(
|
|
829
|
+
*/function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(_ref19){var _ref20=_slicedToArray(_ref19,2),key=_ref20[0],value=_ref20[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
|
|
822
830
|
* Create an instance of Axios
|
|
823
831
|
*
|
|
824
832
|
* @param {Object} defaultConfig The default config for the instance
|
|
@@ -847,7 +855,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
847
855
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
848
856
|
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];}}}]);}();/**
|
|
849
857
|
* @module purecloud-platform-client-v2/ApiClient
|
|
850
|
-
* @version
|
|
858
|
+
* @version 193.0.0
|
|
851
859
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
852
860
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
853
861
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -1159,7 +1167,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
1159
1167
|
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(){/**
|
|
1160
1168
|
* Alerting service.
|
|
1161
1169
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1162
|
-
* @version
|
|
1170
|
+
* @version 193.0.0
|
|
1163
1171
|
*/ /**
|
|
1164
1172
|
* Constructs a new AlertingApi.
|
|
1165
1173
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -1316,7 +1324,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
|
|
|
1316
1324
|
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(){/**
|
|
1317
1325
|
* Analytics service.
|
|
1318
1326
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
1319
|
-
* @version
|
|
1327
|
+
* @version 193.0.0
|
|
1320
1328
|
*/ /**
|
|
1321
1329
|
* Constructs a new AnalyticsApi.
|
|
1322
1330
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -1329,11 +1337,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1329
1337
|
* @param {String} jobId jobId
|
|
1330
1338
|
*/return _createClass(AnalyticsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
1331
1339
|
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']);}/**
|
|
1332
|
-
* Delete a scheduled report job.
|
|
1333
|
-
*
|
|
1334
|
-
* @param {String} scheduleId Schedule ID
|
|
1335
|
-
*/},{key:"deleteAnalyticsReportingSchedule",value:function deleteAnalyticsReportingSchedule(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
1336
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling deleteAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','DELETE',{'scheduleId':scheduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1337
1340
|
* Delete/cancel an async request
|
|
1338
1341
|
*
|
|
1339
1342
|
* @param {String} jobId jobId
|
|
@@ -1353,8 +1356,21 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
1353
1356
|
* getAnalyticsActionsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1354
1357
|
*/},{key:"getAnalyticsActionsAggregatesJobResults",value:function getAnalyticsActionsAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
|
|
1355
1358
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsActionsAggregatesJobResults';}return this.apiClient.callApi('/api/v2/analytics/actions/aggregates/jobs/{jobId}/results','GET',{'jobId':jobId},{'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1359
|
+
* Get Reporting Turns (division aware).
|
|
1360
|
+
* Returns the reporting turns for the specified flow, filtered by the clients divisions and grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
|
|
1361
|
+
* @param {String} botFlowId ID of the bot flow.
|
|
1362
|
+
* @param {Object} opts Optional parameters
|
|
1363
|
+
* @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
|
|
1364
|
+
* @param {String} opts.pageSize Max number of entities to return. Maximum of 250 (default to 50)
|
|
1365
|
+
* @param {String} opts.interval Date range filter based on the date the individual resources were completed. UTC is the default if no TZ is supplied, however alternate timezones can be used e.g: '2022-11-22T09:11:11.111+08:00/2022-11-30T07:17:44.586-07'. . Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
|
|
1366
|
+
* @param {String} opts.actionId Optional action ID to get the reporting turns associated to a particular flow action
|
|
1367
|
+
* @param {String} opts.sessionId Optional session ID to get the reporting turns for a particular session. Specifying a session ID alongside an action ID or a language or any ask action results is not allowed.
|
|
1368
|
+
* @param {String} opts.language Optional language code to get the reporting turns for a particular language
|
|
1369
|
+
* @param {Object} opts.askActionResults Optional case-insensitive comma separated list of ask action results to filter the reporting turns.
|
|
1370
|
+
*/},{key:"getAnalyticsBotflowDivisionsReportingturns",value:function getAnalyticsBotflowDivisionsReportingturns(botFlowId,opts){opts=opts||{};// verify the required parameter 'botFlowId' is set
|
|
1371
|
+
if(botFlowId===undefined||botFlowId===null){throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowDivisionsReportingturns';}return this.apiClient.callApi('/api/v2/analytics/botflows/{botFlowId}/divisions/reportingturns','GET',{'botFlowId':botFlowId},{'after':opts['after'],'pageSize':opts['pageSize'],'interval':opts['interval'],'actionId':opts['actionId'],'sessionId':opts['sessionId'],'language':opts['language'],'askActionResults':opts['askActionResults']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1356
1372
|
* Get Reporting Turns.
|
|
1357
|
-
* Returns the reporting turns grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
|
|
1373
|
+
* Deprecated: Please use GET /analytics/botflows/{botFlowId}/divisions/reportingturns instead. Returns the reporting turns grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
|
|
1358
1374
|
* @param {String} botFlowId ID of the bot flow.
|
|
1359
1375
|
* @param {Object} opts Optional parameters
|
|
1360
1376
|
* @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
|
|
@@ -1364,6 +1380,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
1364
1380
|
* @param {String} opts.sessionId Optional session ID to get the reporting turns for a particular session. Specifying a session ID alongside an action ID or a language or any ask action results is not allowed.
|
|
1365
1381
|
* @param {String} opts.language Optional language code to get the reporting turns for a particular language
|
|
1366
1382
|
* @param {Object} opts.askActionResults Optional case-insensitive comma separated list of ask action results to filter the reporting turns.
|
|
1383
|
+
* @deprecated
|
|
1367
1384
|
*/},{key:"getAnalyticsBotflowReportingturns",value:function getAnalyticsBotflowReportingturns(botFlowId,opts){opts=opts||{};// verify the required parameter 'botFlowId' is set
|
|
1368
1385
|
if(botFlowId===undefined||botFlowId===null){throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowReportingturns';}return this.apiClient.callApi('/api/v2/analytics/botflows/{botFlowId}/reportingturns','GET',{'botFlowId':botFlowId},{'after':opts['after'],'pageSize':opts['pageSize'],'interval':opts['interval'],'actionId':opts['actionId'],'sessionId':opts['sessionId'],'language':opts['language'],'askActionResults':opts['askActionResults']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1369
1386
|
* Get Bot Flow Sessions.
|
|
@@ -1527,54 +1544,6 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
1527
1544
|
* Get all export metadata
|
|
1528
1545
|
*
|
|
1529
1546
|
*/},{key:"getAnalyticsReportingExportsMetadata",value:function getAnalyticsReportingExportsMetadata(){return this.apiClient.callApi('/api/v2/analytics/reporting/exports/metadata','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1530
|
-
* Get list of reporting metadata.
|
|
1531
|
-
*
|
|
1532
|
-
* @param {Object} opts Optional parameters
|
|
1533
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1534
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1535
|
-
* @param {String} opts.locale Locale
|
|
1536
|
-
*/},{key:"getAnalyticsReportingMetadata",value:function getAnalyticsReportingMetadata(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/analytics/reporting/metadata','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'locale':opts['locale']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1537
|
-
* Get a reporting metadata.
|
|
1538
|
-
*
|
|
1539
|
-
* @param {String} reportId Report ID
|
|
1540
|
-
* @param {Object} opts Optional parameters
|
|
1541
|
-
* @param {String} opts.locale Locale
|
|
1542
|
-
*/},{key:"getAnalyticsReportingReportIdMetadata",value:function getAnalyticsReportingReportIdMetadata(reportId,opts){opts=opts||{};// verify the required parameter 'reportId' is set
|
|
1543
|
-
if(reportId===undefined||reportId===null){throw'Missing the required parameter "reportId" when calling getAnalyticsReportingReportIdMetadata';}return this.apiClient.callApi('/api/v2/analytics/reporting/{reportId}/metadata','GET',{'reportId':reportId},{'locale':opts['locale']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1544
|
-
* Get a list of report formats
|
|
1545
|
-
* Get a list of report formats.
|
|
1546
|
-
*/},{key:"getAnalyticsReportingReportformats",value:function getAnalyticsReportingReportformats(){return this.apiClient.callApi('/api/v2/analytics/reporting/reportformats','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1547
|
-
* Get a scheduled report job.
|
|
1548
|
-
*
|
|
1549
|
-
* @param {String} scheduleId Schedule ID
|
|
1550
|
-
*/},{key:"getAnalyticsReportingSchedule",value:function getAnalyticsReportingSchedule(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
1551
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','GET',{'scheduleId':scheduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1552
|
-
* Get list of completed scheduled report jobs.
|
|
1553
|
-
*
|
|
1554
|
-
* @param {String} scheduleId Schedule ID
|
|
1555
|
-
* @param {Object} opts Optional parameters
|
|
1556
|
-
* @param {Number} opts.pageNumber (default to 1)
|
|
1557
|
-
* @param {Number} opts.pageSize (default to 25)
|
|
1558
|
-
*/},{key:"getAnalyticsReportingScheduleHistory",value:function getAnalyticsReportingScheduleHistory(scheduleId,opts){opts=opts||{};// verify the required parameter 'scheduleId' is set
|
|
1559
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistory';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}/history','GET',{'scheduleId':scheduleId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1560
|
-
* Get most recently completed scheduled report job.
|
|
1561
|
-
*
|
|
1562
|
-
* @param {String} scheduleId Schedule ID
|
|
1563
|
-
*/},{key:"getAnalyticsReportingScheduleHistoryLatest",value:function getAnalyticsReportingScheduleHistoryLatest(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
1564
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistoryLatest';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}/history/latest','GET',{'scheduleId':scheduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1565
|
-
* A completed scheduled report job
|
|
1566
|
-
* A completed scheduled report job.
|
|
1567
|
-
* @param {String} runId Run ID
|
|
1568
|
-
* @param {String} scheduleId Schedule ID
|
|
1569
|
-
*/},{key:"getAnalyticsReportingScheduleHistoryRunId",value:function getAnalyticsReportingScheduleHistoryRunId(runId,scheduleId){// verify the required parameter 'runId' is set
|
|
1570
|
-
if(runId===undefined||runId===null){throw'Missing the required parameter "runId" when calling getAnalyticsReportingScheduleHistoryRunId';}// verify the required parameter 'scheduleId' is set
|
|
1571
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistoryRunId';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}/history/{runId}','GET',{'runId':runId,'scheduleId':scheduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1572
|
-
* Get a list of scheduled report jobs
|
|
1573
|
-
* Get a list of scheduled report jobs.
|
|
1574
|
-
* @param {Object} opts Optional parameters
|
|
1575
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1576
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1577
|
-
*/},{key:"getAnalyticsReportingSchedules",value:function getAnalyticsReportingSchedules(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/analytics/reporting/schedules','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1578
1547
|
* Get AnalyticsReportingSettings for an organization
|
|
1579
1548
|
*
|
|
1580
1549
|
*/},{key:"getAnalyticsReportingSettings",value:function getAnalyticsReportingSettings(){return this.apiClient.callApi('/api/v2/analytics/reporting/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -1587,11 +1556,9 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet
|
|
|
1587
1556
|
* @param {Number} opts.pageSize (default to 50)
|
|
1588
1557
|
* @param {Boolean} opts.publicOnly If true, retrieve only public dashboards
|
|
1589
1558
|
* @param {Boolean} opts.favoriteOnly If true, retrieve only favorite dashboards
|
|
1559
|
+
* @param {String} opts.name retrieve dashboards that match with given name
|
|
1590
1560
|
*/},{key:"getAnalyticsReportingSettingsUserDashboards",value:function getAnalyticsReportingSettingsUserDashboards(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
1591
|
-
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']);}/**
|
|
1592
|
-
* Get a list of report time periods.
|
|
1593
|
-
*
|
|
1594
|
-
*/},{key:"getAnalyticsReportingTimeperiods",value:function getAnalyticsReportingTimeperiods(){return this.apiClient.callApi('/api/v2/analytics/reporting/timeperiods','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1561
|
+
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'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1595
1562
|
* Get status for async query for resolution aggregates
|
|
1596
1563
|
*
|
|
1597
1564
|
* @param {String} jobId jobId
|
|
@@ -1718,7 +1685,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1718
1685
|
* @param {Object} opts Optional parameters
|
|
1719
1686
|
* @param {Number} opts.pageSize The desired page size
|
|
1720
1687
|
* @param {Number} opts.pageNumber The desired page number
|
|
1721
|
-
* postAnalyticsConversationsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1722
1688
|
*/},{key:"postAnalyticsConversationsActivityQuery",value:function postAnalyticsConversationsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
1723
1689
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/conversations/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1724
1690
|
* Query for conversation aggregates asynchronously
|
|
@@ -1775,7 +1741,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1775
1741
|
* @param {Object} opts Optional parameters
|
|
1776
1742
|
* @param {Number} opts.pageSize The desired page size
|
|
1777
1743
|
* @param {Number} opts.pageNumber The desired page number
|
|
1778
|
-
* postAnalyticsFlowsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1779
1744
|
*/},{key:"postAnalyticsFlowsActivityQuery",value:function postAnalyticsFlowsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
1780
1745
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1781
1746
|
* Query for flow aggregates asynchronously
|
|
@@ -1836,18 +1801,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1836
1801
|
* @param {Object} body ReportingExportJobRequest
|
|
1837
1802
|
*/},{key:"postAnalyticsReportingExports",value:function postAnalyticsReportingExports(body){// verify the required parameter 'body' is set
|
|
1838
1803
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsReportingExports';}return this.apiClient.callApi('/api/v2/analytics/reporting/exports','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1839
|
-
* Place a scheduled report immediately into the reporting queue
|
|
1840
|
-
* This route is deprecated, please use POST:api/v2/analytics/reporting/exports/{exportId}/execute instead
|
|
1841
|
-
* @param {String} scheduleId Schedule ID
|
|
1842
|
-
* @deprecated
|
|
1843
|
-
*/},{key:"postAnalyticsReportingScheduleRunreport",value:function postAnalyticsReportingScheduleRunreport(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
1844
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postAnalyticsReportingScheduleRunreport';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}/runreport','POST',{'scheduleId':scheduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1845
|
-
* Create a scheduled report job
|
|
1846
|
-
* This route is deprecated, please use POST:api/v2/analytics/reporting/exports instead
|
|
1847
|
-
* @param {Object} body ReportSchedule
|
|
1848
|
-
* @deprecated
|
|
1849
|
-
*/},{key:"postAnalyticsReportingSchedules",value:function postAnalyticsReportingSchedules(body){// verify the required parameter 'body' is set
|
|
1850
|
-
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']);}/**
|
|
1851
1804
|
* Bulk remove dashboard configurations
|
|
1852
1805
|
*
|
|
1853
1806
|
* @param {Object} body
|
|
@@ -1870,7 +1823,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1870
1823
|
* @param {Object} opts Optional parameters
|
|
1871
1824
|
* @param {Number} opts.pageSize The desired page size
|
|
1872
1825
|
* @param {Number} opts.pageNumber The desired page number
|
|
1873
|
-
* postAnalyticsRoutingActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1874
1826
|
*/},{key:"postAnalyticsRoutingActivityQuery",value:function postAnalyticsRoutingActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
1875
1827
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/routing/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1876
1828
|
* Query for survey aggregates asynchronously
|
|
@@ -1902,7 +1854,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1902
1854
|
* @param {Object} opts Optional parameters
|
|
1903
1855
|
* @param {Number} opts.pageSize The desired page size
|
|
1904
1856
|
* @param {Number} opts.pageNumber The desired page number
|
|
1905
|
-
* postAnalyticsTeamsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1906
1857
|
*/},{key:"postAnalyticsTeamsActivityQuery",value:function postAnalyticsTeamsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
1907
1858
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/teams/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1908
1859
|
* Query for transcript aggregates asynchronously
|
|
@@ -1922,7 +1873,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1922
1873
|
* @param {Object} opts Optional parameters
|
|
1923
1874
|
* @param {Number} opts.pageSize The desired page size
|
|
1924
1875
|
* @param {Number} opts.pageNumber The desired page number
|
|
1925
|
-
* postAnalyticsUsersActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1926
1876
|
*/},{key:"postAnalyticsUsersActivityQuery",value:function postAnalyticsUsersActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
1927
1877
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/users/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1928
1878
|
* Query for user aggregates asynchronously
|
|
@@ -1955,18 +1905,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1955
1905
|
*
|
|
1956
1906
|
* @param {Object} body retentionDays
|
|
1957
1907
|
*/},{key:"putAnalyticsDataretentionSettings",value:function putAnalyticsDataretentionSettings(body){// verify the required parameter 'body' is set
|
|
1958
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';}return this.apiClient.callApi('/api/v2/analytics/dataretention/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1959
|
-
* Update a scheduled report job.
|
|
1960
|
-
* This route is deprecated, please use PATCH:api/v2/analytics/reporting/exports/{exportId}/schedule instead
|
|
1961
|
-
* @param {String} scheduleId Schedule ID
|
|
1962
|
-
* @param {Object} body ReportSchedule
|
|
1963
|
-
* @deprecated
|
|
1964
|
-
*/},{key:"putAnalyticsReportingSchedule",value:function putAnalyticsReportingSchedule(scheduleId,body){// verify the required parameter 'scheduleId' is set
|
|
1965
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling putAnalyticsReportingSchedule';}// verify the required parameter 'body' is set
|
|
1966
|
-
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(){/**
|
|
1908
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';}return this.apiClient.callApi('/api/v2/analytics/dataretention/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
|
|
1967
1909
|
* Architect service.
|
|
1968
1910
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
1969
|
-
* @version
|
|
1911
|
+
* @version 193.0.0
|
|
1970
1912
|
*/ /**
|
|
1971
1913
|
* Constructs a new ArchitectApi.
|
|
1972
1914
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -3082,7 +3024,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
|
|
|
3082
3024
|
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(){/**
|
|
3083
3025
|
* Audit service.
|
|
3084
3026
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
3085
|
-
* @version
|
|
3027
|
+
* @version 193.0.0
|
|
3086
3028
|
*/ /**
|
|
3087
3029
|
* Constructs a new AuditApi.
|
|
3088
3030
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -3124,7 +3066,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3124
3066
|
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(){/**
|
|
3125
3067
|
* Authorization service.
|
|
3126
3068
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
3127
|
-
* @version
|
|
3069
|
+
* @version 193.0.0
|
|
3128
3070
|
*/ /**
|
|
3129
3071
|
* Constructs a new AuthorizationApi.
|
|
3130
3072
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -3439,7 +3381,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
|
|
|
3439
3381
|
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(){/**
|
|
3440
3382
|
* Billing service.
|
|
3441
3383
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
3442
|
-
* @version
|
|
3384
|
+
* @version 193.0.0
|
|
3443
3385
|
*/ /**
|
|
3444
3386
|
* Constructs a new BillingApi.
|
|
3445
3387
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -3463,7 +3405,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
3463
3405
|
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(){/**
|
|
3464
3406
|
* CarrierServices service.
|
|
3465
3407
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
3466
|
-
* @version
|
|
3408
|
+
* @version 193.0.0
|
|
3467
3409
|
*/ /**
|
|
3468
3410
|
* Constructs a new CarrierServicesApi.
|
|
3469
3411
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -3483,7 +3425,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
3483
3425
|
*/},{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(){/**
|
|
3484
3426
|
* Chat service.
|
|
3485
3427
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
3486
|
-
* @version
|
|
3428
|
+
* @version 193.0.0
|
|
3487
3429
|
*/ /**
|
|
3488
3430
|
* Constructs a new ChatApi.
|
|
3489
3431
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -3605,6 +3547,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
3605
3547
|
* getChatsUserSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3606
3548
|
*/},{key:"getChatsUserSettings",value:function getChatsUserSettings(userId){// verify the required parameter 'userId' is set
|
|
3607
3549
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getChatsUserSettings';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/settings','GET',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3550
|
+
* Get a user's chat settings
|
|
3551
|
+
*
|
|
3552
|
+
* getChatsUsersMeSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3553
|
+
*/},{key:"getChatsUsersMeSettings",value:function getChatsUsersMeSettings(){return this.apiClient.callApi('/api/v2/chats/users/me/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3608
3554
|
* Set properties for a room
|
|
3609
3555
|
*
|
|
3610
3556
|
* @param {String} roomJid roomJid
|
|
@@ -3643,6 +3589,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3643
3589
|
*/},{key:"patchChatsUserSettings",value:function patchChatsUserSettings(userId,body){// verify the required parameter 'userId' is set
|
|
3644
3590
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchChatsUserSettings';}// verify the required parameter 'body' is set
|
|
3645
3591
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchChatsUserSettings';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/settings','PATCH',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3592
|
+
* Update a user's chat settings
|
|
3593
|
+
*
|
|
3594
|
+
* @param {Object} body
|
|
3595
|
+
* patchChatsUsersMeSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3596
|
+
*/},{key:"patchChatsUsersMeSettings",value:function patchChatsUsersMeSettings(body){// verify the required parameter 'body' is set
|
|
3597
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchChatsUsersMeSettings';}return this.apiClient.callApi('/api/v2/chats/users/me/settings','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3646
3598
|
* Send a message to a room
|
|
3647
3599
|
*
|
|
3648
3600
|
* @param {String} roomJid roomId
|
|
@@ -3698,7 +3650,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3698
3650
|
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(){/**
|
|
3699
3651
|
* Coaching service.
|
|
3700
3652
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
3701
|
-
* @version
|
|
3653
|
+
* @version 193.0.0
|
|
3702
3654
|
*/ /**
|
|
3703
3655
|
* Constructs a new CoachingApi.
|
|
3704
3656
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -3851,7 +3803,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3851
3803
|
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(){/**
|
|
3852
3804
|
* ContentManagement service.
|
|
3853
3805
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
3854
|
-
* @version
|
|
3806
|
+
* @version 193.0.0
|
|
3855
3807
|
*/ /**
|
|
3856
3808
|
* Constructs a new ContentManagementApi.
|
|
3857
3809
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -4134,7 +4086,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
|
|
|
4134
4086
|
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(){/**
|
|
4135
4087
|
* Conversations service.
|
|
4136
4088
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
4137
|
-
* @version
|
|
4089
|
+
* @version 193.0.0
|
|
4138
4090
|
*/ /**
|
|
4139
4091
|
* Constructs a new ConversationsApi.
|
|
4140
4092
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -5188,7 +5140,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5188
5140
|
* @param {Object} opts Optional parameters
|
|
5189
5141
|
* @param {Number} opts.pageSize The desired page size
|
|
5190
5142
|
* @param {Number} opts.pageNumber The desired page number
|
|
5191
|
-
* postAnalyticsConversationsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5192
5143
|
*/},{key:"postAnalyticsConversationsActivityQuery",value:function postAnalyticsConversationsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
5193
5144
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/conversations/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5194
5145
|
* Query for conversation aggregates asynchronously
|
|
@@ -5895,7 +5846,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
5895
5846
|
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(){/**
|
|
5896
5847
|
* DataExtensions service.
|
|
5897
5848
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
5898
|
-
* @version
|
|
5849
|
+
* @version 193.0.0
|
|
5899
5850
|
*/ /**
|
|
5900
5851
|
* Constructs a new DataExtensionsApi.
|
|
5901
5852
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -5916,7 +5867,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
5916
5867
|
*/},{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(){/**
|
|
5917
5868
|
* Downloads service.
|
|
5918
5869
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
5919
|
-
* @version
|
|
5870
|
+
* @version 193.0.0
|
|
5920
5871
|
*/ /**
|
|
5921
5872
|
* Constructs a new DownloadsApi.
|
|
5922
5873
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -5935,7 +5886,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
5935
5886
|
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(){/**
|
|
5936
5887
|
* Emails service.
|
|
5937
5888
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
5938
|
-
* @version
|
|
5889
|
+
* @version 193.0.0
|
|
5939
5890
|
*/ /**
|
|
5940
5891
|
* Constructs a new EmailsApi.
|
|
5941
5892
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -5953,7 +5904,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
5953
5904
|
*/},{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(){/**
|
|
5954
5905
|
* Events service.
|
|
5955
5906
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
5956
|
-
* @version
|
|
5907
|
+
* @version 193.0.0
|
|
5957
5908
|
*/ /**
|
|
5958
5909
|
* Constructs a new EventsApi.
|
|
5959
5910
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -5978,7 +5929,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5978
5929
|
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(){/**
|
|
5979
5930
|
* ExternalContacts service.
|
|
5980
5931
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
5981
|
-
* @version
|
|
5932
|
+
* @version 193.0.0
|
|
5982
5933
|
*/ /**
|
|
5983
5934
|
* Constructs a new ExternalContactsApi.
|
|
5984
5935
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -6433,7 +6384,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
|
|
|
6433
6384
|
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(){/**
|
|
6434
6385
|
* Fax service.
|
|
6435
6386
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
6436
|
-
* @version
|
|
6387
|
+
* @version 193.0.0
|
|
6437
6388
|
*/ /**
|
|
6438
6389
|
* Constructs a new FaxApi.
|
|
6439
6390
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -6482,7 +6433,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6482
6433
|
*/},{key:"putFaxSettings",value:function putFaxSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/fax/settings','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FlowsApi=/*#__PURE__*/function(){/**
|
|
6483
6434
|
* Flows service.
|
|
6484
6435
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
6485
|
-
* @version
|
|
6436
|
+
* @version 193.0.0
|
|
6486
6437
|
*/ /**
|
|
6487
6438
|
* Constructs a new FlowsApi.
|
|
6488
6439
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -6510,7 +6461,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
6510
6461
|
* @param {Object} opts Optional parameters
|
|
6511
6462
|
* @param {Number} opts.pageSize The desired page size
|
|
6512
6463
|
* @param {Number} opts.pageNumber The desired page number
|
|
6513
|
-
* postAnalyticsFlowsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6514
6464
|
*/},{key:"postAnalyticsFlowsActivityQuery",value:function postAnalyticsFlowsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
6515
6465
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6516
6466
|
* Query for flow aggregates asynchronously
|
|
@@ -6531,7 +6481,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6531
6481
|
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(){/**
|
|
6532
6482
|
* Gamification service.
|
|
6533
6483
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
6534
|
-
* @version
|
|
6484
|
+
* @version 193.0.0
|
|
6535
6485
|
*/ /**
|
|
6536
6486
|
* Constructs a new GamificationApi.
|
|
6537
6487
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -7071,7 +7021,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7071
7021
|
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(){/**
|
|
7072
7022
|
* GeneralDataProtectionRegulation service.
|
|
7073
7023
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
7074
|
-
* @version
|
|
7024
|
+
* @version 193.0.0
|
|
7075
7025
|
*/ /**
|
|
7076
7026
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
7077
7027
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -7106,7 +7056,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
7106
7056
|
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(){/**
|
|
7107
7057
|
* Geolocation service.
|
|
7108
7058
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
7109
|
-
* @version
|
|
7059
|
+
* @version 193.0.0
|
|
7110
7060
|
*/ /**
|
|
7111
7061
|
* Constructs a new GeolocationApi.
|
|
7112
7062
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -7140,7 +7090,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
7140
7090
|
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(){/**
|
|
7141
7091
|
* Greetings service.
|
|
7142
7092
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
7143
|
-
* @version
|
|
7093
|
+
* @version 193.0.0
|
|
7144
7094
|
*/ /**
|
|
7145
7095
|
* Constructs a new GreetingsApi.
|
|
7146
7096
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -7247,7 +7197,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
7247
7197
|
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(){/**
|
|
7248
7198
|
* Groups service.
|
|
7249
7199
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
7250
|
-
* @version
|
|
7200
|
+
* @version 193.0.0
|
|
7251
7201
|
*/ /**
|
|
7252
7202
|
* Constructs a new GroupsApi.
|
|
7253
7203
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -7380,7 +7330,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
7380
7330
|
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(){/**
|
|
7381
7331
|
* IdentityProvider service.
|
|
7382
7332
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
7383
|
-
* @version
|
|
7333
|
+
* @version 193.0.0
|
|
7384
7334
|
*/ /**
|
|
7385
7335
|
* Constructs a new IdentityProviderApi.
|
|
7386
7336
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -7536,7 +7486,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7536
7486
|
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(){/**
|
|
7537
7487
|
* InfrastructureAsCode service.
|
|
7538
7488
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
7539
|
-
* @version
|
|
7489
|
+
* @version 193.0.0
|
|
7540
7490
|
*/ /**
|
|
7541
7491
|
* Constructs a new InfrastructureAsCodeApi.
|
|
7542
7492
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -7590,7 +7540,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
7590
7540
|
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(){/**
|
|
7591
7541
|
* Integrations service.
|
|
7592
7542
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
7593
|
-
* @version
|
|
7543
|
+
* @version 193.0.0
|
|
7594
7544
|
*/ /**
|
|
7595
7545
|
* Constructs a new IntegrationsApi.
|
|
7596
7546
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -8201,7 +8151,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
|
|
|
8201
8151
|
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(){/**
|
|
8202
8152
|
* Journey service.
|
|
8203
8153
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
8204
|
-
* @version
|
|
8154
|
+
* @version 193.0.0
|
|
8205
8155
|
*/ /**
|
|
8206
8156
|
* Constructs a new JourneyApi.
|
|
8207
8157
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -8589,7 +8539,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8589
8539
|
*/},{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(){/**
|
|
8590
8540
|
* Knowledge service.
|
|
8591
8541
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
8592
|
-
* @version
|
|
8542
|
+
* @version 193.0.0
|
|
8593
8543
|
*/ /**
|
|
8594
8544
|
* Constructs a new KnowledgeApi.
|
|
8595
8545
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -9501,7 +9451,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9501
9451
|
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(){/**
|
|
9502
9452
|
* LanguageUnderstanding service.
|
|
9503
9453
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
9504
|
-
* @version
|
|
9454
|
+
* @version 193.0.0
|
|
9505
9455
|
*/ /**
|
|
9506
9456
|
* Constructs a new LanguageUnderstandingApi.
|
|
9507
9457
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -9761,7 +9711,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
|
|
|
9761
9711
|
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(){/**
|
|
9762
9712
|
* Languages service.
|
|
9763
9713
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
9764
|
-
* @version
|
|
9714
|
+
* @version 193.0.0
|
|
9765
9715
|
*/ /**
|
|
9766
9716
|
* Constructs a new LanguagesApi.
|
|
9767
9717
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -9816,7 +9766,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
9816
9766
|
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(){/**
|
|
9817
9767
|
* Learning service.
|
|
9818
9768
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
9819
|
-
* @version
|
|
9769
|
+
* @version 193.0.0
|
|
9820
9770
|
*/ /**
|
|
9821
9771
|
* Constructs a new LearningApi.
|
|
9822
9772
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -10045,7 +9995,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
|
|
|
10045
9995
|
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(){/**
|
|
10046
9996
|
* License service.
|
|
10047
9997
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
10048
|
-
* @version
|
|
9998
|
+
* @version 193.0.0
|
|
10049
9999
|
*/ /**
|
|
10050
10000
|
* Constructs a new LicenseApi.
|
|
10051
10001
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -10099,7 +10049,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
10099
10049
|
*/},{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(){/**
|
|
10100
10050
|
* Locations service.
|
|
10101
10051
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
10102
|
-
* @version
|
|
10052
|
+
* @version 193.0.0
|
|
10103
10053
|
*/ /**
|
|
10104
10054
|
* Constructs a new LocationsApi.
|
|
10105
10055
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -10158,7 +10108,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10158
10108
|
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(){/**
|
|
10159
10109
|
* LogCapture service.
|
|
10160
10110
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
10161
|
-
* @version
|
|
10111
|
+
* @version 193.0.0
|
|
10162
10112
|
*/ /**
|
|
10163
10113
|
* Constructs a new LogCaptureApi.
|
|
10164
10114
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -10208,7 +10158,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
10208
10158
|
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(){/**
|
|
10209
10159
|
* Messaging service.
|
|
10210
10160
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
10211
|
-
* @version
|
|
10161
|
+
* @version 193.0.0
|
|
10212
10162
|
*/ /**
|
|
10213
10163
|
* Constructs a new MessagingApi.
|
|
10214
10164
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -10298,7 +10248,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10298
10248
|
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(){/**
|
|
10299
10249
|
* MobileDevices service.
|
|
10300
10250
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
10301
|
-
* @version
|
|
10251
|
+
* @version 193.0.0
|
|
10302
10252
|
*/ /**
|
|
10303
10253
|
* Constructs a new MobileDevicesApi.
|
|
10304
10254
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -10337,7 +10287,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10337
10287
|
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(){/**
|
|
10338
10288
|
* Notifications service.
|
|
10339
10289
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
10340
|
-
* @version
|
|
10290
|
+
* @version 193.0.0
|
|
10341
10291
|
*/ /**
|
|
10342
10292
|
* Constructs a new NotificationsApi.
|
|
10343
10293
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -10394,7 +10344,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
|
|
|
10394
10344
|
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(){/**
|
|
10395
10345
|
* OAuth service.
|
|
10396
10346
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
10397
|
-
* @version
|
|
10347
|
+
* @version 193.0.0
|
|
10398
10348
|
*/ /**
|
|
10399
10349
|
* Constructs a new OAuthApi.
|
|
10400
10350
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -10479,7 +10429,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
10479
10429
|
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(){/**
|
|
10480
10430
|
* Objects service.
|
|
10481
10431
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
10482
|
-
* @version
|
|
10432
|
+
* @version 193.0.0
|
|
10483
10433
|
*/ /**
|
|
10484
10434
|
* Constructs a new ObjectsApi.
|
|
10485
10435
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -10550,7 +10500,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
10550
10500
|
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(){/**
|
|
10551
10501
|
* OperationalEvents service.
|
|
10552
10502
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
10553
|
-
* @version
|
|
10503
|
+
* @version 193.0.0
|
|
10554
10504
|
*/ /**
|
|
10555
10505
|
* Constructs a new OperationalEventsApi.
|
|
10556
10506
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -10568,7 +10518,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
10568
10518
|
*/},{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(){/**
|
|
10569
10519
|
* Organization service.
|
|
10570
10520
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
10571
|
-
* @version
|
|
10521
|
+
* @version 193.0.0
|
|
10572
10522
|
*/ /**
|
|
10573
10523
|
* Constructs a new OrganizationApi.
|
|
10574
10524
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -10610,6 +10560,9 @@ if(requestId===undefined||requestId===null){throw'Missing the required parameter
|
|
|
10610
10560
|
* Get limit documentation
|
|
10611
10561
|
*
|
|
10612
10562
|
*/},{key:"getOrganizationsLimitsDocs",value:function getOrganizationsLimitsDocs(){return this.apiClient.callApi('/api/v2/organizations/limits/docs','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10563
|
+
* Get free trial limit documentation
|
|
10564
|
+
*
|
|
10565
|
+
*/},{key:"getOrganizationsLimitsDocsFreetrial",value:function getOrganizationsLimitsDocsFreetrial(){return this.apiClient.callApi('/api/v2/organizations/limits/docs/freetrial','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10613
10566
|
* Get the effective limits in a namespace for an organization
|
|
10614
10567
|
*
|
|
10615
10568
|
* @param {String} namespaceName The namespace to fetch limits for
|
|
@@ -10670,7 +10623,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10670
10623
|
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(){/**
|
|
10671
10624
|
* OrganizationAuthorization service.
|
|
10672
10625
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
10673
|
-
* @version
|
|
10626
|
+
* @version 193.0.0
|
|
10674
10627
|
*/ /**
|
|
10675
10628
|
* Constructs a new OrganizationAuthorizationApi.
|
|
10676
10629
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -10993,7 +10946,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
10993
10946
|
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(){/**
|
|
10994
10947
|
* Outbound service.
|
|
10995
10948
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
10996
|
-
* @version
|
|
10949
|
+
* @version 193.0.0
|
|
10997
10950
|
*/ /**
|
|
10998
10951
|
* Constructs a new OutboundApi.
|
|
10999
10952
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -12032,7 +11985,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12032
11985
|
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(){/**
|
|
12033
11986
|
* Presence service.
|
|
12034
11987
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
12035
|
-
* @version
|
|
11988
|
+
* @version 193.0.0
|
|
12036
11989
|
*/ /**
|
|
12037
11990
|
* Constructs a new PresenceApi.
|
|
12038
11991
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -12205,7 +12158,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12205
12158
|
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(){/**
|
|
12206
12159
|
* ProcessAutomation service.
|
|
12207
12160
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
12208
|
-
* @version
|
|
12161
|
+
* @version 193.0.0
|
|
12209
12162
|
*/ /**
|
|
12210
12163
|
* Constructs a new ProcessAutomationApi.
|
|
12211
12164
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -12268,7 +12221,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
|
|
|
12268
12221
|
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(){/**
|
|
12269
12222
|
* Quality service.
|
|
12270
12223
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
12271
|
-
* @version
|
|
12224
|
+
* @version 193.0.0
|
|
12272
12225
|
*/ /**
|
|
12273
12226
|
* Constructs a new QualityApi.
|
|
12274
12227
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -12406,7 +12359,7 @@ if(transactionId===undefined||transactionId===null){throw'Missing the required p
|
|
|
12406
12359
|
*/},{key:"getQualityConversationsAuditsQueryTransactionIdResults",value:function getQualityConversationsAuditsQueryTransactionIdResults(transactionId,opts){opts=opts||{};// verify the required parameter 'transactionId' is set
|
|
12407
12360
|
if(transactionId===undefined||transactionId===null){throw'Missing the required parameter "transactionId" when calling getQualityConversationsAuditsQueryTransactionIdResults';}return this.apiClient.callApi('/api/v2/quality/conversations/audits/query/{transactionId}/results','GET',{'transactionId':transactionId},{'cursor':opts['cursor'],'pageSize':opts['pageSize'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12408
12361
|
* Queries Evaluations and returns a paged list
|
|
12409
|
-
* Query params must include one of conversationId, evaluatorUserId, agentUserId or assigneeUserId. When querying by agentUserId (and not conversationId or evaluatorUserId), the results are sorted by release date. Evaluations set to Never Release are omitted in this case. When querying by evaluatorUserId or conversationId (including when combined with agentUserId), the results are sorted by assigned date. NOTE: The count for total and pageCount might not be accurate when querying for a large number of evaluations. nextUri, if present, will indicate that there are more evaluations to fetch.
|
|
12362
|
+
* Query params must include one of conversationId, evaluatorUserId, agentUserId or assigneeUserId. When querying by agentUserId (and not conversationId or evaluatorUserId), the results are sorted by release date. Evaluations set to Never Release are omitted in this case. When querying by evaluatorUserId or conversationId (including when combined with agentUserId), the results are sorted by assigned date. NOTE: The count for total and pageCount might not be accurate when querying for a large number of evaluations. nextUri, if present, will indicate that there are more evaluations to fetch. The evaluation entities contained in the response might only contain a subset of all the properties listed below. It is often because a given propertys value has not yet been populated or is not applicable in the current state of the evaluation. It might also be because the missing property in the response was not requested by the user.
|
|
12410
12363
|
* @param {Object} opts Optional parameters
|
|
12411
12364
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
12412
12365
|
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
@@ -12426,7 +12379,7 @@ if(transactionId===undefined||transactionId===null){throw'Missing the required p
|
|
|
12426
12379
|
* @param {Array.<String>} opts.evaluationState
|
|
12427
12380
|
* @param {Boolean} opts.isReleased the evaluation has been released
|
|
12428
12381
|
* @param {Boolean} opts.agentHasRead agent has the evaluation
|
|
12429
|
-
* @param {Boolean} opts.expandAnswerTotalScores get the total scores for evaluations
|
|
12382
|
+
* @param {Boolean} opts.expandAnswerTotalScores get the total scores for evaluations. NOTE: The answers will only be populated if this parameter is set to true in the request.
|
|
12430
12383
|
* @param {Number} opts.maximum the maximum number of results to return
|
|
12431
12384
|
* @param {String} opts.sortOrder NOTE: Does not work when conversationId is supplied.
|
|
12432
12385
|
*/},{key:"getQualityEvaluationsQuery",value:function getQualityEvaluationsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/evaluations/query','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'nextPage':opts['nextPage'],'previousPage':opts['previousPage'],'conversationId':opts['conversationId'],'agentUserId':opts['agentUserId'],'agentTeamId':opts['agentTeamId'],'evaluatorUserId':opts['evaluatorUserId'],'assigneeUserId':opts['assigneeUserId'],'queueId':opts['queueId'],'startTime':opts['startTime'],'endTime':opts['endTime'],'formContextId':opts['formContextId'],'evaluationState':this.apiClient.buildCollectionParam(opts['evaluationState'],'multi'),'isReleased':opts['isReleased'],'agentHasRead':opts['agentHasRead'],'expandAnswerTotalScores':opts['expandAnswerTotalScores'],'maximum':opts['maximum'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -12739,7 +12692,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
12739
12692
|
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(){/**
|
|
12740
12693
|
* Recording service.
|
|
12741
12694
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
12742
|
-
* @version
|
|
12695
|
+
* @version 193.0.0
|
|
12743
12696
|
*/ /**
|
|
12744
12697
|
* Constructs a new RecordingApi.
|
|
12745
12698
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -13150,7 +13103,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13150
13103
|
*/},{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(){/**
|
|
13151
13104
|
* ResponseManagement service.
|
|
13152
13105
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
13153
|
-
* @version
|
|
13106
|
+
* @version 193.0.0
|
|
13154
13107
|
*/ /**
|
|
13155
13108
|
* Constructs a new ResponseManagementApi.
|
|
13156
13109
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -13271,7 +13224,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
|
|
|
13271
13224
|
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(){/**
|
|
13272
13225
|
* Routing service.
|
|
13273
13226
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
13274
|
-
* @version
|
|
13227
|
+
* @version 193.0.0
|
|
13275
13228
|
*/ /**
|
|
13276
13229
|
* Constructs a new RoutingApi.
|
|
13277
13230
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -14004,7 +13957,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14004
13957
|
* @param {Object} opts Optional parameters
|
|
14005
13958
|
* @param {Number} opts.pageSize The desired page size
|
|
14006
13959
|
* @param {Number} opts.pageNumber The desired page number
|
|
14007
|
-
* postAnalyticsRoutingActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
14008
13960
|
*/},{key:"postAnalyticsRoutingActivityQuery",value:function postAnalyticsRoutingActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
14009
13961
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/routing/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14010
13962
|
* Create a benefit assessment.
|
|
@@ -14246,7 +14198,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14246
14198
|
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(){/**
|
|
14247
14199
|
* SCIM service.
|
|
14248
14200
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
14249
|
-
* @version
|
|
14201
|
+
* @version 193.0.0
|
|
14250
14202
|
*/ /**
|
|
14251
14203
|
* Constructs a new SCIMApi.
|
|
14252
14204
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -14471,7 +14423,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14471
14423
|
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(){/**
|
|
14472
14424
|
* ScreenRecording service.
|
|
14473
14425
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
14474
|
-
* @version
|
|
14426
|
+
* @version 193.0.0
|
|
14475
14427
|
*/ /**
|
|
14476
14428
|
* Constructs a new ScreenRecordingApi.
|
|
14477
14429
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -14486,7 +14438,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14486
14438
|
*/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(){/**
|
|
14487
14439
|
* Scripts service.
|
|
14488
14440
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
14489
|
-
* @version
|
|
14441
|
+
* @version 193.0.0
|
|
14490
14442
|
*/ /**
|
|
14491
14443
|
* Constructs a new ScriptsApi.
|
|
14492
14444
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -14622,7 +14574,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
14622
14574
|
*/},{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(){/**
|
|
14623
14575
|
* Search service.
|
|
14624
14576
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
14625
|
-
* @version
|
|
14577
|
+
* @version 193.0.0
|
|
14626
14578
|
*/ /**
|
|
14627
14579
|
* Constructs a new SearchApi.
|
|
14628
14580
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -14782,7 +14734,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14782
14734
|
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(){/**
|
|
14783
14735
|
* Settings service.
|
|
14784
14736
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
14785
|
-
* @version
|
|
14737
|
+
* @version 193.0.0
|
|
14786
14738
|
*/ /**
|
|
14787
14739
|
* Constructs a new SettingsApi.
|
|
14788
14740
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -14810,7 +14762,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14810
14762
|
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(){/**
|
|
14811
14763
|
* SpeechTextAnalytics service.
|
|
14812
14764
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
14813
|
-
* @version
|
|
14765
|
+
* @version 193.0.0
|
|
14814
14766
|
*/ /**
|
|
14815
14767
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
14816
14768
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -15054,7 +15006,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
15054
15006
|
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(){/**
|
|
15055
15007
|
* Stations service.
|
|
15056
15008
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
15057
|
-
* @version
|
|
15009
|
+
* @version 193.0.0
|
|
15058
15010
|
*/ /**
|
|
15059
15011
|
* Constructs a new StationsApi.
|
|
15060
15012
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -15086,7 +15038,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
15086
15038
|
*/},{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(){/**
|
|
15087
15039
|
* Suggest service.
|
|
15088
15040
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
15089
|
-
* @version
|
|
15041
|
+
* @version 193.0.0
|
|
15090
15042
|
*/ /**
|
|
15091
15043
|
* Constructs a new SuggestApi.
|
|
15092
15044
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -15126,7 +15078,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15126
15078
|
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(){/**
|
|
15127
15079
|
* TaskManagement service.
|
|
15128
15080
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
15129
|
-
* @version
|
|
15081
|
+
* @version 193.0.0
|
|
15130
15082
|
*/ /**
|
|
15131
15083
|
* Constructs a new TaskManagementApi.
|
|
15132
15084
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -15137,39 +15089,33 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15137
15089
|
* Delete a workbin
|
|
15138
15090
|
*
|
|
15139
15091
|
* @param {String} workbinId Workbin ID
|
|
15140
|
-
* deleteTaskmanagementWorkbin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15141
15092
|
*/return _createClass(TaskManagementApi,[{key:"deleteTaskmanagementWorkbin",value:function deleteTaskmanagementWorkbin(workbinId){// verify the required parameter 'workbinId' is set
|
|
15142
15093
|
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']);}/**
|
|
15143
15094
|
* Delete a workitem
|
|
15144
15095
|
*
|
|
15145
15096
|
* @param {String} workitemId Workitem ID
|
|
15146
|
-
* deleteTaskmanagementWorkitem is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15147
15097
|
*/},{key:"deleteTaskmanagementWorkitem",value:function deleteTaskmanagementWorkitem(workitemId){// verify the required parameter 'workitemId' is set
|
|
15148
15098
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling deleteTaskmanagementWorkitem';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}','DELETE',{'workitemId':workitemId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15149
15099
|
* Delete a schema
|
|
15150
15100
|
*
|
|
15151
15101
|
* @param {String} schemaId Schema ID
|
|
15152
|
-
* deleteTaskmanagementWorkitemsSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15153
15102
|
*/},{key:"deleteTaskmanagementWorkitemsSchema",value:function deleteTaskmanagementWorkitemsSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
15154
15103
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling deleteTaskmanagementWorkitemsSchema';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}','DELETE',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15155
15104
|
* Delete a worktype
|
|
15156
15105
|
*
|
|
15157
15106
|
* @param {String} worktypeId Worktype id
|
|
15158
|
-
* deleteTaskmanagementWorktype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15159
15107
|
*/},{key:"deleteTaskmanagementWorktype",value:function deleteTaskmanagementWorktype(worktypeId){// verify the required parameter 'worktypeId' is set
|
|
15160
15108
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktype';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}','DELETE',{'worktypeId':worktypeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15161
15109
|
* Delete a status
|
|
15162
15110
|
*
|
|
15163
15111
|
* @param {String} worktypeId Worktype id
|
|
15164
15112
|
* @param {String} statusId Status id
|
|
15165
|
-
* deleteTaskmanagementWorktypeStatus is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15166
15113
|
*/},{key:"deleteTaskmanagementWorktypeStatus",value:function deleteTaskmanagementWorktypeStatus(worktypeId,statusId){// verify the required parameter 'worktypeId' is set
|
|
15167
15114
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
|
|
15168
15115
|
if(statusId===undefined||statusId===null){throw'Missing the required parameter "statusId" when calling deleteTaskmanagementWorktypeStatus';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}','DELETE',{'worktypeId':worktypeId,'statusId':statusId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15169
15116
|
* Get a workbin
|
|
15170
15117
|
*
|
|
15171
15118
|
* @param {String} workbinId Workbin ID
|
|
15172
|
-
* getTaskmanagementWorkbin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15173
15119
|
*/},{key:"getTaskmanagementWorkbin",value:function getTaskmanagementWorkbin(workbinId){// verify the required parameter 'workbinId' is set
|
|
15174
15120
|
if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbin';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}','GET',{'workbinId':workbinId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15175
15121
|
* Get a listing of a workbin's attribute change history
|
|
@@ -15205,7 +15151,6 @@ if(workbinId===undefined||workbinId===null){throw'Missing the required parameter
|
|
|
15205
15151
|
* @param {String} workitemId Workitem ID
|
|
15206
15152
|
* @param {Object} opts Optional parameters
|
|
15207
15153
|
* @param {Object} opts.expands Which fields to expand. Comma separated if more than one.
|
|
15208
|
-
* getTaskmanagementWorkitem is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15209
15154
|
*/},{key:"getTaskmanagementWorkitem",value:function getTaskmanagementWorkitem(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
15210
15155
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitem';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}','GET',{'workitemId':workitemId},{'expands':opts['expands']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15211
15156
|
* Get a listing of a workitem's attribute change history
|
|
@@ -15227,7 +15172,6 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
|
|
|
15227
15172
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
15228
15173
|
* @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 50. (default to 25)
|
|
15229
15174
|
* @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
|
|
15230
|
-
* getTaskmanagementWorkitemUserWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15231
15175
|
*/},{key:"getTaskmanagementWorkitemUserWrapups",value:function getTaskmanagementWorkitemUserWrapups(workitemId,userId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
15232
15176
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';}// verify the required parameter 'userId' is set
|
|
15233
15177
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getTaskmanagementWorkitemUserWrapups';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/users/{userId}/wrapups','GET',{'workitemId':workitemId,'userId':userId},{'expands':opts['expands'],'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15257,51 +15201,43 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
|
|
|
15257
15201
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
15258
15202
|
* @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 50. (default to 25)
|
|
15259
15203
|
* @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
|
|
15260
|
-
* getTaskmanagementWorkitemWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15261
15204
|
*/},{key:"getTaskmanagementWorkitemWrapups",value:function getTaskmanagementWorkitemWrapups(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
15262
15205
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemWrapups';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/wrapups','GET',{'workitemId':workitemId},{'expands':opts['expands'],'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15263
15206
|
* Get the workitem query job associated with the job id.
|
|
15264
15207
|
*
|
|
15265
15208
|
* @param {String} jobId jobId
|
|
15266
|
-
* getTaskmanagementWorkitemsQueryJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15267
15209
|
*/},{key:"getTaskmanagementWorkitemsQueryJob",value:function getTaskmanagementWorkitemsQueryJob(jobId){// verify the required parameter 'jobId' is set
|
|
15268
15210
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJob';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/query/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15269
15211
|
* Get results from for workitem query job
|
|
15270
15212
|
*
|
|
15271
15213
|
* @param {String} jobId jobId
|
|
15272
|
-
* getTaskmanagementWorkitemsQueryJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15273
15214
|
*/},{key:"getTaskmanagementWorkitemsQueryJobResults",value:function getTaskmanagementWorkitemsQueryJobResults(jobId){// verify the required parameter 'jobId' is set
|
|
15274
15215
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJobResults';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/query/jobs/{jobId}/results','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15275
15216
|
* Get a schema
|
|
15276
15217
|
*
|
|
15277
15218
|
* @param {String} schemaId Schema ID
|
|
15278
|
-
* getTaskmanagementWorkitemsSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15279
15219
|
*/},{key:"getTaskmanagementWorkitemsSchema",value:function getTaskmanagementWorkitemsSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
15280
15220
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchema';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}','GET',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15281
15221
|
* Get a specific version of a schema
|
|
15282
15222
|
*
|
|
15283
15223
|
* @param {String} schemaId Schema ID
|
|
15284
15224
|
* @param {String} versionId Schema version
|
|
15285
|
-
* getTaskmanagementWorkitemsSchemaVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15286
15225
|
*/},{key:"getTaskmanagementWorkitemsSchemaVersion",value:function getTaskmanagementWorkitemsSchemaVersion(schemaId,versionId){// verify the required parameter 'schemaId' is set
|
|
15287
15226
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';}// verify the required parameter 'versionId' is set
|
|
15288
15227
|
if(versionId===undefined||versionId===null){throw'Missing the required parameter "versionId" when calling getTaskmanagementWorkitemsSchemaVersion';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}/versions/{versionId}','GET',{'schemaId':schemaId,'versionId':versionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15289
15228
|
* Get all versions of a schema
|
|
15290
15229
|
*
|
|
15291
15230
|
* @param {String} schemaId Schema ID
|
|
15292
|
-
* getTaskmanagementWorkitemsSchemaVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15293
15231
|
*/},{key:"getTaskmanagementWorkitemsSchemaVersions",value:function getTaskmanagementWorkitemsSchemaVersions(schemaId){// verify the required parameter 'schemaId' is set
|
|
15294
15232
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersions';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}/versions','GET',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15295
15233
|
* Get a list of schemas.
|
|
15296
15234
|
*
|
|
15297
|
-
* getTaskmanagementWorkitemsSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15298
15235
|
*/},{key:"getTaskmanagementWorkitemsSchemas",value:function getTaskmanagementWorkitemsSchemas(){return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15299
15236
|
* Get a worktype
|
|
15300
15237
|
*
|
|
15301
15238
|
* @param {String} worktypeId Worktype id
|
|
15302
15239
|
* @param {Object} opts Optional parameters
|
|
15303
15240
|
* @param {Array.<String>} opts.expands Which fields, if any, to expand.
|
|
15304
|
-
* getTaskmanagementWorktype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15305
15241
|
*/},{key:"getTaskmanagementWorktype",value:function getTaskmanagementWorktype(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
15306
15242
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktype';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}','GET',{'worktypeId':worktypeId},{'expands':this.apiClient.buildCollectionParam(opts['expands'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15307
15243
|
* Get a listing of a worktype's attribute change history
|
|
@@ -15318,14 +15254,12 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
|
|
|
15318
15254
|
*
|
|
15319
15255
|
* @param {String} worktypeId Worktype id
|
|
15320
15256
|
* @param {String} statusId Status id
|
|
15321
|
-
* getTaskmanagementWorktypeStatus is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15322
15257
|
*/},{key:"getTaskmanagementWorktypeStatus",value:function getTaskmanagementWorktypeStatus(worktypeId,statusId){// verify the required parameter 'worktypeId' is set
|
|
15323
15258
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
|
|
15324
15259
|
if(statusId===undefined||statusId===null){throw'Missing the required parameter "statusId" when calling getTaskmanagementWorktypeStatus';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}','GET',{'worktypeId':worktypeId,'statusId':statusId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15325
15260
|
* Get list of statuses for this worktype.
|
|
15326
15261
|
*
|
|
15327
15262
|
* @param {String} worktypeId Worktype id
|
|
15328
|
-
* getTaskmanagementWorktypeStatuses is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15329
15263
|
*/},{key:"getTaskmanagementWorktypeStatuses",value:function getTaskmanagementWorktypeStatuses(worktypeId){// verify the required parameter 'worktypeId' is set
|
|
15330
15264
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatuses';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses','GET',{'worktypeId':worktypeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15331
15265
|
* Get a version of a worktype
|
|
@@ -15350,7 +15284,6 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
|
|
|
15350
15284
|
*
|
|
15351
15285
|
* @param {String} workbinId Workbin ID
|
|
15352
15286
|
* @param {Object} body Json with attributes and their new values: {description:new description, name:new name}.
|
|
15353
|
-
* patchTaskmanagementWorkbin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15354
15287
|
*/},{key:"patchTaskmanagementWorkbin",value:function patchTaskmanagementWorkbin(workbinId,body){// verify the required parameter 'workbinId' is set
|
|
15355
15288
|
if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';}// verify the required parameter 'body' is set
|
|
15356
15289
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchTaskmanagementWorkbin';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}','PATCH',{'workbinId':workbinId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15358,7 +15291,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15358
15291
|
*
|
|
15359
15292
|
* @param {String} workitemId Workitem ID
|
|
15360
15293
|
* @param {Object} body Workitem
|
|
15361
|
-
* patchTaskmanagementWorkitem is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15362
15294
|
*/},{key:"patchTaskmanagementWorkitem",value:function patchTaskmanagementWorkitem(workitemId,body){// verify the required parameter 'workitemId' is set
|
|
15363
15295
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';}// verify the required parameter 'body' is set
|
|
15364
15296
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitem';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}','PATCH',{'workitemId':workitemId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15366,7 +15298,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15366
15298
|
*
|
|
15367
15299
|
* @param {String} workitemId Workitem ID
|
|
15368
15300
|
* @param {Object} body Targeted user
|
|
15369
|
-
* patchTaskmanagementWorkitemAssignment is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15370
15301
|
*/},{key:"patchTaskmanagementWorkitemAssignment",value:function patchTaskmanagementWorkitemAssignment(workitemId,body){// verify the required parameter 'workitemId' is set
|
|
15371
15302
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';}// verify the required parameter 'body' is set
|
|
15372
15303
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemAssignment';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/assignment','PATCH',{'workitemId':workitemId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15375,7 +15306,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15375
15306
|
* @param {String} workitemId The ID of the Workitem.
|
|
15376
15307
|
* @param {String} userId The ID of the user
|
|
15377
15308
|
* @param {Object} body Request body to add/remove a wrapup code for a workitem
|
|
15378
|
-
* patchTaskmanagementWorkitemUserWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15379
15309
|
*/},{key:"patchTaskmanagementWorkitemUserWrapups",value:function patchTaskmanagementWorkitemUserWrapups(workitemId,userId,body){// verify the required parameter 'workitemId' is set
|
|
15380
15310
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';}// verify the required parameter 'userId' is set
|
|
15381
15311
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';}// verify the required parameter 'body' is set
|
|
@@ -15384,7 +15314,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15384
15314
|
*
|
|
15385
15315
|
* @param {String} workitemId The ID of the Workitem.
|
|
15386
15316
|
* @param {Object} body Request body to add/remove the wrapup code for workitem
|
|
15387
|
-
* patchTaskmanagementWorkitemUsersMeWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15388
15317
|
*/},{key:"patchTaskmanagementWorkitemUsersMeWrapups",value:function patchTaskmanagementWorkitemUsersMeWrapups(workitemId,body){// verify the required parameter 'workitemId' is set
|
|
15389
15318
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';}// verify the required parameter 'body' is set
|
|
15390
15319
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemUsersMeWrapups';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/users/me/wrapups','PATCH',{'workitemId':workitemId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15393,7 +15322,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15393
15322
|
* @param {String} worktypeId Worktype id
|
|
15394
15323
|
* @param {Object} opts Optional parameters
|
|
15395
15324
|
* @param {Object} opts.body body
|
|
15396
|
-
* patchTaskmanagementWorktype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15397
15325
|
*/},{key:"patchTaskmanagementWorktype",value:function patchTaskmanagementWorktype(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
15398
15326
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}','PATCH',{'worktypeId':worktypeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15399
15327
|
* Update the attributes of a status
|
|
@@ -15402,7 +15330,6 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
|
|
|
15402
15330
|
* @param {String} statusId Status id
|
|
15403
15331
|
* @param {Object} opts Optional parameters
|
|
15404
15332
|
* @param {Object} opts.body body
|
|
15405
|
-
* patchTaskmanagementWorktypeStatus is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15406
15333
|
*/},{key:"patchTaskmanagementWorktypeStatus",value:function patchTaskmanagementWorktypeStatus(worktypeId,statusId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
15407
15334
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
|
|
15408
15335
|
if(statusId===undefined||statusId===null){throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}','PATCH',{'worktypeId':worktypeId,'statusId':statusId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15410,24 +15337,20 @@ if(statusId===undefined||statusId===null){throw'Missing the required parameter "
|
|
|
15410
15337
|
*
|
|
15411
15338
|
* @param {Object} opts Optional parameters
|
|
15412
15339
|
* @param {Object} opts.body body
|
|
15413
|
-
* postTaskmanagementWorkbins is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15414
15340
|
*/},{key:"postTaskmanagementWorkbins",value:function postTaskmanagementWorkbins(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/taskmanagement/workbins','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15415
15341
|
* Query for workbins
|
|
15416
15342
|
*
|
|
15417
15343
|
* @param {Object} body QueryPostRequest
|
|
15418
|
-
* postTaskmanagementWorkbinsQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15419
15344
|
*/},{key:"postTaskmanagementWorkbinsQuery",value:function postTaskmanagementWorkbinsQuery(body){// verify the required parameter 'body' is set
|
|
15420
15345
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorkbinsQuery';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15421
15346
|
* Cancel the assignment process for a workitem that is currently queued for assignment through ACD.
|
|
15422
15347
|
*
|
|
15423
15348
|
* @param {String} workitemId Workitem ID
|
|
15424
|
-
* postTaskmanagementWorkitemAcdCancel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15425
15349
|
*/},{key:"postTaskmanagementWorkitemAcdCancel",value:function postTaskmanagementWorkitemAcdCancel(workitemId){// verify the required parameter 'workitemId' is set
|
|
15426
15350
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemAcdCancel';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/acd/cancel','POST',{'workitemId':workitemId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15427
15351
|
* Disconnect the assignee of the workitem
|
|
15428
15352
|
*
|
|
15429
15353
|
* @param {String} workitemId Workitem ID
|
|
15430
|
-
* postTaskmanagementWorkitemDisconnect is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15431
15354
|
*/},{key:"postTaskmanagementWorkitemDisconnect",value:function postTaskmanagementWorkitemDisconnect(workitemId){// verify the required parameter 'workitemId' is set
|
|
15432
15355
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemDisconnect';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/disconnect','POST',{'workitemId':workitemId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15433
15356
|
* Terminate a workitem
|
|
@@ -15435,13 +15358,11 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
|
|
|
15435
15358
|
* @param {String} workitemId Workitem ID
|
|
15436
15359
|
* @param {Object} opts Optional parameters
|
|
15437
15360
|
* @param {Object} opts.body Terminated request
|
|
15438
|
-
* postTaskmanagementWorkitemTerminate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15439
15361
|
*/},{key:"postTaskmanagementWorkitemTerminate",value:function postTaskmanagementWorkitemTerminate(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
15440
15362
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemTerminate';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/terminate','POST',{'workitemId':workitemId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15441
15363
|
* Create a workitem
|
|
15442
15364
|
*
|
|
15443
15365
|
* @param {Object} body Workitem
|
|
15444
|
-
* postTaskmanagementWorkitems is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15445
15366
|
*/},{key:"postTaskmanagementWorkitems",value:function postTaskmanagementWorkitems(body){// verify the required parameter 'body' is set
|
|
15446
15367
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorkitems';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15447
15368
|
* Query for workitems
|
|
@@ -15453,13 +15374,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15453
15374
|
* Create a workitem query job
|
|
15454
15375
|
*
|
|
15455
15376
|
* @param {Object} body WorkitemQueryJobCreate
|
|
15456
|
-
* postTaskmanagementWorkitemsQueryJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15457
15377
|
*/},{key:"postTaskmanagementWorkitemsQueryJobs",value:function postTaskmanagementWorkitemsQueryJobs(body){// verify the required parameter 'body' is set
|
|
15458
15378
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsQueryJobs';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/query/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15459
15379
|
* Create a schema
|
|
15460
15380
|
*
|
|
15461
15381
|
* @param {Object} body Schema
|
|
15462
|
-
* postTaskmanagementWorkitemsSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15463
15382
|
*/},{key:"postTaskmanagementWorkitemsSchemas",value:function postTaskmanagementWorkitemsSchemas(body){// verify the required parameter 'body' is set
|
|
15464
15383
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsSchemas';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15465
15384
|
* Add a status to a worktype
|
|
@@ -15467,32 +15386,28 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15467
15386
|
* @param {String} worktypeId Worktype id
|
|
15468
15387
|
* @param {Object} opts Optional parameters
|
|
15469
15388
|
* @param {Object} opts.body body
|
|
15470
|
-
* postTaskmanagementWorktypeStatuses is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15471
15389
|
*/},{key:"postTaskmanagementWorktypeStatuses",value:function postTaskmanagementWorktypeStatuses(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
15472
15390
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses','POST',{'worktypeId':worktypeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15473
15391
|
* Create a worktype
|
|
15474
15392
|
*
|
|
15475
15393
|
* @param {Object} opts Optional parameters
|
|
15476
15394
|
* @param {Object} opts.body body
|
|
15477
|
-
* postTaskmanagementWorktypes is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15478
15395
|
*/},{key:"postTaskmanagementWorktypes",value:function postTaskmanagementWorktypes(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/taskmanagement/worktypes','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15479
15396
|
* Query for worktypes
|
|
15480
15397
|
*
|
|
15481
15398
|
* @param {Object} body QueryPostRequest
|
|
15482
|
-
* postTaskmanagementWorktypesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15483
15399
|
*/},{key:"postTaskmanagementWorktypesQuery",value:function postTaskmanagementWorktypesQuery(body){// verify the required parameter 'body' is set
|
|
15484
15400
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorktypesQuery';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15485
15401
|
* Update a schema
|
|
15486
15402
|
*
|
|
15487
15403
|
* @param {String} schemaId Schema ID
|
|
15488
15404
|
* @param {Object} body Data Schema
|
|
15489
|
-
* putTaskmanagementWorkitemsSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15490
15405
|
*/},{key:"putTaskmanagementWorkitemsSchema",value:function putTaskmanagementWorkitemsSchema(schemaId,body){// verify the required parameter 'schemaId' is set
|
|
15491
15406
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';}// verify the required parameter 'body' is set
|
|
15492
15407
|
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(){/**
|
|
15493
15408
|
* Teams service.
|
|
15494
15409
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
15495
|
-
* @version
|
|
15410
|
+
* @version 193.0.0
|
|
15496
15411
|
*/ /**
|
|
15497
15412
|
* Constructs a new TeamsApi.
|
|
15498
15413
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -15549,7 +15464,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15549
15464
|
* @param {Object} opts Optional parameters
|
|
15550
15465
|
* @param {Number} opts.pageSize The desired page size
|
|
15551
15466
|
* @param {Number} opts.pageNumber The desired page number
|
|
15552
|
-
* postAnalyticsTeamsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15553
15467
|
*/},{key:"postAnalyticsTeamsActivityQuery",value:function postAnalyticsTeamsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
15554
15468
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/teams/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15555
15469
|
* Add team members
|
|
@@ -15571,7 +15485,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15571
15485
|
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(){/**
|
|
15572
15486
|
* Telephony service.
|
|
15573
15487
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
15574
|
-
* @version
|
|
15488
|
+
* @version 193.0.0
|
|
15575
15489
|
*/ /**
|
|
15576
15490
|
* Constructs a new TelephonyApi.
|
|
15577
15491
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -15618,7 +15532,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
15618
15532
|
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(){/**
|
|
15619
15533
|
* TelephonyProvidersEdge service.
|
|
15620
15534
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
15621
|
-
* @version
|
|
15535
|
+
* @version 193.0.0
|
|
15622
15536
|
*/ /**
|
|
15623
15537
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
15624
15538
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -16428,7 +16342,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
|
|
|
16428
16342
|
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(){/**
|
|
16429
16343
|
* Textbots service.
|
|
16430
16344
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
16431
|
-
* @version
|
|
16345
|
+
* @version 193.0.0
|
|
16432
16346
|
*/ /**
|
|
16433
16347
|
* Constructs a new TextbotsApi.
|
|
16434
16348
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -16463,7 +16377,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
16463
16377
|
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(){/**
|
|
16464
16378
|
* Tokens service.
|
|
16465
16379
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
16466
|
-
* @version
|
|
16380
|
+
* @version 193.0.0
|
|
16467
16381
|
*/ /**
|
|
16468
16382
|
* Constructs a new TokensApi.
|
|
16469
16383
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -16497,7 +16411,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
16497
16411
|
*/},{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(){/**
|
|
16498
16412
|
* Uploads service.
|
|
16499
16413
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
16500
|
-
* @version
|
|
16414
|
+
* @version 193.0.0
|
|
16501
16415
|
*/ /**
|
|
16502
16416
|
* Constructs a new UploadsApi.
|
|
16503
16417
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -16563,7 +16477,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16563
16477
|
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(){/**
|
|
16564
16478
|
* Usage service.
|
|
16565
16479
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
16566
|
-
* @version
|
|
16480
|
+
* @version 193.0.0
|
|
16567
16481
|
*/ /**
|
|
16568
16482
|
* Constructs a new UsageApi.
|
|
16569
16483
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -16617,7 +16531,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16617
16531
|
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(){/**
|
|
16618
16532
|
* UserRecordings service.
|
|
16619
16533
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
16620
|
-
* @version
|
|
16534
|
+
* @version 193.0.0
|
|
16621
16535
|
*/ /**
|
|
16622
16536
|
* Constructs a new UserRecordingsApi.
|
|
16623
16537
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -16666,7 +16580,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
16666
16580
|
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(){/**
|
|
16667
16581
|
* Users service.
|
|
16668
16582
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
16669
|
-
* @version
|
|
16583
|
+
* @version 193.0.0
|
|
16670
16584
|
*/ /**
|
|
16671
16585
|
* Constructs a new UsersApi.
|
|
16672
16586
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -17102,7 +17016,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17102
17016
|
* @param {Object} opts Optional parameters
|
|
17103
17017
|
* @param {Number} opts.pageSize The desired page size
|
|
17104
17018
|
* @param {Number} opts.pageNumber The desired page number
|
|
17105
|
-
* postAnalyticsUsersActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
17106
17019
|
*/},{key:"postAnalyticsUsersActivityQuery",value:function postAnalyticsUsersActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
17107
17020
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/users/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17108
17021
|
* Query for user aggregates asynchronously
|
|
@@ -17329,7 +17242,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
|
|
|
17329
17242
|
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(){/**
|
|
17330
17243
|
* Utilities service.
|
|
17331
17244
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
17332
|
-
* @version
|
|
17245
|
+
* @version 193.0.0
|
|
17333
17246
|
*/ /**
|
|
17334
17247
|
* Constructs a new UtilitiesApi.
|
|
17335
17248
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -17356,7 +17269,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17356
17269
|
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(){/**
|
|
17357
17270
|
* Voicemail service.
|
|
17358
17271
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
17359
|
-
* @version
|
|
17272
|
+
* @version 193.0.0
|
|
17360
17273
|
*/ /**
|
|
17361
17274
|
* Constructs a new VoicemailApi.
|
|
17362
17275
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -17505,7 +17418,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
17505
17418
|
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(){/**
|
|
17506
17419
|
* WebChat service.
|
|
17507
17420
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
17508
|
-
* @version
|
|
17421
|
+
* @version 193.0.0
|
|
17509
17422
|
*/ /**
|
|
17510
17423
|
* Constructs a new WebChatApi.
|
|
17511
17424
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -17640,7 +17553,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17640
17553
|
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(){/**
|
|
17641
17554
|
* WebDeployments service.
|
|
17642
17555
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
17643
|
-
* @version
|
|
17556
|
+
* @version 193.0.0
|
|
17644
17557
|
*/ /**
|
|
17645
17558
|
* Constructs a new WebDeploymentsApi.
|
|
17646
17559
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -17761,7 +17674,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
17761
17674
|
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(){/**
|
|
17762
17675
|
* WebMessaging service.
|
|
17763
17676
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
17764
|
-
* @version
|
|
17677
|
+
* @version 193.0.0
|
|
17765
17678
|
*/ /**
|
|
17766
17679
|
* Constructs a new WebMessagingApi.
|
|
17767
17680
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -17777,7 +17690,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
17777
17690
|
*/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(){/**
|
|
17778
17691
|
* Widgets service.
|
|
17779
17692
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
17780
|
-
* @version
|
|
17693
|
+
* @version 193.0.0
|
|
17781
17694
|
*/ /**
|
|
17782
17695
|
* Constructs a new WidgetsApi.
|
|
17783
17696
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -17812,7 +17725,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
17812
17725
|
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(){/**
|
|
17813
17726
|
* WorkforceManagement service.
|
|
17814
17727
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
17815
|
-
* @version
|
|
17728
|
+
* @version 193.0.0
|
|
17816
17729
|
*/ /**
|
|
17817
17730
|
* Constructs a new WorkforceManagementApi.
|
|
17818
17731
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -18305,9 +18218,10 @@ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the requ
|
|
|
18305
18218
|
* @param {String} agentId The agent id
|
|
18306
18219
|
* @param {Object} opts Optional parameters
|
|
18307
18220
|
* @param {Boolean} opts.excludeCapabilities Excludes all capabilities of the agent such as queues, languages, and skills
|
|
18221
|
+
* @param {Array.<String>} opts.expand
|
|
18308
18222
|
*/},{key:"getWorkforcemanagementManagementunitAgent",value:function getWorkforcemanagementManagementunitAgent(managementUnitId,agentId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
18309
18223
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';}// verify the required parameter 'agentId' is set
|
|
18310
|
-
if(agentId===undefined||agentId===null){throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}','GET',{'managementUnitId':managementUnitId,'agentId':agentId},{'excludeCapabilities':opts['excludeCapabilities']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18224
|
+
if(agentId===undefined||agentId===null){throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}','GET',{'managementUnitId':managementUnitId,'agentId':agentId},{'excludeCapabilities':opts['excludeCapabilities'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18311
18225
|
* Gets all the shift trades for a given agent
|
|
18312
18226
|
*
|
|
18313
18227
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
@@ -18444,8 +18358,9 @@ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the requ
|
|
|
18444
18358
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
18445
18359
|
* @param {Object} opts Optional parameters
|
|
18446
18360
|
* @param {Array.<String>} opts.expand Include to access additional data on the work plans
|
|
18361
|
+
* @param {Array.<String>} opts.exclude Exclude specific data on the work plans from the response
|
|
18447
18362
|
*/},{key:"getWorkforcemanagementManagementunitWorkplans",value:function getWorkforcemanagementManagementunitWorkplans(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
18448
|
-
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans','GET',{'managementUnitId':managementUnitId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18363
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans','GET',{'managementUnitId':managementUnitId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'exclude':this.apiClient.buildCollectionParam(opts['exclude'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18449
18364
|
* Get management units
|
|
18450
18365
|
*
|
|
18451
18366
|
* @param {Object} opts Optional parameters
|
|
@@ -19290,7 +19205,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
19290
19205
|
* </pre>
|
|
19291
19206
|
* </p>
|
|
19292
19207
|
* @module purecloud-platform-client-v2/index
|
|
19293
|
-
* @version
|
|
19208
|
+
* @version 193.0.0
|
|
19294
19209
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
19295
19210
|
* The ApiClient constructor.
|
|
19296
19211
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|