purecloud-platform-client-v2 192.2.0 → 194.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 +347 -757
- package/dist/web-amd/purecloud-platform-client-v2.js +347 -757
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +240 -361
- package/dist/web-cjs/purecloud-platform-client-v2.js +240 -361
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +714 -751
- 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 +30 -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 -286
- 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 +7 -7
- 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 +125 -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
|
@@ -5197,7 +5197,7 @@ module.exports = function getSideChannel() {
|
|
|
5197
5197
|
|
|
5198
5198
|
},{"call-bind/callBound":8,"es-errors/type":17,"get-intrinsic":21,"object-inspect":28}],"platformClient":[function(require,module,exports){
|
|
5199
5199
|
(function (global,Buffer){(function (){
|
|
5200
|
-
'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)
|
|
5200
|
+
'use strict';function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}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(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_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(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},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 o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}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(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}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(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_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(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}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(r){if(Array.isArray(r))return r;}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(e){return function(){return new AsyncGenerator(e.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(e,d){this.v=e,this.k=d;}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)
|
|
5201
5201
|
// if there are two placeholders, than the two characters before it
|
|
5202
5202
|
// represent one byte
|
|
5203
5203
|
// if there is only one, then the three characters before it represent 2 bytes
|
|
@@ -5459,7 +5459,7 @@ kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormDat
|
|
|
5459
5459
|
* @param {*} val The value to test
|
|
5460
5460
|
*
|
|
5461
5461
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
5462
|
-
*/var isURLSearchParams=kindOfTest('URLSearchParams');/**
|
|
5462
|
+
*/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];/**
|
|
5463
5463
|
* Trim excess whitespace off the beginning and end of a string
|
|
5464
5464
|
*
|
|
5465
5465
|
* @param {String} str The String to trim
|
|
@@ -5479,7 +5479,7 @@ kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormDat
|
|
|
5479
5479
|
*
|
|
5480
5480
|
* @param {Boolean} [allOwnKeys = false]
|
|
5481
5481
|
* @returns {any}
|
|
5482
|
-
*/function forEach(obj,fn){var
|
|
5482
|
+
*/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
|
|
5483
5483
|
if(obj===null||typeof obj==='undefined'){return;}var i;var l;// Force an array if not already something iterable
|
|
5484
5484
|
if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray(obj)){// Iterate over array values
|
|
5485
5485
|
for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Iterate over object keys
|
|
@@ -5500,7 +5500,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
5500
5500
|
* @param {Object} obj1 Object to merge
|
|
5501
5501
|
*
|
|
5502
5502
|
* @returns {Object} Result of all merge properties
|
|
5503
|
-
*/function merge(/* obj1, obj2, obj3, ... */){var
|
|
5503
|
+
*/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;}/**
|
|
5504
5504
|
* Extends object a by mutably adding to it the properties of object b.
|
|
5505
5505
|
*
|
|
5506
5506
|
* @param {Object} a The object to be extended
|
|
@@ -5509,7 +5509,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
5509
5509
|
*
|
|
5510
5510
|
* @param {Boolean} [allOwnKeys]
|
|
5511
5511
|
* @returns {Object} The resulting value of object a
|
|
5512
|
-
*/var extend=function extend(a,b,thisArg){var
|
|
5512
|
+
*/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;};/**
|
|
5513
5513
|
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
5514
5514
|
*
|
|
5515
5515
|
* @param {string} content with BOM
|
|
@@ -5569,7 +5569,7 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
5569
5569
|
* @param {string} str - The string to search.
|
|
5570
5570
|
*
|
|
5571
5571
|
* @returns {Array<boolean>}
|
|
5572
|
-
*/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(
|
|
5572
|
+
*/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);/**
|
|
5573
5573
|
* Determine if a value is a RegExp object
|
|
5574
5574
|
*
|
|
5575
5575
|
* @param {*} val The value to test
|
|
@@ -5579,13 +5579,13 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
5579
5579
|
* Makes all methods read-only
|
|
5580
5580
|
* @param {Object} obj
|
|
5581
5581
|
*/var freezeMethods=function freezeMethods(obj){reduceDescriptors(obj,function(descriptor,name){// skip restricted props in strict mode
|
|
5582
|
-
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){
|
|
5582
|
+
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;};/**
|
|
5583
5583
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
5584
5584
|
*
|
|
5585
5585
|
* @param {unknown} thing - The thing to check.
|
|
5586
5586
|
*
|
|
5587
5587
|
* @returns {boolean}
|
|
5588
|
-
*/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
|
|
5588
|
+
*/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
|
|
5589
5589
|
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};/**
|
|
5590
5590
|
* Create an Error with the specified message, config, error code, request and response.
|
|
5591
5591
|
*
|
|
@@ -5747,7 +5747,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
5747
5747
|
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
5748
5748
|
* This leads to a problem when axios post `FormData` in webWorker
|
|
5749
5749
|
*/var hasStandardBrowserWebWorkerEnv=function(){return typeof WorkerGlobalScope!=='undefined'&&// eslint-disable-next-line no-undef
|
|
5750
|
-
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));}/**
|
|
5750
|
+
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));}/**
|
|
5751
5751
|
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
|
5752
5752
|
*
|
|
5753
5753
|
* @param {string} name - The name of the property to get.
|
|
@@ -5778,7 +5778,7 @@ return utils$1.matchAll(/\w+|\[(\w*)]/g,name).map(function(match){return match[0
|
|
|
5778
5778
|
* @param {Function} encoder - A function that takes a value and returns a string.
|
|
5779
5779
|
*
|
|
5780
5780
|
* @returns {string} A stringified version of the rawValue.
|
|
5781
|
-
*/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;}],/**
|
|
5781
|
+
*/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;}],/**
|
|
5782
5782
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
5783
5783
|
* timeout is not created.
|
|
5784
5784
|
*/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
|
|
@@ -5796,8 +5796,8 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
|
|
|
5796
5796
|
* @param {String} rawHeaders Headers needing to be parsed
|
|
5797
5797
|
*
|
|
5798
5798
|
* @returns {Object} Headers parsed into an object
|
|
5799
|
-
*/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(
|
|
5800
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(
|
|
5799
|
+
*/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
|
|
5800
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref8,key){var value=_ref8.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
|
|
5801
5801
|
return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
|
|
5802
5802
|
* Transform the data for a request or a response
|
|
5803
5803
|
*
|
|
@@ -5822,7 +5822,32 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
|
|
|
5822
5822
|
* @param {object} response The response.
|
|
5823
5823
|
*
|
|
5824
5824
|
* @returns {object} The response.
|
|
5825
|
-
*/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
|
|
5825
|
+
*/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]||'';}/**
|
|
5826
|
+
* Calculate data maxRate
|
|
5827
|
+
* @param {Number} [samplesCount= 10]
|
|
5828
|
+
* @param {Number} [min= 1000]
|
|
5829
|
+
* @returns {Function}
|
|
5830
|
+
*/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;};}/**
|
|
5831
|
+
* Throttle decorator
|
|
5832
|
+
* @param {Function} fn
|
|
5833
|
+
* @param {Number} freq
|
|
5834
|
+
* @return {Function}
|
|
5835
|
+
*/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
|
|
5836
|
+
// whether the request URL is of the same origin as current location.
|
|
5837
|
+
function standardBrowserEnv(){var msie=/(msie|trident)/i.test(navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;/**
|
|
5838
|
+
* Parse a URL to discover its components
|
|
5839
|
+
*
|
|
5840
|
+
* @param {String} url The URL to be parsed
|
|
5841
|
+
* @returns {Object}
|
|
5842
|
+
*/function resolveURL(url){var href=url;if(msie){// IE needs attribute set twice to normalize properties
|
|
5843
|
+
urlParsingNode.setAttribute('href',href);href=urlParsingNode.href;}urlParsingNode.setAttribute('href',href);// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
|
5844
|
+
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);/**
|
|
5845
|
+
* Determine if a URL shares the same origin as the current location
|
|
5846
|
+
*
|
|
5847
|
+
* @param {String} requestURL The URL to test
|
|
5848
|
+
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
5849
|
+
*/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.
|
|
5850
|
+
function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true;};}();var cookies=platform.hasStandardBrowserEnv?// Standard browser envs support document.cookie
|
|
5826
5851
|
{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.
|
|
5827
5852
|
{write:function write(){},read:function read(){return null;},remove:function remove(){}};/**
|
|
5828
5853
|
* Determines whether the specified URL is absolute
|
|
@@ -5849,31 +5874,28 @@ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);}/**
|
|
|
5849
5874
|
* @param {string} requestedURL Absolute or relative URL to combine
|
|
5850
5875
|
*
|
|
5851
5876
|
* @returns {string} The combined full path
|
|
5852
|
-
*/function buildFullPath(baseURL,requestedURL){if(baseURL&&!isAbsoluteURL(requestedURL)){return combineURLs(baseURL,requestedURL);}return requestedURL;}var
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
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
|
|
5875
|
-
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
|
|
5876
|
-
request.timeout=config.timeout;function onloadend(){if(!request){return;}// Prepare the response
|
|
5877
|
+
*/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;};/**
|
|
5878
|
+
* Config-specific merge-function which creates a new config-object
|
|
5879
|
+
* by merging two configuration objects together.
|
|
5880
|
+
*
|
|
5881
|
+
* @param {Object} config1
|
|
5882
|
+
* @param {Object} config2
|
|
5883
|
+
*
|
|
5884
|
+
* @returns {Object} New object resulting from merging config2 to config1
|
|
5885
|
+
*/function mergeConfig(config1,config2){// eslint-disable-next-line no-param-reassign
|
|
5886
|
+
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
|
|
5887
|
+
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
|
|
5888
|
+
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
5889
|
+
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
|
|
5890
|
+
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
|
|
5891
|
+
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
|
|
5892
|
+
}else if((contentType=headers.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
|
|
5893
|
+
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
|
|
5894
|
+
// This is only done if running in a standard browser environment.
|
|
5895
|
+
// Specifically not if we're in a web worker, or react-native.
|
|
5896
|
+
if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(newConfig));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(newConfig.url)){// Add xsrf header
|
|
5897
|
+
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
|
|
5898
|
+
request.timeout=_config.timeout;function onloadend(){if(!request){return;}// Prepare the response
|
|
5877
5899
|
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
|
|
5878
5900
|
request=null;}if('onloadend'in request){// Use onloadend if available
|
|
5879
5901
|
request.onloadend=onloadend;}else{// Listen for ready state to emulate onloadend
|
|
@@ -5884,28 +5906,26 @@ request.onreadystatechange=function handleLoad(){if(!request||request.readyState
|
|
|
5884
5906
|
if(request.status===0&&!(request.responseURL&&request.responseURL.indexOf('file:')===0)){return;}// readystate handler is calling before onerror or ontimeout handlers,
|
|
5885
5907
|
// so we should call onloadend on the next 'tick'
|
|
5886
5908
|
setTimeout(onloadend);};}// Handle browser request cancellation (as opposed to a manual cancellation)
|
|
5887
|
-
request.onabort=function handleAbort(){if(!request){return;}reject(new AxiosError('Request aborted',AxiosError.ECONNABORTED,
|
|
5909
|
+
request.onabort=function handleAbort(){if(!request){return;}reject(new AxiosError('Request aborted',AxiosError.ECONNABORTED,_config,request));// Clean up request
|
|
5888
5910
|
request=null;};// Handle low level network errors
|
|
5889
5911
|
request.onerror=function handleError(){// Real errors are hidden from us by the browser
|
|
5890
5912
|
// onerror should only fire if it's a network error
|
|
5891
|
-
reject(new AxiosError('Network Error',AxiosError.ERR_NETWORK,
|
|
5913
|
+
reject(new AxiosError('Network Error',AxiosError.ERR_NETWORK,_config,request));// Clean up request
|
|
5892
5914
|
request=null;};// Handle timeout
|
|
5893
|
-
request.ontimeout=function handleTimeout(){var timeoutErrorMessage=
|
|
5894
|
-
request=null;};//
|
|
5895
|
-
// This is only done if running in a standard browser environment.
|
|
5896
|
-
// Specifically not if we're in a web worker, or react-native.
|
|
5897
|
-
if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(config));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(fullPath)){// Add xsrf header
|
|
5898
|
-
var xsrfValue=config.xsrfHeaderName&&config.xsrfCookieName&&cookies.read(config.xsrfCookieName);if(xsrfValue){requestHeaders.set(config.xsrfHeaderName,xsrfValue);}}}// Remove Content-Type if data is undefined
|
|
5915
|
+
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
|
|
5916
|
+
request=null;};// Remove Content-Type if data is undefined
|
|
5899
5917
|
requestData===undefined&&requestHeaders.setContentType(null);// Add headers to the request
|
|
5900
5918
|
if('setRequestHeader'in request){utils$1.forEach(requestHeaders.toJSON(),function setRequestHeader(val,key){request.setRequestHeader(key,val);});}// Add withCredentials to request if needed
|
|
5901
|
-
if(!utils$1.isUndefined(
|
|
5902
|
-
if(responseType&&responseType!=='json'){request.responseType=
|
|
5903
|
-
if(typeof
|
|
5904
|
-
if(typeof
|
|
5919
|
+
if(!utils$1.isUndefined(_config.withCredentials)){request.withCredentials=!!_config.withCredentials;}// Add responseType to request if needed
|
|
5920
|
+
if(responseType&&responseType!=='json'){request.responseType=_config.responseType;}// Handle progress if needed
|
|
5921
|
+
if(typeof _config.onDownloadProgress==='function'){request.addEventListener('progress',progressEventReducer(_config.onDownloadProgress,true));}// Not all browsers support upload events
|
|
5922
|
+
if(typeof _config.onUploadProgress==='function'&&request.upload){request.upload.addEventListener('progress',progressEventReducer(_config.onUploadProgress));}if(_config.cancelToken||_config.signal){// Handle cancellation
|
|
5905
5923
|
// eslint-disable-next-line func-names
|
|
5906
|
-
onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(null,config,request):cancel);request.abort();request=null;};
|
|
5907
|
-
request.send(requestData||null);});};var
|
|
5908
|
-
|
|
5924
|
+
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
|
|
5925
|
+
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
|
|
5926
|
+
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
|
|
5927
|
+
}}();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
|
|
5928
|
+
}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};/**
|
|
5909
5929
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
5910
5930
|
*
|
|
5911
5931
|
* @param {Object} config The config that is to be used for the request
|
|
@@ -5920,20 +5940,7 @@ request.send(requestData||null);});};var knownAdapters={http:httpAdapter,xhr:xhr
|
|
|
5920
5940
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
5921
5941
|
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
|
|
5922
5942
|
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
|
|
5923
|
-
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
|
|
5924
|
-
* Config-specific merge-function which creates a new config-object
|
|
5925
|
-
* by merging two configuration objects together.
|
|
5926
|
-
*
|
|
5927
|
-
* @param {Object} config1
|
|
5928
|
-
* @param {Object} config2
|
|
5929
|
-
*
|
|
5930
|
-
* @returns {Object} New object resulting from merging config2 to config1
|
|
5931
|
-
*/function mergeConfig(config1,config2){// eslint-disable-next-line no-param-reassign
|
|
5932
|
-
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
|
|
5933
|
-
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
|
|
5934
|
-
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
5935
|
-
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
|
|
5936
|
-
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
|
|
5943
|
+
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
|
|
5937
5944
|
['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={};/**
|
|
5938
5945
|
* Transitional option validator
|
|
5939
5946
|
*
|
|
@@ -5965,10 +5972,11 @@ console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will
|
|
|
5965
5972
|
* @param {?Object} config
|
|
5966
5973
|
*
|
|
5967
5974
|
* @returns {Promise} The Promise to be fulfilled
|
|
5968
|
-
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
5969
|
-
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';if(!
|
|
5970
|
-
}else if(stack&&!String(
|
|
5971
|
-
|
|
5975
|
+
*/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
|
|
5976
|
+
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context8.t0.stack){_context8.t0.stack=stack;// match without the 2 top stack lines
|
|
5977
|
+
}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
|
|
5978
|
+
}}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
|
|
5979
|
+
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
|
|
5972
5980
|
config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
|
|
5973
5981
|
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
|
|
5974
5982
|
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
|
|
@@ -6017,7 +6025,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
|
|
|
6017
6025
|
* @param {*} payload The value to test
|
|
6018
6026
|
*
|
|
6019
6027
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
6020
|
-
*/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(
|
|
6028
|
+
*/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;/**
|
|
6021
6029
|
* Create an instance of Axios
|
|
6022
6030
|
*
|
|
6023
6031
|
* @param {Object} defaultConfig The default config for the instance
|
|
@@ -6046,7 +6054,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
6046
6054
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
6047
6055
|
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];}}}]);}();/**
|
|
6048
6056
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6049
|
-
* @version
|
|
6057
|
+
* @version 194.0.0
|
|
6050
6058
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
6051
6059
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
6052
6060
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -6358,7 +6366,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
6358
6366
|
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(){/**
|
|
6359
6367
|
* Alerting service.
|
|
6360
6368
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
6361
|
-
* @version
|
|
6369
|
+
* @version 194.0.0
|
|
6362
6370
|
*/ /**
|
|
6363
6371
|
* Constructs a new AlertingApi.
|
|
6364
6372
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -6515,7 +6523,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
|
|
|
6515
6523
|
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(){/**
|
|
6516
6524
|
* Analytics service.
|
|
6517
6525
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
6518
|
-
* @version
|
|
6526
|
+
* @version 194.0.0
|
|
6519
6527
|
*/ /**
|
|
6520
6528
|
* Constructs a new AnalyticsApi.
|
|
6521
6529
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -6528,11 +6536,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6528
6536
|
* @param {String} jobId jobId
|
|
6529
6537
|
*/return _createClass(AnalyticsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
6530
6538
|
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']);}/**
|
|
6531
|
-
* Delete a scheduled report job.
|
|
6532
|
-
*
|
|
6533
|
-
* @param {String} scheduleId Schedule ID
|
|
6534
|
-
*/},{key:"deleteAnalyticsReportingSchedule",value:function deleteAnalyticsReportingSchedule(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
6535
|
-
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']);}/**
|
|
6536
6539
|
* Delete/cancel an async request
|
|
6537
6540
|
*
|
|
6538
6541
|
* @param {String} jobId jobId
|
|
@@ -6552,8 +6555,21 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
6552
6555
|
* getAnalyticsActionsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6553
6556
|
*/},{key:"getAnalyticsActionsAggregatesJobResults",value:function getAnalyticsActionsAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
|
|
6554
6557
|
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']);}/**
|
|
6558
|
+
* Get Reporting Turns (division aware).
|
|
6559
|
+
* 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.
|
|
6560
|
+
* @param {String} botFlowId ID of the bot flow.
|
|
6561
|
+
* @param {Object} opts Optional parameters
|
|
6562
|
+
* @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
|
|
6563
|
+
* @param {String} opts.pageSize Max number of entities to return. Maximum of 250 (default to 50)
|
|
6564
|
+
* @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
|
|
6565
|
+
* @param {String} opts.actionId Optional action ID to get the reporting turns associated to a particular flow action
|
|
6566
|
+
* @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.
|
|
6567
|
+
* @param {String} opts.language Optional language code to get the reporting turns for a particular language
|
|
6568
|
+
* @param {Object} opts.askActionResults Optional case-insensitive comma separated list of ask action results to filter the reporting turns.
|
|
6569
|
+
*/},{key:"getAnalyticsBotflowDivisionsReportingturns",value:function getAnalyticsBotflowDivisionsReportingturns(botFlowId,opts){opts=opts||{};// verify the required parameter 'botFlowId' is set
|
|
6570
|
+
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']);}/**
|
|
6555
6571
|
* Get Reporting Turns.
|
|
6556
|
-
* 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.
|
|
6572
|
+
* 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.
|
|
6557
6573
|
* @param {String} botFlowId ID of the bot flow.
|
|
6558
6574
|
* @param {Object} opts Optional parameters
|
|
6559
6575
|
* @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
|
|
@@ -6563,6 +6579,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
6563
6579
|
* @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.
|
|
6564
6580
|
* @param {String} opts.language Optional language code to get the reporting turns for a particular language
|
|
6565
6581
|
* @param {Object} opts.askActionResults Optional case-insensitive comma separated list of ask action results to filter the reporting turns.
|
|
6582
|
+
* @deprecated
|
|
6566
6583
|
*/},{key:"getAnalyticsBotflowReportingturns",value:function getAnalyticsBotflowReportingturns(botFlowId,opts){opts=opts||{};// verify the required parameter 'botFlowId' is set
|
|
6567
6584
|
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']);}/**
|
|
6568
6585
|
* Get Bot Flow Sessions.
|
|
@@ -6726,54 +6743,6 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
6726
6743
|
* Get all export metadata
|
|
6727
6744
|
*
|
|
6728
6745
|
*/},{key:"getAnalyticsReportingExportsMetadata",value:function getAnalyticsReportingExportsMetadata(){return this.apiClient.callApi('/api/v2/analytics/reporting/exports/metadata','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6729
|
-
* Get list of reporting metadata.
|
|
6730
|
-
*
|
|
6731
|
-
* @param {Object} opts Optional parameters
|
|
6732
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
6733
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
6734
|
-
* @param {String} opts.locale Locale
|
|
6735
|
-
*/},{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']);}/**
|
|
6736
|
-
* Get a reporting metadata.
|
|
6737
|
-
*
|
|
6738
|
-
* @param {String} reportId Report ID
|
|
6739
|
-
* @param {Object} opts Optional parameters
|
|
6740
|
-
* @param {String} opts.locale Locale
|
|
6741
|
-
*/},{key:"getAnalyticsReportingReportIdMetadata",value:function getAnalyticsReportingReportIdMetadata(reportId,opts){opts=opts||{};// verify the required parameter 'reportId' is set
|
|
6742
|
-
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']);}/**
|
|
6743
|
-
* Get a list of report formats
|
|
6744
|
-
* Get a list of report formats.
|
|
6745
|
-
*/},{key:"getAnalyticsReportingReportformats",value:function getAnalyticsReportingReportformats(){return this.apiClient.callApi('/api/v2/analytics/reporting/reportformats','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6746
|
-
* Get a scheduled report job.
|
|
6747
|
-
*
|
|
6748
|
-
* @param {String} scheduleId Schedule ID
|
|
6749
|
-
*/},{key:"getAnalyticsReportingSchedule",value:function getAnalyticsReportingSchedule(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
6750
|
-
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']);}/**
|
|
6751
|
-
* Get list of completed scheduled report jobs.
|
|
6752
|
-
*
|
|
6753
|
-
* @param {String} scheduleId Schedule ID
|
|
6754
|
-
* @param {Object} opts Optional parameters
|
|
6755
|
-
* @param {Number} opts.pageNumber (default to 1)
|
|
6756
|
-
* @param {Number} opts.pageSize (default to 25)
|
|
6757
|
-
*/},{key:"getAnalyticsReportingScheduleHistory",value:function getAnalyticsReportingScheduleHistory(scheduleId,opts){opts=opts||{};// verify the required parameter 'scheduleId' is set
|
|
6758
|
-
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']);}/**
|
|
6759
|
-
* Get most recently completed scheduled report job.
|
|
6760
|
-
*
|
|
6761
|
-
* @param {String} scheduleId Schedule ID
|
|
6762
|
-
*/},{key:"getAnalyticsReportingScheduleHistoryLatest",value:function getAnalyticsReportingScheduleHistoryLatest(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
6763
|
-
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']);}/**
|
|
6764
|
-
* A completed scheduled report job
|
|
6765
|
-
* A completed scheduled report job.
|
|
6766
|
-
* @param {String} runId Run ID
|
|
6767
|
-
* @param {String} scheduleId Schedule ID
|
|
6768
|
-
*/},{key:"getAnalyticsReportingScheduleHistoryRunId",value:function getAnalyticsReportingScheduleHistoryRunId(runId,scheduleId){// verify the required parameter 'runId' is set
|
|
6769
|
-
if(runId===undefined||runId===null){throw'Missing the required parameter "runId" when calling getAnalyticsReportingScheduleHistoryRunId';}// verify the required parameter 'scheduleId' is set
|
|
6770
|
-
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']);}/**
|
|
6771
|
-
* Get a list of scheduled report jobs
|
|
6772
|
-
* Get a list of scheduled report jobs.
|
|
6773
|
-
* @param {Object} opts Optional parameters
|
|
6774
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
6775
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
6776
|
-
*/},{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']);}/**
|
|
6777
6746
|
* Get AnalyticsReportingSettings for an organization
|
|
6778
6747
|
*
|
|
6779
6748
|
*/},{key:"getAnalyticsReportingSettings",value:function getAnalyticsReportingSettings(){return this.apiClient.callApi('/api/v2/analytics/reporting/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -6786,11 +6755,9 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet
|
|
|
6786
6755
|
* @param {Number} opts.pageSize (default to 50)
|
|
6787
6756
|
* @param {Boolean} opts.publicOnly If true, retrieve only public dashboards
|
|
6788
6757
|
* @param {Boolean} opts.favoriteOnly If true, retrieve only favorite dashboards
|
|
6758
|
+
* @param {String} opts.name retrieve dashboards that match with given name
|
|
6789
6759
|
*/},{key:"getAnalyticsReportingSettingsUserDashboards",value:function getAnalyticsReportingSettingsUserDashboards(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
6790
|
-
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']);}/**
|
|
6791
|
-
* Get a list of report time periods.
|
|
6792
|
-
*
|
|
6793
|
-
*/},{key:"getAnalyticsReportingTimeperiods",value:function getAnalyticsReportingTimeperiods(){return this.apiClient.callApi('/api/v2/analytics/reporting/timeperiods','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6760
|
+
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']);}/**
|
|
6794
6761
|
* Get status for async query for resolution aggregates
|
|
6795
6762
|
*
|
|
6796
6763
|
* @param {String} jobId jobId
|
|
@@ -6917,7 +6884,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6917
6884
|
* @param {Object} opts Optional parameters
|
|
6918
6885
|
* @param {Number} opts.pageSize The desired page size
|
|
6919
6886
|
* @param {Number} opts.pageNumber The desired page number
|
|
6920
|
-
* postAnalyticsConversationsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6921
6887
|
*/},{key:"postAnalyticsConversationsActivityQuery",value:function postAnalyticsConversationsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
6922
6888
|
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']);}/**
|
|
6923
6889
|
* Query for conversation aggregates asynchronously
|
|
@@ -6974,7 +6940,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6974
6940
|
* @param {Object} opts Optional parameters
|
|
6975
6941
|
* @param {Number} opts.pageSize The desired page size
|
|
6976
6942
|
* @param {Number} opts.pageNumber The desired page number
|
|
6977
|
-
* postAnalyticsFlowsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6978
6943
|
*/},{key:"postAnalyticsFlowsActivityQuery",value:function postAnalyticsFlowsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
6979
6944
|
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']);}/**
|
|
6980
6945
|
* Query for flow aggregates asynchronously
|
|
@@ -7035,18 +7000,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7035
7000
|
* @param {Object} body ReportingExportJobRequest
|
|
7036
7001
|
*/},{key:"postAnalyticsReportingExports",value:function postAnalyticsReportingExports(body){// verify the required parameter 'body' is set
|
|
7037
7002
|
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']);}/**
|
|
7038
|
-
* Place a scheduled report immediately into the reporting queue
|
|
7039
|
-
* This route is deprecated, please use POST:api/v2/analytics/reporting/exports/{exportId}/execute instead
|
|
7040
|
-
* @param {String} scheduleId Schedule ID
|
|
7041
|
-
* @deprecated
|
|
7042
|
-
*/},{key:"postAnalyticsReportingScheduleRunreport",value:function postAnalyticsReportingScheduleRunreport(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
7043
|
-
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']);}/**
|
|
7044
|
-
* Create a scheduled report job
|
|
7045
|
-
* This route is deprecated, please use POST:api/v2/analytics/reporting/exports instead
|
|
7046
|
-
* @param {Object} body ReportSchedule
|
|
7047
|
-
* @deprecated
|
|
7048
|
-
*/},{key:"postAnalyticsReportingSchedules",value:function postAnalyticsReportingSchedules(body){// verify the required parameter 'body' is set
|
|
7049
|
-
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']);}/**
|
|
7050
7003
|
* Bulk remove dashboard configurations
|
|
7051
7004
|
*
|
|
7052
7005
|
* @param {Object} body
|
|
@@ -7069,7 +7022,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7069
7022
|
* @param {Object} opts Optional parameters
|
|
7070
7023
|
* @param {Number} opts.pageSize The desired page size
|
|
7071
7024
|
* @param {Number} opts.pageNumber The desired page number
|
|
7072
|
-
* postAnalyticsRoutingActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7073
7025
|
*/},{key:"postAnalyticsRoutingActivityQuery",value:function postAnalyticsRoutingActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
7074
7026
|
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']);}/**
|
|
7075
7027
|
* Query for survey aggregates asynchronously
|
|
@@ -7101,7 +7053,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7101
7053
|
* @param {Object} opts Optional parameters
|
|
7102
7054
|
* @param {Number} opts.pageSize The desired page size
|
|
7103
7055
|
* @param {Number} opts.pageNumber The desired page number
|
|
7104
|
-
* postAnalyticsTeamsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7105
7056
|
*/},{key:"postAnalyticsTeamsActivityQuery",value:function postAnalyticsTeamsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
7106
7057
|
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']);}/**
|
|
7107
7058
|
* Query for transcript aggregates asynchronously
|
|
@@ -7121,7 +7072,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7121
7072
|
* @param {Object} opts Optional parameters
|
|
7122
7073
|
* @param {Number} opts.pageSize The desired page size
|
|
7123
7074
|
* @param {Number} opts.pageNumber The desired page number
|
|
7124
|
-
* postAnalyticsUsersActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7125
7075
|
*/},{key:"postAnalyticsUsersActivityQuery",value:function postAnalyticsUsersActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
7126
7076
|
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']);}/**
|
|
7127
7077
|
* Query for user aggregates asynchronously
|
|
@@ -7154,18 +7104,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7154
7104
|
*
|
|
7155
7105
|
* @param {Object} body retentionDays
|
|
7156
7106
|
*/},{key:"putAnalyticsDataretentionSettings",value:function putAnalyticsDataretentionSettings(body){// verify the required parameter 'body' is set
|
|
7157
|
-
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']);}/**
|
|
7158
|
-
* Update a scheduled report job.
|
|
7159
|
-
* This route is deprecated, please use PATCH:api/v2/analytics/reporting/exports/{exportId}/schedule instead
|
|
7160
|
-
* @param {String} scheduleId Schedule ID
|
|
7161
|
-
* @param {Object} body ReportSchedule
|
|
7162
|
-
* @deprecated
|
|
7163
|
-
*/},{key:"putAnalyticsReportingSchedule",value:function putAnalyticsReportingSchedule(scheduleId,body){// verify the required parameter 'scheduleId' is set
|
|
7164
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling putAnalyticsReportingSchedule';}// verify the required parameter 'body' is set
|
|
7165
|
-
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(){/**
|
|
7107
|
+
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(){/**
|
|
7166
7108
|
* Architect service.
|
|
7167
7109
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
7168
|
-
* @version
|
|
7110
|
+
* @version 194.0.0
|
|
7169
7111
|
*/ /**
|
|
7170
7112
|
* Constructs a new ArchitectApi.
|
|
7171
7113
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -8281,7 +8223,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
|
|
|
8281
8223
|
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(){/**
|
|
8282
8224
|
* Audit service.
|
|
8283
8225
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
8284
|
-
* @version
|
|
8226
|
+
* @version 194.0.0
|
|
8285
8227
|
*/ /**
|
|
8286
8228
|
* Constructs a new AuditApi.
|
|
8287
8229
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -8320,10 +8262,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8320
8262
|
* @param {Object} opts Optional parameters
|
|
8321
8263
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
8322
8264
|
*/},{key:"postAuditsQueryRealtime",value:function postAuditsQueryRealtime(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
8323
|
-
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']);}
|
|
8265
|
+
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']);}/**
|
|
8266
|
+
* Often a single action results in multiple audits. The endpoint retrieves all audits created by the same action as the given audit id.
|
|
8267
|
+
*
|
|
8268
|
+
* @param {Object} body query
|
|
8269
|
+
* @param {Object} opts Optional parameters
|
|
8270
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
8271
|
+
*/},{key:"postAuditsQueryRealtimeRelated",value:function postAuditsQueryRealtimeRelated(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
8272
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';}return this.apiClient.callApi('/api/v2/audits/query/realtime/related','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
|
|
8324
8273
|
* Authorization service.
|
|
8325
8274
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
8326
|
-
* @version
|
|
8275
|
+
* @version 194.0.0
|
|
8327
8276
|
*/ /**
|
|
8328
8277
|
* Constructs a new AuthorizationApi.
|
|
8329
8278
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -8638,7 +8587,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
|
|
|
8638
8587
|
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(){/**
|
|
8639
8588
|
* Billing service.
|
|
8640
8589
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
8641
|
-
* @version
|
|
8590
|
+
* @version 194.0.0
|
|
8642
8591
|
*/ /**
|
|
8643
8592
|
* Constructs a new BillingApi.
|
|
8644
8593
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -8662,7 +8611,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
8662
8611
|
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(){/**
|
|
8663
8612
|
* CarrierServices service.
|
|
8664
8613
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
8665
|
-
* @version
|
|
8614
|
+
* @version 194.0.0
|
|
8666
8615
|
*/ /**
|
|
8667
8616
|
* Constructs a new CarrierServicesApi.
|
|
8668
8617
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -8682,7 +8631,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
8682
8631
|
*/},{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(){/**
|
|
8683
8632
|
* Chat service.
|
|
8684
8633
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
8685
|
-
* @version
|
|
8634
|
+
* @version 194.0.0
|
|
8686
8635
|
*/ /**
|
|
8687
8636
|
* Constructs a new ChatApi.
|
|
8688
8637
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -8804,6 +8753,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
8804
8753
|
* getChatsUserSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
8805
8754
|
*/},{key:"getChatsUserSettings",value:function getChatsUserSettings(userId){// verify the required parameter 'userId' is set
|
|
8806
8755
|
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']);}/**
|
|
8756
|
+
* Get a user's chat settings
|
|
8757
|
+
*
|
|
8758
|
+
* getChatsUsersMeSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
8759
|
+
*/},{key:"getChatsUsersMeSettings",value:function getChatsUsersMeSettings(){return this.apiClient.callApi('/api/v2/chats/users/me/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8807
8760
|
* Set properties for a room
|
|
8808
8761
|
*
|
|
8809
8762
|
* @param {String} roomJid roomJid
|
|
@@ -8842,6 +8795,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8842
8795
|
*/},{key:"patchChatsUserSettings",value:function patchChatsUserSettings(userId,body){// verify the required parameter 'userId' is set
|
|
8843
8796
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchChatsUserSettings';}// verify the required parameter 'body' is set
|
|
8844
8797
|
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']);}/**
|
|
8798
|
+
* Update a user's chat settings
|
|
8799
|
+
*
|
|
8800
|
+
* @param {Object} body
|
|
8801
|
+
* patchChatsUsersMeSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
8802
|
+
*/},{key:"patchChatsUsersMeSettings",value:function patchChatsUsersMeSettings(body){// verify the required parameter 'body' is set
|
|
8803
|
+
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']);}/**
|
|
8845
8804
|
* Send a message to a room
|
|
8846
8805
|
*
|
|
8847
8806
|
* @param {String} roomJid roomId
|
|
@@ -8897,7 +8856,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8897
8856
|
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(){/**
|
|
8898
8857
|
* Coaching service.
|
|
8899
8858
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
8900
|
-
* @version
|
|
8859
|
+
* @version 194.0.0
|
|
8901
8860
|
*/ /**
|
|
8902
8861
|
* Constructs a new CoachingApi.
|
|
8903
8862
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -9050,7 +9009,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9050
9009
|
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(){/**
|
|
9051
9010
|
* ContentManagement service.
|
|
9052
9011
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
9053
|
-
* @version
|
|
9012
|
+
* @version 194.0.0
|
|
9054
9013
|
*/ /**
|
|
9055
9014
|
* Constructs a new ContentManagementApi.
|
|
9056
9015
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -9333,7 +9292,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
|
|
|
9333
9292
|
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(){/**
|
|
9334
9293
|
* Conversations service.
|
|
9335
9294
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
9336
|
-
* @version
|
|
9295
|
+
* @version 194.0.0
|
|
9337
9296
|
*/ /**
|
|
9338
9297
|
* Constructs a new ConversationsApi.
|
|
9339
9298
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -9391,23 +9350,11 @@ if(integrationId===undefined||integrationId===null){throw'Missing the required p
|
|
|
9391
9350
|
* @param {String} integrationId Integration ID
|
|
9392
9351
|
*/},{key:"deleteConversationsMessagingIntegrationsInstagramIntegrationId",value:function deleteConversationsMessagingIntegrationsInstagramIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
9393
9352
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsInstagramIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/instagram/{integrationId}','DELETE',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9394
|
-
* Delete a LINE messenger integration (Deprecated)
|
|
9395
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
9396
|
-
* @param {String} integrationId Integration ID
|
|
9397
|
-
* @deprecated
|
|
9398
|
-
*/},{key:"deleteConversationsMessagingIntegrationsLineIntegrationId",value:function deleteConversationsMessagingIntegrationsLineIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
9399
|
-
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsLineIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/line/{integrationId}','DELETE',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9400
9353
|
* Delete an Open messaging integration
|
|
9401
9354
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
9402
9355
|
* @param {String} integrationId Integration ID
|
|
9403
9356
|
*/},{key:"deleteConversationsMessagingIntegrationsOpenIntegrationId",value:function deleteConversationsMessagingIntegrationsOpenIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
9404
9357
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsOpenIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/{integrationId}','DELETE',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9405
|
-
* Delete a Twitter messaging integration
|
|
9406
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-x-formerly-twitter-third-party-messaging-channel/
|
|
9407
|
-
* @param {String} integrationId Integration ID
|
|
9408
|
-
* @deprecated
|
|
9409
|
-
*/},{key:"deleteConversationsMessagingIntegrationsTwitterIntegrationId",value:function deleteConversationsMessagingIntegrationsTwitterIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
9410
|
-
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsTwitterIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/twitter/{integrationId}','DELETE',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9411
9358
|
* Delete a WhatsApp messaging integration
|
|
9412
9359
|
*
|
|
9413
9360
|
* @param {String} integrationId Integration ID
|
|
@@ -9868,24 +9815,6 @@ if(integrationId===undefined||integrationId===null){throw'Missing the required p
|
|
|
9868
9815
|
* @param {Object} opts.expand Expand instructions for the return value.
|
|
9869
9816
|
*/},{key:"getConversationsMessagingIntegrationsInstagramIntegrationId",value:function getConversationsMessagingIntegrationsInstagramIntegrationId(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
9870
9817
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsInstagramIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/instagram/{integrationId}','GET',{'integrationId':integrationId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9871
|
-
* Get a list of LINE messenger Integrations (Deprecated)
|
|
9872
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
9873
|
-
* @param {Object} opts Optional parameters
|
|
9874
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
9875
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
9876
|
-
* @param {Object} opts.expand Expand instructions for the return value.
|
|
9877
|
-
* @param {String} opts.supportedContentId Filter integrations returned based on the supported content ID
|
|
9878
|
-
* @param {String} opts.messagingSettingId Filter integrations returned based on the setting ID
|
|
9879
|
-
* @deprecated
|
|
9880
|
-
*/},{key:"getConversationsMessagingIntegrationsLine",value:function getConversationsMessagingIntegrationsLine(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/line','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'expand':opts['expand'],'supportedContent.id':opts['supportedContentId'],'messagingSetting.id':opts['messagingSettingId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9881
|
-
* Get a LINE messenger integration (Deprecated)
|
|
9882
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
9883
|
-
* @param {String} integrationId Integration ID
|
|
9884
|
-
* @param {Object} opts Optional parameters
|
|
9885
|
-
* @param {Object} opts.expand Expand instructions for the return value.
|
|
9886
|
-
* @deprecated
|
|
9887
|
-
*/},{key:"getConversationsMessagingIntegrationsLineIntegrationId",value:function getConversationsMessagingIntegrationsLineIntegrationId(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
9888
|
-
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsLineIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/line/{integrationId}','GET',{'integrationId':integrationId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9889
9818
|
* Get a list of Open messaging integrations
|
|
9890
9819
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
9891
9820
|
* @param {Object} opts Optional parameters
|
|
@@ -9902,24 +9831,6 @@ if(integrationId===undefined||integrationId===null){throw'Missing the required p
|
|
|
9902
9831
|
* @param {Object} opts.expand Expand instructions for the return value.
|
|
9903
9832
|
*/},{key:"getConversationsMessagingIntegrationsOpenIntegrationId",value:function getConversationsMessagingIntegrationsOpenIntegrationId(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
9904
9833
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsOpenIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/{integrationId}','GET',{'integrationId':integrationId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9905
|
-
* Get a list of Twitter Integrations (Deprecated)
|
|
9906
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-x-formerly-twitter-third-party-messaging-channel/
|
|
9907
|
-
* @param {Object} opts Optional parameters
|
|
9908
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
9909
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
9910
|
-
* @param {Object} opts.expand Expand instructions for the return value.
|
|
9911
|
-
* @param {String} opts.supportedContentId Filter integrations returned based on the supported content ID
|
|
9912
|
-
* @param {String} opts.messagingSettingId Filter integrations returned based on the setting ID
|
|
9913
|
-
* @deprecated
|
|
9914
|
-
*/},{key:"getConversationsMessagingIntegrationsTwitter",value:function getConversationsMessagingIntegrationsTwitter(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/twitter','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'expand':opts['expand'],'supportedContent.id':opts['supportedContentId'],'messagingSetting.id':opts['messagingSettingId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9915
|
-
* Get a Twitter messaging integration (Deprecated)
|
|
9916
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-x-formerly-twitter-third-party-messaging-channel/
|
|
9917
|
-
* @param {String} integrationId Integration ID
|
|
9918
|
-
* @param {Object} opts Optional parameters
|
|
9919
|
-
* @param {Object} opts.expand Expand instructions for the return value.
|
|
9920
|
-
* @deprecated
|
|
9921
|
-
*/},{key:"getConversationsMessagingIntegrationsTwitterIntegrationId",value:function getConversationsMessagingIntegrationsTwitterIntegrationId(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
9922
|
-
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsTwitterIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/twitter/{integrationId}','GET',{'integrationId':integrationId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9923
9834
|
* Get a list of WhatsApp Integrations
|
|
9924
9835
|
*
|
|
9925
9836
|
* @param {Object} opts Optional parameters
|
|
@@ -10333,14 +10244,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10333
10244
|
*/},{key:"patchConversationsMessagingIntegrationsOpenIntegrationId",value:function patchConversationsMessagingIntegrationsOpenIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
10334
10245
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';}// verify the required parameter 'body' is set
|
|
10335
10246
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/{integrationId}','PATCH',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10336
|
-
* Update Twitter messaging integration
|
|
10337
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-x-formerly-twitter-third-party-messaging-channel/
|
|
10338
|
-
* @param {String} integrationId Integration ID
|
|
10339
|
-
* @param {Object} body TwitterIntegrationRequest
|
|
10340
|
-
* @deprecated
|
|
10341
|
-
*/},{key:"patchConversationsMessagingIntegrationsTwitterIntegrationId",value:function patchConversationsMessagingIntegrationsTwitterIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
10342
|
-
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';}// verify the required parameter 'body' is set
|
|
10343
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/twitter/{integrationId}','PATCH',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10344
10247
|
* Activate a WhatsApp messaging integration created using the WhatsApp embedded signup flow
|
|
10345
10248
|
* Please specify the phone number to associate with this WhatsApp integration from the list of available phone numbers returned to you in the POST call to create the integration. You can then run a GET on the integration to check if its status has been updated to Active
|
|
10346
10249
|
* @param {String} integrationId Integration ID
|
|
@@ -10387,7 +10290,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10387
10290
|
* @param {Object} opts Optional parameters
|
|
10388
10291
|
* @param {Number} opts.pageSize The desired page size
|
|
10389
10292
|
* @param {Number} opts.pageNumber The desired page number
|
|
10390
|
-
* postAnalyticsConversationsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
10391
10293
|
*/},{key:"postAnalyticsConversationsActivityQuery",value:function postAnalyticsConversationsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
10392
10294
|
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']);}/**
|
|
10393
10295
|
* Query for conversation aggregates asynchronously
|
|
@@ -10876,23 +10778,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10876
10778
|
* @param {Object} body InstagramIntegrationRequest
|
|
10877
10779
|
*/},{key:"postConversationsMessagingIntegrationsInstagram",value:function postConversationsMessagingIntegrationsInstagram(body){// verify the required parameter 'body' is set
|
|
10878
10780
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsInstagram';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/instagram','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10879
|
-
* Create a LINE messenger Integration (Deprecated)
|
|
10880
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
10881
|
-
* @param {Object} body LineIntegrationRequest
|
|
10882
|
-
* @deprecated
|
|
10883
|
-
*/},{key:"postConversationsMessagingIntegrationsLine",value:function postConversationsMessagingIntegrationsLine(body){// verify the required parameter 'body' is set
|
|
10884
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsLine';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/line','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10885
10781
|
* Create an Open messaging integration
|
|
10886
10782
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
10887
10783
|
* @param {Object} body OpenIntegrationRequest
|
|
10888
10784
|
*/},{key:"postConversationsMessagingIntegrationsOpen",value:function postConversationsMessagingIntegrationsOpen(body){// verify the required parameter 'body' is set
|
|
10889
10785
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpen';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10890
|
-
* Create a Twitter Integration
|
|
10891
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-x-formerly-twitter-third-party-messaging-channel/
|
|
10892
|
-
* @param {Object} body TwitterIntegrationRequest
|
|
10893
|
-
* @deprecated
|
|
10894
|
-
*/},{key:"postConversationsMessagingIntegrationsTwitter",value:function postConversationsMessagingIntegrationsTwitter(body){// verify the required parameter 'body' is set
|
|
10895
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsTwitter';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/twitter','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10896
10786
|
* [This API is deprecated. Use POST /api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup instead] Create a WhatsApp Integration
|
|
10897
10787
|
* [This API is deprecated. Use POST /api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup instead] You must be approved by WhatsApp to use this feature. Your approved e164-formatted phone number and valid WhatsApp certificate for your number are required. Your WhatsApp certificate must have valid base64 encoding. Please paste carefully and do not add any leading or trailing spaces. Do not alter any characters. An integration must be activated within 7 days of certificate generation. If you cannot complete the addition and activation of the number within 7 days, please obtain a new certificate before creating the integration. Integrations created with an invalid number or certificate may immediately incur additional integration fees. Please carefully enter your number and certificate as described.
|
|
10898
10788
|
* @param {Object} body WhatsAppIntegrationRequest
|
|
@@ -11047,14 +10937,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11047
10937
|
*/},{key:"putConversationsMessageRecordingstate",value:function putConversationsMessageRecordingstate(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
11048
10938
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';}// verify the required parameter 'body' is set
|
|
11049
10939
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11050
|
-
* Update a LINE messenger integration (Deprecated)
|
|
11051
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
11052
|
-
* @param {String} integrationId Integration ID
|
|
11053
|
-
* @param {Object} body LineIntegrationRequest
|
|
11054
|
-
* @deprecated
|
|
11055
|
-
*/},{key:"putConversationsMessagingIntegrationsLineIntegrationId",value:function putConversationsMessagingIntegrationsLineIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
11056
|
-
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIntegrationsLineIntegrationId';}// verify the required parameter 'body' is set
|
|
11057
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIntegrationsLineIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/line/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11058
10940
|
* Set the organization's default setting that may be applied to to integrations without settings
|
|
11059
10941
|
* When an integration is created a settings ID may be assigned to it. If the settings ID is not supplied, the default settings will be assigned to it.
|
|
11060
10942
|
* @param {Object} body MessagingSetting
|
|
@@ -11094,7 +10976,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
11094
10976
|
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(){/**
|
|
11095
10977
|
* DataExtensions service.
|
|
11096
10978
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
11097
|
-
* @version
|
|
10979
|
+
* @version 194.0.0
|
|
11098
10980
|
*/ /**
|
|
11099
10981
|
* Constructs a new DataExtensionsApi.
|
|
11100
10982
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -11115,7 +10997,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
11115
10997
|
*/},{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(){/**
|
|
11116
10998
|
* Downloads service.
|
|
11117
10999
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
11118
|
-
* @version
|
|
11000
|
+
* @version 194.0.0
|
|
11119
11001
|
*/ /**
|
|
11120
11002
|
* Constructs a new DownloadsApi.
|
|
11121
11003
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -11134,7 +11016,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
11134
11016
|
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(){/**
|
|
11135
11017
|
* Emails service.
|
|
11136
11018
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
11137
|
-
* @version
|
|
11019
|
+
* @version 194.0.0
|
|
11138
11020
|
*/ /**
|
|
11139
11021
|
* Constructs a new EmailsApi.
|
|
11140
11022
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -11152,7 +11034,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
11152
11034
|
*/},{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(){/**
|
|
11153
11035
|
* Events service.
|
|
11154
11036
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
11155
|
-
* @version
|
|
11037
|
+
* @version 194.0.0
|
|
11156
11038
|
*/ /**
|
|
11157
11039
|
* Constructs a new EventsApi.
|
|
11158
11040
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -11177,7 +11059,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11177
11059
|
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(){/**
|
|
11178
11060
|
* ExternalContacts service.
|
|
11179
11061
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
11180
|
-
* @version
|
|
11062
|
+
* @version 194.0.0
|
|
11181
11063
|
*/ /**
|
|
11182
11064
|
* Constructs a new ExternalContactsApi.
|
|
11183
11065
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -11304,10 +11186,10 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
11304
11186
|
*
|
|
11305
11187
|
* @param {String} externalOrganizationId External Organization ID
|
|
11306
11188
|
* @param {Object} opts Optional parameters
|
|
11307
|
-
* @param {
|
|
11189
|
+
* @param {Array.<String>} opts.expand which fields, if any, to expand (externalDataSources)
|
|
11308
11190
|
* @param {Boolean} opts.includeTrustors (true or false) whether or not to include trustor information embedded in the externalOrganization
|
|
11309
11191
|
*/},{key:"getExternalcontactsOrganization",value:function getExternalcontactsOrganization(externalOrganizationId,opts){opts=opts||{};// verify the required parameter 'externalOrganizationId' is set
|
|
11310
|
-
if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganization';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}','GET',{'externalOrganizationId':externalOrganizationId},{'expand':opts['expand'],'includeTrustors':opts['includeTrustors']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11192
|
+
if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganization';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}','GET',{'externalOrganizationId':externalOrganizationId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'includeTrustors':opts['includeTrustors']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11311
11193
|
* Search for external contacts in an external organization
|
|
11312
11194
|
*
|
|
11313
11195
|
* @param {String} externalOrganizationId External Organization ID
|
|
@@ -11344,10 +11226,10 @@ if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Miss
|
|
|
11344
11226
|
* @param {Object} opts Optional parameters
|
|
11345
11227
|
* @param {Number} opts.pageSize Page size (limited to fetching first 1,000 records; pageNumber * pageSize must be <= 1,000) (default to 20)
|
|
11346
11228
|
* @param {Number} opts.pageNumber Page number (limited to fetching first 1,000 records; pageNumber * pageSize must be <= 1,000) (default to 1)
|
|
11347
|
-
* @param {
|
|
11229
|
+
* @param {Array.<String>} opts.expand which fields, if any, to expand
|
|
11348
11230
|
* @param {String} opts.sortOrder The Relationship field to sort by. Any of: [createDate, relationship]. Direction: [asc, desc]. e.g. createDate:asc, relationship:desc
|
|
11349
11231
|
*/},{key:"getExternalcontactsOrganizationRelationships",value:function getExternalcontactsOrganizationRelationships(externalOrganizationId,opts){opts=opts||{};// verify the required parameter 'externalOrganizationId' is set
|
|
11350
|
-
if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationRelationships';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}/relationships','GET',{'externalOrganizationId':externalOrganizationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'expand':opts['expand'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11232
|
+
if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationRelationships';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}/relationships','GET',{'externalOrganizationId':externalOrganizationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11351
11233
|
* Search for external organizations
|
|
11352
11234
|
*
|
|
11353
11235
|
* @param {Object} opts Optional parameters
|
|
@@ -11383,9 +11265,9 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
11383
11265
|
*
|
|
11384
11266
|
* @param {String} relationshipId Relationship Id
|
|
11385
11267
|
* @param {Object} opts Optional parameters
|
|
11386
|
-
* @param {
|
|
11268
|
+
* @param {Array.<String>} opts.expand which fields, if any, to expand
|
|
11387
11269
|
*/},{key:"getExternalcontactsRelationship",value:function getExternalcontactsRelationship(relationshipId,opts){opts=opts||{};// verify the required parameter 'relationshipId' is set
|
|
11388
|
-
if(relationshipId===undefined||relationshipId===null){throw'Missing the required parameter "relationshipId" when calling getExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','GET',{'relationshipId':relationshipId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11270
|
+
if(relationshipId===undefined||relationshipId===null){throw'Missing the required parameter "relationshipId" when calling getExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','GET',{'relationshipId':relationshipId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11389
11271
|
* Look up contacts and externalOrganizations based on an attribute. Maximum of 25 values returned.
|
|
11390
11272
|
*
|
|
11391
11273
|
* @param {String} lookupVal User supplied value to lookup contacts/externalOrganizations (supports email addresses, e164 phone numbers, Twitter screen names)
|
|
@@ -11632,7 +11514,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
|
|
|
11632
11514
|
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(){/**
|
|
11633
11515
|
* Fax service.
|
|
11634
11516
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
11635
|
-
* @version
|
|
11517
|
+
* @version 194.0.0
|
|
11636
11518
|
*/ /**
|
|
11637
11519
|
* Constructs a new FaxApi.
|
|
11638
11520
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -11681,7 +11563,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11681
11563
|
*/},{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(){/**
|
|
11682
11564
|
* Flows service.
|
|
11683
11565
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
11684
|
-
* @version
|
|
11566
|
+
* @version 194.0.0
|
|
11685
11567
|
*/ /**
|
|
11686
11568
|
* Constructs a new FlowsApi.
|
|
11687
11569
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -11709,7 +11591,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
11709
11591
|
* @param {Object} opts Optional parameters
|
|
11710
11592
|
* @param {Number} opts.pageSize The desired page size
|
|
11711
11593
|
* @param {Number} opts.pageNumber The desired page number
|
|
11712
|
-
* postAnalyticsFlowsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11713
11594
|
*/},{key:"postAnalyticsFlowsActivityQuery",value:function postAnalyticsFlowsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
11714
11595
|
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']);}/**
|
|
11715
11596
|
* Query for flow aggregates asynchronously
|
|
@@ -11730,7 +11611,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11730
11611
|
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(){/**
|
|
11731
11612
|
* Gamification service.
|
|
11732
11613
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
11733
|
-
* @version
|
|
11614
|
+
* @version 194.0.0
|
|
11734
11615
|
*/ /**
|
|
11735
11616
|
* Constructs a new GamificationApi.
|
|
11736
11617
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -12270,7 +12151,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12270
12151
|
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(){/**
|
|
12271
12152
|
* GeneralDataProtectionRegulation service.
|
|
12272
12153
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
12273
|
-
* @version
|
|
12154
|
+
* @version 194.0.0
|
|
12274
12155
|
*/ /**
|
|
12275
12156
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
12276
12157
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -12305,7 +12186,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
12305
12186
|
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(){/**
|
|
12306
12187
|
* Geolocation service.
|
|
12307
12188
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
12308
|
-
* @version
|
|
12189
|
+
* @version 194.0.0
|
|
12309
12190
|
*/ /**
|
|
12310
12191
|
* Constructs a new GeolocationApi.
|
|
12311
12192
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -12339,7 +12220,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
12339
12220
|
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(){/**
|
|
12340
12221
|
* Greetings service.
|
|
12341
12222
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
12342
|
-
* @version
|
|
12223
|
+
* @version 194.0.0
|
|
12343
12224
|
*/ /**
|
|
12344
12225
|
* Constructs a new GreetingsApi.
|
|
12345
12226
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -12446,7 +12327,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
12446
12327
|
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(){/**
|
|
12447
12328
|
* Groups service.
|
|
12448
12329
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
12449
|
-
* @version
|
|
12330
|
+
* @version 194.0.0
|
|
12450
12331
|
*/ /**
|
|
12451
12332
|
* Constructs a new GroupsApi.
|
|
12452
12333
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -12579,7 +12460,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
12579
12460
|
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(){/**
|
|
12580
12461
|
* IdentityProvider service.
|
|
12581
12462
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
12582
|
-
* @version
|
|
12463
|
+
* @version 194.0.0
|
|
12583
12464
|
*/ /**
|
|
12584
12465
|
* Constructs a new IdentityProviderApi.
|
|
12585
12466
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -12735,7 +12616,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12735
12616
|
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(){/**
|
|
12736
12617
|
* InfrastructureAsCode service.
|
|
12737
12618
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
12738
|
-
* @version
|
|
12619
|
+
* @version 194.0.0
|
|
12739
12620
|
*/ /**
|
|
12740
12621
|
* Constructs a new InfrastructureAsCodeApi.
|
|
12741
12622
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -12789,7 +12670,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
12789
12670
|
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(){/**
|
|
12790
12671
|
* Integrations service.
|
|
12791
12672
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
12792
|
-
* @version
|
|
12673
|
+
* @version 194.0.0
|
|
12793
12674
|
*/ /**
|
|
12794
12675
|
* Constructs a new IntegrationsApi.
|
|
12795
12676
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -13400,7 +13281,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
|
|
|
13400
13281
|
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(){/**
|
|
13401
13282
|
* Journey service.
|
|
13402
13283
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
13403
|
-
* @version
|
|
13284
|
+
* @version 194.0.0
|
|
13404
13285
|
*/ /**
|
|
13405
13286
|
* Constructs a new JourneyApi.
|
|
13406
13287
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -13788,7 +13669,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13788
13669
|
*/},{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(){/**
|
|
13789
13670
|
* Knowledge service.
|
|
13790
13671
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
13791
|
-
* @version
|
|
13672
|
+
* @version 194.0.0
|
|
13792
13673
|
*/ /**
|
|
13793
13674
|
* Constructs a new KnowledgeApi.
|
|
13794
13675
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -14700,7 +14581,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14700
14581
|
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(){/**
|
|
14701
14582
|
* LanguageUnderstanding service.
|
|
14702
14583
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
14703
|
-
* @version
|
|
14584
|
+
* @version 194.0.0
|
|
14704
14585
|
*/ /**
|
|
14705
14586
|
* Constructs a new LanguageUnderstandingApi.
|
|
14706
14587
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -14960,7 +14841,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
|
|
|
14960
14841
|
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(){/**
|
|
14961
14842
|
* Languages service.
|
|
14962
14843
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
14963
|
-
* @version
|
|
14844
|
+
* @version 194.0.0
|
|
14964
14845
|
*/ /**
|
|
14965
14846
|
* Constructs a new LanguagesApi.
|
|
14966
14847
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -15015,7 +14896,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
15015
14896
|
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(){/**
|
|
15016
14897
|
* Learning service.
|
|
15017
14898
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
15018
|
-
* @version
|
|
14899
|
+
* @version 194.0.0
|
|
15019
14900
|
*/ /**
|
|
15020
14901
|
* Constructs a new LearningApi.
|
|
15021
14902
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -15244,7 +15125,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
|
|
|
15244
15125
|
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(){/**
|
|
15245
15126
|
* License service.
|
|
15246
15127
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
15247
|
-
* @version
|
|
15128
|
+
* @version 194.0.0
|
|
15248
15129
|
*/ /**
|
|
15249
15130
|
* Constructs a new LicenseApi.
|
|
15250
15131
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -15298,7 +15179,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
15298
15179
|
*/},{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(){/**
|
|
15299
15180
|
* Locations service.
|
|
15300
15181
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
15301
|
-
* @version
|
|
15182
|
+
* @version 194.0.0
|
|
15302
15183
|
*/ /**
|
|
15303
15184
|
* Constructs a new LocationsApi.
|
|
15304
15185
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -15357,7 +15238,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15357
15238
|
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(){/**
|
|
15358
15239
|
* LogCapture service.
|
|
15359
15240
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
15360
|
-
* @version
|
|
15241
|
+
* @version 194.0.0
|
|
15361
15242
|
*/ /**
|
|
15362
15243
|
* Constructs a new LogCaptureApi.
|
|
15363
15244
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -15407,7 +15288,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
15407
15288
|
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(){/**
|
|
15408
15289
|
* Messaging service.
|
|
15409
15290
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
15410
|
-
* @version
|
|
15291
|
+
* @version 194.0.0
|
|
15411
15292
|
*/ /**
|
|
15412
15293
|
* Constructs a new MessagingApi.
|
|
15413
15294
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -15497,7 +15378,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15497
15378
|
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(){/**
|
|
15498
15379
|
* MobileDevices service.
|
|
15499
15380
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
15500
|
-
* @version
|
|
15381
|
+
* @version 194.0.0
|
|
15501
15382
|
*/ /**
|
|
15502
15383
|
* Constructs a new MobileDevicesApi.
|
|
15503
15384
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -15536,7 +15417,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15536
15417
|
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(){/**
|
|
15537
15418
|
* Notifications service.
|
|
15538
15419
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
15539
|
-
* @version
|
|
15420
|
+
* @version 194.0.0
|
|
15540
15421
|
*/ /**
|
|
15541
15422
|
* Constructs a new NotificationsApi.
|
|
15542
15423
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -15593,7 +15474,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
|
|
|
15593
15474
|
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(){/**
|
|
15594
15475
|
* OAuth service.
|
|
15595
15476
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
15596
|
-
* @version
|
|
15477
|
+
* @version 194.0.0
|
|
15597
15478
|
*/ /**
|
|
15598
15479
|
* Constructs a new OAuthApi.
|
|
15599
15480
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -15678,7 +15559,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
15678
15559
|
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(){/**
|
|
15679
15560
|
* Objects service.
|
|
15680
15561
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
15681
|
-
* @version
|
|
15562
|
+
* @version 194.0.0
|
|
15682
15563
|
*/ /**
|
|
15683
15564
|
* Constructs a new ObjectsApi.
|
|
15684
15565
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -15749,7 +15630,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
15749
15630
|
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(){/**
|
|
15750
15631
|
* OperationalEvents service.
|
|
15751
15632
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
15752
|
-
* @version
|
|
15633
|
+
* @version 194.0.0
|
|
15753
15634
|
*/ /**
|
|
15754
15635
|
* Constructs a new OperationalEventsApi.
|
|
15755
15636
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -15767,7 +15648,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
15767
15648
|
*/},{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(){/**
|
|
15768
15649
|
* Organization service.
|
|
15769
15650
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
15770
|
-
* @version
|
|
15651
|
+
* @version 194.0.0
|
|
15771
15652
|
*/ /**
|
|
15772
15653
|
* Constructs a new OrganizationApi.
|
|
15773
15654
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -15809,6 +15690,9 @@ if(requestId===undefined||requestId===null){throw'Missing the required parameter
|
|
|
15809
15690
|
* Get limit documentation
|
|
15810
15691
|
*
|
|
15811
15692
|
*/},{key:"getOrganizationsLimitsDocs",value:function getOrganizationsLimitsDocs(){return this.apiClient.callApi('/api/v2/organizations/limits/docs','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15693
|
+
* Get free trial limit documentation
|
|
15694
|
+
*
|
|
15695
|
+
*/},{key:"getOrganizationsLimitsDocsFreetrial",value:function getOrganizationsLimitsDocsFreetrial(){return this.apiClient.callApi('/api/v2/organizations/limits/docs/freetrial','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15812
15696
|
* Get the effective limits in a namespace for an organization
|
|
15813
15697
|
*
|
|
15814
15698
|
* @param {String} namespaceName The namespace to fetch limits for
|
|
@@ -15869,7 +15753,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15869
15753
|
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(){/**
|
|
15870
15754
|
* OrganizationAuthorization service.
|
|
15871
15755
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
15872
|
-
* @version
|
|
15756
|
+
* @version 194.0.0
|
|
15873
15757
|
*/ /**
|
|
15874
15758
|
* Constructs a new OrganizationAuthorizationApi.
|
|
15875
15759
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -16192,7 +16076,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
16192
16076
|
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(){/**
|
|
16193
16077
|
* Outbound service.
|
|
16194
16078
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
16195
|
-
* @version
|
|
16079
|
+
* @version 194.0.0
|
|
16196
16080
|
*/ /**
|
|
16197
16081
|
* Constructs a new OutboundApi.
|
|
16198
16082
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -16428,6 +16312,18 @@ if(campaignId===undefined||campaignId===null){throw'Missing the required paramet
|
|
|
16428
16312
|
* @param {String} campaignId Campaign ID
|
|
16429
16313
|
*/},{key:"getOutboundCampaignInteractions",value:function getOutboundCampaignInteractions(campaignId){// verify the required parameter 'campaignId' is set
|
|
16430
16314
|
if(campaignId===undefined||campaignId===null){throw'Missing the required parameter "campaignId" when calling getOutboundCampaignInteractions';}return this.apiClient.callApi('/api/v2/outbound/campaigns/{campaignId}/interactions','GET',{'campaignId':campaignId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16315
|
+
* Get line distribution information for campaigns using same Edge Group or Site as given campaign
|
|
16316
|
+
*
|
|
16317
|
+
* @param {String} campaignId Campaign ID
|
|
16318
|
+
* @param {Object} opts Optional parameters
|
|
16319
|
+
* @param {Boolean} opts.includeOnlyActiveCampaigns If true will return only active Campaigns (default to true)
|
|
16320
|
+
* @param {String} opts.edgeGroupId Edge group to be used in line distribution calculations instead of current Campaign's Edge Group. Campaign's Site and Edge Group are mutually exclusive.
|
|
16321
|
+
* @param {String} opts.siteId Site to be used in line distribution calculations instead of current Campaign's Site. Campaign's Site and Edge Group are mutually exclusive.
|
|
16322
|
+
* @param {Boolean} opts.useWeight Enable usage of weight, this value overrides current Campaign's setting in line distribution calculations
|
|
16323
|
+
* @param {Number} opts.relativeWeight Relative weight to be used in line distribution calculations instead of current Campaign's relative weight
|
|
16324
|
+
* @param {Number} opts.outboundLineCount The number of outbound lines to be used in line distribution calculations, instead of current Campaign's Outbound Lines Count
|
|
16325
|
+
*/},{key:"getOutboundCampaignLinedistribution",value:function getOutboundCampaignLinedistribution(campaignId,opts){opts=opts||{};// verify the required parameter 'campaignId' is set
|
|
16326
|
+
if(campaignId===undefined||campaignId===null){throw'Missing the required parameter "campaignId" when calling getOutboundCampaignLinedistribution';}return this.apiClient.callApi('/api/v2/outbound/campaigns/{campaignId}/linedistribution','GET',{'campaignId':campaignId},{'includeOnlyActiveCampaigns':opts['includeOnlyActiveCampaigns'],'edgeGroupId':opts['edgeGroupId'],'siteId':opts['siteId'],'useWeight':opts['useWeight'],'relativeWeight':opts['relativeWeight'],'outboundLineCount':opts['outboundLineCount']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16431
16327
|
* Get campaign progress
|
|
16432
16328
|
*
|
|
16433
16329
|
* @param {String} campaignId Campaign ID
|
|
@@ -16960,6 +16856,27 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16960
16856
|
*/},{key:"postOutboundContactlistContactsBulk",value:function postOutboundContactlistContactsBulk(contactListId,body){// verify the required parameter 'contactListId' is set
|
|
16961
16857
|
if(contactListId===undefined||contactListId===null){throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulk';}// verify the required parameter 'body' is set
|
|
16962
16858
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulk';}return this.apiClient.callApi('/api/v2/outbound/contactlists/{contactListId}/contacts/bulk','POST',{'contactListId':contactListId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16859
|
+
* Start an async job to delete contacts using a filter.
|
|
16860
|
+
*
|
|
16861
|
+
* @param {String} contactListId Contact List ID
|
|
16862
|
+
* @param {Object} body Contact filter information.
|
|
16863
|
+
*/},{key:"postOutboundContactlistContactsBulkRemove",value:function postOutboundContactlistContactsBulkRemove(contactListId,body){// verify the required parameter 'contactListId' is set
|
|
16864
|
+
if(contactListId===undefined||contactListId===null){throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkRemove';}// verify the required parameter 'body' is set
|
|
16865
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulkRemove';}return this.apiClient.callApi('/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/remove','POST',{'contactListId':contactListId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16866
|
+
* Start an async job to bulk edit contacts.
|
|
16867
|
+
*
|
|
16868
|
+
* @param {String} contactListId Contact List ID
|
|
16869
|
+
* @param {Object} body Contact bulk edit request information.
|
|
16870
|
+
*/},{key:"postOutboundContactlistContactsBulkUpdate",value:function postOutboundContactlistContactsBulkUpdate(contactListId,body){// verify the required parameter 'contactListId' is set
|
|
16871
|
+
if(contactListId===undefined||contactListId===null){throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkUpdate';}// verify the required parameter 'body' is set
|
|
16872
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulkUpdate';}return this.apiClient.callApi('/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/update','POST',{'contactListId':contactListId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16873
|
+
* Query contacts from a contact list.
|
|
16874
|
+
*
|
|
16875
|
+
* @param {String} contactListId Contact List ID
|
|
16876
|
+
* @param {Object} body Contact search parameters.
|
|
16877
|
+
*/},{key:"postOutboundContactlistContactsSearch",value:function postOutboundContactlistContactsSearch(contactListId,body){// verify the required parameter 'contactListId' is set
|
|
16878
|
+
if(contactListId===undefined||contactListId===null){throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsSearch';}// verify the required parameter 'body' is set
|
|
16879
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postOutboundContactlistContactsSearch';}return this.apiClient.callApi('/api/v2/outbound/contactlists/{contactListId}/contacts/search','POST',{'contactListId':contactListId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16963
16880
|
* Initiate the export of a contact list.
|
|
16964
16881
|
* Returns 200 if received OK.
|
|
16965
16882
|
* @param {String} contactListId ContactList ID
|
|
@@ -17231,7 +17148,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17231
17148
|
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(){/**
|
|
17232
17149
|
* Presence service.
|
|
17233
17150
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
17234
|
-
* @version
|
|
17151
|
+
* @version 194.0.0
|
|
17235
17152
|
*/ /**
|
|
17236
17153
|
* Constructs a new PresenceApi.
|
|
17237
17154
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -17404,7 +17321,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17404
17321
|
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(){/**
|
|
17405
17322
|
* ProcessAutomation service.
|
|
17406
17323
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
17407
|
-
* @version
|
|
17324
|
+
* @version 194.0.0
|
|
17408
17325
|
*/ /**
|
|
17409
17326
|
* Constructs a new ProcessAutomationApi.
|
|
17410
17327
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -17467,7 +17384,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
|
|
|
17467
17384
|
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(){/**
|
|
17468
17385
|
* Quality service.
|
|
17469
17386
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
17470
|
-
* @version
|
|
17387
|
+
* @version 194.0.0
|
|
17471
17388
|
*/ /**
|
|
17472
17389
|
* Constructs a new QualityApi.
|
|
17473
17390
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -17605,7 +17522,7 @@ if(transactionId===undefined||transactionId===null){throw'Missing the required p
|
|
|
17605
17522
|
*/},{key:"getQualityConversationsAuditsQueryTransactionIdResults",value:function getQualityConversationsAuditsQueryTransactionIdResults(transactionId,opts){opts=opts||{};// verify the required parameter 'transactionId' is set
|
|
17606
17523
|
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']);}/**
|
|
17607
17524
|
* Queries Evaluations and returns a paged list
|
|
17608
|
-
* 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.
|
|
17525
|
+
* 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.
|
|
17609
17526
|
* @param {Object} opts Optional parameters
|
|
17610
17527
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
17611
17528
|
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
@@ -17625,7 +17542,7 @@ if(transactionId===undefined||transactionId===null){throw'Missing the required p
|
|
|
17625
17542
|
* @param {Array.<String>} opts.evaluationState
|
|
17626
17543
|
* @param {Boolean} opts.isReleased the evaluation has been released
|
|
17627
17544
|
* @param {Boolean} opts.agentHasRead agent has the evaluation
|
|
17628
|
-
* @param {Boolean} opts.expandAnswerTotalScores get the total scores for evaluations
|
|
17545
|
+
* @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.
|
|
17629
17546
|
* @param {Number} opts.maximum the maximum number of results to return
|
|
17630
17547
|
* @param {String} opts.sortOrder NOTE: Does not work when conversationId is supplied.
|
|
17631
17548
|
*/},{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']);}/**
|
|
@@ -17938,7 +17855,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
17938
17855
|
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(){/**
|
|
17939
17856
|
* Recording service.
|
|
17940
17857
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
17941
|
-
* @version
|
|
17858
|
+
* @version 194.0.0
|
|
17942
17859
|
*/ /**
|
|
17943
17860
|
* Constructs a new RecordingApi.
|
|
17944
17861
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -18349,7 +18266,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18349
18266
|
*/},{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(){/**
|
|
18350
18267
|
* ResponseManagement service.
|
|
18351
18268
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
18352
|
-
* @version
|
|
18269
|
+
* @version 194.0.0
|
|
18353
18270
|
*/ /**
|
|
18354
18271
|
* Constructs a new ResponseManagementApi.
|
|
18355
18272
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -18470,7 +18387,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
|
|
|
18470
18387
|
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(){/**
|
|
18471
18388
|
* Routing service.
|
|
18472
18389
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
18473
|
-
* @version
|
|
18390
|
+
* @version 194.0.0
|
|
18474
18391
|
*/ /**
|
|
18475
18392
|
* Constructs a new RoutingApi.
|
|
18476
18393
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -19203,7 +19120,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19203
19120
|
* @param {Object} opts Optional parameters
|
|
19204
19121
|
* @param {Number} opts.pageSize The desired page size
|
|
19205
19122
|
* @param {Number} opts.pageNumber The desired page number
|
|
19206
|
-
* postAnalyticsRoutingActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
19207
19123
|
*/},{key:"postAnalyticsRoutingActivityQuery",value:function postAnalyticsRoutingActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
19208
19124
|
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']);}/**
|
|
19209
19125
|
* Create a benefit assessment.
|
|
@@ -19445,7 +19361,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
19445
19361
|
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(){/**
|
|
19446
19362
|
* SCIM service.
|
|
19447
19363
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
19448
|
-
* @version
|
|
19364
|
+
* @version 194.0.0
|
|
19449
19365
|
*/ /**
|
|
19450
19366
|
* Constructs a new SCIMApi.
|
|
19451
19367
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -19670,7 +19586,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
19670
19586
|
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(){/**
|
|
19671
19587
|
* ScreenRecording service.
|
|
19672
19588
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
19673
|
-
* @version
|
|
19589
|
+
* @version 194.0.0
|
|
19674
19590
|
*/ /**
|
|
19675
19591
|
* Constructs a new ScreenRecordingApi.
|
|
19676
19592
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -19685,7 +19601,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19685
19601
|
*/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(){/**
|
|
19686
19602
|
* Scripts service.
|
|
19687
19603
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
19688
|
-
* @version
|
|
19604
|
+
* @version 194.0.0
|
|
19689
19605
|
*/ /**
|
|
19690
19606
|
* Constructs a new ScriptsApi.
|
|
19691
19607
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -19821,7 +19737,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
19821
19737
|
*/},{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(){/**
|
|
19822
19738
|
* Search service.
|
|
19823
19739
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
19824
|
-
* @version
|
|
19740
|
+
* @version 194.0.0
|
|
19825
19741
|
*/ /**
|
|
19826
19742
|
* Constructs a new SearchApi.
|
|
19827
19743
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -19981,7 +19897,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19981
19897
|
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(){/**
|
|
19982
19898
|
* Settings service.
|
|
19983
19899
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
19984
|
-
* @version
|
|
19900
|
+
* @version 194.0.0
|
|
19985
19901
|
*/ /**
|
|
19986
19902
|
* Constructs a new SettingsApi.
|
|
19987
19903
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -20009,7 +19925,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20009
19925
|
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(){/**
|
|
20010
19926
|
* SpeechTextAnalytics service.
|
|
20011
19927
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
20012
|
-
* @version
|
|
19928
|
+
* @version 194.0.0
|
|
20013
19929
|
*/ /**
|
|
20014
19930
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
20015
19931
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -20253,7 +20169,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
20253
20169
|
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(){/**
|
|
20254
20170
|
* Stations service.
|
|
20255
20171
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
20256
|
-
* @version
|
|
20172
|
+
* @version 194.0.0
|
|
20257
20173
|
*/ /**
|
|
20258
20174
|
* Constructs a new StationsApi.
|
|
20259
20175
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -20285,7 +20201,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
20285
20201
|
*/},{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(){/**
|
|
20286
20202
|
* Suggest service.
|
|
20287
20203
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
20288
|
-
* @version
|
|
20204
|
+
* @version 194.0.0
|
|
20289
20205
|
*/ /**
|
|
20290
20206
|
* Constructs a new SuggestApi.
|
|
20291
20207
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -20325,7 +20241,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20325
20241
|
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(){/**
|
|
20326
20242
|
* TaskManagement service.
|
|
20327
20243
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
20328
|
-
* @version
|
|
20244
|
+
* @version 194.0.0
|
|
20329
20245
|
*/ /**
|
|
20330
20246
|
* Constructs a new TaskManagementApi.
|
|
20331
20247
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -20336,39 +20252,33 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20336
20252
|
* Delete a workbin
|
|
20337
20253
|
*
|
|
20338
20254
|
* @param {String} workbinId Workbin ID
|
|
20339
|
-
* deleteTaskmanagementWorkbin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20340
20255
|
*/return _createClass(TaskManagementApi,[{key:"deleteTaskmanagementWorkbin",value:function deleteTaskmanagementWorkbin(workbinId){// verify the required parameter 'workbinId' is set
|
|
20341
20256
|
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']);}/**
|
|
20342
20257
|
* Delete a workitem
|
|
20343
20258
|
*
|
|
20344
20259
|
* @param {String} workitemId Workitem ID
|
|
20345
|
-
* deleteTaskmanagementWorkitem is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20346
20260
|
*/},{key:"deleteTaskmanagementWorkitem",value:function deleteTaskmanagementWorkitem(workitemId){// verify the required parameter 'workitemId' is set
|
|
20347
20261
|
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']);}/**
|
|
20348
20262
|
* Delete a schema
|
|
20349
20263
|
*
|
|
20350
20264
|
* @param {String} schemaId Schema ID
|
|
20351
|
-
* deleteTaskmanagementWorkitemsSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20352
20265
|
*/},{key:"deleteTaskmanagementWorkitemsSchema",value:function deleteTaskmanagementWorkitemsSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
20353
20266
|
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']);}/**
|
|
20354
20267
|
* Delete a worktype
|
|
20355
20268
|
*
|
|
20356
20269
|
* @param {String} worktypeId Worktype id
|
|
20357
|
-
* deleteTaskmanagementWorktype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20358
20270
|
*/},{key:"deleteTaskmanagementWorktype",value:function deleteTaskmanagementWorktype(worktypeId){// verify the required parameter 'worktypeId' is set
|
|
20359
20271
|
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']);}/**
|
|
20360
20272
|
* Delete a status
|
|
20361
20273
|
*
|
|
20362
20274
|
* @param {String} worktypeId Worktype id
|
|
20363
20275
|
* @param {String} statusId Status id
|
|
20364
|
-
* deleteTaskmanagementWorktypeStatus is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20365
20276
|
*/},{key:"deleteTaskmanagementWorktypeStatus",value:function deleteTaskmanagementWorktypeStatus(worktypeId,statusId){// verify the required parameter 'worktypeId' is set
|
|
20366
20277
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
|
|
20367
20278
|
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']);}/**
|
|
20368
20279
|
* Get a workbin
|
|
20369
20280
|
*
|
|
20370
20281
|
* @param {String} workbinId Workbin ID
|
|
20371
|
-
* getTaskmanagementWorkbin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20372
20282
|
*/},{key:"getTaskmanagementWorkbin",value:function getTaskmanagementWorkbin(workbinId){// verify the required parameter 'workbinId' is set
|
|
20373
20283
|
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']);}/**
|
|
20374
20284
|
* Get a listing of a workbin's attribute change history
|
|
@@ -20404,7 +20314,6 @@ if(workbinId===undefined||workbinId===null){throw'Missing the required parameter
|
|
|
20404
20314
|
* @param {String} workitemId Workitem ID
|
|
20405
20315
|
* @param {Object} opts Optional parameters
|
|
20406
20316
|
* @param {Object} opts.expands Which fields to expand. Comma separated if more than one.
|
|
20407
|
-
* getTaskmanagementWorkitem is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20408
20317
|
*/},{key:"getTaskmanagementWorkitem",value:function getTaskmanagementWorkitem(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
20409
20318
|
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']);}/**
|
|
20410
20319
|
* Get a listing of a workitem's attribute change history
|
|
@@ -20426,7 +20335,6 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
|
|
|
20426
20335
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
20427
20336
|
* @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)
|
|
20428
20337
|
* @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
|
|
20429
|
-
* getTaskmanagementWorkitemUserWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20430
20338
|
*/},{key:"getTaskmanagementWorkitemUserWrapups",value:function getTaskmanagementWorkitemUserWrapups(workitemId,userId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
20431
20339
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';}// verify the required parameter 'userId' is set
|
|
20432
20340
|
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']);}/**
|
|
@@ -20456,51 +20364,43 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
|
|
|
20456
20364
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
20457
20365
|
* @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)
|
|
20458
20366
|
* @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
|
|
20459
|
-
* getTaskmanagementWorkitemWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20460
20367
|
*/},{key:"getTaskmanagementWorkitemWrapups",value:function getTaskmanagementWorkitemWrapups(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
20461
20368
|
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']);}/**
|
|
20462
20369
|
* Get the workitem query job associated with the job id.
|
|
20463
20370
|
*
|
|
20464
20371
|
* @param {String} jobId jobId
|
|
20465
|
-
* getTaskmanagementWorkitemsQueryJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20466
20372
|
*/},{key:"getTaskmanagementWorkitemsQueryJob",value:function getTaskmanagementWorkitemsQueryJob(jobId){// verify the required parameter 'jobId' is set
|
|
20467
20373
|
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']);}/**
|
|
20468
20374
|
* Get results from for workitem query job
|
|
20469
20375
|
*
|
|
20470
20376
|
* @param {String} jobId jobId
|
|
20471
|
-
* getTaskmanagementWorkitemsQueryJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20472
20377
|
*/},{key:"getTaskmanagementWorkitemsQueryJobResults",value:function getTaskmanagementWorkitemsQueryJobResults(jobId){// verify the required parameter 'jobId' is set
|
|
20473
20378
|
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']);}/**
|
|
20474
20379
|
* Get a schema
|
|
20475
20380
|
*
|
|
20476
20381
|
* @param {String} schemaId Schema ID
|
|
20477
|
-
* getTaskmanagementWorkitemsSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20478
20382
|
*/},{key:"getTaskmanagementWorkitemsSchema",value:function getTaskmanagementWorkitemsSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
20479
20383
|
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']);}/**
|
|
20480
20384
|
* Get a specific version of a schema
|
|
20481
20385
|
*
|
|
20482
20386
|
* @param {String} schemaId Schema ID
|
|
20483
20387
|
* @param {String} versionId Schema version
|
|
20484
|
-
* getTaskmanagementWorkitemsSchemaVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20485
20388
|
*/},{key:"getTaskmanagementWorkitemsSchemaVersion",value:function getTaskmanagementWorkitemsSchemaVersion(schemaId,versionId){// verify the required parameter 'schemaId' is set
|
|
20486
20389
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';}// verify the required parameter 'versionId' is set
|
|
20487
20390
|
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']);}/**
|
|
20488
20391
|
* Get all versions of a schema
|
|
20489
20392
|
*
|
|
20490
20393
|
* @param {String} schemaId Schema ID
|
|
20491
|
-
* getTaskmanagementWorkitemsSchemaVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20492
20394
|
*/},{key:"getTaskmanagementWorkitemsSchemaVersions",value:function getTaskmanagementWorkitemsSchemaVersions(schemaId){// verify the required parameter 'schemaId' is set
|
|
20493
20395
|
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']);}/**
|
|
20494
20396
|
* Get a list of schemas.
|
|
20495
20397
|
*
|
|
20496
|
-
* getTaskmanagementWorkitemsSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20497
20398
|
*/},{key:"getTaskmanagementWorkitemsSchemas",value:function getTaskmanagementWorkitemsSchemas(){return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20498
20399
|
* Get a worktype
|
|
20499
20400
|
*
|
|
20500
20401
|
* @param {String} worktypeId Worktype id
|
|
20501
20402
|
* @param {Object} opts Optional parameters
|
|
20502
20403
|
* @param {Array.<String>} opts.expands Which fields, if any, to expand.
|
|
20503
|
-
* getTaskmanagementWorktype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20504
20404
|
*/},{key:"getTaskmanagementWorktype",value:function getTaskmanagementWorktype(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
20505
20405
|
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']);}/**
|
|
20506
20406
|
* Get a listing of a worktype's attribute change history
|
|
@@ -20517,14 +20417,12 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
|
|
|
20517
20417
|
*
|
|
20518
20418
|
* @param {String} worktypeId Worktype id
|
|
20519
20419
|
* @param {String} statusId Status id
|
|
20520
|
-
* getTaskmanagementWorktypeStatus is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20521
20420
|
*/},{key:"getTaskmanagementWorktypeStatus",value:function getTaskmanagementWorktypeStatus(worktypeId,statusId){// verify the required parameter 'worktypeId' is set
|
|
20522
20421
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
|
|
20523
20422
|
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']);}/**
|
|
20524
20423
|
* Get list of statuses for this worktype.
|
|
20525
20424
|
*
|
|
20526
20425
|
* @param {String} worktypeId Worktype id
|
|
20527
|
-
* getTaskmanagementWorktypeStatuses is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20528
20426
|
*/},{key:"getTaskmanagementWorktypeStatuses",value:function getTaskmanagementWorktypeStatuses(worktypeId){// verify the required parameter 'worktypeId' is set
|
|
20529
20427
|
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']);}/**
|
|
20530
20428
|
* Get a version of a worktype
|
|
@@ -20549,7 +20447,6 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
|
|
|
20549
20447
|
*
|
|
20550
20448
|
* @param {String} workbinId Workbin ID
|
|
20551
20449
|
* @param {Object} body Json with attributes and their new values: {description:new description, name:new name}.
|
|
20552
|
-
* patchTaskmanagementWorkbin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20553
20450
|
*/},{key:"patchTaskmanagementWorkbin",value:function patchTaskmanagementWorkbin(workbinId,body){// verify the required parameter 'workbinId' is set
|
|
20554
20451
|
if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';}// verify the required parameter 'body' is set
|
|
20555
20452
|
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']);}/**
|
|
@@ -20557,7 +20454,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20557
20454
|
*
|
|
20558
20455
|
* @param {String} workitemId Workitem ID
|
|
20559
20456
|
* @param {Object} body Workitem
|
|
20560
|
-
* patchTaskmanagementWorkitem is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20561
20457
|
*/},{key:"patchTaskmanagementWorkitem",value:function patchTaskmanagementWorkitem(workitemId,body){// verify the required parameter 'workitemId' is set
|
|
20562
20458
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';}// verify the required parameter 'body' is set
|
|
20563
20459
|
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']);}/**
|
|
@@ -20565,7 +20461,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20565
20461
|
*
|
|
20566
20462
|
* @param {String} workitemId Workitem ID
|
|
20567
20463
|
* @param {Object} body Targeted user
|
|
20568
|
-
* patchTaskmanagementWorkitemAssignment is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20569
20464
|
*/},{key:"patchTaskmanagementWorkitemAssignment",value:function patchTaskmanagementWorkitemAssignment(workitemId,body){// verify the required parameter 'workitemId' is set
|
|
20570
20465
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';}// verify the required parameter 'body' is set
|
|
20571
20466
|
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']);}/**
|
|
@@ -20574,7 +20469,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20574
20469
|
* @param {String} workitemId The ID of the Workitem.
|
|
20575
20470
|
* @param {String} userId The ID of the user
|
|
20576
20471
|
* @param {Object} body Request body to add/remove a wrapup code for a workitem
|
|
20577
|
-
* patchTaskmanagementWorkitemUserWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20578
20472
|
*/},{key:"patchTaskmanagementWorkitemUserWrapups",value:function patchTaskmanagementWorkitemUserWrapups(workitemId,userId,body){// verify the required parameter 'workitemId' is set
|
|
20579
20473
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';}// verify the required parameter 'userId' is set
|
|
20580
20474
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';}// verify the required parameter 'body' is set
|
|
@@ -20583,7 +20477,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20583
20477
|
*
|
|
20584
20478
|
* @param {String} workitemId The ID of the Workitem.
|
|
20585
20479
|
* @param {Object} body Request body to add/remove the wrapup code for workitem
|
|
20586
|
-
* patchTaskmanagementWorkitemUsersMeWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20587
20480
|
*/},{key:"patchTaskmanagementWorkitemUsersMeWrapups",value:function patchTaskmanagementWorkitemUsersMeWrapups(workitemId,body){// verify the required parameter 'workitemId' is set
|
|
20588
20481
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';}// verify the required parameter 'body' is set
|
|
20589
20482
|
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']);}/**
|
|
@@ -20592,7 +20485,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20592
20485
|
* @param {String} worktypeId Worktype id
|
|
20593
20486
|
* @param {Object} opts Optional parameters
|
|
20594
20487
|
* @param {Object} opts.body body
|
|
20595
|
-
* patchTaskmanagementWorktype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20596
20488
|
*/},{key:"patchTaskmanagementWorktype",value:function patchTaskmanagementWorktype(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
20597
20489
|
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']);}/**
|
|
20598
20490
|
* Update the attributes of a status
|
|
@@ -20601,7 +20493,6 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
|
|
|
20601
20493
|
* @param {String} statusId Status id
|
|
20602
20494
|
* @param {Object} opts Optional parameters
|
|
20603
20495
|
* @param {Object} opts.body body
|
|
20604
|
-
* patchTaskmanagementWorktypeStatus is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20605
20496
|
*/},{key:"patchTaskmanagementWorktypeStatus",value:function patchTaskmanagementWorktypeStatus(worktypeId,statusId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
20606
20497
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
|
|
20607
20498
|
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']);}/**
|
|
@@ -20609,24 +20500,20 @@ if(statusId===undefined||statusId===null){throw'Missing the required parameter "
|
|
|
20609
20500
|
*
|
|
20610
20501
|
* @param {Object} opts Optional parameters
|
|
20611
20502
|
* @param {Object} opts.body body
|
|
20612
|
-
* postTaskmanagementWorkbins is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20613
20503
|
*/},{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']);}/**
|
|
20614
20504
|
* Query for workbins
|
|
20615
20505
|
*
|
|
20616
20506
|
* @param {Object} body QueryPostRequest
|
|
20617
|
-
* postTaskmanagementWorkbinsQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20618
20507
|
*/},{key:"postTaskmanagementWorkbinsQuery",value:function postTaskmanagementWorkbinsQuery(body){// verify the required parameter 'body' is set
|
|
20619
20508
|
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']);}/**
|
|
20620
20509
|
* Cancel the assignment process for a workitem that is currently queued for assignment through ACD.
|
|
20621
20510
|
*
|
|
20622
20511
|
* @param {String} workitemId Workitem ID
|
|
20623
|
-
* postTaskmanagementWorkitemAcdCancel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20624
20512
|
*/},{key:"postTaskmanagementWorkitemAcdCancel",value:function postTaskmanagementWorkitemAcdCancel(workitemId){// verify the required parameter 'workitemId' is set
|
|
20625
20513
|
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']);}/**
|
|
20626
20514
|
* Disconnect the assignee of the workitem
|
|
20627
20515
|
*
|
|
20628
20516
|
* @param {String} workitemId Workitem ID
|
|
20629
|
-
* postTaskmanagementWorkitemDisconnect is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20630
20517
|
*/},{key:"postTaskmanagementWorkitemDisconnect",value:function postTaskmanagementWorkitemDisconnect(workitemId){// verify the required parameter 'workitemId' is set
|
|
20631
20518
|
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']);}/**
|
|
20632
20519
|
* Terminate a workitem
|
|
@@ -20634,13 +20521,11 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
|
|
|
20634
20521
|
* @param {String} workitemId Workitem ID
|
|
20635
20522
|
* @param {Object} opts Optional parameters
|
|
20636
20523
|
* @param {Object} opts.body Terminated request
|
|
20637
|
-
* postTaskmanagementWorkitemTerminate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20638
20524
|
*/},{key:"postTaskmanagementWorkitemTerminate",value:function postTaskmanagementWorkitemTerminate(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
20639
20525
|
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']);}/**
|
|
20640
20526
|
* Create a workitem
|
|
20641
20527
|
*
|
|
20642
20528
|
* @param {Object} body Workitem
|
|
20643
|
-
* postTaskmanagementWorkitems is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20644
20529
|
*/},{key:"postTaskmanagementWorkitems",value:function postTaskmanagementWorkitems(body){// verify the required parameter 'body' is set
|
|
20645
20530
|
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']);}/**
|
|
20646
20531
|
* Query for workitems
|
|
@@ -20652,13 +20537,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20652
20537
|
* Create a workitem query job
|
|
20653
20538
|
*
|
|
20654
20539
|
* @param {Object} body WorkitemQueryJobCreate
|
|
20655
|
-
* postTaskmanagementWorkitemsQueryJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20656
20540
|
*/},{key:"postTaskmanagementWorkitemsQueryJobs",value:function postTaskmanagementWorkitemsQueryJobs(body){// verify the required parameter 'body' is set
|
|
20657
20541
|
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']);}/**
|
|
20658
20542
|
* Create a schema
|
|
20659
20543
|
*
|
|
20660
20544
|
* @param {Object} body Schema
|
|
20661
|
-
* postTaskmanagementWorkitemsSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20662
20545
|
*/},{key:"postTaskmanagementWorkitemsSchemas",value:function postTaskmanagementWorkitemsSchemas(body){// verify the required parameter 'body' is set
|
|
20663
20546
|
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']);}/**
|
|
20664
20547
|
* Add a status to a worktype
|
|
@@ -20666,32 +20549,28 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20666
20549
|
* @param {String} worktypeId Worktype id
|
|
20667
20550
|
* @param {Object} opts Optional parameters
|
|
20668
20551
|
* @param {Object} opts.body body
|
|
20669
|
-
* postTaskmanagementWorktypeStatuses is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20670
20552
|
*/},{key:"postTaskmanagementWorktypeStatuses",value:function postTaskmanagementWorktypeStatuses(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
20671
20553
|
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']);}/**
|
|
20672
20554
|
* Create a worktype
|
|
20673
20555
|
*
|
|
20674
20556
|
* @param {Object} opts Optional parameters
|
|
20675
20557
|
* @param {Object} opts.body body
|
|
20676
|
-
* postTaskmanagementWorktypes is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20677
20558
|
*/},{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']);}/**
|
|
20678
20559
|
* Query for worktypes
|
|
20679
20560
|
*
|
|
20680
20561
|
* @param {Object} body QueryPostRequest
|
|
20681
|
-
* postTaskmanagementWorktypesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20682
20562
|
*/},{key:"postTaskmanagementWorktypesQuery",value:function postTaskmanagementWorktypesQuery(body){// verify the required parameter 'body' is set
|
|
20683
20563
|
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']);}/**
|
|
20684
20564
|
* Update a schema
|
|
20685
20565
|
*
|
|
20686
20566
|
* @param {String} schemaId Schema ID
|
|
20687
20567
|
* @param {Object} body Data Schema
|
|
20688
|
-
* putTaskmanagementWorkitemsSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20689
20568
|
*/},{key:"putTaskmanagementWorkitemsSchema",value:function putTaskmanagementWorkitemsSchema(schemaId,body){// verify the required parameter 'schemaId' is set
|
|
20690
20569
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';}// verify the required parameter 'body' is set
|
|
20691
20570
|
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(){/**
|
|
20692
20571
|
* Teams service.
|
|
20693
20572
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
20694
|
-
* @version
|
|
20573
|
+
* @version 194.0.0
|
|
20695
20574
|
*/ /**
|
|
20696
20575
|
* Constructs a new TeamsApi.
|
|
20697
20576
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -20748,7 +20627,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20748
20627
|
* @param {Object} opts Optional parameters
|
|
20749
20628
|
* @param {Number} opts.pageSize The desired page size
|
|
20750
20629
|
* @param {Number} opts.pageNumber The desired page number
|
|
20751
|
-
* postAnalyticsTeamsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20752
20630
|
*/},{key:"postAnalyticsTeamsActivityQuery",value:function postAnalyticsTeamsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
20753
20631
|
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']);}/**
|
|
20754
20632
|
* Add team members
|
|
@@ -20770,7 +20648,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20770
20648
|
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(){/**
|
|
20771
20649
|
* Telephony service.
|
|
20772
20650
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
20773
|
-
* @version
|
|
20651
|
+
* @version 194.0.0
|
|
20774
20652
|
*/ /**
|
|
20775
20653
|
* Constructs a new TelephonyApi.
|
|
20776
20654
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -20817,7 +20695,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
20817
20695
|
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(){/**
|
|
20818
20696
|
* TelephonyProvidersEdge service.
|
|
20819
20697
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
20820
|
-
* @version
|
|
20698
|
+
* @version 194.0.0
|
|
20821
20699
|
*/ /**
|
|
20822
20700
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
20823
20701
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -21627,7 +21505,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
|
|
|
21627
21505
|
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(){/**
|
|
21628
21506
|
* Textbots service.
|
|
21629
21507
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
21630
|
-
* @version
|
|
21508
|
+
* @version 194.0.0
|
|
21631
21509
|
*/ /**
|
|
21632
21510
|
* Constructs a new TextbotsApi.
|
|
21633
21511
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -21662,7 +21540,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
21662
21540
|
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(){/**
|
|
21663
21541
|
* Tokens service.
|
|
21664
21542
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
21665
|
-
* @version
|
|
21543
|
+
* @version 194.0.0
|
|
21666
21544
|
*/ /**
|
|
21667
21545
|
* Constructs a new TokensApi.
|
|
21668
21546
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -21696,7 +21574,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
21696
21574
|
*/},{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(){/**
|
|
21697
21575
|
* Uploads service.
|
|
21698
21576
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
21699
|
-
* @version
|
|
21577
|
+
* @version 194.0.0
|
|
21700
21578
|
*/ /**
|
|
21701
21579
|
* Constructs a new UploadsApi.
|
|
21702
21580
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -21762,7 +21640,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21762
21640
|
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(){/**
|
|
21763
21641
|
* Usage service.
|
|
21764
21642
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
21765
|
-
* @version
|
|
21643
|
+
* @version 194.0.0
|
|
21766
21644
|
*/ /**
|
|
21767
21645
|
* Constructs a new UsageApi.
|
|
21768
21646
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -21816,7 +21694,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21816
21694
|
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(){/**
|
|
21817
21695
|
* UserRecordings service.
|
|
21818
21696
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
21819
|
-
* @version
|
|
21697
|
+
* @version 194.0.0
|
|
21820
21698
|
*/ /**
|
|
21821
21699
|
* Constructs a new UserRecordingsApi.
|
|
21822
21700
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -21865,7 +21743,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
21865
21743
|
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(){/**
|
|
21866
21744
|
* Users service.
|
|
21867
21745
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
21868
|
-
* @version
|
|
21746
|
+
* @version 194.0.0
|
|
21869
21747
|
*/ /**
|
|
21870
21748
|
* Constructs a new UsersApi.
|
|
21871
21749
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -22301,7 +22179,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22301
22179
|
* @param {Object} opts Optional parameters
|
|
22302
22180
|
* @param {Number} opts.pageSize The desired page size
|
|
22303
22181
|
* @param {Number} opts.pageNumber The desired page number
|
|
22304
|
-
* postAnalyticsUsersActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
22305
22182
|
*/},{key:"postAnalyticsUsersActivityQuery",value:function postAnalyticsUsersActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
22306
22183
|
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']);}/**
|
|
22307
22184
|
* Query for user aggregates asynchronously
|
|
@@ -22528,7 +22405,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
|
|
|
22528
22405
|
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(){/**
|
|
22529
22406
|
* Utilities service.
|
|
22530
22407
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
22531
|
-
* @version
|
|
22408
|
+
* @version 194.0.0
|
|
22532
22409
|
*/ /**
|
|
22533
22410
|
* Constructs a new UtilitiesApi.
|
|
22534
22411
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -22555,7 +22432,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22555
22432
|
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(){/**
|
|
22556
22433
|
* Voicemail service.
|
|
22557
22434
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
22558
|
-
* @version
|
|
22435
|
+
* @version 194.0.0
|
|
22559
22436
|
*/ /**
|
|
22560
22437
|
* Constructs a new VoicemailApi.
|
|
22561
22438
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -22704,7 +22581,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
22704
22581
|
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(){/**
|
|
22705
22582
|
* WebChat service.
|
|
22706
22583
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
22707
|
-
* @version
|
|
22584
|
+
* @version 194.0.0
|
|
22708
22585
|
*/ /**
|
|
22709
22586
|
* Constructs a new WebChatApi.
|
|
22710
22587
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -22839,7 +22716,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22839
22716
|
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(){/**
|
|
22840
22717
|
* WebDeployments service.
|
|
22841
22718
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
22842
|
-
* @version
|
|
22719
|
+
* @version 194.0.0
|
|
22843
22720
|
*/ /**
|
|
22844
22721
|
* Constructs a new WebDeploymentsApi.
|
|
22845
22722
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -22960,7 +22837,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
22960
22837
|
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(){/**
|
|
22961
22838
|
* WebMessaging service.
|
|
22962
22839
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
22963
|
-
* @version
|
|
22840
|
+
* @version 194.0.0
|
|
22964
22841
|
*/ /**
|
|
22965
22842
|
* Constructs a new WebMessagingApi.
|
|
22966
22843
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -22976,7 +22853,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
22976
22853
|
*/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(){/**
|
|
22977
22854
|
* Widgets service.
|
|
22978
22855
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
22979
|
-
* @version
|
|
22856
|
+
* @version 194.0.0
|
|
22980
22857
|
*/ /**
|
|
22981
22858
|
* Constructs a new WidgetsApi.
|
|
22982
22859
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -23011,7 +22888,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
23011
22888
|
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(){/**
|
|
23012
22889
|
* WorkforceManagement service.
|
|
23013
22890
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
23014
|
-
* @version
|
|
22891
|
+
* @version 194.0.0
|
|
23015
22892
|
*/ /**
|
|
23016
22893
|
* Constructs a new WorkforceManagementApi.
|
|
23017
22894
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -23504,9 +23381,10 @@ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the requ
|
|
|
23504
23381
|
* @param {String} agentId The agent id
|
|
23505
23382
|
* @param {Object} opts Optional parameters
|
|
23506
23383
|
* @param {Boolean} opts.excludeCapabilities Excludes all capabilities of the agent such as queues, languages, and skills
|
|
23384
|
+
* @param {Array.<String>} opts.expand
|
|
23507
23385
|
*/},{key:"getWorkforcemanagementManagementunitAgent",value:function getWorkforcemanagementManagementunitAgent(managementUnitId,agentId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
23508
23386
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';}// verify the required parameter 'agentId' is set
|
|
23509
|
-
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']);}/**
|
|
23387
|
+
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']);}/**
|
|
23510
23388
|
* Gets all the shift trades for a given agent
|
|
23511
23389
|
*
|
|
23512
23390
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
@@ -23643,8 +23521,9 @@ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the requ
|
|
|
23643
23521
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
23644
23522
|
* @param {Object} opts Optional parameters
|
|
23645
23523
|
* @param {Array.<String>} opts.expand Include to access additional data on the work plans
|
|
23524
|
+
* @param {Array.<String>} opts.exclude Exclude specific data on the work plans from the response
|
|
23646
23525
|
*/},{key:"getWorkforcemanagementManagementunitWorkplans",value:function getWorkforcemanagementManagementunitWorkplans(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
23647
|
-
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']);}/**
|
|
23526
|
+
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']);}/**
|
|
23648
23527
|
* Get management units
|
|
23649
23528
|
*
|
|
23650
23529
|
* @param {Object} opts Optional parameters
|
|
@@ -24489,7 +24368,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
24489
24368
|
* </pre>
|
|
24490
24369
|
* </p>
|
|
24491
24370
|
* @module purecloud-platform-client-v2/index
|
|
24492
|
-
* @version
|
|
24371
|
+
* @version 194.0.0
|
|
24493
24372
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
24494
24373
|
* The ApiClient constructor.
|
|
24495
24374
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|